/* ════════════════════════════════════════════════════════════════════
   Accueil · « L'anatomie d'un bien »
   Typographie : Archivo (titres à largeur normale, graisse 600 à 650 ; texte et libellés), IBM Plex Mono réservé aux chiffres, mesures et cotes.
   Couleurs : uniquement des variables, issues de la palette du site (bleu nuit, bleu, or).
   Mouvement : transform et opacity uniquement ; courbes d'Emil Kowalski.
   ════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-latin-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plex-mono-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plex-mono-500-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
/* repli aux métriques proches : limite le décalage au chargement des polices */
@font-face { font-family: 'Archivo Repli'; src: local('Arial'); size-adjust: 103%; ascent-override: 86%; descent-override: 21%; line-gap-override: 0%; }
@font-face { font-family: 'Plex Repli'; src: local('Menlo'), local('Courier New'); size-adjust: 98%; ascent-override: 98%; descent-override: 26%; }

:root {
  /* palette du site (index.html :root) */
  --blue: #2B9FFF; --blue-h: #0A85E8; --blue-d: #004E9A; --blue-s: #EAF4FF; --blue-xs: #F4F9FF;
  --night: #0E4F8C; --night-2: #083468; --night-3: #083060; --deep: #062448;
  --ink: #07142A; --ink2: #1A2E45; --slate: #3A5068; --mist: #7B93AA; --ghost: #B8CAD8;
  --white: #FFFFFF; --bg: #F5F8FC; --gold: #F0A500; --gold-l: #FFD166; --green: #00C896;
  --green-l: #6EEAC6;             /* vert lisible sur bleu nuit (5,8:1) */
  /* dérivés (même univers) */
  --gold-ink: #7A5200;            /* or lisible sur fond clair (7:1) */
  --gold-soft: #FFE7A6;
  --green-d: #007A5C;             /* vert lisible sur fond clair */
  --cut: #0B2647;                 /* bleu nuit des faces coupées */
  --line: rgba(7, 20, 42, .12); --line-2: rgba(7, 20, 42, .22);
  --line-d: rgba(255, 255, 255, .14); --line-d2: rgba(255, 255, 255, .28);
  --on-dark: rgba(255, 255, 255, .86); --on-dark-2: rgba(255, 255, 255, .7);
  --panel: rgba(7, 20, 42, .9);
  --glass: rgba(255, 255, 255, .88);   /* barre de navigation au-dessus de la 3D */
  --shade: rgba(4, 12, 28, .86);
  --f-display: 'Archivo', 'Archivo Repli', 'Helvetica Neue', Arial, sans-serif;
  --f-text: 'Archivo', 'Archivo Repli', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', 'Plex Repli', ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --nav-h: 76px; --mbar-h: 0px;   /* barre flottante : 10 px de marge + 60 px + respiration */
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --focus: var(--blue-h);
  color-scheme: light;
  /* ombres, voiles et couleurs fonctionnelles (toutes les couleurs passent par une variable) */
  --shade-0: rgba(4, 12, 28, 0); --shade-28: rgba(4, 12, 28, .28); --shade-32: rgba(4, 12, 28, .32); --shade-50: rgba(4, 12, 28, .5); --shade-55: rgba(4, 12, 28, .55); --shade-56: rgba(4, 12, 28, .56); --shade-66: rgba(4, 12, 28, .66);
  --drop-45: rgba(0, 0, 0, .45); --drop-50: rgba(0, 0, 0, .5); --drop-55: rgba(0, 0, 0, .55); --drop-60: rgba(0, 0, 0, .6);
  --ink-35: rgba(7, 20, 42, .35); --ink-45: rgba(7, 20, 42, .45); --ink-50: rgba(7, 20, 42, .5); --ink-82: rgba(7, 20, 42, .82); --ink-88: rgba(7, 20, 42, .88);
  --white-06: rgba(255, 255, 255, .06); --white-40: rgba(255, 255, 255, .4); --gold-08: rgba(255, 209, 102, .08);
  --neg: #FFB3A1; --neg-bar: #FF8A73;          /* effet négatif sur le prix (récapitulatif) */
  --whatsapp: #25D366;                          /* couleur de marque WhatsApp */
  --dpe-a: #00A06D; --dpe-b: #52B153; --dpe-c: #A5CC74; --dpe-d: #F4E70F; --dpe-e: #F0B50F; --dpe-f: #EB8235; --dpe-g: #D7221F; /* étiquette énergie officielle */
}
@media (max-width: 820px) { :root { --nav-h: 68px; --mbar-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--slate) var(--bg); scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f-text); font-stretch: 100%; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; caret-color: var(--blue-h); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
sup { font-size: .62em; line-height: 0; vertical-align: .55em; }
::selection { background: var(--gold-l); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: transform 200ms var(--ease-out); }
.skip:focus { transform: translateY(72px); }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 22px; height: 22px; } .ico--xl { width: 40px; height: 40px; stroke-width: 1.2; }
.ico--star { fill: var(--gold); stroke: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: max(var(--gut), min(48px, 4vw)); }
.wrap--narrow { max-width: 860px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ─── boutons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent;
  font-family: var(--f-display); font-stretch: 100%; font-weight: 600; font-size: 15.5px; letter-spacing: 0; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.btn:active { transform: scale(.97); }
.btn .ico { transition: transform 200ms var(--ease-out); }
.btn--gold { background: var(--gold-l); color: var(--ink); box-shadow: 0 10px 22px -14px var(--drop-50); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--line-light { border-color: var(--line-d2); color: var(--white); background: transparent; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { background: var(--gold); }
  .btn--ink:hover { background: var(--night); }
  .btn--line:hover { border-color: var(--ink); }
  .btn--line-light:hover { border-color: var(--white); }
  .btn:hover .ico { transform: translateX(3px); }
}

/* ════════ bandeau, navigation, menu mobile : css/site-nav.css (composant partagé par toutes les pages) ════════ */

/* ════════ L'anatomie d'un bien ════════ */
.anat { position: relative; background: var(--deep); }
.anat-stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; overflow: clip; z-index: 1; background: var(--deep); contain: layout paint; }
.anat-track { margin-top: -100vh; margin-top: -100lvh; pointer-events: none; }
.anat-track > div { height: calc(var(--len, 1) * 100vh); height: calc(var(--len, 1) * 100lvh); } /* hauteurs posées en CSS : aucun décalage au chargement */
.anat-poster, .anat-poster img, .anat-canvas, .anat-stills { position: absolute; inset: 0; width: 100%; height: 100%; }
.anat-poster img { object-fit: cover; }
/* ordinateur : l'image de départ est la 3D elle-même, très large (.tools/affiche.mjs). Même échelle en hauteur et même centre d'objectif que lensAt (story.js) : le passage à la 3D ne se voit pas */
@media (min-width: 821px) and (max-aspect-ratio: 11/5) {
  .anat-poster img { width: auto; max-width: none; right: auto; object-fit: fill;
    left: calc(47.7% - min(max(0px, 160vh - 100%) * .33, 15vh) - 104.94vh); }
}
.anat-canvas { opacity: 0; transition: opacity 260ms var(--ease-out); touch-action: pan-y; }
.anat.is-ready .anat-canvas { opacity: 1; }
.anat-stills img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms ease; }
.anat-stills img.is-on { opacity: 1; }
.anat-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--shade-66) 0%, var(--shade-56) 30%, var(--shade-32) 46%, var(--shade-0) 62%), linear-gradient(180deg, var(--shade-28) 0%, var(--shade-0) 22%); }
/* 3D prête : le voile est dessiné dans la toile (mêmes arrêts) ; le calque HTML ne sert plus qu'à l'affiche et aux illustrations */
.anat.is-ready:not(.anat--static) .anat-shade { visibility: hidden; transition: visibility 0s linear 300ms; }
.anat-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* photo à l'arrêt (hybride, 02/11/2026) : image calculée hors ligne du plan exact de la 3D posée, en fondu par-dessus la toile ;
   placée par main.js (largeur et bord gauche en %, selon le format de l'écran) ; son voile est celui de la toile (mêmes arrêts) */
.anat-photo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s linear 160ms; }
.anat-photo.is-on { opacity: 1; visibility: visible; transition: opacity 450ms ease; }
.anat-photo img { position: absolute; top: 0; height: 100%; width: auto; max-width: none; }
.anat-photo-veil { position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--shade-66) 0%, var(--shade-56) 30%, var(--shade-32) 46%, var(--shade-0) 62%), linear-gradient(180deg, var(--shade-28) 0%, var(--shade-0) 22%); }

/* récit : une carte par chapitre, toutes au même endroit, fondu enchaîné */
.anat-cards { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding: calc(var(--nav-h) + 20px) var(--gut) 120px max(var(--gut), min(80px, 5.5vw)); pointer-events: none; }
.anat-card { grid-area: 1 / 1; min-width: 0; max-width: min(29rem, 40vw); color: var(--white); opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 240ms ease, transform 420ms var(--ease-out); }
.anat-card.is-active { opacity: 1; transform: none; pointer-events: auto; transition: opacity 420ms ease 140ms, transform 520ms var(--ease-out) 100ms; }
.anat-card:not(.anat-card--hero):not(.anat-card--end) { background: var(--panel); border: 1px solid var(--line-d); border-radius: 8px; padding: 28px 30px 24px; box-shadow: 0 30px 60px -30px var(--drop-55); }
.anat-card--hero { max-width: min(40rem, 50vw); }
/* le voile est plus léger depuis le 04/11 : une ombre courte garde le texte net sur les nuages clairs */
.anat-card--hero h1, .anat-card--hero .lead, .anat-card--hero .proof, .anat-card--end h2, .anat-card--end p { text-shadow: 0 1px 2px var(--drop-45), 0 0 22px var(--shade-50); }
.anat-card--end { max-width: min(34rem, 46vw); }
.anat-card h1 { font-family: var(--f-display); font-stretch: 104%; font-weight: 650; font-size: clamp(2.3rem, 4.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; }
.anat-card h2 { font-family: var(--f-display); font-stretch: 104%; font-weight: 640; font-size: clamp(1.8rem, 2.55vw, 2.45rem); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 14px; }
.anat-card--end h2 { font-size: clamp(2.4rem, 4vw, 3.8rem); }
.anat-card p { color: var(--on-dark); font-size: 16.5px; line-height: 1.58; max-width: 40ch; }
.anat-card .lead { font-size: 18.5px; line-height: 1.55; max-width: 42ch; margin-top: 22px; color: var(--white); }
.crit { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-right: .3em; border: 2px solid var(--gold-l); border-radius: 50%; color: var(--gold-l); font-family: var(--f-text); font-weight: 650; font-size: .62em; letter-spacing: 0; vertical-align: .18em; }
.measure { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-d); font-family: var(--f-text); font-size: 13px; letter-spacing: .02em; color: var(--on-dark-2) !important; max-width: none !important; }
.measure b { font-family: var(--f-display); font-weight: 650; font-variant-numeric: tabular-nums; font-size: 20px; line-height: 1.2; color: var(--ink); background: var(--gold-l); padding: 4px 10px; border-radius: 3px; letter-spacing: 0; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; max-width: 30rem; margin-top: 22px; font-family: var(--f-text); font-size: 13px; letter-spacing: .04em; color: var(--white); }
.proof li { display: inline-flex; align-items: center; gap: 9px; }
.proof li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.link-down, .link-inline, .link-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; }
.link-down { border-bottom: 1px solid var(--line-d2); min-height: 0; padding: 12px 0 4px; }
.link-inline { margin-top: 12px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-d2); min-height: 44px; }
.link-tel { flex-direction: column; align-items: flex-start; gap: 0; font-family: var(--f-text); font-weight: 600; font-size: 17px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.link-tel span { font-family: var(--f-text); font-weight: 400; font-size: 13px; color: var(--on-dark-2); }
@media (hover: hover) and (pointer: fine) { .link-down:hover { border-color: var(--white); } .link-inline:hover { text-decoration-color: var(--white); } }

/* valeur finale et récapitulatif */
.final { display: grid; gap: 6px; margin-top: 18px; max-width: none !important; }
.final-num { font-family: var(--f-display); font-weight: 650; font-size: clamp(2.6rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -.035em; color: var(--gold-l); font-variant-numeric: tabular-nums; }
.final-sub { font-family: var(--f-text); font-size: 13px; color: var(--on-dark-2); }
.recap { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line-d); font-family: var(--f-text); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.recap li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-d); color: var(--on-dark); }
.recap i { font-style: normal; color: var(--gold-l); }
.recap b { font-family: var(--f-text); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--white); }
.recap li.is-neg b { color: var(--neg); }
.recap li .bar { position: absolute; left: 32px; bottom: -1px; height: 2px; background: var(--gold-l); transform-origin: left; }
.recap li.is-neg .bar { background: var(--neg-bar); }
.note { margin-top: 12px; font-size: 12.5px !important; color: var(--on-dark-2) !important; line-height: 1.5 !important; }

/* récit à partir de l'adresse du visiteur (js/recit-perso.js) : même carte, la ligne de mesure porte la réponse */
.anat-card.is-perso > :not(h2):not(.perso), .anat-card .perso, .anat .a-seconde-chance > .link-inline { display: none; }
.anat-card.is-perso .perso { display: block; }
.link-down > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-d); }
.perso .q + div > .q, .perso div + .q, .perso div[data-p] > .q { margin-top: 14px; padding-top: 0; border-top: 0; }
.anat-card p.q-t, .anat-card label.q-t { display: block; max-width: none; margin-bottom: 10px; font-family: var(--f-text); font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--white); }
.q-row { display: flex; flex-wrap: wrap; gap: 8px; }
.q-c { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; border: 1px solid var(--line-d2); border-radius: 6px; background: transparent; color: var(--white); font-family: var(--f-text); font-weight: 600; font-size: 14.5px; line-height: 1; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.q-c:active { transform: scale(.97); }
.q-c[aria-pressed="true"] { background: var(--gold-l); border-color: var(--gold-l); color: var(--ink); }
.q-c:focus-visible, .q-skip:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.q-c sup { font-size: .68em; line-height: 0; vertical-align: .42em; }
@media (hover: hover) and (pointer: fine) { .q-c:not([aria-pressed="true"]):hover { border-color: var(--white); } .q-skip:hover { text-decoration-color: var(--white); } }
.q-dpe { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.q-dpe .q-c { padding: 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.q-skip { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--on-dark-2); font-family: var(--f-text); font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-d2); cursor: pointer; }
.q-skip[aria-pressed="true"] { color: var(--gold-l); text-decoration-color: var(--gold-l); }
.q-s { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px 4.6ch; align-items: center; gap: 10px; }
.q-s .q-c { width: 44px; padding: 0; }
.q-s svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.q-s output { font-family: var(--f-display); font-weight: 650; font-size: 20px; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
/* touch-action : un glissement vertical sur le curseur fait défiler le récit, seul le geste horizontal règle la surface */
.q-r { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.q-r::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--gold-l) var(--p, 0%), var(--line-d2) var(--p, 0%)); }
.q-r::-moz-range-track { height: 2px; border-radius: 2px; background: var(--line-d2); }
.q-r::-moz-range-progress { height: 2px; border-radius: 2px; background: var(--gold-l); }
.q-r::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border: 0; border-radius: 50%; background: var(--gold-l); box-shadow: 0 2px 6px var(--drop-50); }
.q-r::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--gold-l); box-shadow: 0 2px 6px var(--drop-50); }
.q-r.is-vide::-webkit-slider-thumb { background: var(--ink); box-shadow: inset 0 0 0 2px var(--gold-l); }
.q-r.is-vide::-moz-range-thumb { background: var(--ink); box-shadow: inset 0 0 0 2px var(--gold-l); }
.q-r:focus-visible { outline: none; }
.q-r:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--white); outline-offset: 2px; }
.q-r:focus-visible::-moz-range-thumb { outline: 2px solid var(--white); outline-offset: 2px; }
.perso .measure { margin-top: 16px; }
.measure b.is-vide { padding: 4px 0; background: none; color: var(--on-dark-2); font-weight: 500; }
.measure b.is-maj { animation: q-maj 220ms var(--ease-out); }
@keyframes q-maj { from { opacity: .4; transform: scale(.96); } to { opacity: 1; transform: none; } }
.recap.is-votre b.is-visite { font-weight: 500; color: var(--on-dark-2); }
.recap.is-votre li.is-tot { border-bottom: 0; padding-top: 10px; }
.recap.is-votre li.is-tot span, .recap.is-votre li.is-tot b { color: var(--white); font-weight: 650; font-size: 14px; }
/* 10/11/2026 : « Me localiser » dans la carte A, sur la ligne du libellé (le libellé passe sur deux lignes si la carte est étroite) */
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.anat-card .q-top label.q-t { flex: 1 1 0; min-width: 0; margin-bottom: 0; }
.q-top .q-geo { flex: none; }
.q-ad { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.q-ad input { min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-d2); border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--white); font-family: var(--f-text); font-size: 16px; }
.q-ad input::placeholder { color: var(--on-dark-2); }
.q-ad input:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.q-go { background: var(--gold-l); border-color: var(--gold-l); color: var(--ink); }
.anat-card p.q-err { margin-top: 8px; font-size: 13.5px; color: var(--neg); max-width: none; }
.hero-field { position: relative; }
.adr-list { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 6px); max-height: 232px; overflow-y: auto; padding: 4px; border-radius: 8px; background: var(--white); color: var(--ink); box-shadow: 0 24px 50px -24px var(--drop-50); }
.adr-list li { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 5px; font-family: var(--f-text); font-size: 15px; line-height: 1.25; cursor: pointer; }
.adr-list li[aria-selected="true"] { background: var(--line); }
@media (hover: hover) and (pointer: fine) { .adr-list li:hover { background: var(--line); } }

/* repère d'étape : nomenclature + valeur en cours */
.hud { position: absolute; z-index: 4; left: max(var(--gut), min(80px, 5.5vw)); bottom: 28px; width: min(29rem, max(40vw, 25rem), calc(100% - 2 * var(--gut))); display: grid; grid-template-columns: auto 1fr; grid-template-areas: "steps val" "now val" "skip skip";
  gap: 6px 18px; align-items: center; padding: 14px 18px 12px; background: var(--white); color: var(--ink); border-radius: 8px; box-shadow: 0 24px 50px -24px var(--drop-50);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 260ms ease, transform 360ms var(--ease-out); }
.hud.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hud-steps { grid-area: steps; display: flex; gap: 6px; }
.hud-steps a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); font-family: var(--f-text); font-weight: 650; font-size: 12.5px; color: var(--slate); text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.hud-steps a:active { transform: scale(.96); }
.hud-steps a.is-done { background: var(--ink); border-color: var(--ink); color: var(--white); }
.hud-steps a.is-now { background: var(--gold-l); border-color: var(--gold); color: var(--ink); }
.hud-now { grid-area: now; display: flex; gap: 10px; align-items: baseline; font-family: var(--f-text); font-size: 12px; letter-spacing: .05em; font-weight: 500; text-transform: uppercase; color: var(--slate); }
.hud-count { color: var(--ink); font-weight: 500; }
.hud-val { grid-area: val; justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; column-gap: 5px; text-align: right; }
.hud-num { font-family: var(--f-display); font-weight: 650; font-size: 30px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hud-unit { font-family: var(--f-text); font-weight: 500; font-size: 14px; color: var(--slate); }
.hud-coef { flex-basis: 100%; font-family: var(--f-text); font-weight: 600; font-size: 12.5px; color: var(--gold-ink); min-height: 1.2em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hud-skip { grid-area: skip; justify-self: start; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); width: 100%; font-size: 13px; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.hud.is-final .hud-num { color: var(--gold-ink); }

/* passe 13 : en haut à droite, sous la barre (en bas, il passait sous le bouton de discussion et son texte était coupé) */
.anat-nogl { position: absolute; z-index: 5; right: var(--gut); top: calc(var(--nav-h) + 14px); padding: 10px 14px; background: var(--panel); color: var(--on-dark); font-size: 13px; line-height: 1.4; border-radius: 6px; width: max-content; max-width: min(340px, calc(100% - 2 * var(--gut))); white-space: normal; text-wrap: pretty; animation: nogl 7s ease forwards; }
@keyframes nogl { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (max-width: 820px) { .anat-nogl { left: 12px; right: 12px; bottom: auto; top: calc(var(--nav-h) + 76px); max-width: none; } }

/* étiquettes et cotes accrochées à la maquette */
.lbl { position: absolute; left: 0; top: 0; font-family: var(--f-text); font-size: 12.5px; font-weight: 500; line-height: 1.25; color: var(--white); white-space: nowrap; }
.lbl-txt { position: absolute; left: 0; top: 0; display: block; padding: 5px 8px; background: var(--ink); border: 1px solid var(--line-d2); border-radius: 3px; }
.lbl-pt { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-l); box-shadow: 0 0 0 1.5px var(--ink); }
.lbl-lead { position: absolute; left: 0; top: 0; height: 1px; background: var(--white); transform-origin: 0 50%; }
.lbl--cote .lbl-txt { position: static; background: var(--ink-88); border-color: var(--white-40); font-family: var(--f-mono); font-size: 12px; }
.lbl--big .lbl-txt { font-family: var(--f-display); font-stretch: 100%; font-weight: 650; font-size: 16px; letter-spacing: -.01em; background: var(--gold-l); color: var(--ink); border-color: var(--gold); padding: 6px 10px; }
.lbl--big:not(:has(.lbl-lead)) .lbl-txt { position: static; }
.lbl--room .lbl-txt { position: static; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--ink-82); border-color: transparent; }
.lbl--work .lbl-txt { display: flex; align-items: center; gap: 8px; padding: 4px 9px 4px 4px; background: var(--white); color: var(--ink); border-color: var(--gold); }
.lbl--work .lbl-txt b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-l); font-weight: 500; font-size: 11px; }
.lbl--dpe .lbl-txt { position: static; display: grid; gap: 3px; width: 168px; padding: 10px; background: var(--white); color: var(--ink); border-color: var(--line); }
.dpe-t { font-size: 11px; letter-spacing: .12em; color: var(--slate); margin-bottom: 2px; }
.dpe-r { display: flex; align-items: center; height: 15px; width: var(--w); padding-left: 6px; border-radius: 0 3px 3px 0; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); color: var(--ink); }
.dpe-r b { font-weight: 500; font-size: 10.5px; }
.dpe-A { background: var(--dpe-a); } .dpe-B { background: var(--dpe-b); } .dpe-C { background: var(--dpe-c); } .dpe-D { background: var(--dpe-d); } .dpe-E { background: var(--dpe-e); } .dpe-F { background: var(--dpe-f); } .dpe-G { background: var(--dpe-g); }
.dpe-A b, .dpe-B b, .dpe-G b { color: var(--white); }
.dpe-r.is-on { height: 22px; outline: 2px solid var(--ink); outline-offset: 1px; }
.dpe-r.is-on b { font-size: 13px; }

/* ════════ sections ════════ */
.sec { position: relative; padding-block: clamp(72px, 9vw, 124px); }
.sec--paper { background: var(--bg); } .sec--white { background: var(--white); }
.sec--night { background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%); color: var(--white); --focus: var(--gold-l); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.h2 { font-family: var(--f-display); font-stretch: 104%; font-weight: 640; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.06; letter-spacing: -.03em; }
.h2 .soft { color: var(--slate); }
.sec--night .h2 .soft { color: var(--gold-l); }
.h2--c { text-align: center; margin-bottom: 48px; }
.h3 { font-family: var(--f-display); font-stretch: 100%; font-weight: 600; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; }
.sec-lead { color: var(--slate); font-size: 17px; max-width: 46ch; }
.sec--night .sec-lead { color: var(--on-dark-2); }
.p-lead { margin-top: 22px; color: var(--slate); font-size: 18px; max-width: 46ch; }
.sec-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.figs { display: flex; flex-wrap: wrap; gap: 20px 44px; margin-top: 36px; }
.figs div { display: flex; flex-direction: column-reverse; gap: 4px; }
.figs dt { font-size: 13px; color: var(--slate); }
.figs dd { font-family: var(--f-display); font-weight: 650; font-size: 30px; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.figs--light dt { color: var(--on-dark-2); } .figs--light dd { color: var(--gold-l); }

/* estimation */
.split-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; align-items: center; }
.card-est { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px; box-shadow: 0 30px 60px -40px var(--ink-35); }
.card-est .h3 { font-stretch: 102%; font-weight: 640; font-size: 1.75rem; letter-spacing: -.025em; }
.card-est-sub { margin-top: 8px; color: var(--slate); font-size: 15px; }
.modes { display: grid; gap: 10px; margin-top: 22px; }
.mode { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; min-height: 64px; padding: 12px 16px; text-align: left; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 160ms var(--ease-out); }
.mode:active { transform: scale(.99); }
.mode .ico--lg { color: var(--blue-d); }
.mode-txt { display: grid; gap: 2px; } .mode-txt b { font-weight: 700; font-size: 15.5px; } .mode-txt span { font-size: 13.5px; color: var(--slate); }
.mode-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border-color 180ms ease, background-color 180ms ease; }
.mode.is-on { border-color: var(--ink); background: var(--blue-xs); }
.mode.is-on .mode-check { border: 6px solid var(--ink); }
@media (hover: hover) and (pointer: fine) { .mode:not(.is-on):hover { border-color: var(--line-2); } }
.steps { display: grid; gap: 12px; margin: 22px 0 24px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-size: 14.5px; }
.steps .n { font-family: var(--f-text); font-weight: 600; font-size: 13px; color: var(--blue-d); padding-top: 2px; font-variant-numeric: tabular-nums; }
.steps b { display: block; font-weight: 600; } .steps li span span { color: var(--slate); font-size: 13.5px; }
.trust { display: flex; justify-content: center; gap: 22px; margin-top: 14px; font-size: 13px; color: var(--slate); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }

/* prix par arrondissement */
.arr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; counter-reset: none; }
.arr a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 96px minmax(108px, auto); grid-template-areas: "id nm px px" "id bar rg tr"; gap: 4px 14px; align-items: center; min-height: 64px; padding: 10px 6px; border-bottom: 1px solid var(--line-d); color: var(--white); text-decoration: none; transition: background-color 180ms ease; }
.arr-id { grid-area: id; font-family: var(--f-text); font-weight: 600; font-size: 15px; color: var(--gold-l); font-variant-numeric: tabular-nums; }
.arr-nm { grid-area: nm; font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arr-px { grid-area: px; justify-self: end; font-family: var(--f-text); font-weight: 500; font-size: 13px; color: var(--on-dark-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.arr-px b { font-family: var(--f-display); font-weight: 650; font-size: 19px; letter-spacing: -.01em; color: var(--white); }
.arr-bar { grid-area: bar; height: 3px; background: var(--line-d); border-radius: 2px; overflow: hidden; }
.arr-bar i { display: block; height: 100%; width: 100%; background: var(--on-dark-2); transform-origin: left; transform: scaleX(var(--k, .5)); }
.arr-rg { grid-area: rg; justify-self: end; font-family: var(--f-text); font-weight: 600; font-size: 12px; color: var(--on-dark-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.arr a.is-below .arr-tr, #arrList a.is-below .arr-tr { color: var(--on-dark-2); }
.arr-tr { grid-area: tr; justify-self: end; font-family: var(--f-text); font-weight: 600; font-size: 12.5px; color: var(--gold-l); white-space: nowrap; font-variant-numeric: tabular-nums; }
.arr a.is-example { background: var(--gold-08); }
.arr a.is-example .arr-bar i { background: var(--gold-l); }
@media (hover: hover) and (pointer: fine) { .arr a:hover { background: var(--white-06); } }
.arr-legend { display: flex; justify-content: flex-end; gap: 22px; margin-top: 14px; font-family: var(--f-text); font-size: 12px; color: var(--on-dark-2); }

/* méthode */
.method { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.method::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-2); }
.method li { position: relative; display: grid; gap: 12px; align-content: start; }
.method-n { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--f-text); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.method li p { color: var(--slate); font-size: 16px; max-width: 36ch; }
.method-t { font-family: var(--f-text); font-size: 13px; color: var(--blue-d) !important; }

/* expert */
.expert-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.expert-q { margin: 0; }
.expert-q p { font-family: var(--f-display); font-stretch: 100%; font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: -.02em; color: var(--white); }
.expert-sig { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.expert-av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold-l); color: var(--ink); font-family: var(--f-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.expert-sig p { display: grid; } .expert-sig b { font-size: 17px; } .expert-sig p span { font-size: 14px; color: var(--on-dark-2); }
.expert-id { font-family: var(--f-text); font-size: 12px; letter-spacing: .02em; color: var(--on-dark-2); }
.expert-body { margin-top: 12px; font-size: 18px; color: var(--on-dark); }
.expert-body strong { color: var(--white); font-weight: 600; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin-top: 32px; }
.pillars li { display: grid; gap: 6px; font-size: 14.5px; color: var(--on-dark-2); }
.pillars .ico--lg { color: var(--gold-l); margin-bottom: 4px; }
.pillars b { color: var(--white); font-size: 15.5px; }
.stars { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; color: var(--on-dark-2); }
.stars-ico svg { width: 80px; height: 16px; fill: var(--gold-l); }
.sec--paper .stars { color: var(--slate); } .sec--paper .stars-ico svg { fill: var(--gold); }

/* avis */
.gbadge { justify-self: end; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: 14.5px; color: var(--slate); transition: border-color 180ms ease; }
.gbadge b { color: var(--ink); font-family: var(--f-display); font-weight: 650; font-size: 17px; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .gbadge:hover { border-color: var(--line-2); } }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { display: grid; align-content: space-between; gap: 22px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.review-q { font-size: 16.5px; line-height: 1.6; color: var(--ink2); }
.review-q::before { content: ''; display: block; width: 80px; height: 14px; margin-bottom: 14px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Cpath id='s' d='m8 1.4 1.9 4 4.4.6-3.2 3 .8 4.3L8 11.2l-3.9 2.1.8-4.3-3.2-3 4.4-.6z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/svg%3E") left / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Cpath id='s' d='m8 1.4 1.9 4 4.4.6-3.2 3 .8 4.3L8 11.2l-3.9 2.1.8-4.3-3.2-3 4.4-.6z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/svg%3E") left / contain no-repeat; }
.review-who { display: grid; gap: 2px; font-size: 15px; }
.review-who span { font-family: var(--f-text); font-size: 12px; color: var(--slate); }
.avis-src { max-width: 72ch; margin: 22px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--slate); }
.avis-src a { color: var(--ink2); }

/* comparatif */
.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.city { display: grid; gap: 10px; align-content: start; padding: 26px 24px 28px; border-bottom: 1px solid var(--line); }
.city + .city { border-left: 1px solid var(--line); }
.city.is-best { background: var(--blue-xs); }
.city-n { font-family: var(--f-display); font-stretch: 102%; font-weight: 640; font-size: 1.3rem; letter-spacing: -.02em; }
.city-p { font-family: var(--f-text); font-weight: 500; font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; } .city-p b { font-family: var(--f-display); font-weight: 650; font-size: 30px; color: var(--ink); letter-spacing: -.02em; }
.city-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.city-bar i { display: block; height: 100%; background: var(--slate); transform-origin: left; transform: scaleX(var(--k, .5)); }
.city.is-best .city-bar i { background: var(--gold); }
.city-b { font-size: 14px; font-weight: 600; color: var(--slate); }
.city.is-best .city-b { color: var(--green-d); }
.city dl { display: grid; gap: 6px; margin-top: 6px; font-size: 14px; }
.city dl div { display: flex; justify-content: space-between; gap: 10px; }
.city dt { color: var(--slate); } .city dd { font-family: var(--f-text); font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* guides */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.guide { display: grid; gap: 8px; align-content: start; padding: 22px 0 24px; border-top: 1px solid var(--line-2); }
.guide-cat { font-family: var(--f-text); font-weight: 600; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--blue-d); }
.guide-h { font-family: var(--f-display); font-stretch: 100%; font-weight: 600; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; }
.guide-h a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 280ms var(--ease-out); }
.guide-h a::after { content: ''; position: absolute; inset: 0; }
.guide { position: relative; }
@media (hover: hover) and (pointer: fine) { .guide:hover .guide-h a { background-size: 100% 1px; } }
.guide p { color: var(--slate); font-size: 15px; }

/* simulateur : sa page /outils/simulateur-rendement-locatif/ ; ici, un lien (09/11/2026) */
.sim-lien { padding-block: clamp(56px, 7vw, 88px); }
.sim-lien .sec-head { margin-bottom: 0; }
.sim-lien-d { display: grid; gap: 18px; justify-items: start; }

/* agence partenaire */
.agency { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.agency > * { padding: 36px; }
.agency-c { border-left: 1px solid var(--line); }
.agency-src { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--slate); }
.agency-src a { color: var(--ink2); }
.agency-n { font-family: var(--f-display); font-stretch: 104%; font-weight: 640; font-size: 2rem; letter-spacing: -.03em; }
.agency-k { margin: 6px 0 16px; font-family: var(--f-text); font-size: 12px; letter-spacing: .02em; color: var(--blue-d); }
.agency-a > p:not(.agency-k) { font-size: 15.5px; color: var(--ink2); }
.agency address { display: grid; gap: 8px; margin-top: 18px; font-style: normal; font-size: 14px; color: var(--ink2); }
.agency address span { display: flex; gap: 10px; align-items: flex-start; } .agency address .ico { margin-top: 3px; color: var(--blue-d); }
.agency address a { display: inline-block; padding: 11px 0; margin: -11px 0; color: var(--blue-d); font-weight: 600; }
.agency-h { font-family: var(--f-text); font-weight: 600; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.agency-h:not(:first-child) { margin-top: 20px; }
.agency-sec { font-family: var(--f-text); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--f-display); font-stretch: 100%; font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform 240ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--slate); font-size: 16.5px; max-width: 68ch; }
.faq-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding: 22px 24px; background: var(--bg); border-radius: 8px; }
.faq-cta p { color: var(--slate); } .faq-cta a:not(.btn) { color: var(--ink); font-family: var(--f-text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* pied de page */
.footer { background: linear-gradient(180deg, var(--night-3) 0%, var(--deep) 100%); color: var(--on-dark-2); padding: 72px 0 calc(28px + var(--mbar-h)); --focus: var(--gold-l); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 18px; font-size: 14.5px; max-width: 36ch; }
.footer-tel { display: inline-flex; margin-top: 18px; min-height: 44px; align-items: center; font-family: var(--f-text); font-weight: 600; font-size: 18px; color: var(--gold-l); text-decoration: none; font-variant-numeric: tabular-nums; }
.footer-h { font-family: var(--f-text); font-weight: 600; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 2px; font-size: 14.5px; }
.footer-col a, .footer-link { display: inline-flex; align-items: center; min-height: 34px; color: var(--on-dark-2); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14.5px; }
.footer-col li:not(:has(a, button)) { min-height: 34px; display: flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover, .footer-link:hover { color: var(--white); } }
.footer-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-d); font-family: var(--f-text); font-size: 12px; }

/* pied de page : les 31 guides et les 16 arrondissements (maillage interne, AUDIT-REPRISE.md 3.1) */
.footer-more { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line-d); display: grid; gap: 28px; }
.footer-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; }
.footer-g ul, .footer-arr ul { list-style: none; margin: 0; padding: 0; }
.footer-g a { display: inline-flex; align-items: center; min-height: 30px; color: var(--on-dark-2); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.footer-arr ul { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-arr a { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 36px; padding: 0 8px; border: 1px solid var(--line-d); border-radius: 6px; color: var(--on-dark-2); text-decoration: none; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.footer-arr sup { font-size: .7em; line-height: 0; }
@media (hover: hover) and (pointer: fine) { .footer-g a:hover, .footer-arr a:hover { color: var(--white); } .footer-arr a:hover { border-color: var(--line-d2); } }
@media (max-width: 1080px) { .footer-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .footer-guides { grid-template-columns: 1fr; gap: 20px; } .footer-more { margin-top: 32px; } }

/* barre mobile, boutons flottants, discussion */
.mbar { display: none; }
.fab { position: fixed; z-index: 40; right: max(20px, env(safe-area-inset-right, 0px)); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; text-decoration: none; box-shadow: 0 14px 30px -12px var(--drop-45); transition: transform 160ms var(--ease-out); }
.fab:active { transform: scale(.95); }
.fab--wa { bottom: 92px; background: var(--whatsapp); color: var(--white); transition: transform 160ms var(--ease-out), opacity 200ms ease; }
.fab--chat { bottom: 24px; background: var(--ink); color: var(--white); transition: transform 160ms var(--ease-out), opacity 200ms ease; }
.fab--chat .fab-close, .fab--chat.open .fab-open { display: none; } .fab--chat.open .fab-close { display: block; }
.chat-box { position: fixed; z-index: 45; right: 20px; bottom: 92px; width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -20px var(--ink-45); opacity: 0; transform: translateY(14px) scale(.97); transform-origin: bottom right; pointer-events: none; visibility: hidden; transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s 260ms; }
.chat-box.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--night); color: var(--white); }
.chat-head-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold-l); color: var(--ink); font-family: var(--f-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.chat-head-info { flex: 1; display: grid; font-size: 14.5px; } .chat-head-info span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--on-dark-2); }
.chat-head-info .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat-head-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--white); cursor: pointer; border-radius: 8px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); font-size: 14.5px; }
.chat-bot, .chat-user { display: flex; align-items: flex-start; gap: 8px; max-width: 88%; }
.chat-bot { align-self: flex-start; } .chat-user { align-self: flex-end; flex-direction: row-reverse; }
.chat-av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-l); color: var(--ink); font-family: var(--f-text); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.chat-bubble { padding: 10px 13px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); line-height: 1.45; }
.chat-user .chat-bubble { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chat-choices { display: flex; flex-direction: column; gap: 6px; align-self: flex-start; max-width: 88%; }
.chat-choice-btn { min-height: 40px; padding: 8px 12px; text-align: left; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); cursor: pointer; font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .chat-choice-btn:hover { border-color: var(--blue-h); background: var(--blue-xs); } }
.chat-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-input-row input { flex: 1; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 8px; font: 16px var(--f-text); }
.chat-input-row button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--ink); color: var(--white); cursor: pointer; }
.maquette-toast { position: fixed; z-index: 120; left: 50%; bottom: calc(24px + var(--mbar-h)); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 16px; background: var(--ink); color: var(--white); border-radius: 8px; font-size: 14px; box-shadow: 0 20px 40px -20px var(--drop-60); }
.maquette-toast b { color: var(--gold-l); }

/* ════════ responsive ════════ */
@media (max-width: 1180px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .gbadge { justify-self: start; }
}
@media (max-width: 960px) {
  .split-in, .expert-in { grid-template-columns: 1fr; }
  .arr { grid-template-columns: 1fr; }
  .reviews, .guides { grid-template-columns: 1fr 1fr; }
  .method { grid-template-columns: 1fr; gap: 28px; } .method::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .method li { grid-template-columns: 46px 1fr; column-gap: 18px; } .method li > :not(.method-n) { grid-column: 2; } .method-n { grid-row: 1 / span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .mbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.25fr; height: calc(var(--mbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--white); border-top: 1px solid var(--line); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--ink); }
  .mbar .mbar-estim { background: var(--gold-l); }
  .fab--wa { display: none; } .fab--chat { bottom: calc(var(--mbar-h) + 16px); width: 52px; height: 52px; }
  .chat-box { left: 8px; right: 8px; width: auto; bottom: calc(var(--mbar-h) + 76px); max-height: calc(100svh - 160px); }

  .reviews, .guides { grid-template-columns: 1fr; }
  .cities { grid-template-columns: 1fr; } .city + .city { border-left: 0; }
  .pillars { grid-template-columns: 1fr; }
  .arr a { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "id nm px" "id bar tr"; min-height: 60px; }
  .arr-rg { display: none; }
  .arr-nm { white-space: normal; overflow: visible; line-height: 1.25; }
  .arr-legend span:nth-child(2) { display: none; }
  .agency { grid-template-columns: 1fr; } .agency > * { padding: 24px; } .agency-c { border-left: 0; border-top: 1px solid var(--line); }
  .card-est { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col a, .footer-link, .footer-col li:not(:has(a, button)) { min-height: 44px; }
}
@media (max-width: 380px) { .anat-card h1 { font-size: 1.95rem; } .figs dd { font-size: 26px; } }

/* ordinateur (le contraire de la condition « portrait » ci-dessous) : une carte de chapitre ne passe jamais sous le repère A–F.
   Sa hauteur est mesurée par accueil.js (--hud-h) et réservée sous les cartes des chapitres où il est affiché (1 à 7). */
@media (min-width: 821px) and (orientation: landscape), (min-width: 1101px) {
  .anat-cards { padding-bottom: 40px; }
  .anat-card { margin-bottom: min(80px, max(0px, 100vh - 720px)); }
  .anat-card:not(.anat-card--hero):not(.anat-card--end):not(.anat-card--value) { margin-bottom: calc(var(--hud-h, 150px) + 28px + 14px - 40px); }
  /* chapitre « valeur » : la carte affiche déjà le montant en grand ; le repère s'efface, comme sur mobile */
  .hud.is-final { opacity: 0; transform: translateY(10px); pointer-events: none; }
}
/* ordinateurs à écran bas (portables 13 pouces, fenêtre réduite) : cartes et repère plus compacts */
@media (min-width: 821px) and (orientation: landscape) and (max-height: 800px), (min-width: 1101px) and (max-height: 800px) {
  .anat-card h1 { font-size: clamp(2.1rem, 3.7vw, 3.6rem); }
  .anat-card .lead { font-size: 17px; margin-top: 16px; }
  .proof { margin-top: 16px; }
  .anat-card:not(.anat-card--hero):not(.anat-card--end) { padding: 22px 26px 20px; }
  .anat-card h2 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); margin-bottom: 10px; }
  .anat-card p { font-size: 16px; line-height: 1.52; }
  .measure { margin-top: 14px; padding-top: 10px; } .measure b { font-size: 18px; }
  .hud { padding: 10px 16px 8px; gap: 4px 16px; } .hud-num { font-size: 26px; } .hud-skip { margin-top: 2px; padding-top: 6px; }
}
@media (min-width: 821px) and (orientation: landscape) and (max-height: 680px), (min-width: 1101px) and (max-height: 680px) {
  .anat-card--hero .proof { display: none; }
  .anat-card .lead { margin-top: 12px; }
  .anat-card:not(.anat-card--hero):not(.anat-card--end) { padding: 18px 22px 16px; }
  .anat-card p { font-size: 15.5px; line-height: 1.5; }
  .final { margin-top: 12px; } .final-num { font-size: 2.5rem; } .recap { margin-top: 12px; } .recap li { padding: 5px 0; } .note { margin-top: 8px; }
  .q { margin-top: 12px; padding-top: 10px; }
}

/* l'expérience 3D, déroulé « portrait » : téléphones et tablettes tenues en hauteur — même condition que A.layout dans accueil.js */
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
  .anat-shade, .anat-photo-veil { background: linear-gradient(0deg, var(--shade) 0%, var(--shade-55) 34%, var(--shade-0) 56%), linear-gradient(180deg, var(--shade-50) 0%, var(--shade-0) 26%); }
  .anat-cards { align-items: end; padding: 0 12px calc(var(--mbar-h) + 14px + (100lvh - 100svh)); }
  .anat-card { max-width: none; width: 100%; transform: translateY(18px); }
  .q { margin-top: 12px; padding-top: 12px; }
  .q-c { padding: 0 12px; font-size: 14px; }
  .anat-card p.q-t, .anat-card label.q-t { font-size: 14.5px; margin-bottom: 8px; }
  .adr-list { top: auto; bottom: calc(100% + 6px); }   /* le clavier occupe le bas de l'écran : la liste s'ouvre vers le haut */
  /* au premier écran, l'en-tête (bandeau + navigation) décale encore la scène : la carte d'ouverture remonte d'autant */
  .anat-card--hero { margin-bottom: 0; }   /* la scène commence tout en haut : plus de bandeau qui la décale */
  .fab.is-tucked { opacity: 0; pointer-events: none; transform: scale(.9); }
  .anat-card:not(.anat-card--hero):not(.anat-card--end), .anat-card--hero, .anat-card--end { background: var(--panel); border: 1px solid var(--line-d); border-radius: 10px; padding: 18px 18px 16px; }
  .anat-card h1 { font-size: clamp(2.05rem, 9vw, 2.6rem); font-stretch: 102%; }
  .anat-card h2 { font-size: 1.6rem; margin-bottom: 8px; font-stretch: 102%; }
  .anat-card--end h2 { font-size: 2rem; }
  .anat-card p { font-size: 15px; line-height: 1.5; }
  .anat-card .lead { font-size: 15.5px; margin-top: 12px; }
  .proof { margin-top: 14px; font-size: 12px; gap: 6px 16px; }
  .cta-row { margin-top: 16px; gap: 6px 18px; }
  .measure { margin-top: 12px; padding-top: 10px; } .measure b { font-size: 17px; }
  .link-inline { margin-top: 4px; }
  .final { margin-top: 10px; } .final-num { font-size: 2.3rem; }
  .recap { margin-top: 10px; font-size: 12px; } .recap li { padding: 4px 0; }
  .note { font-size: 12px !important; margin-top: 8px; }
  .hud { left: 12px; right: 12px; width: auto; top: calc(var(--nav-h) + 10px); bottom: auto; grid-template-columns: 1fr auto; grid-template-areas: "steps val" "now val"; padding: 8px 12px; gap: 4px 10px; }
  .hud-steps { gap: 4px; } .hud-steps a { width: 22px; height: 22px; font-size: 11px; border-width: 1.2px; pointer-events: none; }
  .hud-now { font-size: 12px; gap: 6px; } .hud-name { display: none; }
  .hud-num { font-size: 21px; } .hud-unit { font-size: 12px; } .hud-coef { font-size: 12px; }   /* 12 px au moins (lisibilité) */
  .hud-skip { display: none; }
  /* chapitre « valeur » : la carte affiche déjà le montant en grand ; le repère s'efface pour rendre la scène */
  .hud.is-final { opacity: 0; transform: translateY(-8px); pointer-events: none; }
  .lbl { font-size: 11px; } .lbl--big .lbl-txt { font-size: 14px; } .lbl--dpe .lbl-txt { width: 132px; padding: 8px; }

}

/* sans JavaScript : le récit se lit comme un document */
html:not(.js) .anat-stage { position: relative; height: auto; overflow: visible; }
html:not(.js) .anat-track, html:not(.js) .anat-canvas, html:not(.js) .hud, html:not(.js) .anat-shade { display: none; }
html:not(.js) .anat-poster { position: relative; height: 60vh; display: block; }
html:not(.js) .anat-cards { position: relative; inset: auto; display: grid; gap: 24px; padding: 40px var(--gut) 64px; }
html:not(.js) .anat-card { grid-area: auto; opacity: 1; transform: none; pointer-events: auto; max-width: 40rem; }

/* téléphone couché : le champ d'adresse et la question restent à l'écran, la carte défile plutôt que d'en sortir */
@media (orientation: landscape) and (max-height: 480px) {
  .perso > p:first-child { display: none; }
  .perso .q { margin-top: 0; padding-top: 0; border-top: 0; }
  .perso .measure { margin-top: 8px; padding-top: 8px; }
  .anat .anat-cards { align-items: start; padding-top: calc(var(--nav-h) + 10px); padding-bottom: calc(var(--mbar-h) + 10px); }
  .anat .hud { display: none; }
  .anat-card, .anat-card:not(.anat-card--hero):not(.anat-card--end):not(.anat-card--value) { max-height: calc(100svh - var(--nav-h) - var(--mbar-h) - 20px); margin-bottom: 0; overflow-y: auto; overscroll-behavior: contain; }
  .anat-card h2 { font-size: 1.35rem; margin-bottom: 8px; }
  .anat-card--hero { overflow: visible; }
  .anat-card--hero h1 { font-size: 1.6rem; }
  .anat-card--hero .lead, .anat-card--hero .proof { display: none; }
  .anat-card--hero .hero-start { margin-top: 10px; }
  .anat-card--hero .hero-field input, .anat-card--hero .hero-field .btn { height: 46px; }
  .anat-card--hero .link-down { padding-top: 6px; }
  .anat-card--hero .adr-list { max-height: 148px; }
  .anat-card:not(.anat-card--hero) .adr-list { top: calc(100% + 6px); bottom: auto; }   /* dans une carte qui défile, seule la liste vers le bas reste atteignable */
}

/* mouvement réduit : fondus courts, aucun déplacement */
@media (prefers-reduced-motion: reduce) {
  .q-c:active { transform: none; }
  .measure b.is-maj { animation: none; }
  .anat-card, .anat-card.is-active { transform: none !important; transition: opacity 200ms ease !important; }
  .hud { transform: none !important; transition: opacity 200ms ease; }
  .anat-canvas { transition: opacity 200ms ease; }
  .chat-box { transition-duration: 1ms !important; }
  .btn .ico, .guide-h a, .skip { transition: none; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .anat-card--hero h1 { font-size: clamp(1.75rem, 7.6vw, 2.1rem); }
  .anat-card--hero .lead { font-size: 15.5px; line-height: 1.5; margin-top: 12px; }
  .anat-card--hero .proof { margin-top: 14px; gap: 6px 16px; }
}
@media (max-width: 820px) and (max-height: 600px) {
  /* très petits écrans : la ligne d'engagements (gratuit, 24 h…) répète le texte, elle cède la place */
  .anat-card--hero .proof { display: none; }
  .anat-card--hero { padding: 14px 16px 12px !important; }
  .anat-card--hero h1 { font-size: 1.65rem; }
  .anat-card--hero .lead { font-size: 15px; margin-top: 10px; }
}

/* carte 3D des prix dans la section « Prix par arrondissement » (fond bleu nuit) */
.pmap--home { margin: 8px 0 0; border-color: var(--line-d); }
.sec--night .pmap-legend, .sec--night .pmap-note { color: var(--on-dark-2); }
.sec--night .pmap-note { margin-bottom: 36px; }

/* départ d'estimation dans le premier écran (passe 9) */
.hero-start { margin-top: 26px; max-width: 34rem; }
.hero-mode { border: 0; padding: 0; margin: 0 0 10px; display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.hero-mode label { position: relative; cursor: pointer; }
.hero-mode input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hero-mode span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--on-dark); transition: background 160ms var(--ease-out), color 160ms var(--ease-out); }
.hero-mode input:checked + span { background: var(--white); color: var(--ink); }
.hero-mode input:focus-visible + span { outline: 2px solid var(--gold-l); outline-offset: 2px; }
/* 09/11/2026 : « Me localiser », à droite du choix Vendre / Louer (aucune hauteur ajoutée au premier écran) */
.hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.hero-top .hero-mode { margin-bottom: 0; }
.hero-geo { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--on-dark); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.hero-geo[hidden] { display: none; }
.hero-geo .ico { width: 16px; height: 16px; }
.hero-geo:active { transform: scale(.97); }
.hero-geo:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.hero-geo[aria-busy=true] { opacity: .7; cursor: progress; }
.hero-geo[aria-busy=true] .ico { animation: hero-geo-p 1.1s ease-in-out infinite; }
@keyframes hero-geo-p { 50% { opacity: .35; } }
@media (hover: hover) and (pointer: fine) { .hero-geo:hover { background: rgba(255, 255, 255, .2); } }
@media (prefers-reduced-motion: reduce) { .hero-geo[aria-busy=true] .ico { animation: none; } }
.hero-geo-msg { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--on-dark); }
.hero-geo-msg[hidden] { display: none; }
.hero-field { display: flex; gap: 8px; }
.hero-field input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .35); background: var(--white); color: var(--ink); font: inherit; font-size: 16px; }
.hero-field input::placeholder { color: #5E6E80; }
.hero-field input:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.hero-field .btn { height: 52px; flex: none; }
.cta-row--sub { margin-top: 16px; }
@media (max-width: 820px) {
  .hero-start { margin-top: 16px; }
  .hero-field input, .hero-field .btn { height: 48px; }
  .hero-mode span { min-height: 34px; padding: 0 14px; font-size: 14px; }
  .hero-geo { min-height: 34px; padding: 0 12px; font-size: 14px; }
  .cta-row--sub { margin-top: 10px; }
}

/* passe 13 : mention discrète sous le badge des avis (remplace le paragraphe sous « Lire 3 avis de plus ») */
.avis-mention { flex-basis: 100%; margin: 6px 0 0; font-size: 12px; color: var(--slate); text-align: right; }
.avis-mention a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 820px) { .avis-mention { text-align: left; } }
