/* ============================================
   LA BIENVEILLANCE — Design System
   ============================================ */

:root {
  /* Aligné palette outil devis JLM (fonds #071327 / accent orange) */
  --primary: #0E3A5C;
  --primary-dark: #071327;
  --primary-light: #E8F0FA;
  --primary-lighter: #F4F7FB;
  --accent: #F97316;
  --accent-dark: #EA580C;
  --accent-light: #FFF4ED;
  --bg: #FAFAF7;
  --bg-warm: #F5F0EA;
  --surface: #FFFFFF;
  --text: #2C2C2C;
  --text-muted: #6B6B6B;
  --text-light: #999999;
  --border: #E8E2D9;
  --border-light: #F0ECE6;
  --danger: #C0392B;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

  --transition: 0.3s ease;
  --container: 1200px;
  /* Fond du footer : toujours sombre (ne pas utiliser --text, qui s’éclaircit en dark mode) */
  --footer-bg: #2c2c2c;
}

/* ---- Thème sombre (bouton dans l’en-tête) ---- */
[data-theme="dark"] {
  color-scheme: dark;
  --primary: #7CB3E0;
  --primary-dark: #5A9FD4;
  --primary-light: rgba(124, 179, 224, 0.18);
  --primary-lighter: #121a24;
  --accent: #FB923C;
  --accent-dark: #F97316;
  --accent-light: rgba(251, 146, 60, 0.14);
  --bg: #0e1319;
  --bg-warm: #121a22;
  --surface: #1a222c;
  --text: #e8eaef;
  --text-muted: #9aa5b5;
  --text-light: #7d8a9c;
  --border: #2c3545;
  --border-light: #232c3a;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --footer-bg: #06090e;
}

[data-theme="dark"] .header {
  background: rgba(26, 34, 44, 0.96);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .hero--home {
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg) 42%, #152030 100%);
}

[data-theme="dark"] .nav.open {
  background: rgba(14, 19, 25, 0.98);
}

[data-theme="dark"] .btn--white {
  background: var(--surface);
  color: var(--text);
}

[data-theme="dark"] .btn--white:hover {
  background: var(--border-light);
  color: var(--text);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---- Accessibility ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius); z-index: 10000;
  font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section--alt {
  background: var(--bg-warm);
}

.section--primary {
  background: var(--primary);
  color: #fff;
}

.section--primary-light {
  background: var(--primary-lighter);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--text);
}

.section--primary h1, .section--primary h2,
.section--primary h3, .section--primary p {
  color: #fff;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section--primary .section-label { color: rgba(255,255,255,0.7); }

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 700px;
}

.section-subtitle.centered { margin: 0 auto; }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
  line-height: 1.3;
}

button.btn {
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: none;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14,58,92,0.28);
}
.btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,58,92,0.38);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,0.32);
}
.btn--accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.42);
}

.btn--outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: var(--primary);
}
.btn--white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.15rem;
}

.btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header__main {
  padding: 0.45rem 0;
}

.header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.header__logo span { color: var(--accent); }

.header__logo--full {
  display: flex;
  align-items: center;
}

.header__logo-img--full {
  width: auto;
  height: 2.35rem;
  max-width: min(200px, 52vw);
  object-fit: contain;
  border-radius: 0;
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.header__logo-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  padding: 0.4rem 0.62rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav a.nav__link--cta-devis {
  color: var(--accent);
  font-weight: 600;
}

.nav a.nav__link--cta-devis:hover,
.nav a.nav__link--cta-devis.active {
  color: var(--accent-dark);
  background: var(--accent-light);
}

.nav__dropdown-toggle {
  font: inherit;
  font-family: var(--font-sans);
  line-height: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.4rem 0.62rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav__dropdown-toggle:hover,
.menu-item-has-children.active-trail > .nav__dropdown-toggle,
.menu-item-has-children.active-trail > a {
  color: var(--primary);
  background: var(--primary-light);
}

@media (min-width: 769px) {
  .menu-item-has-children {
    position: relative;
  }

  .menu-item-has-children .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .menu-item-has-children:hover .sub-menu,
  .menu-item-has-children:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(2px);
  }

  .nav .sub-menu a {
    display: block;
    padding: 0.5rem 1.05rem;
    border-radius: 0;
    white-space: nowrap;
  }

  .nav .sub-menu a:hover,
  .nav .sub-menu a.active {
    background: var(--primary-light);
    color: var(--primary);
  }
}

.header__cta {
  flex-shrink: 0;
}

.header__main .btn.btn--sm {
  padding: 0.48rem 1.1rem;
  font-size: 0.875rem;
}

.theme-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.theme-toggle:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: block;
  width: 20px;
  height: 20px;
}

.theme-toggle__icon--moon {
  display: block;
}

.theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.menu-toggle:hover { background: var(--primary-light); }

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

.menu-toggle.active span { background: transparent; }
.menu-toggle.active span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active span::after { top: 0; transform: rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero--home {
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg) 50%, var(--accent-light) 100%);
}

.hero--page {
  background: linear-gradient(rgba(7,19,39,0.78), rgba(5,12,25,0.84)), url('../img/bambous.jpg') center/cover no-repeat;
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.hero--page h1,
.hero--page p { color: #fff; }

.hero--page .breadcrumb { margin-bottom: 1rem; }
.hero--page .breadcrumb a { color: rgba(255,255,255,0.7); }
.hero--page .breadcrumb a:hover { color: #fff; }
.hero--page .breadcrumb span { color: rgba(255,255,255,0.5); margin: 0 0.4rem; }

.hero__cross-hub {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  max-width: 44rem;
}
.hero__cross-hub a {
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero__cross-hub a:hover {
  color: #fff;
}
.hero__cross-hub-sep {
  color: rgba(255,255,255,0.45);
}

.footer__hub-links {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.footer__hub-links a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__hub-links a:hover {
  color: var(--accent);
}
.footer__hub-links-sep {
  color: var(--text-muted);
  margin: 0 0.2rem;
}

#main:target,
#nos-engagements,
#solutions-quotidien,
#notre-approche,
#temoignages-accueil,
#resume-aides-financieres,
#faq-aides-financieres {
  scroll-margin-top: 5rem;
}

@media (max-width: 768px) {
  #main:target,
  #nos-engagements,
  #solutions-quotidien,
  #notre-approche,
  #temoignages-accueil,
  #resume-aides-financieres,
  #faq-aides-financieres {
    scroll-margin-top: 4.5rem;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero__content { max-width: 580px; }

.hero__title { margin-bottom: 1.25rem; }

.hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  color: var(--text);
}

.hero__badge-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

.hero__badge-icon--green { background: var(--primary-light); color: var(--primary); }
.hero__badge-icon--gold { background: var(--accent-light); color: var(--accent); }

.hero__visual {
  position: relative;
}

.hero__image-placeholder {
  background: linear-gradient(145deg, var(--primary-light), var(--bg-warm));
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  border: 2px dashed var(--border);
}

.hero__image {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.product-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.hero__floating-card {
  position: absolute;
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  max-width: 220px;
}

.hero__floating-card--bottom {
  bottom: -1rem;
  left: -1rem;
}

.hero__floating-card strong {
  display: block;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ---- Pillar Cards ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  color: var(--text);
}

.pillar-card__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
}

.pillar-card__icon--green { background: var(--primary-light); color: var(--primary); }
.pillar-card__icon--gold { background: var(--accent-light); color: var(--accent); }
.pillar-card__icon--blue { background: #E0F5F1; color: #178C7A; }
.pillar-card__icon--rose { background: #FCE8EC; color: #C0392B; }

.pillar-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Feature / Problem-Solution ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  align-items: start;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-sans);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--primary-light);
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-card blockquote {
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-left: 0.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-card__name {
  font-weight: 700;
  color: var(--text);
}

.testimonial-card__location {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- Quote Banner ---- */
.quote-banner {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(rgba(7,19,39,0.68), rgba(5,12,25,0.76)), url('../img/bambous.jpg') center/cover no-repeat;
  color: #fff;
  position: relative;
}

.quote-banner blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* ---- Service Detail ---- */
.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.service-intro--reverse { direction: rtl; }
.service-intro--reverse > * { direction: ltr; }

.service-benefits {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.service-benefit {
  display: flex;
  gap: 0.75rem;
  align-items: start;
}

.service-benefit__check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.service-benefit p {
  font-size: 1rem;
  line-height: 1.6;
}

.service-benefit strong {
  color: var(--text);
}

/* ---- Product Cards ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card__image {
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, var(--primary-light), var(--bg-warm));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: var(--text-muted);
  padding: 1.5rem;
  text-align: center;
}

.product-card__body {
  padding: 2rem;
}

.product-card__body h3 { margin-bottom: 0.75rem; }

.product-card__body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.product-card__tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---- Aid / Finance Section ---- */
.aids-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.aid-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: all var(--transition);
}

.aid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.aid-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.aid-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

.aid-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Amenagement Items ---- */
.amenagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.amenagement-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.amenagement-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.amenagement-item__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.amenagement-item h3 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  margin-bottom: 0.4rem;
}

.amenagement-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Guide / Conseils ---- */
.guide-steps {
  display: grid;
  gap: 1.75rem;
  max-width: 960px;
  margin: 0 auto;
  counter-reset: guide-counter;
}

.guide-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2rem 2.25rem;
  box-shadow: var(--shadow);
  align-items: start;
  border-left: 5px solid var(--primary);
  transition: all var(--transition);
  position: relative;
}

.guide-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.guide-step:nth-child(6n+1) { border-left-color: var(--accent); }
.guide-step:nth-child(6n+2) { border-left-color: #178C7A; }
.guide-step:nth-child(6n+3) { border-left-color: var(--primary); }
.guide-step:nth-child(6n+4) { border-left-color: #C0392B; }
.guide-step:nth-child(6n+5) { border-left-color: #7C3AED; }
.guide-step:nth-child(6n+6) { border-left-color: #D4A017; }

.guide-step__number {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.guide-step:hover .guide-step__number { transform: scale(1.08); }

.guide-step__mini {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--accent-dark);
  background: var(--accent-light);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin: 0 0 0.65rem;
}

.guide-step h3 .guide-step__mini {
  margin: 0 0.5rem 0 0;
  vertical-align: middle;
}

.guide-step:nth-child(6n+1) .guide-step__number { background: var(--accent); }
.guide-step:nth-child(6n+2) .guide-step__number { background: #178C7A; }
.guide-step:nth-child(6n+3) .guide-step__number { background: var(--primary); }
.guide-step:nth-child(6n+4) .guide-step__number { background: #C0392B; }
.guide-step:nth-child(6n+5) .guide-step__number { background: #7C3AED; }
.guide-step:nth-child(6n+6) .guide-step__number { background: #D4A017; }

.guide-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

.guide-step:nth-child(6n+1) h3 { color: var(--accent-dark); }
.guide-step:nth-child(6n+2) h3 { color: #137062; }
.guide-step:nth-child(6n+3) h3 { color: var(--primary); }
.guide-step:nth-child(6n+4) h3 { color: #A93226; }
.guide-step:nth-child(6n+5) h3 { color: #6527BE; }
.guide-step:nth-child(6n+6) h3 { color: #B08914; }

.guide-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.guide-step ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
  display: grid;
  gap: 0.45rem;
}

.guide-step ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 1.6rem;
  position: relative;
}

.guide-step ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 0.85rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: 0.22rem;
}

.guide-step:nth-child(6n+1) ul li::before { color: var(--accent); }
.guide-step:nth-child(6n+2) ul li::before { color: #178C7A; }
.guide-step:nth-child(6n+3) ul li::before { color: var(--primary); }
.guide-step:nth-child(6n+4) ul li::before { color: #C0392B; }
.guide-step:nth-child(6n+5) ul li::before { color: #7C3AED; }
.guide-step:nth-child(6n+6) ul li::before { color: #D4A017; }

/* ---- Nutrition / Zinzino ---- */
.nutrition-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.nutrition-stat {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--accent-light);
}

.nutrition-stat__number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.nutrition-stat p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Contact Form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.contact-info-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-card h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  margin-bottom: 0.15rem;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
  background: var(--surface);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.8);
  padding: clamp(3rem, 5vw, 4.5rem) 0 0;
}

.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: #fff; }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 3vw, 3rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer__brand span { color: var(--accent); }

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { font-size: 0.9rem; }

.footer__contact-item {
  display: flex;
  gap: 0.5rem;
  align-items: start;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer__bottom a { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: #fff; }

/* ---- CTA Section ---- */
.cta-section {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* ---- Legal Page ---- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal-content p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .aids-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 999;
  }
  .nav.open { opacity: 1; pointer-events: all; }

  .nav .nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
    gap: 0.35rem;
  }

  .menu-item-has-children {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .menu-item-has-children .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0 0.5rem;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .menu-item-has-children.is-open .sub-menu {
    display: block;
  }

  .nav a { font-size: 1.25rem; padding: 0.8rem 1.55rem; }

  .nav__dropdown-toggle {
    font-size: 1.25rem;
    padding: 0.8rem 1.55rem;
    width: 100%;
    text-align: center;
  }

  .nav .sub-menu a {
    font-size: 1.05rem;
    padding: 0.55rem 1.25rem;
    text-align: center;
  }

  .header__cta { display: none; }

  .hero__grid,
  .service-intro,
  .service-intro--reverse,
  .nutrition-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-intro--reverse { direction: ltr; }

  .features-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }

}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn-group { flex-direction: column; width: 100%; }
  .btn-group .btn { width: 100%; }
  .hero__badges { flex-direction: column; }
}
.contact-tabs { display: flex; gap: 0; margin-bottom: 0; }
.contact-tab {
  flex: 1; padding: 1rem; text-align: center;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border-bottom: 3px solid var(--border); color: var(--text-muted);
  transition: all 0.3s ease; background: var(--bg);
}
.contact-tab:hover { color: var(--primary); }
.contact-tab.active {
  color: var(--primary); border-bottom-color: var(--accent);
  background: var(--surface);
}
.contact-tab-content { display: none; }
.contact-tab-content.active { display: block; }

/* ---------- Outil devis JLM (page Monte-escaliers : intégré sans iframe) ---------- */
.devis-jlm {
  margin-top: 2rem;
}

/* Bandeau section aligné sur le configurateur SDB + thème sombre du site */
.devis-jlm.devis-jlm--dark-strip {
  background: linear-gradient(180deg, #0a0f14 0%, #121a22 42%, #0e1319 100%);
  border-top: 1px solid #2c3545;
  border-bottom: 1px solid #2c3545;
  margin-top: 0;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.devis-jlm.devis-jlm--dark-strip .section-label {
  color: #fb923c;
}

.devis-jlm.devis-jlm--dark-strip .section-title {
  color: #e8eaef;
}

.devis-jlm.devis-jlm--dark-strip .section-subtitle {
  color: #9aa5b5;
}

.devis-jlm.devis-jlm--dark-strip .devis-jlm__root-wrap {
  background: transparent;
  box-shadow: none;
  border: none;
}
.devis-jlm__head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.devis-jlm__fallback {
  margin: 0 0 1.25rem;
  text-align: center;
}
.devis-jlm__root-wrap {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  background: transparent;
}
@media (max-width: 768px) {
  .devis-jlm__root-wrap {
    border-radius: var(--radius);
  }
}

/* ---- Section piliers accueil : fond photo ---- */
.section--pillars-bg {
  position: relative;
  overflow: hidden;
}
.section--pillars-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface) url("../img/accompagnement-conseil.jpg") center / cover no-repeat;
  opacity: 0.22;
  z-index: 0;
}
[data-theme="dark"] .section--pillars-bg::before {
  opacity: 0.14;
}
.section--pillars-bg .container {
  position: relative;
  z-index: 1;
}

/* ---- Nav : deux liens devis (retour à la ligne contrôlé) ---- */
.nav a.nav__link--multiline {
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  max-width: 7.5rem;
  padding: 0.32rem 0.45rem;
  font-size: 0.875rem;
}
@media (max-width: 768px) {
  .nav a.nav__link--multiline {
    max-width: none;
    font-size: 1.05rem;
    padding: 0.6rem 1.35rem;
  }
}

/* ---- Modale choix devis estimatif ---- */
.devis-choice-dialog[hidden] {
  display: none !important;
}
.devis-choice-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.devis-choice-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 19, 39, 0.65);
  cursor: pointer;
}
.devis-choice-dialog__panel {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid var(--border-light);
}
.devis-choice-dialog__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius);
}
.devis-choice-dialog__close:hover {
  color: var(--text);
  background: var(--primary-light);
}
.devis-choice-dialog__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 2rem 0.75rem 0;
  color: var(--primary);
}
.devis-choice-dialog__intro {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.devis-choice-dialog__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.devis-choice-dialog__hint {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Bandeau footer aides ---- */
.footer__aides-banner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.footer__aides-banner p {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}
.footer__aides-em {
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ---- Remerciement formulaire contact ---- */
.contact-form-thanks {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.contact-form-thanks[hidden] {
  display: none !important;
}
.contact-form-thanks__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0 0 1rem;
}
.contact-form-thanks p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
  color: var(--text);
}
.contact-form-thanks__btn {
  margin-top: 1.25rem;
}

/* ---- Galerie salle de bain (vintage / avant-après) ---- */
.sdb-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .sdb-showcase {
    grid-template-columns: 1fr;
  }
}
.sdb-showcase figure {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sdb-showcase img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.sdb-showcase figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.sdb-showcase__note {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.devis-sdb__frame-wrap {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.devis-sdb__frame-wrap iframe {
  width: 100%;
  min-height: 720px;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .devis-sdb__frame-wrap iframe {
    min-height: 640px;
  }
}
