/* ==========================================================================
   RÉNOV CHALEUR — Design system
   Lead-gen pompe à chaleur & aides de l'État. Palette : vert pin + ambre chaleur.
   Trust-first (secteur sensible à la fraude) : sobre, transparent, premium.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Marque */
  --pine:        #0C2A20;   /* vert profond, ink de marque */
  --pine-800:    #103a2c;
  --emerald:     #0E9E6E;   /* action / éco */
  --emerald-deep:#0B7A54;
  --emerald-050: #EAF7F1;
  --amber:       #F4A72C;   /* chaleur / mise en avant chiffres */
  --amber-deep:  #D98314;
  --amber-050:   #FEF5E7;

  /* Neutres chauds */
  --paper:   #FBF9F5;       /* fond de page (blanc cassé chaud) */
  --surface: #FFFFFF;
  --surface-2:#F4F1EA;
  --ink:     #16241D;       /* texte principal */
  --ink-2:   #56655D;       /* texte secondaire */
  --ink-3:   #8A968E;       /* texte tertiaire */
  --line:    #E7E2D8;       /* bordures */
  --line-2:  #F0ECE3;

  /* Sémantique */
  --primary: var(--emerald-deep);
  --primary-h: var(--emerald);
  --danger:  #DC2626;
  --danger-050:#FDECEC;
  --success: var(--emerald);

  /* Rayons & ombres */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --sh-1: 0 1px 2px rgba(12,42,32,.06), 0 1px 3px rgba(12,42,32,.05);
  --sh-2: 0 4px 12px rgba(12,42,32,.07), 0 2px 4px rgba(12,42,32,.05);
  --sh-3: 0 18px 44px rgba(12,42,32,.12), 0 6px 14px rgba(12,42,32,.07);
  --sh-emerald: 0 10px 26px rgba(11,122,84,.28);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --nav-h: 68px;
}

[data-theme="dark"] {
  --paper:   #0B1712;
  --surface: #12211A;
  --surface-2:#182C23;
  --ink:     #ECF3EF;
  --ink-2:   #A6B7AE;
  --ink-3:   #7C8D84;
  --line:    #24382E;
  --line-2:  #1B2C24;
  --emerald-050:#12281F;
  --amber-050: #2A2213;
  --primary: var(--emerald);
  --sh-1: 0 1px 2px rgba(0,0,0,.3);
  --sh-2: 0 4px 12px rgba(0,0,0,.35);
  --sh-3: 0 18px 44px rgba(0,0,0,.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--emerald-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
::selection { background: var(--amber); color: var(--pine); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 650; font-size: 12.5px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--emerald-deep);
}
.muted { color: var(--ink-2); }
.center { text-align: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 640; font-size: 15.5px; letter-spacing: -.01em;
  white-space: nowrap; transition: transform .16s, box-shadow .16s, background .16s;
}
.btn svg { flex: none; }
.btn-primary { background: var(--emerald-deep); color: #fff; box-shadow: var(--sh-emerald); }
.btn-primary:hover { background: var(--emerald); transform: translateY(-1px); text-decoration: none; }
.btn-amber { background: var(--amber); color: var(--pine); box-shadow: 0 10px 24px rgba(217,131,20,.28); }
.btn-amber:hover { background: var(--amber-deep); color:#fff; transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald-deep); text-decoration: none; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-back { background: none; border: none; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 8px 4px; }
.btn-back:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(150deg, var(--emerald) 0%, var(--pine-800) 100%);
  display: grid; place-items: center; box-shadow: var(--sh-1);
}
.brand-mark svg { color: #fff; }
.brand small { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--emerald-deep); margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--ink-2); font-weight: 560; font-size: 14.5px; padding: 8px 13px; border-radius: 9px; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; }
.theme-toggle:hover { color: var(--emerald-deep); border-color: var(--emerald); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 62px 0 26px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 85% -10%, var(--amber-050) 0%, transparent 55%),
    radial-gradient(60% 55% at 8% 0%, var(--emerald-050) 0%, transparent 50%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.hero h1 { font-size: clamp(34px, 4.6vw, 55px); letter-spacing: -.022em; }
.hero h1 .hl { color: var(--emerald-deep); font-style: italic; }
.hero-lead { font-size: 18.5px; color: var(--ink-2); margin-top: 18px; max-width: 33ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 560; color: var(--ink-2); }
.hero-badge svg { color: var(--emerald); flex: none; }
.hero-official {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 15px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1); font-size: 13px; color: var(--ink-2);
}
.hero-official strong { color: var(--ink); font-weight: 640; }

/* ---------- Form shell (simulateur) ---------- */
.form-shell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-3); overflow: hidden; position: relative;
}
.form-head { padding: 22px 26px 0; }
.form-head-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-head h2 { font-size: 21px; }
.step-count { font-size: 12.5px; font-weight: 640; color: var(--emerald-deep); background: var(--emerald-050); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.form-head > p { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.progress-track { height: 6px; border-radius: 999px; background: var(--surface-2); margin: 16px 0 0; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald) 0%, var(--amber) 130%); transition: width .5s cubic-bezier(.22,1,.36,1); }
.form-body { padding: 22px 26px 6px; }
.form-step h3 { font-size: 20px; }
.step-hint { color: var(--ink-2); font-size: 14px; margin-top: 7px; margin-bottom: 18px; }

/* choix (cartes) */
.choice-grid { display: grid; gap: 10px; }
.choice-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 15px 16px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .15s, background .15s, transform .12s;
}
.choice-card:hover { border-color: var(--emerald); transform: translateY(-1px); }
.choice-card.selected { border-color: var(--emerald-deep); background: var(--emerald-050); }
.choice-card .c-icon { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--emerald-deep); }
.choice-card.selected .c-icon { background: var(--emerald-deep); color: #fff; }
.choice-card strong { display: block; font-size: 15.5px; font-weight: 620; }
.choice-card small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 1px; }

/* switches */
.switch-list { display: grid; gap: 9px; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .15s, background .15s;
}
.switch-row:hover { border-color: var(--emerald); }
.switch-row.on { border-color: var(--emerald-deep); background: var(--emerald-050); }
.sw-label { display: block; font-weight: 580; font-size: 15px; }
.sw-sub { display: block; color: var(--ink-2); font-size: 12.7px; margin-top: 1px; }
.sw-critical { display: inline-block; margin-left: 8px; font-family: var(--font-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--amber-deep); background: var(--amber-050); padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.ios-switch { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.ios-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .2s; }
.switch-row.on .ios-switch { background: var(--emerald-deep); }
.switch-row.on .ios-switch::after { transform: translateX(18px); }

/* chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 560; font-size: 14px; color: var(--ink); transition: all .14s; }
.chip svg { opacity: 0; width: 14px; transition: opacity .14s; color: var(--emerald-deep); }
.chip:hover { border-color: var(--emerald); }
.chip.selected { border-color: var(--emerald-deep); background: var(--emerald-050); color: var(--emerald-deep); }
.chip.selected svg { opacity: 1; }

/* fields (segments) */
.fieldset-label { font-weight: 600; font-size: 14px; margin: 16px 0 8px; }
.fieldset-label:first-child { margin-top: 0; }
.seg-group { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn { padding: 10px 15px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 560; font-size: 14px; color: var(--ink); transition: all .14s; }
.seg-btn:hover { border-color: var(--emerald); }
.seg-btn.selected { border-color: var(--emerald-deep); background: var(--emerald-deep); color: #fff; }

/* contact */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 580; font-size: 13.5px; color: var(--ink); }
.field input {
  padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-050); }
.field input.error { border-color: var(--danger); }
.err-msg { display: none; font-size: 12px; color: var(--danger); }
.field.has-error .err-msg { display: block; }

.consent-row {
  display: flex; align-items: flex-start; gap: 11px; margin-top: 16px; padding: 13px 15px;
  border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface-2); cursor: pointer;
}
.consent-row p { font-size: 12.7px; color: var(--ink-2); line-height: 1.5; }
.consent-row .checkbox, .rebound-box .checkbox {
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); background: var(--surface);
  flex: none; display: grid; place-items: center; color: #fff; transition: all .14s;
}
.consent-row .checkbox svg, .rebound-box .checkbox svg { opacity: 0; }
.consent-row.checked .checkbox, .rebound-box.checked .checkbox { background: var(--emerald-deep); border-color: var(--emerald-deep); }
.consent-row.checked .checkbox svg, .rebound-box.checked .checkbox svg { opacity: 1; }
.consent-row.error-flash { animation: shake .4s; border-color: var(--danger); }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
.rebound-box { display: flex; align-items: flex-start; gap: 11px; margin-top: 14px; padding: 13px 15px; border-radius: var(--r); border: 1.5px dashed var(--emerald); background: var(--emerald-050); cursor: pointer; }
.rebound-box p { font-size: 13.5px; font-weight: 560; color: var(--ink); }
.rebound-box small { display: block; font-size: 12.3px; color: var(--ink-2); margin-top: 2px; }

.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.form-nav > span { flex: 1; }
.confid-badge, .estim-teaser { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--emerald-deep); background: var(--emerald-050); padding: 7px 12px; border-radius: 999px; margin-bottom: 14px; }

.form-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 26px; border-top: 1px solid var(--line-2); background: var(--surface-2); }
.form-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.3px; font-weight: 560; color: var(--ink-2); }
.form-trust svg { color: var(--emerald); flex: none; }

/* ---------- Sections génériques ---------- */
section { padding: 60px 0; }
.sec-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.sec-head h2 { font-size: clamp(27px, 3.4vw, 38px); }
.sec-head p { color: var(--ink-2); font-size: 17px; margin-top: 12px; }

/* aides breakdown */
.band { background: var(--pine); color: #F3F1EA; }
.band .eyebrow { color: var(--amber); }
.band h2, .band h3 { color: #fff; }
.band .muted { color: #B9C6BE; }
.aides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 12px; }
.aide-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 22px; }
.aide-card .a-amount { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--amber); letter-spacing: -.02em; }
.aide-card h3 { font-size: 17px; margin-top: 6px; }
.aide-card p { font-size: 13.3px; color: #B9C6BE; margin-top: 7px; }
.aides-total { margin-top: 22px; text-align: center; font-size: 15px; color: #B9C6BE; }
.aides-total strong { color: var(--amber); font-size: 19px; font-family: var(--font-display); }

/* steps (comment ça marche) */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-item { position: relative; padding: 26px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
.step-num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #fff; background: linear-gradient(150deg, var(--emerald), var(--pine-800)); margin-bottom: 15px; }
.step-item h3 { font-size: 18px; }
.step-item p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }

/* bento avantages */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-card { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
.bento-card .b-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--emerald-050); color: var(--emerald-deep); margin-bottom: 14px; }
.bento-card h3 { font-size: 18px; }
.bento-card p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }

/* RGE / trust strip */
.trust-strip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.trust-list { display: grid; gap: 14px; margin-top: 20px; }
.trust-list li { display: flex; gap: 12px; list-style: none; }
.trust-list .ti { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--emerald-050); color: var(--emerald-deep); }
.trust-list strong { font-weight: 620; }
.trust-list span { color: var(--ink-2); font-size: 14.3px; }
.trust-visual { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); border: 1px solid var(--line); }
.trust-visual img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 11px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; font-weight: 600; font-size: 16px; color: var(--ink); background: none; border: none; }
.faq-q .chev { transition: transform .2s; color: var(--ink-3); flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--ink-2); font-size: 14.7px; }

/* maillage interne (pages villes / guides) */
.mesh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 0 auto; }
.mesh-col { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
.mesh-col h4 { font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.mesh-link { display: block; color: var(--ink-2); font-size: 14.5px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.mesh-link:hover { color: var(--emerald-deep); text-decoration: none; }
.mesh-link:last-child { border-bottom: none; }
.mesh-all { color: var(--emerald-deep); font-weight: 600; }

/* bande photo ville (rotative) */
.city-photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-2); position: relative; }
.city-photo img { display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.city-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 22px 14px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(8,24,18,.78)); }
@media (max-width: 640px) { .city-photo img { aspect-ratio: 16 / 10; } }

/* guides */
.guide-hero { padding: 54px 0 20px; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--ink-3); font-size: 13px; }
.guide-body { max-width: 760px; margin: 0 auto; padding: 10px 0 30px; }
.guide-body h2 { font-size: 24px; margin: 32px 0 10px; }
.guide-body h3 { font-size: 18px; margin: 22px 0 8px; }
.guide-body p, .guide-body li { color: var(--ink-2); font-size: 16px; margin-bottom: 12px; }
.guide-body ul { padding-left: 22px; margin-bottom: 14px; }
.guide-body .lead { font-size: 18.5px; color: var(--ink); }
.guide-callout { margin: 22px 0; padding: 18px 22px; border-radius: var(--r); background: var(--emerald-050); border: 1px solid var(--line); }
.guide-callout strong { color: var(--emerald-deep); }
.guide-cta { margin: 30px 0; padding: 26px; border-radius: var(--r-lg); background: linear-gradient(150deg, var(--pine-800), var(--pine)); color: #fff; text-align: center; }
.guide-cta h3 { color: #fff; font-size: 21px; }
.guide-cta p { color: #C6D2CA; margin: 8px 0 16px; }
.guide-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.guide-table th, .guide-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.guide-table th { background: var(--surface-2); font-weight: 640; color: var(--ink); }
.guide-table td { color: var(--ink-2); }
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.guide-card { display: block; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); text-decoration: none; }
.guide-card .g-eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald-deep); }
.guide-card h3 { font-size: 19px; margin: 8px 0; color: var(--ink); }
.guide-card p { color: var(--ink-2); font-size: 14px; }

/* CTA final */
.cta-final { text-align: center; }
.cta-card { max-width: 720px; margin: 0 auto; padding: 46px 34px; border-radius: var(--r-xl); background: linear-gradient(150deg, var(--pine-800), var(--pine)); color: #fff; box-shadow: var(--sh-3); }
.cta-card--photo { background-image: linear-gradient(150deg, rgba(16,58,44,.90), rgba(12,42,32,.93)), url("../img/pac-unit.jpg"); background-size: cover; background-position: center; }
.trust-visual { aspect-ratio: 3 / 2; }
.trust-visual picture, .trust-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-card h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); }
.cta-card p { color: #C6D2CA; margin-top: 12px; font-size: 16.5px; }
.cta-card .btn { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 52px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand p { color: var(--ink-2); font-size: 13.7px; margin-top: 12px; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: var(--emerald-deep); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.footer-bottom p { color: var(--ink-3); font-size: 12.7px; }
.footer-disclaimer { color: var(--ink-3); font-size: 11.8px; line-height: 1.6; margin-top: 14px; max-width: 78ch; }

/* legal pages */
.legal-page { max-width: 780px; margin: 0 auto; padding: 44px 0; }
.legal-page h1 { font-size: 34px; margin-bottom: 8px; }
.legal-page h2 { font-size: 21px; margin: 30px 0 10px; }
.legal-page p, .legal-page li { color: var(--ink-2); font-size: 15px; margin-bottom: 10px; }
.legal-page ul { padding-left: 20px; }
.legal-updated { color: var(--ink-3); font-size: 13px; margin-bottom: 20px; }

/* merci */
.merci-wrap { max-width: 720px; margin: 0 auto; padding: 50px 0; text-align: center; }
.merci-check { width: 78px; height: 78px; border-radius: 50%; background: var(--emerald-050); color: var(--emerald-deep); display: grid; place-items: center; margin: 0 auto 22px; }
.merci-wrap h1 { font-size: clamp(30px, 4vw, 42px); }
.merci-wrap > p { font-size: 17.5px; color: var(--ink-2); margin-top: 12px; }
.estim-card { margin: 34px auto 0; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); overflow: hidden; text-align: left; }
.estim-head { background: var(--pine); color: #fff; padding: 20px 26px; }
.estim-head .eyebrow { color: var(--amber); }
.estim-head h2 { color: #fff; font-size: 22px; margin-top: 4px; }
.estim-body { padding: 22px 26px; }
.estim-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.estim-row:last-child { border-bottom: none; }
.estim-row .er-label { display: flex; flex-direction: column; }
.estim-row .er-label strong { font-weight: 600; font-size: 15px; }
.estim-row .er-label small { color: var(--ink-2); font-size: 12.5px; }
.estim-row .er-amount { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--emerald-deep); white-space: nowrap; }
.estim-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 16px 20px; border-radius: var(--r); background: var(--amber-050); }
.estim-total strong { font-size: 15.5px; }
.estim-total .et-amount { font-family: var(--font-display); font-weight: 640; font-size: 26px; color: var(--amber-deep); }
.estim-note { font-size: 12.3px; color: var(--ink-3); margin-top: 16px; line-height: 1.55; }

/* reste à charge (boîte émeraude, distincte de la boîte ambre des aides) */
.estim-reste { margin-top: 16px; padding-top: 4px; }
.er-cost { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-2); padding: 4px 2px 12px; }
.er-cost span:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.er-reste-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: var(--r); background: var(--emerald-050); border: 1px solid var(--emerald); }
.er-reste-box strong { font-size: 15.5px; }
.er-reste-box small { font-weight: 500; color: var(--ink-2); }
.err-amount { font-family: var(--font-display); font-weight: 640; font-size: 26px; color: var(--emerald-deep); white-space: nowrap; }
.er-note { font-size: 12px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }

/* simulateur embarquable (iframe partenaire) */
.embed-body { background: var(--paper); }
.embed-wrap { max-width: 560px; margin: 0 auto; padding: 14px 12px 18px; }
.embed-credit { text-align: center; font-size: 11.8px; color: var(--ink-3); margin-top: 12px; }
.embed-credit a { color: var(--emerald-deep); font-weight: 600; }

/* blocs de code (page d'intégration) */
.code-block { position: relative; margin-top: 12px; }
.code-block pre { background: var(--pine); color: #DCEAE2; border-radius: var(--r); padding: 46px 18px 18px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.8px; line-height: 1.6; margin: 0; }
.code-copy { position: absolute; top: 10px; right: 10px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); color: #fff; font-size: 12px; font-weight: 600; }
.code-copy:hover { background: rgba(255,255,255,.2); }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

/* page devenir partenaire */
.partner-wrap { max-width: 760px; margin: 0 auto; }
.partner-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 10px; }
.partner-step { padding: 22px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
.partner-step .ps-num { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; background: linear-gradient(150deg, var(--emerald), var(--pine-800)); margin-bottom: 12px; }
.partner-step h3 { font-size: 16.5px; }
.partner-step p { color: var(--ink-2); font-size: 13.8px; margin-top: 6px; }
.partner-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 26px; margin-top: 8px; }
.partner-card h2 { font-size: 22px; }
.partner-card > p { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; margin-bottom: 18px; }
.partner-perks { display: grid; gap: 10px; margin: 0 auto 30px; max-width: 620px; }
.partner-perks li { list-style: none; display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: 14.5px; }
.partner-perks .pp-ico { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--emerald-050); color: var(--emerald-deep); }
.partner-perks strong { color: var(--ink); font-weight: 620; }
.partner-ok { text-align: center; padding: 40px 20px; }
.partner-ok .merci-check { margin-bottom: 18px; }
.next-steps { margin-top: 30px; text-align: left; background: var(--surface-2); border-radius: var(--r-lg); padding: 22px 24px; }
.next-steps h3 { font-size: 17px; margin-bottom: 12px; }
.next-steps li { list-style: none; display: flex; gap: 10px; padding: 6px 0; color: var(--ink-2); font-size: 14.3px; }
.next-steps svg { color: var(--emerald); flex: none; margin-top: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-lead { max-width: none; }
  .aides-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid, .bento { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .nav-links { display: none; }
  .burger { display: grid; place-items: center; }
  .nav-links.open { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px; gap: 2px; }
  .nav-links.open a { padding: 12px 14px; }
}
/* CTA affiché dans le menu burger quand il disparaît du header (voir ≤560px) */
.nav-cta-mobile { display: none; }

@media (max-width: 640px) {
  /* grilles récentes qui restaient en 2-3 colonnes sur téléphone */
  .mesh-grid, .guides-grid, .partner-steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* le CTA du header pousse le burger hors écran sur petits mobiles :
     on le bascule dans le menu, la marque est allégée. */
  .nav-right .btn { display: none; }
  .brand small { display: none; }
  .brand { font-size: 18px; }
  .nav-links.open .nav-cta-mobile { display: block; color: var(--emerald-deep); font-weight: 650; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .aides-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { white-space: normal; }
  /* gros CTA : autorise le retour à la ligne pour ne pas déborder sur petits mobiles */
  .cta-card { padding: 34px 20px; }
  .cta-card .btn, .guide-cta .btn, .partner-card .btn-lg { white-space: normal; width: 100%; text-align: center; }
  .form-nav { flex-wrap: wrap; }
  .form-nav .btn-lg { width: 100%; white-space: normal; text-align: center; }
  section { padding: 46px 0; }
}
