/* ==========================================================================
   BASCULE — direction artistique « le relevé »
   Le site se lit comme le dossier d'un bureau d'études : papier clair, encre
   noire, filets fins. Trois couleurs prises au sujet lui-même : le jaune du
   soleil pour l'action, la terre cuite des tuiles pour la facture d'aujourd'hui,
   le bleu des panneaux pour celle d'après. La photo aérienne est montrée à
   plat et cotée, comme un relevé ; l'économie tourne sur un compteur à roues.
   Aucun dégradé décoratif, aucun halo, aucun effet de verre.
   ========================================================================== */
:root {
  color-scheme: light;
  --paper: #f3f2ee; --sheet: #ffffff; --ink: #16181b; --ink-2: #4b4f55; --ink-3: #8a8d91;
  --rule: rgba(22, 24, 27, 0.16); --rule-2: rgba(22, 24, 27, 0.08);
  --sun: #ffd426; --sun-2: #fff1a8; --tuile: #cf4a2a; --panneau: #1c3faa; --ok: #1f7a4d; --err: #b3261e;
  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --spring: cubic-bezier(0.34, 1.56, 0.5, 1);
  --gutter: clamp(18px, 4vw, 56px); --section: clamp(72px, 9vw, 136px); --max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; counter-reset: sec; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.03; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); }
h3 { font-size: 1.3125rem; letter-spacing: -0.02em; line-height: 1.2; }
/* L'accent se fait par la graisse, pas par la couleur */
h1 em, h2 em, h3 em { font-style: normal; font-weight: 300; letter-spacing: -0.035em; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.roll { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Les rubriques sont numérotées, comme les parties d'un dossier */
.eyebrow { counter-increment: sec; display: flex; align-items: baseline; gap: 12px; font-size: 0.9375rem; font-weight: 600; }
.eyebrow::before { content: counter(sec, decimal-leading-zero); font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
.head { display: grid; gap: 22px; margin-bottom: clamp(32px, 4.5vw, 60px); padding-top: 16px; border-top: 1.5px solid var(--ink); }
.head h2 { max-width: 15em; }
.head__lead { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.lien { background: none; border: 0; padding: 0; font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; color: inherit; justify-self: start; }
.lien:hover { text-decoration-thickness: 2px; }

/* ---------- Boutons : des touches, pas des pastilles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 6px; padding: 15px 20px; font-weight: 650; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap; transition: background 0.2s, transform 0.15s, box-shadow 0.15s; }
.btn svg { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(22, 24, 27, 0.2); }
.btn--sun:hover { background: #ffc800; }
.btn--sun:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(22, 24, 27, 0.2); }
.btn--light, .btn--dark, .btn--dark2 { background: var(--ink); color: #fff; }
.btn--light:hover, .btn--dark:hover, .btn--dark2:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 11px 15px; font-size: 0.9375rem; }
.btn--lg { padding: 19px 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- En-tête ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: var(--paper); box-shadow: 0 1px 0 var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.nav__in { max-width: var(--max); margin-inline: auto; height: 64px; padding-inline: var(--gutter); display: flex; align-items: center; gap: 30px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 0.9375rem; font-weight: 500; }
.nav__links a { text-decoration: none; padding-block: 6px; box-shadow: inset 0 -1.5px 0 transparent; transition: box-shadow 0.2s; }
.nav__links a:hover { box-shadow: inset 0 -1.5px 0 var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 750; font-size: 1.375rem; letter-spacing: -0.045em; color: inherit; }
.logo__mark { position: relative; width: 32px; height: 19px; border-radius: 10px; background: var(--ink); }
.logo__mark::after { content: ""; position: absolute; right: 3px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--sun); }

/* ==========================================================================
   HÉRO — le texte et le formulaire à gauche, la planche à droite
   ========================================================================== */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(100svh, 900px); padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
.hero__txt { position: relative; z-index: 2; display: grid; align-content: center; gap: 22px; padding: clamp(36px, 6vh, 80px) clamp(28px, 4vw, 64px) clamp(36px, 6vh, 72px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.sur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.9375rem; color: var(--ink-2); }
.sur b { padding: 3px 8px; font-weight: 600; color: var(--ink); background: var(--sun); }
.hero__title { font-size: clamp(2.3rem, 4.5vw, 4.35rem); font-weight: 750; letter-spacing: -0.04em; line-height: 0.98; }
/* Le mot bascule, pour de bon */
.mot { display: inline-block; padding: 0 0.08em; margin: 0 -0.04em; background: linear-gradient(var(--sun), var(--sun)) 0 78% / 100% 46% no-repeat; transform: rotate(-4deg); transform-origin: 8% 100%; }
.hero__lead { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.9375rem; color: var(--ink-2); }
.hero__facts li { display: flex; align-items: center; gap: 9px; }
.hero__facts li::before { content: ""; width: 11px; height: 6px; margin-top: -4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

/* Le départ : la première question du formulaire, posée sur la page */
.depart { position: relative; z-index: 3; width: calc(100% + clamp(40px, 7vw, 120px)); display: grid; gap: 14px; padding: clamp(16px, 2vw, 24px); border-radius: 10px; background: var(--sun); box-shadow: 0 34px 60px -36px rgba(22, 24, 27, 0.55); }
.depart__q { display: flex; align-items: center; gap: 12px; font-size: clamp(1.25rem, 1.9vw, 1.5625rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.depart__q span { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; font-family: var(--mono); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; color: #fff; background: var(--ink); }
.depart__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; font-size: 0.875rem; }
.depart .adr__msg:empty { display: none; }
.etapes { counter-reset: e; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.875rem; color: rgba(22, 24, 27, 0.62); }
.etapes li { counter-increment: e; display: flex; align-items: center; }
.etapes li::before { content: counter(e); margin-right: 6px; font-family: var(--mono); font-size: 0.75rem; }
.etapes li + li { margin-left: 10px; }
.etapes li + li::before { content: "→\00a0\00a0" counter(e); }
.etapes li.is-on { font-weight: 700; color: var(--ink); }

/* Champ d'adresse */
.adr { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 640px; height: 66px; padding: 6px 6px 6px 16px; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transition: box-shadow 0.15s; }
.depart .adr { max-width: none; }
.adr:focus-within { box-shadow: inset 0 0 0 3px var(--ink); }
.adr__pin { width: 22px; height: 22px; }
.adr__input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 1.125rem; font-weight: 500; }
.adr__input::placeholder { color: var(--ink-3); font-weight: 400; }
.adr .btn { height: 100%; padding-inline: 22px; border-radius: 5px; background: var(--ink); color: #fff; box-shadow: none; }
.adr .btn:hover { background: #000; }
.adr__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; padding: 5px; border-radius: 8px; text-align: left; background: #fff; box-shadow: 0 0 0 1.5px var(--ink), 0 24px 40px -18px rgba(22, 24, 27, 0.45); }
.adr__list--haut { top: auto; bottom: calc(100% + 6px); }
.adr__list li { display: grid; gap: 1px; padding: 10px 12px; border-radius: 4px; cursor: pointer; }
.adr__list li b { font-weight: 600; font-size: 1rem; }
.adr__list li small { font-size: 0.8125rem; color: var(--ink-2); }
.adr__list li:hover, .adr__list li[aria-selected="true"] { background: var(--sun-2); }
.adr__msg { min-height: 1.4em; font-size: 0.875rem; font-weight: 500; color: var(--err); }

/* La planche : la photo aérienne, à plat, cotée comme un relevé */
.planche { position: relative; overflow: hidden; container-type: size; min-height: 420px; background: #3a4036; }
.planche__img { position: absolute; left: 50%; top: 50%; width: 100%; width: max(100cqw, 133.4cqh); aspect-ratio: 4 / 3; transform: translate(-50%, -50%); }
.planche canvas { display: block; width: 100%; height: 100%; }
.planche__img svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pl-b { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pl-main { fill: rgba(255, 255, 255, 0.1); stroke: #fff; stroke-width: 2.5; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.pl-p { fill: var(--panneau); stroke: #e6ecff; stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.pl-cote, .pl-fil { fill: none; stroke: var(--sun); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.pl-fil { stroke: #fff; stroke-width: 1.2; }
.pl-pt { fill: #fff; }
.pl-tag { position: absolute; transform: translate(-50%, -50%); padding: 3px 7px 2px; border-radius: 2px; font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; line-height: 1.35; white-space: nowrap; color: var(--ink); background: var(--sun); }
.pl-tag--w { background: #fff; }
.pl-tag--eco { padding: 6px 11px 5px; font-family: var(--sans); font-size: clamp(1rem, 1.5vw, 1.3125rem); font-weight: 750; letter-spacing: -0.02em; }
.planche__rep { position: absolute; right: 18px; top: 18px; display: grid; justify-items: end; gap: 12px; color: #fff; }
.nord { width: 22px; height: 31px; fill: #fff; }
.nord text { font-family: var(--mono); font-size: 9px; font-weight: 500; }
.echelle { display: grid; justify-items: end; gap: 3px; font-family: var(--mono); font-size: 0.6875rem; }
.echelle i { display: block; width: 60px; height: 7px; border: 1.5px solid #fff; border-top: 0; }
.planche figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 18px 11px clamp(56px, 8vw, 140px); font-size: 0.8125rem; line-height: 1.45; color: rgba(255, 255, 255, 0.86); background: rgba(22, 24, 27, 0.86); }
.planche figcaption b { margin-right: 10px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--sun); }

/* Pages départementales : même en-tête, sans planche */
.hero--dep { display: block; min-height: 0; padding-block: calc(64px + clamp(48px, 8vh, 96px)) clamp(48px, 8vh, 88px); background: var(--sun); }
.hero__sky, .hero__fade, .hero__chips { display: none; }
.hero__in { display: grid; gap: 22px; justify-items: start; }
.hero--dep .hero__title { max-width: 15em; }
.hero--dep .hero__title .l { display: block; }
.hero--dep .hero__lead, .hero--dep .hero__facts { color: var(--ink); }
.hero--dep .btn--sun { background: var(--ink); color: #fff; box-shadow: none; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 4px 9px; font-family: var(--mono); font-size: 0.8125rem; color: #fff; background: var(--ink); }
.tag i { display: none; }

/* ==========================================================================
   LE PRINCIPE
   ========================================================================== */
.parcours { padding-block: var(--section); }
.pas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pas__it { display: grid; gap: 10px; align-content: start; min-width: 0; padding-inline: clamp(16px, 2.2vw, 30px); border-left: 1px solid var(--rule); }
.pas__it:first-child { padding-left: 0; border-left: 0; }
.pas__it:last-child { padding-right: 0; }
.pas__n { order: -1; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-3); }
.pas__it h3 { font-size: 1.5rem; }
.pas__it p { color: var(--ink-2); font-size: 1rem; }
.pas__vis { position: relative; order: -2; height: 210px; margin-bottom: 8px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; color: var(--ink-3); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--ink); }
.mini-adr { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 5px; font-size: 0.9375rem; font-weight: 500; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.mini-adr i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.mini-pin { position: absolute; right: 20%; bottom: 20%; width: 12px; height: 12px; border-radius: 50%; background: var(--tuile); box-shadow: 0 0 0 5px rgba(207, 74, 42, 0.18), 0 0 0 13px rgba(207, 74, 42, 0.09); }
.pas__vis--2 { background: #e7ecee; }
.pas__vis--2 svg { width: 76%; }
.mini-pan rect { fill: var(--panneau); stroke: #fff; stroke-width: 1; }
.demo3d { position: absolute; inset: 0; }
.demo3d.pret + svg { display: none; }
.mini-doc { position: relative; z-index: 2; width: 112px; height: 146px; padding: 16px 13px; display: grid; gap: 7px; align-content: start; background: #fff; box-shadow: 0 0 0 1px var(--ink); transform: rotate(-4deg); }
.mini-doc i { display: block; height: 4px; background: var(--rule); }
.mini-doc i:nth-child(2) { width: 70%; } .mini-doc i:nth-child(3) { width: 85%; }
.mini-doc b { justify-self: start; margin-top: 10px; padding: 1px 4px; font-size: 1rem; letter-spacing: -0.03em; background: var(--sun); }
.mini-doc--2 { position: absolute; transform: translate(30px, 8px) rotate(6deg); z-index: 1; background: var(--paper); }
.pas__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(28px, 3.4vw, 44px); }

/* ==========================================================================
   NOTRE DIFFÉRENCE · LE CALCUL · QUESTIONS · FIN
   ========================================================================== */
.ordre { padding-block: var(--section); background: var(--sheet); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.duo__c { min-width: 0; padding: clamp(22px, 3vw, 40px); }
.duo__c--eux { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule); }
.duo__c--nous { color: #fff; background: var(--ink); }
.duo__k { margin-bottom: 14px; font-size: 0.9375rem; font-weight: 600; }
.duo__c--nous .duo__k { justify-self: start; display: inline-block; padding: 2px 8px; color: var(--ink); background: var(--sun); }
.duo ol { counter-reset: d; }
.duo li { counter-increment: d; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding-block: 17px; border-top: 1px solid var(--rule); }
.duo__c--nous li { border-color: rgba(255, 255, 255, 0.2); }
.duo li::before { content: counter(d); grid-row: span 2; padding-top: 5px; font-family: var(--mono); font-size: 0.8125rem; }
.duo li b { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.duo__c--eux li b { color: var(--ink-2); }
.duo li span { font-size: 0.9375rem; line-height: 1.5; }
.duo__c--nous li span { color: rgba(255, 255, 255, 0.72); }
.duo__c--eux li.is-chiffre b { text-decoration: line-through; text-decoration-color: var(--tuile); text-decoration-thickness: 2px; }
.duo__c--nous li.is-chiffre b { justify-self: start; font-size: 1.625rem; font-weight: 750; color: var(--sun); }

.methode { padding-block: var(--section); }
.fiches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fiche { display: grid; gap: 12px; align-content: start; min-width: 0; padding-inline: clamp(14px, 1.8vw, 26px); border-left: 1px solid var(--rule); }
.fiche:first-child { padding-left: 0; border-left: 0; }
.fiche__k { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.fiche__b { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.fiche__b span { background: linear-gradient(var(--sun), var(--sun)) 0 88% / 100% 34% no-repeat; }
.fiche dl div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-block: 8px; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.fiche dl div:first-child { border-top: 1px solid var(--rule); }
.fiche dd { font-family: var(--mono); font-size: 0.8125rem; white-space: nowrap; }
.fiche__n { font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }

.faq { padding-block: var(--section); background: var(--sheet); }
.faq__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq .head { margin-bottom: 0; position: sticky; top: 96px; }
.faq__list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--ink); background: linear-gradient(var(--ink), var(--ink)) center / 11px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 11px no-repeat; transition: transform 0.3s var(--ease), background-color 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--sun); }
.faq details p { padding-bottom: 22px; max-width: 62ch; color: var(--ink-2); }

.fin { padding-block: var(--section); background: var(--sun); }
.fin__in { display: grid; gap: 34px; justify-items: start; }
.fin h2 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); font-weight: 750; letter-spacing: -0.045em; line-height: 0.96; }
.fin__f { width: min(640px, 100%); display: grid; gap: 8px; }
.fin .btn--sun { background: var(--ink); color: #fff; box-shadow: none; }
.fin .btn--sun:hover { background: #000; }
.foot { padding-block: 40px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.66); background: var(--ink); }
.foot .logo { color: #fff; }
.foot .logo__mark { background: #fff; }
.foot .logo__mark::after { background: var(--ink); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; }
.foot__in > div { display: grid; gap: 12px; align-content: start; justify-items: start; }
.foot a { text-underline-offset: 4px; }

/* ---------- Pages départementales ---------- */
.tableau { overflow-x: auto; border-radius: 6px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--ink); }
.tableau table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tableau th, .tableau td { padding: 16px 20px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tableau th:first-child { text-align: left; }
.tableau thead th { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.tableau tbody th { font-weight: 600; }
.tableau tbody tr:last-child th, .tableau tbody tr:last-child td { border-bottom: 0; }
.tableau td.eco { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; background: var(--sun-2); }
.tableau__n { margin-top: 16px; font-size: 0.875rem; color: var(--ink-2); max-width: 86ch; }
.liens { padding-block: 56px; }
.liens ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.liens a { display: inline-block; padding: 6px 12px; border-radius: 4px; font-size: 0.875rem; text-decoration: none; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow 0.15s, background 0.15s; }
.liens a:hover { background: var(--sun); box-shadow: inset 0 0 0 1px var(--ink); }

/* ==========================================================================
   LE PARCOURS — le formulaire en plein écran, une question par écran
   ========================================================================== */
.flux { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--paper); animation: fluxin 0.4s var(--ease); }
@keyframes fluxin { from { opacity: 0; transform: translateY(14px); } }
.flux__top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; height: 64px; padding-inline: var(--gutter); }
.flux__droite { justify-self: end; display: flex; align-items: center; gap: 16px; }
.flux__n { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2); white-space: nowrap; }
.flux__x { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; display: grid; place-items: center; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background 0.15s, color 0.15s; }
.flux__x:hover { background: var(--ink); color: #fff; }
.flux__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.flux__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rule); }
.flux__prog i { display: block; height: 100%; width: 10%; background: var(--ink); transition: width 0.7s var(--ease); }
/* Les quatre temps du dossier */
.rail--flux { display: flex; align-items: center; }
.rail--flux li { display: flex; align-items: center; gap: 9px; font-size: 0.9375rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color 0.3s; }
.rail--flux li + li::before { content: ""; width: clamp(14px, 2.4vw, 34px); height: 1px; margin-inline: clamp(8px, 1.2vw, 14px); background: var(--ink-3); }
.rail--flux li b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; box-shadow: inset 0 0 0 1.5px currentColor; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.rail--flux li.is-on { color: var(--ink); font-weight: 650; }
.rail--flux li.is-on b { background: var(--sun); box-shadow: inset 0 0 0 1.5px var(--ink); }
.rail--flux li.is-fait { color: var(--ink-2); }
.rail--flux li.is-fait b { color: #fff; background: var(--ink); box-shadow: none; }

.flux__corps { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); min-height: 0; }
.flux__scene { position: relative; min-height: 0; margin: 20px 0 20px var(--gutter); }
.carte { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: #3a4036; box-shadow: 0 0 0 1px var(--ink); isolation: isolate; }
.carte__map { position: absolute; inset: 0; z-index: 0; background: #3a4036; }
.carte__3d { position: absolute; inset: 0; z-index: 1; background: #e7ecee; }
.leaflet-container { background: #3a4036; font-family: var(--sans); }
.carte__top, .carte__bas { position: absolute; left: 14px; right: 14px; z-index: 2; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.carte__top { top: 14px; align-items: flex-start; }
.carte__bas { bottom: 14px; align-items: flex-end; }
.carte__top > *, .carte__bas > * { pointer-events: auto; }
.badge { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; min-width: 0; padding: 8px 12px; border-radius: 4px; font-size: 0.875rem; font-weight: 600; background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--tuile); }
.carte__zoom { display: grid; gap: 5px; flex: none; }
.carte__zoom button { width: 38px; height: 38px; border: 0; border-radius: 4px; font-size: 1.25rem; line-height: 1; background: #fff; box-shadow: 0 0 0 1px var(--ink); transition: background 0.15s; }
.carte__zoom button:hover { background: var(--sun); }
#btn-3d { font-size: 0.8125rem; font-weight: 700; }
#btn-3d[aria-pressed="true"] { background: var(--ink); color: #fff; }
#btn-3d[disabled] { opacity: 0.4; }
.carte.en-3d .carte__zoom button:not(#btn-3d), .carte.en-3d .leaflet-control-scale { display: none; }
.carte__credit { padding: 2px 6px; font-size: 0.6875rem; color: #fff; background: rgba(22, 24, 27, 0.7); white-space: nowrap; }
.carte.en-3d .carte__credit { color: var(--ink-2); background: none; }
.carte__charge { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 4px; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.carte__charge i, .analyse__ring i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--ink); animation: tourne 0.8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.leaflet-bottom.leaflet-right { margin: 0 14px 40px 0; }
.leaflet-control-scale-line { border: 1.5px solid #fff; border-top: 0; background: none; color: #fff; font-family: var(--mono); font-size: 0.6875rem; line-height: 1.2; padding: 0 4px 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }

/* Tracés sur la photo aérienne */
.toit-voisin { stroke: rgba(255, 255, 255, 0.5); fill: rgba(255, 255, 255, 0.02); cursor: pointer; transition: stroke 0.15s, fill 0.15s; }
.toit-voisin:hover { stroke: var(--sun); fill: rgba(255, 212, 38, 0.3); }
.toit-halo { display: none; }
.toit-contour { stroke: #fff; fill: rgba(255, 255, 255, 0.1); stroke-linejoin: miter; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: tracer 1.4s var(--ease) 0.2s forwards; }
.toit-faitage { stroke: rgba(255, 255, 255, 0.85); stroke-dasharray: 5 6; }
.toit-panneau { stroke: #e6ecff; fill: var(--panneau); fill-opacity: 0.94; opacity: 0; animation: poser 0.45s var(--ease) forwards; }
.toit-cote { stroke: var(--sun); fill: none; }
.cote-txt span { position: absolute; transform: translate(-50%, -50%); padding: 2px 6px 1px; border-radius: 2px; font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; white-space: nowrap; color: var(--ink); background: var(--sun); }
.sans-anim .toit-contour { animation: none; stroke-dashoffset: 0; }
.sans-anim .toit-panneau { animation: none; opacity: 1; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes poser { from { opacity: 0; fill: #fff; } to { opacity: 1; fill: var(--panneau); } }

/* Le compteur : des roues qui tournent, comme sur un vrai compteur */
.roues { display: inline-flex; gap: 0.09em; font-family: var(--mono); font-weight: 500; line-height: 1; }
.roue { --h: 1.5em; position: relative; width: 1em; height: var(--h); overflow: hidden; border-radius: 0.1em; color: #fff; background: var(--ink); }
.roue > span { display: block; transform: translateY(calc(var(--d, 0) * -10%)); transition: transform 1.1s cubic-bezier(0.25, 0.9, 0.3, 1); }
.roue > span > i { display: block; height: var(--h); line-height: var(--h); text-align: center; font-style: normal; }
.roue::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 74%, rgba(0, 0, 0, 0.5)); }
.roue.is-vide { color: rgba(255, 255, 255, 0.26); }
.roue.is-mille { margin-right: 0.2em; }
.roue.is-vide:first-child { display: none; }
.cpt { display: grid; gap: 7px; padding: 11px 13px 12px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.cpt small { font-size: 0.75rem; font-weight: 600; }
.cpt p { display: flex; align-items: flex-end; gap: 8px; }
.cpt .roues { font-size: 1.5rem; }
.cpt p > span:last-child { padding-bottom: 3px; font-size: 0.8125rem; color: var(--ink-2); white-space: nowrap; }
.cpt__j { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.cpt__j i { height: 4px; background: var(--rule); transition: background 0.5s; }
.cpt__j i.is-on { background: var(--ink); }
.cpt.is-sur .cpt__j i { background: var(--sun); box-shadow: inset 0 0 0 1px var(--ink); }

/* Le panneau des questions */
.flux__panneau { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; min-width: 0; }
.flux__defile { overflow-y: auto; overscroll-behavior: contain; display: grid; align-items: center; padding: clamp(18px, 3vh, 40px) clamp(20px, 4.4vw, 68px); scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.flux__defile:focus { outline: none; }
.etp { display: grid; gap: 18px; align-content: start; width: 100%; max-width: 540px; margin-inline: auto; }
.etp__k { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.etp__k b { padding: 2px 7px 1px; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--ink); background: var(--sun); }
.etp__q { font-size: clamp(1.9rem, 3vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.04; }
.etp__aide { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); max-width: 50ch; margin-top: -6px; }
.etp__pq { padding-left: 14px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); border-left: 3px solid var(--sun); }

/* Les réponses */
.tuiles { display: grid; gap: 8px; }
.tuiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tuiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tuile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 15px; row-gap: 1px; align-items: center; text-align: left; padding: 13px 50px 13px 13px; border: 0; border-radius: 8px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow 0.15s, background 0.15s, transform 0.15s; -webkit-tap-highlight-color: transparent; }
.tuile > i { grid-row: span 2; width: 50px; height: 50px; border-radius: 5px; display: grid; place-items: center; font-size: 26px; background: var(--paper); transition: background 0.15s, color 0.15s; }
.tuile b { align-self: end; font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.015em; line-height: 1.2; }
.tuile span { align-self: start; font-size: 0.875rem; line-height: 1.35; color: var(--ink-2); }
.tuile::after { content: ""; position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.tuile:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tuile:hover > i { background: var(--sun); }
.tuile:active { transform: scale(0.985); }
.tuile[aria-checked="true"] { background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); }
.tuile[aria-checked="true"] > i { color: var(--sun); background: var(--ink); }
.tuile[aria-checked="true"] span { color: var(--ink); }
.tuile[aria-checked="true"]::after { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.7 2.7L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: none; animation: pop 0.35s var(--spring); }
@keyframes pop { from { transform: scale(0.3); } }
.tuile--h { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 16px; row-gap: 2px; }
.tuile--h > i { grid-row: auto; margin-bottom: 14px; }
.tuile--h::after { top: 16px; right: 14px; margin-top: 0; }
.tuile--mini { grid-template-columns: minmax(0, 1fr); padding: 13px 6px; text-align: center; border-radius: 6px; }
.tuile--mini::after { display: none; }
.tuile--mini b { font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.tuile--mini[aria-checked="true"] b { font-weight: 700; }
.etp.is-in .tuile { animation: tuile 0.45s var(--ease) backwards; }
.etp.is-in .tuile:nth-child(2) { animation-delay: 0.06s; }
.etp.is-in .tuile:nth-child(3) { animation-delay: 0.12s; }
.etp.is-in .tuile:nth-child(4) { animation-delay: 0.18s; }
@keyframes tuile { from { opacity: 0; transform: translateY(14px); } }
.etp.is-non .tuile { animation: secoue 0.45s var(--ease); }
@keyframes secoue { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* Le relevé du toit : un tableau, pas des cartes */
.releve { border-top: 1.5px solid var(--ink); }
.releve > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; min-height: 54px; padding-block: 9px; border-bottom: 1px solid var(--rule); }
.releve dt { font-size: 0.9375rem; color: var(--ink-2); }
.releve dd { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 0 10px; text-align: right; }
.releve dd b { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.releve dd span { font-size: 0.875rem; color: var(--ink-2); white-space: nowrap; }
.jauge { grid-column: 1 / -1; position: relative; display: block; height: 10px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 10%) 0 100% / 100% 4px no-repeat, linear-gradient(var(--rule), var(--rule)) 0 0 / 100% 6px no-repeat; }
.jauge i { display: block; width: 0; height: 6px; background: var(--ink); transition: width 1.1s var(--ease); }
.pn { display: flex; align-items: center; gap: 6px; }
.pn button { width: 36px; height: 36px; border: 0; border-radius: 5px; font-size: 1.25rem; line-height: 1; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background 0.15s; }
.pn button:hover { background: var(--sun); }
.pn button[disabled] { opacity: 0.3; pointer-events: none; }
.pn output { width: 44px; text-align: center; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.note, .sub { font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; }
.ligne { display: grid; gap: 9px; min-width: 0; }
.lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.9375rem; font-weight: 600; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--ink); }
.seg button { min-width: 0; padding: 12px 6px; border: 0; background: var(--sheet); font-size: 0.9375rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 0.15s, color 0.15s; }
.seg button + button { box-shadow: inset 1.5px 0 0 var(--ink); }
.seg button:hover { background: var(--sun-2); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.seg button[disabled] { color: var(--ink-3); pointer-events: none; }
.plus summary { cursor: pointer; list-style: none; font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.plus summary::-webkit-details-marker { display: none; }
.plus[open] summary { margin-bottom: 12px; }
.lead__form .plus { margin-top: -2px; }

/* Grands réglages : un chiffre, une réglette */
.champ { display: grid; gap: 8px; min-width: 0; padding: 15px 18px 12px; border-radius: 8px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); }
.grand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grand output { font-size: clamp(2.1rem, 4vw, 2.75rem); font-weight: 750; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.grand button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 6px; font-size: 1.3rem; line-height: 1; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background 0.15s; }
.grand button:hover { background: var(--sun); }
.range { --p: 30%; -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; cursor: pointer; background: repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 5%) 0 100% / 100% 6px no-repeat; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 0; background: linear-gradient(90deg, var(--ink) var(--p), var(--rule) var(--p)); }
.range::-moz-range-track { height: 8px; border-radius: 0; background: linear-gradient(90deg, var(--ink) var(--p), var(--rule) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 32px; margin-top: -12px; border-radius: 4px; background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); }
.range::-moz-range-thumb { width: 20px; height: 32px; border: 2px solid var(--ink); border-radius: 4px; background: var(--sun); }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1.5px solid var(--ink); font-size: 1rem; font-weight: 600; }
.total b { font-size: 1.75rem; font-weight: 750; letter-spacing: -0.04em; }

/* L'interrupteur à bascule */
.bsc { position: relative; flex: none; width: 52px; height: 30px; padding: 0; border: 0; border-radius: 15px; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background 0.25s; -webkit-tap-highlight-color: transparent; }
.bsc i { position: absolute; left: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform 0.4s var(--spring), background 0.25s; }
.bsc[aria-checked="true"], .bsc.is-on { background: var(--ink); }
.bsc[aria-checked="true"] i, .bsc.is-on i { transform: translateX(22px); background: var(--sun); }
.bsc--lg { width: 72px; height: 40px; border-radius: 20px; }
.bsc--lg i { left: 6px; top: 6px; width: 28px; height: 28px; }
.bsc--lg[aria-checked="true"] i, .bsc--lg.is-on i { transform: translateX(32px); }

/* Le résultat : la facture, ligne à ligne */
.res { position: relative; display: grid; gap: 0; padding: 18px 20px 20px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule), 0 24px 44px -30px rgba(22, 24, 27, 0.55); }
.res::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; background: linear-gradient(135deg, var(--sheet) 6px, transparent 0) 0 0 / 12px 100%, linear-gradient(225deg, var(--sheet) 6px, transparent 0) 0 0 / 12px 100%; }
.res__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; font-size: 0.9375rem; font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.res__l > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-block: 11px; border-bottom: 1px dashed var(--ink-3); }
.res__l dt { display: grid; gap: 1px; min-width: 0; font-weight: 600; }
.res__l dt b { font-weight: 600; }
.res__l dt span { font-size: 0.8125rem; font-weight: 400; line-height: 1.4; color: var(--ink-2); }
.res__l dd { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 1.0625rem; font-weight: 500; white-space: nowrap; }
.res__av dd { color: var(--tuile); }
.res.is-apres .res__av dd { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.res__ap { border-bottom: 0 !important; }
.res__ap dt, .res__ap dd { font-size: 1.1875rem; font-weight: 700; color: var(--panneau); }
.sol em { font-style: normal; transition: opacity 0.2s; }
.sol:not(.is-on) em { opacity: 0.4; text-decoration: line-through; }
.sol:not(.is-on) dt { color: var(--ink-3); }
.res__bar { height: 12px; margin-block: 2px 16px; background: repeating-linear-gradient(-45deg, var(--sun) 0 5px, #fff 5px 8px); box-shadow: inset 0 0 0 1px var(--ink); }
.res__bar i { display: block; height: 100%; width: 100%; background: var(--tuile); box-shadow: 1px 0 0 var(--ink); transition: width 1.3s var(--ease), background 0.8s; }
.res.is-apres .res__bar i { background: var(--panneau); }
.res__eco { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 12px; margin-inline: -20px; padding: 14px 20px; background: var(--sun); }
.res__eco > span:not(.roues) { padding-bottom: 0.55em; font-size: 1.0625rem; font-weight: 600; }
.roues--xl { font-size: clamp(2rem, 3.3vw, 2.7rem); }
.res__k { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.res__k b { margin-right: 0.4em; font-weight: 700; color: var(--ink); }
.alerte { margin-top: 10px; padding: 10px 12px; font-size: 0.9375rem; color: var(--err); box-shadow: inset 0 0 0 1.5px var(--err); }

/* Les coordonnées */
.recu { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1.5px dashed var(--ink); border-radius: 6px; background: var(--sheet); }
.recu i { flex: none; width: 44px; height: 44px; border-radius: 5px; display: grid; place-items: center; font-size: 23px; background: var(--sun); }
.recu p { display: grid; gap: 1px; min-width: 0; }
.recu b { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.recu span { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); }
.lead__form { display: grid; gap: 14px; }
.lead__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.f { display: grid; gap: 6px; min-width: 0; }
.f label { font-size: 0.9375rem; font-weight: 600; }
.f input { width: 100%; min-width: 0; padding: 16px 14px; border: 0; border-radius: 6px; font-size: 1.125rem; font-weight: 500; outline: none; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink-3); transition: box-shadow 0.15s; }
.f input::placeholder { color: var(--ink-3); font-weight: 400; }
.f input:focus { box-shadow: inset 0 0 0 2.5px var(--ink); }
.f input.ok { box-shadow: inset 0 0 0 2px var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3.2L14 6' fill='none' stroke='%231f7a4d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.err { font-size: 0.875rem; font-weight: 500; color: var(--err); }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 4px; display: grid; place-items: center; cursor: pointer; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background 0.15s; }
.check input::after { content: ""; width: 11px; height: 6px; margin-top: -3px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg) scale(0); transition: transform 0.25s var(--spring); }
.check input:checked { background: var(--sun); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }

/* Le pied : retour, suite */
.flux__bas { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "retour . suite" "retour . note"; align-items: center; gap: 6px 16px; padding: 14px clamp(20px, 4.4vw, 68px) calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: inset 0 1px 0 var(--rule); }
.flux__retour { grid-area: retour; display: inline-flex; align-items: center; gap: 8px; padding: 12px 6px; border: 0; background: none; font-size: 0.9375rem; font-weight: 500; }
.flux__retour:hover { text-decoration: underline; text-underline-offset: 4px; }
.flux__retour svg { width: 16px; height: 16px; transform: rotate(180deg); }
.flux__retour[disabled] { visibility: hidden; }
.flux__note { grid-area: note; text-align: center; font-size: 0.8125rem; color: var(--ink-2); }
.flux__bas .btn { grid-area: suite; min-height: 58px; min-width: 300px; }
.flux__bas .btn.is-attente { color: var(--ink-3); background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* Calcul en cours */
.analyse { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(243, 242, 238, 0.97); }
.analyse__in { display: grid; gap: 20px; justify-items: start; min-width: min(320px, 100%); }
.analyse__ring { display: none; }
.analyse__t { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; }
.analyse ul { display: grid; justify-self: stretch; border-top: 1.5px solid var(--ink); font-size: 1rem; color: var(--ink-3); }
.analyse li { display: flex; align-items: center; gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--rule); transition: color 0.2s; }
.analyse li::before { content: ""; width: 20px; height: 20px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--ink-3); transition: background 0.2s, box-shadow 0.2s; }
.analyse li.is-ok { color: var(--ink); font-weight: 600; }
.analyse li.is-ok::before { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l2.8 2.8L13.500 6' fill='none' stroke='%2316181b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* ==========================================================================
   ÉTUDE PRÉALABLE — une feuille posée sur la table
   ========================================================================== */
.etude { padding-block: clamp(40px, 6vw, 88px) var(--section); }
.doc { max-width: 1060px; margin-inline: auto; background: var(--sheet); counter-reset: s; box-shadow: 0 0 0 1px var(--rule), 0 50px 90px -60px rgba(22, 24, 27, 0.6); }
.doc__h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; padding: clamp(22px, 3.6vw, 42px); border-top: 8px solid var(--ink); border-bottom: 1px solid var(--rule); }
.doc__h > div { display: grid; gap: 12px; min-width: 0; justify-items: start; }
.doc__k { justify-self: start; padding: 2px 8px 1px; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; background: var(--sun); }
.doc__h h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.doc__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.875rem; color: var(--ink-2); }
.doc__meta b { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--ink); }
#e-exemple { padding: 1px 8px; font-size: 0.75rem; font-weight: 600; color: #fff; background: var(--ink); }
.doc__syn { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: end; padding: clamp(22px, 3.6vw, 42px); border-bottom: 1px solid var(--rule); }
.lab2 { font-size: 1rem; font-weight: 600; }
.syn__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-block: 8px 16px; font-size: clamp(3.4rem, 8.5vw, 6.6rem); font-weight: 750; letter-spacing: -0.055em; line-height: 0.95; }
.syn__big .roll { padding-inline: 0.06em; margin-inline: -0.06em; background: linear-gradient(var(--sun), var(--sun)) 0 80% / 100% 40% no-repeat; }
.syn__big small { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); }
.syn__r { font-size: 0.9375rem; color: var(--ink-2); max-width: 46ch; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis li { display: grid; gap: 4px; align-content: start; padding: 16px 16px 16px 0; border-top: 1px solid var(--rule); }
.kpis li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
.kpis b { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
.doc__s { padding: clamp(22px, 3.6vw, 38px) clamp(22px, 3.6vw, 42px); border-bottom: 1px solid var(--rule); }
.s__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.s__h h3 { counter-increment: s; display: flex; align-items: baseline; gap: 12px; font-size: 1.3125rem; }
.s__h h3::before { content: counter(s); font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
.s__h p { font-size: 0.875rem; color: var(--ink-2); }
.bsc-wrap { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; font-weight: 500; }
.avap { display: grid; gap: 14px; }
.avap__bar { height: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.avap__bar i { display: block; height: 100%; width: 100%; background: var(--tuile); box-shadow: 1px 0 0 var(--ink); transition: width 1s var(--ease), background 0.6s; }
.avap[data-etat="apres"] .avap__bar i { background: var(--panneau); }
.avap__val { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.avap__val b { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1; }
.avap__val span { font-size: 0.9375rem; color: var(--ink-2); }
.lignes { margin-top: 20px; border-top: 1.5px solid var(--ink); }
.lignes li { display: flex; justify-content: space-between; gap: 16px; padding-block: 11px; border-bottom: 1px dashed var(--ink-3); font-size: 1rem; }
.lignes b { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.lignes li.is-total { font-weight: 700; border-bottom: 0; }
.lignes li.is-total b { font-weight: 500; color: var(--panneau); }
.toit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.toit__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #3a4036; box-shadow: 0 0 0 1px var(--ink); }
.toit__photo figcaption { margin-top: 10px; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.specs div, .hyp div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-block: 10px; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.specs div:first-child { border-top: 1.5px solid var(--ink); }
.specs dt, .hyp dt { color: var(--ink-2); }
.specs dd, .hyp dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.doc__s--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.doc__s--2 > div { min-width: 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.hyp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 48px); border-top: 1.5px solid var(--ink); }
.hyp div { font-size: 0.9375rem; }
.doc__note { margin-top: 18px; font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); max-width: 86ch; }
.etude__retour { text-align: center; margin-top: 26px; }
.etude__retour .lien { justify-self: center; }

/* Le sas : ce qu'il reste à faire pour ouvrir l'étude */
.doc__suite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); align-items: center; padding: clamp(22px, 3.6vw, 42px); background: var(--sun); }
.suite__txt { display: grid; gap: 16px; justify-items: start; }
.suite__txt .doc__k { color: #fff; background: var(--ink); }
.doc__suite h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.04; }
.suite__txt p:not(.doc__k) { font-size: 1.0625rem; }
.doc__suite .btn--sun { background: var(--ink); color: #fff; box-shadow: none; }
.doc__suite .btn--sun:hover { background: #000; }
.sas__liste { display: grid; padding: 4px 18px; font-size: 1rem; font-weight: 500; background: var(--sheet); }
.sas__liste li { display: flex; align-items: center; gap: 12px; padding-block: 11px; }
.sas__liste li + li { border-top: 1px dashed var(--ink-3); }
.sas__liste li::before { content: ""; flex: none; width: 11px; height: 6px; margin: -4px 4px 0; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.sas.is-ok { grid-template-columns: 1fr; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.sas.is-ok .sas__liste { display: none; }
.lead__done { display: grid; gap: 12px; justify-items: start; }
.lead__ok { width: 52px; height: 52px; border-radius: 6px; display: grid; place-items: center; background: var(--sun); box-shadow: inset 0 0 0 1.5px var(--ink); }
.lead__ok svg { width: 28px; height: 28px; }
.lead__done h3 { font-size: 1.625rem; }
.lead__done p { font-size: 1rem; color: var(--ink-2); max-width: 64ch; }
.lead__done .btn { margin-top: 6px; }

.verrou { position: relative; }
.doc[data-verrou="1"] .verrou { max-height: 640px; overflow: hidden; }
.doc[data-verrou="1"] .verrou > .doc__s { filter: blur(6px); opacity: 0.75; pointer-events: none; user-select: none; }
.verrou__voile { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 44px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 55%, #fff 88%); }
.doc[data-verrou="0"] .verrou__voile { display: none; }
.btn--dark2 svg, .btn--dark2:hover svg { transform: none; }

/* La barre du bas : reprendre là où l'on s'est arrêté */
.barre { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 55; width: min(430px, calc(100% - 40px)); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 8px; color: #fff; background: var(--ink); box-shadow: 0 24px 44px -22px rgba(22, 24, 27, 0.7); animation: monte 0.35s var(--ease); }
.barre div { display: grid; line-height: 1.3; min-width: 0; }
.barre b { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.barre span { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre .btn span { color: inherit; font-size: inherit; }
@keyframes monte { from { transform: translateY(20px); opacity: 0; } }

/* ==========================================================================
   GABARIT PDF (A4 à 96 ppp : 794 × 1123 px), rendu hors écran
   ========================================================================== */
.pdf { position: fixed; left: -12000px; top: 0; width: 794px; }
.a4 { position: relative; width: 794px; height: 1123px; overflow: hidden; background: #fff; color: #16181b; font-family: var(--sans); font-size: 12px; line-height: 1.5; }
.a4__band { height: 172px; padding: 34px 48px; color: #16181b; background: #ffd426; display: flex; justify-content: space-between; align-items: flex-start; }
.a4__logo { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 700; line-height: 1.3; }
.a4__logo i { position: relative; display: block; width: 32px; height: 19px; border-radius: 10px; background: #16181b; }
.a4__logo i::after { content: ""; position: absolute; right: 3px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: #ffd426; }
.a4__k { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: #16181b; margin-top: 22px; }
.a4__t { font-size: 24px; font-weight: 700; line-height: 1.15; margin-top: 4px; max-width: 470px; }
.a4__meta { text-align: right; font-size: 11px; line-height: 1.7; color: #4b4f55; }
.a4__meta b { color: #16181b; font-weight: 500; font-family: var(--mono); }
.a4__body { padding: 28px 48px 0; }
.a4 h4 { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: #16181b; }
.a4 .p-sub { font-size: 10.5px; color: #4b4f55; margin: -8px 0 10px; }
.p-syn { display: flex; gap: 34px; align-items: flex-end; padding-bottom: 22px; border-bottom: 1px solid #d9d7d0; }
.p-big { font-size: 72px; font-weight: 700; line-height: 1; margin: -6px 0 34px; color: #16181b; white-space: nowrap; }
.p-big small { font-size: 16px; font-weight: 400; color: #4b4f55; margin-left: 8px; }
.p-lab { font-size: 12px; color: #4b4f55; margin-bottom: 6px; }
.p-range { font-size: 11px; color: #4b4f55; margin-top: 10px; max-width: 330px; }
.p-kpis { flex: 1; display: flex; flex-wrap: wrap; }
.p-kpis div { width: 50%; padding: 9px 0 9px 14px; border-left: 1px solid #d9d7d0; }
.p-kpis b { display: block; font-size: 19px; font-weight: 700; color: #16181b; line-height: 1.3; }
.p-kpis span { font-size: 10px; color: #4b4f55; line-height: 1.3; display: block; }
.p-sec { padding: 20px 0; border-bottom: 1px solid #d9d7d0; }
.p-sec:last-child { border-bottom: 0; }
.p-cols { display: flex; gap: 30px; }
.p-cols > div { flex: 1; min-width: 0; }
.p-cols > .p-photo { width: 392px; flex: none; }
.p-photo img { width: 392px; height: 261px; object-fit: cover; display: block; }
.p-photo p { font-size: 8.5px; color: #4b4f55; margin-top: 6px; line-height: 1.4; }
.p-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 6.5px 0; border-bottom: 1px solid #d9d7d0; font-size: 11.5px; }
.p-rows dt { color: #4b4f55; }
.p-rows dd { font-weight: 600; color: #16181b; text-align: right; }
.p-rows .is-total dt, .p-rows .is-total dd { font-weight: 700; color: #16181b; }
.p-rows .is-total dd { color: #1c3faa; }
.p-bars { display: flex; flex-direction: column; gap: 10px; }
.p-bar { display: flex; align-items: center; gap: 12px; font-size: 11.5px; }
.p-bar span { width: 96px; flex: none; color: #4b4f55; }
.p-bar i { display: block; height: 14px; background: #cf4a2a; }
.p-bar.is-b i { background: #1c3faa; }
.p-bar b { font-weight: 700; color: #16181b; white-space: nowrap; }
.p-note { font-size: 9.5px; line-height: 1.5; color: #4b4f55; }
.p-next { display: flex; gap: 14px; }
.p-next div { flex: 1; padding: 13px 15px; background: #f3f2ee; }
.p-next b { display: block; font-size: 12px; color: #16181b; margin-bottom: 3px; }
.p-next span { font-size: 10.5px; color: #4b4f55; line-height: 1.45; display: block; }
.p-next em { font-style: normal; font-family: var(--mono); font-size: 10px; color: #16181b; }
.a4__foot { position: absolute; left: 48px; right: 48px; bottom: 26px; display: flex; justify-content: space-between; gap: 20px; font-size: 9px; color: #8a8d91; border-top: 1px solid #d9d7d0; padding-top: 10px; }
.a4 .chart svg { width: 100%; height: auto; }

/* ==========================================================================
   ADAPTATIONS
   ========================================================================== */
@media (max-width: 1100px) {
  .fiches { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .fiche:nth-child(odd) { padding-left: 0; border-left: 0; }
  .rail--flux li span { display: none; }
  .rail--flux li.is-on span { display: inline; }
  .depart { width: calc(100% + 40px); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__in { justify-content: space-between; height: 58px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: calc(58px + env(safe-area-inset-top, 0px)); }
  .hero__txt { gap: 18px; padding: 28px var(--gutter) 30px; }
  .depart { width: 100%; }
  .planche { min-height: 0; height: clamp(300px, 86vw, 520px); }
  .planche figcaption { padding-left: 18px; }
  .hero--dep { padding-block: calc(58px + 40px) 48px; }
  .pas { grid-template-columns: 1fr; row-gap: 40px; }
  .pas__it { padding-inline: 0; border-left: 0; }
  .doc__syn, .toit, .doc__s--2, .doc__suite, .duo, .faq__in, .foot__in { grid-template-columns: 1fr; }
  .faq .head { position: static; }
  .hyp { grid-template-columns: 1fr; }
  .barre { left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 16px; }

  /* Le parcours sur téléphone : la maison en haut, la question dessous, le bouton sous le pouce */
  .flux__top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; height: 56px; padding-inline: 14px; }
  .flux__top .logo { font-size: 0; gap: 0; }
  .rail--flux { justify-self: center; }
  .rail--flux li { font-size: 0.875rem; gap: 7px; }
  .rail--flux li + li::before { width: 8px; margin-inline: 6px; }
  .flux__n { display: none; }
  .flux__x { width: 36px; height: 36px; }
  .flux__corps { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .flux__scene { --scene: 24svh; height: var(--scene); min-height: 132px; margin: 10px 12px 0; transition: height 0.5s var(--ease), min-height 0.5s var(--ease), margin 0.5s var(--ease), opacity 0.3s; }
  .flux[data-pas="toit"] .flux__scene { --scene: 36svh; }
  .flux[data-pas="resultat"] .flux__scene { --scene: 20svh; }
  .flux[data-pas="contact"] .flux__scene { --scene: 0px; min-height: 0; margin-top: 0; opacity: 0; }
  .carte__top, .carte__bas { left: 9px; right: 9px; }
  .carte__top { top: 9px; }
  .carte__bas { bottom: 9px; }
  .badge { padding: 6px 9px; font-size: 0.75rem; }
  .carte__zoom { grid-auto-flow: column; }
  .carte__zoom button { width: 34px; height: 34px; font-size: 1.0625rem; }
  .carte__zoom #z-plus, .carte__zoom #z-moins, .leaflet-control-scale { display: none; }
  .flux[data-pas="toit"] .carte__zoom #z-plus, .flux[data-pas="toit"] .carte__zoom #z-moins { display: block; }
  .carte__credit { font-size: 0.5625rem; }
  .cpt { gap: 5px; padding: 8px 10px 9px; }
  .cpt small { font-size: 0.6875rem; }
  .cpt .roues { font-size: 1.1875rem; }
  .cpt p > span:last-child { font-size: 0.75rem; padding-bottom: 2px; }
  .flux[data-pas="resultat"] .cpt { display: none; }
  .flux__defile { align-items: start; padding: 18px 16px 26px; }
  .etp { gap: 14px; }
  .etp__q { font-size: clamp(1.625rem, 7vw, 2.1rem); }
  .etp__aide { font-size: 1rem; }
  .flux__bas { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "retour suite"; gap: 10px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--paper); }
  .flux__note { display: none; }
  .flux__retour { width: 54px; height: 56px; padding: 0; justify-content: center; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--ink); }
  .flux__retour span { display: none; }
  .flux__retour[disabled] { display: none; }
  .flux__bas:has(.flux__retour[disabled]) .btn { grid-column: 1 / -1; }
  .flux__bas .btn { min-width: 0; width: 100%; min-height: 56px; }
}
@media (max-width: 560px) {
  .fiches { grid-template-columns: 1fr; }
  .fiche { padding-left: 0; border-left: 0; }
  .hero__title { font-size: clamp(2.05rem, 10vw, 2.6rem); }
  .depart { padding: 14px; }
  .adr { height: auto; flex-wrap: wrap; padding: 10px; gap: 8px; }
  .adr__pin { margin-left: 6px; }
  .adr__input { height: 44px; flex-basis: calc(100% - 46px); }
  .adr .btn { width: 100%; height: 56px; font-size: 1.0625rem; }
  .adr { scroll-margin-top: 130px; }
  .adr__list:not(.adr__list--haut) { top: 60px; }
  .adr__list--haut { bottom: calc(100% - 4px); }
  .etapes { font-size: 0.75rem; }
  .etapes li + li { margin-left: 5px; }
  .etapes li::before { margin-right: 4px; }
  .etapes li + li::before { content: "→\00a0" counter(e); }
  .hero__lead { font-size: 1rem; }
  .depart__bas { font-size: 0.8125rem; }
  .hero__facts { gap: 6px 18px; font-size: 0.875rem; }
  .pl-tag { font-size: 0.625rem; }
  .seg--4 { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuile { padding: 12px 46px 12px 12px; }
  .tuile > i { width: 46px; height: 46px; font-size: 24px; }
  .tuile--h { padding: 13px 13px 14px; }
  .tuile--h > i { margin-bottom: 10px; }
  .tuile--mini { padding: 13px 6px; }
  .tuiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead__row { grid-template-columns: 1fr; }
  .barre div span { display: none; }
  .kpis b { font-size: 1.4rem; }
  .res { padding-inline: 16px; }
  .res__eco { margin-inline: -16px; padding-inline: 16px; }
  .res__l dt span { display: none; }
  .res__h { padding-bottom: 9px; }
  .res__l > div { padding-block: 9px; }
  .res__eco { gap: 2px 10px; padding-block: 10px 12px; }
  .res__eco > span:first-child { flex-basis: 100%; padding-bottom: 0; }
  .res .bsc--lg { width: 60px; height: 34px; }
  .res .bsc--lg i { width: 22px; height: 22px; }
  .res .bsc--lg.is-on i { transform: translateX(26px); }
  .roues--xl { font-size: clamp(2rem, 11vw, 2.6rem); }
}
@media (max-height: 760px) and (min-width: 901px) {
  .etp { gap: 14px; }
  .etp__q { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
  .tuile { padding-block: 11px; }
  .tuile > i { width: 44px; height: 44px; font-size: 23px; }
  .flux__bas .btn { min-height: 54px; }
  .res__l > div { padding-block: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .toit-contour { stroke-dashoffset: 0; }
  .toit-panneau { opacity: 1; }
}

/* ==========================================================================
   CONVERSION — l'outil en action dès l'accueil, de vraies captures, des exemples
   ========================================================================== */
.mot--plat { transform: none; }
.hero__title { font-size: clamp(2.2rem, 4.2vw, 4rem); }
.depart__bas { justify-content: flex-start; gap: 6px 22px; }
.depart__bas .lien { display: inline-flex; align-items: center; gap: 6px; }
.depart__bas .lien .ic { font-size: 16px; }
.depart__aide { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: rgba(22, 24, 27, 0.72); }
.depart__aide svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.reprise { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-radius: 6px; text-align: left; color: #fff; background: var(--ink); }
.reprise b { font-weight: 650; white-space: nowrap; }
.reprise span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); }
.reprise .ic { font-size: 18px; }
.preuve { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.9375rem; color: var(--ink-2); }
.preuve b { font-weight: 700; color: var(--ink); }

/* La planche joue la démonstration : l'adresse se tape, le toit se trace, le compteur tourne */
.planche__saisie { position: absolute; left: 18px; top: 18px; display: flex; align-items: center; gap: 8px; min-width: 236px; padding: 9px 12px; border-radius: 4px; font-size: 0.9375rem; font-weight: 500; background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.planche__saisie .ic { font-size: 17px; }
.planche__saisie span::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -0.16em; background: var(--ink); animation: curseur 1s steps(1) infinite; }
@keyframes curseur { 50% { opacity: 0; } }
.planche__cpt { position: absolute; left: clamp(56px, 8vw, 140px); bottom: 64px; }
.planche__credit { display: none; position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; font-size: 0.625rem; color: #fff; background: rgba(22, 24, 27, 0.7); }

/* Comment ça marche : de vraies captures du parcours, dans un téléphone */
.pas { align-items: start; }
.pas__it { gap: 22px; }
.tel { width: min(100%, 236px); padding: 6px; border-radius: 28px; background: var(--ink); box-shadow: 0 34px 50px -34px rgba(22, 24, 27, 0.7); }
.tel img { width: 100%; height: auto; aspect-ratio: 600 / 1298; object-fit: cover; object-position: top; border-radius: 22px; background: var(--paper); }
.pas__t { display: grid; gap: 8px; }
.pas__n { order: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; font-size: 0.875rem; color: var(--ink); background: var(--sun); }

/* Ce que vous recevez : les deux vraies pages de l'étude */
.recoit { padding-block: var(--section); background: var(--sheet); }
.recoit__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.recoit__txt { display: grid; gap: 20px; justify-items: start; }
.recoit__txt .eyebrow { justify-self: stretch; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.coches { justify-self: stretch; border-top: 1px solid var(--rule); }
.coches li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.coches li::before { content: ""; grid-row: span 2; width: 11px; height: 6px; margin: 7px 4px 0; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.coches b { font-weight: 650; }
.coches span { font-size: 0.9375rem; color: var(--ink-2); }
.feuilles { position: relative; aspect-ratio: 1 / 1.1; }
.feuille { position: absolute; left: 3%; top: 2%; z-index: 2; width: 66%; height: auto; background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 40px 60px -36px rgba(22, 24, 27, 0.6); transform: rotate(-3deg); }
.feuille--2 { left: 31%; top: 9%; z-index: 1; transform: rotate(4deg); }

/* Exemples chiffrés : trois factures */
.cas { padding-block: var(--section); }
.cas__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); padding-bottom: 9px; }
.cas__c { position: relative; display: grid; align-content: start; padding: 18px 20px 0; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule), 0 24px 44px -32px rgba(22, 24, 27, 0.5); }
.cas__c::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; background: linear-gradient(135deg, var(--sun) 6px, transparent 0) 0 0 / 12px 100%, linear-gradient(225deg, var(--sun) 6px, transparent 0) 0 0 / 12px 100%; }
.cas__h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; font-weight: 650; border-bottom: 1.5px solid var(--ink); }
.cas__h .ic { font-size: 22px; }
.cas__c dl > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px dashed var(--ink-3); }
.cas__c dd { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.cas__av dd { color: var(--tuile); text-decoration: line-through; }
.cas__ap { border-bottom: 0 !important; }
.cas__ap dt, .cas__ap dd { font-weight: 700; color: var(--panneau); }
.cas__eco { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 4px -20px 0; padding: 14px 20px 12px; background: var(--sun); }
.cas__eco b { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1; }
.cas__eco span { font-weight: 600; }
.cas__n { margin-top: 28px; font-size: 0.9375rem; color: var(--ink-2); max-width: 80ch; }

/* Coordonnées : le toit du visiteur en vignette */
.recu img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1px var(--ink); }
.f small { font-size: 0.8125rem; color: var(--ink-2); }

@media (max-width: 900px) {
  /* Sur téléphone : la démonstration en bandeau, puis le titre et le formulaire, visibles sans défiler */
  .planche { order: -1; height: clamp(170px, 46vw, 250px); }
  .planche figcaption, .planche__rep, .planche__saisie, .pl-tag, .pl-cote, .pl-fil, .pl-pt { display: none; }
  .planche__credit { display: block; }
  .planche__cpt { left: 10px; bottom: 10px; }
  .hero__txt { padding-top: 20px; }
  .hero__lead { order: 5; }
  .hero__facts { order: 6; }
  .preuve { order: 7; }
  .pas__it { grid-template-columns: 124px minmax(0, 1fr); column-gap: 18px; align-items: center; }
  .tel { width: 124px; padding: 4px; border-radius: 18px; }
  .tel img { border-radius: 14px; }
  .recoit__in { grid-template-columns: minmax(0, 1fr); }
  .feuilles { order: -1; width: 100%; max-width: 440px; justify-self: center; }
  .cas__g { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 560px) {
  .hero__title { font-size: clamp(1.95rem, 9.4vw, 2.5rem); }
  .depart__bas { gap: 6px 18px; }
}
