/* Trilateral — gabarit des sites architecte-[ville].fr
   Concept : le réel en photo, le projet en rouge. Les photographies de la ville sont annotées comme
   un dessin d'architecte : en noir ce qui existe, en rouge ce qui change (et ce sur quoi agir),
   en jaune ce qui se démolit — la convention des plans de permis.
   Typographie : Jost (lignée Futura, 1927) pour les titres, les chiffres
   et l'interface ; Instrument Sans pour le texte courant. */

@font-face { font-family: "Jost Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/jost.woff2") format("woff2-variations"), url("fonts/jost.woff2") format("woff2");
  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: "Instrument Sans Variable"; font-style: normal; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url("fonts/instrument-sans.woff2") format("woff2-variations"), url("fonts/instrument-sans.woff2") format("woff2");
  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: "Instrument Sans Variable"; font-style: italic; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url("fonts/instrument-sans-italic.woff2") format("woff2-variations"), url("fonts/instrument-sans-italic.woff2") format("woff2");
  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; }

:root {
  /* Couleurs : le papier, l'encre, le trait de projet */
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #55595c;      /* texte secondaire, 7:1 sur blanc */
  --ink-3: #8a8f92;      /* traits légers, filets */
  --mist: #eef0ef;       /* surfaces teintées : carte, outils */
  --mist-2: #dfe2e1;
  --rouge: #e10600;      /* le projet ; 4,9:1 sur blanc */
  --rouge-dk: #b40500;
  --rouge-wash: #fde9e7;
  --jaune: #ffc400;      /* la démolition */
  --jaune-wash: #fff4cc;
  --night: #000000;
  --night-ink: #ffffff;
  --night-ink-2: #a9aeb1;
  --night-line: #34383b;
  --focus: #000000;

  /* Anciens noms, conservés pour les schémas et les contenus */
  --sheet: #ffffff; --paper-2: var(--mist); --rule: #d6d9d8; --rule-strong: #000000;
  --accent: var(--rouge); --accent-hover: var(--rouge-dk); --accent-ink: #ffffff; --wash: var(--rouge-wash);
  --outremer: #1d4f91; --outremer-wash: #e3ebf6; --ocre: #b07a1a; --ocre-ink: #7a5513; --ocre-wash: #f7eedb;
  --hatch: rgba(225, 6, 0, 0.18); --ok: #1f6b3a; --warn: #a35a00;

  /* Axonométries : l'existant en blanc et gris, le projet en rouge */
  --a-line: #000000; --a-zinc: #e3e6e5;
  --a-base-t: #ffffff; --a-base-l: #eef0ef; --a-base-r: #d9dddc; --a-roof: #c9cecd; --a-roofr: #b5bbba;
  --a-villa-t: #ffffff; --a-villa-l: #f5f6f5; --a-villa-r: #e2e5e4;
  --a-ext-t: #ffd5d1; --a-ext-l: #f6908a; --a-ext-r: #e2463e;
  --a-sur-t: #ffd5d1; --a-sur-l: #f6908a; --a-sur-r: #e2463e;
  --a-ver: rgba(225, 6, 0, 0.16);
  --a-mh-t: #f1ead9; --a-mh-l: #ddd0b0; --a-mh-r: #c4b388;
  --a-glass: #a9b4b8; --a-door: #4d5559;
  --a-street: #e4e7e6; --a-walk: #f2f4f3; --a-garden: #e3ebdf; --a-water: #d3e2ea;
  --a-crown: #cfdcc8; --a-crown-l: #6f8c68; --a-trunk: #6f5a43;

  --f-d: "Jost Variable", "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --f-t: "Instrument Sans Variable", "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  /* compatibilité */
  --f-display: var(--f-d); --f-text: var(--f-t);

  /* Échelle : 13 · 15 · 17 · 21 · 26 · 34 · 46 · 64 · 104 */
  --t-xs: 0.8125rem; --t-sm: 0.9375rem; --t-base: 1.0625rem; --t-md: 1.3125rem; --t-lg: 1.625rem;
  --t-xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.25rem);
  --t-2xl: clamp(2.25rem, 1.1rem + 3.6vw, 4rem);
  --t-3xl: clamp(3rem, 0.9rem + 6.3vw, 6.5rem);
  /* compatibilité */
  --s-xs: var(--t-xs); --s-sm: var(--t-sm); --s-base: var(--t-base); --s-md: var(--t-md); --s-lg: var(--t-lg); --s-xl: var(--t-xl); --s-2xl: var(--t-2xl);

  --measure: 64ch;
  --wrap: 90rem;
  --gut: clamp(16px, 3.2vw, 40px);
  --gap: clamp(12px, 1.8vw, 28px);
  --sec: clamp(4.5rem, 2rem + 8vw, 9rem);
  --hd-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

/* Base --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 1rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-t); font-size: var(--t-base); line-height: 1.6; font-stretch: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; }
a { color: var(--ink); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: currentColor; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--rouge); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--rouge); color: #fff; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gut); top: 8px; z-index: 60; background: var(--paper); padding: 10px 14px; border: 2px solid var(--ink); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typographie ------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--f-d); color: inherit; text-wrap: balance; margin: 0; font-weight: 500; }
h1 { font-size: var(--t-3xl); line-height: 0.94; letter-spacing: -0.035em; font-weight: 470; }
h2 { font-size: var(--t-2xl); line-height: 1.02; letter-spacing: -0.03em; font-weight: 470; }
h3 { font-size: var(--t-lg); line-height: 1.15; letter-spacing: -0.015em; }
h4 { font-size: var(--t-md); line-height: 1.25; }
p, ul, ol, dl, table, figure, blockquote { margin: 0; }
strong { font-weight: 640; }
.prose { display: grid; gap: 1.05rem; min-width: 0; }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > h4, .prose > dl, .prose > blockquote { max-width: var(--measure); }
.prose ul, .prose ol { padding-left: 1.15em; display: grid; gap: 0.45rem; }
.prose ul li::marker { color: var(--rouge); }
.prose h3 { font-size: var(--t-md); margin-top: 0.8rem; letter-spacing: -0.01em; }
.prose a { text-decoration-color: var(--rouge); }
.lead { font-size: var(--t-md); line-height: 1.5; max-width: 40ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-sm); line-height: 1.55; }
.label { font-family: var(--f-t); font-weight: 600; font-size: var(--t-xs); line-height: 1.35; color: var(--ink-2); letter-spacing: 0.005em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
sup.ref { font-family: var(--f-t); font-size: 0.66em; font-weight: 640; line-height: 0; }
sup.ref a { text-decoration: none; color: var(--rouge); padding-inline: 0.08em; }
abbr[title] { text-decoration: none; border-bottom: 1px dotted var(--ink-2); cursor: help; }
.nw { white-space: nowrap; }
@media (min-width: 1100px) { .nw-lg { white-space: nowrap; } }

/* En-tête ----------------------------------------------------------------- */
.hd { position: sticky; top: 0; z-index: 40; background: var(--paper); transition: transform .45s var(--ease), box-shadow .3s; }
.hd.is-up { transform: translateY(-100%); }
.hd.is-scrolled { box-shadow: 0 1px 0 var(--mist-2); }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: var(--hd-h); }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 20px; height: 27px; flex: none; color: var(--rouge); }
.brand-txt { display: flex; align-items: baseline; gap: 0.7rem; min-width: 0; }
.brand-name { font-family: var(--f-d); font-weight: 560; font-size: 1.28rem; letter-spacing: 0.14em; line-height: 1; text-transform: uppercase; }
.brand-place { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.2; border-left: 1px solid var(--ink); padding-left: 0.7rem; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.nav-links a { font-family: var(--f-d); font-weight: 450; font-size: 1rem; color: var(--ink); text-decoration: none; padding-block: 0.4rem; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rouge); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--ink); }
.nav-act { display: flex; gap: 0.6rem; align-items: center; }
.hd-tel { font-family: var(--f-d); font-weight: 500; font-size: 1rem; white-space: nowrap; color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); padding: 0.5rem 0.85rem; font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.hd-tel:hover { background: var(--ink); color: var(--paper); }
.hd-cta { padding: 0.62rem 0.95rem !important; font-size: 0.95rem !important; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--f-d); font-weight: 500; font-size: 1rem; border: 1.5px solid var(--ink); padding: 0.5rem 0.85rem; display: flex; gap: 0.5rem; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary i { width: 16px; height: 9px; border-block: 1.5px solid currentColor; display: inline-block; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); background: var(--paper); border: 1.5px solid var(--ink); width: min(22rem, calc(100vw - 2 * var(--gut))); max-height: calc(100svh - var(--hd-h) - 24px); overflow-y: auto; padding: 0.4rem 0; }
.menu-panel a { display: block; padding: 0.62rem 1.05rem; color: var(--ink); text-decoration: none; font-family: var(--f-d); font-size: 1.05rem; }
.menu-panel a:hover { background: var(--mist); color: var(--ink); }
.menu-panel .menu-sep { border-top: 1px solid var(--mist-2); margin: 0.4rem 0; }
.menu-panel .menu-top { display: grid; gap: 0.5rem; padding: 0.6rem 1.05rem 0.9rem; border-bottom: 1px solid var(--mist-2); margin-bottom: 0.4rem; }
.menu-panel .menu-top a { padding: 0.7rem 0.9rem; text-align: center; }
.menu-panel .menu-top .btn { color: #fff; }
.menu-panel .menu-top .btn:hover { color: #fff; }
.menu-panel .menu-h { display: block; padding: 0.5rem 1.05rem 0.2rem; font-size: var(--t-xs); color: var(--ink-2); font-weight: 600; }
@media (max-width: 1180px) { .nav-links { display: none; } .menu { display: block; } }
@media (max-width: 760px) { .brand-place { display: none; } .nav-act .hd-cta { display: none; } }
@media (max-width: 520px) { .nav-act .hd-tel { display: none; } }
@media (max-width: 420px) { .brand-name { font-size: 1.1rem; letter-spacing: 0.1em; } .hd-tel { padding: 0.45rem 0.6rem; font-size: 0.92rem; } .nav { gap: 0.5rem; } }

/* Boutons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; font-family: var(--f-d); font-weight: 500; font-size: 1.05rem; line-height: 1.2; letter-spacing: 0.005em;
  padding: 1rem 1.4rem; border: 1.5px solid var(--rouge); background: var(--rouge); color: #fff; text-decoration: none; cursor: pointer; border-radius: 0; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--rouge-dk); border-color: var(--rouge-dk); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: var(--rouge); border-color: var(--rouge); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.more { font-family: var(--f-d); font-weight: 500; font-size: 1.05rem; text-decoration-color: var(--rouge); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.checks { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.checks li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 0.65rem; align-items: baseline; }
.checks li::before { content: ""; width: 0.7rem; height: 0.7rem; background: var(--rouge); transform: translateY(0.05rem); }

/* Sections ----------------------------------------------------------------- */
.sec { padding-block: var(--sec); position: relative; }
.sec + .sec:not(.dark):not(.tint) { padding-top: 0; }
.dark + .sec, .tint + .sec { padding-top: var(--sec) !important; }
.sec.tint { background: var(--mist); --scroll-bg: var(--mist); }
.sec.dark { background: var(--night); color: var(--night-ink); }
.sec.dark a { color: var(--night-ink); }
.sec.dark a:hover { color: var(--rouge); }
.sec.dark .muted, .sec.dark .label { color: var(--night-ink-2); }
.sec.dark :focus-visible { outline-color: #fff; }
.sh { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1.25rem; align-items: end; margin-bottom: clamp(2.25rem, 4vw, 4rem); }
.sh h2 { grid-column: 1 / span 7; }
.sh .sh-aside { grid-column: 9 / span 4; font-size: var(--t-base); line-height: 1.55; color: var(--ink-2); max-width: 34rem; }
.sec.dark .sh .sh-aside { color: var(--night-ink-2); }
.sh-n { display: block; font-family: var(--f-d); font-size: var(--t-sm); font-weight: 500; color: var(--rouge); margin-bottom: 0.9rem; letter-spacing: 0; }
@media (max-width: 900px) { .sh h2, .sh .sh-aside { grid-column: 1 / -1; } }
.sec-foot { margin-top: clamp(2rem, 3.5vw, 3rem); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }

/* Héros de l'accueil : la rue annotée -------------------------------------- */
.hero { --off: max(0px, calc((100vw - var(--wrap)) / 2)); display: grid; grid-template-columns: minmax(0, min(48%, calc(var(--off) + 40rem))) minmax(0, 1fr); height: calc(100svh - var(--hd-h)); min-height: 38rem; max-height: 62rem; }
.hero-txt { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 6vh, 4.5rem) clamp(1.5rem, 3.2vw, 3.5rem) clamp(1.5rem, 4vh, 2.75rem) max(var(--gut), env(safe-area-inset-left, 0px), calc(var(--off) + var(--gut))); min-width: 0; }
.hero h1 { font-size: clamp(3rem, 0.6rem + 5.9vw, 6.6rem); }
.hero h1 .l { display: block; }
.hero h1 .l-city { white-space: nowrap; }
.hero-lede { font-size: var(--t-md); line-height: 1.45; max-width: 31em; margin-bottom: 1.6rem; }
.proof { list-style: none; margin: 1.8rem 0 0; padding: 1.3rem 0 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 0.5rem clamp(1.25rem, 2.6vw, 2.6rem); }
.proof li { display: grid; gap: 0.15rem; font-size: var(--t-xs); color: var(--ink-2); line-height: 1.35; }
.proof b { font-family: var(--f-d); font-weight: 470; font-size: clamp(1.4rem, 1rem + 0.9vw, 1.85rem); color: var(--ink); letter-spacing: -0.02em; line-height: 1.05; white-space: nowrap; }
.proof b small { font-size: 0.58em; font-weight: 450; letter-spacing: 0; margin-right: 0.25em; }

/* Champ d'adresse : la ligne de cote */
.addr { display: grid; gap: 0.5rem; position: relative; }
.addr label { font-size: var(--t-sm); font-weight: 600; }
.addr-row { display: flex; align-items: stretch; border-bottom: 2px solid var(--ink); gap: 0.75rem; position: relative; }
.addr-row input { flex: 1; min-width: 0; border: 0; padding: 0.85rem 0; font: inherit; font-family: var(--f-d); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); font-weight: 420; background: transparent; color: var(--ink); border-radius: 0; }
.addr-row input::placeholder { color: var(--ink-3); }
.addr-row input:focus { outline: none; }
.addr-row:focus-within { border-bottom-color: var(--rouge); }
.addr-row .btn { margin-bottom: 0.55rem; padding: 0.8rem 1.15rem; font-size: 1rem; white-space: nowrap; }
.addr .suggest { top: calc(100% + 2px); }
.addr-note { font-size: var(--t-xs); color: var(--ink-2); }
.sec.dark .addr-row { border-bottom-color: #fff; }
.sec.dark .addr-row input, .cta .addr-row input { color: #fff; }
.sec.dark .addr-row input::placeholder, .cta .addr-row input::placeholder { color: #8d9295; }
@media (max-width: 560px) {
  .addr-row { flex-wrap: wrap; border-bottom: 0; }
  .addr-row input { flex-basis: 100%; border-bottom: 2px solid var(--ink); }
  .sec.dark .addr-row input, .cta .addr-row input { border-bottom-color: #fff; }
  .addr-row .btn { flex: 1; margin: 0.25rem 0 0; }
}

/* La photographie annotée : un point, un trait, une étiquette, comme une légende de plan */
.hero-ph { position: relative; margin: 0; min-width: 0; overflow: hidden; background: var(--mist); container-type: size; --fx: var(--fxd, 50%); }
.frame { position: absolute; top: 50%; left: var(--fx); width: max(100cqw, calc(100cqh * var(--ar, 1.5))); aspect-ratio: var(--ar, 1.5); transform: translate(calc(var(--fx) * -1), -50%); }
.frame picture, .frame img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frame img { object-fit: cover; }
.spot { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 0; height: 0; z-index: 2; --dy: 110; }
.spot-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); }
.spot-ring { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--rouge); opacity: 0; }
.spot-line { position: absolute; left: -1px; width: 2px; height: calc(var(--dy) * 1px); background: var(--rouge); bottom: 0; transform-origin: bottom; }
.spot[data-side="s"] .spot-line { top: 0; bottom: auto; transform-origin: top; }
.spot-lbl { position: absolute; bottom: calc(var(--dy) * 1px); display: grid; gap: 0.1rem; background: var(--paper); color: var(--ink); text-decoration: none; padding: 0.6rem 0.85rem 0.65rem; font-size: 0.875rem; line-height: 1.25; width: max-content; max-width: 16rem; box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.55); transition: background .2s, color .2s; }
.spot[data-side="s"] .spot-lbl { bottom: auto; top: calc(var(--dy) * 1px); }
.spot[data-align="l"] .spot-lbl { left: -1px; border-left: 3px solid var(--rouge); }
.spot[data-align="r"] .spot-lbl { right: -1px; border-right: 3px solid var(--rouge); text-align: right; }
.spot-lbl b { font-family: var(--f-d); font-weight: 520; font-size: 1rem; letter-spacing: -0.005em; }
.spot-lbl span { color: var(--rouge); font-weight: 560; }
.spot-lbl:hover { background: var(--ink); color: #fff; }
.spot-lbl:hover span { color: #ff8a84; }
.spot-n { display: none; }
.hero-cap { position: absolute; right: 0; bottom: 0; z-index: 3; max-width: 70%; font-size: 0.72rem; line-height: 1.35; color: #fff; background: rgba(0, 0, 0, 0.55); padding: 0.3rem 0.55rem; }
.hero-cap a { color: #fff; }
.hero-legend { display: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); height: auto; max-height: none; min-height: 0; }
  .hero-txt { padding: clamp(1.75rem, 6vw, 3rem) max(var(--gut), env(safe-area-inset-right, 0px)) 2rem max(var(--gut), env(safe-area-inset-left, 0px)); gap: 1.75rem; }
  .hero-ph { aspect-ratio: 3 / 2; width: 100%; }
}
@media (max-width: 960px) {
  .hero-txt { padding: clamp(1.75rem, 6vw, 3rem) max(var(--gut), env(safe-area-inset-right, 0px)) 2rem max(var(--gut), env(safe-area-inset-left, 0px)); gap: 1.75rem; }
  .hero-ph { aspect-ratio: 4 / 5; max-height: 80svh; width: 100%; }
  .hero-ph { --fx: var(--fxm, 50%); }
  .spot-lbl, .spot-line, .spot-dot { display: none; }
  .spot-ring { left: -15px; top: -15px; width: 30px; height: 30px; }
  .spot-n { display: grid; place-items: center; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; background: var(--rouge); color: #fff; font-family: var(--f-d); font-weight: 600; font-size: 0.95rem; text-decoration: none; box-shadow: 0 0 0 3px #fff; }
  .hero-legend { display: grid; list-style: none; margin: 0; padding: 1.25rem max(var(--gut), env(safe-area-inset-left, 0px)) 0; gap: 0.7rem; counter-reset: lg; }
  .hero-legend li { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: 0.7rem; align-items: start; counter-increment: lg; font-size: var(--t-sm); line-height: 1.4; }
  .hero-legend li::before { content: counter(lg); width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--rouge); color: #fff; display: grid; place-items: center; font-family: var(--f-d); font-weight: 600; font-size: 0.9rem; }
  .hero-legend a { font-family: var(--f-d); font-weight: 520; text-decoration: none; }
  .hero-legend span { color: var(--rouge); font-weight: 560; }
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .proof li:last-child { grid-column: 1 / -1; } }

/* Le moment d'ouverture : la photo se découvre, puis l'architecte annote la rue.
   Animations CSS seules (aucun script requis) : sans elles, tout est visible. */
@media (prefers-reduced-motion: no-preference) {
  .hero-ph .frame { animation: frame-in 1.3s var(--ease-io) 0.1s both; }
  .hero-ph .frame img { animation: frame-zoom 2.8s var(--ease) 0.1s both; }
  .hero .spot-dot { animation: dot-in .5s var(--ease) calc(1.15s + var(--i) * 0.42s) both; }
  .hero .spot-ring { animation: ring 2.4s var(--ease) calc(1.15s + var(--i) * 0.42s) 2 both; }
  .hero .spot-line { animation: line-grow .55s var(--ease) calc(1.3s + var(--i) * 0.42s) both; }
  .hero .spot-lbl, .hero .spot-n { animation: lbl-in .6s var(--ease) calc(1.55s + var(--i) * 0.42s) both; }
  .hero h1 .l { animation: line-in .95s var(--ease) both; }
  .hero h1 .l:nth-child(2) { animation-delay: .09s; } .hero h1 .l:nth-child(3) { animation-delay: .18s; }
  .hero-lede, .hero .addr, .proof { animation: fade-in .8s var(--ease) .45s both; }
}
@keyframes frame-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes frame-zoom { from { transform: scale(1.08); } to { transform: none; } }
@keyframes dot-in { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
@keyframes line-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes lbl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes line-in { from { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); } to { clip-path: inset(0 0 -0.25em 0); transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { opacity: 0.9; transform: scale(0.6); } 75% { opacity: 0; transform: scale(3); } 100% { opacity: 0; transform: scale(3); } }

/* Index des projets -------------------------------------------------------- */
.idx { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); position: relative; }
.idx-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 2fr); gap: var(--gap); align-items: baseline; padding: clamp(1.1rem, 1.8vw, 1.6rem) 0; border-bottom: 1px solid var(--mist-2); color: var(--ink); text-decoration: none; position: relative; }
.idx-row::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rouge); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.idx-row:hover::before, .idx-row:focus-visible::before { transform: scaleX(1); }
.idx-row:hover { color: var(--ink); }
.idx-t { font-family: var(--f-d); font-weight: 440; font-size: clamp(1.75rem, 1rem + 2.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em; transition: transform .5s var(--ease), color .3s; }
.idx-row:hover .idx-t, .idx-row:focus-visible .idx-t { transform: translateX(0.35em); color: var(--rouge); }
.idx-d { font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.idx-p { font-family: var(--f-d); font-weight: 470; font-size: var(--t-md); text-align: right; white-space: nowrap; letter-spacing: -0.01em; }
.idx-p small { display: block; font-family: var(--f-t); font-size: var(--t-xs); color: var(--ink-2); font-weight: 500; letter-spacing: 0; white-space: normal; margin-top: 0.2rem; }
.idx-img { display: none; }
.idx-float { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(14rem, 20vw, 19rem); aspect-ratio: 4 / 5; pointer-events: none; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.92); transition: opacity .3s, transform .45s var(--ease); overflow: hidden; background: var(--mist); }
.idx-float.is-on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
.idx-float img:not([src]) { display: none; }
.idx-float img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
@media (hover: none), (max-width: 900px) {
  .idx-float { display: none; }
  .idx-row { grid-template-columns: 5.5rem minmax(0, 1fr); grid-template-areas: "img t" "img d" "img p"; column-gap: 1rem; row-gap: 0.3rem; align-items: start; }
  .idx-img { display: block; grid-area: img; width: 5.5rem; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
  .idx-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .idx-t { grid-area: t; font-size: clamp(1.45rem, 1rem + 2vw, 2rem); }
  .idx-d { grid-area: d; }
  .idx-p { grid-area: p; text-align: left; font-size: var(--t-base); white-space: normal; }
  .idx-p small { display: inline; margin-left: 0.4rem; }
}

/* La ville, rue par rue : galerie qui défile à l'horizontale ----------------- */
.rue { padding-block: var(--sec) 0; }
.rue .sh { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.rue-pin { position: relative; }
.rue-sticky { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: var(--sec); }
.rue-track { display: flex; gap: var(--gap); padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); width: max-content; }
.rue-card { margin: 0; width: clamp(17rem, 34vw, 34rem); flex: none; display: grid; gap: 0.9rem; scroll-snap-align: start; align-content: start; }
.rue-card.w { width: clamp(19rem, 52vw, 52rem); }
.rue-card .rue-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); position: relative; }
.rue-card.w .rue-img { aspect-ratio: 16 / 10; }
.rue-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.rue-card a:hover img { transform: scale(1.035); }
.rue-card figcaption { display: grid; gap: 0.35rem; max-width: 40ch; }
.rue-card .rue-t { font-family: var(--f-d); font-weight: 480; font-size: var(--t-lg); line-height: 1.15; letter-spacing: -0.015em; }
.rue-card .rue-c { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.rue-card .rue-g { font-family: var(--f-d); font-weight: 500; text-decoration-color: var(--rouge); text-decoration-thickness: 2px; }
.rue-card .ph-credit { font-size: 0.72rem; color: var(--ink-2); }
.rue-card .ph-credit a { color: inherit; }
.rue-count { font-family: var(--f-d); font-size: var(--t-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* Défilement lié au scroll (le script fixe --rue-h et --rue-x) */
.rue.is-pinned .rue-pin { height: var(--rue-h, auto); }
.rue.is-pinned .rue-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-bottom: 0; scroll-snap-type: none; }
.rue.is-pinned .rue-track { will-change: transform; }
.rue.is-pinned .rue-card { width: min(clamp(17rem, 34vw, 34rem), calc(56svh * 0.8)); }
.rue.is-pinned .rue-card.w { width: min(clamp(19rem, 52vw, 52rem), calc(56svh * 1.6)); }
.rue-bar { height: 2px; background: var(--mist-2); margin-top: 2rem; position: relative; display: none; }
.rue.is-pinned .rue-bar { display: block; margin-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); }
.rue-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--rouge); transform-origin: left; transform: scaleX(var(--rue-p, 0)); }

/* Le film : 7 janvier 1924 --------------------------------------------------- */
.film { position: relative; background: #000; color: #fff; overflow: hidden; }
.film-media { position: relative; aspect-ratio: 16 / 7; min-height: 26rem; max-height: 82svh; width: 100%; }
.film-media video, .film-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(0.2) contrast(1.05); }
.film-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%); }
.film-txt { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding-block: clamp(2rem, 5vw, 4.5rem); }
.film-txt h2 { font-size: var(--t-2xl); max-width: 14ch; }
.film-txt p { max-width: 38ch; margin-top: 1.1rem; font-size: var(--t-md); line-height: 1.45; color: #e4e6e7; }
.film-txt .more { color: #fff; margin-top: 1.4rem; display: inline-block; }
.film-cap { position: absolute; right: 0; bottom: 0; z-index: 3; font-size: 0.72rem; color: #d7dadb; background: rgba(0, 0, 0, 0.6); padding: 0.3rem 0.6rem; max-width: 70%; line-height: 1.35; }
.film-cap a { color: inherit; }
.film-ctl { position: absolute; top: 1rem; right: 1rem; z-index: 3; background: rgba(0, 0, 0, 0.55); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.8); font: inherit; font-family: var(--f-d); font-size: 0.9rem; padding: 0.45rem 0.8rem; cursor: pointer; }
.film-ctl:hover { background: #fff; color: #000; }
@media (max-width: 760px) { .film-media { aspect-ratio: 4 / 5; max-height: 86svh; } .film-media::after { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,0) 80%); } }

/* Chiffres de la ville -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid currentColor; }
.stat { padding-top: 1.2rem; display: grid; gap: 0.6rem; align-content: start; }
.stat .v { font-family: var(--f-d); font-weight: 400; font-size: clamp(2.6rem, 1.2rem + 3.6vw, 4.6rem); line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.stat .v small { font-size: 0.42em; letter-spacing: -0.01em; margin-left: 0.12em; }
.stat .k { font-size: var(--t-sm); line-height: 1.45; color: var(--ink-2); max-width: 26ch; }
.sec.dark .stat .k { color: var(--night-ink-2); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }

/* Réponse courte, encadrés ------------------------------------------------------ */
.answer { border-left: 3px solid var(--rouge); padding: 0.2rem 0 0.2rem 1.25rem; max-width: 48rem; display: grid; gap: 0.6rem; }
.answer .label { color: var(--rouge); font-size: var(--t-sm); }
.answer p, .answer li { font-size: var(--t-md); line-height: 1.5; }
@media (max-width: 600px) { .answer p, .answer li { font-size: 1.125rem; } }
.answer ul { padding-left: 1.1em; display: grid; gap: 0.4rem; }
.answer ul li::marker { color: var(--rouge); }
.note { background: var(--mist); padding: 1.1rem 1.25rem 1.2rem; display: grid; gap: 0.45rem; max-width: var(--measure); border-top: 3px solid var(--ink); }
.note .label { color: var(--ink); font-size: var(--t-sm); }
.note p, .note li { font-size: var(--t-sm); }
.texte { border-left: 1px solid var(--ink); padding: 0.15rem 0 0.15rem 1.25rem; display: grid; gap: 0.5rem; max-width: var(--measure); }
.texte .label { color: var(--ink-2); }
.texte blockquote { font-family: var(--f-d); font-size: 1.12rem; line-height: 1.55; display: grid; gap: 0.55rem; font-weight: 400; }
.texte .src { font-size: 0.8rem; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0 var(--gap); border-top: 1px solid var(--ink); }
.fact { padding: 1rem 0 1.1rem; display: grid; gap: 0.35rem; align-content: start; }
.fact .v { font-family: var(--f-d); font-weight: 420; font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fact .k { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; max-width: 30ch; }

/* Outil « Quel dossier ? » (section sombre) -------------------------------- */
.wizard { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 960px) { .wizard { grid-template-columns: minmax(0, 1fr); } }
.wz-q { display: grid; gap: 1.6rem; }
.wz-q fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.65rem; min-width: 0; }
.wz-q legend, .wz-q .field label { font-family: var(--f-d); font-weight: 480; font-size: 1.15rem; margin-bottom: 0.25rem; padding: 0; letter-spacing: -0.005em; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; font-family: var(--f-t); font-weight: 520; font-size: 0.95rem; padding: 0.55rem 0.95rem; border: 1.5px solid currentColor; color: inherit; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.chip:hover span { border-color: var(--rouge); }
.chip input:focus-visible + span { outline: 3px solid currentColor; outline-offset: 3px; }
.wz-q .field input { max-width: 12rem; }
.sec.dark .field input, .sec.dark .field select { background: transparent; color: #fff; border-color: #fff; }
.sec.dark .hint, .sec.dark .small.muted { color: var(--night-ink-2); }
.wz-r { position: sticky; top: calc(var(--hd-h) + 1rem); background: var(--paper); color: var(--ink); }
.wz-r a { color: var(--ink) !important; }
.wz-r a:hover { color: var(--rouge) !important; }
.wz-r-head { padding: 1.4rem 1.4rem 1.3rem; display: grid; gap: 0.3rem; background: var(--rouge); color: #fff; }
.wz-r-head .label { color: #ffd9d6; }
.wz-r-head .v { font-family: var(--f-d); font-weight: 450; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.025em; }
.wz-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 1.4rem; border-bottom: 1px solid var(--mist-2); font-size: var(--t-sm); line-height: 1.5; }
.wz-row:last-child { border-bottom: 0; }
.wz-row .k { font-weight: 600; font-size: var(--t-xs); color: var(--ink-2); padding-top: 0.15rem; }
.wz-row .v { min-width: 0; }
.wz-row strong { font-family: var(--f-d); font-weight: 520; }
.wz-why { font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 480px) { .wz-row { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; } }
@media (prefers-reduced-motion: no-preference) { .wz-r .wz-flash { animation: wz-flash 0.6s ease-out; } }
@keyframes wz-flash { from { background: var(--rouge-wash); } to { background: transparent; } }

/* Carte réglementaire ------------------------------------------------------- */
.map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); gap: 0; background: var(--paper); border: 1px solid var(--ink); }
@media (max-width: 960px) { .map { grid-template-columns: minmax(0, 1fr); } }
.map-canvas { position: relative; min-width: 0; border-right: 1px solid var(--ink); background: #fbfbfa; }
@media (max-width: 960px) { .map-canvas { border-right: 0; border-bottom: 1px solid var(--ink); } }
.map svg { display: block; width: 100%; height: auto; max-height: 84vh; }
.map .m-commune { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linejoin: round; }
.map .m-outside { fill: var(--paper); fill-opacity: 0.8; }
.map .m-water { fill: var(--a-water); }
.map .m-route { fill: none; stroke: var(--paper); stroke-width: 9; stroke-linecap: round; }
.map .m-zone { stroke: var(--paper); stroke-width: 2; fill-opacity: 0.62; cursor: pointer; transition: fill-opacity .2s; }
.map .z-U1 { fill: #9a9fa3; } .map .z-U2 { fill: #b9bdbf; } .map .z-U3 { fill: #d9d4c4; } .map .z-U4 { fill: #c3cdd6; }
.map .z-U5 { fill: #a7aab3; } .map .z-U6 { fill: #cfd8c9; } .map .z-Np { fill: #a8c19c; } .map .z-Ns { fill: #a9c6d6; }
.map .m-zone:hover, .map .m-zone.is-on { fill-opacity: 0.95; stroke: var(--ink); }
.map .m-ac1 { fill: url(#hatch-ac1); stroke: var(--rouge); stroke-width: 3; stroke-dasharray: 14 8; }
.map .m-ac2 { fill: url(#hatch-ac2); stroke: var(--ok); stroke-width: 3; }
.map .m-pm1 { fill: var(--outremer); fill-opacity: 0.16; stroke: var(--outremer); stroke-width: 3; }
.map .m-mon { fill: var(--paper); stroke: var(--rouge); stroke-width: 6; cursor: pointer; }
.map .m-mon:hover, .map .m-mon.is-on { fill: var(--rouge); }
.map .m-pin { fill: var(--rouge); stroke: var(--paper); stroke-width: 6; }
.map .m-label { font-family: var(--f-d); font-size: 80px; font-weight: 480; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 18px; pointer-events: none; letter-spacing: -1px; }
.map .m-label.water { fill: var(--outremer); font-style: italic; font-weight: 420; font-size: 86px; }
.map-bati { opacity: 0.8; }
.map[data-layer-zones="off"] .g-zones, .map[data-layer-ac1="off"] .g-ac1, .map[data-layer-ac2="off"] .g-ac2, .map[data-layer-pm1="off"] .g-pm1, .map[data-layer-mon="off"] .g-mon { display: none; }
.map-side { padding: 1.2rem 1.25rem; display: grid; gap: 1.2rem; align-content: start; }
.map-side h3 { font-size: 1.1rem; }
.layers-ctl { display: grid; gap: 0.55rem; border: 0; padding: 0; margin: 0; }
.layers-ctl legend { font-weight: 600; font-size: var(--t-xs); color: var(--ink-2); margin-bottom: 0.35rem; padding: 0; }
.layers-ctl label { display: grid; grid-template-columns: 1.1rem 1.6rem minmax(0, 1fr); gap: 0.55rem; align-items: center; font-size: 0.95rem; font-weight: 500; cursor: pointer; }
.layers-ctl input { width: 1.05rem; height: 1.05rem; accent-color: var(--rouge); margin: 0; }
.sw { width: 1.6rem; height: 1rem; border: 1.5px solid var(--ink); display: inline-block; }
.sw-zones { background: linear-gradient(90deg, #9a9fa3 0 25%, #b9bdbf 25% 50%, #d9d4c4 50% 75%, #c3cdd6 75%); }
.sw-ac1 { background: repeating-linear-gradient(135deg, var(--rouge) 0 2px, transparent 2px 6px); border-color: var(--rouge); border-style: dashed; }
.sw-ac2 { background: repeating-linear-gradient(45deg, var(--ok) 0 2px, transparent 2px 6px); border-color: var(--ok); }
.sw-pm1 { background: color-mix(in srgb, var(--outremer) 22%, transparent); border-color: var(--outremer); }
.sw-mon { border-radius: 50%; width: 1rem; height: 1rem; border: 3px solid var(--rouge); justify-self: center; }
.map-info { border-top: 1px solid var(--mist-2); padding-top: 0.9rem; display: grid; gap: 0.4rem; font-size: 0.93rem; line-height: 1.45; min-height: 7rem; }
.map-info .k { font-family: var(--f-d); font-weight: 520; }
.map-info ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.map-info li { display: grid; gap: 0.05rem; }
.map-info .tagline { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.map-find { display: grid; gap: 0.35rem; position: relative; }
.map-find label { font-weight: 600; font-size: 0.92rem; }
.map-find input { width: 100%; font: inherit; font-size: 0.98rem; padding: 0.6rem 0.7rem; border: 1.5px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); }
.map-legend-zones { display: grid; gap: 0.25rem; font-size: 0.85rem; color: var(--ink-2); }
.map-legend-zones span { display: grid; grid-template-columns: 0.9rem minmax(0, 1fr); gap: 0.5rem; align-items: center; }
.map-legend-zones i { width: 0.9rem; height: 0.7rem; display: inline-block; }
.map-legend-zones .mz-U1 { background: #9a9fa3; } .map-legend-zones .mz-U2 { background: #b9bdbf; } .map-legend-zones .mz-U3 { background: #d9d4c4; }
.map-legend-zones .mz-U4 { background: #c3cdd6; } .map-legend-zones .mz-U5 { background: #a7aab3; } .map-legend-zones .mz-U6 { background: #cfd8c9; }
.map-legend-zones .mz-Np { background: #a8c19c; } .map-legend-zones .mz-Ns { background: #a9c6d6; }
/* Teintes de zones génériques (site.mapFamilies) : 0 centre dense, 2 pavillonnaire, 6 et 7 nature et eau. */
.map .zc-0 { fill: #9a9fa3; } .map .zc-1 { fill: #b9bdbf; } .map .zc-2 { fill: #d9d4c4; } .map .zc-3 { fill: #c3cdd6; } .map .zc-4 { fill: #a7aab3; } .map .zc-5 { fill: #cfd8c9; } .map .zc-6 { fill: #a8c19c; } .map .zc-7 { fill: #a9c6d6; } .map .zc-8 { fill: #d6c6b8; } .map .zc-9 { fill: #bcb3c9; }
.map-legend-zones .mzc-0 { background: #9a9fa3; } .map-legend-zones .mzc-1 { background: #b9bdbf; } .map-legend-zones .mzc-2 { background: #d9d4c4; } .map-legend-zones .mzc-3 { background: #c3cdd6; } .map-legend-zones .mzc-4 { background: #a7aab3; } .map-legend-zones .mzc-5 { background: #cfd8c9; } .map-legend-zones .mzc-6 { background: #a8c19c; } .map-legend-zones .mzc-7 { background: #a9c6d6; } .map-legend-zones .mzc-8 { background: #d6c6b8; } .map-legend-zones .mzc-9 { background: #bcb3c9; }
.map[data-layer-zones="off"] .map-legend-zones { display: none; }
.map .m-ac1, .map .m-ac2, .map .m-pm1 { cursor: pointer; }
.map .m-ac1:hover { stroke-width: 6; }
.map .hatch-ac1 { stroke: var(--rouge); stroke-width: 5; opacity: 0.45; }
.map .hatch-ac2 { stroke: var(--ok); stroke-width: 5; opacity: 0.5; }
.map-credit { font-size: 0.78rem; color: var(--ink-2); line-height: 1.45; padding: 0.6rem 1.1rem; border-top: 1px solid var(--ink); grid-column: 1 / -1; }
/* Dans la colonne d'un guide, la carte prend toute la largeur et le panneau passe dessous, sur deux colonnes. */
.guide-body .map-credit { max-width: none; }
.guide-body .map { grid-template-columns: minmax(0, 1fr); }
.guide-body .map-canvas { border-right: 0; border-bottom: 1px solid var(--ink); }
.guide-body .map svg { max-height: 78vh; }
@media (min-width: 640px) {
  .guide-body .map-side { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; align-items: start; }
  .guide-body .map-side > .map-find { grid-column: 1; grid-row: 1; }
  .guide-body .map-side > .layers-ctl { grid-column: 2; grid-row: 1 / span 3; }
  .guide-body .map-side > .map-legend-zones { grid-column: 1; grid-row: 2; }
  .guide-body .map-side > .map-info { grid-column: 1; grid-row: 3; }
}

/* Tarifs ---------------------------------------------------------------------- */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.price { display: flex; flex-direction: column; gap: 0.9rem; padding-top: 1.1rem; border-top: 1px solid var(--ink); min-width: 0; }
.price ul { margin-top: 0.3rem !important; }
.price.is-free { border-top-color: var(--rouge); }
.price-n { font-family: var(--f-d); font-weight: 480; font-size: var(--t-lg); line-height: 1.15; letter-spacing: -0.015em; }
.price-v { font-family: var(--f-d); font-weight: 380; font-size: clamp(2.8rem, 1.4rem + 3.4vw, 4.6rem); line-height: 0.95; letter-spacing: -0.045em; font-variant-numeric: lining-nums; white-space: nowrap; }
.price-v small { display: block; font-family: var(--f-t); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-bottom: 0.45rem; }
.price.is-free .price-v { color: var(--rouge); }
.price p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; font-size: var(--t-sm); line-height: 1.45; }
.price li { padding-left: 1rem; position: relative; }
.price li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.45rem; height: 1.5px; background: var(--rouge); }
.price-note { font-size: var(--t-xs); color: var(--ink-2); margin-top: 1.75rem; max-width: 70ch; }
@media (max-width: 1100px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (max-width: 560px) { .prices { grid-template-columns: minmax(0, 1fr); } }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.bordereau { width: 100%; border-collapse: collapse; min-width: 34rem; }
.bordereau th, .bordereau td { text-align: left; vertical-align: top; padding: 1.15rem 1rem 1.15rem 0; border-bottom: 1px solid var(--mist-2); }
.bordereau thead th { font-family: var(--f-t); font-weight: 600; font-size: var(--t-xs); color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.bordereau td:first-child { width: 28%; }
.bordereau .p-name { font-family: var(--f-d); font-weight: 500; font-size: 1.25rem; line-height: 1.25; display: block; letter-spacing: -0.01em; }
.bordereau .price { font-family: var(--f-d); font-weight: 450; font-size: 1.35rem; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; display: table-cell; border-top: 0; padding-right: 0; }
.bordereau th.price-h { text-align: right; padding-right: 0; }
.bordereau td { font-size: var(--t-sm); line-height: 1.55; }
.bordereau tr.free .price { color: var(--rouge); }
.bordereau .rules { margin-top: 0.55rem; padding-left: 1.1em; display: grid; gap: 0.25rem; }
.bordereau .incl { margin-top: 0.7rem; }
.caption { caption-side: bottom; text-align: left; padding: 0.8rem 0; }
@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; }
  .bordereau { min-width: 0; }
  .bordereau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bordereau, .bordereau tbody, .bordereau tr, .bordereau td, .bordereau caption { display: block; width: 100%; }
  .bordereau tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--mist-2); }
  .bordereau td { border: 0; padding: 0; width: auto !important; }
  .bordereau td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .bordereau td.price { grid-column: 2; grid-row: 1; display: block; }
}
.calc { padding: clamp(1.25rem, 3vw, 2rem); max-width: 48rem; background: var(--mist); }
.calc fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.calc legend { padding: 0; margin-bottom: 0.4rem; }
.calc-result { border-top: 1px solid var(--ink); padding-top: 1rem; }
.calc-total { font-family: var(--f-d); font-weight: 400; font-size: clamp(2.6rem, 1.6rem + 2.6vw, 3.8rem); line-height: 1; color: var(--rouge); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; display: block; margin-top: 0.3rem; }
.calc .form-grid { align-items: start; }

/* Étapes : séquence réelle ------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; border-top: 1px solid var(--ink); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: minmax(4rem, 2fr) minmax(0, 10fr); gap: var(--gap); padding-block: 1.6rem; border-bottom: 1px solid var(--mist-2); }
.steps > li::before { content: counter(step); font-family: var(--f-d); font-weight: 400; font-size: clamp(2.2rem, 1.5rem + 2vw, 3.4rem); color: var(--rouge); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--t-lg); margin-bottom: 0.45rem; }
.steps p { font-size: var(--t-base); color: var(--ink-2); max-width: 62ch; }
.gate { display: inline-flex; gap: 0.5rem; align-items: center; margin-top: 0.75rem; font-size: var(--t-xs); font-weight: 600; color: var(--ink); }
.gate::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--rouge); }
/* Frise de l'accueil : une ligne qui se trace au fil du défilement */
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); position: relative; padding-top: 2.6rem; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 0.55rem; height: 2px; background: var(--mist-2); }
.timeline::after { content: ""; position: absolute; left: 0; right: 0; top: 0.55rem; height: 2px; background: var(--rouge); transform-origin: left; transform: scaleX(var(--tl, 1)); }
.timeline > li { counter-increment: step; display: grid; gap: 0.5rem; align-content: start; position: relative; }
.timeline > li::before { content: counter(step); position: absolute; top: -2.6rem; left: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 0; z-index: 1; transition: background .3s, border-color .3s; }
.timeline > li.is-on::before { background: var(--rouge); border-color: var(--rouge); }
.timeline .tl-n { font-family: var(--f-d); font-weight: 400; font-size: 2.6rem; line-height: 0.9; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.2rem; line-height: 1.2; }
.timeline p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.timeline .gate { margin-top: 0.2rem; }
@media (max-width: 1000px) {
  .timeline { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 2.4rem; row-gap: 2rem; }
  .timeline::before, .timeline::after { left: 0.55rem; right: auto; top: 0.3rem; bottom: 0.3rem; width: 2px; height: auto; }
  .timeline::after { transform-origin: top; transform: scaleY(var(--tl, 1)); }
  .timeline > li::before { top: 0.15rem; left: -2.4rem; }
}

/* Ce que nous vérifions --------------------------------------------------------- */
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 3rem) var(--gap); }
.layer { display: grid; gap: 0.5rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--ink); min-width: 0; }
.layer h3 { font-size: var(--t-md); }
.layer p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55; }
.code { font-family: var(--f-d); font-weight: 500; font-size: var(--t-sm); color: var(--rouge); }
@media (max-width: 960px) { .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .layers { grid-template-columns: minmax(0, 1fr); } }

/* Cartes des guides ------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3.5vw, 3.25rem) var(--gap); }
.card { display: grid; grid-template-rows: auto auto 1fr; gap: 0.75rem; color: var(--ink); text-decoration: none; min-width: 0; }
.card:hover { color: var(--ink); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); display: grid; place-items: center; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.card-img .axo { width: 72%; height: auto; max-height: 82%; transition: transform .8s var(--ease); }
.card:hover .card-img img, .card:hover .card-img .axo { transform: scale(1.04); }
.card h3 { font-size: var(--t-md); line-height: 1.2; transition: color .2s; }
.card:hover h3 { color: var(--rouge); }
.card p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } .card { grid-template-columns: 7rem minmax(0, 1fr); grid-template-rows: auto; column-gap: 1rem; align-items: start; } .card-img { grid-row: span 2; aspect-ratio: 1; } }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .cards.c2 { grid-template-columns: minmax(0, 1fr); } }
/* compatibilité (listes de guides compactes) */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0 var(--gap); border-top: 1px solid var(--ink); }
.guide-card { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--mist-2); text-decoration: none; color: var(--ink); align-items: center; }
.guide-card .axo { width: 100%; height: auto; }
.guide-card h3 { font-size: 1.05rem; line-height: 1.3; }
.guide-card p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.4; margin-top: 0.2rem; }
.guide-card:hover h3 { color: var(--rouge); }

/* L'architecte ------------------------------------------------------------------ */
.signer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gap); align-items: start; }
.signer-q { grid-column: 1 / span 7; position: sticky; top: calc(var(--hd-h) + 2rem); font-family: var(--f-d); font-weight: 400; font-size: clamp(1.85rem, 1.1rem + 2.4vw, 3.1rem); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.signer-q em { font-style: normal; color: var(--rouge); }
.signer-b { grid-column: 9 / span 4; display: grid; gap: 1.1rem; }
.signer-b p { color: var(--ink-2); }
@media (max-width: 960px) { .signer-q, .signer-b { grid-column: 1 / -1; position: static; } }
.idcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--ink); max-width: 46rem; }
.idcard .cell { padding: 0.85rem 0.9rem 0.95rem 0; display: grid; gap: 0.25rem; border-bottom: 1px solid var(--mist-2); }
.idcard .v { font-family: var(--f-d); font-weight: 480; font-size: 1.08rem; line-height: 1.35; }
@media (max-width: 520px) { .idcard { grid-template-columns: minmax(0, 1fr); } }
.signer-b .idcard { grid-template-columns: minmax(0, 1fr); }

/* FAQ ----------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--ink); max-width: 60rem; }
.faq details { border-bottom: 1px solid var(--mist-2); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 3rem 1.3rem 0; position: relative; font-family: var(--f-d); font-weight: 460; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.3; letter-spacing: -0.01em; transition: color .2s; }
.faq summary:hover { color: var(--rouge); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 1.1rem; height: 2px; background: var(--rouge); transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq .a { padding: 0 0 1.5rem; display: grid; gap: 0.75rem; max-width: var(--measure); font-size: var(--t-base); color: var(--ink); }
.faq-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2rem; align-items: start; }
.faq-wrap > h2 { grid-column: 1 / span 4; position: sticky; top: calc(var(--hd-h) + 2rem); }
.faq-wrap .faq { grid-column: 5 / span 8; }
.faq-wrap .sec-foot { grid-column: 5 / span 8; margin-top: 0; }
@media (max-width: 900px) { .faq-wrap > h2, .faq-wrap .faq, .faq-wrap .sec-foot { grid-column: 1 / -1; position: static; } }

/* Appel final : l'adresse sur fond de ville --------------------------------------- */
.cta { position: relative; background: #000; color: #fff; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img, .cta-bg video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.55; }
.cta-in { position: relative; z-index: 2; padding-block: clamp(6rem, 14vw, 12rem); display: grid; gap: 2.25rem; }
.cta h2 { font-size: var(--t-3xl); max-width: 11ch; }
.cta .addr { max-width: 40rem; }
.cta .addr-row { border-bottom-color: #fff; }
.cta .addr label { color: #fff; }
.cta .addr-note { color: #c9cdcf; }
.cta-alt { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-family: var(--f-d); font-size: 1.15rem; }
.cta-alt a { color: #fff; text-decoration-color: var(--rouge); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.cta-cap { position: absolute; right: 0; bottom: 0; z-index: 3; font-size: 0.72rem; color: #cfd2d3; background: rgba(0, 0, 0, 0.6); padding: 0.3rem 0.6rem; max-width: 70%; line-height: 1.35; }
.cta-cap a { color: inherit; }

/* Pied de page ---------------------------------------------------------------------- */
.ft { background: var(--night); color: var(--night-ink); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; font-size: var(--t-sm); }
.ft a { color: var(--night-ink); text-decoration-color: rgba(255, 255, 255, 0.35); }
.ft a:hover { color: #fff; text-decoration-color: var(--rouge); }
.ft :focus-visible { outline-color: #fff; }
.ft-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gap); padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--night-line); }
.ft-contact { grid-column: 1 / span 6; display: grid; gap: 0.4rem; align-content: start; }
.ft-contact a { font-family: var(--f-d); font-weight: 400; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; text-decoration: none; width: fit-content; overflow-wrap: anywhere; }
.ft-contact a:hover { color: var(--rouge); }
.ft-contact p { color: var(--night-ink-2); margin-top: 0.9rem; max-width: 38ch; }
.ft-cols { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem var(--gap); }
.ft-cols h2 { font-family: var(--f-t); font-size: var(--t-xs); font-weight: 600; color: var(--night-ink-2); margin-bottom: 0.8rem; letter-spacing: 0.01em; }
.ft-cols ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.ft-cols a { text-decoration: none; }
.ft-cols a:hover { text-decoration: underline; }
.ft-word { font-family: var(--f-d); font-weight: 500; font-size: clamp(3.2rem, -0.5rem + 13.5vw, 13rem); letter-spacing: 0.1em; text-transform: uppercase; line-height: 0.9; margin: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); white-space: nowrap; overflow: hidden; color: #fff; }
.ft-word span { color: var(--rouge); }
.ft-legal { color: var(--night-ink-2); font-size: var(--t-xs); line-height: 1.55; max-width: 92ch; }
@media (max-width: 1000px) { .ft-contact, .ft-cols { grid-column: 1 / -1; } }
@media (max-width: 600px) { .ft-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Pages intérieures : en-tête -------------------------------------------------------- */
.phead { padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem); }
.phead-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1.25rem; }
.phead .crumbs { grid-column: 1 / -1; }
.phead h1 { grid-column: 1 / span 10; font-size: clamp(2.5rem, 1rem + 4.6vw, 5.4rem); }
.phead .lead { grid-column: 1 / span 6; max-width: 46ch; margin-top: 0.5rem; }
.phead .updated { grid-column: 9 / span 4; align-self: end; }
@media (max-width: 900px) { .phead h1, .phead .lead, .phead .updated { grid-column: 1 / -1; } }
.crumbs { font-size: var(--t-xs); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 0 0 0.75rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.45rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--rouge); }
.updated { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.5; }
.pband { margin: 0; }
.pband .pband-img { aspect-ratio: 21 / 9; overflow: hidden; background: var(--mist); max-height: 72svh; width: 100%; }
.pband .pband-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pband figcaption { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-top: 0.75rem; font-size: var(--t-xs); color: var(--ink-2); line-height: 1.45; }
.pband figcaption .ph-cap { grid-column: 1 / span 7; color: var(--ink); font-size: var(--t-sm); }
.pband figcaption .ph-credit { grid-column: 9 / span 4; }
@media (max-width: 900px) { .pband .pband-img { aspect-ratio: 3 / 2; } .pband figcaption .ph-cap, .pband figcaption .ph-credit { grid-column: 1 / -1; } }
.pband.axo-band .pband-img { position: relative; aspect-ratio: auto; height: clamp(15rem, 28vw, 25rem); max-height: none; }
.pband.axo-band .axo { position: absolute; inset: 7% 0; width: 100%; height: 86%; }

/* Corps des pages : planches de contenu ------------------------------------------------ */
.sheet { padding-block: clamp(3rem, 6vw, 5.5rem); }
.sheet + .sheet { padding-top: 0; }
.sheet.tint { --scroll-bg: var(--mist); background: var(--mist); padding-top: clamp(3rem, 6vw, 5.5rem) !important; }
.sheet.tint + .sheet { padding-top: clamp(3rem, 6vw, 5.5rem); }
.sheet > .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1.5rem; }
.sheet-head { grid-column: 1 / span 4; display: grid; gap: 0.75rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--ink); }
.sheet-head h2 { font-size: var(--t-xl); line-height: 1.08; letter-spacing: -0.025em; }
.sheet-head p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; max-width: 30ch; }
.sheet-body { grid-column: 5 / span 8; display: grid; gap: 1.75rem; min-width: 0; padding-top: 1rem; }
.sheet.wide .sheet-head { grid-column: 1 / span 8; }
.sheet.wide .sheet-body { grid-column: 1 / -1; }
@media (max-width: 900px) { .sheet-head, .sheet-body, .sheet.wide .sheet-head { grid-column: 1 / -1; } .sheet-body { padding-top: 0; } }
.plain { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5.5rem); }

/* Guides : sommaire collant et texte ---------------------------------------------------- */
.guide-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--hd-h) + 1.25rem); align-self: start; display: grid; gap: 0.7rem; font-size: 0.92rem; max-height: calc(100svh - var(--hd-h) - 2.5rem); overflow-y: auto; }
.toc .label { color: var(--ink); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.05rem; border-left: 1px solid var(--mist-2); }
.toc a { display: block; padding: 0.32rem 0 0.32rem 0.9rem; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; margin-left: -1.5px; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); border-left-color: var(--rouge); font-weight: 600; }
.guide-body { grid-column: 4 / span 8; display: grid; gap: clamp(3rem, 5vw, 4.5rem); min-width: 0; }
@media (max-width: 1000px) { .toc { grid-column: 1 / -1; position: static; max-height: none; margin-bottom: 2.5rem; } .guide-body { grid-column: 1 / -1; } }
.guide-body > section { display: grid; gap: 1.2rem; scroll-margin-top: calc(var(--hd-h) + 1rem); }
.guide-body > section > h2 { font-size: var(--t-xl); line-height: 1.1; letter-spacing: -0.025em; max-width: 26ch; padding-top: 1rem; border-top: 1px solid var(--ink); }
.guide-body figure { margin: 0; display: grid; gap: 0.6rem; }
.guide-body figcaption { font-size: var(--t-xs); color: var(--ink-2); max-width: 62ch; line-height: 1.45; }
.guide-body .diagram { background: var(--mist); padding: 1rem; }
.guide-body .diagram svg { display: block; width: 100%; height: auto; }
.brief { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.25rem; padding-block: clamp(2.5rem, 5vw, 4.5rem) 0; }
.brief .answer { grid-column: 1 / span 8; }
.brief .facts { grid-column: 1 / -1; }
@media (max-width: 900px) { .brief .answer { grid-column: 1 / -1; } }
.related { display: grid; gap: 1rem; }
.nextread { display: grid; gap: 1.5rem; }

/* Photographies ------------------------------------------------------------------------- */
.ph { margin: 0; display: grid; gap: 0.65rem; }
.ph picture { display: block; background: var(--mist); overflow: hidden; }
.ph img { display: block; width: 100%; height: auto; }
.ph figcaption { display: grid; gap: 0.2rem; font-size: var(--t-xs); line-height: 1.45; color: var(--ink-2); max-width: 68ch; }
.ph .ph-cap { color: var(--ink); font-size: var(--t-sm); }
.ph .ph-cap a { color: inherit; }
.ph-credit { font-size: 0.75rem; color: var(--ink-2); }
.ph-credit a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.guide-body .ph { margin-block: 1.25rem; }
.guide-body .prose .ph { max-width: none; }
@media (min-width: 1200px) { .guide-body .prose .ph.ph-wide { margin-right: calc(-1 * (100% / 8 + var(--gap))); } }
.ph.ph-lead picture { aspect-ratio: 2 / 1; }
.ph.ph-lead img { height: 100%; object-fit: cover; }
.credits { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.credits li { display: grid; gap: 0.1rem; }
/* Vidéo d'archive dans un guide */
.vid { margin: 0; display: grid; gap: 0.6rem; }
.vid-box { position: relative; background: #000; aspect-ratio: 4 / 3; overflow: hidden; }
.vid-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid figcaption { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.45; display: grid; gap: 0.2rem; }
.vid .ph-cap { color: var(--ink); font-size: var(--t-sm); }

/* Sources ---------------------------------------------------------------------------------- */
.sources { border-top: 1px solid var(--ink); padding-top: 1.1rem; max-width: 60rem; }
.sources h2.label, .sources summary { font-family: var(--f-t); font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.sources summary { cursor: pointer; list-style: none; display: flex; gap: 0.6rem; align-items: center; padding-block: 0.25rem; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary::before { content: ""; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--rouge); border-bottom: 2px solid var(--rouge); transform: rotate(-45deg); transition: transform .3s; }
.sources[open] summary::before { transform: rotate(45deg); }
.sources ul { list-style: none; padding: 0; margin-top: 0.9rem; display: grid; gap: 0.55rem; font-size: 0.86rem; line-height: 1.5; color: var(--ink-2); }
.sources li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.4rem; scroll-margin-top: calc(var(--hd-h) + 1rem); }
.src-n { font-family: var(--f-d); font-weight: 500; color: var(--rouge); font-variant-numeric: tabular-nums; }
.sources li:target { background: var(--rouge-wash); }
.sources a { overflow-wrap: anywhere; color: var(--ink-2); }

/* Contact ---------------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem var(--gap); }
.contact-item { border-top: 1px solid var(--ink); padding-top: 0.85rem; display: grid; gap: 0.3rem; }
.contact-item .v { font-family: var(--f-d); font-weight: 450; font-size: clamp(1.3rem, 1rem + 0.8vw, 1.7rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; letter-spacing: -0.015em; }
.contact-item .v a { color: var(--ink); text-decoration: none; }
.contact-item .v a:hover { color: var(--rouge); }

/* Formulaires --------------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; position: relative; }
.field.span { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-2); line-height: 1.45; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 0; padding: 0.75rem 0.8rem; min-height: 3rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--rouge); }
.consent { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: 0.65rem; align-items: start; font-size: 0.9rem; line-height: 1.45; font-weight: 400 !important; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--rouge); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
fieldset.postale { border: 0; padding: 0; margin: 0; gap: 0.75rem; }
fieldset.postale[hidden] { display: none; }
fieldset.postale .form-grid { margin-top: 0.25rem; }
fieldset.postale .consent input { min-height: 0; padding: 0; border: 0; }
fieldset.postale .form-grid[hidden] { display: none; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 25; list-style: none; margin: 2px 0 0; padding: 0.3rem 0; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.35); max-height: 18rem; overflow-y: auto; }
.suggest li { padding: 0.65rem 0.9rem; cursor: pointer; font-size: 0.98rem; line-height: 1.3; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--mist); }
.suggest small { display: block; color: var(--ink-2); font-size: 0.8rem; }
.prediag { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 900px) { .prediag { grid-template-columns: minmax(0, 1fr); } }
.result { border: 1px solid var(--ink); background: var(--paper); }
.result-head { padding: 1rem 1.1rem; display: grid; gap: 0.25rem; background: var(--ink); color: #fff; }
.result-head .label { color: #c8cccd; }
.result-head .v { font-family: var(--f-d); font-weight: 480; font-size: 1.2rem; }
.result-block { padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--mist-2); display: grid; gap: 0.5rem; }
.result-block:last-child { border-bottom: 0; }
.result-block.result-warn { background: var(--rouge-wash); border-left: 4px solid var(--rouge); }
.result-block ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; font-size: 0.95rem; line-height: 1.45; }
.result-block li { display: grid; gap: 0.1rem; }
.result-block .k { font-family: var(--f-d); font-weight: 520; }
.result-empty { padding: 1.1rem; color: var(--ink-2); font-size: 0.95rem; }
.disclaimer { font-size: 0.85rem; color: var(--ink-2); line-height: 1.45; border-top: 1px solid var(--mist-2); padding-top: 0.7rem; }
.notice { padding: 1.15rem 1.25rem; display: grid; gap: 0.55rem; background: var(--mist); }
.notice.success { border-left: 3px solid var(--ok); }
.notice.error { border-left: 3px solid var(--rouge); }
.notice h2 { font-size: var(--t-lg); }
.status { font-size: 0.9rem; color: var(--ink-2); min-height: 1.4em; }
#dem-zone { display: grid; gap: 1.75rem; max-width: var(--measure); }
#dem-zone[hidden] { display: none; }
#dem-done, #dem-fallback, #dem-invalid { max-width: var(--measure); }
#dem-form { display: grid; gap: 1.1rem; }
.dem-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.dem-facts > div { padding: 0.8rem 1rem 0.8rem 0; display: grid; gap: 0.2rem; align-content: start; }
.dem-facts dt { font-size: 0.85rem; color: var(--ink-2); }
.dem-facts dd { margin: 0; font-family: var(--f-d); font-weight: 480; font-size: 1.05rem; line-height: 1.35; }
@media (max-width: 640px) { .dem-facts { grid-template-columns: minmax(0, 1fr); } .dem-facts > div { border-bottom: 1px solid var(--mist-2); } }
.dem-request { margin: 0; padding: 1.15rem 1.25rem; border: 0; border-left: 3px solid var(--rouge); background: var(--mist); }
.dem-request legend { float: left; width: 100%; padding: 0 0 0.45rem; font-family: var(--f-d); font-weight: 520; }
.dem-request p { clear: both; line-height: 1.55; }

/* Espace client du dossier ---------------------------------------------------------------- */
#dos-zone { display: grid; gap: 2rem; max-width: var(--measure); }
#dos-zone[hidden], #dos-depot[hidden], #dos-fin[hidden] { display: none; }
#dos-fallback, #dos-invalid, #dos-suite { max-width: var(--measure); }
.prose .dos-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: etape; }
.prose .dos-etapes li { counter-increment: etape; padding: 0.9rem 0.9rem 0.9rem 0; border-top: 3px solid var(--mist-2); display: grid; gap: 0.25rem; align-content: start; color: var(--ink-2); }
.dos-etapes li::before { content: counter(etape); font-family: var(--f-d); font-weight: 500; font-size: 0.85rem; }
.dos-etapes b { font-family: var(--f-d); font-weight: 520; color: var(--ink); }
.dos-etapes span { font-size: 0.85rem; line-height: 1.4; }
.dos-etapes li.fait { border-top-color: var(--ink); }
.dos-etapes li.encours { border-top-color: var(--rouge); }
.dos-etapes li.encours::before { color: var(--rouge); }
@media (max-width: 640px) { .prose .dos-etapes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 0.4rem; } }
.dos h2 { font-size: var(--t-lg); margin: 0 0 0.9rem; }
.dos h3 { font-size: 1.05rem; margin: 1.5rem 0 0.6rem; }
.dos-test { margin: 0; color: var(--rouge-dk); font-weight: 600; }
.prose .dos-attendus { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.55rem; }
.prose .dos-attendus li { position: relative; padding-left: 1.7rem; line-height: 1.45; }
.dos-attendus li::before { content: ""; position: absolute; left: 0; top: 0.2rem; width: 1rem; height: 1rem; border: 1.5px solid var(--ink); }
.dos-attendus li[data-facultatif]::before { border-style: dashed; }
.dos-attendus li.ok::before { background: var(--ink); box-shadow: inset 0 0 0 2.5px #fff; }
.dos-attendus li.ok { color: var(--ink-2); }
.dos-form, .dos-fin { display: grid; gap: 1rem; padding: 1.15rem 1.25rem; background: var(--mist); }
.dos-fin { background: transparent; padding: 0; border-top: 1px solid var(--mist-2); padding-top: 1.25rem; }
.dos-form input[type=file] { font: inherit; width: 100%; max-width: 100%; padding: 0.6rem 0.7rem; border: 1.5px solid var(--ink); background: #fff; border-radius: 0; color: var(--ink); }
.prose .dos-recus { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.prose .dos-recus li { display: grid; gap: 0.1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--mist-2); overflow-wrap: anywhere; }
.dos-recus li span { font-size: 0.85rem; color: var(--ink-2); }

/* Tableaux de données ----------------------------------------------------------------------- */
.scroll { overflow-x: auto; max-width: 100%; border-top: 1px solid var(--ink); }
/* Indice de défilement : une ombre apparaît du côté où le tableau continue. */
.scroll { background: linear-gradient(to right, var(--scroll-bg, var(--paper)) 30%, transparent) left / 2.5rem 100% no-repeat local, linear-gradient(to left, var(--scroll-bg, var(--paper)) 30%, transparent) right / 2.5rem 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.16), transparent) left / 0.8rem 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.16), transparent) right / 0.8rem 100% no-repeat scroll; }
@media (max-width: 600px) { .data-table caption { position: sticky; left: 0; max-width: calc(100vw - 2.5rem); } }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); line-height: 1.5; min-width: 30rem; }
.data-table caption { caption-side: top; text-align: left; font-family: var(--f-d); font-size: 1rem; font-weight: 500; padding: 0 0 0.6rem; color: var(--ink); }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--mist-2); }
.data-table thead th { font-family: var(--f-t); font-weight: 600; font-size: var(--t-xs); color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.data-table tbody th { font-family: var(--f-d); font-weight: 500; }
.data-table td:first-child { font-family: var(--f-d); font-weight: 500; }
.data-table .nw { white-space: nowrap; }

/* Schémas des guides ------------------------------------------------------------------------- */
.dg { background: var(--mist); padding: clamp(1rem, 2.4vw, 1.6rem); display: grid; gap: 0.9rem; max-width: 56rem; }
.dg-title { font-family: var(--f-d); font-weight: 500; font-size: 1.05rem; color: var(--ink); }
.dg-foot { font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; max-width: 62ch; }
.dg-scale, .prose .dg-scale { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; border: 1.5px solid var(--ink); background: var(--paper); }
.dg-scale .seg { position: relative; display: grid; align-content: start; gap: 0.25rem; padding: 1.8rem 0.65rem 0.75rem; min-width: 0; border-left: 1px solid var(--ink); }
.dg-scale .seg:first-child { border-left: 0; }
.dg-scale .w-5 { flex: 5 1 0; } .dg-scale .w-15 { flex: 15 1 0; } .dg-scale .w-20 { flex: 20 1 0; } .dg-scale .w-10 { flex: 10 1 0; } .dg-scale .w-30 { flex: 30 1 0; } .dg-scale .w-35 { flex: 35 1 0; } .dg-scale .w-60 { flex: 60 1 0; }
.dg-scale .tick { position: absolute; top: 0.4rem; left: 0.65rem; font-family: var(--f-d); font-weight: 520; font-size: 0.85rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.dg-scale .seg-k { font-family: var(--f-d); font-weight: 520; font-size: 0.95rem; line-height: 1.25; }
.dg-scale .seg-sub { font-size: 0.8rem; line-height: 1.35; color: var(--ink-2); }
.dg-scale .s-none { background: var(--paper); }
.dg-scale .s-dp { background: var(--rouge-wash); }
.dg-scale .s-dp .seg-k { color: var(--rouge-dk); }
.dg-scale .s-mix { background: repeating-linear-gradient(135deg, var(--rouge-wash) 0 9px, #f7c9c5 9px 18px); }
.dg-scale .s-pc { background: var(--rouge); color: #fff; }
.dg-scale .s-pc .seg-k, .dg-scale .s-pc .tick { color: #fff; }
.dg-scale .s-pc .seg-sub { color: #ffe0dd; }
@media (max-width: 620px) {
  .dg-scale, .prose .dg-scale { flex-direction: column; }
  .dg-scale .seg { border-left: 0; border-top: 1px solid var(--ink); padding: 0.6rem 0.75rem 0.65rem 5.2rem; min-height: 2.8rem; }
  .dg-scale .seg:first-child { border-top: 0; }
  .dg-scale .tick { top: 0.65rem; left: 0.75rem; }
}
.dg-parcours ol, .prose .dg-parcours ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: p; }
.dg-parcours li { counter-increment: p; position: relative; padding: 0 0 1.1rem 2.7rem; display: grid; gap: 0.25rem; }
.dg-parcours li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border: 1.5px solid var(--ink); background: var(--paper); font-family: var(--f-d); font-weight: 520; font-size: 0.88rem; border-radius: 50%; }
.dg-parcours li::after { content: ""; position: absolute; left: 0.88rem; top: 1.95rem; bottom: 0.15rem; border-left: 1.5px solid var(--ink); }
.dg-parcours li:last-child { padding-bottom: 0; }
.dg-parcours li:last-child::after { display: none; }
.dg-parcours li.is-key::before { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.dg-parcours .p-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; min-height: 1.8rem; }
.dg-parcours .p-t { font-family: var(--f-d); font-weight: 520; font-size: 1.05rem; line-height: 1.3; }
.dg-parcours .p-d { font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; background: var(--ink); padding: 0.12rem 0.5rem; white-space: nowrap; }
.dg-parcours p { font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.dg-grille td.y { color: var(--rouge-dk); font-family: var(--f-d); font-weight: 520; white-space: nowrap; }
.dg-grille td.n { color: var(--ink-2); font-family: var(--f-d); white-space: nowrap; }
.dg-grille .mk { margin-right: 0.35rem; }
.dg-grille td:first-child { font-family: inherit; font-weight: inherit; }
.dg-formule dl { display: grid; gap: 0; margin: 0; }
.dg-formule .f-row, .dg-formule .f-total { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--mist-2); align-items: baseline; }
.dg-formule dt { font-size: 0.95rem; }
.dg-formule dd { margin: 0; font-family: var(--f-d); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dg-formule dt { min-width: 0; }
@media (max-width: 600px) { .dg-formule dd { white-space: normal; text-align: right; max-width: 55%; } }
.dg-formule .f-total { border-bottom: 0; border-top: 1.5px solid var(--ink); }
.dg-formule .f-total dd { color: var(--rouge); font-size: 1.25rem; }
.dg-svg { display: block; width: 100%; height: auto; font-family: var(--f-d); background: var(--paper); }
.dg-soil { fill: var(--mist); }
.dg-ground { stroke: var(--ink); stroke-width: 2; }
.dg-sdp { fill: var(--rouge-wash); }
.dg-low { stroke: none; }
.dg-hatch { stroke: var(--rouge); stroke-width: 1.4; }
.dg-180 { stroke: var(--rouge); stroke-width: 1.2; stroke-dasharray: 5 4; }
.dg-roof { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.dg-wall { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.dg-garage { fill: var(--mist); stroke: var(--ink); stroke-width: 1.6; }
.dg-door { fill: var(--a-door); }
.dg-balcon { fill: #c3cdd6; stroke: var(--ink); stroke-width: 1.2; }
.dg-rail { stroke: var(--ink); stroke-width: 1.2; }
.dg-terrasse { fill: var(--mist-2); stroke: var(--ink); stroke-width: 1; }
.dg-cave { fill: #f6c3bf; stroke: var(--ink); stroke-width: 1.4; }
.dg-proj { stroke: var(--rouge); stroke-width: 1.2; stroke-dasharray: 3 3; }
.dg-emprise { stroke: var(--rouge); stroke-width: 3; }
.dg-t { font-size: 15px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.dg-t-s { font-size: 13px; fill: var(--rouge-dk); }
.dg-t-e { fill: var(--rouge-dk); }
.dg-t-o { fill: var(--outremer); }
.dg-mk circle { fill: var(--rouge); stroke: var(--paper); stroke-width: 2; }
.dg-mk text { fill: #fff; font-size: 13px; font-weight: 600; text-anchor: middle; }
.dg-city { fill: var(--a-garden); }
.dg-road { fill: none; stroke: var(--a-street); stroke-width: 22; }
.dg-500 { fill: var(--rouge-wash); fill-opacity: 0.7; stroke: var(--rouge); stroke-width: 1.6; stroke-dasharray: 7 5; }
.dg-blk { fill: var(--mist); stroke: var(--ink-2); stroke-width: 1; }
.dg-blk-tall { fill: var(--mist-2); stroke: var(--ink); stroke-width: 1.4; }
.dg-mh { fill: var(--a-mh-l); stroke: var(--ink); stroke-width: 1.6; }
.dg-mh-cross { stroke: var(--ink); stroke-width: 2; }
.dg-house { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.dg-house.dg-in { fill: #f6908a; }
.dg-sight { stroke: var(--outremer); stroke-width: 1.6; stroke-dasharray: 2 4; }
.dg-sight-x { stroke: var(--ink-2); }
.dg-x { stroke: var(--rouge); stroke-width: 2.4; }
.dg-eye { fill: var(--outremer); }
.dg-river { fill: var(--a-water); }
.dg-water { fill: var(--a-water); fill-opacity: 0.6; }
.dg-cote { stroke: var(--outremer); stroke-width: 2; stroke-dasharray: 9 5; }
.dg-low2 { fill: var(--mist); }
.dg-cuvelage { fill: var(--mist-2); stroke: var(--ink); stroke-width: 1.4; }
.dg-flood { fill: var(--a-water); stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 4 3; }
.dg-dim { stroke: var(--outremer); stroke-width: 1.4; }
.dg-legende, .prose .dg-legende { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0.5rem 1.25rem; }
.dg-legende li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.55rem; font-size: 0.9rem; line-height: 1.45; }
.dg-legende .n { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--rouge); color: #fff; display: grid; place-items: center; font-family: var(--f-d); font-weight: 600; font-size: 0.75rem; margin-top: 0.1rem; }
@media (max-width: 620px) { .dg-t { font-size: 24px; stroke-width: 5px; } .dg-t-s { font-size: 21px; } .dg-mk circle { r: 17px; } .dg-mk text { font-size: 19px; } }

/* Axonométries ---------------------------------------------------------------------------------- */
.axo { overflow: visible; font-family: var(--f-d); }
.axo .f, .axo .op { stroke: var(--a-line); stroke-width: 0.9; stroke-linejoin: round; }
.axo .f-t { fill: var(--a-base-t); } .axo .f-l { fill: var(--a-base-l); } .axo .f-r { fill: var(--a-base-r); }
.axo .f-roof { fill: var(--a-roof); } .axo .f-roofr { fill: var(--a-roofr); } .axo .f-zinc { fill: var(--a-zinc); }
.axo .k-villa.f-t { fill: var(--a-villa-t); } .axo .k-villa.f-l { fill: var(--a-villa-l); } .axo .k-villa.f-r { fill: var(--a-villa-r); }
.axo .k-ext.f-t, .axo .k-floor.f-t { fill: var(--a-ext-t); } .axo .k-ext.f-l, .axo .k-floor.f-l { fill: var(--a-ext-l); } .axo .k-ext.f-r, .axo .k-floor.f-r { fill: var(--a-ext-r); }
.axo .k-sur.f-t, .axo .k-floor2.f-t { fill: var(--a-sur-t); } .axo .k-sur.f-l, .axo .k-floor2.f-l { fill: var(--a-sur-l); } .axo .k-sur.f-r, .axo .k-floor2.f-r { fill: var(--a-sur-r); }
.axo .k-ext.f, .axo .k-sur.f, .axo .k-floor.f, .axo .k-floor2.f { stroke: var(--rouge-dk); }
.axo .k-ver.f { fill: var(--a-ver); stroke: var(--rouge); }
.axo .k-mh.f-t, .axo .k-mh.f-roof { fill: var(--a-mh-t); } .axo .k-mh.f-l { fill: var(--a-mh-l); } .axo .k-mh.f-r { fill: var(--a-mh-r); }
.axo .k-dest.f, .axo .k-fac.f { fill: none; stroke: none; }
.axo .k-plinth.f-t { fill: var(--a-base-r); } .axo .k-plinth.f-l, .axo .k-plinth.f-r { fill: var(--a-roof); }
.axo .k-clo.f { fill: var(--rouge); }
.axo .k-demo.f { fill: var(--jaune-wash); stroke: #b98d00; stroke-dasharray: 4 3; }
.axo .k-sheet.f, .axo .k-sheet-top.f { fill: var(--paper); }
.axo .op { stroke-width: 0.6; fill: var(--a-glass); }
.axo .op-door { fill: var(--a-door); }
.axo .op-glass { fill: rgba(255, 255, 255, 0.1); stroke: var(--rouge); }
.axo .op-mullion { stroke: var(--a-line); stroke-width: 0.6; }
.axo .k-dest .op { fill: var(--rouge); stroke: var(--a-line); }
.axo .k-fac .op { fill: var(--rouge); }
.axo .g-street { fill: var(--a-street); } .axo .g-walk { fill: var(--a-walk); stroke: var(--rule); stroke-width: 0.6; }
.axo .g-garden { fill: var(--a-garden); }
.axo .g-parcel { fill: none; stroke: var(--ink-2); stroke-width: 0.8; stroke-dasharray: 5 4; }
.axo .g-water { fill: var(--a-water); }
.axo .g-abords { fill: var(--rouge-wash); stroke: var(--rouge); stroke-width: 1; stroke-dasharray: 5 4; }
.axo .g-emprise { fill: var(--rouge-wash); stroke: var(--rouge); stroke-width: 1.2; stroke-dasharray: 4 3; }
.axo .tree .crown { fill: var(--a-crown); stroke: var(--a-crown-l); stroke-width: 0.8; }
.axo .tree .trunk { stroke: var(--a-trunk); stroke-width: 1.6; }
.axo .lbl-line { fill: none; stroke: var(--ink); stroke-width: 0.9; }
.axo .lbl-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.axo .lbl-t { font-size: 17px; font-weight: 520; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.axo .covis { stroke: var(--outremer); stroke-width: 1.4; stroke-dasharray: 2 4; }
.axo .lvl { stroke: var(--rouge); stroke-width: 1.6; stroke-dasharray: 8 4; }
.axo .lvl-t { font-size: 11px; font-weight: 600; fill: var(--rouge); }
.axo .m2 { stroke: var(--rouge-dk); stroke-width: 0.6; }
.axo .plan-wall { fill: none; stroke: var(--rouge); stroke-width: 2.2; }
.axo .plan-cartouche { fill: var(--mist); stroke: var(--ink); stroke-width: 0.6; }
.axo .dim-line { stroke: var(--outremer); stroke-width: 1; }
.axo .dim-end { fill: var(--outremer); }
.axo .dim-t { font-size: 12px; font-weight: 600; fill: var(--outremer); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .axo .seq { opacity: 0; transform: translateY(12px); animation: axo-rise 0.6s var(--ease) forwards; animation-delay: 0.3s; animation-play-state: paused; }
  .axo .seq.s2 { animation-delay: 0.6s; }
  .is-visible .axo .seq, .axo.is-visible .seq, .no-io .axo .seq { animation-play-state: running; }
}
@keyframes axo-rise { to { opacity: 1; transform: none; } }

/* Lexique, pages légales ------------------------------------------------------------------------- */
.lexique { display: grid; gap: 0; border-top: 1px solid var(--ink); max-width: 64rem; }
.lexique > div { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 0.4rem 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--mist-2); scroll-margin-top: calc(var(--hd-h) + 1rem); }
.lexique dt { font-family: var(--f-d); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; }
.lexique dd { margin: 0; font-size: var(--t-base); display: grid; gap: 0.45rem; }
.lexique > div:target { background: var(--rouge-wash); }
@media (max-width: 640px) { .lexique > div { grid-template-columns: minmax(0, 1fr); } }
.legal { max-width: 52rem; }
.legal h2 { font-size: var(--t-xl); margin-top: 2rem; }
.legal h3 { font-size: var(--t-md); margin-top: 0.9rem; }
.legal p, .legal li { font-size: var(--t-base); }
.legal dl { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 0.45rem 1.25rem; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: minmax(0, 1fr); } .legal dd { margin-bottom: 0.45rem; } }
.form-type { border: 1px dashed var(--ink); padding: 1rem 1.15rem; font-size: var(--t-sm); display: grid; gap: 0.5rem; }
.preview-band { margin: 0; padding: 0.5rem max(16px, env(safe-area-inset-left, 0px)); background: var(--jaune); color: var(--ink); font-size: 0.85rem; text-align: center; }

/* Transitions entre pages ------------------------------------------------------------------------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .35s var(--ease-io) both; }
  ::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
.hd { view-transition-name: hd; }
::view-transition-group(hd) { animation: none; }

/* Révélation des photos à l'entrée dans l'écran : animation liée au défilement, là où le navigateur la connaît. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal img { animation: reveal-img linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    .timeline { animation: tl-grow linear both; animation-timeline: view(); animation-range: entry 30% cover 50%; }
  }
}
@keyframes reveal-img { from { clip-path: inset(18% 0 0 0); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); transform: none; } }
@property --tl { syntax: "<number>"; inherits: true; initial-value: 1; }
@keyframes tl-grow { from { --tl: 0; } to { --tl: 1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; scroll-behavior: auto !important; } }
@media print { .hd, .ft, .actions, .addr, .map-side, .wizard .wz-q, .cta, .film-ctl, .idx-float { display: none !important; } body { background: #fff; color: #000; } .axo .seq { opacity: 1 !important; transform: none !important; } .sec.dark { background: #fff; color: #000; } }

/* Film, compléments de mise en page de l'accueil */
.film-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gap); align-items: end; }
.film-t { grid-column: 1 / span 5; display: grid; gap: 1.4rem; justify-items: start; }
.film-t .lead { color: #d6d9da; }
.film-g .vid { grid-column: 7 / span 6; }
.sec.dark .vid .ph-cap { color: #fff; }
.sec.dark .vid .ph-credit, .sec.dark .vid .ph-credit a { color: var(--night-ink-2); }
@media (max-width: 960px) { .film-t, .film-g .vid { grid-column: 1 / -1; } }
.gap-top { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.brief.tight { padding-top: 0; }
.sec.sec-sources { padding-block: clamp(2.5rem, 4vw, 3.5rem); }
.cta-band .addr { max-width: 42rem; }
.cta-band .addr label { color: #fff; }
.cta-band .addr-note { color: var(--night-ink-2); }
.cta-band .cta-alt { margin-top: 2rem; }
.cta-band .cta-alt a { color: #fff; }
.sec.dark .addr-row .btn { border-color: var(--rouge); }
.cta-bg .film-ctl { top: auto; bottom: 2.2rem; right: 1rem; }
.sources-wrap { padding-block: 0 clamp(3rem, 5vw, 4.5rem); }
.nav-act .menu-panel .hd-tel { display: block; }
@media (max-width: 760px) {
  .cta-bg .film-ctl { top: 1rem; bottom: auto; }
  .cta-cap { position: relative; max-width: none; display: block; }
  .hero-cap { max-width: none; left: 0; }
}

/* Bandeau d'appel des pages intérieures : le trait rouge du projet */
.sec.dark.cta-band { background: var(--rouge); }
.cta-band .sh .sh-aside, .cta-band .sh-aside, .cta-band .addr-note { color: #fff; }
.cta-band .addr-row { border-bottom-color: #fff; }
.cta-band .addr-row input::placeholder { color: #ffc9c4; }
.cta-band .addr-row .btn { background: #000; border-color: #000; color: #fff; }
.cta-band .addr-row .btn:hover { background: #fff; border-color: #fff; color: var(--rouge); }
.cta-band .cta-alt a { text-decoration-color: #fff; }
.cta-band .cta-alt a:hover { color: #000; }
.cta-band .suggest { color: var(--ink); }
.dg-scale .seg { min-width: 6.5rem; overflow-wrap: anywhere; hyphens: auto; }
.guide-body > section { padding-top: 1rem; border-top: 1px solid var(--ink); }
.guide-body > section > h2 { padding-top: 0; border-top: 0; }
.guide-body > .vid { margin-bottom: -1rem; }
@media (max-width: 600px) { .brief .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fact .v { font-size: 1.7rem; } }

.prose .dos-remise { margin-top: 2rem; }
.prose .dos-fichiers { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.5rem; }
.prose .dos-fichiers li { display: flex; justify-content: space-between; gap: 1rem; border: 1.5px solid var(--ink); padding: 0.75rem 1rem; }
.prose .dos-fichiers a { font-weight: 600; }
.prose .dos-fichiers span { color: var(--ink-2); white-space: nowrap; }

/* Garanti / non garanti (tarifs, déroulement) : deux colonnes, la seconde en retrait. */
.engage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; }
.engage h3 { font-family: var(--f-d); font-weight: 500; font-size: 1.15rem; margin: 0 0 1rem; }
.engage ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.engage li { position: relative; padding-left: 1.6rem; line-height: 1.5; }
.engage-yes li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.engage-no li { color: var(--ink-2); }
.engage-no li::before { content: ""; position: absolute; left: 0.1rem; top: 0.72em; width: 0.7rem; border-top: 2px solid var(--accent); }
.engage-col + .engage-col { border-left: 1px solid var(--rule); padding-left: 2.5rem; }
.engage .small { margin-top: 1.25rem; }
@media (max-width: 860px) { .engage { grid-template-columns: minmax(0, 1fr); gap: 2rem; } .engage-col + .engage-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 2rem; } }

/* Journal : ce qui a changé (une entrée datée par règle suivie ou correction). */
.journal { max-width: 46rem; padding-block: 2rem 3rem; }
.journal-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink); }
.journal-list > li { position: relative; padding: 0 0 2.25rem 1.75rem; }
.journal-list > li::before { content: ""; position: absolute; left: -7px; top: 0.35rem; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--ink); }
.journal-list time { font-family: var(--f-d); font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: var(--t-xs); }
.journal-list h2 { font-size: 1.2rem; margin: 0.2rem 0 0.6rem; }

/* Classes générées au build */
.u-7e21d12{--x:32.3;--y:12.5;--i:0;--dy:46}
.u-25c11db{--x:66.7;--y:7.5;--i:1;--dy:150}
.u-2129086{--x:51.3;--y:46;--i:2;--dy:64}
.u-e6d7b85{--x:44.5;--y:81;--i:3;--dy:40}
.u-79fc642{--ar:1.5;--fxd:50%;--fxm:52%}
