/* ==========================================================================
   ParkinBordeaux — feuille de styles
   Aucun framework : variables CSS, grilles et composants maison.
   ========================================================================== */

:root {
    --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --brand: #0973d3;
    --brand-600: #075fb0;
    --brand-700: #064b8a;
    --brand-50: #eaf3fd;
    --brand-100: #d3e6fb;

    --ink: #0b1b30;
    --ink-2: #33445c;
    --muted: #5d6b80;
    --line: #e3e8ef;
    --line-2: #eef2f7;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafd;

    --free: #15803d;
    --free-bg: #dcfce7;
    --warn: #c2410c;
    --warn-bg: #ffedd5;
    --full: #b91c1c;
    --full-bg: #fee2e2;
    --neutral: #475569;
    --neutral-bg: #e2e8f0;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgb(11 27 48 / 6%);
    --shadow: 0 1px 2px rgb(11 27 48 / 5%), 0 8px 24px -12px rgb(11 27 48 / 18%);
    --shadow-lg: 0 24px 48px -24px rgb(11 27 48 / 35%);

    --container: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 68px;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #4aa3ff;
        --brand-600: #73b7ff;
        --brand-700: #a5d0ff;
        --brand-50: #10243d;
        --brand-100: #16314f;
        --ink: #e8eef7;
        --ink-2: #c3cfdf;
        --muted: #93a2b8;
        --line: #233246;
        --line-2: #1b283a;
        --bg: #0b1422;
        --surface: #111d2e;
        --surface-2: #142236;
        --free: #4ade80;
        --free-bg: #12301f;
        --warn: #fb923c;
        --warn-bg: #3a2414;
        --full: #f87171;
        --full-bg: #3b1616;
        --neutral: #a3b1c4;
        --neutral-bg: #1e2b3d;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -12px rgb(0 0 0 / 60%);
        --shadow-lg: 0 24px 48px -24px rgb(0 0 0 / 70%);
        color-scheme: dark;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--tight { padding: 32px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 65ch; }
.stack > * + * { margin-top: 16px; }

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.layout-aside { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) {
    .layout-aside { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
    .layout-aside > aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-600); }
.btn--light { background: rgb(255 255 255 / 14%); color: #fff; border-color: rgb(255 255 255 / 28%); }
.btn--light:hover { background: rgb(255 255 255 / 24%); color: #fff; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--brand); line-height: 1; flex: none; }
.logo__park { display: flex; font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; }
.logo__park span { padding: 0 .38em; border-left: 2px solid currentColor; }
.logo__park span:last-child { border-right: 2px solid currentColor; }
.logo__city { align-self: flex-end; font-size: .72rem; font-weight: 600; margin-top: 3px; letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .94rem; text-decoration: none; }
.nav a:hover { background: var(--brand-50); color: var(--brand-600); }
.nav a[aria-current="page"] { color: var(--brand-600); background: var(--brand-50); }
.nav-toggle { display: none; margin-left: auto; }
.nav-toggle summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle .icon { width: 22px; height: 22px; }
@media (max-width: 900px) {
    .nav { display: none; }
    .nav-toggle { display: block; }
    .nav-toggle[open] .nav {
        display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        position: absolute; left: 0; right: 0; top: var(--header-h);
        background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; box-shadow: var(--shadow-lg);
    }
    .nav-toggle[open] .nav a { padding: 12px 14px; font-size: 1rem; }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .86rem; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: var(--line); color: var(--muted); opacity: .6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-600); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgb(74 163 255 / 45%), transparent 60%),
        radial-gradient(800px 400px at -10% 110%, rgb(21 128 61 / 30%), transparent 60%),
        linear-gradient(135deg, #062a52 0%, #0a4f96 55%, #0973d3 100%);
    padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
    background-image: linear-gradient(rgb(255 255 255 / 25%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 25%) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: rgb(255 255 255 / 86%); }
.hero .eyebrow { color: #9fd0ff; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }
.hero-search { display: flex; gap: 8px; margin: 28px 0 18px; max-width: 560px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 8px 14px; color: #0b1b30; }
.hero-search input:focus { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-size: .88rem; font-weight: 600;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand-600); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.hero .chip { background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 25%); color: #fff; }
.hero .chip:hover { background: rgb(255 255 255 / 22%); color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-stat { background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 18%); border-radius: var(--radius); padding: 18px 20px; backdrop-filter: blur(6px); }
.hero-stat strong { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hero-stat span { color: rgb(255 255 255 / 80%); font-size: .9rem; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgb(74 222 128 / 70%); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(74 222 128 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0%); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- En-tête de page ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0 36px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { margin: 0; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.page-head__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card--pad { padding: 22px; }
.card h2, .card h3 { margin-bottom: 12px; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 16px; }
.card-title .icon { color: var(--brand); width: 22px; height: 22px; }

/* Carte parking */
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-100); }
.pcard__media { position: relative; aspect-ratio: 16 / 9; background: var(--brand-50); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__media--empty { display: grid; place-items: center; color: var(--brand); background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); }
.pcard__media--empty .icon { width: 48px; height: 48px; opacity: .55; }
.pcard__badge { position: absolute; top: 12px; left: 12px; }
.pcard__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.pcard__title { font-size: 1.05rem; font-weight: 750; margin: 0; line-height: 1.3; }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; }
.pcard__addr { display: flex; gap: 6px; color: var(--muted); font-size: .86rem; margin: 0; }
.pcard__addr .icon { margin-top: 3px; }
.pcard__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .84rem; color: var(--ink-2); }
.pcard__facts span { display: inline-flex; align-items: center; gap: 5px; }
.pcard__facts .icon { color: var(--muted); }

/* Liste compacte */
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plist__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.plist__item:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.plist__name { font-weight: 700; color: var(--ink); text-decoration: none; }
.plist__name::after { content: ""; position: absolute; inset: 0; }
.plist__meta { grid-column: 1; color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.plist__status { grid-row: 1 / span 2; grid-column: 2; text-align: right; }
aside .plist__item { grid-template-columns: minmax(0, 1fr); }
aside .plist__status { grid-row: auto; grid-column: 1; text-align: left; }

/* ---------- Statuts ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; background: var(--neutral-bg); color: var(--neutral); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--libre { background: var(--free-bg); color: var(--free); }
.status--presque-complet { background: var(--warn-bg); color: var(--warn); }
.status--complet, .status--ferme { background: var(--full-bg); color: var(--full); }
.status--lg { font-size: 1rem; padding: 8px 16px; }
.pcard__badge .status { box-shadow: var(--shadow); background: var(--surface); }
.pcard__badge .status--libre { background: var(--free-bg); }
.pcard__badge .status--presque-complet { background: var(--warn-bg); }
.pcard__badge .status--complet, .pcard__badge .status--ferme { background: var(--full-bg); }

.meter { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--free); transition: width .4s; }
.meter--presque-complet > span { background: var(--warn); }
.meter--complet > span, .meter--ferme > span { background: var(--full); }

/* ---------- Fiche parking ---------- */
.parking-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 24px 0 32px; }
.parking-hero__top { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; justify-content: space-between; }
.parking-hero h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 8px; }
.parking-hero__addr { display: flex; gap: 8px; color: var(--ink-2); margin: 0; }
.live-panel { min-width: min(100%, 320px); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.live-panel__value { display: flex; align-items: baseline; gap: 8px; margin: 10px 0; }
.live-panel__value strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.live-panel__value span { color: var(--muted); }
.live-panel__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; margin-top: 24px; }
.fact { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.fact__label { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fact__value { font-size: 1.12rem; font-weight: 750; margin-top: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.price-table th, .price-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-2); }
.price-table th { font-weight: 600; color: var(--ink-2); }
.price-table td { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { font-size: .93rem; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.data-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tbody tr:hover { background: var(--surface-2); }

.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.services li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: .92rem; }
.services strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.services .icon { color: var(--brand); }

/* Heatmap d'affluence */
.heatmap { display: grid; grid-template-columns: 42px repeat(var(--cols, 18), minmax(0, 1fr)); gap: 3px; font-size: .72rem; }
.heatmap__day { display: flex; align-items: center; font-weight: 650; color: var(--ink-2); }
.heatmap__hour { text-align: center; color: var(--muted); }
.heatmap__cell { aspect-ratio: 1; border-radius: 4px; background: var(--line-2); min-height: 14px; }
.heatmap__legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.heatmap__legend i { width: 60px; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #bbf7d0, #fde68a, #fb923c, #dc2626); }
@media (max-width: 600px) { .heatmap .heatmap__hour:nth-child(even) { visibility: hidden; } }

/* Graphique barres */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 18px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.bars__bar { width: 100%; max-width: 46px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand), var(--brand-600)); position: relative; }
.bars__value { font-size: .72rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.bars__label { font-size: .72rem; color: var(--muted); }

/* POI */
.poi-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.poi-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.poi-list .icon { color: var(--brand); margin-top: 3px; }
.poi-list small { display: block; color: var(--muted); }

/* ---------- Carte Leaflet ---------- */
.map { position: relative; height: 520px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--brand-50); z-index: 0; }
.map--sm { height: 320px; }
.map--full { border-radius: 0; border-inline: 0; height: min(70vh, 640px); }
.map__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.map-marker { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 999px; border: 2px solid #fff; color: #fff; font: 800 12px/1 var(--font-sans); box-shadow: 0 4px 10px rgb(0 0 0 / 30%); background: #64748b; }
.map-marker--libre { background: #16a34a; }
.map-marker--presque-complet { background: #ea580c; }
.map-marker--complet, .map-marker--ferme { background: #dc2626; }
.map-marker--relais { border-radius: 8px; }
.leaflet-popup-content { font-family: var(--font-sans); margin: 12px 14px; }
.leaflet-popup-content strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: .85rem; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- Filtres (liste) ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); padding: 14px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.toolbar__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.input { width: 100%; min-height: 46px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 14px; font: inherit; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.search-field { position: relative; flex: 1 1 280px; }
.search-field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field .input { padding-left: 42px; border-radius: 999px; }
select.input { width: auto; border-radius: 999px; padding-right: 32px; }
.results-count { color: var(--muted); font-size: .9rem; margin-left: auto; }
[hidden] { display: none !important; }

/* ---------- Contenu éditorial ---------- */
.prose { font-size: 1.05rem; color: var(--ink-2); max-width: 72ch; }
.prose h2 { margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { line-height: 1.75; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--radius); }
.prose table { font-size: .95rem; margin: 1.2em 0; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose--wide, .layout-aside .prose { max-width: none; }
.prose .data-table { margin: 1em 0 1.5em; font-size: .9rem; }
.data-table td:first-child { min-width: 150px; }
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--ink-2); margin: 1.5em 0; font-size: .97rem; }
.callout .icon { color: var(--brand); width: 22px; height: 22px; margin-top: 2px; }
.callout p:last-child { margin: 0; }
.callout--warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.callout--warn .icon { color: var(--warn); }
.toc { font-size: .92rem; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li + li { margin-top: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand-600); }
.key-figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; margin: 1.5em 0; }
.key-figures div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.key-figures strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.key-figures span { font-size: .85rem; color: var(--muted); }

/* Cartes guides / articles */
.gcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; height: 100%; }
.gcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.gcard__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.gcard__icon .icon { width: 22px; height: 22px; }
.gcard__cat { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.gcard h3 { margin: 0; font-size: 1.08rem; }
.gcard h3 a { color: var(--ink); text-decoration: none; }
.gcard h3 a::after { content: ""; position: absolute; inset: 0; }
.gcard p { margin: 0; color: var(--muted); font-size: .93rem; }
.gcard__foot { margin-top: auto; padding-top: 6px; font-size: .82rem; color: var(--muted); display: flex; gap: 12px; }
.acard__img { margin: -22px -22px 6px; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--brand-50); }
.acard__img img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); }

/* Formulaires */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 650; margin-bottom: 6px; }
.form-row textarea.input { min-height: 160px; resize: vertical; }
.form-error { color: var(--full); font-size: .88rem; margin-top: 6px; }
.form-error ul { list-style: none; padding: 0; margin: 0; }
.hp-field { position: absolute !important; left: -9999px !important; }
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; }
.flash--success { background: var(--free-bg); color: var(--free); }
.flash--error { background: var(--full-bg); color: var(--full); }

/* ---------- Pied de page ---------- */
.site-footer { background: #071426; color: #b8c4d6; padding: 56px 0 28px; margin-top: 64px; font-size: .92rem; }
.site-footer a { color: #dbe6f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-grid h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 10%); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .84rem; }

/* Bandeau cookies */
.consent { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 520px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 20px; font-size: .9rem; }
.consent p { margin: 0 0 12px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Utilitaires */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--brand-50); color: var(--brand-600); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

@media (max-width: 560px) {
    .hide-sm { display: none; }
    .hero-search .btn { padding-inline: 14px; }
    .hero-stats { gap: 8px; }
    .hero-stat { padding: 14px; }
    .hero-stat strong { font-size: 1.5rem; }
    .hero-stat span { font-size: .8rem; }
}
