/* Wattivo (société Nexora Power) — feuille de style unique.
   Polices hébergées sur le site (aucun appel à Google Fonts : rien n'est
   transmis à un tiers), sous-ensemble latin, français compris.
   Sora (titres) et Inter (texte) : licence SIL OFL 1.1, voir assets/fonts. */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* Polices de secours recalées sur Sora et Inter (largeur et interlignage
   mesurés sur les fichiers) : la page ne « saute » pas quand elles arrivent. */
@font-face { font-family: "Sora Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arial"); size-adjust: 106.8%; ascent-override: 90.85%; descent-override: 27.16%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Liberation Sans"); size-adjust: 106.85%; ascent-override: 90.66%; descent-override: 22.57%; line-gap-override: 0%; }

:root {
  --ink: #0B1B2B;
  --text: #2B3A4A;
  --muted: #566573;
  --line: #E3E8ED;
  --line-strong: #7D8C9B;   /* bordure des champs : contraste 3:1 sur blanc */
  --bg: #FFFFFF;
  --soft: #F5F8F7;
  --mint: #EAF6F2;
  --mint-2: #D5EEE6;
  --brand: #0C6E5A;
  --brand-hover: #095847;
  --brand-ink: #0A5B4B;
  --brand-bright: #16A085;
  --sun: #FFC24B;
  --sun-deep: #F2A81D;
  --sun-ink: #8A5300;
  --sun-soft: #FFF5DF;
  --danger: #B42318;
  --danger-soft: #FEF0EE;
  --night: #0B1B2B;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 43, .06), 0 1px 1px rgba(11, 27, 43, .04);
  --shadow: 0 12px 32px -14px rgba(11, 27, 43, .22), 0 2px 6px rgba(11, 27, 43, .05);
  --shadow-lg: 0 40px 80px -32px rgba(11, 27, 43, .32), 0 8px 24px -12px rgba(11, 27, 43, .12);

  --font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", "Sora Fallback", "Inter", system-ui, sans-serif;
  --wrap: 1160px;
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -.022em; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(12, 110, 90, .45); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mint-2); color: var(--ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Bandeau France Rénov' (mention obligatoire, jamais masquée) ---------- */
.fr-banner {
  background: #EEF3F7;
  border-bottom: 1px solid #DCE5EC;
  color: #33475B;
  font-size: .875rem;
  line-height: 1.45;
}
.fr-banner .wrap { display: flex; align-items: center; gap: 10px; padding-block: 9px; }
.fr-banner svg { flex: none; width: 18px; height: 18px; color: #1E3A5F; }
.fr-banner a { color: #1E3A5F; font-weight: 600; white-space: nowrap; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 27, 43, .35); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.035em; line-height: 1; padding-bottom: 3px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: .95rem; padding: 8px 10px; border-radius: 999px; }
.header-phone svg { width: 18px; height: 18px; color: var(--brand); }
.header-phone:hover { background: var(--soft); color: var(--ink); }
.header-cta .short { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(12, 110, 90, .75); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(12, 110, 90, .8); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); border-color: var(--line-strong); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { background: var(--mint); color: var(--brand-hover); transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Héros ---------- */
.hero {
  position: relative;
  padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(720px 420px at 92% -8%, rgba(255, 194, 75, .22), transparent 62%),
    radial-gradient(760px 560px at -12% 4%, rgba(22, 160, 133, .14), transparent 62%),
    linear-gradient(180deg, #F6FAF8 0%, #FFFFFF 78%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  grid-template-areas: "intro form" "extra form"; grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 72px); align-items: start;
}
.hero-intro { grid-area: intro; padding-top: clamp(8px, 3vw, 40px); }
.hero-form { grid-area: form; }
.hero-extra { grid-area: extra; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 8px; font-size: .875rem; font-weight: 500; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.eyebrow .pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; background: var(--mint); color: var(--brand-ink); font-weight: 600; border-radius: 999px; padding: 2px 10px; font-size: .8125rem; }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 650;
}
.hero h1 .hl {
  background: linear-gradient(92deg, #0A5B4B 0%, #13937A 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.2rem); color: var(--muted); max-width: 34em; }
.checks { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checks .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: var(--brand); display: grid; place-items: center; margin-top: 1px; }
.checks .tick svg { width: 14px; height: 14px; }
.hero-promo {
  margin-top: 32px; display: flex; gap: 14px; align-items: center;
  background: linear-gradient(120deg, #FFF8E8, #FFFDF7);
  border: 1px solid #F6E2B4; border-radius: var(--radius);
  padding: 14px 16px; max-width: 30rem;
}
.hero-promo .sun-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--sun); display: grid; place-items: center; color: #6B4100; }
.hero-promo .sun-ico svg { width: 24px; height: 24px; }
.hero-promo strong { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.hero-promo span { display: block; margin-top: 3px; color: var(--sun-ink); font-size: .875rem; line-height: 1.5; }
.hero-promo a { color: var(--sun-ink); font-weight: 600; }

/* ---------- Carte formulaire ---------- */
.form-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 2.6vw, 32px);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.form-head h2 { font-size: 1.3rem; letter-spacing: -.02em; }
.form-head .sub { color: var(--muted); font-size: .875rem; margin-top: 2px; }
.form-head .step-count { flex: none; font-size: .8125rem; font-weight: 600; color: var(--brand-ink); background: var(--mint); border-radius: 999px; padding: 4px 10px; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 22px; }
.progress span { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; position: relative; }
.progress span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.progress span.is-done::after, .progress span.is-current::after { transform: scaleX(1); }
.progress span.is-current::after { opacity: .55; }

.step-title { font-size: 1.125rem; letter-spacing: -.015em; margin-bottom: 4px; outline: none; }
.step-intro { color: var(--muted); font-size: .9375rem; margin-bottom: 18px; }
.step { animation: step-in .32s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .label { display: block; font-weight: 600; color: var(--ink); font-size: .9375rem; margin-bottom: 10px; padding: 0; }
.label .opt, legend .opt { font-weight: 400; color: var(--muted); }
.group + .group, .group + .field, .field + .group, .field + .field, .row + .group, .group + .row, .row + .field, .field + .row, .row + .row { margin-top: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row .field + .field { margin-top: 0; }

/* Tuiles (grands choix à une réponse) */
.tiles { display: grid; gap: 10px; }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-face {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.tile:hover .tile-face { border-color: #B9C6D1; box-shadow: var(--shadow-sm); }
.tile-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--brand); transition: background .15s, color .15s; }
.tile-ico svg { width: 26px; height: 26px; }
.tile-ico.is-sun { color: #A36200; }
.tile-title { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; }
.tile-desc { display: block; color: var(--muted); font-size: .875rem; line-height: 1.4; margin-top: 2px; }
.tile-radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: border-color .15s, background .15s; }
.tile-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s; }
.tile input:checked + .tile-face { border-color: var(--brand); background: #F7FCFA; box-shadow: 0 0 0 3px rgba(12, 110, 90, .1); }
.tile input:checked + .tile-face .tile-ico { background: var(--brand); color: #fff; }
.tile input:checked + .tile-face .tile-radio { border-color: var(--brand); background: var(--brand); }
.tile input:checked + .tile-face .tile-radio::after { transform: scale(1); }
.tile input:focus-visible + .tile-face { outline: 3px solid rgba(12, 110, 90, .45); outline-offset: 2px; }

/* Pastilles (choix courts) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.cols-2, .chips.cols-3, .chips.cols-4 { display: grid; }
.chips.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-face {
  display: flex; align-items: center; justify-content: center; text-align: center; gap: 6px;
  min-height: 46px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--text); font-weight: 500; font-size: .9375rem; line-height: 1.25;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.chip-face small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.chip-face .stack { display: grid; }
.chip:hover .chip-face { border-color: #B9C6D1; }
.chip input:checked + .chip-face { border-color: var(--brand); background: var(--mint); color: var(--brand-ink); font-weight: 600; box-shadow: 0 0 0 3px rgba(12, 110, 90, .08); }
.chip input:checked + .chip-face small { color: var(--brand-ink); }
.chip input:focus-visible + .chip-face { outline: 3px solid rgba(12, 110, 90, .45); outline-offset: 2px; }

/* Champs texte */
.field { display: block; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .9375rem; margin-bottom: 8px; }
.input, .field textarea, .field select {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff;
  font-size: 1rem; color: var(--ink); line-height: 1.3;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 92px; resize: vertical; }
.input::placeholder, .field textarea::placeholder { color: #8695A3; }
.input:hover, .field textarea:hover { border-color: #5F6E7D; }
.input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(12, 110, 90, .14); }
.input-wrap { position: relative; }
.input-wrap .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; pointer-events: none; }
.input-wrap .input { padding-right: 52px; }
.hint { color: var(--muted); font-size: .8125rem; line-height: 1.45; margin-top: 6px; }
.error-msg { color: var(--danger); font-size: .8125rem; font-weight: 500; margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.error-msg::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.has-error .input, .has-error textarea { border-color: var(--danger); }
.has-error .input:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }
.has-error .chip-face, .has-error .tile-face { border-color: #E3A39C; }

/* Compteur de personnes */
.stepper { display: inline-grid; grid-template-columns: 52px 76px 52px; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { border: 0; background: var(--soft); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; min-height: 50px; transition: background .15s; }
.stepper button:hover { background: var(--mint); color: var(--brand-ink); }
.stepper input { border: 0; border-inline: 1.5px solid var(--line); text-align: center; font-weight: 600; font-size: 1.1rem; color: var(--ink); width: 100%; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: #F7FCFA; }
.has-error .stepper { border-color: var(--danger); }

/* Liste de tranches de revenus */
.ranges { display: grid; gap: 8px; }
.ranges .chip-face { justify-content: space-between; text-align: left; padding: 12px 14px; }
.ranges .chip-face::after { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; box-shadow: inset 0 0 0 3px #fff; transition: background .15s, border-color .15s; }
.ranges .chip input:checked + .chip-face::after { border-color: var(--brand); background: var(--brand); }
.ranges-placeholder { border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px; color: var(--muted); font-size: .9rem; background: var(--soft); }

/* Messages dans le formulaire */
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: .875rem; line-height: 1.45; margin-top: 12px; }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.notice-info { background: #EEF3F7; color: #24384C; }
.notice-warn { background: var(--sun-soft); color: #6B4100; }
.notice-ok { background: var(--mint); color: var(--brand-ink); }
.notice-error { background: var(--danger-soft); color: #8C1D14; }

/* Accord (case jamais pré-cochée) */
.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  background: var(--soft); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s;
}
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; transition: background .15s, border-color .15s; margin-top: 1px; }
.consent .box svg { width: 15px; height: 15px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.consent input:checked ~ .box { background: var(--brand); border-color: var(--brand); }
.consent input:checked ~ .box svg { opacity: 1; transform: none; }
.consent input:focus-visible ~ .box { outline: 3px solid rgba(12, 110, 90, .45); outline-offset: 2px; }
.consent-text { font-size: .875rem; line-height: 1.5; color: var(--text); }
.consent-text strong { color: var(--ink); }
.consent:has(input:checked) { border-color: var(--brand); background: #F7FCFA; }
.has-error .consent { border-color: var(--danger); background: var(--danger-soft); }
.privacy-note { font-size: .78rem; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.privacy-note a { color: var(--muted); }

.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.form-nav .btn-primary { margin-left: auto; }
.form-foot { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: .8125rem; margin-top: 16px; }
.form-foot svg { width: 15px; height: 15px; color: var(--brand); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Champ piège pour robots : invisible pour les visiteurs */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Écran de confirmation */
.success { text-align: center; padding: 8px 4px 4px; animation: step-in .4s ease both; }
.success-ico { width: 72px; height: 72px; margin: 4px auto 18px; border-radius: 50%; background: var(--mint); color: var(--brand); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(234, 246, 242, .6); }
.success-ico svg { width: 36px; height: 36px; }
.success h2 { font-size: 1.45rem; }
.success .msg { color: var(--muted); margin-top: 10px; }
.recap { text-align: left; margin: 22px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.recap div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 12px 16px; font-size: .9rem; }
.recap div + div { border-top: 1px solid var(--line); }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
.ref-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.success .after { margin-top: 18px; font-size: .875rem; color: var(--muted); }
.demo-flag { margin-top: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { text-align: center; margin-inline: auto; }
.kicker { display: inline-block; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
.section h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); line-height: 1.12; }
.section-lead { color: var(--muted); margin-top: 14px; font-size: 1.0625rem; }

/* Solutions */
.solutions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.solution {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.solution:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.solution-visual { position: relative; aspect-ratio: 16 / 8.2; display: grid; place-items: center; overflow: hidden; }
.solution-visual svg { width: 100%; height: 100%; }
.solution-visual.is-air { background: radial-gradient(120% 120% at 20% 0%, #E3F4EE 0%, #F4FBF8 55%, #EEF6F9 100%); }
.solution-visual.is-sun { background: radial-gradient(120% 120% at 85% 0%, #FFF1CF 0%, #FFF8E9 50%, #F3F7FA 100%); }
.solution-body { padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; flex: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 4px 10px; background: var(--soft); color: var(--text); border: 1px solid var(--line); }
.badge-sun { background: var(--sun-soft); color: var(--sun-ink); border-color: #F6E2B4; }
.badge-sun::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun-deep); }
.solution h3 { font-size: 1.45rem; }
.solution p { color: var(--muted); margin-top: 10px; }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--text); }
.ticks li svg { flex: none; width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.solution .card-cta { margin-top: auto; padding-top: 22px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-ink); text-decoration: none; }
.text-link svg { width: 18px; height: 18px; transition: transform .15s; }
.text-link:hover svg { transform: translateX(3px); }
.footnote { color: var(--muted); font-size: .8125rem; line-height: 1.5; margin-top: 14px; }

/* Animations douces des illustrations */
.fan { transform-box: fill-box; transform-origin: center; animation: spin 5s linear infinite; }
.flow { stroke-dasharray: 2 9; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.rays { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }

/* Étapes */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 24px; }
.step-num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: var(--brand-ink); background: var(--mint); margin-bottom: 16px; }
.steps h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.steps p { color: var(--muted); font-size: .9375rem; margin-top: 8px; }

/* Aides */
.aides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.aide { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.aide-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--brand); margin-bottom: 14px; }
.aide-ico svg { width: 24px; height: 24px; }
.aide h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.aide p { color: var(--muted); font-size: .9375rem; margin-top: 8px; }
.aides-note { margin-top: 22px; color: var(--muted); font-size: .875rem; max-width: 60rem; }

/* Engagements (bande sombre) */
.band-dark {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(255, 194, 75, .12), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(22, 160, 133, .22), transparent 60%),
    var(--night);
  color: #C9D6E0;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .kicker { color: #7CE0C3; }
.band-dark .section-lead { color: #9FB0BF; }
.commitments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; }
.commitments li { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); border-radius: var(--radius); padding: 24px 22px; }
.commitments .c-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(124, 224, 195, .14); color: #7CE0C3; display: grid; place-items: center; margin-bottom: 16px; }
.commitments .c-ico svg { width: 24px; height: 24px; }
.commitments h3 { font-size: 1.1rem; }
.commitments p { margin-top: 8px; font-size: .9375rem; color: #A9B9C7; }
.commitments a { color: #7CE0C3; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-aside p { color: var(--muted); margin-top: 14px; }
.faq-aside .btn { margin-top: 24px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); position: relative; transition: background .15s, transform .25s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.faq details[open] summary .pm { background: var(--mint); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover .pm { background: var(--mint); }
.faq .answer { padding: 0 4px 22px; color: var(--muted); max-width: 44rem; }
.faq .answer p + p { margin-top: 10px; }

/* Appel final */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: clamp(32px, 5vw, 56px);
  background: radial-gradient(500px 300px at 100% 0%, rgba(255, 194, 75, .35), transparent 60%), linear-gradient(120deg, #0A5B4B, #0C7A63 55%, #13937A);
  color: #E5F5EF; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); }
.cta-band p { margin-top: 10px; color: #CFEDE3; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 32px; }
.footer-grid h3 { font-family: var(--font-sans); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.footer-about p { color: var(--muted); margin-top: 14px; max-width: 26rem; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--brand-ink); text-decoration: underline; }
.footer-legal p { color: var(--muted); font-size: .875rem; }
.footer-legal p + p { margin-top: 10px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .8125rem; }

/* Bouton d'appel fixe sur mobile */
.mobile-cta {
  position: fixed; z-index: 60;
  left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(140%); transition: transform .3s ease;
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { width: 100%; box-shadow: 0 16px 32px -12px rgba(11, 27, 43, .45); }

/* ---------- Pages secondaires (mentions, confidentialité, retrait) ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); background: linear-gradient(180deg, #F6FAF8, #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.03em; }
.page-hero p { color: var(--muted); margin-top: 12px; max-width: 44rem; }
.breadcrumb { font-size: .875rem; margin-bottom: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.prose { max-width: 48rem; padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.prose h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 12px; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; }
.prose p, .prose ul, .prose ol, .prose table { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; background: var(--soft); }
.table-scroll { overflow-x: auto; }
.updated { color: var(--muted); font-size: .875rem; }
/* Information que l'entreprise doit fournir : jamais inventée, bien visible. */
.todo { background: var(--sun-soft); color: var(--sun-ink); border-bottom: 1.5px dashed #C98A1B; padding: 0 .25em; border-radius: 3px; font-weight: 600; }

.narrow-card { max-width: 36rem; margin: clamp(32px, 5vw, 56px) auto clamp(56px, 8vw, 96px); }
.narrow-card .form-card { box-shadow: var(--shadow); }

/* ---------- Adaptations ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "extra"; grid-template-rows: auto; }
  .hero-intro { padding-top: 4px; margin-bottom: 28px; }
  .hero-extra { margin-top: 32px; }
  .solutions { grid-template-columns: 1fr; }
  .commitments { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.42rem; }
  .header-inner { gap: 12px; }
  .header-phone span { display: none; }
  .header-cta { padding: 0 16px; }
  .header-cta .long { display: none; }
  .header-cta .short { display: inline; }
  .fr-banner { font-size: .8125rem; }
  .fr-banner .wrap { align-items: flex-start; }
  .fr-banner svg { margin-top: 1px; }
  .fr-banner a { white-space: normal; }
  .row { grid-template-columns: 1fr; }
  .row .field + .field { margin-top: 20px; }
  .chips.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .aides { grid-template-columns: 1fr; gap: 12px; }
  .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px 16px; }
  .steps li .step-num { grid-row: span 2; margin-bottom: 0; }
  .aide { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px 16px; }
  .aide .aide-ico { grid-row: span 2; margin-bottom: 0; }
  .steps p, .aide p { margin-top: 4px; }
  .hero h1 { margin-top: 18px; }
  .eyebrow { font-size: .8125rem; padding: 5px 12px 5px 6px; gap: 8px; }
  .eyebrow .pill { white-space: nowrap; font-size: .75rem; padding: 2px 8px; }
  .form-head h2 { font-size: 1.15rem; white-space: nowrap; }
  .form-head .step-count { font-size: .75rem; padding: 3px 9px; }
  .lead { margin-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .recap div { grid-template-columns: 1fr; gap: 2px; }
  .form-nav .btn { padding: 0 18px; }
  .site-footer { padding-bottom: 96px; }
}
@media (min-width: 901px) { .mobile-cta { display: none; } }

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

@media print {
  .fr-banner { background: none; border: 1px solid #999; }
  .site-header, .mobile-cta, .hero-promo, .cta-band, .form-nav { display: none !important; }
  body { font-size: 11pt; }
}

.input:disabled { background: var(--soft); color: var(--muted); border-color: var(--line); }
