/* ==========================================================================
   monsport.fr — thème « LIGNE DE DÉPART » (lot Design, 2026-10-01)
   Éditorial sportif lumineux : papier clair, encre bleu nuit, accent volt, orange piste.
   Titres Barlow Condensed (capitales serrées), texte Inter. Motifs : couloirs de piste,
   arcs de terrain. Aucune image raster requise. Mobile-first (360 → 1440).

   FICHIERS : style.css = socle commun (CE fichier, lot Design). Les autres lots ajoutent
   LEUR css dans css/places.css, css/tools.css, css/sports.css (chargés après, si présents).
   Jamais de classes ad-, ads-, banner-, sponsored (EasyList) : préfixes card-, listing-, promo- à la place.

   MISE EN PAGE : <main class="site-main"> est PLEINE LARGEUR. Chaque template enchaîne :
     <?= sp_page_head([...]) ?>                          bandeau d'en-tête (pleine largeur)
     <div class="wrap page-body"> … </div>                contenu centré (gouttière 16 px)
     <section class="section-dark"><div class="wrap">…    bande sombre pleine largeur

   CLASSES GÉNÉRIQUES (réutilisables par tous les lots)
   Structure   .wrap .wrap-narrow .page-body .section .section-tight .section-dark .section-alt
               .section-head (.sh-txt .sh-title .sh-sub .sh-link) .eyebrow .lead .muted .center
               .layout-aside (contenu + colonne latérale ≥ 1024 px : > .main + > .aside)
   Grilles     .grid .grid-2 .grid-3 .grid-4 .grid-auto (min 260 px) .grid-auto-sm (min 180 px) .stack
   Boutons     .btn (+ .btn-volt .btn-orange .btn-dark .btn-light .btn-ghost .btn-sm .btn-lg .btn-block) .btn-row
   Cartes      .card .card-pad .card-dark .card-volt .card-link (survol) .card-title .card-kicker
               .card-feature (carte outil/plan : > .cf-ico .cf-title .cf-text .cf-go)
   Badges      .badges > .badge (+ .b-volt .b-ok .b-warn .b-dark .b-orange)
   Chips       .chips > li > a.chip (.is-active, .chip-n compteur) — via sp_chips()
   Tuiles      .rub-tiles.rt-lg|rt-md|rt-sm > li > a.rub-tile.fam-<famille> — via sp_rub_tiles()
   Lieux       .place-list (grille de .card-place) .card-place … — via sp_place_card()
   Texte       .prose (texte long) .text-flow .text-sec .text-h .text-num — via sp_render_text()
   Fil         .crumbs — via sp_crumbs() ; En-tête : .page-head .ph-dark|.ph-light — via sp_page_head()
   Tableaux    .table-wrap > table.table (.num = chiffres alignés à droite, .table-compact)
   Formulaires .form .field (> label, .hint) .input .select .textarea .field-row .form-actions
               .radio-cards (> label.radio-card > input + .rc-body > .rc-title .rc-sub) — quiz/outils
               .seg (contrôle segmenté) .range .result-box (> .rb-label .rb-value .rb-unit .rb-note)
   Notes       .note (+ .note-info .note-warn .note-volt) ; .source-line (sp_source)
   Stats       .stat-grid > .stat (> .stat-num .stat-label)
   Listes      .link-cols (liens en colonnes) .list-check .city-grid (> a) .az (index alphabétique)
   Pager       .pager (> a, .is-current, .pager-gap)
   Divers      .kpi .hl (surlignage volt) .num-tab .visually-hidden .nowrap .lanes-bg (motif couloirs)
               .map-box (conteneur de carte) .promo-slot (régie) .card-affil (affiliation)
   Familles    .fam-eau .fam-raquettes .fam-collectifs .fam-urbain .fam-forme .fam-nature .fam-precision
               → définissent --fam (couleur d'accent de la famille).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #F5F4EF;
  --paper-2: #ECEAE2;
  --paper-3: #E2DFD4;
  --card: #FFFFFF;
  --ink: #0F1B2D;
  --ink-2: #33415A;
  --ink-3: #5A6475;
  --line: #D8D4C8;
  --line-2: #C6C1B2;
  --navy: #0F1B2D;
  --navy-2: #182841;
  --navy-3: #22355A;
  --on-dark: #F5F4EF;
  --on-dark-2: #B9C2D3;
  --volt: #D7F23A;
  --volt-2: #C3DE22;
  --volt-soft: #F1FAC2;
  --orange: #FF5B24;
  --orange-ink: #B83A0B;       /* orange lisible sur papier (AA) */
  --orange-soft: #FFE6DB;
  --ok: #1E7A46;
  --ok-soft: #DDF2E5;
  --warn: #8A5A00;
  --warn-soft: #FFF0C7;
  /* --focus : 2026-10-07 — #FF5B24 ne donnait que 2,82:1 sur --paper (WCAG 1.4.11 exige 3:1
     pour un indicateur de focus). --orange-ink, deja le jeton "orange lisible sur papier" du
     theme, donne 5,23:1 sur --paper et 5,74:1 sur --card. Mesure : tmp/lot6-contrast.php. */
  --focus: #B83A0B;

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-text: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-lg: 22px; --r-pill: 999px;
  --sh-1: 0 1px 0 rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .06);
  --sh-2: 0 2px 0 rgba(15, 27, 45, .05), 0 10px 28px -12px rgba(15, 27, 45, .28);
  --sh-3: 0 18px 50px -20px rgba(15, 27, 45, .45);
  --gutter: 16px;
  --wrap: 1240px;
  --hdr-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* familles de rubriques */
  --fam-eau: #1F6FD6; --fam-raquettes: #678500; --fam-collectifs: #E2501C; --fam-urbain: #6E56CF;
  --fam-forme: #D23A6A; --fam-nature: #23885A; --fam-precision: #A87200;
}
@media (min-width: 720px) { :root { --gutter: 24px; --hdr-h: 70px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

.fam-eau { --fam: var(--fam-eau); } .fam-raquettes { --fam: var(--fam-raquettes); }
.fam-collectifs { --fam: var(--fam-collectifs); } .fam-urbain { --fam: var(--fam-urbain); }
.fam-forme { --fam: var(--fam-forme); } .fam-nature { --fam: var(--fam-nature); }
.fam-precision { --fam: var(--fam-precision); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--f-text); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong, b { font-weight: 700; }
hr { border: 0; height: 2px; background: var(--line); margin: 2rem 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.05; color: inherit; }
h1, h2, .display {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em;
}
h1 { font-size: clamp(2.3rem, 7.4vw, 4.4rem); line-height: .95; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1; }
h3 { font: 700 1.15rem/1.25 var(--f-text); letter-spacing: -.01em; }
h4 { font: 700 1rem/1.3 var(--f-text); }
small { font-size: .85em; }
::selection { background: var(--volt); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .site-header :focus-visible, .section-dark :focus-visible, .page-head.ph-dark :focus-visible, .site-footer :focus-visible { --focus: var(--volt); }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--volt); color: var(--ink); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.num-tab, .num { font-variant-numeric: tabular-nums; }
.hl { background: linear-gradient(transparent 58%, var(--volt) 58%, var(--volt) 92%, transparent 92%); padding: 0 .08em; color: inherit; }
.on-dark .hl, .section-dark .hl, .ph-dark .hl, .hero .hl { background: none; color: var(--volt); padding: 0; }

/* ---------- 3. Structure ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.page-body { padding-top: 28px; padding-bottom: 56px; }
@media (min-width: 720px) { .page-body { padding-top: 40px; padding-bottom: 80px; } }
.section { margin: 0 0 56px; }
.section-tight { margin-bottom: 32px; }
@media (min-width: 720px) { .section { margin-bottom: 80px; } }
.section-dark, .section-alt { padding: 48px 0; margin: 0 0 56px; }
@media (min-width: 720px) { .section-dark, .section-alt { padding: 72px 0; margin-bottom: 80px; } }
.section-dark {
  --focus: var(--volt);
  position: relative; background: var(--navy); color: var(--on-dark); overflow: hidden; isolation: isolate;
}
.section-dark::before {   /* couloirs de piste en fond */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(180deg, transparent 0 46px, rgba(245, 244, 239, .07) 46px 48px);
}
.section-dark a:not(.btn):not(.chip):not(.rub-tile):not(.card-feature) { color: var(--on-dark); text-decoration-color: var(--volt); }
.section-dark .muted, .section-dark .sh-sub { color: var(--on-dark-2); }
.section-alt { background: var(--paper-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em; margin: 0 0 .7rem;
  font: 700 .78rem/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--orange); border-radius: 2px; }
.section-dark .eyebrow, .ph-dark .eyebrow, .on-dark .eyebrow, .hero .eyebrow { color: var(--volt); }
.section-dark .eyebrow::before, .ph-dark .eyebrow::before, .on-dark .eyebrow::before, .hero .eyebrow::before { background: var(--volt); }
.lead { font-size: 1.12rem; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 720px) { .lead { font-size: 1.22rem; } }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.sh-txt { max-width: 720px; }
.sh-title { margin: 0; }
.sh-sub { margin: .6rem 0 0; color: var(--ink-3); max-width: 62ch; }
.sh-link {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--orange); padding-bottom: 2px; white-space: nowrap;
}
.sh-link .ico { transition: transform .2s var(--ease); }
.sh-link:hover .ico { transform: translateX(3px); }
.section-dark .sh-link { color: var(--volt); border-color: var(--volt); }

.layout-aside { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.layout-aside > * { min-width: 0; }   /* jamais de débordement mobile par le contenu (champ, titres longs) */
@media (min-width: 1024px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; } .layout-aside > .aside { position: sticky; top: calc(var(--hdr-h) + 16px); } }

/* ---------- 4. Grilles ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid { gap: 20px; } }
.grid-2 { grid-template-columns: 1fr; }
.grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.stack > * + * { margin-top: 16px; }

/* ---------- 5. Boutons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.25em; border: 2px solid var(--bd); border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); font: 700 .98rem/1.1 var(--f-text); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background-color .15s, color .15s, border-color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(15, 27, 45, .5); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn-volt { --bg: var(--volt); --fg: var(--ink); --bd: var(--volt); }
.btn-volt:hover { --bg: #E3FA5B; --bd: #E3FA5B; }
.btn-orange { --bg: var(--orange); --fg: var(--ink); --bd: var(--orange); }
.btn-orange:hover { --bg: #FF7446; --bd: #FF7446; }
.btn-dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-dark:hover { --bg: var(--navy-3); --bd: var(--navy-3); }
.btn-light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn-ghost:hover { --bd: var(--ink); --fg: var(--ink); box-shadow: none; }
.section-dark .btn-ghost, .ph-dark .btn-ghost, .on-dark .btn-ghost { --fg: var(--on-dark); --bd: rgba(245, 244, 239, .35); }
.section-dark .btn-ghost:hover, .ph-dark .btn-ghost:hover, .on-dark .btn-ghost:hover { --bd: var(--volt); --fg: var(--volt); }
.btn-sm { min-height: 38px; padding: .5em .95em; font-size: .88rem; }
.btn-lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row.center { justify-content: center; }
button { font: inherit; }

/* ---------- 6. Cartes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.card-pad, .card.pad { padding: 20px; }
@media (min-width: 720px) { .card-pad, .card.pad { padding: 26px; } }
.card-dark { background: var(--navy); color: var(--on-dark); border-color: var(--navy); --focus: var(--volt); }
.card-volt { background: var(--volt); border-color: var(--volt-2); color: var(--ink); }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.card-link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--ink); }
.card-kicker { font: 700 .74rem/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); margin: 0 0 .5rem; }
.card-title { font: 800 1.45rem/1 var(--f-display); text-transform: uppercase; margin: 0 0 .4rem; }

/* carte « fonction » (outil, plan, quiz) */
.card-feature {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s;
}
.card-feature::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.card-feature:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--ink); }
.card-feature:hover::after { transform: scaleX(1); }
.cf-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--volt); color: var(--ink); }
.cf-ico .ico { width: 26px; height: 26px; }
.cf-title { font: 800 1.35rem/1 var(--f-display); text-transform: uppercase; margin: 4px 0 0; }
.cf-text { margin: 0; color: var(--ink-3); font-size: .95rem; line-height: 1.5; }
.cf-go { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .92rem; }
.section-dark .card-feature { background: var(--navy-2); border-color: rgba(245, 244, 239, .12); color: var(--on-dark); }
.section-dark .card-feature:hover { border-color: var(--volt); color: var(--on-dark); }
.section-dark .cf-text { color: var(--on-dark-2); }
.section-dark .card-feature::after { background: var(--volt); }

/* ---------- 7. Badges & chips ---------- */
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: .35em; padding: .3em .65em; border-radius: var(--r-pill);
  font: 600 .78rem/1.2 var(--f-text); background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line);
}
.badge .ico { width: 1.1em; height: 1.1em; }
.badge.b-volt { background: var(--volt-soft); border-color: var(--volt-2); color: var(--ink); }
.badge.b-ok { background: var(--ok-soft); border-color: #A9D9BC; color: var(--ok); }
.badge.b-warn { background: var(--warn-soft); border-color: #F0D58A; color: var(--warn); }
.badge.b-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge.b-orange { background: var(--orange-soft); border-color: #FFC2A8; color: var(--orange-ink); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: .45em; min-height: 40px; padding: .45em .95em;
  border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--card);
  font: 600 .92rem/1.2 var(--f-text); color: var(--ink); text-decoration: none; transition: background-color .15s, border-color .15s, color .15s;
}
.chip .ico { width: 1.15em; height: 1.15em; color: var(--fam, var(--orange-ink)); }
a.chip:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
a.chip:hover .ico { color: var(--volt); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active .ico { color: var(--volt); }
.chip.is-static { cursor: default; }
.chip-n { font-weight: 700; font-size: .8em; padding: .15em .5em; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
a.chip:hover .chip-n, .chip.is-active .chip-n { background: var(--volt); color: var(--ink); }
.section-dark .chip, .ph-dark .chip, .hero .chip { background: transparent; border-color: rgba(245, 244, 239, .3); color: var(--on-dark); }
.section-dark .chip .ico, .ph-dark .chip .ico, .hero .chip .ico { color: var(--volt); }
.section-dark a.chip:hover, .ph-dark a.chip:hover, .hero a.chip:hover { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.section-dark a.chip:hover .ico, .ph-dark a.chip:hover .ico, .hero a.chip:hover .ico { color: var(--ink); }
.section-dark .chip-n, .ph-dark .chip-n { background: rgba(245, 244, 239, .12); color: var(--on-dark); }

/* ---------- 8. En-tête du site ---------- */
.site-header {
  --focus: var(--volt);
  position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--on-dark);
  border-bottom: 3px solid var(--volt);
}
.hdr { display: flex; align-items: center; gap: 16px; height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand:hover { color: inherit; }
.brand .logo-mark { border-radius: 11px; box-shadow: 0 0 0 1.5px rgba(245, 244, 239, .18); }
.brand-txt { font: 800 1.6rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.brand-txt b { color: var(--volt); font-weight: 800; margin-left: .08em; }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-near { min-height: 40px; }
@media (max-width: 380px) { .hdr-near span { display: none; } .hdr-near { padding: .5em .7em; } .brand-txt { font-size: 1.4rem; } }

.nav-toggle {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: transparent; color: var(--on-dark); border: 1.5px solid rgba(245, 244, 239, .28); cursor: pointer;
}
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle .nt-close { display: none; }
.nav-open .nav-toggle .nt-open { display: none; }
.nav-open .nav-toggle .nt-close { display: block; }

/* -- navigation : mobile = panneau plein écran -- */
.site-nav {
  position: fixed; left: 0; right: 0; top: var(--hdr-h); bottom: 0; z-index: 49;
  background: var(--navy); color: var(--on-dark); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--gutter) 32px; display: none; flex-direction: column;
  border-top: 1px solid rgba(245, 244, 239, .1);
}
.nav-open .site-nav { display: flex; }
.nav-open { overflow: hidden; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid rgba(245, 244, 239, .1); }
.nav-link, .nav-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px;
  padding: 16px 2px; background: none; border: 0; color: var(--on-dark); text-decoration: none; cursor: pointer;
  font: 800 1.7rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; text-align: left;
}
.nav-link:hover, .nav-btn:hover, .nav-link[aria-current] { color: var(--volt); }
.nav-caret { width: 22px; height: 22px; transition: transform .2s var(--ease); }
.nav-group.open .nav-caret { transform: rotate(180deg); }
.nav-drop { display: none; padding: 0 0 16px; }
.nav-group.open .nav-drop { display: block; }
.nd-rubs, .nd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nd-rubs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.nd-rubs a, .nd-list a {
  display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px;
  color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.nd-rubs a:hover, .nd-list a:hover, .nd-rubs a[aria-current], .nd-list a[aria-current] { background: rgba(245, 244, 239, .08); color: var(--volt); }
.nd-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(245, 244, 239, .08); color: var(--volt); flex: none; }
.nd-ico .ico { width: 20px; height: 20px; }
.nd-all { display: inline-flex; align-items: center; gap: .4em; margin: 10px 8px 0; color: var(--volt); font-weight: 700; text-decoration: none; }
.nd-all:hover { color: #fff; }
.nav-mobile-cta { padding-top: 24px; }
.nav-mobile-cta .btn { width: 100%; }

@media (min-width: 1140px) {
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center; background: none; padding: 0; overflow: visible; border: 0;
    margin-left: 12px;
  }
  .nav-open { overflow: auto; }
  .nav-toggle, .nav-mobile-cta { display: none !important; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link, .nav-btn {
    font: 600 .93rem/1 var(--f-text); text-transform: none; letter-spacing: 0; padding: 10px 11px; border-radius: 10px; width: auto;
  }
  .nav-link:hover, .nav-btn:hover, .nav-group.open .nav-btn { background: rgba(245, 244, 239, .08); }
  .nav-link[aria-current] { color: var(--volt); box-shadow: inset 0 -2px 0 var(--volt); border-radius: 10px 10px 0 0; }
  .nav-quiz { color: var(--volt); }
  .nav-caret { width: 16px; height: 16px; }
  .nav-drop {
    position: absolute; top: calc(100% + 10px); left: -8px; min-width: 300px; padding: 14px;
    background: var(--navy-2); border: 1px solid rgba(245, 244, 239, .12); border-radius: var(--r);
    box-shadow: var(--sh-3);
  }
  .nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .nav-drop-wide { width: 640px; }
  .nd-rubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop { display: block; }
}

/* ---------- 9. Fil d'Ariane ---------- */
.crumbs { font-size: .85rem; margin: 0 0 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; color: var(--ink-3); }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .55; }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--orange-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-3); }
.ph-dark .crumbs li, .ph-dark .crumbs [aria-current] { color: var(--on-dark-2); }
.ph-dark .crumbs a { color: var(--on-dark); }
.ph-dark .crumbs a:hover { color: var(--volt); }

/* ---------- 10. En-tête de page (sp_page_head) ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding: 22px 0 34px; }
@media (min-width: 720px) { .page-head { padding: 30px 0 52px; } }
.page-head.ph-dark { --focus: var(--volt); background: var(--navy); color: var(--on-dark); }
.page-head.ph-light { background: var(--paper-2); color: var(--ink); border-bottom: 2px solid var(--ink); }
.ph-lanes { position: absolute; right: -60px; top: 0; height: 100%; width: min(70%, 640px); z-index: -1; color: var(--volt); opacity: .22; }
.ph-light .ph-lanes { color: var(--orange); opacity: .28; }
.page-head::after {   /* ligne de départ en bas */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: -1;
  background: repeating-linear-gradient(90deg, var(--volt) 0 18px, transparent 18px 36px);
  opacity: .9;
}
.ph-light::after { background: repeating-linear-gradient(90deg, var(--ink) 0 18px, transparent 18px 36px); height: 4px; opacity: .25; }
.ph-main { display: flex; gap: 16px; align-items: flex-start; }
.ph-ico {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--volt); color: var(--ink); margin-top: 4px; transform: rotate(-4deg);
}
.ph-ico .ico { width: 32px; height: 32px; }
@media (min-width: 720px) { .ph-ico { width: 76px; height: 76px; border-radius: 20px; } .ph-ico .ico { width: 42px; height: 42px; } }
.ph-txt { min-width: 0; }
.ph-title { margin: 0; max-width: 18ch; overflow-wrap: anywhere; hyphens: auto; }
.ph-sub { margin: 14px 0 0; max-width: 62ch; font-size: 1.06rem; color: var(--on-dark-2); }
.ph-light .ph-sub { color: var(--ink-2); }
.ph-sub p:last-child { margin-bottom: 0; }
.ph-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 24px 0 0; }
.ph-stats > div { display: flex; flex-direction: column-reverse; }
.ph-stats dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--on-dark-2); }
.ph-light .ph-stats dt { color: var(--ink-3); }
.ph-stats dd { margin: 0; font: 800 2.2rem/1 var(--f-display); color: var(--volt); font-variant-numeric: tabular-nums; }
.ph-light .ph-stats dd { color: var(--ink); }
.ph-chips { margin-top: 22px; }
.ph-actions { margin-top: 22px; }

/* ---------- 11. Tuiles de rubriques (sp_rub_tiles) ---------- */
.rub-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .rub-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1040px) { .rub-tiles.rt-lg, .rub-tiles.rt-md { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rub-tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 132px;
  padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .18s var(--ease), box-shadow .18s, border-color .18s, background-color .18s;
}
.rub-tile::before {   /* bande de couloir colorée par famille */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--fam, var(--orange));
}
.rub-tile::after {   /* arc de terrain décoratif */
  content: ""; position: absolute; right: -38px; bottom: -38px; width: 110px; height: 110px; z-index: -1;
  border-radius: 50%; border: 2px solid var(--fam, var(--orange)); opacity: .16; box-shadow: 0 0 0 14px transparent, 0 0 0 16px color-mix(in srgb, var(--fam, var(--orange)) 16%, transparent);
}
.rub-tile:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--ink); }
.rt-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--fam, var(--orange)) 13%, #fff); color: var(--fam, var(--orange)); }
.rt-ico .ico { width: 27px; height: 27px; }
.rt-label { font: 800 1.28rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .005em; margin-top: 6px; overflow-wrap: anywhere; }
.rt-count { font-size: .84rem; color: var(--ink-3); margin-top: auto; }
.rt-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rt-go { position: absolute; right: 12px; top: 14px; color: var(--ink-3); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s var(--ease); }
.rub-tile:hover .rt-go { opacity: 1; transform: none; color: var(--fam, var(--orange)); }
.rt-lg .rub-tile { min-height: 168px; padding: 20px; }
@media (min-width: 720px) { .rt-lg .rt-label { font-size: 1.6rem; } .rt-lg .rt-ico { width: 56px; height: 56px; } .rt-lg .rt-ico .ico { width: 32px; height: 32px; } }
.rt-sm .rub-tile { min-height: 0; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
.rt-sm .rt-ico { width: 36px; height: 36px; border-radius: 10px; }
.rt-sm .rt-ico .ico { width: 21px; height: 21px; }
.rt-sm .rt-label { font-size: 1.05rem; margin: 0; }
.rt-sm .rt-count { margin: 0 0 0 auto; white-space: nowrap; }
.rt-sm .rt-go { display: none; }
.rt-sm .rub-tile::after { display: none; }
.section-dark .rub-tile { background: var(--navy-2); border-color: rgba(245, 244, 239, .12); color: var(--on-dark); }
.section-dark .rt-ico { background: rgba(245, 244, 239, .08); color: var(--volt); }
.section-dark .rt-count, .section-dark .rt-count b { color: var(--on-dark-2); }

/* ---------- 12. Fiche d'installation (sp_place_card) ---------- */
.place-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
@media (min-width: 720px) { .place-list { gap: 18px; } }
.card-place {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 18px 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-1); transition: box-shadow .18s, border-color .18s;
}
.card-place:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.card-place:target { outline: 3px solid var(--orange); outline-offset: 2px; }
.cp-top { display: flex; gap: 12px; align-items: flex-start; }
.cp-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--fam, var(--orange)) 13%, #fff); color: var(--fam, var(--orange)); }
.cp-ico .ico { width: 25px; height: 25px; }
.cp-rank {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: var(--volt); font: 800 1.5rem/1 var(--f-display); font-variant-numeric: tabular-nums;
}
.cp-head { min-width: 0; flex: 1; }
.cp-name { margin: 0; font: 700 1.08rem/1.25 var(--f-text); letter-spacing: -.01em; overflow-wrap: anywhere; }
.cp-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 4px 0 0; font-size: .88rem; color: var(--ink-3); }
.cp-city { display: inline-flex; align-items: center; gap: .25em; }
.cp-city .ico { width: 1em; height: 1em; color: var(--orange-ink); }
.cp-sep { margin: 0 .45em; }
.cp-dist { color: var(--ink); background: var(--volt); padding: .05em .45em; border-radius: var(--r-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-addr { margin: 0; font-size: .92rem; color: var(--ink-2); }
.cp-sum { margin: 0; font-size: .95rem; padding: 8px 12px; border-radius: var(--r-sm); background: var(--paper); border-left: 4px solid var(--ink); }
.cp-sum strong { font-weight: 800; }
.cp-eq { font-size: .88rem; border-top: 1px dashed var(--line-2); padding-top: 8px; }
.cp-eq summary {
  display: inline-flex; align-items: center; gap: .35em; cursor: pointer; font-weight: 700; color: var(--ink-2);
  list-style: none; padding: 4px 0; min-height: 32px;
}
.cp-eq summary::-webkit-details-marker { display: none; }
.cp-eq summary .ico { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.cp-eq[open] summary .ico { transform: rotate(180deg); }
.cp-eq summary:hover { color: var(--orange-ink); }
.cp-eq ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.cp-eq li { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: var(--r-xs); background: var(--paper); }
.eq-n { font-weight: 700; color: var(--ink); }
.eq-spec, .eq-fl { color: var(--ink-3); font-size: .84rem; }
.eq-fl { color: var(--ok); }
.cp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.cp-web { max-width: 100%; }
.cp-web-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 15ch; }
.cp-maj { margin: 0; font-size: .74rem; color: var(--ink-3); }

/* ---------- 13. Texte (prose + sp_render_text) ---------- */
.prose { max-width: 70ch; font-size: 1.04rem; }
.prose h2 { margin: 2.2rem 0 .8rem; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.prose h3 { margin: 1.6rem 0 .5rem; }
.prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose a { font-weight: 600; }
.prose > :first-child { margin-top: 0; }
.text-flow { max-width: 72ch; }
.text-flow + .text-flow, .place-list + .section-head { margin-top: 32px; }
.text-lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); }
.text-sec { position: relative; padding: 0 0 0 18px; margin: 0 0 1.6rem; border-left: 3px solid var(--line); }
.text-sec:hover { border-left-color: var(--orange); }
.text-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 .5rem; font-size: clamp(1.45rem, 3.6vw, 1.9rem); }
h3.text-h, h4.text-h { font: 800 1.35rem/1 var(--f-display); text-transform: uppercase; }
.text-num { font: 800 .95rem/1 var(--f-display); color: var(--ink); background: var(--volt); padding: .25em .45em; border-radius: var(--r-xs); letter-spacing: .04em; transform: translateY(-.2em); }
.text-sec p { color: var(--ink-2); }
.text-sec p:last-child { margin-bottom: 0; }

/* ---------- 14. Tableaux ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--ink); color: #fff; font: 700 .76rem/1.2 var(--f-text); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.table tbody tr:nth-child(even) { background: #FAF9F5; }
.table tbody tr:hover { background: var(--volt-soft); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table .num, .table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-compact th, .table-compact td { padding: 7px 10px; }
.table caption { caption-side: bottom; padding: 10px 14px; font-size: .84rem; color: var(--ink-3); text-align: left; }

/* ---------- 15. Formulaires ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field-label { font-weight: 700; font-size: .93rem; }
.hint { font-size: .84rem; color: var(--ink-3); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm);
  border: 2px solid var(--line-2); background: #fff; color: var(--ink); font: 500 1rem/1.3 var(--f-text);
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--volt); }
.select {
  padding-right: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1B2D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
}
.textarea { min-height: 120px; resize: vertical; }
.input[type="number"] { font-variant-numeric: tabular-nums; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 8px; }

/* cartes-boutons radio / checkbox (quiz, choix d'outil) */
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rc-body {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px 14px 46px; position: relative;
  border: 2px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.rc-body::before {
  content: ""; position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-2); background: #fff; transition: all .15s;
}
.radio-card input[type="checkbox"] + .rc-body::before { border-radius: 6px; }
.rc-title { font-weight: 700; }
.rc-sub { font-size: .86rem; color: var(--ink-3); }
.rc-body .ico { width: 26px; height: 26px; color: var(--orange-ink); margin-bottom: 2px; }
.radio-card:hover .rc-body { border-color: var(--ink-3); }
.radio-card input:checked + .rc-body { border-color: var(--ink); background: var(--volt-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card input:checked + .rc-body::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--volt); }
.radio-card input:focus-visible + .rc-body { outline: 3px solid var(--focus); outline-offset: 2px; }

/* contrôle segmenté (ex. unités km/h ↔ min/km) */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: var(--paper-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }

.range { width: 100%; accent-color: var(--orange); height: 32px; }

/* résultat de calcul */
.result-box {
  --focus: var(--volt);
  position: relative; padding: 22px; border-radius: var(--r); background: var(--navy); color: var(--on-dark); overflow: hidden; isolation: isolate;
}
.result-box::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background: repeating-linear-gradient(180deg, transparent 0 30px, rgba(245, 244, 239, .06) 30px 32px); }
.rb-label { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--on-dark-2); }
.rb-value { margin: 4px 0 0; font: 800 clamp(2.6rem, 9vw, 3.8rem)/1 var(--f-display); color: var(--volt); font-variant-numeric: tabular-nums; }
.rb-unit { font-size: .45em; color: var(--on-dark); margin-left: .2em; }
.rb-note { margin: 10px 0 0; font-size: .9rem; color: var(--on-dark-2); }
.result-box .table-wrap { margin-top: 14px; border-color: rgba(245, 244, 239, .14); background: var(--navy-2); }
.result-box .table td, .result-box .table th { border-color: rgba(245, 244, 239, .1); color: var(--on-dark); }
.result-box .table tbody tr:nth-child(even) { background: rgba(245, 244, 239, .03); }
.result-box .table tbody tr:hover { background: rgba(215, 242, 58, .08); }

/* ---------- 16. Notes, source, stats ---------- */
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--ink); font-size: .95rem; }
.note > .ico { width: 22px; height: 22px; margin-top: 1px; }
.note p:last-child { margin-bottom: 0; }
.note-info { border-left-color: var(--fam-eau); }
.note-info > .ico { color: var(--fam-eau); }
.note-warn { background: var(--warn-soft); border-color: #F0D58A; border-left-color: var(--warn); }
.note-warn > .ico { color: var(--warn); }
.note-volt { background: var(--volt-soft); border-color: var(--volt-2); border-left-color: var(--ink); }

.source-line { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .82rem; color: var(--ink-3); line-height: 1.5; }
.source-line .ico { width: 1.15em; height: 1.15em; margin-top: .15em; color: var(--orange-ink); }
.source-line a { color: inherit; }

.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 840px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.stat-num { display: block; font: 800 clamp(2rem, 6vw, 3rem)/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-label { display: block; margin-top: 6px; font-size: .88rem; color: var(--ink-3); }
.section-dark .stat { background: var(--navy-2); border-color: rgba(245, 244, 239, .12); }
.section-dark .stat-num { color: var(--volt); }
.section-dark .stat-label { color: var(--on-dark-2); }
.kpi { font: 800 1.1em/1 var(--f-display); font-variant-numeric: tabular-nums; }

/* ---------- 17. Listes ---------- */
.link-cols { list-style: none; margin: 0; padding: 0; columns: 2 160px; column-gap: 24px; }
.link-cols li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--line); }
.link-cols a { text-decoration: none; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.link-cols a:hover { color: var(--orange-ink); }
.link-cols .n { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.list-check { list-style: none; padding: 0; margin: 0 0 1em; }
.list-check li { position: relative; padding-left: 30px; margin: .45em 0; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; background: var(--volt)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1B2D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.city-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.city-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 46px; padding: 10px 14px;
  border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600;
  transition: background-color .15s, border-color .15s, color .15s;
}
.city-grid a small { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.city-grid a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.city-grid a:hover small { color: var(--volt); }
.section-dark .city-grid a { background: var(--navy-2); border-color: rgba(245, 244, 239, .12); color: var(--on-dark); }
.section-dark .city-grid a:hover { background: var(--volt); color: var(--ink); }
.section-dark .city-grid a:hover small { color: var(--ink); }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.az a { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: var(--r-xs); border: 1.5px solid var(--line-2); text-decoration: none; font: 800 1.1rem/1 var(--f-display); }
.az a:hover { background: var(--ink); color: var(--volt); border-color: var(--ink); }

/* ---------- 18. Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--ink); color: var(--volt); border-color: var(--ink); }
.pager .pager-gap { border: 0; min-width: 20px; padding: 0; }

/* ---------- 19. Carte, régie, affiliation ---------- */
.map-box { position: relative; width: 100%; height: 62vh; min-height: 360px; max-height: 720px; border-radius: var(--r); overflow: hidden; border: 2px solid var(--ink); background: var(--paper-3); }
.promo-slot { margin: 28px auto; text-align: center; }
.promo-slot:empty { display: none; margin: 0; }
.promo-slot.is-filled { min-height: 250px; }
.promo-slot iframe { max-width: 100%; border: 0; }
.card-affil { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--r); background: var(--volt-soft); border: 1.5px solid var(--volt-2); margin: 24px 0; }
.card-affil p { margin: 0; }
.ca-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--volt); flex: none; }
.ca-k { font-weight: 700; }
.card-affil a { font-weight: 700; display: inline-flex; align-items: center; gap: .3em; }

/* motif couloirs utilitaire */
.lanes-bg { background-image: repeating-linear-gradient(180deg, transparent 0 46px, rgba(15, 27, 45, .05) 46px 48px); }

/* ---------- 20. Recherche de ville (sp_city_search) ---------- */
.city-search { display: grid; gap: 8px; max-width: 560px; }
.cs-label { font-weight: 700; font-size: .9rem; }
.cs-row { position: relative; display: flex; gap: 8px; padding: 6px; border-radius: var(--r-pill); background: #fff; border: 2px solid var(--ink); box-shadow: var(--sh-2); }
.cs-row:focus-within { box-shadow: 0 0 0 4px var(--volt), var(--sh-2); }
.cs-row .cs-ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.cs-row .cs-ico .ico { width: 22px; height: 22px; }
.cs-input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: none; padding: 0 8px 0 46px; font: 600 1.05rem/1 var(--f-text); color: var(--ink); }
.cs-input:focus { outline: none; }
.cs-input::placeholder { color: #7A8394; font-weight: 500; }
.cs-go { min-height: 48px; padding: .6em 1.2em; }
@media (max-width: 400px) { .cs-go span { display: none; } .cs-go { padding: .6em .9em; } }
.cs-msg { margin: 0; font-size: .9rem; min-height: 0; }
.cs-msg:empty { display: none; }
.cs-geo { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; justify-self: start; padding: 6px 0; }
.on-dark .cs-label, .hero .cs-label, .section-dark .cs-label { color: var(--on-dark); }
.on-dark .cs-geo, .hero .cs-geo, .section-dark .cs-geo { color: var(--volt); text-decoration-color: var(--volt); }
.on-dark .cs-msg, .hero .cs-msg, .section-dark .cs-msg { color: var(--on-dark); }
.on-dark .cs-msg a, .hero .cs-msg a { color: var(--volt); }

/* ---------- 21. Accueil ---------- */
.hero { --focus: var(--volt); position: relative; background: var(--navy); color: var(--on-dark); overflow: hidden; isolation: isolate; padding: 34px 0 0; }
@media (min-width: 720px) { .hero { padding-top: 56px; } }
.hero-grid { display: grid; gap: 28px; align-items: end; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; } }
.hero-txt { padding-bottom: 8px; }
.hero h1 { font-size: clamp(2.9rem, 11vw, 6.2rem); line-height: .88; margin: 0 0 18px; letter-spacing: -.01em; }
.hero-sub { font-size: 1.1rem; color: var(--on-dark-2); max-width: 52ch; margin: 0 0 24px; }
@media (min-width: 720px) { .hero-sub { font-size: 1.2rem; } }
.hero .city-search { margin-bottom: 18px; }
.hero-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 32px; }
.hero-quick > span { font-size: .85rem; color: var(--on-dark-2); margin-right: 4px; font-weight: 600; }
.hero-art { position: relative; align-self: stretch; min-height: 220px; }
.hero-art svg { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; }
@media (max-width: 979px) { .hero-art { min-height: 0; height: 190px; margin: 0 calc(var(--gutter) * -1); } .hero-art svg { height: 100%; width: 100%; } }
.hero-lanes { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(180deg, transparent 0 58px, rgba(245, 244, 239, .055) 58px 60px); }
.hero-start {   /* ligne de départ damier sous le hero */
  height: 14px; background:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%) 0 0 / 14px 14px,
    linear-gradient(45deg, var(--ink) 25%, var(--volt) 25%, var(--volt) 75%, var(--ink) 75%) 7px 7px / 14px 14px;
}
.home-stats { margin-top: -1px; }

.fam-block + .fam-block { margin-top: 28px; }
.fam-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 800 1.25rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.fam-title::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--fam, var(--orange)); }
.fam-grid { display: grid; gap: 28px 32px; }
@media (min-width: 760px) { .fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.data-band { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .data-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; } }
.data-band .source-line { color: var(--on-dark-2); margin-top: 12px; }
.data-band .source-line .ico { color: var(--volt); }

.rt-col { grid-template-columns: 1fr !important; gap: 8px; }
@media (min-width: 520px) and (max-width: 759px) { .rt-col { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
ol.grid, ul.grid { list-style: none; padding: 0; margin: 0; }
.step { position: relative; overflow: hidden; }
.step h3 { margin: 10px 0 6px; font: 800 1.45rem/1 var(--f-display); text-transform: uppercase; }
.step p { margin: 0; color: var(--ink-2); }
.step-n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--volt); font: 800 2rem/1 var(--f-display); }
.step::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 2px solid var(--orange); opacity: .18; }
.cf-hot { background: var(--volt); border-color: var(--volt-2); }
.cf-hot .cf-ico { background: var(--ink); color: var(--volt); }
.cf-hot .cf-text { color: var(--ink-2); }
.cf-hot::after { background: var(--ink); }

/* ---------- 22. 404 ---------- */
.lost { text-align: center; padding: 20px 0 8px; }
.lost-num { font: 800 clamp(6rem, 30vw, 13rem)/.8 var(--f-display); letter-spacing: -.03em; margin: 0; color: var(--ink);
  background: repeating-linear-gradient(180deg, var(--ink) 0 14px, transparent 14px 20px); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lost .city-search { margin: 26px auto 10px; text-align: left; }

/* ---------- 23. Pied de page ---------- */
.site-footer { --focus: var(--volt); position: relative; background: var(--navy); color: var(--on-dark-2); padding: 0 0 28px; font-size: .92rem; }
.foot-lanes { height: 10px; background: repeating-linear-gradient(90deg, var(--volt) 0 40px, var(--navy) 40px 44px, var(--orange) 44px 84px, var(--navy) 84px 88px); }
.foot-top { display: grid; gap: 36px; padding: 44px 0 32px; }
@media (min-width: 1000px) { .foot-top { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; } }
.foot-brand { display: grid; gap: 14px; align-content: start; justify-items: start; }
.foot-brand p { margin: 0; }
.foot-brand .brand { color: var(--on-dark); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2.1fr 1fr 1fr .8fr; } }
.foot-col-wide { grid-column: 1 / -1; }
@media (min-width: 760px) { .foot-col-wide { grid-column: auto; } }
.foot-h { margin: 0 0 10px; font: 800 1.05rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--volt); }
.foot-h2 { margin-top: 22px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-rubs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px !important; }
.foot-col a { display: inline-block; padding: 4px 0; color: var(--on-dark); text-decoration: none; }
.foot-col a:hover { color: var(--volt); text-decoration: underline; text-decoration-color: var(--volt); }
.foot-more { font-weight: 700; color: var(--volt) !important; }
.foot-legal { border-top: 1px solid rgba(245, 244, 239, .12); padding-top: 20px; display: grid; gap: 8px; font-size: .82rem; }
.foot-legal p { margin: 0; }
.site-footer .source-line { color: var(--on-dark); font-size: .84rem; }
.site-footer .source-line .ico { color: var(--volt); }

/* ---------- 24. Pages légales ---------- */
.legal-todo { background: var(--warn-soft); color: var(--warn); font-weight: 700; padding: 0 .3em; border-radius: 4px; }
.info-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0 0 2rem; }
.info-grid .card { padding: 18px; }
/* .ig-h : étiquette de carte (ex-<h3> — retirée du plan de titres, cf. conditions.php). */
.info-grid .ig-h { display: flex; align-items: center; gap: 8px; margin: 0 0 .4rem; font: 700 1.15rem/1.25 var(--f-text); letter-spacing: -.01em; color: var(--ink); }
.info-grid h3 { display: flex; align-items: center; gap: 8px; margin-bottom: .4rem; }
.info-grid h3 .ico, .info-grid .ig-h .ico { color: var(--orange-ink); }
.info-grid p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- 25. Mouvement & impression ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover, .card-link:hover, .rub-tile:hover, .card-feature:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .promo-slot, .cp-actions, .nav-toggle, .hero-art { display: none !important; }
  body { background: #fff; }
  .page-head.ph-dark, .section-dark, .hero { background: #fff; color: #000; }
}

/* Intégration 2026-10-01 : le champ de recherche se contracte toujours à la largeur dispo (360 px). */
.city-search, .cs-row { min-width: 0; max-width: 100%; }
.cs-input { width: 100%; }
@media (max-width: 420px) { .cs-row .btn span { display: none; } .cs-row .btn { padding-inline: 14px; } }
ul.grid, ol.grid, .tools-grid { list-style: none; margin: 0; padding: 0; }   /* intégration : pas de puces sur les grilles de tuiles */

/* Correctifs retour Tom 2026-10-01 : bande « Les données » — les chiffres ne débordent plus à aucune largeur. */
.data-band > * { min-width: 0; }
.data-band .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.data-band .stat-num { font-size: clamp(1.9rem, 3.4vw, 2.8rem); white-space: nowrap; }
.stat { min-width: 0; }
.stat-num { overflow-wrap: anywhere; }
