/* ==========================================================================
   Ekoland - espace joueur
   Feuille unique. Couleurs et tailles en variables ci-dessous.
   ========================================================================== */
@font-face { font-family: "Titre"; src: url("../fonts/Cyberfall.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("../fonts/Metropolis-Regular.otf") format("opentype"); font-display: swap; }

:root {
    --bg: #1d2023;
    --bg-2: #24282c;
    --surface: #2a2f34;
    --surface-2: #33393f;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f3f4f5;
    --muted: #aab2b9;
    --green: #1c6b4f;
    --green-2: #23855f;
    --green-deep: #174d3b;
    --rust: #a8391b;
    --rust-2: #c2491f;
    --orange: #e8562b;
    --yellow: #f2c94c;
    --red: #e5484d;
    --radius: 12px;
    --radius-sm: 8px;
    --font: "Metropolis", "Segoe UI", Roboto, Arial, sans-serif;
    --font-title: "Titre", "Arial Black", Impact, sans-serif;
    --wrap: 1120px;
    --topbar-h: 76px;
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: var(--font-title); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(22px, 3.2vw, 30px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
.hl { color: var(--orange); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: var(--yellow); color: #000; padding: 6px 10px; z-index: 100; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hide-sm { }
.show-sm { display: none; }
@media (max-width: 720px) { .hide-sm { display: none !important; } .show-sm { display: inline; } }

/* --- Barre haute ----------------------------------------------------------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: #1d2023;
    border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: var(--topbar-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex: none; }
.brand picture { flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 56px; height: auto; }
.brand__text { font-family: var(--font-title); font-size: 20px; letter-spacing: 0.04em; line-height: 1; }
.brand__text small { display: block; font-family: var(--font); font-size: 12px; color: var(--muted); letter-spacing: 0.2em; margin-top: 4px; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__link {
    display: inline-block; padding: 10px 14px; border-radius: var(--radius-sm);
    color: var(--text); font-weight: 600; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
}
.nav__link:hover { background: var(--surface); text-decoration: none; }
.nav__link.is-active { color: var(--orange); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav__link--accent { color: var(--yellow); }
.nav__link--muted { color: var(--muted); }
.nav__link--parking { background: var(--rust); color: #fff; border-radius: var(--radius-sm); }
.nav__link--parking:hover { background: var(--rust-2); }
.nav__link--parking.is-active { background: var(--orange); color: #111; box-shadow: none; border-radius: var(--radius-sm); }
.nav__user { display: flex; align-items: center; gap: 8px; padding-left: 12px; margin-left: 8px; border-left: 1px solid var(--line); }
.nav__pseudo { font-weight: 700; color: var(--yellow); font-size: 14px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 3px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
@media (max-width: 1000px) {
    .brand__text { display: none; }
    .burger { display: block; }
    .nav { display: none; position: fixed; top: var(--topbar-h); left: 0; right: 0; height: calc(100vh - var(--topbar-h)); background: var(--bg); padding: 16px 20px; margin: 0; overflow-y: auto; z-index: 60; }
    .nav.is-open { display: block; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__link { display: block; padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 16px; }
    .nav__link.is-active { box-shadow: inset 4px 0 0 var(--orange); }
    .nav__user { flex-direction: column; align-items: flex-start; border-left: 0; padding: 14px 12px; margin: 0; }
    .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --- Bandeau de page -------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #2b1a14 0%, #1d2023 55%, #17362b 100%);
    border-bottom: 1px solid var(--line);
    padding: 36px 0 28px;
}
.hero__title { margin: 0; }
.hero__subtitle { margin: 8px 0 0; color: var(--muted); max-width: 720px; }
.page { flex: 1; padding: 28px 0 48px; }

/* --- Cartes ---------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 20px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card__title { margin: 0; font-size: 20px; }
.card--green { background: var(--green-deep); border-color: rgba(255, 255, 255, 0.06); }
.card--tight { padding: 14px 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-side { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid-2, .grid-side, .grid-3 { grid-template-columns: 1fr; } }

/* --- Boutons --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font: inherit; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
    color: #fff; background: var(--surface-2); cursor: pointer; text-decoration: none; transition: filter 0.15s, transform 0.05s;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading { opacity: 0.6; cursor: default; pointer-events: none; }
.btn--green { background: var(--green); }
.btn--rust { background: var(--rust); }
.btn--accent { background: var(--orange); color: #111; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.25); }
.btn--danger { background: var(--red); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 12px; }
.btn--lg { min-height: 52px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--icon { width: 44px; padding: 0; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-actions--right { justify-content: flex-end; }
/* compatibilité avec les fragments HTML existants */
.btn-success { background: var(--green); } .btn-alert, .btn-danger { background: var(--rust); } .btn-secondary { background: var(--surface-2); }

/* --- Formulaires ------------------------------------------------------------ */
.field { margin-bottom: 18px; }
.field label, .label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); }
.field__hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.field__error { margin: 6px 0 0; font-size: 13px; color: #ff8a80; }
.field.is-invalid .input { border-color: var(--red); }
.field.is-valid .input { border-color: var(--green-2); }
.input, .form-control, select.input, textarea.input {
    width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.14); background: var(--bg-2); color: var(--text);
    font: inherit; outline: 0; transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: #7c858c; }
.input:focus { border-color: var(--rust-2); box-shadow: 0 0 0 3px rgba(194, 73, 31, 0.25); }
.input[readonly] { color: var(--muted); background: var(--surface); }
.input--sm { min-height: 40px; padding: 6px 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }
.auth { max-width: 480px; margin: 0 auto; }
.auth--wide { max-width: 760px; }

/* --- Messages --------------------------------------------------------------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; margin: 0 0 18px; font-size: 15px; }
.alert--ok { border-color: var(--green-2); background: rgba(35, 133, 95, 0.15); }
.alert--error { border-color: var(--red); background: rgba(229, 72, 77, 0.15); }
.alert--info { border-color: var(--yellow); background: rgba(242, 201, 76, 0.12); }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--surface-2); border-left: 4px solid var(--yellow); padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); transition: opacity 0.4s; max-width: 360px; }
.toast--ok { border-color: var(--green-2); } .toast--error { border-color: var(--red); }
.toast.is-out { opacity: 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* --- Badges & pastilles ----------------------------------------------------- */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.badge--ok { background: var(--green); } .badge--warn { background: var(--yellow); color: #111; } .badge--muted { color: var(--muted); } .badge--rust { background: var(--rust); }
.zone { display: inline-flex; align-items: center; gap: 6px; }
.zone::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.zone--CEN::before { background: var(--yellow); } .zone--TIR::before { background: var(--orange); } .zone--PLA::before { background: var(--green-2); }

/* --- Statistiques ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat__label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.stat__value { font-family: var(--font-title); font-size: 30px; line-height: 1; color: var(--text); }
.stat__value small { font-family: var(--font); font-size: 13px; color: var(--muted); margin-left: 6px; }
.stat__sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.stat--accent .stat__value { color: var(--orange); }

/* --- Profil (en-tête joueur) ----------------------------------------------- */
.player { display: flex; align-items: center; gap: 24px; }
.player__avatar { width: 128px; height: 128px; border-radius: 50%; border: 4px solid var(--rust); object-fit: cover; flex: none; background: var(--surface); }
.player__name { font-family: var(--font-title); font-size: clamp(28px, 5vw, 44px); line-height: 1; margin: 0; }
.player__name small { display: block; font-family: var(--font); font-size: 14px; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 6px; }
.player__meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--muted); }
.player__meta strong { color: var(--text); }
@media (max-width: 600px) { .player { flex-direction: column; text-align: center; } .player__meta { justify-content: center; } }

/* --- Tableaux ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); position: sticky; top: 0; white-space: nowrap; }
.table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.05); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table--rank td:first-child { font-family: var(--font-title); font-size: 20px; color: var(--orange); width: 64px; text-align: center; }
@media (max-width: 720px) { .table--rank td:first-child { width: 40px; font-size: 17px; } .table--rank .badge { font-size: 10px; padding: 2px 6px; } .table--rank .actions .btn { min-width: 36px; padding: 4px 8px; } .table .who { gap: 8px; } .table .who img { width: 32px; height: 32px; } .table .score { font-size: 17px; } }
.table tr.is-me, .table tr#myScore { background: rgba(232, 86, 43, 0.14) !important; box-shadow: inset 4px 0 0 var(--orange); }
.table .who { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.table .who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.table .score { font-family: var(--font-title); font-size: 20px; color: var(--text); }
.table--compact th, .table--compact td { padding: 8px 10px; font-size: 14px; }
/* Tableaux en cartes sur mobile : chaque ligne devient un bloc, chaque cellule affiche son intitulé (data-label) */
@media (max-width: 720px) {
    .table th, .table td { padding: 8px 8px; font-size: 14px; }
    .table--cards thead { display: none; }
    .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
    .table--cards tr { padding: 8px 12px; border-bottom: 1px solid var(--line); }
    .table--cards tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
    .table--cards td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
    .table--cards td::before { content: attr(data-label); color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; flex: none; }
    .table--cards td:not([data-label])::before { content: none; }
    .table--cards td.actions { justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
    .table--cards td.actions .btn { flex: 1 1 auto; }
    .table--cards td.num { font-variant-numeric: tabular-nums; }
    .table--cards .who { justify-content: flex-end; }
}
/* fragments HTML existants (avatars 64px inline) */
.table img[style] { width: 40px !important; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 8px; vertical-align: middle; padding: 0 !important; }
.table tr[style] { background: var(--surface-2) !important; }

/* --- Onglets & filtres ------------------------------------------------------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 999px; border: 1px solid var(--line); width: max-content; max-width: 100%; flex-wrap: wrap; }
@media (max-width: 720px) { .tabs { width: 100%; border-radius: 16px; } .tab { flex: 1 1 auto; text-align: center; padding: 8px 10px; } .toolbar { flex-direction: column; align-items: stretch; } .toolbar .input { max-width: none; } .toolbar .row-actions { justify-content: space-between; } }
.tab { padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.is-active { background: var(--green); color: #fff; }
.tabs--rust .tab.is-active { background: var(--rust); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 18px 0; }
.toolbar .input { max-width: 320px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.chip.is-active { background: var(--rust); border-color: var(--rust); }

/* --- Podium ----------------------------------------------------------------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.podium__item { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.podium__item img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.podium__rank { font-family: var(--font-title); font-size: 28px; color: var(--yellow); width: 34px; }
.podium__item:nth-child(2) .podium__rank { color: #cfd6dc; } .podium__item:nth-child(3) .podium__rank { color: #d08a4b; }
.podium__name { font-weight: 700; }
.podium__score { font-family: var(--font-title); font-size: 22px; margin-left: auto; }
@media (max-width: 720px) { .podium { grid-template-columns: 1fr; } }

/* --- Parties (liste et détail) --------------------------------------------- */
.party { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; }
.party__team { font-weight: 700; font-size: 17px; }
.party__date { color: var(--muted); font-size: 14px; }
.party__zones { display: flex; gap: 6px; grid-column: 1 / -1; }
.party__zone { flex: 1; text-align: center; padding: 6px 4px; border-radius: 6px; background: var(--bg-2); font-size: 12px; color: var(--muted); }
.party__zone strong { display: block; font-family: var(--font-title); font-size: 18px; color: var(--text); }
.party__zone.is-missing { opacity: 0.45; }
.party__zone.is-missing strong { color: var(--muted); font-size: 14px; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.timeline__step { padding: 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); text-align: center; }
.timeline__step.is-missing { opacity: 0.5; }
.timeline__step .stat__value { font-size: 26px; }
@media (max-width: 600px) { .timeline { grid-template-columns: 1fr; } }

/* --- Choix d'avatar --------------------------------------------------------- */
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.avatar-grid label { cursor: pointer; }
.avatar-grid input { position: absolute; opacity: 0; width: 0; height: 0; }
.avatar-grid img { width: 100%; border-radius: 50%; border: 3px solid transparent; transition: transform 0.1s, border-color 0.1s; }
.avatar-grid input:checked + img { border-color: var(--orange); transform: scale(1.05); box-shadow: 0 0 0 3px rgba(232, 86, 43, 0.3); }
.avatar-grid input:focus-visible + img { outline: 2px solid var(--yellow); }

/* --- Dialogues ---------------------------------------------------------------- */
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 0; max-width: min(720px, 94vw); width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog.dialog--wide { max-width: min(1000px, 96vw); }
@media (max-width: 720px) { dialog { max-width: 96vw; } .dialog__body { padding: 12px; } .dialog__head { padding: 12px 14px; } .dialog__foot { padding: 10px 14px; } .timeline { grid-template-columns: repeat(3, 1fr); gap: 6px; } .timeline__step { padding: 8px 4px; } .timeline__step .stat__value { font-size: 20px; } .stat__label { font-size: 11px; } }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dialog__head h3 { margin: 0; }
.dialog__body { padding: 20px; max-height: 70vh; overflow: auto; }
.dialog__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.dialog__close { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 50%; }
.dialog__close:hover { background: var(--surface-2); color: var(--text); }

/* --- Backend ------------------------------------------------------------------- */
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-nav a { padding: 10px 16px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-nav a.is-active { background: var(--rust); }
.admin-nav a:hover { text-decoration: none; filter: brightness(1.15); }
.count { display: inline-block; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); font-size: 12px; text-align: center; margin-left: 6px; }

/* --- Graphiques SVG (tableau de bord) ------------------------------------------ */
.chart { width: 100%; height: auto; display: block; }
.chart__grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.chart__y, .chart__x { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart rect:hover { filter: brightness(1.25); }
.chart__legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--muted); }
.chart__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* --- Pied de page --------------------------------------------------------------- */
.footer { background: #17191b; border-top: 1px solid var(--line); margin-top: auto; }
.footer__grid { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 28px; padding: 36px 20px 28px; align-items: start; }
.footer__brand img { width: 110px; }
.footer__title { font-size: 18px; margin-bottom: 10px; }
.footer p { margin: 0 0 10px; color: var(--muted); }
.footer__phone { font-weight: 700; color: var(--orange); }
.footer__hours { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 14px; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links a { color: var(--text); font-size: 14px; }
.social { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 10px; }
.social img { width: 40px; height: 40px; }
.footer__bottom { border-top: 1px solid var(--line); padding: 14px 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 720px) {
    .footer__grid { grid-template-columns: 1fr; gap: 18px; padding: 26px 20px 20px; text-align: center; justify-items: center; }
    .footer__brand img { width: 84px; }
    .footer__title { font-size: 15px; margin-bottom: 6px; }
    .footer p, .footer__hours, .footer__links a { font-size: 13px; }
    .footer__hours { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; text-align: left; }
    .footer__hours li:nth-child(odd) { text-align: right; }
    .footer__links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
    .social { justify-content: center; margin-bottom: 10px; }
    .footer__bottom { font-size: 12px; }
}

/* --- FAQ / pages texte ------------------------------------------------------------ */
.prose { max-width: 800px; }
.prose h2 { margin-top: 32px; font-size: 22px; }
.prose h3 { margin-top: 22px; font-size: 18px; }
.prose p, .prose li { color: #d7dbdf; }
details.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--orange); font-size: 22px; line-height: 1; }
details[open].faq summary::after { content: "–"; }
details.faq .faq__body { padding: 0 18px 16px; color: #d7dbdf; }
