/* Plans du Métro — feuille de style unique (design-system/plansdumetro/MASTER.md).
   Intention : la signalétique d'une station, lisible à trois mètres — noir, blanc
   et les couleurs des lignes. Mobile-first. Aucune autre feuille ni <style>,
   aucune police CDN (voir fonts.css), aucun script tiers. */

:root {
  --color-bg: #F4F5F7;
  --color-surface: #FFFFFF;
  --color-ink: #0B1220;
  --color-muted: #4B5563;
  --color-border: #DFE3EA;
  --color-primary: #0B1220;        /* le noir signalétique est la couleur d'action */
  --color-primary-hover: #1F2937;
  --color-primary-soft: #EAEDF2;
  --color-accent: #FFCD00;         /* jaune signalétique : une audace par écran, texte noir uniquement */
  --color-ink-deep: #0B1220;       /* hero sombre */
  --color-warn: #B54708;
  --color-warn-soft: #FFF4E5;
  --color-ok: #067647;
  --color-ok-soft: #ECFDF3;
  --color-danger: #B42318;
  --color-danger-soft: #FEF3F2;
  --color-focus: #0B1220;
  /* Palette de lignes (pastilles, schémas maison) */
  --line-1: #FFCD00;  /* jaune */
  --line-2: #003CA6;  /* bleu */
  --line-3: #E2231A;  /* rouge */
  --line-4: #00814F;  /* vert */
  --line-5: #FF7E2E;  /* orange */
  --line-6: #CF009E;  /* magenta */
  --line-7: #62259D;  /* violet */
  --line-8: #6EC4E8;  /* bleu clair */
  --line-9: #837902;  /* olive */
  --line-10: #704B1C; /* brun */
  --font-title: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-text: 'Barlow', 'Segoe UI', Arial, sans-serif;
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px; --s-6: 48px; --s-8: 64px;
  --r-card: 12px; --r-field: 8px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .06);
  --shell: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-ink);
  font-family: var(--font-text); font-size: 17px; line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-title); font-weight: 700; line-height: 1.08;
  text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; margin: 0 0 var(--s-2);
}
h1 { font-size: 40px; }
h2 { font-size: 30px; margin-top: var(--s-6); }
h3 { font-size: 23px; margin-top: var(--s-4); }
h4 { font-size: 19px; margin-top: var(--s-3); }
p, ul, ol { margin: 0 0 var(--s-2); }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 4px; }
small, .small { font-size: 14px; }
strong { font-weight: 600; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
th { font-family: var(--font-title); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; background: var(--color-ink); color: #fff; }
tbody th { background: var(--color-primary-soft); color: var(--color-ink); text-transform: none; letter-spacing: 0; font-family: var(--font-text); font-weight: 600; font-size: 16px; }
.table-wrap { overflow-x: auto; margin: var(--s-3) 0; border: 1px solid var(--color-border); border-radius: var(--r-card); background: var(--color-surface); }
.table-wrap table { margin: 0; min-width: 480px; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--s-5) 0; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.hero-dark :focus-visible, .site-footer :focus-visible, .station-sign:focus-visible { outline-color: var(--color-accent); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--color-ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--font-title); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); margin-bottom: var(--s-1); }
.lead { font-size: 20px; color: var(--color-muted); max-width: 68ch; }
.prose { max-width: 70ch; }
.muted { color: var(--color-muted); }

/* ---------- Layout ---------- */
.shell { width: min(100% - 2 * var(--s-2), var(--shell)); margin-inline: auto; }
.page-pad { padding-block: var(--s-4) var(--s-8); }
.grid { display: grid; gap: var(--s-2); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.two-col { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.sticky-aside { position: sticky; top: 80px; }

/* ---------- Bandeau d'indépendance ---------- */
.legal-banner {
  background: var(--color-surface); border-bottom: 1px solid var(--color-border);
  font-size: 14px; color: var(--color-muted); padding: 8px 0; text-align: center; margin: 0;
}
.legal-banner a { color: inherit; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 245, 247, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 18px -12px rgba(11, 18, 32, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-ink); font-family: var(--font-title); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
.brand svg { flex: none; }
.brand-text em { font-style: normal; color: var(--color-muted); font-weight: 600; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: var(--r-field); cursor: pointer; color: var(--color-ink); }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-nav li + li { margin-top: 0; }
.site-nav a { display: block; padding: 10px 12px; border-radius: var(--r-field); color: var(--color-ink); text-decoration: none; font-weight: 600; font-family: var(--font-title); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--color-ink); color: #fff; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 64px; background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: var(--s-2); box-shadow: 0 8px 24px rgba(11,18,32,.08); }
.site-nav .nav-cta { margin-top: var(--s-1); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; position: static; align-items: center; gap: var(--s-2); background: none; border: 0; padding: 0; box-shadow: none; }
  .site-nav ul { flex-direction: row; gap: 2px; }
  .site-nav .nav-cta { margin: 0 0 0 var(--s-1); }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-field);
  font-family: var(--font-title); font-weight: 700; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); color: #fff; transform: translateY(-1px); }
.btn--accent { background: var(--color-accent); color: var(--color-ink); }
.btn--accent:hover { background: #F5C400; color: var(--color-ink); transform: translateY(-1px); }
.btn--ghost { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-ink); }
.btn--ghost:hover { background: var(--color-ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 6px 14px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { transition: transform .18s ease; }
.btn:hover svg { transform: translateX(2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-3); }

/* ---------- Hero sombre + plan de lignes abstrait maison ---------- */
.hero-dark { background: var(--color-ink-deep); color: #fff; padding: var(--s-6) 0 var(--s-6); position: relative; overflow: hidden; }
.hero-dark .shell { position: relative; }
/* Lisibilité (revue DevOps 09/09) : un voile sombre derrière la colonne de texte, les tracés
   du plan restent visibles sur les bords et derrière les tuiles. */
.hero-dark .shell::before { content: ""; position: absolute; inset: -48px 34% -48px -22%; background: radial-gradient(ellipse at 30% 40%, rgba(11, 18, 32, .88) 0%, rgba(11, 18, 32, .6) 40%, rgba(11, 18, 32, 0) 68%); z-index: 0; pointer-events: none; }
.hero-dark .shell > * { position: relative; z-index: 1; }
.hero-dark .eyebrow { color: var(--color-accent); }
.hero-dark h1 { color: #fff; font-size: clamp(40px, 7vw, 76px); letter-spacing: .01em; max-width: 16ch; line-height: 1; }
.hero-dark h1 .mark { color: var(--color-accent); }
.hero-dark .lead { color: #C7CDD8; }
.hero-dark .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero-dark .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.hero-dark a:not(.btn) { color: #fff; }
.hero-note { margin-top: var(--s-2); font-size: 14px; color: #9AA3B2; max-width: 70ch; }
.metro-map { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
@media (max-width: 899px) { .metro-map { opacity: .45; } }
.metro-map__line { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: line-draw 2.2s cubic-bezier(.4, 0, .2, 1) forwards; }
.metro-map__line:nth-child(2) { animation-delay: .15s; }
.metro-map__line:nth-child(3) { animation-delay: .3s; }
.metro-map__line:nth-child(4) { animation-delay: .45s; }
.metro-map__line:nth-child(5) { animation-delay: .6s; }
.metro-map__line:nth-child(6) { animation-delay: .75s; }
.metro-map__station { fill: #fff; stroke: var(--color-ink-deep); stroke-width: 3; opacity: 0; animation: station-on .4s ease forwards; }
/* Wow 2 : les stations s'allument une à une (cascade 90 ms), le hub pulse trois fois puis se pose. */
.metro-map__station:nth-of-type(1) { animation-delay: 1.5s; }
.metro-map__station:nth-of-type(2) { animation-delay: 1.59s; }
.metro-map__station:nth-of-type(3) { animation-delay: 1.68s; }
.metro-map__station:nth-of-type(4) { animation-delay: 1.77s; }
.metro-map__station:nth-of-type(5) { animation-delay: 1.86s; }
.metro-map__station:nth-of-type(6) { animation-delay: 1.95s; }
.metro-map__station:nth-of-type(7) { animation-delay: 2.04s; }
.metro-map__station:nth-of-type(8) { animation-delay: 2.13s; }
.metro-map__station:nth-of-type(9) { animation-delay: 2.22s; }
.metro-map__station:nth-of-type(10) { animation-delay: 2.31s; }
.metro-map__hub { fill: #fff; stroke: var(--color-accent); stroke-width: 4; opacity: 0; animation: station-on .4s ease 2.4s forwards, hub-pulse 2.4s ease-in-out 2.9s 3; transform-origin: center; transform-box: fill-box; }
@keyframes line-draw { to { stroke-dashoffset: 0; } }
@keyframes station-on { to { opacity: 1; } }
@keyframes hub-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* Chiffres du hero (compteurs) */
.hero-stats { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: var(--s-2) var(--s-3); opacity: 0; transform: translateY(12px); animation: tile-in .45s cubic-bezier(.2, .7, .2, 1) forwards; }
.stat:nth-child(2) { animation-delay: .08s; }
.stat:nth-child(3) { animation-delay: .16s; }
.stat .lbl { display: block; font-family: var(--font-title); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 6px; }
.stat .big { display: block; font-family: var(--font-title); font-weight: 700; font-size: 44px; line-height: 1; color: #fff; min-width: 3ch; }
.stat p { margin: 8px 0 0; color: #C7CDD8; font-size: 15px; }
@keyframes tile-in { to { opacity: 1; transform: none; } }

/* ---------- Panneaux de station (villes) ---------- */
.stations { display: grid; gap: var(--s-2); margin: var(--s-3) 0; }
@media (min-width: 640px) { .stations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stations { grid-template-columns: repeat(4, 1fr); } }
.station-sign {
  --sign: var(--line-2);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 150px;
  background: var(--sign); color: #fff; border-radius: 14px; padding: var(--s-3) var(--s-3) var(--s-2);
  text-decoration: none; position: relative; overflow: hidden; box-shadow: inset 0 8px 0 rgba(255, 255, 255, .28), var(--shadow);
  transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease;
}
/* Wow 2 : la bande claire est une ombre interne ; ::before est le reflet qui suit le pointeur (--mx/--my posés par site.js). */
.station-sign::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .26), transparent 62%); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.station-sign::after { content: "→"; position: absolute; right: var(--s-3); top: var(--s-3); font-family: var(--font-title); font-weight: 700; font-size: 26px; color: #fff; opacity: 0; transform: translateX(-6px); transition: opacity .18s ease, transform .22s ease; }
.station-sign:hover, .station-sign:focus-visible { transform: translateY(-3px); box-shadow: inset 0 8px 0 rgba(255, 255, 255, .28), 0 14px 28px -16px rgba(11, 18, 32, .5); color: #fff; }
.station-sign:hover, .station-sign:focus-visible { box-shadow: inset 0 8px 0 rgba(255, 255, 255, .28), 0 20px 38px -16px color-mix(in srgb, var(--sign) 80%, #0B1220); }
.station-sign:hover::before, .station-sign:focus-visible::before { opacity: 1; }
.station-sign:hover::after, .station-sign:focus-visible::after { opacity: 1; transform: none; }
.station-sign .name { font-family: var(--font-title); font-weight: 700; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.station-sign .sub { font-size: 14px; color: rgba(255, 255, 255, .92); font-weight: 500; }
.station-sign .sub em { font-style: normal; opacity: .85; }
.station-sign--ink { --sign: var(--color-ink); }
.station-sign--ink .name { color: var(--color-accent); }

/* ---------- Pastilles de lignes & schéma maison ---------- */
.line-badge {
  /* --line est posé par le parent (<li style="--line:#…">) : ne pas le redéfinir ici,
     sinon la pastille perd la couleur officielle (revue DevOps 09/09). */
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 999px; background: var(--line, var(--color-ink)); color: #fff;
  font-family: var(--font-title); font-weight: 700; font-size: 19px; letter-spacing: 0; line-height: 1;
}
.line-badge--sq { border-radius: 8px; }
.line-badge--light { color: var(--color-ink); }
.line-badge--sm { width: 28px; height: 28px; font-size: 14px; }
.lines { list-style: none; margin: var(--s-3) 0; padding: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-card); overflow: hidden; }
.lines li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding: 12px var(--s-2); border-top: 1px solid var(--color-border); margin: 0; position: relative; }
.lines li:first-child { border-top: 0; }
.lines li::before { content: ""; position: absolute; left: calc(var(--s-2) + 18px); top: 0; bottom: 0; width: 4px; background: var(--line, var(--color-border)); opacity: .25; }
.lines li:first-child::before { top: 50%; }
.lines li:last-child::before { bottom: 50%; }
.lines .line-badge { position: relative; z-index: 1; }
.lines .route { font-weight: 600; }
.lines .route .term { font-family: var(--font-title); font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
.lines .route .arrow { color: var(--color-muted); padding: 0 6px; }
.lines .note { display: block; color: var(--color-muted); font-size: 15px; margin-top: 2px; }
.lines .last { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); margin-right: 6px; }

/* ---------- Fil d'Ariane en ligne de métro ---------- */
.breadcrumbs { font-size: 14px; color: var(--color-muted); margin: var(--s-2) 0 var(--s-3); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; margin: 0; }
.breadcrumbs li::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 999px; background: #fff; border: 3px solid var(--color-ink); margin-right: 8px; flex: none; }
.breadcrumbs li + li::after { content: none; }
.breadcrumbs li + li { margin-left: 8px; }
.breadcrumbs li + li::before { margin-left: 0; }
.breadcrumbs li:not(:last-child) a::after, .breadcrumbs li:not(:last-child) span::after { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--color-ink); margin-left: 8px; vertical-align: middle; }
.breadcrumbs li[aria-current="page"]::before { background: var(--color-accent); border-color: var(--color-ink); }
.breadcrumbs a { color: inherit; text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: var(--s-2); margin: var(--s-3) 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: block; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--r-card); padding: var(--s-3); color: var(--color-ink); text-decoration: none;
  box-shadow: var(--shadow); position: relative;
  transition: border-color .18s ease, transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease;
}
a.card:hover { border-color: var(--color-ink); transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(11, 18, 32, .28); }
a.card::after { content: "→"; position: absolute; right: var(--s-3); bottom: var(--s-2); font-family: var(--font-title); font-weight: 700; font-size: 22px; color: var(--color-ink); opacity: 0; transform: translateX(-6px); transition: opacity .18s ease, transform .22s ease; }
a.card:hover::after { opacity: 1; transform: none; }
.card h3 { margin-top: 0; font-size: 22px; }
.card p { margin-bottom: 0; color: var(--color-muted); font-size: 16px; }
.card-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--color-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--s-2); transition: background-color .18s ease, color .18s ease, transform .22s cubic-bezier(.2, 1.3, .3, 1); }
a.card:hover .card-icon { background: var(--color-accent); color: var(--color-ink); transform: rotate(-6deg) scale(1.06); }
.card-meta { margin-top: var(--s-2); font-size: 14px; color: var(--color-muted); }

/* ---------- Bento outils ---------- */
.bento { display: grid; gap: var(--s-2); margin: var(--s-3) 0; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .card--wide { grid-column: span 2; } }
.card--wide { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.card--wide h3 { font-size: 26px; color: #fff; }
.card--wide p { color: #C7CDD8; }
.card--wide .card-icon { background: var(--color-accent); color: var(--color-ink); }
a.card--wide::after { color: var(--color-accent); }
a.card--wide:hover { border-color: var(--color-accent); }
.card--wide .card-meta { color: var(--color-accent); }

/* ---------- AnswerBox / KeyFacts / Sources / Warning / Fresh ---------- */
.answer {
  background: var(--color-surface); position: relative;
  border-radius: 0 var(--r-card) var(--r-card) 0; padding: var(--s-2) var(--s-3) var(--s-2) calc(var(--s-3) + 6px); margin: var(--s-3) 0; box-shadow: var(--shadow);
}
/* Wow 2 : le filet noir est une ligne qui se trace de haut en bas, avec son terminus. */
.answer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--color-ink); border-radius: 3px 0 0 3px; }
.answer::after { content: ""; position: absolute; left: -3px; bottom: 14px; width: 12px; height: 12px; border-radius: 999px; background: #fff; border: 3px solid var(--color-ink); box-sizing: border-box; }
.answer .eyebrow { margin-bottom: 4px; }
.answer p { margin: 0; font-size: 19px; }
.answer p + p { margin-top: var(--s-1); }
.keyfacts { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-card); padding: var(--s-2) var(--s-3); margin: var(--s-3) 0; }
.keyfacts h2, .keyfacts h3 { margin-top: 0; font-size: 20px; }
.keyfacts ul { margin: 0; padding-left: 1.2em; }
.source-card { display: flex; gap: 12px; align-items: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-card); padding: var(--s-2); margin: var(--s-2) 0; font-size: 15px; }
.source-card svg { flex: none; color: var(--color-ink); margin-top: 2px; }
.source-card strong { font-family: var(--font-title); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; display: block; }
.source-card a { word-break: break-word; }
.source-card .fresh { margin-top: 6px; }
.warn-card { background: var(--color-warn-soft); border: 1px solid #F7D9B5; border-radius: var(--r-card); padding: var(--s-2) var(--s-3); margin: var(--s-3) 0; color: #7A2E0E; }
.warn-card strong { color: var(--color-warn); font-family: var(--font-title); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.warn-card p:last-child, .warn-card ul:last-child { margin-bottom: 0; }
.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; font-family: var(--font-title); letter-spacing: .06em; text-transform: uppercase; color: var(--color-ok); background: var(--color-ok-soft); border-radius: 999px; padding: 5px 11px; }
.fresh svg { flex: none; }
.fresh--warn { color: var(--color-warn); background: var(--color-warn-soft); }
.page-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 14px; color: var(--color-muted); margin: var(--s-1) 0 var(--s-3); }
.unverified { color: var(--color-warn); font-weight: 600; }

/* ---------- Affiliation ---------- */
.affiliate { background: var(--color-surface); border: 1px dashed var(--color-border); border-radius: var(--r-card); padding: var(--s-2) var(--s-3); margin: var(--s-3) 0; }
.affiliate .tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
.affiliate h3 { margin-top: 4px; font-size: 20px; }
.affiliate p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--color-border); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--color-border); }
.faq summary { cursor: pointer; font-family: var(--font-title); font-weight: 700; font-size: 20px; letter-spacing: .02em; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-ink); font-weight: 700; font-size: 24px; display: inline-block; transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin: 10px 0 0; color: var(--color-muted); }

/* ---------- Formulaires & outils ---------- */
.tool { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-card); padding: var(--s-3); margin: var(--s-3) 0; box-shadow: var(--shadow); }
.field { margin-bottom: var(--s-2); }
.field label, .field legend { display: block; font-family: var(--font-title); font-weight: 700; font-size: 18px; letter-spacing: .03em; margin-bottom: 6px; }
.field .help { display: block; font-size: 14px; color: var(--color-muted); margin-top: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field input[type="date"], .field select {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--color-ink);
  background: var(--color-surface); border: 1.5px solid #B9C0CC; border-radius: var(--r-field);
}
.field input:focus, .field select:focus { border-color: var(--color-ink); outline: 3px solid var(--color-focus); outline-offset: 1px; }
.field-row { display: grid; gap: var(--s-2); }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, 1fr); } }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; min-height: 44px; border: 1.5px solid var(--color-border); border-radius: var(--r-field); background: var(--color-surface); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--color-ink); background: var(--color-primary-soft); }
.choice input { margin-top: 4px; accent-color: var(--color-ink); width: 18px; height: 18px; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s-2); min-width: 0; }
.result { border-radius: var(--r-card); padding: var(--s-2) var(--s-3); margin-top: var(--s-3); border: 1px solid var(--color-border); background: var(--color-surface); }
.result[hidden] { display: none; }
.result:not([hidden]) { animation: result-in .38s cubic-bezier(.2, .9, .3, 1); }
@keyframes result-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.result h3 { margin-top: 0; }
.result--ok { border-color: #A6E3C0; background: var(--color-ok-soft); }
.result--check { border-color: #F7D9B5; background: var(--color-warn-soft); }
.result--no { border-color: #F4B3AE; background: var(--color-danger-soft); }
.result--unknown { background: var(--color-primary-soft); }
.result p:last-child { margin-bottom: 0; }
.result .calc { font-family: var(--font-text); font-size: 15px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.result .calc li { margin: 0; }
.editable { display: grid; gap: 8px; margin-top: var(--s-2); font-size: 15px; }
.editable label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.editable input { width: 110px; min-height: 40px; padding: 6px 10px; font: inherit; border: 1.5px solid #B9C0CC; border-radius: 6px; text-align: right; }
.progress { height: 8px; background: var(--color-border); border-radius: 999px; overflow: hidden; margin: var(--s-2) 0; }
.progress > span { display: block; height: 100%; background: var(--color-ink); width: 0; transition: width .25s ease; }
.error { color: var(--color-danger); font-size: 14px; margin-top: 6px; }
.options { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: grid; gap: 10px; }
.options li { margin: 0; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; padding: 12px; }
.options .mode { width: 38px; height: 38px; border-radius: 8px; background: var(--color-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.options .mode--best { background: var(--color-accent); color: var(--color-ink); }
.options strong { font-family: var(--font-title); font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
.options .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--color-muted); margin-top: 2px; }
.options .facts b { color: var(--color-ink); font-weight: 600; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-card); padding: var(--s-4); margin: var(--s-6) 0; }
.newsletter h2 { margin-top: 0; }
.newsletter__form { display: grid; gap: 10px; margin-top: var(--s-2); }
@media (min-width: 640px) { .newsletter__form { grid-template-columns: 1fr auto; align-items: end; } }
.newsletter__consent { grid-column: 1 / -1; font-size: 14px; color: var(--color-muted); display: flex; gap: 8px; align-items: flex-start; }

/* ---------- Auteur ---------- */
.author { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--color-muted); margin: var(--s-4) 0; padding-top: var(--s-2); border-top: 1px solid var(--color-border); }
.author strong { color: var(--color-ink); font-family: var(--font-title); font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Trust band ---------- */
.trust-band { display: grid; gap: var(--s-2); padding: var(--s-3) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.trust-band > div { display: flex; gap: 12px; align-items: flex-start; }
.trust-band svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--color-ink); color: #fff; }
.trust-band p { margin: 0; font-size: 15px; color: var(--color-muted); }
.trust-band strong { display: block; color: var(--color-ink); font-family: var(--font-title); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
@media (min-width: 640px) { .trust-band { grid-template-columns: repeat(3, 1fr); } }
.reveal-ready .trust-band > div { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.reveal-ready .trust-band.is-in > div { opacity: 1; transform: none; }
.reveal-ready .trust-band.is-in > div:nth-child(2) { transition-delay: .08s; }
.reveal-ready .trust-band.is-in > div:nth-child(3) { transition-delay: .16s; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--s-8); background: var(--color-ink); color: #C7CDD8; padding: var(--s-5) 0 var(--s-4); font-size: 15px; border-top: 8px solid var(--color-accent); }
.site-footer .container { width: min(100% - 2 * var(--s-2), var(--shell)); margin-inline: auto; }
.site-footer__notice { max-width: 80ch; margin: 0 0 var(--s-3); }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__legal li { margin: 0; }
.site-footer__legal a { color: #fff; }
.site-footer__brand { font-family: var(--font-title); font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-2); }
.site-footer__cities { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer__cities li { margin: 0; }
.site-footer__cities a { color: #fff; text-decoration: none; font-family: var(--font-title); font-size: 17px; letter-spacing: .05em; text-transform: uppercase; }
.site-footer__cities a:hover { color: var(--color-accent); }

/* ---------- Reveal au scroll ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease var(--reveal-delay, 0s), transform .5s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Consentement (CNIL) ---------- */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: var(--s-2) var(--s-3); box-shadow: 0 12px 32px rgba(11, 18, 32, .18); display: grid; gap: 12px; max-width: 640px; margin-inline: auto; }
.consent-banner[hidden] { display: none; }
.consent-texte { margin: 0; font-size: 15px; }
.consent-actions { display: flex; gap: 10px; }
.consent-btn { flex: 1; min-height: 44px; border-radius: 8px; border: 1.5px solid var(--color-ink); background: var(--color-surface); font: inherit; font-weight: 600; cursor: pointer; color: var(--color-ink); }
.consent-btn[data-consent-accept] { background: var(--color-ink); color: #fff; }

/* ---------- Mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .stat, .reveal-ready [data-reveal], .reveal-ready .trust-band > div { opacity: 1 !important; transform: none !important; }
  .metro-map__line { stroke-dashoffset: 0 !important; }
  .metro-map__station, .metro-map__hub { opacity: 1 !important; }
}
@media print {
  .site-header, .legal-banner, .newsletter, .btn, .nav-toggle, .consent-banner { display: none !important; }
  body { background: #fff; }
}

/* ---------- Fil d'Ariane sur hero sombre ---------- */
.breadcrumbs--dark { color: #C7CDD8; margin-top: 0; }
.breadcrumbs--dark li::before { border-color: #fff; background: var(--color-ink-deep); }
.breadcrumbs--dark li:not(:last-child) a::after, .breadcrumbs--dark li:not(:last-child) span::after { background: rgba(255, 255, 255, .6); }
.breadcrumbs--dark li[aria-current="page"]::before { background: var(--color-accent); border-color: var(--color-accent); }
.breadcrumbs--dark a { color: #fff; }

/* ---------- Wow 2 (CEO 09/09, ui-ux-pro-max) : rame, palettes, pastilles, compteurs, fil d'Ariane, barres ---------- */
/* (a) Une rame parcourt la ligne 1 du plan maison en boucle lente : point blanc cerclé de jaune + halo jaune.
   C'est la seule boucle infinie du hero (le hub ne pulse que trois fois). */
.metro-map__train { fill: #fff; stroke: var(--color-accent); stroke-width: 3; opacity: 0; offset-path: path("M -40 300 C 200 300, 260 120, 520 120 S 900 60, 1180 90"); offset-rotate: 0deg; animation: train-run 12s cubic-bezier(.45, .05, .55, .95) 2.6s infinite; }
.metro-map__train--halo { fill: var(--color-accent); stroke: none; fill-opacity: .32; }
@keyframes train-run { 0% { offset-distance: 0%; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* (b) Afficheur à palettes : site.js découpe le nom de la ville en lettres (.fl) qui claquent avant de se poser. */
.flaps { display: inline-flex; flex-wrap: wrap; gap: 2px; }
.fl { display: inline-block; min-width: .62em; text-align: center; padding: 2px 0; border-radius: 3px; background-color: rgba(0, 0, 0, .16); background-image: linear-gradient(to bottom, transparent 49%, rgba(0, 0, 0, .28) 49%, rgba(0, 0, 0, .28) 51%, transparent 51%); transform-origin: 50% 50%; backface-visibility: hidden; }
.fl--space { min-width: .3em; background: none; }
.fl.is-flip { animation: flap .11s ease-in-out; }
.fl.is-set { animation: flap-set .28s cubic-bezier(.2, 1.3, .3, 1); }
@keyframes flap { 0% { transform: rotateX(0); } 50% { transform: rotateX(-88deg); } 100% { transform: rotateX(0); } }
@keyframes flap-set { 0% { transform: rotateX(-88deg); } 100% { transform: rotateX(0); } }

/* (c) Schéma des lignes : les pastilles claquent en cascade (45 ms) et le filet vertical se trace de haut en bas
   dès que la liste entre à l'écran (reveal.js pose .is-in et --i sur chaque ligne). */
.reveal-ready .lines .line-badge { opacity: 0; transform: scale(.35); transition: opacity .3s ease, transform .5s cubic-bezier(.2, 1.4, .3, 1); transition-delay: calc(var(--i, 0) * 45ms); }
.reveal-ready .lines.is-in .line-badge { opacity: 1; transform: none; }
.reveal-ready .lines li::before { transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.4, 0, .2, 1); transition-delay: calc(var(--i, 0) * 45ms + 120ms); }
.reveal-ready .lines.is-in li::before { transform: none; }
.lines li { transition: background-color .18s ease; }
.lines li:hover { background: var(--color-primary-soft); }
.lines li:hover::before { opacity: .6; }

/* (d) Compteurs : chiffres tabulaires et largeur réservée, pas de saut de mise en page (site.js). */
[data-count], .stat .big { font-variant-numeric: tabular-nums; }

/* (e) Cartes : le reflet suit aussi le pointeur sur la tuile large noire des outils. */
a.card--wide { overflow: hidden; }
a.card--wide::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 205, 0, .18), transparent 62%); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
a.card--wide:hover::before { opacity: 1; }

/* (f) Fil d'Ariane : les stations apparaissent puis les segments se tracent (chargement) ; le point courant
   « vous êtes ici » pulse trois fois puis se tient. */
.breadcrumbs li::before { animation: bc-dot .35s cubic-bezier(.2, 1.3, .3, 1) both; }
.breadcrumbs li:nth-child(2)::before { animation-delay: .22s; }
.breadcrumbs li:nth-child(3)::before { animation-delay: .44s; }
.breadcrumbs li:nth-child(4)::before { animation-delay: .66s; }
.breadcrumbs li:not(:last-child) a::after, .breadcrumbs li:not(:last-child) span::after { transform: scaleX(0); transform-origin: left; animation: bc-seg .3s cubic-bezier(.4, 0, .2, 1) forwards; }
.breadcrumbs li:nth-child(1):not(:last-child) a::after { animation-delay: .08s; }
.breadcrumbs li:nth-child(2):not(:last-child) a::after { animation-delay: .3s; }
.breadcrumbs li:nth-child(3):not(:last-child) a::after { animation-delay: .52s; }
.breadcrumbs li[aria-current="page"]::before { animation: bc-dot .35s cubic-bezier(.2, 1.3, .3, 1) both, bc-pulse 1.8s ease-out 3; }
.breadcrumbs li:nth-child(2)[aria-current="page"]::before { animation-delay: .22s, .7s; }
.breadcrumbs li:nth-child(3)[aria-current="page"]::before { animation-delay: .44s, .9s; }
.breadcrumbs li:nth-child(4)[aria-current="page"]::before { animation-delay: .66s, 1.1s; }
@keyframes bc-dot { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bc-seg { to { transform: none; } }
@keyframes bc-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 205, 0, .65); } 100% { box-shadow: 0 0 0 10px rgba(255, 205, 0, 0); } }

/* (g) Outil « quel ticket » : barres de comparaison qui se remplissent, montant qui compte, pastille « recommandé » jaune sur noir. */
.compare { list-style: none; margin: var(--s-2) 0; padding: 0; display: grid; gap: 10px; }
.compare li { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; font-size: 15px; }
.compare__name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.compare__tag { font-family: var(--font-title); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--color-ink); color: var(--color-accent); padding: 4px 7px; border-radius: 999px; line-height: 1; }
.compare__amt { font-family: var(--font-title); font-weight: 700; font-size: 20px; text-align: right; min-width: 5ch; font-variant-numeric: tabular-nums; }
.compare__bar { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--color-primary-soft); overflow: hidden; }
.compare__fill { display: block; height: 100%; width: var(--w, 0%); background: var(--color-ink); border-radius: inherit; transition: width .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.compare .is-best .compare__fill { background: var(--color-accent); box-shadow: inset 0 0 0 2px var(--color-ink); }

/* (h) CTA jaune du hero : un reflet unique au chargement, puis la flèche avance au survol (.btn svg). */
.hero-dark .btn--accent { position: relative; overflow: hidden; }
.hero-dark .btn--accent::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 1.1s ease 1.8s 1; pointer-events: none; }
@keyframes sheen { to { transform: translateX(120%); } }

/* (i) Header : ombre au scroll (existant) + trait de lecture noir qui avance comme une rame (site.js pose --progress). */
.site-header::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: var(--progress, 0%); background: var(--color-ink); transition: width .12s linear; pointer-events: none; }

/* (j) Tableaux : la ligne recommandée (th[data-best]) s'allume quand le tableau entre à l'écran, avec sa pastille « Notre choix ». */
th[data-best]::after { content: attr(data-best); display: inline-block; margin-left: 8px; font-family: var(--font-title); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--color-ink); color: var(--color-accent); padding: 4px 7px; border-radius: 999px; line-height: 1; vertical-align: middle; white-space: nowrap; }
tr:has(th[data-best]) > th, tr:has(th[data-best]) > td { background: #FFF6CC; }
.reveal-ready .table-wrap tr:has(th[data-best]) > th { background: var(--color-primary-soft); transition: background-color .7s ease .3s; }
.reveal-ready .table-wrap tr:has(th[data-best]) > td { background: var(--color-surface); transition: background-color .7s ease .3s; }
.reveal-ready .table-wrap.is-in tr:has(th[data-best]) > th, .reveal-ready .table-wrap.is-in tr:has(th[data-best]) > td { background: #FFF6CC; }

/* (k) Réponse directe : le filet se trace de haut en bas, le terminus apparaît (reveal.js). */
.reveal-ready .answer::before { transform: scaleY(0); transform-origin: top; transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
.reveal-ready .answer::after { opacity: 0; transform: scale(.3); transition: opacity .25s ease .6s, transform .35s cubic-bezier(.2, 1.3, .3, 1) .6s; }
.reveal-ready .answer.is-in::before { transform: none; }
.reveal-ready .answer.is-in::after { opacity: 1; transform: none; }

/* Reduced motion (Wow 2) : tout en état final, rame posée sur la ligne, lettres en place, barres remplies. */
@media (prefers-reduced-motion: reduce) {
  .metro-map__train { opacity: 1 !important; offset-distance: 58%; }
  .reveal-ready .lines .line-badge, .reveal-ready .lines li::before, .reveal-ready .answer::before, .reveal-ready .answer::after,
  .breadcrumbs li::before, .breadcrumbs li:not(:last-child) a::after, .breadcrumbs li:not(:last-child) span::after { opacity: 1 !important; transform: none !important; }
  .reveal-ready .table-wrap tr:has(th[data-best]) > th, .reveal-ready .table-wrap tr:has(th[data-best]) > td { background: #FFF6CC !important; }
  .hero-dark .btn--accent::after { display: none; }
  .compare__fill { transition: none; }
}
