/* Trilateral — gabarit des sites architecte-[ville].fr
   Concept : la planche d'architecte. Un fond de calque, une encre graphite, l'axonométrie comme
   image. Les volumes de projet prennent les couleurs d'une polychromie architecturale :
   ocre pour l'extension, outremer pour la surélévation, vert de Seine pour la destination.
   Un seul moment animé par page : le dessin d'ouverture se trace, puis les projets apparaissent. */

@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo.woff2") format("woff2-variations"), url("fonts/archivo.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: "Source Serif 4 Variable"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("fonts/source-serif.woff2") format("woff2-variations"), url("fonts/source-serif.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: "Source Serif 4 Variable"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url("fonts/source-serif-italic.woff2") format("woff2-variations"), url("fonts/source-serif-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 {
  --paper: #f3f5f2;      /* calque */
  --paper-2: #e7ece8;    /* calque teinté */
  --sheet: #fbfcfa;      /* feuille de dessin */
  --ink: #1b2630;        /* graphite bleuté */
  --ink-2: #4b5a62;
  --rule: #c5cdcb;
  --rule-strong: #1b2630;
  --accent: #0c6366;     /* vert de Seine */
  --accent-hover: #094d50;
  --accent-ink: #ffffff;
  --wash: #d8e8e5;
  --outremer: #3a5ba0;
  --outremer-wash: #dde4f3;
  --ocre: #b9862f;
  --ocre-ink: #7a5513;
  --ocre-wash: #f3e6c6;
  --hatch: rgba(12, 99, 102, 0.22);
  --ok: #2c6a3c;
  --warn: #8a5600;
  --focus: #0c6366;

  /* axonométries */
  --a-line: #1b2630;
  --a-zinc: #dfe5e3;
  --a-base-t: #fbfcfa; --a-base-l: #e8ede9; --a-base-r: #d1dad6; --a-roof: #c3cccb; --a-roofr: #aeb9b8;
  --a-villa-t: #ffffff; --a-villa-l: #f3f4f0; --a-villa-r: #dde3de;
  --a-ext-t: #f2ddaa; --a-ext-l: #e3bf6e; --a-ext-r: #c99a43;
  --a-sur-t: #cdd6ef; --a-sur-l: #93a6d8; --a-sur-r: #6179b8;
  --a-ver: rgba(186, 222, 219, 0.5);
  --a-mh-t: #efe5d0; --a-mh-l: #dccba6; --a-mh-r: #c3ab80;
  --a-glass: #9fb3bc; --a-door: #6f8189;
  --a-street: #dce2df; --a-walk: #ecf0ed; --a-garden: #e2eadc; --a-water: #cbdde8;
  --a-crown: #c0d4b9; --a-crown-l: #6e8f67; --a-trunk: #6f5a43;

  --f-display: "Archivo Variable", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Source Serif 4 Variable", "Source Serif 4", Georgia, "Times New Roman", serif;

  /* échelle typographique classique : 14 · 16 · 18 · 21 · 24 · 36 · 48 · 60 · 72 */
  --s-xs: 0.875rem; --s-sm: 1rem; --s-base: 1.125rem; --s-md: 1.3125rem; --s-lg: 1.5rem; --s-xl: 2.25rem;
  --s-2xl: clamp(2.5rem, 1.3rem + 4.6vw, 4.5rem);

  --measure: 66ch;
  --wrap: 78rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 2px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f171a; --paper-2: #152126; --sheet: #121c20; --ink: #e3eae8; --ink-2: #9cadb2; --rule: #2b3a40; --rule-strong: #c9d4d2;
    --accent: #5fb9b3; --accent-hover: #7fcbc6; --accent-ink: #062325; --wash: #133033; --outremer: #8ea6e0; --outremer-wash: #1b2540;
    --ocre: #e0b45f; --ocre-ink: #e9c47c; --ocre-wash: #2e2614; --hatch: rgba(95, 185, 179, 0.25); --ok: #7cc48d; --warn: #e0b25c; --focus: #7fcbc6;
    --a-line: #c9d4d2; --a-zinc: #263640;
    --a-base-t: #22313a; --a-base-l: #1b282f; --a-base-r: #151f25; --a-roof: #2c3b44; --a-roofr: #24323a;
    --a-villa-t: #2a3a42; --a-villa-l: #223139; --a-villa-r: #1a262d;
    --a-ext-t: #7a6431; --a-ext-l: #6b5426; --a-ext-r: #57431c;
    --a-sur-t: #3d4f7e; --a-sur-l: #33436d; --a-sur-r: #283659;
    --a-ver: rgba(95, 185, 179, 0.22);
    --a-mh-t: #4a4232; --a-mh-l: #3f3829; --a-mh-r: #332d21;
    --a-glass: #48616b; --a-door: #31444b;
    --a-street: #18252a; --a-walk: #1d2b31; --a-garden: #17261f; --a-water: #16283a;
    --a-crown: #2b4430; --a-crown-l: #6e9a72; --a-trunk: #8c7559;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f171a; --paper-2: #152126; --sheet: #121c20; --ink: #e3eae8; --ink-2: #9cadb2; --rule: #2b3a40; --rule-strong: #c9d4d2;
  --accent: #5fb9b3; --accent-hover: #7fcbc6; --accent-ink: #062325; --wash: #133033; --outremer: #8ea6e0; --outremer-wash: #1b2540;
  --ocre: #e0b45f; --ocre-ink: #e9c47c; --ocre-wash: #2e2614; --hatch: rgba(95, 185, 179, 0.25); --ok: #7cc48d; --warn: #e0b25c; --focus: #7fcbc6;
  --a-line: #c9d4d2; --a-zinc: #263640;
  --a-base-t: #22313a; --a-base-l: #1b282f; --a-base-r: #151f25; --a-roof: #2c3b44; --a-roofr: #24323a;
  --a-villa-t: #2a3a42; --a-villa-l: #223139; --a-villa-r: #1a262d;
  --a-ext-t: #7a6431; --a-ext-l: #6b5426; --a-ext-r: #57431c;
  --a-sur-t: #3d4f7e; --a-sur-l: #33436d; --a-sur-r: #283659;
  --a-ver: rgba(95, 185, 179, 0.22);
  --a-mh-t: #4a4232; --a-mh-l: #3f3829; --a-mh-r: #332d21;
  --a-glass: #48616b; --a-door: #31444b;
  --a-street: #18252a; --a-walk: #1d2b31; --a-garden: #17261f; --a-water: #16283a;
  --a-crown: #2b4430; --a-crown-l: #6e9a72; --a-trunk: #8c7559;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-text); font-size: var(--s-base); line-height: 1.62; font-optical-sizing: auto; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--wash); color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 40; background: var(--paper); padding: 8px 12px; border: 1px solid var(--ink); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.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-display); color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: var(--s-2xl); font-stretch: 125%; font-weight: 680; line-height: 0.98; letter-spacing: -0.015em; }
h2 { font-size: var(--s-xl); font-stretch: 112%; font-weight: 620; line-height: 1.08; letter-spacing: -0.005em; }
h3 { font-size: var(--s-md); font-stretch: 100%; font-weight: 620; line-height: 1.25; }
h4 { font-size: var(--s-base); font-weight: 620; line-height: 1.3; }
p, ul, ol, dl, table, figure, blockquote { margin: 0; }
.prose { display: grid; gap: 1rem; min-width: 0; }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > dl, .prose > blockquote, .prose > .note { max-width: var(--measure); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 0.4rem; }
.prose h3 { margin-top: 0.6rem; }
.lead { font-size: var(--s-md); line-height: 1.5; color: var(--ink); max-width: 44ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--s-sm); line-height: 1.5; }
.label { font-family: var(--f-display); font-stretch: 82%; font-weight: 580; font-size: var(--s-xs); letter-spacing: 0.015em; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums lining-nums; }
sup.ref { font-family: var(--f-display); font-size: 0.68em; font-weight: 640; line-height: 0; }
sup.ref a { text-decoration: none; padding-inline: 0.1em; }
abbr[title] { text-decoration: none; border-bottom: 1px dotted var(--ink-2); cursor: help; }

/* En-tête ---------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand svg { width: 22px; height: 30px; flex: none; }
.brand-name { font-family: var(--f-display); font-stretch: 118%; font-weight: 660; font-size: 1.2rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--f-display); font-stretch: 85%; font-weight: 500; font-size: 0.8rem; color: var(--ink-2); margin-top: 0.2rem; }
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav-links { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.nav-links a { font-family: var(--f-display); font-stretch: 92%; font-weight: 540; font-size: 0.95rem; color: var(--ink); text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-tel { font-family: var(--f-display); font-weight: 640; font-size: 0.95rem; white-space: nowrap; color: var(--ink); text-decoration: none; border: 1px solid var(--rule-strong); padding: 0.45rem 0.7rem; border-radius: var(--radius); font-variant-numeric: tabular-nums; }
.nav-tel:hover { background: var(--ink); color: var(--paper); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--f-display); font-weight: 620; font-size: 0.95rem; border: 1px solid var(--rule-strong); padding: 0.45rem 0.7rem; border-radius: var(--radius); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--sheet); border: 1px solid var(--rule-strong); min-width: 17rem; padding: 0.4rem 0; box-shadow: 0 14px 34px rgba(10, 25, 30, 0.16); }
.menu-panel a { display: block; padding: 0.6rem 1rem; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 540; }
.menu-panel a:hover { background: var(--paper-2); }
.menu-panel .menu-sep { border-top: 1px solid var(--rule); margin: 0.35rem 0; }
@media (max-width: 1080px) { .nav-links { display: none; } .menu { display: block; } }
@media (max-width: 420px) { .brand-sub { display: none; } .nav-tel { padding: 0.45rem 0.55rem; font-size: 0.9rem; } }

/* Boutons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--f-display); font-stretch: 105%; font-weight: 640; font-size: 1rem; line-height: 1.2;
  padding: 0.9rem 1.25rem; border-radius: var(--radius); border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.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; }
.checks { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.checks li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.6rem; align-items: baseline; }
.checks li::before { content: ""; width: 0.8rem; height: 0.8rem; border: 1.5px solid var(--accent); transform: translateY(0.1rem) rotate(45deg) scale(0.75); background: var(--wash); }

/* Héros : la planche ------------------------------------------------------ */
.hero { border-bottom: 1px solid var(--rule); background: var(--paper); overflow: hidden; }
.hero-sheet { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem); padding-block: clamp(2rem, 5vw, 4rem) 0; align-items: center; }
.hero-text { display: grid; gap: 1.25rem; min-width: 0; padding-bottom: clamp(1rem, 3vw, 2.5rem); }
.hero-kicker { font-family: var(--f-display); font-stretch: 90%; font-weight: 580; font-size: var(--s-sm); color: var(--ink-2); }
.hero h1 { max-width: none; font-size: clamp(2.4rem, 1rem + 4vw, 4.1rem); }
.hero h1 .l { display: block; }
.hero h1 .l:first-child { white-space: nowrap; }
.hero-figure { margin: 0; min-width: 0; position: relative; }
.hero-figure .axo { display: block; width: 100%; height: auto; }
.hero-band { border-top: 1.5px solid var(--rule-strong); }
@media (max-width: 900px) {
  .hero-sheet { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { order: -1; margin-inline: -8px; }
}

/* Cartouche (formulaire d'adresse) */
.cartouche { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) repeat(2, minmax(0, 0.8fr)) auto; background: var(--sheet); border-inline: 1.5px solid var(--rule-strong); }
.cartouche .cell { padding: 0.75rem 0.9rem 0.85rem; display: grid; gap: 0.25rem; min-width: 0; border-right: 1px solid var(--rule); position: relative; }
.cartouche .cell:last-of-type { border-right: 0; }
.cell .v { font-family: var(--f-display); font-weight: 580; font-size: 0.98rem; line-height: 1.35; overflow-wrap: anywhere; }
.cell input, .cell select { width: 100%; font: inherit; font-family: var(--f-display); font-size: 1rem; font-weight: 540; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink-2); border-radius: 0; padding: 0.3rem 0; min-height: 2.3rem; }
.cell select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.5rem; }
.cell input:focus, .cell select:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 2px 0 0 var(--accent); }
.cartouche .btn { border-radius: 0; height: 100%; min-height: 4.4rem; padding-inline: 1.5rem; }
@media (max-width: 1000px) {
  .cartouche { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-inline: 0; }
  .cartouche .cell { border-bottom: 1px solid var(--rule); }
  .cartouche .cell:nth-child(2n) { border-right: 0; }
  .cartouche .cell.span { grid-column: 1 / -1; border-right: 0; }
  .cartouche .btn { grid-column: 1 / -1; min-height: 3.4rem; }
}

/* Axonométries ---------------------------------------------------------- */
.axo { overflow: visible; font-family: var(--f-display); }
.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-ver.f { fill: var(--a-ver); stroke: var(--accent); }
.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(--ink-2); }
.axo .k-demo.f { fill: none; stroke: var(--warn); stroke-dasharray: 4 3; }
.axo .k-sheet.f, .axo .k-sheet-top.f { fill: var(--sheet); }
.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.08); stroke: var(--accent); }
.axo .op-mullion { stroke: var(--a-line); stroke-width: 0.6; }
.axo .k-dest .op { fill: var(--accent); stroke: var(--a-line); }
.axo .k-fac .op { fill: var(--ocre); }
.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(--outremer-wash); stroke: var(--outremer); stroke-width: 1; stroke-dasharray: 5 4; }
.axo .g-emprise { fill: var(--ocre-wash); stroke: var(--ocre); 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(--sheet); stroke: var(--ink); stroke-width: 1.2; }
.axo .lbl-t { font-size: 17px; font-weight: 640; font-stretch: 92%; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.axo-hero .lbl-t { font-size: 22px; stroke-width: 5px; }
.axo .covis { stroke: var(--outremer); stroke-width: 1.4; stroke-dasharray: 2 4; }
.axo .lvl { stroke: var(--outremer); stroke-width: 1.6; stroke-dasharray: 8 4; }
.axo .lvl-t { font-size: 11px; font-weight: 620; fill: var(--outremer); }
.axo .m2 { stroke: var(--ocre-ink); stroke-width: 0.6; }
.axo .plan-wall { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.axo .plan-cartouche { fill: var(--paper-2); 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: 640; fill: var(--outremer); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }

/* Le moment d'ouverture : la planche se trace puis les projets s'y posent. */
@media (prefers-reduced-motion: no-preference) {
  .axo-hero .layer-base .f, .axo-hero .layer-base .op { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: axo-draw 1.1s cubic-bezier(.6,.05,.3,1) forwards, axo-fill 0.7s ease-out 0.75s forwards; }
  .axo-hero .layer-ground > * { opacity: 0; animation: axo-fade 0.6s ease-out 0.1s forwards; }
  .axo-hero .tree { opacity: 0; animation: axo-fade 0.6s ease-out 1.1s forwards; }
  .axo .seq { opacity: 0; transform: translateY(14px); animation: axo-rise 0.55s cubic-bezier(.2,.7,.2,1) forwards; }
  .axo .seq.s1 { animation-delay: 1.35s; } .axo .seq.s2 { animation-delay: 1.7s; } .axo .seq.s3 { animation-delay: 2.05s; }
  .axo .seq.s4 { animation-delay: 2.4s; } .axo .seq.s5 { animation-delay: 2.75s; }
  .axo-vignette .seq { animation-delay: 0.3s !important; animation-play-state: paused; }
  .axo-vignette.is-visible .seq, .no-io .axo-vignette .seq { animation-play-state: running; }
  .axo-vignette .seq.s2 { animation-delay: 0.6s !important; }
}
@keyframes axo-draw { to { stroke-dashoffset: 0; } }
@keyframes axo-fill { to { fill-opacity: 1; } }
@keyframes axo-fade { to { opacity: 1; } }
@keyframes axo-rise { to { opacity: 1; transform: none; } }

/* Planche : sections à deux colonnes ------------------------------------- */
.sheet { border-bottom: 1px solid var(--rule); }
.sheet > .wrap { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.sheet-head { display: grid; gap: 0.6rem; align-content: start; }
.sheet-head h2 { font-size: var(--s-lg); font-stretch: 110%; line-height: 1.15; }
.sheet-head p { color: var(--ink-2); font-size: var(--s-sm); line-height: 1.5; }
.sheet-body { display: grid; gap: 1.5rem; min-width: 0; }
.sheet.tint { background: var(--paper-2); }
.sheet.wide > .wrap { grid-template-columns: minmax(0, 1fr); }
.sheet.wide .sheet-head { max-width: 46rem; }
.sheet.wide .sheet-head h2 { font-size: var(--s-xl); }
@media (max-width: 860px) { .sheet > .wrap { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } }

/* En-tête de page intérieure */
.page-head { border-bottom: 1px solid var(--rule); }
.page-head .wrap { padding-block: clamp(2rem, 5vw, 3.75rem); display: grid; gap: 1rem; }
.page-head h1 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem); font-stretch: 118%; max-width: 22ch; }
.page-head.with-figure .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 1rem 3rem; }
.page-head.with-figure .head-text { display: grid; gap: 1rem; min-width: 0; }
.page-head.with-figure .head-figure { margin: 0; min-width: 0; }
.page-head.with-figure .axo { width: 100%; height: auto; max-height: 300px; }
@media (max-width: 860px) { .page-head.with-figure .wrap { grid-template-columns: minmax(0, 1fr); } .page-head.with-figure .head-figure { order: -1; max-width: 26rem; } }
.crumbs { font-family: var(--f-display); font-stretch: 90%; font-size: var(--s-xs); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--rule); }
.crumbs a { color: var(--ink-2); }
.updated { font-family: var(--f-display); font-stretch: 90%; font-size: var(--s-xs); color: var(--ink-2); }

/* Bloc réponse : la réponse courte, en tête de page */
.answer { border-left: 3px solid var(--accent); background: var(--wash); padding: 1rem 1.2rem; max-width: var(--measure); display: grid; gap: 0.5rem; }
.answer .label { color: var(--accent); }
.answer ul { padding-left: 1.1em; display: grid; gap: 0.35rem; }
/* Encadré local : ce qui est propre à la commune */
.note { border-left: 3px solid var(--ocre); background: var(--ocre-wash); padding: 0.9rem 1.1rem; display: grid; gap: 0.4rem; }
.note .label { color: var(--ocre-ink); }
.note p, .note li { font-size: var(--s-sm); }
/* Le texte même : citation d'un article */
.texte { border: 1px solid var(--rule); border-left: 3px solid var(--outremer); background: var(--sheet); padding: 0.9rem 1.1rem; display: grid; gap: 0.45rem; }
.texte .label { color: var(--outremer); }
.texte blockquote { font-size: var(--s-sm); line-height: 1.55; display: grid; gap: 0.4rem; }
.texte blockquote p::before { content: none; }
.texte .src { font-family: var(--f-display); font-size: 0.8rem; color: var(--ink-2); }

/* Grille des projets ------------------------------------------------------ */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.sheet.wide .projects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sheet.wide .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sheet.wide .projects { grid-template-columns: minmax(0, 1fr); } }
.project { display: grid; grid-template-rows: auto 1fr; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; background: var(--paper); min-width: 0; }
.sheet.tint .project { background: var(--paper-2); }
.project:hover { background: var(--sheet); color: var(--ink); }
.project-fig { padding: 1rem 1rem 0.2rem; height: 13.5rem; display: flex; align-items: center; justify-content: center; }
.project-fig .axo { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.project-txt { padding: 0.4rem 1.1rem 1.15rem; display: grid; gap: 0.3rem; align-content: start; }
.project h3 { font-size: 1.12rem; }
.project p { font-size: var(--s-sm); color: var(--ink-2); line-height: 1.45; }
.project .price { font-family: var(--f-display); font-weight: 660; font-size: 0.95rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.project:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
@media (prefers-reduced-motion: no-preference) {
  .project .seq { transition: transform 0.35s ease; }
  .project:hover .seq, .project:focus-visible .seq { transform: translateY(-5px); }
}

/* Outil « Quel dossier ? » ----------------------------------------------- */
.wizard { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 900px) { .wizard { grid-template-columns: minmax(0, 1fr); } }
.wz-q { display: grid; gap: 1.2rem; }
.wz-q fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; min-width: 0; }
.wz-q legend { font-family: var(--f-display); font-weight: 640; font-size: 1rem; margin-bottom: 0.2rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; font-family: var(--f-display); font-weight: 560; font-size: 0.93rem; padding: 0.5rem 0.8rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--sheet); color: var(--ink); line-height: 1.2; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.wz-q .field input { max-width: 12rem; }
.wz-r { border: 1.5px solid var(--rule-strong); background: var(--sheet); position: sticky; top: 1rem; }
.wz-r-head { padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule-strong); background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 8px), var(--sheet); display: grid; gap: 0.15rem; }
.wz-r-head .v { font-family: var(--f-display); font-stretch: 112%; font-weight: 680; font-size: 1.55rem; line-height: 1.15; }
.wz-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule); font-size: var(--s-sm); line-height: 1.45; }
.wz-row:last-child { border-bottom: 0; }
.wz-row .k { font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.wz-row .v { min-width: 0; }
.wz-row strong { font-family: var(--f-display); font-weight: 660; }
.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.5s ease-out; } }
@keyframes wz-flash { from { background: var(--wash); } to { background: transparent; } }

/* Carte réglementaire ----------------------------------------------------- */
.map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem); gap: 0; border: 1.5px solid var(--rule-strong); background: var(--sheet); }
@media (max-width: 960px) { .map { grid-template-columns: minmax(0, 1fr); } }
.map-canvas { position: relative; min-width: 0; border-right: 1px solid var(--rule); }
@media (max-width: 960px) { .map-canvas { border-right: 0; border-bottom: 1px solid var(--rule); } }
.map svg { display: block; width: 100%; height: auto; max-height: 82vh; }
.map .m-commune { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }
.map .m-outside { fill: var(--paper); fill-opacity: 0.72; }
.map .m-water { fill: var(--a-water); }
.map .m-route { fill: none; stroke: var(--sheet); stroke-width: 9; stroke-linecap: round; }
.map .m-zone { stroke: var(--sheet); stroke-width: 2; fill-opacity: 0.55; cursor: pointer; }
.map .z-U1 { fill: #c9a7a0; } .map .z-U2 { fill: #d8c49a; } .map .z-U3 { fill: #e7dcb4; } .map .z-U4 { fill: #b8c7d6; }
.map .z-U5 { fill: #b5b9c4; } .map .z-U6 { fill: #c6d2bc; } .map .z-Np { fill: #a9c69d; } .map .z-Ns { fill: #9fc0d2; }
.map .m-zone:hover, .map .m-zone.is-on { fill-opacity: 0.85; stroke: var(--ink); }
.map .m-ac1 { fill: url(#hatch-ac1); stroke: var(--outremer); 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(--accent); fill-opacity: 0.18; stroke: var(--accent); stroke-width: 3; }
.map .m-mon { fill: var(--sheet); stroke: var(--outremer); stroke-width: 5; cursor: pointer; }
.map .m-mon:hover, .map .m-mon.is-on { fill: var(--outremer); }
.map .m-pin { fill: var(--warn); stroke: var(--sheet); stroke-width: 5; }
.map .m-label { font-family: var(--f-display); font-size: 76px; font-weight: 680; font-stretch: 112%; fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 18px; pointer-events: none; }
.map .m-label.water { fill: var(--accent); font-style: italic; font-weight: 560; font-size: 84px; }
.map-bati { opacity: 0.85; }
:root[data-theme="dark"] .map-bati { filter: invert(1) hue-rotate(180deg); opacity: 0.7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-bati { filter: invert(1) hue-rotate(180deg); opacity: 0.7; } }
.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: 1rem 1.1rem; display: grid; gap: 1rem; align-content: start; }
.map-side h3 { font-size: 1rem; }
.layers-ctl { display: grid; gap: 0.5rem; }
.layers-ctl label { display: grid; grid-template-columns: 1.1rem 1.6rem minmax(0, 1fr); gap: 0.5rem; align-items: center; font-family: var(--f-display); font-size: 0.92rem; font-weight: 560; cursor: pointer; }
.layers-ctl input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); margin: 0; }
.sw { width: 1.6rem; height: 1rem; border: 1.5px solid var(--ink); display: inline-block; }
.sw-zones { background: linear-gradient(90deg, #c9a7a0 0 25%, #d8c49a 25% 50%, #e7dcb4 50% 75%, #b8c7d6 75%); }
.sw-ac1 { background: repeating-linear-gradient(135deg, var(--outremer) 0 2px, transparent 2px 6px); border-color: var(--outremer); 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(--accent) 22%, transparent); border-color: var(--accent); }
.sw-mon { border-radius: 50%; width: 1rem; height: 1rem; border: 3px solid var(--outremer); justify-self: center; }
.map-info { border-top: 1px solid var(--rule); padding-top: 0.8rem; display: grid; gap: 0.35rem; font-size: 0.93rem; line-height: 1.45; min-height: 7rem; }
.map-info .k { font-family: var(--f-display); font-weight: 660; }
.map-find { display: grid; gap: 0.35rem; position: relative; }
.map-find label { font-family: var(--f-display); font-weight: 620; font-size: 0.92rem; }
.map-find input { width: 100%; font: inherit; font-size: 0.98rem; padding: 0.55rem 0.65rem; border: 1px solid var(--ink-2); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.map-legend-zones { display: grid; gap: 0.2rem; font-size: 0.85rem; color: var(--ink-2); }
.map-legend-zones span { display: grid; grid-template-columns: 0.9rem minmax(0, 1fr); gap: 0.45rem; align-items: center; }
.map-legend-zones i { width: 0.9rem; height: 0.7rem; display: inline-block; border: 1px solid var(--ink-2); }
.map-credit { font-size: 0.8rem; color: var(--ink-2); line-height: 1.4; padding: 0.55rem 1rem; border-top: 1px solid var(--rule); grid-column: 1 / -1; }

/* Bordereau des prix ------------------------------------------------------ */
.table-wrap { overflow-x: auto; border-top: 1.5px solid var(--rule-strong); border-bottom: 1.5px solid var(--rule-strong); }
.bordereau { width: 100%; border-collapse: collapse; min-width: 34rem; }
.bordereau th, .bordereau td { text-align: left; vertical-align: top; padding: 0.95rem 0.9rem; border-bottom: 1px solid var(--rule); }
.bordereau tr:last-child td { border-bottom: 0; }
.bordereau thead th { font-family: var(--f-display); font-stretch: 85%; font-weight: 600; font-size: var(--s-xs); color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); }
.bordereau td:first-child { width: 30%; }
.bordereau .p-name { font-family: var(--f-display); font-weight: 650; font-size: 1.05rem; line-height: 1.3; display: block; }
.bordereau .price { font-family: var(--f-display); font-weight: 690; font-size: 1.15rem; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.bordereau th.price-h { text-align: right; }
.bordereau td { font-size: var(--s-sm); line-height: 1.55; }
.bordereau tr.free .price { color: var(--accent); }
.bordereau .rules { margin-top: 0.5rem; padding-left: 1.1em; display: grid; gap: 0.2rem; }
.bordereau .incl { margin-top: 0.6rem; }
.caption { caption-side: bottom; text-align: left; padding: 0.6rem 0.9rem; }
@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.35rem 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
  .bordereau tr:last-child { border-bottom: 0; }
  .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; }
  .bordereau .caption { padding-inline: 0; }
}
.calc { border: 1.5px solid var(--rule-strong); padding: clamp(1rem, 3vw, 1.5rem); max-width: 46rem; background: var(--sheet); }
.calc fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.calc legend { padding: 0; margin-bottom: 0.35rem; }
.calc-result { border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.calc-total { font-family: var(--f-display); font-stretch: 112%; font-weight: 690; font-size: 2.1rem; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc .form-grid { align-items: start; }

/* Étapes (séquence réelle : numérotées) ------------------------------------ */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; border-top: 1px solid var(--rule); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-display); font-stretch: 112%; font-weight: 660; font-size: 1.35rem; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.steps h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.steps p { font-size: var(--s-sm); color: var(--ink-2); max-width: 60ch; }
.gate { display: inline-block; margin-top: 0.45rem; font-family: var(--f-display); font-stretch: 88%; font-weight: 620; font-size: 0.8rem; color: var(--accent); border: 1px solid var(--accent); padding: 0.1rem 0.45rem; border-radius: var(--radius); }
/* Frise horizontale (accueil) */
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1.5px solid var(--rule-strong); }
.timeline > li { counter-increment: step; padding: 0.9rem 0.9rem 0 0; display: grid; gap: 0.35rem; align-content: start; position: relative; }
.timeline > li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-display); font-stretch: 112%; font-weight: 680; font-size: 1.2rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline > li::after { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.sheet.tint .timeline > li::after { background: var(--paper-2); }
.timeline h3 { font-size: 1rem; }
.timeline p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 960px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; } }
@media (max-width: 460px) { .timeline { grid-template-columns: minmax(0, 1fr); } }

/* Couches réglementaires ---------------------------------------------------- */
.layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.layer { padding: 1rem 1.1rem 1.15rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.layer h3 { font-size: 1.02rem; }
.layer p { font-size: var(--s-sm); color: var(--ink-2); line-height: 1.5; }
.code { font-family: var(--f-display); font-stretch: 85%; font-weight: 640; font-size: 0.78rem; color: var(--accent); letter-spacing: 0.02em; }

/* Guides ---------------------------------------------------------------------- */
.guide-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2rem, 4vw, 3.5rem); }
.toc { position: sticky; top: 1rem; align-self: start; display: grid; gap: 0.6rem; font-family: var(--f-display); font-size: 0.92rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.8rem; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; margin-left: -1.5px; line-height: 1.3; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); border-left-color: var(--accent); font-weight: 620; }
@media (max-width: 860px) { .guide-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } .toc ol { grid-template-columns: minmax(0, 1fr); } }
.guide-body { display: grid; gap: 2.6rem; min-width: 0; }
.guide-body > section { display: grid; gap: 1rem; scroll-margin-top: 1rem; }
.guide-body > section > h2 { font-size: var(--s-lg); font-stretch: 108%; line-height: 1.2; max-width: 34ch; }
.guide-body figure { margin: 0; display: grid; gap: 0.5rem; }
.guide-body figcaption { font-family: var(--f-display); font-size: 0.85rem; color: var(--ink-2); max-width: 60ch; }
.guide-body .diagram { border: 1px solid var(--rule); background: var(--sheet); padding: 0.75rem; }
.guide-body .diagram svg { display: block; width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); border-top: 1.5px solid var(--rule-strong); }
.fact { padding: 0.8rem 1rem 0.9rem 0; display: grid; gap: 0.15rem; border-bottom: 1px solid var(--rule); }
.fact .v { font-family: var(--f-display); font-stretch: 112%; font-weight: 680; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact .k { font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.guide-card { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.8rem; padding: 0.9rem 1rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); align-items: center; }
.guide-card:hover { background: var(--sheet); color: var(--ink); }
.guide-card .axo { width: 100%; height: auto; }
.guide-card h3 { font-size: 1rem; 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 { text-decoration: underline; text-underline-offset: 0.18em; }
.related { display: grid; gap: 0.6rem; }
#voir-aussi .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { #voir-aussi .guide-list { grid-template-columns: minmax(0, 1fr); } }
.nw { white-space: nowrap; }
@media (min-width: 1100px) { .nw-lg { white-space: nowrap; } }

/* Fiche architecte -------------------------------------------------------- */
.idcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1.5px solid var(--rule-strong); max-width: 46rem; background: var(--sheet); }
.idcard .cell { padding: 0.7rem 0.9rem 0.8rem; display: grid; gap: 0.25rem; border-bottom: 1px solid var(--rule); }
.idcard .cell:nth-child(even) { border-left: 1px solid var(--rule); }
.idcard .cell:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 520px) { .idcard { grid-template-columns: minmax(0, 1fr); } .idcard .cell:nth-child(even) { border-left: 0; } .idcard .cell:nth-last-child(2) { border-bottom: 1px solid var(--rule); } }
.signer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: start; }
@media (max-width: 860px) { .signer { grid-template-columns: minmax(0, 1fr); } }

/* FAQ --------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--rule); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.2rem 1rem 0; position: relative; font-family: var(--f-display); font-weight: 620; font-size: 1.06rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 1.2rem; display: grid; gap: 0.7rem; max-width: var(--measure); font-size: var(--s-sm); }

/* Formulaires ------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; position: relative; }
.field.span { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--f-display); font-weight: 620; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-2); line-height: 1.4; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--sheet); border: 1px solid var(--ink-2); border-radius: var(--radius); padding: 0.7rem 0.75rem; min-height: 2.9rem; }
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--warn); }
.consent { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: 0.6rem; align-items: start; font-size: 0.9rem; line-height: 1.45; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--accent); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@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.25rem 0; background: var(--sheet); border: 1px solid var(--rule-strong); box-shadow: 0 10px 24px rgba(10, 25, 30, 0.14); max-height: 18rem; overflow-y: auto; }
.cell .suggest { left: -0.9rem; right: -0.9rem; }
.suggest li { padding: 0.6rem 0.8rem; cursor: pointer; font-family: var(--f-display); font-size: 0.95rem; line-height: 1.3; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--wash); }
.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, 3rem); align-items: start; }
@media (max-width: 900px) { .prediag { grid-template-columns: minmax(0, 1fr); } }
.result { border: 1.5px solid var(--rule-strong); background: var(--sheet); }
.result-head { padding: 0.85rem 1rem; border-bottom: 1px solid var(--rule-strong); display: grid; gap: 0.2rem; background: repeating-linear-gradient(135deg, var(--hatch) 0 1.5px, transparent 1.5px 8px), var(--sheet); }
.result-head .v { font-family: var(--f-display); font-weight: 650; font-size: 1.05rem; }
.result-block { padding: 0.85rem 1rem; border-bottom: 1px solid var(--rule); display: grid; gap: 0.45rem; }
.result-block:last-child { border-bottom: 0; }
.result-block ul { list-style: none; padding: 0; display: grid; gap: 0.4rem; font-size: 0.95rem; line-height: 1.45; }
.result-block li { display: grid; gap: 0.1rem; }
.result-block .k { font-family: var(--f-display); font-weight: 630; }
.result-empty { padding: 1.1rem 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 dashed var(--rule); padding-top: 0.6rem; }
.notice { border: 1px solid var(--rule-strong); padding: 1rem 1.1rem; display: grid; gap: 0.5rem; background: var(--sheet); }
.notice.success { border-color: var(--ok); }
.notice.error { border-color: var(--warn); }
.notice h2 { font-size: var(--s-md); font-stretch: 105%; }
.status { font-size: 0.9rem; color: var(--ink-2); min-height: 1.4em; }

/* Sources ----------------------------------------------------------------- */
.sources { border-top: 1.5px solid var(--rule-strong); padding-top: 1rem; max-width: var(--measure); }
.sources ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: 0.88rem; line-height: 1.45; color: var(--ink-2); }
.sources li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.4rem; }
.src-n { font-family: var(--f-display); font-weight: 640; color: var(--accent); font-variant-numeric: tabular-nums; }
.sources li:target { background: var(--wash); }
.sources a { overflow-wrap: anywhere; }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.contact-item { border-top: 1.5px solid var(--rule-strong); padding-top: 0.75rem; display: grid; gap: 0.25rem; }
.contact-item .v { font-family: var(--f-display); font-weight: 650; font-size: 1.25rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.contact-item .v a { color: var(--ink); text-decoration: none; }
.contact-item .v a:hover { color: var(--accent); }

/* Tableaux de données ----------------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; font-size: var(--s-sm); line-height: 1.45; min-width: 30rem; }
.data-table caption { caption-side: top; text-align: left; font-family: var(--f-display); font-size: 0.9rem; font-weight: 620; padding: 0 0 0.5rem; color: var(--ink); }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--rule); }
.data-table thead th { font-family: var(--f-display); font-stretch: 85%; font-weight: 600; font-size: var(--s-xs); color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); }
.data-table tbody th { font-family: var(--f-display); font-weight: 630; }
.data-table td:first-child { font-family: var(--f-display); font-weight: 620; }
.data-table .nw { white-space: nowrap; }
.scroll { overflow-x: auto; max-width: 100%; border-top: 1.5px solid var(--rule-strong); }

/* Schémas des guides --------------------------------------------------------- */
.dg { border: 1px solid var(--rule); background: var(--sheet); padding: clamp(0.8rem, 2vw, 1.2rem); display: grid; gap: 0.8rem; max-width: 52rem; }
.dg-title { font-family: var(--f-display); font-weight: 640; font-size: 0.95rem; color: var(--ink); }
.dg-foot { font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; max-width: 62ch; }
/* Échelle des seuils */
.dg-scale, .prose .dg-scale { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; border: 1.5px solid var(--rule-strong); }
.dg-scale .seg { position: relative; display: grid; align-content: start; gap: 0.25rem; padding: 1.7rem 0.6rem 0.7rem; min-width: 0; border-left: 1px solid var(--rule-strong); }
.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.35rem; left: 0.6rem; font-family: var(--f-display); font-weight: 680; font-size: 0.82rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.dg-scale .seg-k { font-family: var(--f-display); font-weight: 640; font-size: 0.9rem; 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-2); }
.dg-scale .s-dp { background: var(--wash); }
.dg-scale .s-dp .seg-k { color: var(--accent); }
.dg-scale .s-mix { background: repeating-linear-gradient(135deg, var(--wash) 0 9px, var(--outremer-wash) 9px 18px); }
.dg-scale .s-pc { background: var(--outremer-wash); }
.dg-scale .s-pc .seg-k { color: var(--outremer); }
@media (max-width: 620px) {
  .dg-scale, .prose .dg-scale { flex-direction: column; }
  .dg-scale .seg { border-left: 0; border-top: 1px solid var(--rule-strong); padding: 0.55rem 0.7rem 0.6rem 5.2rem; min-height: 2.8rem; }
  .dg-scale .seg:first-child { border-top: 0; }
  .dg-scale .tick { top: 0.6rem; left: 0.7rem; }
}
/* Parcours */
.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 1rem 2.6rem; display: grid; gap: 0.25rem; }
.dg-parcours li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border: 1.5px solid var(--ink); background: var(--sheet); font-family: var(--f-display); font-weight: 680; font-size: 0.85rem; }
.dg-parcours li::after { content: ""; position: absolute; left: 0.87rem; top: 1.9rem; bottom: 0.15rem; border-left: 1.5px solid var(--rule-strong); }
.dg-parcours li:last-child { padding-bottom: 0; }
.dg-parcours li:last-child::after { display: none; }
.dg-parcours li.is-key::before { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dg-parcours .p-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.7rem; min-height: 1.75rem; }
.dg-parcours .p-t { font-family: var(--f-display); font-weight: 650; font-size: 1rem; line-height: 1.3; }
.dg-parcours .p-d { font-family: var(--f-display); font-size: 0.78rem; font-weight: 640; font-variant-numeric: tabular-nums; color: var(--ocre-ink); background: var(--ocre-wash); padding: 0.1rem 0.45rem; border-radius: var(--radius); white-space: nowrap; }
.dg-parcours p { font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
/* Grille élément → effet */
.dg-grille td.y { color: var(--accent); font-family: var(--f-display); font-weight: 620; white-space: nowrap; }
.dg-grille td.n { color: var(--ink-2); font-family: var(--f-display); white-space: nowrap; }
.dg-grille .mk { margin-right: 0.35rem; }
.dg-grille td:first-child { font-family: inherit; font-weight: inherit; }
/* Formule */
.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.45rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.dg-formule dt { font-size: 0.95rem; }
.dg-formule dd { margin: 0; font-family: var(--f-display); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dg-formule .f-total { border-bottom: 0; border-top: 1.5px solid var(--rule-strong); }
.dg-formule .f-total dd { color: var(--accent); font-size: 1.15rem; }
/* Coupes et plans SVG */
.dg-svg { display: block; width: 100%; height: auto; font-family: var(--f-display); }
.dg-soil { fill: var(--paper-2); }
.dg-ground { stroke: var(--ink); stroke-width: 2; }
.dg-sdp { fill: var(--a-ext-t); }
.dg-low { stroke: none; }
.dg-hatch { stroke: var(--ocre-ink); stroke-width: 1.4; }
.dg-180 { stroke: var(--ocre-ink); 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(--a-base-l); stroke: var(--ink); stroke-width: 1.6; }
.dg-door { fill: var(--a-door); }
.dg-balcon { fill: var(--a-sur-l); stroke: var(--ink); stroke-width: 1.2; }
.dg-rail { stroke: var(--ink); stroke-width: 1.2; }
.dg-terrasse { fill: var(--a-base-r); stroke: var(--ink); stroke-width: 1; }
.dg-cave { fill: var(--a-ext-l); stroke: var(--ink); stroke-width: 1.4; }
.dg-proj { stroke: var(--ocre); stroke-width: 1.2; stroke-dasharray: 3 3; }
.dg-emprise { stroke: var(--ocre); stroke-width: 3; }
.dg-t { font-size: 15px; font-weight: 620; fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; stroke-linejoin: round; }
.dg-t-s { font-size: 13px; fill: var(--ocre-ink); }
.dg-t-e { fill: var(--ocre-ink); }
.dg-t-o { fill: var(--outremer); }
.dg-mk circle { fill: var(--ink); stroke: var(--sheet); stroke-width: 2; }
.dg-mk text { fill: var(--sheet); font-size: 13px; font-weight: 700; text-anchor: middle; }
.dg-city { fill: var(--a-garden); }
.dg-road { fill: none; stroke: var(--a-street); stroke-width: 22; }
.dg-500 { fill: var(--outremer-wash); fill-opacity: 0.55; stroke: var(--outremer); stroke-width: 1.6; stroke-dasharray: 7 5; }
.dg-blk { fill: var(--a-base-l); stroke: var(--ink-2); stroke-width: 1; }
.dg-blk-tall { fill: var(--a-base-r); 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(--sheet); stroke: var(--ink); stroke-width: 1.4; }
.dg-house.dg-in { fill: var(--a-ext-t); }
.dg-sight { stroke: var(--outremer); stroke-width: 1.6; stroke-dasharray: 2 4; }
.dg-sight-x { stroke: var(--ink-2); }
.dg-x { stroke: var(--warn); stroke-width: 2.4; }
.dg-eye { fill: var(--outremer); }
.dg-river { fill: var(--a-water); }
.dg-water { fill: var(--a-water); fill-opacity: 0.45; }
.dg-cote { stroke: var(--outremer); stroke-width: 2; stroke-dasharray: 9 5; }
.dg-low2 { fill: var(--a-base-l); }
.dg-cuvelage { fill: var(--a-base-r); 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.45rem 1.2rem; }
.dg-legende li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.5rem; font-size: 0.9rem; line-height: 1.45; }
.dg-legende .n { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ink); color: var(--sheet); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 0.75rem; margin-top: 0.1rem; }

/* Pied de page ------------------------------------------------------------ */
.site-footer { padding-block: 2.5rem 2rem; color: var(--ink-2); font-size: var(--s-sm); }
.site-footer .wrap { display: grid; gap: 1.5rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.foot-grid h2 { font-size: 0.95rem; font-stretch: 95%; margin-bottom: 0.5rem; color: var(--ink); }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.foot-grid a { color: var(--ink-2); }
.foot-legal { border-top: 1px solid var(--rule); padding-top: 1rem; font-size: 0.85rem; line-height: 1.5; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* Pages légales ----------------------------------------------------------- */
.plain { border-bottom: 1px solid var(--rule); }
.plain > .wrap { padding-block: clamp(2rem, 5vw, 3.75rem); }
.legal h2 { font-size: var(--s-md); font-stretch: 105%; margin-top: 1.5rem; }
.legal h3 { font-size: 1.05rem; margin-top: 0.75rem; }
.legal p, .legal li { font-size: var(--s-sm); }
.legal dl { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 0.4rem 1rem; font-size: var(--s-sm); }
.legal dt { font-family: var(--f-display); font-weight: 600; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: minmax(0, 1fr); } .legal dd { margin-bottom: 0.4rem; } }
.form-type { border: 1px dashed var(--rule-strong); padding: 1rem 1.1rem; font-size: var(--s-sm); display: grid; gap: 0.5rem; }
.preview-band { margin: 0; padding: 0.5rem max(16px, env(safe-area-inset-left, 0px)); background: var(--wash); color: var(--ink); font-family: var(--f-display); font-size: 0.85rem; text-align: center; border-bottom: 1px solid var(--rule); }

/* Lexique ----------------------------------------------------------------- */
.lexique { display: grid; gap: 0; border-top: 1.5px solid var(--rule-strong); max-width: 56rem; }
.lexique > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0.4rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.lexique dt { font-family: var(--f-display); font-weight: 650; font-size: 1.02rem; }
.lexique dd { margin: 0; font-size: var(--s-sm); display: grid; gap: 0.4rem; }
.lexique > div:target { background: var(--wash); }
@media (max-width: 640px) { .lexique > div { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .actions, .cartouche, .map-side, .wizard .wz-q { display: none; } body { background: #fff; color: #000; } .axo .seq { opacity: 1 !important; transform: none !important; } }

/* Carte : compléments */
.map .hatch-ac1 { stroke: var(--outremer); stroke-width: 5; opacity: 0.55; }
.map .hatch-ac2 { stroke: var(--ok); stroke-width: 5; opacity: 0.5; }
.map-legend-zones .mz-U1 { background: #c9a7a0; } .map-legend-zones .mz-U2 { background: #d8c49a; } .map-legend-zones .mz-U3 { background: #e7dcb4; }
.map-legend-zones .mz-U4 { background: #b8c7d6; } .map-legend-zones .mz-U5 { background: #b5b9c4; } .map-legend-zones .mz-U6 { background: #c6d2bc; }
.map-legend-zones .mz-Np { background: #a9c69d; } .map-legend-zones .mz-Ns { background: #9fc0d2; }
.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-info ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.map-info li { display: grid; gap: 0.05rem; }
.map-info .tagline { font-family: var(--f-display); font-size: 0.8rem; font-weight: 620; color: var(--ink-2); }

/* Schémas : textes lisibles sur téléphone */
@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; }
}
