/* =================================================================
   Gabarit des landing pages Primes & Subventions
   Repris à l'identique de la feuille de style des landing pages
   historiques (renovation-tertiaire, prime-scooter, prime-bateau…),
   avec les couleurs passées en variables : chaque page ne définit que
   sa palette (voir le bloc :root de sa propre feuille de style).
   Complété en fin de fichier par les composants propres aux pages
   récentes : formulaire en étapes, simulateur, tableaux, accordéons.
   ================================================================= */

/* ---------- Polices (hébergées sur le site, licence ITF FFL) ---------- */
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------------------------- Tokens ---------------------------- */
/* Valeurs par défaut (palette de renovation-tertiaire) ; chaque page
   redéfinit au minimum --ink-rgb, --acc-rgb, --acc-deep, --acc2-rgb,
   --acc2-deep et ses fonds. */
:root {
  --bg:        #f1f4f2;
  --bg-2:      #ffffff;
  --bg-3:      #e6ebe8;
  --surface:   #ffffff;
  --surface-2: #eef2f0;
  --field-bg:  #f2f7f5;
  --chip-bg:   #eaf1ee;

  --ink-rgb:   15 33 27;
  --acc-rgb:   26 122 86;
  --acc2-rgb:  200 138 30;
  --acc-deep:  #135b3f;
  --acc2-deep: #a87014;

  --ink:       rgb(var(--ink-rgb));
  --ink-soft:  rgb(var(--ink-rgb) / 0.72);
  --ink-faint: rgb(var(--ink-rgb) / 0.66);  /* contraste AA (4,5:1) sur fond clair */
  --line:      rgb(var(--ink-rgb) / 0.10);
  --line-2:    rgb(var(--ink-rgb) / 0.16);
  --acc:       rgb(var(--acc-rgb));
  --acc2:      rgb(var(--acc2-rgb));

  --glow-acc:   rgb(var(--acc-rgb) / 0.20);
  --glow-acc2:  rgb(var(--acc2-rgb) / 0.16);
  --shadow:     0 24px 60px -30px rgb(var(--ink-rgb) / 0.20);
  --shadow-acc: 0 14px 36px -16px rgb(var(--acc-rgb) / 0.32);

  --font-display: "Clash Display", system-ui, sans-serif;
  --font-body:    "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 48px);
  --radius:    22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Lenis prend le relais du smooth scroll quand JS est actif */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(15px, 1.05vw, 17px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--acc); color: #ffffff; }

/* ---------------------- Texture & overlays ---------------------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------- Layout ---------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(80px, 12vh, 150px); position: relative; }
.section--alt { background:
    radial-gradient(120% 90% at 50% 0%, rgb(var(--acc-rgb) / 0.05), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.section__head { max-width: 760px; margin: 0 auto clamp(44px, 6vw, 70px); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__lead { color: var(--ink-soft); font-size: clamp(16px, 1.4vw, 19px); margin-top: 18px; }

/* ---------------------- Typographie commune --------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--acc);
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 100px;
  background: rgb(var(--acc-rgb) / 0.05);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--acc);
  box-shadow: 0 0 0 0 var(--glow-green); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--glow-green); }
  70%  { box-shadow: 0 0 0 8px rgb(var(--acc-rgb) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--acc-rgb) / 0); }
}

.section__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 5.2vw, 62px); line-height: 1.02;
  letter-spacing: -0.02em;
}
.section__title br { display: block; }

/* ---------------------------- Boutons --------------------------- */
.btn {
  --pad-y: 14px; --pad-x: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  border-radius: 100px; position: relative; isolation: isolate;
  background: var(--acc); color: #ffffff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: var(--shadow-green);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgb(var(--acc-rgb) / 0.44); }
.btn:active { transform: translateY(0); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--lg { --pad-y: 17px; --pad-x: 30px; font-size: 16px; }
.btn--sm { --pad-y: 10px; --pad-x: 18px; font-size: 14px; }
.btn--block { width: 100%; margin-top: 8px; }
.btn--ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--line-2); box-shadow: none; }

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px var(--pad);
  transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.78); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line); padding-block: 11px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: 0.01em; }
.brand__badge { width: 38px; height: 38px; transition: transform .35s var(--ease); }
.brand:hover .brand__badge { transform: rotate(-8deg) scale(1.05); }
.nav__links { display: flex; gap: 26px; }
.nav__links a { font-size: 14.5px; color: var(--ink-soft); transition: color .25s; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 0; background: var(--acc); transition: width .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); position: relative; }
.nav__burger span { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 24px; }
.nav.menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 60px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 75%);
  opacity: 0.5;
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; will-change: transform; }
.orb--acc { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -12%; right: -8%; background: radial-gradient(circle, var(--glow-green), transparent 65%); }
.orb--acc2 { width: 40vw; height: 40vw; max-width: 540px; max-height: 540px; bottom: -18%; left: -10%; background: radial-gradient(circle, var(--glow-amber), transparent 65%); }

.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 1300px; }
.hero__copy { max-width: 1300px; }

.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 6.2vw, 86px); line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 28px; text-wrap: balance;
}
.hero__title .line { display: block; }
.hero__title em { font-style: normal; color: var(--acc); }
.hero__sub { font-size: clamp(16px, 1.7vw, 21px); color: var(--ink-soft); max-width: 660px; margin-inline: auto; }

.hero__args { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 30px 0 34px; }
.hero__args li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.chk { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--acc); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ============================ MARQUEE ============================ */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 16px 0; }
.marquee__track { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; animation: marquee 34s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 500; font-size: clamp(16px, 2vw, 24px); color: var(--ink-soft); }
.marquee .sep { color: var(--acc); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Profondeur douce des panneaux (thème clair) */
.card, .bento__item, .split__col, .step, .fiche, .bonif {
  box-shadow: 0 1px 2px rgb(var(--ink-rgb) / 0.04), 0 16px 36px -28px rgb(var(--ink-rgb) / 0.20);
}

/* ===================== CARDS ===================== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 30px 26px 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
  overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgb(var(--acc-rgb) / 0.08), transparent 60%); transition: opacity .4s; }
.card:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--surface-2); box-shadow: 0 26px 50px -28px rgb(var(--ink-rgb) / 0.30); }
.card:hover::after { opacity: 1; }
.card__ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgb(var(--acc-rgb) / 0.08); border: 1px solid var(--line-2); }
.card__ico svg { width: 24px; height: 24px; fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ===================== CALLOUT ===================== */
.callout {
  display: flex; align-items: center; gap: 18px; margin-top: 26px; padding: 22px 26px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: linear-gradient(100deg, rgb(var(--acc-rgb) / 0.08), rgb(var(--acc-rgb) / 0.03));
}
.callout__ico { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callout p { font-size: 15.5px; color: var(--ink); }
.callout strong { color: var(--acc); }

/* variante "vigilance" — le RAI, les textes non parus */
.callout--warn { border-color: rgb(var(--acc2-rgb) / 0.34); background: linear-gradient(100deg, rgb(var(--acc2-rgb) / 0.11), rgb(var(--acc2-rgb) / 0.04)); }
.callout--warn .callout__ico { stroke: var(--acc2-deep); }
.callout--warn strong { color: var(--acc2-deep); }

/* ===================== BONIFICATIONS (coefficients) ===================== */
.bonifs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bonif {
  padding: 30px 22px; border-radius: var(--radius); text-align: center;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.bonif:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--surface-2); }
.bonif__coef {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(140deg, var(--acc), var(--acc-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bonif p { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.bonif--open .bonif__coef { background: linear-gradient(140deg, var(--acc2), var(--acc2-deep)); -webkit-background-clip: text; background-clip: text; }

/* ===================== FICHES CEE (section SEO + téléchargement) ===================== */
.fiches-stat { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.fiches-stat__n {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(46px, 7vw, 82px); letter-spacing: -0.03em; color: var(--acc);
}
.fiches-stat__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.gauge { width: min(320px, 80%); height: 5px; border-radius: 100px; background: var(--bg-3); overflow: hidden; }
.gauge__fill { height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }

.family { margin-top: clamp(46px, 6vw, 72px); }
.family:first-of-type { margin-top: 0; }
.family__head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.family__ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgb(var(--acc-rgb) / 0.08); border: 1px solid var(--line-2); }
.family__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--acc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.family__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -0.015em; }
.family__count { margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-faint); padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); }

.fiches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fiche {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px 22px; border-radius: var(--radius); scroll-margin-top: 90px;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.fiche:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--surface-2); box-shadow: 0 26px 50px -28px rgb(var(--ink-rgb) / 0.30); }
/* La référence vit DANS le titre (SEO : "BAT-TH-163" est une requête à part entière). */
.fiche__h { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-weight: 400; }
.fiche__ref {
  font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--acc); padding: 6px 12px; border-radius: 100px;
  background: rgb(var(--acc-rgb) / 0.10); border: 1px solid rgb(var(--acc-rgb) / 0.22);
}
.fiche__title { font-family: var(--font-display); font-weight: 600; font-size: 17.5px; line-height: 1.25; letter-spacing: -0.01em; }
.fiche__desc { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.fiche__dl {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 6px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--acc);
  transition: color .25s, gap .25s var(--ease);
}
.fiche__dl:hover { color: var(--acc-deep); gap: 12px; }
.fiche__dl svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fiche__ext { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-faint); }

/* ===================== SPLIT (accompagnement) ===================== */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 20px; }
.split__col { padding: 32px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.split__col--pro { background: linear-gradient(160deg, rgb(var(--acc-rgb) / 0.06), var(--surface)); border-color: var(--line-2); }
.split__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.split__tag { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.split__ico { width: 40px; height: 40px; fill: none; stroke: var(--acc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.ticks li { position: relative; padding: 11px 0 11px 30px; font-size: 16px; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: none; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: rgb(var(--acc-rgb) / 0.12);
  box-shadow: inset 0 0 0 1.5px var(--acc); }
.ticks li::after { content: ""; position: absolute; left: 5.5px; top: 50%; transform: translateY(-60%) rotate(45deg);
  width: 4px; height: 8px; border: solid var(--acc); border-width: 0 2px 2px 0; }
.ticks--2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.ticks--2col li:nth-last-child(2) { border-bottom: none; }
.split__hint { margin-top: 20px; font-size: 14px; color: var(--ink-faint); }

/* ===================== BENTO ===================== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento__item { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s, background .4s; }
.bento__item:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--surface-2); box-shadow: 0 26px 50px -28px rgb(var(--ink-rgb) / 0.30); }
.bento__item--wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.bento__item--wide .bento__ico { margin-bottom: 0; }
.bento__ico { width: 46px; height: 46px; margin-bottom: 18px; fill: none; stroke: var(--acc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bento__item h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 7px; letter-spacing: -0.01em; }
.bento__item p { color: var(--ink-soft); font-size: 14.5px; }

/* ===================== SECTEURS (types de bâtiments) ===================== */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sector {
  display: flex; align-items: center; gap: 13px; padding: 18px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.sector:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.sector__ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgb(var(--acc-rgb) / 0.08); border: 1px solid var(--line-2); }
.sector__ico svg { width: 20px; height: 20px; fill: none; stroke: var(--acc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sector span { font-weight: 500; font-size: 14.5px; letter-spacing: -0.01em; }

/* ===================== VIGILANCE (le RAI) ===================== */
.section--warn { background:
    radial-gradient(100% 80% at 50% 0%, rgb(var(--acc2-rgb) / 0.07), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.warn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.warn-card { padding: 32px 30px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 1px 2px rgb(var(--ink-rgb) / 0.04), 0 16px 36px -28px rgb(var(--ink-rgb) / 0.20); }
.warn-card--rai { background: linear-gradient(160deg, rgb(var(--acc2-rgb) / 0.08), var(--surface)); border-color: rgb(var(--acc2-rgb) / 0.30); }
.warn-card__tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--acc2-deep); padding: 6px 12px; border-radius: 100px;
  background: rgb(var(--acc2-rgb) / 0.10); border: 1px solid rgb(var(--acc2-rgb) / 0.26);
}
.warn-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -0.015em; margin-bottom: 12px; }
.warn-card p { color: var(--ink-soft); font-size: 15.5px; }
.warn-card p + p { margin-top: 12px; }
.warn-card strong { color: var(--ink); }

/* liste des inconnues réglementaires */
.unknowns { margin-top: 6px; display: grid; gap: 2px; }
.unknowns li { position: relative; padding: 12px 0 12px 32px; font-size: 15.5px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.unknowns li:last-child { border-bottom: none; }
.unknowns li::before {
  content: "?"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--acc2-deep);
  background: rgb(var(--acc2-rgb) / 0.12); box-shadow: inset 0 0 0 1.3px rgb(var(--acc2-rgb) / 0.42);
}

/* ===================== FORMULAIRE ===================== */
.section--form { background:
    radial-gradient(80% 60% at 80% 0%, rgb(var(--acc-rgb) / 0.08), transparent 55%),
    radial-gradient(70% 60% at 10% 100%, rgb(var(--acc2-rgb) / 0.06), transparent 55%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.form-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-intro { position: sticky; top: 110px; }
.form-intro .section__title { margin-top: 18px; }
.form-intro__list { margin: 26px 0; display: grid; gap: 12px; }
.form-intro__list li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; }
.form-intro__legal { font-size: 12.5px; color: var(--ink-faint); border-left: 2px solid var(--line-2); padding-left: 14px; line-height: 1.55; }

.form-card { position: relative; padding: clamp(24px, 3vw, 38px); border-radius: var(--radius);
  border: 1px solid var(--line-2); background: linear-gradient(165deg, #ffffff, var(--surface-2));
  box-shadow: var(--shadow); }

/* blocs du formulaire (coordonnées / bâtiment / projet) */
.form-section { margin-top: 26px; }
.form-section:first-of-type { margin-top: 0; }
.form-section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.form-section__n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #ffffff;
  background: linear-gradient(140deg, var(--acc), var(--acc-deep)); box-shadow: var(--shadow-green); }
.form-section__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.form-section + .form-section { border-top: 1px solid var(--line); padding-top: 24px; }

/* champs */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field-block__label { font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; }
.req { color: var(--acc); }

.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"], .select-wrap select {
  width: 100%; padding: 14px 16px; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .25s, box-shadow .25s, background .25s; appearance: none;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus, .select-wrap select:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgb(var(--acc-rgb) / 0.16); background: #ffffff; }
.field input.invalid, .select-wrap select.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.14); }

.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-wrap select { padding-right: 40px; cursor: pointer; }
.select-wrap select option { background: var(--bg-3); color: var(--ink); }

.field-block { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; padding: 10px 16px; font-size: 14px; font-weight: 500; border-radius: 100px;
  border: 1px solid var(--line-2); background: var(--chip-bg); color: var(--ink-soft); transition: all .25s; user-select: none; }
.chip span:hover { border-color: var(--acc); color: var(--ink); }
.chip input:checked + span { background: rgb(var(--acc-rgb) / 0.14); border-color: var(--acc); color: var(--acc); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgb(var(--acc-rgb) / 0.2); }

/* chips à cocher multiples (travaux envisagés) : petite coche à gauche */
.chip--check input:checked + span::before {
  content: ""; width: 6px; height: 10px; margin-right: 8px; margin-top: 3px; flex: none;
  border: solid var(--acc); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* consentement */
.consent { display: flex; gap: 13px; margin: 24px 0 4px; cursor: pointer; align-items: flex-start; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; margin-top: 1px; transition: all .25s; background: #ffffff; }
.consent__box svg { width: 14px; height: 14px; fill: none; stroke: #ffffff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: all .2s; }
.consent input:checked + .consent__box { background: var(--acc); border-color: var(--acc); }
.consent input:checked + .consent__box svg { opacity: 1; transform: scale(1); }
.consent input:focus-visible + .consent__box { box-shadow: 0 0 0 3px rgb(var(--acc-rgb) / 0.2); }
.consent input.invalid + .consent__box { border-color: #dc2626; }
.consent__txt { font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; }

.form-error { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px;
  background: rgba(220,38,38,0.07); border: 1px solid rgba(220,38,38,0.28); color: #b91c1c; }

.form-card__foot { text-align: center; margin-top: 16px; font-size: 12px; color: var(--ink-faint); }

/* bouton submit loading */
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn__label { opacity: .5; }
.btn.is-loading .btn__arrow { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* success */
.form-success { text-align: center; padding: 30px 10px; }
.form-success__ring { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: rgb(var(--acc-rgb) / 0.12); border: 1px solid var(--acc); }
.form-success__ring svg { width: 36px; height: 36px; fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin-bottom: 12px; }
.form-success p { color: var(--ink-soft); max-width: 440px; margin: 0 auto 24px; }

/* ===================== FAQ ===================== */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden;
  transition: border-color .3s, background .3s; }
.faq__item[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq__q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc);
  transform: rotate(45deg); transition: transform .3s var(--ease); margin-top: -4px; }
.faq__item[open] .faq__q::after { transform: rotate(-135deg); margin-top: 2px; }
.faq__a { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; }

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid var(--line); background: var(--bg); padding-top: 60px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__badge { width: 56px; height: 56px; margin-bottom: 16px; }
.footer__brand p { color: var(--ink-soft); font-size: 14.5px; max-width: 380px; margin-top: 16px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__legal { font-size: 12px; color: var(--ink-faint); line-height: 1.55; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 0 40px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); }

/* enlève les flèches natives des champs numériques */
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"] { -moz-appearance: textfield; }

/* ===================== Reveal (état initial sous JS) ===================== */
html.gsap-ready [data-reveal], html.gsap-ready [data-reveal-line] { will-change: transform, opacity; }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .cards-3, .bento, .fiches { grid-template-columns: 1fr 1fr; }
  .bonifs { grid-template-columns: 1fr 1fr; }
  .bento__item--wide { grid-column: span 2; }
  .split, .warn-grid { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .form-wrap { grid-template-columns: 1fr; }
  .form-intro { position: static; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.menu-open .nav__links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0;
    padding: 14px var(--pad) 22px; background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav.menu-open .nav__links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .cards-3, .bento, .fiches, .bonifs { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .bento__item--wide { grid-column: span 1; grid-template-columns: 1fr; }
  .bento__item--wide .bento__ico { margin-bottom: 14px; }
  .field-grid { grid-template-columns: 1fr; }
  .ticks--2col { grid-template-columns: 1fr; }
  .footer__inner, .footer__bottom { grid-template-columns: 1fr; }
  .family__head { flex-wrap: wrap; }
  .family__count { margin-left: 0; }
  .hero { padding-top: 100px; }
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  html.gsap-ready [data-reveal], html.gsap-ready [data-reveal-line] { opacity: 1 !important; transform: none !important; }
}

/* =================================================================
   COMPLÉMENTS — composants des pages récentes, dans le même style
   ================================================================= */
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 100px; background: var(--ink); color: #fff; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgb(var(--acc-rgb) / 0.55); outline-offset: 3px; border-radius: 6px; }
html { scroll-padding-top: 90px; }
strong { font-weight: 600; }
p a, li a, dd a, .link { color: var(--acc); text-decoration: underline; text-underline-offset: 0.18em; }
p a:hover, li a:hover, dd a:hover, .link:hover { color: var(--acc-deep); }
.ext::after { content: " ↗"; }
em.hl, .section__title em { font-style: normal; color: var(--acc); }
.form-card fieldset { border: 0; margin: 18px 0 0; min-width: 0; }
.form-card legend { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; }
.sim .form-card > * + *, #sim-details > * + * { margin-top: 18px; }
.sim .form-card > fieldset:first-child { margin-top: 0; }
.form-card .field + .field { margin-top: 16px; }
.form-card .field-grid > .field + .field { margin-top: 0; }
.section--compact { padding-block: clamp(56px, 8vh, 96px); }
.section--compact .section__head { margin-bottom: 0; }
.section__head .eyebrow { margin-bottom: 18px; }
.section__head .section__lead + .section__lead { margin-top: 12px; }

/* Marque en texte (comme MaPrimeAdapt') */
.brand__name { line-height: 1.1; }
.brand__name b { font-weight: 600; }
.brand__name span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.footer__name { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.footer__bottom a { color: var(--ink-soft); }
.footer__bottom a:hover { color: var(--acc); }
.footer__links { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.container.footer__bottom { padding-inline: var(--pad); }

/* Menu : liens sur une ligne ; menu mobile dès 1024 px (5 rubriques) */
.nav__links a, .nav__cta, .brand__name b { white-space: nowrap; }
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.menu-open { background: rgba(255,255,255,0.97); border-bottom-color: var(--line); }
  .nav.menu-open .nav__links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0;
    padding: 14px var(--pad) 22px; background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav.menu-open .nav__links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav.menu-open .nav__links a::after { display: none; }
}

/* Menu mobile ouvert par le bouton (aria-expanded) */
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Premier écran : précisions sous les boutons */
.hero__note { margin-top: 22px; font-size: 13px; color: var(--ink-faint); max-width: 640px; margin-inline: auto; }
.hero__private { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* Apparition au défilement (gabarit.js) — sans JS, tout est visible */
html.rv-ready [data-reveal], html.rv-ready [data-reveal-line] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rv-delay, 0ms); }
html.rv-ready [data-reveal].is-in, html.rv-ready [data-reveal-line].is-in { opacity: 1; transform: none; }

/* Boutons centrés sous un bloc */
.center-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Encadré foncé "à retenir" */
.callout--ink { background: var(--ink); border-color: var(--ink); }
.callout--ink p { color: rgb(255 255 255 / 0.92); }
.callout--ink strong { color: #fff; }
.callout--ink .callout__ico { stroke: #fff; }
.callout + .callout { margin-top: 14px; }

/* Cartes à 4 colonnes */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-4 .card { padding: 26px 22px; }
.cards-4 .card h3 { font-size: 19px; }

/* Image + texte */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.duo--rev > :first-child { order: 2; }
.duo + .duo, .schema + .duo { margin-top: clamp(40px, 6vw, 72px); }
.duo__text .section__title { font-size: clamp(28px, 3.8vw, 46px); margin-bottom: 16px; }
.duo__text h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.015em; margin-bottom: 12px; }
.duo__text p { color: var(--ink-soft); }
.media { margin: 0; }
.media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.media figcaption, .fig-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-faint); }
.media--hero { margin-top: clamp(40px, 6vw, 64px); width: 100%; max-width: 1080px; }
.media--hero img { aspect-ratio: 16 / 8; }

/* Liste des éléments de l'installation */
.parts { display: grid; gap: 4px; margin-top: 18px; }
.parts li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 15.5px; }
.parts li:last-child { border-bottom: none; }
.parts li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(140deg, var(--acc), var(--acc2)); }
.parts strong { color: var(--ink); }

/* Schéma de principe */
.schema { margin: clamp(40px, 6vw, 72px) 0 0; padding: clamp(14px, 2.4vw, 26px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.schema img { width: 100%; height: auto; }
.schema figcaption { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--ink-faint); }
.schema__text ol { margin-top: 10px; display: grid; gap: 8px; list-style: decimal; padding-left: 20px; color: var(--ink-soft); }
@media (min-width: 721px) { .schema__text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-width: 720px) { .schema__img { display: none; } }

/* Accordéons (même dessin que la FAQ) */
.acc { max-width: 920px; margin: 26px auto 0; }
.acc .faq__a dl { display: grid; gap: 14px; }
.acc .faq__a dt { font-weight: 600; color: var(--ink); }
.acc .faq__a dd { margin-top: 2px; }
.sources { margin-top: 18px; font-size: 13.5px; color: var(--ink-faint); }
.sources a::after { content: " ↗"; }

/* Tableaux */
.table-wrap { overflow-x: auto; margin-top: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; }
.table caption { text-align: left; padding: 14px 16px 6px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table td.n { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--acc); }

/* Étapes (gabarit prime-scooter) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.steps--5 { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps--5 .step { padding: 26px 20px; }
.step { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative;
  box-shadow: 0 1px 2px rgb(var(--ink-rgb) / 0.04), 0 16px 36px -28px rgb(var(--ink-rgb) / 0.20); }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #ffffff;
  background: linear-gradient(140deg, var(--acc), var(--acc-deep)); box-shadow: var(--shadow-acc); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--ink-soft); font-size: 15px; }
.step--key { border-color: rgb(var(--acc2-rgb) / 0.40); background: linear-gradient(160deg, rgb(var(--acc2-rgb) / 0.10), var(--surface)); }
.step--key .step__n { background: linear-gradient(140deg, var(--acc2), var(--acc2-deep)); }

/* ---------- Formulaire en plusieurs étapes ---------- */
.demo-banner { margin-bottom: 18px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600;
  color: var(--acc2-deep); background: rgb(var(--acc2-rgb) / 0.10); border: 1px solid rgb(var(--acc2-rgb) / 0.30); }
.stepper { display: flex; gap: 6px; margin-bottom: 14px; }
.stepper span { flex: 1; height: 5px; border-radius: 100px; background: var(--bg-3); transition: background .4s; }
.stepper span.on { background: linear-gradient(90deg, var(--acc), var(--acc-deep)); }
.step-label, .form-steps-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.fstep > h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 6px; }
.fstep > h3:focus { outline: none; }
.req-note { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 18px; }
.fstep .field-grid { margin-top: 18px; }
.fstep fieldset { border: 0; margin: 18px 0 0; min-width: 0; }
.fstep legend, .legend { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; }
.field textarea { width: 100%; min-height: 120px; padding: 14px 16px; font-family: inherit; font-size: 15px; color: var(--ink); resize: vertical;
  background: var(--field-bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .25s, box-shadow .25s, background .25s; }
.field textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgb(var(--acc-rgb) / 0.16); background: #ffffff; }
.field input[aria-invalid="true"], .select-wrap select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.14); }
.hint { font-size: 12.5px; color: var(--ink-faint); }
.err { font-size: 12.5px; font-weight: 600; color: #b91c1c; }
.err:empty { display: none; }
.err-summary { margin-bottom: 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(220,38,38,0.07); border: 1px solid rgba(220,38,38,0.28); color: #b91c1c; }
.err-summary h4 { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.err-summary ul { list-style: disc; padding-left: 18px; font-size: 14px; }
.err-summary a { color: #b91c1c; text-decoration: underline; }
.chip span { cursor: pointer; }
.consent { margin: 16px 0 4px; }
.consent__txt--strong { font-size: 14px; color: var(--ink); }
.opt { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px dashed var(--line-2); background: rgb(255 255 255 / 0.6); }
.opt > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--acc); }
.opt[open] > summary { margin-bottom: 4px; }
.recap { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.recap strong { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.recap dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 10px; }
.recap dt { color: var(--ink-faint); }
.recap dd { font-weight: 500; overflow-wrap: anywhere; }
.recap button { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--acc); text-decoration: underline; }
.disclaimer { margin-top: 16px; font-size: 13.5px; font-weight: 600; }
.privacy { margin-top: 12px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.55; }
.fnav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; }
.btn[disabled] { opacity: .7; pointer-events: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success h3:focus { outline: none; }
.form-success .recap { text-align: left; }

/* ---------- Catalogue d'équipements (CARSAT) ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.filter { padding: 10px 18px; font-size: 14px; font-weight: 500; border-radius: 100px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-soft); transition: all .25s; }
.filter:hover { border-color: var(--acc); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: var(--shadow-acc); }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.equip { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 1px 2px rgb(var(--ink-rgb) / 0.04), 0 16px 36px -28px rgb(var(--ink-rgb) / 0.20); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.equip:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 26px 50px -28px rgb(var(--ink-rgb) / 0.30); }
.equip__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 44%, #ffffff 0%, var(--surface-2) 100%); }
.equip__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.equip:hover .equip__img img { transform: scale(1.035); }
.equip__img--ico { display: grid; place-items: center; }
.equip__img--ico svg { width: 72px; height: 72px; fill: none; stroke: var(--acc); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.equip__sector { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acc);
  padding: 6px 12px; border-radius: 100px; background: rgb(255 255 255 / 0.88); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.equip__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 24px 24px 26px; }
.equip__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.equip__body p { color: var(--ink-soft); font-size: 15px; }
.equip__ex { font-size: 14px !important; color: var(--ink) !important; }
.equip__body .btn { margin-top: auto; align-self: flex-start; }
.catalog-note { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--ink-faint); }

/* ---------- Simulateur (CARSAT) ---------- */
.sim { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: start; }
.sim .form-card .field + .field, .sim .form-card .field-grid + .field, .sim .form-card .field + .field-grid { margin-top: 16px; }
.sub { margin-top: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.result { position: sticky; top: 100px; }
.result h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 12px; }
.result__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(140deg, var(--acc), var(--acc-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 20px 0; padding: 16px 0; border-block: 1px solid var(--line); font-size: 14.5px; }
.result dt { color: var(--ink-soft); }
.result dd { font-weight: 600; text-align: right; }
.result__msg { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; }
.result__msg--warn { color: var(--acc2-deep); background: rgb(var(--acc2-rgb) / 0.10); border-color: rgb(var(--acc2-rgb) / 0.30); }
.result__notes { margin-top: 14px; display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-faint); list-style: disc; padding-left: 18px; }
.result .btn { margin-top: 20px; width: 100%; }

/* Conditions en deux colonnes */
.duo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-cards .split__col h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-bottom: 8px; }

/* ---------- Responsive des compléments ---------- */
@media (max-width: 1100px) { .steps--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .cards-4, .catalog { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .duo, .sim, .duo-cards { grid-template-columns: 1fr; }
  .duo--rev > :first-child { order: 0; }
  .result { position: static; }
}
@media (max-width: 720px) {
  .cards-4, .catalog, .steps, .steps--5 { grid-template-columns: 1fr; }
  .fnav .btn { flex: 1 1 auto; }
  .media--hero img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html.rv-ready [data-reveal], html.rv-ready [data-reveal-line] { opacity: 1 !important; transform: none !important; }
}
