/* ════════════════════════════════════════════════════════════════════
   Pages annexes (arrondissements, guides, pages simples) dans le langage de l'accueil (DESIGN.md).
   Couleurs : uniquement des variables. Mouvement : transform et opacity, 160 à 260 ms, rien au clavier.
   ════════════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo Repli'; src: local('Arial'); size-adjust: 103%; ascent-override: 86%; descent-override: 21%; line-gap-override: 0%; }

:root {
  --blue: #2B9FFF; --blue-h: #0A85E8; --blue-d: #004E9A; --blue-s: #EAF4FF; --blue-xs: #F4F9FF;
  --night: #0E4F8C; --night-2: #083468; --night-3: #083060; --deep: #062448;
  --ink: #07142A; --ink2: #1A2E45; --slate: #3A5068; --mist: #7B93AA; --ghost: #B8CAD8;
  --white: #FFFFFF; --bg: #F5F8FC; --gold: #F0A500; --gold-l: #FFD166; --gold-ink: #7A5200; --gold-soft: #FFE7A6;
  --line: rgba(7, 20, 42, .12); --line-2: rgba(7, 20, 42, .22); --line-d: rgba(255, 255, 255, .14); --line-d2: rgba(255, 255, 255, .28);
  --on-dark: rgba(255, 255, 255, .86); --on-dark-2: rgba(255, 255, 255, .7);
  --drop-50: rgba(0, 0, 0, .5); --shadow: rgba(7, 20, 42, .10);
  --t1: #DCEBFA; --t2: #A9CDF0; --t3: #5E9BD6; --t4: #1F5FA3; --t5: #0B2F5E;
  --whatsapp: #25D366;
  --f-text: 'Archivo', 'Archivo Repli', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-h: 76px; --mbar-h: 0px; --gut: max(16px, env(safe-area-inset-left, 0px)); --focus: var(--blue-h);
  color-scheme: light;
}
@media (max-width: 820px) { :root { --nav-h: 68px; --mbar-h: 60px; } }

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

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

/* ─── haut de page ─── */
.ph { background: var(--bg); border-bottom: 1px solid var(--line); padding: calc(var(--nav-h) + 20px) 0 36px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13.5px; color: var(--slate); margin-bottom: 18px; }   /* 10/11/2026 : align-items, la page en cours et les « / » étaient 4 px plus haut que les liens */
.crumbs a { color: var(--slate); text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--ghost); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ph h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 640; letter-spacing: -.03em; }
.ph-sub { margin-top: 10px; color: var(--slate); font-size: 15px; font-variant-numeric: tabular-nums; }
.ph-lead { margin-top: 18px; max-width: 60ch; font-size: 17.5px; color: var(--ink2); }
.ph-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.ph-tel { font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid var(--line-2); }
.ph-tel:hover { border-color: var(--ink); }
.ph-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; color: var(--slate); font-size: 14px; }

/* chiffres clés */
.kf { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px -30px var(--shadow); }
.kf-i { background: var(--white); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.kf-l { font-size: 13.5px; color: var(--slate); line-height: 1.35; }
.kf-v { font-size: clamp(24px, 2.3vw, 30px); font-weight: 640; letter-spacing: -.02em; line-height: 1.1; }
.kf-sub { font-size: 13.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.kf-s { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--slate); }

/* ─── corps avec sommaire ─── */
.pg { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 64px; }
.toc { position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; font-size: 14.5px; }
.toc-h { font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--gold); font-weight: 600; }
.toc-cta { margin-top: 22px; }
.toc-cta .btn { width: 100%; min-height: 44px; font-size: 15px; padding: 0 14px; }
.toc .toc-cta .btn { display: inline-flex; margin: 0; padding: 0 14px; border: 0; color: var(--white); font-weight: 600; }   /* « .toc a » le rendait gris sur fond nuit */
.pg-body { min-width: 0; max-width: 820px; }
.sec { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; margin-bottom: 0; }
.sec h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 14px; }
.sec > p { max-width: 68ch; color: var(--ink2); margin-top: 12px; }
.sec > p:first-of-type { margin-top: 0; }
.src { margin-top: 14px; font-size: 13px; color: var(--slate); max-width: 72ch; }
.src a { color: var(--slate); text-underline-offset: 2px; }
.src a:hover { color: var(--ink); }
.note { margin-top: 10px; font-size: 14.5px; color: var(--slate); }

/* tableaux de données */
.tbl { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: 12.5px; font-weight: 600; color: var(--slate); background: var(--bg); white-space: nowrap; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody th { font-weight: 600; }
.tbl .num, .tbl td { font-variant-numeric: tabular-nums; }
.tbl td.num { white-space: nowrap; }

/* graphique */
.fig { margin: 18px 0 0; padding: 16px 12px 8px; border: 1px solid var(--line); border-radius: 8px; }
.chart { width: 100%; height: auto; }
.chart .bar rect { fill: var(--t3); }
.chart .bar--off rect { fill: var(--night); }
.chart .bar-v { font: 600 13px var(--f-text); fill: var(--ink); text-anchor: middle; font-variant-numeric: tabular-nums; }
.chart .bar-l { font: 400 12px var(--f-text); fill: var(--slate); text-anchor: middle; }

/* appel au milieu */
.cta-in { margin: 0 0 44px; padding: 24px; border-radius: 10px; background: var(--ink); color: var(--white); display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; --focus: var(--gold-l); }
.cta-in-t { font-size: 20px; font-weight: 620; letter-spacing: -.015em; line-height: 1.25; }
.cta-in p:not(.cta-in-t) { color: var(--on-dark-2); font-size: 15.5px; grid-column: 1; }
.art .cta-in .cta-in-t { color: var(--white); } .art .cta-in p:not(.cta-in-t) { color: var(--on-dark-2); }   /* « .art p » les rendait foncés sur fond nuit */
.cta-in .btn { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }

/* lignes de transport, puces */
.lines { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.lines li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: baseline; }
.line { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 6px; border-radius: 6px; font-weight: 700; font-size: 13.5px; color: var(--white); background: var(--night); }
.line--t { background: var(--blue-d); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14.5px; }

/* questions fréquentes */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 14px 0; font-weight: 600; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 1.6px solid var(--slate); border-bottom: 1.6px solid var(--slate); transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease-out); }
.qa[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa > p, .qa > div { padding: 0 0 18px; color: var(--ink2); max-width: 68ch; }

/* bandeau final */
.cta-band { background: linear-gradient(180deg, var(--night-3) 0%, var(--deep) 100%); color: var(--white); padding: 56px 0; --focus: var(--gold-l); }
.cta-band h2 { font-size: clamp(26px, 2.6vw, 36px); max-width: 24ch; }
.cta-band p { margin-top: 12px; color: var(--on-dark-2); max-width: 60ch; }
.cta-band-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* liens de fin */
.more { padding: 48px 0 56px; background: var(--bg); border-top: 1px solid var(--line); }
.more-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.more h2 { margin-bottom: 14px; }
.links { list-style: none; display: grid; gap: 2px; }
.links a { display: inline-flex; min-height: 40px; align-items: center; color: var(--ink); text-underline-offset: 3px; }
.arrs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.arrs a { display: flex; gap: 8px; align-items: baseline; min-height: 40px; padding: 8px 0; text-decoration: none; color: var(--slate); font-size: 14.5px; border-bottom: 1px solid var(--line); }
.arrs a b { color: var(--ink); min-width: 34px; font-weight: 600; }
.arrs a:hover { color: var(--ink); }
.arrs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.arrs a[aria-current="page"] b { color: var(--gold-ink); }

/* ─── guides : gabarit de lecture ─── */
.ph--guide .ph-grid { grid-template-columns: minmax(0, 1fr); }
.ph--guide h1 { max-width: 24ch; }
.ph-kicker { color: var(--slate); font-size: 14px; }
.art { font-size: 18px; line-height: 1.62; }
.art > * + * { margin-top: 18px; }
.art h2 { font-size: clamp(24px, 2.3vw, 30px); margin-top: 48px; padding-top: 4px; }
.art h3 { font-size: 21px; margin-top: 32px; }
.art h4 { font-size: 18px; margin-top: 24px; }
.art p, .art li { max-width: 68ch; color: var(--ink2); }
.art ul, .art ol { padding-left: 1.2em; display: grid; gap: 8px; }
.art li::marker { color: var(--slate); }
.art strong, .art b { color: var(--ink); font-weight: 620; }
.art a { color: var(--blue-d); text-underline-offset: 3px; }
.art a:hover { color: var(--ink); }
/* cibles tactiles d'au moins 24 px (WCAG 2.5.8, passe 10) : zone de clic agrandie sans changer la mise en page */
.art li > a:not(.btn), .art p > a:not(.btn), .art div > a:not(.btn) { padding-block: 3px; }
.art th > a { display: inline-block; min-width: 24px; padding-block: 4px; }
.art .tbl { font-size: 15px; }
.art blockquote, .art .box { margin-left: 0; margin-right: 0; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; max-width: 72ch; }
.art .box > * + * { margin-top: 10px; }
.art .box-t { font-weight: 620; color: var(--ink); }
.art .cta-in { margin: 36px 0; }
.art hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.related { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; padding: 0; }
.related a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--white); transition: border-color 200ms; }
.related a:hover { border-color: var(--ink); }
.related .rel-c { font-size: 12.5px; color: var(--slate); }
.related .rel-t { font-weight: 600; line-height: 1.3; color: var(--ink); }

/* ─── pages simples (mentions, confidentialité, merci) ─── */
.simple { padding: calc(var(--nav-h) + 32px) 0 64px; }
.simple .art { max-width: 760px; }

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

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

/* ─── écrans moyens et mobiles ─── */
@media (max-width: 1080px) {
  .pg { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .toc { position: sticky; top: var(--nav-h); z-index: 30; margin: 0 calc(-1 * max(var(--gut), min(48px, 4vw))); padding: 8px max(var(--gut), min(48px, 4vw)); background: var(--white); border-bottom: 1px solid var(--line); }
  .toc-h, .toc-cta { display: none; }
  .toc ol { display: flex; gap: 6px; overflow-x: auto; border: 0; scrollbar-width: none; scroll-snap-type: x proximity; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc li { flex: none; scroll-snap-align: start; }
  .toc a { border: 1px solid var(--line-2); border-radius: 999px; padding: 0 14px; min-height: 40px; display: flex; align-items: center; white-space: nowrap; margin: 0; }
  .toc a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
  .pg-body { padding-top: 32px; }
  .ph-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .mbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.25fr; height: calc(var(--mbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--white); border-top: 1px solid var(--line); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--ink); }
  .mbar .mbar-estim { background: var(--gold-l); }
  body { padding-bottom: 0; }
  .more-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .ph { padding-bottom: 28px; }
  .ph-lead { font-size: 16.5px; }
  .ph-cta .btn { width: 100%; }
  .kf-i { padding: 14px 14px 12px; }
  .kf-v { font-size: 22px; }
  .cta-in { grid-template-columns: 1fr; padding: 20px; }
  .cta-in .btn { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
  .tbl th, .tbl td { padding: 10px 12px; }
  .art { font-size: 17px; }
  .related { grid-template-columns: 1fr; }
  .arrs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col a, .footer-link, .footer-col li:not(:has(a, button)) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; } }

/* guides : compléments */
.ph-cta-note { color: var(--slate); font-size: 14.5px; }
.g-sec + .g-sec { margin-top: 8px; }
.art .g-sec > h2:first-child { margin-top: 40px; }
.art .g-sec:first-child > h2:first-child { margin-top: 0; }
.art .src { margin-top: 8px; }
.art .srcs { font-size: 15px; }
.art .srcs a { color: var(--blue-d); }
.tbl tr.tot > * { background: var(--bg); font-weight: 600; }
.tbl a { color: var(--ink); text-underline-offset: 3px; }
.art ul.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.art ul.cards li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 15.5px; }

/* pages simples : mentions, confidentialité, merci */
.simple .art h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 640; letter-spacing: -.03em; margin-bottom: 8px; }
.simple .art section + section, .simple .art div + section { margin-top: 28px; }
.simple .art h2 { margin-top: 36px; }
.merci-ref { color: var(--slate); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.merci-range { margin-top: 24px; }
.merci-vals { font-size: clamp(26px, 3vw, 36px); font-weight: 640; letter-spacing: -.02em; color: var(--ink); }
.merci-mid { font-variant-numeric: tabular-nums; }

/* page « Tous les guides » et page 404 (passe 9) */
.ph-lead { max-width: 60ch; margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--ink2); }
.hub { padding: 40px 20px 64px; display: grid; gap: 44px; }
.hub-g h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 620; letter-spacing: -.02em; }
.related--hub .rel-c { font-size: 14px; line-height: 1.45; }
.p404 h2 { margin-top: 32px; font-size: 20px; }
.p404 .ph-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.p404-arr { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-top: 12px; }
.p404-arr a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .related--hub { grid-template-columns: 1fr; } }
.art.p404 .ph-cta .btn { text-decoration: none; } .art.p404 .ph-cta .btn--gold { color: var(--ink); } .art.p404 .ph-cta .btn--ink { color: var(--white); }
.art ul.p404-arr { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; } .art ul.p404-arr li { margin: 0; padding: 0; } .art ul.p404-arr li::before { content: none; }

/* page À propos (passe 9 bis) */
.ap-head { display: flex; gap: 22px; align-items: flex-start; }
.ap-av { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-l); font-weight: 700; font-size: 24px; margin-top: 8px; }
.ph .ph-cta .btn--line { margin-left: 4px; }
.pg-ap { padding: 40px 20px 64px; }
.pg-ap .art h2 { margin-top: 32px; }
@media (max-width: 600px) { .ap-head { flex-direction: column; gap: 10px; } .ap-av { width: 56px; height: 56px; font-size: 19px; } }

/* bandeau photo des pages arrondissement (passe 9 quater) : une photo, crédit discret */
.arr-photo { position: relative; margin: 28px 0 0; border-radius: 10px; overflow: hidden; background: var(--bg); }
.arr-photo img { display: block; width: 100%; height: clamp(170px, 24vw, 320px); object-fit: cover; }
.arr-credit { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; flex-direction: row-reverse; }
.arr-credit-btn { width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; background: rgba(7, 20, 42, .45); color: rgba(255, 255, 255, .9); font: 600 12px/24px Georgia, serif; font-style: italic; cursor: pointer; }
.arr-credit-btn:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.arr-credit-txt { padding: 4px 8px; border-radius: 4px; background: rgba(7, 20, 42, .78); color: #fff; font-size: 12px; line-height: 1.35; }
.arr-credit-txt a { color: #fff; }
@media (hover: hover) and (pointer: fine) { .arr-credit:hover .arr-credit-txt[hidden] { display: inline; } }

/* ── Schémas des guides (passe 10, guides_schemas.py) ── */
.chart, .schema-calc { margin: 26px 0 8px; padding: 20px 20px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.chart-t { font-family: var(--f-text); font-weight: 600; font-size: 15px; color: var(--ink); }
.art .chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 4px; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink2); }
.art .chart-legend li { display: flex; align-items: center; gap: 8px; margin: 0; }
.chart-legend .sw { width: 16px; height: 3px; border-radius: 2px; }
.chart-box { position: relative; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart-svg:focus-visible { outline: 2px solid var(--blue-d); outline-offset: 4px; border-radius: 4px; }
.chart-svg .g { stroke: #E3E9F0; stroke-width: 1; }
.chart-svg .ax { font: 500 12px var(--f-text); fill: #566B80; }
.chart-svg .ax--b { font-weight: 700; fill: var(--ink2); }
.chart-svg .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .dot { stroke: var(--white); stroke-width: 2; }
.chart-svg .lab { font: 600 12.5px var(--f-text); fill: var(--ink2); paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }
.chart-svg .xh { stroke: var(--ink2); stroke-width: 1; opacity: .35; }
.chart-tip { position: absolute; top: 0; z-index: 2; min-width: 190px; padding: 8px 10px; background: var(--ink); color: var(--white); border-radius: 6px; font-size: 13px; line-height: 1.45; pointer-events: none; box-shadow: 0 6px 18px rgba(7, 20, 42, .18); }
.chart-tip b { color: var(--white); display: block; font-weight: 600; }
.chart-tip i { display: inline-block; width: 10px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.chart-tab { margin-top: 10px; font-size: 14px; }
.chart-tab summary { min-height: 24px; color: var(--blue-d); cursor: pointer; }
.chart-tab table { margin-top: 10px; }
.art .schema-calc ol { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: none; }
.art .schema-calc li { display: grid; gap: 2px; margin: 0; padding: 10px 14px; border-left: 3px solid var(--blue-h); background: var(--blue-xs); border-radius: 0 6px 6px 0; }
.art .schema-calc li:nth-child(even) { border-left-color: var(--ink2); background: var(--bg); }
.schema-calc b { font-family: var(--f-text); font-weight: 650; font-size: 15.5px; color: var(--ink); }
.schema-calc span { font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.art .etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 8px; padding: 0; list-style: none; }
.art .etapes li { margin: 0; }
.art .etapes a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; height: 100%; align-content: start; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink2); }
.etapes a:hover { border-color: var(--line-2); }
.etapes-n { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--white); font: 650 13px var(--f-text); }
.etapes b { font-family: var(--f-text); font-weight: 650; font-size: 15px; color: var(--ink); }
.etapes a > span:last-child { font-size: 13.5px; line-height: 1.4; }
@media (max-width: 760px) { .art .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chart, .schema-calc { padding: 16px 12px 12px; }
  .chart-svg .ax { font-size: 19px; } .chart-svg .lab { font-size: 21px; } .chart-svg .ln { stroke-width: 3.5; } .chart-svg .xh { stroke-width: 2; } }   /* le dessin est réduit de moitié sur téléphone : texte lisible (≈ 10-11 px) */
@media (max-width: 420px) { .art .etapes { grid-template-columns: 1fr; } }

/* page de tous les quartiers (passe 10) : quartiers sans page, faute de ventes suffisantes */
.related--hub .q-sans span { display: block; padding: 12px 14px; color: var(--slate); font-size: 14.5px; }
.chips li a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
/* liens de quartier dans les pastilles des pages arrondissement (passe 10) : zone de toucher d'au moins 24 px */
.chips li > a { display: inline-block; padding-block: 4px; }

/* passe 13 (lot 4) : alerte de prix par e-mail (js/alerte-prix.js), désactivée par défaut : l'emplacement reste vide */
[data-alerte-prix]:empty { display: none; }
.alerte { display: grid; gap: 8px; margin: 28px 0; padding: 20px; border: 1px solid var(--line, #D8E2EC); border-radius: 10px; }
.alerte label { font-size: 14px; font-weight: 500; }
.alerte input[type=email], .alerte input[type=text] { min-height: 44px; padding: 8px 12px; border: 1px solid #9FB1C3; border-radius: 6px; font: inherit; }
.alerte-ok { display: flex; gap: 8px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; line-height: 1.45; }
.alerte-msg { min-height: 1.2em; margin: 0; font-size: 13.5px; scroll-margin-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom, 0px) + 16px); }   /* jamais sous la barre du bas (mobile) */
/* Passe 13 (lot 5) : bouton « gérer mes cookies » dans le texte des pages légales, présenté comme un lien */
.art .lien-bouton { display: inline; padding: 0; border: 0; background: none; font: inherit; color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.art .lien-bouton:hover { color: var(--ink); }

/* calculateurs de /outils/ (passe 17) : formulaire à gauche, résultat à droite, calcul en direct dans le navigateur */
.outil { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; padding-block: 40px 56px; }
.outil-form { display: grid; gap: 20px; margin: 0; }
.outil-champ { display: grid; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.outil-champ > label, .outil-champ > legend { padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.outil-aide { margin: 0; font-size: 14px; line-height: 1.45; color: var(--slate); }
.outil-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.outil-suffixe { position: relative; display: block; }
.outil-suffixe > span { position: absolute; inset: 0 14px 0 auto; display: flex; align-items: center; color: var(--slate); pointer-events: none; }
.outil-form input[type=text], .outil-form input[type=date] { width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; font-size: 17px; font-variant-numeric: tabular-nums; }
.outil-suffixe input { padding-right: 40px; }
.outil-form input:hover { border-color: var(--slate); }
.outil-form input:focus-visible, .outil-seg input:focus-visible + span, .outil-coche input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.outil-form input[aria-invalid=true] { border-color: var(--blue-d); }
.outil-err { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.outil-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.outil-seg label { position: relative; flex: 1 1 auto; cursor: pointer; }
.outil-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.outil-seg span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 15px; font-weight: 500; text-align: center; transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.outil-seg input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.outil-coche { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.outil-coche input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue-d); }
.outil-coche:has(input:disabled) { opacity: .5; cursor: default; }
.outil-res { position: sticky; top: calc(var(--nav-h) + 16px); padding: 26px; border-radius: 12px; background: var(--night-3); color: var(--white); }
.outil-res-t { margin: 0; font-size: 15px; font-weight: 500; color: var(--on-dark); }
.outil-res-v { margin: 4px 0 2px; font-size: clamp(38px, 4vw, 50px); font-weight: 640; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.outil-res-s { margin: 0 0 18px; font-size: 15px; color: var(--on-dark); }
.outil-res dl { display: grid; gap: 0; margin: 0 0 20px; }
.outil-res dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line-d); font-size: 15px; }
.outil-res dt { color: var(--on-dark); }
.outil-res dd { margin: 0; flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.outil-res .btn { width: 100%; justify-content: center; }
.outil-res-note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--on-dark-2); }
.outil-res-vide, .outil-res-msg:empty { display: none; }
.outil-res.is-vide .outil-res-vide { display: block; margin: 0; font-size: 16px; line-height: 1.5; color: var(--on-dark); }
.outil-res.is-vide > :not(.outil-res-vide) { display: none; }
.outil-res-msg { margin: 0 0 14px; font-weight: 600; }
.outil-res.is-exo [data-exo-cache] { display: none; }
[data-surfaces].is-vide { display: none; }
@media (max-width: 900px) {
  .outil { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 40px; }
  .outil-res { position: static; }
}
@media (max-width: 480px) { .outil-2 { grid-template-columns: minmax(0, 1fr); } }

/* simulateur de rendement locatif (09/11/2026, point 5) : mêmes champs et même panneau que les autres calculateurs ;
   carte des arrondissements du menu pour choisir d'un toucher, rendements brut et net en tête, puis le détail du loyer au revenu net */
.outil-form input[type=text]:not([data-euros]), .outil-select select { font-variant-numeric: tabular-nums; }
.outil-select { position: relative; display: block; }
.outil-select select { width: 100%; min-height: 50px; padding: 10px 40px 10px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.outil-select::after { content: ''; position: absolute; top: 50%; right: 16px; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate); transform: rotate(45deg); pointer-events: none; }
.outil-select select:hover { border-color: var(--slate); }
.outil-select select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.outil-aide a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 2px; }
.rd-form { gap: 28px; }
.rd-groupe { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rd-groupe + .rd-groupe { padding-top: 26px; border-top: 1px solid var(--line); }
.rd-groupe > legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.rd-groupe > legend + * { clear: left; }
.rd-arr { gap: 8px; }
.rd-hexes { max-width: 420px; margin: 6px 0 2px; }
.rd-hexes .sn-hex { cursor: pointer; }
.rd-hexes .sn-hex polygon { transition: stroke 140ms ease, stroke-width 140ms ease; }
.rd-hexes .sn-hex.is-on polygon { stroke: var(--sn-gold); stroke-width: 5; }
@media (hover: hover) and (pointer: fine) { .rd-hexes .sn-hex:hover polygon { stroke: var(--sn-gold); stroke-width: 4; } }
.rd-legende { margin-bottom: 6px; }
.rd-res { padding: 26px 26px 24px; }
.rd-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 6px; }
.rd-duo .outil-res-v { font-size: clamp(34px, 3.4vw, 44px); }
.rd-net { color: var(--gold-l, #FFC94D); }
.rd-res .outil-res-s { margin-bottom: 4px; }
.rd-h { margin: 22px 0 6px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }
.rd-res dl { margin-bottom: 0; }
.rd-res dl > div[hidden] { display: none; }
.rd-res .rd-total { font-weight: 650; }
.rd-res .rd-total dt { color: var(--white); }
.rd-res dd[data-signe=neg] { color: #FFB4A8; }
.rd-res .rd-note { margin-top: 8px; }
.rd-res .rd-hypo { margin: 16px 0 18px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .07); color: var(--on-dark); }
.rd-res .rd-hypo:empty { display: none; }
.rd-res .rd-hypo:empty + .btn { margin-top: 18px; }
.rd-marche { margin: 0 0 56px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.rd-marche[hidden] { display: none; }
.rd-marche h2 { margin: 0 0 14px; }
.rd-marche-g { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.rd-marche dl { margin: 0; }
.rd-marche dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rd-marche dt { color: var(--slate); }
.rd-marche dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.rd-pv { margin: 10px 0 0; font-size: 14px; color: var(--slate); text-align: right; }
.rd-pv:empty { display: none; }
.rd-src { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--slate); }
@media (min-height: 1000px) and (min-width: 901px) { .rd-res { position: sticky; } }
@media (max-height: 999px) { .outil--rendement .rd-res { position: static; } }
@media (max-width: 900px) { .rd-marche { margin-bottom: 40px; } .rd-marche-g { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .rd-duo { gap: 12px; } .rd-res { padding: 22px 18px; } .rd-marche { padding: 20px 18px; } .rd-marche dl > div { flex-direction: column; gap: 2px; } .rd-marche dd { text-align: left; } .rd-pv { text-align: left; } }

/* regard de terrain : trois temps qui respirent (05/11/2026) */
#terrain h3{margin:1.5em 0 .4em}
#terrain h2+h3{margin-top:.6em}
