/* ==========================================================================
   LMBECOPRO SARL — Design System
   Énergie solaire photovoltaïque · Cameroun
   --------------------------------------------------------------------------
   Palette dérivée du logo officiel (assets/img/logo-lmbecopro.png) :
     vert marque #008A36 · vert lime #91C026
   Les déclinaisons plus sombres servent au texte et aux boutons afin de
   respecter les contrastes WCAG 2.1 AA (ratios indiqués en commentaire).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marque — vert (issu du logo) */
  --brand-50:  #EBF9F0;
  --brand-100: #CFF0DA;
  --brand-200: #A3E0B9;
  --brand-500: #2FA855;
  --brand-600: #008A36; /* vert exact du logo — aplats, icônes, gros titres */
  --brand-700: #00752E; /* fond bouton primaire — 5,9:1 avec blanc */
  --brand-800: #005F26;
  --brand-900: #00491D; /* texte vert sur clair — 9,8:1 */
  --brand-950: #03291A; /* surfaces sombres — 15,7:1 avec blanc */

  /* Accent — vert lime (issu du logo) */
  --lime-100: #F0F7DC;
  --lime-300: #BADD62;
  --lime-400: #A8D63A; /* accent sur fond sombre — 9,6:1 */
  --lime-500: #91C026; /* fond CTA — texte foncé uniquement (7,8:1) */
  --lime-700: #5F7F14; /* texte lime sur clair — 4,7:1 */

  /* Neutres */
  --ink:       #0B1F17;
  --ink-2:     #475A52; /* texte secondaire — 7,4:1 */
  --ink-3:     #6B7C74;
  --surface:   #FFFFFF;
  --surface-2: #F7FAF8;
  --surface-3: #EEF4F1;
  --border:    #DCE7E1;
  --border-2:  #C4D6CD;

  /* Sémantique */
  --success: #00752E;
  --warning: #8A5A00;
  --danger:  #B91C1C;

  /* Rôles (remappés en mode sombre) */
  --bg:            var(--surface-2);
  --bg-elevated:   var(--surface);
  --bg-sunken:     var(--surface-3);
  --text:          var(--ink);
  --text-muted:    var(--ink-2);
  --text-subtle:   var(--ink-3);
  --line:          var(--border);
  --line-strong:   var(--border-2);
  --accent-text:   var(--brand-900);
  --dark-section:  var(--brand-950);

  /* Échelle typographique — base 16px, ratio ~1.25 */
  --fs-xs:   0.8125rem; /* 13 */
  --fs-sm:   0.9375rem; /* 15 */
  --fs-base: 1rem;      /* 16 */
  --fs-md:   1.125rem;  /* 18 */
  --fs-lg:   1.375rem;  /* 22 */
  --fs-xl:   1.75rem;   /* 28 */
  --fs-2xl:  2.25rem;   /* 36 */
  --fs-3xl:  2.875rem;  /* 46 */
  --fs-4xl:  3.5rem;    /* 56 */

  --font-heading: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Espacement — rythme 4/8 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Rayons — style organique */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Ombres naturelles */
  --shadow-sm: 0 1px 2px rgba(11, 31, 23, .06), 0 1px 3px rgba(11, 31, 23, .04);
  --shadow:    0 4px 12px rgba(11, 31, 23, .07), 0 2px 4px rgba(11, 31, 23, .04);
  --shadow-lg: 0 12px 32px rgba(11, 31, 23, .10), 0 4px 8px rgba(11, 31, 23, .05);

  /* Layout */
  --container: 1200px;
  --container-narrow: 780px;
  --header-h: 76px;

  /* Mouvement */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 150ms;
  --dur: 240ms;

  /* Plans z */
  --z-header: 100;
  --z-drawer: 200;
  --z-skip:   300;
}

/* Mode sombre */
:root[data-theme='dark'] {
  --bg:          #071612;
  --bg-elevated: #0E241C;
  --bg-sunken:   #04100C;
  --text:        #EAF4EF;
  --text-muted:  #A8BFB6; /* 7.2:1 sur --bg */
  --text-subtle: #86A196;
  --line:        #1D3A2F;
  --line-strong: #2A5044;
  --accent-text: var(--brand-200);
  --dark-section: #04100C;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow:    0 4px 12px rgba(0, 0, 0, .45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 5.2vw, var(--fs-4xl)); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, var(--fs-3xl)); }
h3 { font-size: clamp(1.3rem, 2.2vw, var(--fs-xl)); }
h4 { font-size: var(--fs-lg); }

p  { margin: 0 0 var(--space-4); max-width: 68ch; }
ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li { margin-bottom: var(--space-2); }

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--brand-700); }
:root[data-theme='dark'] a:hover { color: var(--brand-100); }

img, svg, video { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; }

/* Accessibilité : focus visible partout */
:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:root[data-theme='dark'] :focus-visible { outline-color: var(--lime-400); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: var(--z-skip);
  background: var(--brand-700);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-6); } }

.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-8); }
@media (min-width: 768px) { .section { padding-block: var(--space-9); } }

.section--sunken { background: var(--bg-sunken); }
.section--elevated { background: var(--bg-elevated); }
.section--dark {
  background: var(--dark-section);
  color: #EAF4EF;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: #BCD4C9; }
.section--dark a { color: var(--lime-400); }

.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head.is-centered p { margin-inline: auto; }
.section-head p { font-size: var(--fs-md); color: var(--text-muted); margin-bottom: 0; }
.section--dark .section-head p { color: #BCD4C9; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--lime-500);
  border-radius: var(--radius-full);
}
.section--dark .eyebrow { color: var(--lime-400); }

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px)  { .grid-3-2 { grid-template-columns: repeat(3, 1fr); } }

.stack > * + * { margin-top: var(--space-4); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(.975); }

.btn--primary {
  background: var(--brand-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-800); color: #fff; box-shadow: var(--shadow); }

.btn--lime {
  background: var(--lime-500);
  color: var(--ink); /* 10:1 — jamais de blanc sur ambre */
  box-shadow: var(--shadow-sm);
}
.btn--lime:hover { background: var(--lime-300); color: var(--ink); box-shadow: var(--shadow); }

.btn--outline {
  background: transparent;
  color: var(--accent-text);
  border-color: var(--line-strong);
}
.btn--outline:hover { background: var(--brand-50); border-color: var(--brand-600); color: var(--brand-800); }
:root[data-theme='dark'] .btn--outline:hover { background: rgba(0,138,54,.12); color: var(--brand-100); }

.btn--ghost-light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.32);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.6); }

.btn--sm { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: var(--fs-sm); }
.btn--lg { min-height: 56px; padding: var(--space-4) var(--space-6); font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }
.btn .icon { flex-shrink: 0; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* --------------------------------------------------------------------------
   5. Icônes
   -------------------------------------------------------------------------- */
.icon {
  width: 24px; height: 24px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--brand-50);
  color: var(--brand-800);
  margin-bottom: var(--space-4);
}
:root[data-theme='dark'] .icon-badge { background: rgba(0,138,54,.14); color: var(--brand-200); }
.icon-badge--lime { background: var(--lime-100); color: var(--lime-700); }
:root[data-theme='dark'] .icon-badge--lime { background: rgba(145,192,38,.16); color: var(--lime-300); }

/* --------------------------------------------------------------------------
   6. Cartes
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.card h3 { margin-bottom: var(--space-3); }
.card p:last-child { margin-bottom: 0; }

.card--link:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
  transform: translateY(-3px);
}
:root[data-theme='dark'] .card--link:hover { border-color: var(--brand-800); }

.card--feature { padding: var(--space-6); }

/* Lien "carte entière" cliquable sans imbriquer les liens */
.card--clickable { position: relative; }
.card--clickable .stretched-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
}
.card-link .icon { transition: transform var(--dur) var(--ease-out); }
.card--link:hover .card-link .icon { transform: translateX(4px); }

/* Liste à puces vertes */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--text-muted);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .45em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300752E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section--dark .check-list li { color: #BCD4C9; }
.section--dark .check-list li::before { background-color: rgba(0,138,54,.22); }

/* --------------------------------------------------------------------------
   7. Badges & pastilles
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-family: var(--font-heading);
  background: var(--brand-50);
  color: var(--brand-800);
  border: 1px solid var(--brand-100);
}
:root[data-theme='dark'] .badge { background: rgba(0,138,54,.14); color: var(--brand-200); border-color: transparent; }
.badge--lime { background: var(--lime-100); color: var(--lime-700); border-color: var(--lime-300); }
:root[data-theme='dark'] .badge--lime { background: rgba(145,192,38,.16); color: var(--lime-300); }
.badge--neutral { background: var(--bg-sunken); color: var(--text-muted); border-color: var(--line); }

/* --------------------------------------------------------------------------
   8. En-tête & navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
/* Logo officiel (assets/img/logo-lmbecopro.png — 846 × 216) */
.logo__img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
@media (min-width: 640px) { .logo__img { height: 40px; } }

/* Le logo contient du vert foncé (#008A36) : sur fond sombre il perd en
   lisibilité. On le pose alors sur une plaque claire plutôt que d'altérer
   les couleurs de la marque. */
.logo--plate,
:root[data-theme='dark'] .header .logo {
  background: #FFFFFF;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
}
.footer .logo--plate { align-self: flex-start; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.logo__tag {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: var(--space-1); }
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav__link:hover { background: var(--bg-sunken); color: var(--text); }
.nav__link[aria-current='page'] {
  color: var(--accent-text);
  font-weight: 600;
  background: var(--brand-50);
}
:root[data-theme='dark'] .nav__link[aria-current='page'] { background: rgba(0,138,54,.14); }

.header__actions { display: flex; align-items: center; gap: var(--space-2); }
.header__cta { display: none; }
@media (min-width: 1024px) { .header__cta { display: inline-flex; } }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--bg-sunken); color: var(--text); }
.nav-toggle { display: inline-flex; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Icônes du bouton thème : une seule visible selon le mode */
.theme-toggle .icon-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: block; }

/* Menu mobile */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: none;
}
.drawer[data-open='true'] { display: block; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 12, .55);
  animation: fade-in var(--dur) var(--ease-out);
}
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(88vw, 360px);
  background: var(--bg-elevated);
  padding: var(--space-5);
  padding-bottom: max(var(--space-5), env(safe-area-inset-bottom));
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slide-in var(--dur) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.drawer__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.drawer__link:hover { background: var(--bg-sunken); }
.drawer__link[aria-current='page'] { background: var(--brand-50); color: var(--brand-800); font-weight: 600; }
:root[data-theme='dark'] .drawer__link[aria-current='page'] { background: rgba(0,138,54,.14); color: var(--brand-100); }
.drawer__footer { margin-top: auto; padding-top: var(--space-5); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(145, 192, 38, .16), transparent 62%),
    radial-gradient(760px 460px at 4% 8%, rgba(0, 138, 54, .13), transparent 60%),
    var(--bg);
  padding-block: var(--space-8) var(--space-8);
}
@media (min-width: 900px) { .hero { padding-block: var(--space-9); } }

.hero__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--space-8); }
}
.hero__lede {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-6);
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
}
.hero__trust .icon { color: var(--brand-600); }
.hero__art { position: relative; }

/* --------------------------------------------------------------------------
   10. Statistiques
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { text-align: center; }
.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.section--dark .stat__value { color: var(--lime-400); }
.stat__label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.section--dark .stat__label { color: #BCD4C9; }

/* --------------------------------------------------------------------------
   11. Étapes / processus
   -------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } }

.step { position: relative; margin: 0; padding-top: var(--space-5); }
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--line);
  border-radius: var(--radius-full);
}
.step.is-active::before { background: var(--lime-500); }
.step__num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--lime-700);
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}
.section--dark .step__num { color: var(--lime-400); }
.section--dark .step::before { background: rgba(255,255,255,.16); }
.step h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.step p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   12. Témoignages
   -------------------------------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.quote__text {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: var(--space-5);
  flex-grow: 1;
}
.quote__text::before { content: '\201C'; color: var(--lime-500); font-weight: 700; }
.quote__text::after { content: '\201D'; color: var(--lime-500); font-weight: 700; }
.quote__author { display: flex; align-items: center; gap: var(--space-3); }
.quote__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-800);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
:root[data-theme='dark'] .quote__avatar { background: rgba(0,138,54,.2); color: var(--brand-100); }
.quote__name { font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }
.quote__role { font-size: var(--fs-xs); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   13. Accordéon (FAQ)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 64px;
  padding: var(--space-4) 0;
  background: none;
  border: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.accordion__trigger:hover { color: var(--accent-text); }
.accordion__trigger .icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease-out);
}
.accordion__trigger[aria-expanded='true'] .icon { transform: rotate(45deg); color: var(--brand-700); }
.accordion__panel { display: none; padding-bottom: var(--space-5); }
.accordion__panel[data-open='true'] { display: block; }
.accordion__panel p { color: var(--text-muted); margin-bottom: 0; }
.accordion__panel p + p { margin-top: var(--space-3); }

/* --------------------------------------------------------------------------
   14. Formulaires
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
.field__req { color: var(--danger); margin-left: 2px; }
.field__hint { font-size: var(--fs-xs); color: var(--text-muted); }

.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-base); /* 16px : évite le zoom auto iOS */
  color: var(--text);
  background: var(--bg-elevated);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--brand-500); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(0, 138, 54, .18);
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475A52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 20px;
  padding-right: var(--space-8);
}
:root[data-theme='dark'] .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8BFB6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--danger); }
.field__error {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--danger);
}
.field.is-invalid .field__error { display: flex; }

.checkbox { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.checkbox input {
  width: 22px; height: 22px;
  margin: 2px 0 0;
  accent-color: var(--brand-700);
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox span { font-size: var(--fs-sm); color: var(--text-muted); }

.form-status {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  border: 1px solid;
}
.form-status[data-state='success'] {
  display: flex;
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-900);
}
:root[data-theme='dark'] .form-status[data-state='success'] {
  background: rgba(0,138,54,.14); border-color: var(--brand-800); color: var(--brand-100);
}
.form-status[data-state='error'] {
  display: flex;
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}
:root[data-theme='dark'] .form-status[data-state='error'] {
  background: rgba(185,28,28,.16); border-color: #7F1D1D; color: #FECACA;
}
.form-status .icon { flex-shrink: 0; margin-top: 1px; }

/* --------------------------------------------------------------------------
   15. Bandeau CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(680px 340px at 82% 0%, rgba(145, 192, 38, .22), transparent 62%),
    var(--brand-950);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  color: #EAF4EF;
}
@media (min-width: 768px) { .cta-band { padding: var(--space-8) var(--space-7); } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #BCD4C9; margin-inline: auto; margin-bottom: var(--space-6); }
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   16. Fil d'Ariane & bandeau de page
   -------------------------------------------------------------------------- */
.page-head {
  background:
    radial-gradient(700px 340px at 90% 0%, rgba(145, 192, 38, .12), transparent 62%),
    var(--bg-sunken);
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: var(--space-3); }
.page-head p { font-size: var(--fs-md); color: var(--text-muted); margin-bottom: 0; }

.breadcrumb { margin-bottom: var(--space-4); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0; margin: 0;
  font-size: var(--fs-sm);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: var(--space-2); color: var(--text-muted); }
.breadcrumb li + li::before { content: '/'; color: var(--text-subtle); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); text-decoration: underline; }
.breadcrumb [aria-current='page'] { color: var(--text); font-weight: 500; }

/* --------------------------------------------------------------------------
   17. Pied de page
   -------------------------------------------------------------------------- */
.footer {
  background: var(--brand-950);
  color: #BCD4C9;
  padding-block: var(--space-8) var(--space-5);
  margin-top: var(--space-8);
}
.footer a { color: #BCD4C9; text-decoration: none; }
.footer a:hover { color: var(--lime-400); text-decoration: underline; }
.footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-7); } }

.footer .logo { color: #fff; }
.footer .logo__tag { color: #8FB0A3; }
.footer__about { font-size: var(--fs-sm); margin-top: var(--space-4); max-width: 38ch; }
.footer h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: var(--space-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--space-3); font-size: var(--fs-sm); }
.footer__contact li { display: flex; align-items: flex-start; gap: var(--space-3); }
.footer__contact .icon { color: var(--lime-400); flex-shrink: 0; margin-top: 2px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-xs);
  color: #8FB0A3;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* --------------------------------------------------------------------------
   18. Bouton WhatsApp flottant
   -------------------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  right: var(--space-4);
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #03291A;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease-out);
}
.whatsapp-fab:hover { transform: scale(1.06); color: #03291A; }
.whatsapp-fab svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }

/* --------------------------------------------------------------------------
   19. Médias : illustrations et photos de personnes
   Les illustrations SVG livrées sont des placeholders : déposez une vraie
   photo au même chemin (ou changez le src) et le cadrage reste identique.
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-sunken);
  border: 1px solid var(--line);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--wide   { aspect-ratio: 4 / 3; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall   { aspect-ratio: 3 / 4; }

/* Portraits : le visage se situe dans le tiers supérieur, on décale le cadrage
   pour qu'il ne soit pas rogné par object-fit: cover. */
.media--face img { object-position: center 20%; }

/* Carte « personne » : visuel en haut, texte dessous */
.person { padding: 0; overflow: hidden; }
.person .media { border: 0; border-radius: 0; aspect-ratio: 4 / 3; }
.person__body { padding: var(--space-5); }
.person__body h3 { margin-bottom: var(--space-2); }
.person__body p:last-child { margin-bottom: 0; }
.person__role {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-2);
}

/* Avatar circulaire (témoignages) */
.avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-100);
  border: 2px solid var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bande d'illustrations pleine largeur */
.people-strip { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .people-strip { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   20. Bandeau partenaire
   -------------------------------------------------------------------------- */
.partner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
  .partner { grid-template-columns: 300px 1fr; padding: var(--space-7); gap: var(--space-7); }
}

/* Emplacement du badge partenaire officiel.
   Aucun logo n'est dessiné ici : déposez l'asset fourni par le partenaire. */
.partner__badge {
  display: grid;
  place-items: center;
  gap: var(--space-2);
  min-height: 150px;
  padding: var(--space-5);
  text-align: center;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-sunken);
  color: var(--text-muted);
}
.partner__badge img { max-height: 96px; width: auto; }
.partner__badge-hint {
  font-size: var(--fs-xs);
  line-height: 1.45;
  max-width: 30ch;
}
.partner__name {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

/* --------------------------------------------------------------------------
   21. Simulateur de dimensionnement
   -------------------------------------------------------------------------- */
.simu { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) {
  .simu { grid-template-columns: 1fr 400px; gap: var(--space-7); }
}

.simu__panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .simu__panel { padding: var(--space-6); } }
.simu__panel + .simu__panel { margin-top: var(--space-5); }

.simu__panel-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}
.simu__panel-title .step-dot {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.simu__panel-note { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-5); }

/* Liste d'appareils */
.appliance-group + .appliance-group { margin-top: var(--space-5); }
.appliance-group__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-3);
}

.appliance {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  transition: background var(--dur-fast) var(--ease-out);
}
.appliance.is-on { background: var(--brand-50); }
:root[data-theme='dark'] .appliance.is-on { background: rgba(0,138,54,.10); }
@media (min-width: 560px) {
  .appliance { grid-template-columns: 1fr auto auto; align-items: center; gap: var(--space-4); }
}

.appliance__info { min-width: 0; }
.appliance__name { font-weight: 600; font-size: var(--fs-sm); display: block; line-height: 1.35; }
.appliance__power {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.appliance__control { display: flex; align-items: center; gap: var(--space-2); }
.appliance__control label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 42px;
}
.appliance__control input {
  width: 74px;
  min-height: 44px;
  padding: var(--space-2);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.appliance__control input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(0, 138, 54, .18);
}

/* Panneau de résultats */
.results { position: static; }
@media (min-width: 1024px) {
  .results { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
}

.result-hero {
  background:
    radial-gradient(420px 220px at 88% 0%, rgba(145, 192, 38, .22), transparent 62%),
    var(--brand-950);
  color: #EAF4EF;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.result-hero__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--lime-400);
  font-weight: 700;
  display: block;
  margin-bottom: var(--space-2);
}
.result-hero__value {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 7vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  display: block;
}
.result-hero__unit { font-size: var(--fs-lg); color: var(--lime-400); margin-left: var(--space-2); }
.result-hero__sub { font-size: var(--fs-sm); color: #BCD4C9; margin: var(--space-3) 0 0; }

.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  font-size: var(--fs-sm);
}
.result-list li:last-child { border-bottom: 0; }
.result-list dt, .result-list .r-label { color: var(--text-muted); }
.result-list .r-value {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.result-list .r-value--accent { color: var(--accent-text); }

.result-budget {
  background: var(--lime-100);
  border: 1px solid var(--lime-300);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-top: var(--space-4);
}
:root[data-theme='dark'] .result-budget {
  background: rgba(145,192,38,.12);
  border-color: rgba(145,192,38,.34);
}
.result-budget__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--lime-700);
  margin-bottom: var(--space-2);
}
:root[data-theme='dark'] .result-budget__label { color: var(--lime-300); }
.result-budget__value {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.result-empty { text-align: center; padding: var(--space-6) var(--space-4); color: var(--text-muted); }
.result-empty .icon { margin: 0 auto var(--space-4); color: var(--text-subtle); }

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime-500);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.disclaimer .icon { flex-shrink: 0; color: var(--lime-700); margin-top: 2px; }
:root[data-theme='dark'] .disclaimer .icon { color: var(--lime-400); }
.disclaimer p { margin: 0; }
.disclaimer p + p { margin-top: var(--space-2); }

/* --------------------------------------------------------------------------
   22. Animations d'apparition
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Décalage en cascade — 40ms par élément */
.reveal-group > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 60ms; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 120ms; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 180ms; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 240ms; }
.reveal-group > .reveal:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
