/* =====================================================================
   Track'Bordeaux — nouvelle interface
   Inspirations : Bus Tracker (en-tête plein, outils carrés sur la carte,
   onglets soulignés, listes nettes) et Transport MEL (titres très gras,
   cartes blanches arrondies, bandeau sombre, gros boutons fléchés).
   Chargée après style.css : elle redessine chaque composant.
   ===================================================================== */

/* ---------- Jetons ---------- */
:root {
  --bg: #f3f1f5; --bg-2: #e9e6ed; --surface: #ffffff; --surface-2: #f4f2f6; --line: #e5e1ea; --line-2: #d3cdd9;
  --ink: #15121a; --ink-2: #3c3644; --muted: #6d6577;
  --vin: #9b1d45; --vin-2: #b8285a; --vin-soft: #f8e5ec; --or: #c48d16; --or-soft: #fbf0d6;
  --garonne: #1f6b86; --garonne-soft: #dff0f5;
  --ok: #17834f; --ok-soft: #def3e7; --warn: #c2620f; --warn-soft: #fdecd9; --bad: #c7261c; --bad-soft: #fde3e0;
  --brand: #7a1639; --brand-deep: #2b0d1a; --gold: #f2c55c;
  --shadow: 0 1px 2px rgba(25, 12, 30, .05), 0 6px 18px rgba(25, 12, 30, .06);
  --shadow-lg: 0 2px 8px rgba(25, 12, 30, .07), 0 22px 50px rgba(25, 12, 30, .16);
  --r: 20px; --r-sm: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a171f; --bg-2: #211d27; --surface: #25212b; --surface-2: #2f2a36; --line: #3a3443; --line-2: #4a4354;
    --ink: #f6f3f8; --ink-2: #d9d3df; --muted: #a59dae;
    --vin: #f2709a; --vin-2: #f78fb0; --vin-soft: #47202f; --or: #f2c55c; --or-soft: #43361a;
    --garonne: #6cc0da; --garonne-soft: #1d3a45;
    --ok: #55d394; --ok-soft: #1b3a2a; --warn: #f7ae5e; --warn-soft: #46301a; --bad: #ff7d72; --bad-soft: #4a201e;
    --brand: #6e1434; --brand-deep: #1c0a12;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, .35), 0 22px 50px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --bg: #1a171f; --bg-2: #211d27; --surface: #25212b; --surface-2: #2f2a36; --line: #3a3443; --line-2: #4a4354;
  --ink: #f6f3f8; --ink-2: #d9d3df; --muted: #a59dae;
  --vin: #f2709a; --vin-2: #f78fb0; --vin-soft: #47202f; --or: #f2c55c; --or-soft: #43361a;
  --garonne: #6cc0da; --garonne-soft: #1d3a45;
  --ok: #55d394; --ok-soft: #1b3a2a; --warn: #f7ae5e; --warn-soft: #46301a; --bad: #ff7d72; --bad-soft: #4a201e;
  --brand: #6e1434; --brand-deep: #1c0a12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .35), 0 22px 50px rgba(0, 0, 0, .5);
}

/* ---------- Typographie ---------- */
body { font-family: var(--ff-body); font-weight: 500; letter-spacing: -.006em; }
h1, h2, h3, .lede, .sec h2, .lp-sec-h h2, .empty, .wm-b, .fam, .credits, .article-sign { font-style: normal !important; }
body.font-serif :is(h1, .lp-sec-h h2) { letter-spacing: -.02em; }
b, strong { font-weight: 800; }

/* ---------- En-tête : bandeau plein, façon Bus Tracker ---------- */
.topbar {
  background: var(--brand); color: #fff; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12), 0 6px 18px -10px rgba(40, 5, 20, .6);
}
.topbar .brand .mark { color: #fff; }
.topbar .brand .tb-pin { fill: #fff; }
.topbar .brand .tb-cres { fill: var(--brand); }
.topbar .live-core { background: var(--gold); }
.topbar .wm-t { color: #fff; }
.topbar .wm-b { color: var(--gold); }
.topbar .wm-ap path { fill: var(--gold); } .topbar .wm-ap circle { fill: var(--brand); }
.topbar .brand small { color: rgba(255, 255, 255, .72); }
.nav { gap: 4px; }
.nav a { color: rgba(255, 255, 255, .86); border-radius: 10px; font-weight: 700; padding: 8px 12px; }
.nav a:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.nav a.on, .nav.has-glide a.on { color: var(--brand); background: #fff; }
.nav.has-glide a.on { background: transparent; }
.nav.has-glide > .glide { background: #fff; border-radius: 10px; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
.topbar .icon-btn { width: 38px; height: 38px; border-radius: 10px; background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.topbar .icon-btn.on, #adm-edit.on { background: #fff; color: var(--brand); border-color: #fff; }
.clock { background: rgba(0, 0, 0, .2); border: 0; color: #fff; border-radius: 10px; }
#btn-report { background: #fff; color: var(--brand); border: 0; border-radius: 10px; font-weight: 800; white-space: nowrap; max-width: 260px; flex: none; }
#btn-report:hover { box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); }
#btn-report > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 1320px) { #btn-report > span { max-width: 120px; } }
@media (max-width: 1100px) { #btn-report > span { display: none; } #btn-report { padding: 9px 11px; } }

/* ---------- Carte : outils carrés ---------- */
#map { background: var(--bg-2); }
.maplibregl-ctrl-group { background: var(--surface) !important; border: 1px solid var(--line); border-radius: 10px !important; box-shadow: var(--shadow) !important; }
.maplibregl-ctrl-group button { width: 38px !important; height: 38px !important; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line) !important; }
:root[data-theme="dark"] .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.6); } }
.layers-btn { border-radius: 10px; height: 38px; border-color: var(--line); font-weight: 800; }
.layers-btn svg { color: var(--ink); }
.layers-pop { border-radius: 14px !important; }
.panel-toggle { border-radius: 10px !important; }

/* ---------- Panneau ---------- */
.panel { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
@media (max-width: 820px) { .panel { border-radius: 20px 20px 0 0; } }
#view { background: var(--surface); }
.sheet-hide { border-radius: 10px !important; font-weight: 800; }

/* ---------- En-tête de page, façon Transport MEL ---------- */
#view .v-head { background: var(--surface); padding: 22px 22px 16px; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
#view .v-head.scrolled { background: var(--surface); border-bottom-color: var(--line); box-shadow: 0 8px 16px -14px rgba(0, 0, 0, .35); }
#view .v-head h1 { font-family: var(--ff-title); font-weight: 800; font-size: 28px; letter-spacing: -.035em; line-height: 1.08; }
#view .v-head h1::after { content: ""; display: block; width: 34px; height: 4px; border-radius: 3px; background: var(--sec, var(--vin)); margin-top: 10px; }
#view .v-head p { color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 8px; }
#view .v-head .back { display: inline-flex; gap: 6px; margin-bottom: 12px; padding: 6px 12px 6px 8px; border-radius: 10px; background: var(--surface-2); color: var(--ink); font-weight: 800; font-size: 13px; }
#view .v-head .back:hover { background: var(--line); color: var(--ink); }
@media (max-width: 820px) { #view .v-head { padding: 8px 18px 14px; } #view .v-head h1 { font-size: 24px; } }

/* ---------- Titres de section : capitales grasses ---------- */
.sec { padding: 8px 22px 22px; }
.sec h2 { font-family: var(--ff-title); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; }
.sec h2 > svg { width: 18px; height: 18px; color: var(--vin); }
.sec h2::before { display: none; }
.sec h2 .count { font-family: var(--ff-body); font-size: 11.5px; font-weight: 800; letter-spacing: 0; text-transform: none; background: var(--ink); color: var(--surface); border: 0; padding: 1px 8px; }

/* ---------- Champs ---------- */
.search input, .q-field input, .it-field input, .field input:not([type=checkbox]):not([type=color]), .field select, .field textarea {
  background: var(--surface-2); border: 1.5px solid transparent; border-radius: 12px; font-weight: 600;
}
.search input:focus, .q-field input:focus, .it-field input:focus, .field :is(input, select, textarea):focus { background: var(--surface); border-color: var(--vin); box-shadow: 0 0 0 4px var(--vin-soft); outline: none; }

/* ---------- Onglets : soulignés, façon Bus Tracker ---------- */
.tabs { background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 0; gap: 2px; }
.tabs button { border-radius: 0; padding: 11px 12px; font-size: 13.5px; font-weight: 800; color: var(--muted); background: none !important; box-shadow: none !important; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--vin) !important; }
.tabs.has-glide button.on { box-shadow: none !important; }
.tabs.has-glide > .glide { background: transparent !important; border-radius: 0; box-shadow: inset 0 -3px 0 var(--vin) !important; }
/* sélecteur segmenté, façon Transport MEL */
.seg { background: var(--surface-2); border: 0; border-radius: 12px; padding: 4px; }
.seg button { font-weight: 800; border-radius: 9px; }
.seg button.on { color: var(--ink); }
.seg.has-glide > .glide { background: var(--surface); border-radius: 9px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 4px 10px -4px rgba(0, 0, 0, .15) !important; }

/* ---------- Puces ---------- */
.chip { border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink-2); font-weight: 800; padding: 6px 12px; }
.chip:hover { background: var(--line); }
.chip.on { background: var(--ink); color: var(--surface); }
.chip.ok, .chip.warn, .chip.bad, .chip.theo { font-weight: 800; }

/* ---------- Boutons ---------- */
.btn { border-radius: 12px; font-weight: 800; border: 1.5px solid var(--line); background: var(--surface); }
.btn:hover { border-color: var(--line-2); box-shadow: none; background: var(--surface-2); }
.btn.primary { background: var(--vin); border-color: var(--vin); color: #fff; }
.btn.primary:hover { background: var(--vin-2); border-color: var(--vin-2); box-shadow: 0 8px 18px -10px var(--vin); }
:root[data-theme="dark"] .btn.primary { color: #1c0a12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #1c0a12; } }
.btn:active, .icon-btn:active { transform: scale(.96); }
#view .icon-btn { border-radius: 12px; border: 1.5px solid var(--line); }

/* ---------- Listes : lignes nettes, icône ronde foncée ---------- */
.res { padding: 12px; border-radius: 14px; gap: 12px; }
.res:hover, .res:focus-visible { background: var(--surface-2); }
.res .t { font-weight: 800; letter-spacing: -.01em; }
.res .s { font-weight: 600; }
.res .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--surface); border: 0; }
.res .ic svg { width: 19px; height: 19px; }
.res > svg:last-child { color: var(--muted); transition: transform .2s var(--ease); }
.res:hover > svg:last-child { transform: translateX(3px); color: var(--ink); }
.list:has(> .res:not(.card)) { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.list:has(> .res:not(.card)) > .res { border-radius: 0; }
.list:has(> .res:not(.card)) > .res + .res { border-top: 1px solid var(--line); }
.results:not(:empty) { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.results > .res { border-radius: 0; } .results > .res + .res { border-top: 1px solid var(--line); }
.res .t-city { font-weight: 600; }

/* ---------- Cartes ---------- */
.card { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
a.card:hover, button.card:hover, .card.res:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.stat, .kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.stat b, .kpi b { font-family: var(--ff-title); font-weight: 800; letter-spacing: -.03em; }
.kpi b { font-size: 28px; color: var(--ink); }
.adm-card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.adm-card svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--ink); color: var(--surface); }
.notice { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; }
.empty { font-weight: 600; }
.empty .e { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; background: var(--surface-2); font-size: 28px; }

/* ---------- Tuiles par mode (Info trafic) : bordure colorée + icône ronde ---------- */
.mode-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 1px; align-items: center; padding: 14px 14px 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.mode-tile::before { width: 5px; }
.mode-tile .mt-ic { grid-row: 1 / 4; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); font-size: 19px; }
.mode-tile .mt-ic svg { width: 20px; height: 20px; }
.mode-tile > b { font-family: var(--ff-title); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
.mode-tile .mt-n { font-weight: 700; }
.mode-tile.warn .mt-n, .mode-tile.bad .mt-n { justify-self: start; padding: 2px 9px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 12px; }
.mode-tile.bad .mt-n { background: var(--bad-soft); color: var(--bad); }
.mode-tile.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }

/* ---------- Tuiles de ligne ---------- */
.line-tile { border-radius: 14px; padding: 11px; background: var(--surface); box-shadow: var(--shadow); }
.line-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.line-tile .nm { color: var(--ink); font-weight: 800; font-size: 13px; }

/* ---------- Tableau des départs ---------- */
.board { border-radius: 18px; background: #121015; box-shadow: var(--shadow-lg); }
.board .dep { border-radius: 12px; }
.board .dep + .dep { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); border-radius: 0; }
.board .dep .dest { font-weight: 800; letter-spacing: .01em; }

/* ---------- Barre d'onglets (téléphone) ---------- */
@media (max-width: 820px) {
  .tabbar { background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -12px rgba(0, 0, 0, .3); }
  .tabbar a { font-weight: 800; color: var(--muted); min-width: 0; }
  .tabbar a span { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar a.on { color: var(--vin); }
  .tabbar.has-glide > .glide { background: var(--vin-soft); border-radius: 12px; }
}

/* ---------- Bandeau d'événement ---------- */
#ribbon { font-weight: 700; }

/* ---------- Changement de page ---------- */
.view-in { animation: viewIn .35s var(--ease) both; }

/* =====================================================================
   Accueil, façon Transport MEL : bandeau sombre, cartes blanches qui
   débordent dessus, gros titres en capitales, boutons fléchés.
   ===================================================================== */
body.page-full #view { background: var(--bg); }
.lp { padding-top: 0; }
.lp-hero {
  margin: 0 calc(50% - 50vw); padding: 44px calc(50vw - 50% + 28px) 110px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
    radial-gradient(90% 120% at 85% 0%, rgba(242, 197, 92, .16), transparent 55%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 75%);
  color: #fff;
}
.lp-hero::before { display: none !important; }
.lp-hero .kicker { color: rgba(255, 255, 255, .7) !important; text-transform: uppercase; letter-spacing: .08em; font-size: 12px !important; font-weight: 800 !important; }
.lp-hero h1 { font-family: var(--ff-title); font-weight: 800 !important; letter-spacing: -.045em !important; color: #fff; text-transform: uppercase; font-size: clamp(40px, 6vw, 72px) !important; line-height: .98 !important; }
.lp-hero h1 em, .lp-hero h1 i, .lp-hero h1 span { color: var(--gold); font-style: normal; }
.lp-hero h1 svg, .lp-hero .squiggle { color: var(--gold); }
.lp-hero p, .lp-hero .lede { color: rgba(255, 255, 255, .82) !important; }
.lp-hero .lp-live { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.lp-hero .lp-live a, .lp-hero .lp-live .lp-link { color: var(--gold); }
.lp-go { border-radius: 24px; border: 0; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); background: var(--surface); color: var(--ink); }
.lp-go::before { display: none; }
.lp-go-h b, .lp-card-h b { font-family: var(--ff-title); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.lp-go-h b { font-size: 24px; }
.lp-go-h b::after, .lp-card-h b::after { content: ""; display: block; width: 30px; height: 4px; border-radius: 3px; background: var(--vin); margin-top: 7px; }
.lp .q-ic, .lp-go .q-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--ink) !important; color: var(--surface) !important; }
/* gros boutons fléchés */
.lp .btn.primary { border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; font-size: 13.5px; padding: 8px 8px 8px 20px; gap: 12px; box-shadow: 0 10px 22px -12px var(--vin); }
.lp .btn.primary svg { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: rgba(0, 0, 0, .22); }
/* cartes qui débordent sur le bandeau */
.lp-grid3 { position: relative; margin-top: -78px; gap: 18px; }
.lp-grid3 .lp-card { border-radius: 24px; border: 0 !important; border-top: 0 !important; box-shadow: var(--shadow-lg); padding: 22px; background: var(--surface); }
.lp-grid3 .lp-card::after { display: none; }
.lp-grid3 .lp-card .q-ic { background: var(--ink) !important; color: var(--surface) !important; }
.lp-card .lp-link { color: var(--vin) !important; font-weight: 800; text-transform: uppercase; font-size: 12.5px; letter-spacing: .04em; }
/* sections */
.lp-sec-h h2 { font-family: var(--ff-title); font-weight: 800 !important; text-transform: uppercase; letter-spacing: -.02em !important; font-size: clamp(24px, 3.2vw, 34px) !important; padding-left: 0 !important; }
.lp-sec-h h2::before { display: none !important; }
.lp-sec-h h2::after { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--vin); margin-top: 8px; }
.lp-sec-h a { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 800; background: var(--surface); }
.lp-tr-sum, .lp-mob-c, .lp-news-g .news-card { border-radius: 20px !important; box-shadow: var(--shadow); background: var(--surface) !important; border: 1px solid var(--line) !important; }
.lp-mob-c { border-left: 5px solid var(--ok) !important; }
.lp-mob-c.pr { border-left-color: #2b6fb5 !important; }
.lp-mob-c.tr { border-left-color: var(--warn) !important; }
.lp-mob-c b { font-family: var(--ff-title); font-weight: 800 !important; letter-spacing: -.03em; }
.lp-mob-c .lp-mob-ic { border-radius: 50% !important; background: var(--ink) !important; color: var(--surface); box-shadow: none !important; }
.lp-news-g .news-card { border-top: 0 !important; }
.lp-foot { border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .lp-hero { padding: 26px 16px 92px; margin: 0 -16px; }
  .lp-grid3 { margin-top: -70px; }
}
@media (prefers-reduced-motion: reduce) { .view-in { animation: none; } }
/* bouton d'action de l'accueil (« C'est parti ») : grosse pastille fléchée */
.lp .q-cta { display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; background: var(--vin); color: #fff; text-transform: uppercase; letter-spacing: .04em; font-size: 13.5px; font-weight: 800; padding: 7px 7px 7px 20px; box-shadow: 0 10px 22px -12px var(--vin); transition: transform .2s var(--ease), background .2s; }
.lp .q-cta:hover { background: var(--vin-2); transform: translateY(-1px); }
.lp .q-cta svg { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: rgba(0, 0, 0, .22); transition: transform .25s var(--ease); }
.lp .q-cta:hover svg { transform: translateX(3px); }
:root[data-theme="dark"] .lp .q-cta { color: #1c0a12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp .q-cta { color: #1c0a12; } }
body.page-full #view { overflow-x: hidden; }
.mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
.mode-tile .mt-n { white-space: nowrap; }
.mode-tile .mt-of { grid-column: 2; }
@media (max-width: 380px) { .mode-grid { grid-template-columns: 1fr !important; } }

/* ---------- Parc : tuiles véhicule, gros numéros (façon Bus Tracker) ---------- */
.fleet { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.veh-tile { position: relative; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.veh-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.veh-tile b { font-family: var(--ff-title); font-size: 22px; letter-spacing: -.035em; }
.veh-tile.on { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }

/* ---------- Itinéraire ---------- */
.it-field { background: var(--surface-2); border: 1.5px solid transparent; border-radius: 14px; }
.it-field:focus-within { background: var(--surface); border-color: var(--vin); box-shadow: 0 0 0 4px var(--vin-soft); }
.it-field .it-dot { box-shadow: 0 0 0 3px var(--surface); }
.it-card { border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.it-card:hover { box-shadow: var(--shadow-lg); }
.it-card .it-top b { font-family: var(--ff-title); font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.it-sum b { font-family: var(--ff-title); letter-spacing: -.03em; }

/* ---------- Plan de ligne ---------- */
.diagram .nm, .diagram b { font-weight: 700; }

/* ---------- Actualités ---------- */
.news-card { border-radius: 20px !important; box-shadow: var(--shadow); overflow: hidden; }
.news-card:hover { box-shadow: var(--shadow-lg); }
.news-card h3, .news-card b { font-family: var(--ff-title); font-weight: 800; letter-spacing: -.02em; }
.article h1, .article-body h2, .article-body h3 { font-family: var(--ff-title); font-weight: 800; letter-spacing: -.03em; }

.seg button { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.it-when .seg { flex: 1; }

/* titres de familles de lignes (Tram, Lianes…) */
.fam { font-family: var(--ff-title) !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: .03em !important; font-size: 14px !important; color: var(--ink) !important; }

/* =====================================================================
   En-têtes de page en bandeau plein
   Rubriques : bandeau lie-de-vin rayé (comme l'accueil, façon Transport MEL).
   Page d'une ligne : bandeau à la couleur de la ligne (façon Bus Tracker).
   ===================================================================== */
body { --hb: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 130%); --ht: #fff; --hc: var(--brand); }
body.head-accent { --hb: var(--sec); --ht: var(--sec-t, #fff); --hc: var(--sec); }
#view .v-head, #view .v-head.scrolled {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px), var(--hb);
  color: var(--ht); border-bottom: 0; padding-bottom: 18px;
}
#view .v-head.scrolled { box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .55); }
#view .v-head h1 { color: var(--ht); }
#view .v-head h1::after { background: var(--gold); }
body.head-accent #view .v-head h1::after { background: currentColor; opacity: .55; }
#view .v-head :is(p, .muted, .kicker, .kicker-sm, small) { color: color-mix(in srgb, var(--ht) 78%, transparent) !important; }
#view .v-head > p { color: color-mix(in srgb, var(--ht) 80%, transparent); }
#view .v-head a:not(.btn):not(.back):not(.res):not(.chip) { color: var(--ht); }
#view .v-head .back { background: color-mix(in srgb, var(--ht) 14%, transparent); color: var(--ht); }
#view .v-head .back:hover { background: color-mix(in srgb, var(--ht) 24%, transparent); color: var(--ht); }
#view .v-head .icon-btn { background: color-mix(in srgb, var(--ht) 12%, transparent); border-color: color-mix(in srgb, var(--ht) 35%, transparent); color: var(--ht); }
#view .v-head .icon-btn:hover { background: color-mix(in srgb, var(--ht) 22%, transparent); }
#view .v-head .btn:not(.primary) { background: color-mix(in srgb, var(--ht) 12%, transparent); border-color: color-mix(in srgb, var(--ht) 30%, transparent); color: var(--ht); }
#view .v-head .btn:not(.primary):hover { background: color-mix(in srgb, var(--ht) 22%, transparent); }
#view .v-head .btn.primary, #view .v-head .btn.on { background: var(--ht); border-color: var(--ht); color: var(--hc); }
#view .v-head .chip:not(.ok):not(.warn):not(.bad):not(.theo):not([class*="st-"]) { background: color-mix(in srgb, var(--ht) 14%, transparent); color: var(--ht); }
#view .v-head .chip.on { background: var(--ht) !important; color: var(--hc) !important; }
#view .v-head .tabs { border-bottom-color: color-mix(in srgb, var(--ht) 22%, transparent); margin-bottom: -18px; }
#view .v-head .tabs button { color: color-mix(in srgb, var(--ht) 68%, transparent); }
#view .v-head .tabs button:hover, #view .v-head .tabs button.on { color: var(--ht); }
#view .v-head .tabs button.on, #view .v-head .tabs.has-glide > .glide { box-shadow: inset 0 -3px 0 var(--ht) !important; }
#view .v-head .tabs.has-glide button.on { box-shadow: none !important; }
#view .v-head .tabs .count, #view .v-head .tabs small { color: inherit !important; }
#view .v-head .seg { background: color-mix(in srgb, var(--ht) 13%, transparent); }
#view .v-head .seg button { color: color-mix(in srgb, var(--ht) 78%, transparent); }
#view .v-head .seg button.on { color: var(--hc); }
#view .v-head .seg.has-glide > .glide { background: var(--ht); }
/* champs blancs sur le bandeau */
#view .v-head :is(.search input, .q-field input, .field input, .field select) { background: var(--surface); color: var(--ink); border-color: transparent; }
#view .v-head .it-field { background: var(--surface); color: var(--ink); }
#view .v-head :is(.search input, .q-field input):focus, #view .v-head .it-field:focus-within { border-color: transparent; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ht) 35%, transparent); }
#view .v-head :is(.results, .it-sug, .q-sug, .notice, .card, .board, .stop-st) { color: var(--ink); }
#view .v-head .results .muted, #view .v-head :is(.it-sug, .q-sug) :is(.muted, small) { color: var(--muted) !important; }
#view .v-head .it-sw, #view .v-head [id="it-swap"] { color: var(--ht); }
/* téléphone : la poignée de la fiche prend la couleur du bandeau */
@media (max-width: 820px) {
  body:not(.page-full) .panel-handle { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px), var(--hb); }
  body:not(.page-full) .panel-handle::before { background: color-mix(in srgb, var(--ht) 45%, transparent); }
  .sheet-hide { background: color-mix(in srgb, var(--ht) 16%, transparent) !important; color: var(--ht) !important; border-color: transparent !important; box-shadow: none !important; }
}

body.head-accent #view .v-head .badge { background: var(--ht) !important; color: var(--hc) !important; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .5); }

/* ---------- Formulaires ---------- */
.field > label, .field label:not(.dd-chk) { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cats { gap: 8px; }
.cat { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 6px 12px; font-size: 12px; font-weight: 800; box-shadow: var(--shadow); }
.cat .e { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); font-size: 20px; }
.cat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cat.on { background: var(--surface); border-color: var(--vin); color: var(--ink); box-shadow: 0 0 0 3px var(--vin-soft); transform: none; }
.cat.on .e { background: var(--vin); }
/* bouton « effacer » dans les champs de l'itinéraire */
#view .it-field .icon-btn { background: var(--surface-2); border: 0; color: var(--muted); width: 30px; height: 30px; border-radius: 50%; }
#view .it-field .icon-btn:hover { background: var(--line); color: var(--ink); }

/* ---------- Écran de chargement : bandeau lie-de-vin ---------- */
.loader { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px), radial-gradient(80% 70% at 50% 35%, rgba(242, 197, 92, .14), transparent 60%), linear-gradient(160deg, var(--brand), var(--brand-deep)); color: #fff; }
.loader .ld-pin .tb-pin { fill: #fff; }
.loader .ld-pin .tb-cres { fill: var(--brand); }
.loader .ld-shadow { background: rgba(0, 0, 0, .35); }
.loader .wm-t { color: #fff; } .loader .wm-b { color: var(--gold); }
.loader .wm-ap path { fill: var(--gold); } .loader .wm-ap circle { fill: var(--brand); }
.loader .ld-wm .wm-t, .loader .ld-wm .wm-b { font-family: var(--ff-title); font-weight: 800; letter-spacing: -.03em; font-size: 34px; }
.loader .ld-say { font-style: normal; font-weight: 700; color: rgba(255, 255, 255, .9); }
.loader .ld-msg { color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 800; }
/* logo de l'en-tête en gras */
.topbar .wm-t, .topbar .wm-b { font-family: var(--ff-title); font-weight: 800; letter-spacing: -.03em; }

/* ---------- Calques ---------- */
.layers-pop { box-shadow: var(--shadow-lg) !important; border: 1px solid var(--line) !important; }
.layers-pop b { font-weight: 800; }
/* bulle d'information sur la carte */
.tip { border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lg); }

/* =====================================================================
   Fiche véhicule
   ===================================================================== */
.vh-top { display: flex; align-items: flex-start; gap: 12px; }
.vh-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vh-id small { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.vh-id b { font-family: var(--ff-title); font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; white-space: nowrap; }
.vh-id span { font-size: 14px; font-weight: 700; opacity: .85; }
.vh-follow { flex: none; margin-top: 4px; }
.vh-follow.on svg { animation: vhPulse 1.8s ease-in-out infinite; }
@keyframes vhPulse { 50% { transform: scale(1.18); } }
#view .v-head .giro { margin-top: 2px; border-radius: 14px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7), 0 0 0 1.5px rgba(255, 255, 255, .25); }
.vh-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vh-stats .chip { border-radius: 10px; padding: 6px 10px; font-size: 12.5px; }
#view .v-head .vh-stats .chip.ok { background: rgba(85, 211, 148, .2); color: #c9f5de; }
#view .v-head .vh-stats .chip.warn, #view .v-head .vh-stats .chip.late { background: rgba(247, 174, 94, .22); color: #ffe1bf; }
#view .v-head .vh-stats .chip.bad { background: rgba(255, 125, 114, .22); color: #ffd3cf; }
#view .v-head .vh-stats .chip.theo { background: rgba(108, 192, 218, .22); color: #d3f0fa; }

/* liste des arrêts de la course */
.d-stop { border-radius: 12px; transition: background .2s; }
.d-stop .tms { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; min-width: 48px; line-height: 1.1; }
.d-stop .tms .tm { font-size: 14px; font-weight: 800; color: var(--ink); }
.d-stop .tms .tm.late { color: var(--warn); }
.d-stop .tms .tm.early { color: var(--garonne); }
.d-stop .tms s { font-size: 11px; font-weight: 600; color: var(--muted); }
.d-stop.passed .nm { opacity: .5; }
.d-stop.passed .tms { opacity: .45; }
.d-stop.passed .tms s { display: none; }
.d-stop.next { background: color-mix(in srgb, var(--c) 14%, transparent); }
.d-stop.next .nm { font-weight: 800; color: var(--ink); }
.d-stop.term:not(.passed) .nm { font-weight: 800; text-transform: uppercase; font-size: 13.5px; letter-spacing: .02em; }
.diagram:has(.tms) .d-veh .tag { margin-right: 60px; }
.d-veh .pin { box-shadow: 0 0 0 3px var(--surface), 0 6px 14px -4px rgba(0, 0, 0, .5); }
.d-veh .tag { border-radius: 999px; padding: 3px 9px; }

/* =====================================================================
   Préférences du visiteur
   ===================================================================== */
.prefs-pop { position: fixed; z-index: 80; top: calc(var(--top) + 10px); right: 14px; width: min(340px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 16px; animation: viewIn .25s var(--ease) both; }
.pp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pp-h b { font-family: var(--ff-title); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.pp-x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.pp-x:hover { color: var(--ink); background: var(--line); }
.pp-x svg { width: 16px; height: 16px; }
.pp-l { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 8px; }
.prefs-pop .seg { display: flex; }
.prefs-pop .sw-row { padding: 4px 0; }
.pp-link { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 11px 12px; border-radius: 14px; background: var(--vin-soft); color: var(--vin); font-weight: 800; font-size: 13.5px; }
.pp-link span { flex: 1; } .pp-link svg { width: 18px; height: 18px; }
.pp-link[hidden] { display: none; }
.pp-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 820px) { .prefs-pop { top: calc(var(--top) + 8px); right: 12px; } }

/* =====================================================================
   Statistiques par ligne
   ===================================================================== */
.st-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.st-kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.st-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line-2); }
.st-kpi.ok::before { background: var(--ok); } .st-kpi.warn::before { background: var(--warn); } .st-kpi.bad::before { background: var(--bad); }
.st-kpi b { font-family: var(--ff-title); font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.st-kpi.ok b { color: var(--ok); } .st-kpi.warn b { color: var(--warn); } .st-kpi.bad b { color: var(--bad); }
.st-kpi span { font-size: 12.5px; font-weight: 800; }
.st-kpi small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.st-split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 18px 0 8px; background: var(--surface-2); gap: 2px; }
.st-split i, .st-leg i { background: var(--ok); }
.st-split .e, .st-leg i.e { background: var(--garonne); } .st-split .l, .st-leg i.l { background: var(--warn); }
.st-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.st-leg span { display: inline-flex; align-items: center; gap: 6px; }
.st-leg i { width: 10px; height: 10px; border-radius: 3px; }
.st-chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; height: 150px; padding: 8px 4px 0; border-bottom: 1.5px solid var(--line); }
.st-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; padding-bottom: 20px; }
.st-col i { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: var(--vin); opacity: .85; transition: opacity .2s; animation: barUp .7s var(--ease) both; transform-origin: bottom; }
@keyframes barUp { from { transform: scaleY(0); } }
.st-col i.ok { background: var(--ok); } .st-col i.warn { background: var(--warn); } .st-col i.bad { background: var(--bad); }
.st-col:hover i { opacity: 1; }
.st-col.today i { opacity: 1; }
.st-v { font-size: 10px; font-weight: 800; color: var(--muted); margin-bottom: 3px; white-space: nowrap; }
.st-col small { position: absolute; bottom: 0; font-size: 9.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.st-col.today small, .st-col.today .st-v { color: var(--ink); font-weight: 800; }
.st-note { font-size: 12px; margin-top: 16px; line-height: 1.5; }
@media (max-width: 520px) { .st-v { display: none; } .st-col small { font-size: 8.5px; } .st-chart { gap: 2px; } }
/* tableau du réseau */
.st-table { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.st-row { display: grid; grid-template-columns: 58px minmax(0, 1.3fr) minmax(130px, 1fr) 84px 70px 66px; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); transition: background .15s; }
.st-row:hover { background: var(--surface-2); }
.st-h { border-top: 0; background: var(--surface-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 9px; padding-bottom: 9px; }
.st-name { font-size: 12.5px; font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-p { display: flex; align-items: center; gap: 8px; }
.st-p b { font-size: 13px; min-width: 40px; text-align: right; }
.st-p b.ok { color: var(--ok); } .st-p b.warn { color: var(--warn); } .st-p b.bad { color: var(--bad); }
.st-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.st-bar i.warn { background: var(--warn); } .st-bar i.bad { background: var(--bad); }
.st-c { text-align: right; font-size: 13px; font-weight: 700; display: inline-flex; justify-content: flex-end; align-items: center; gap: 5px; }
.st-c .live-dot { width: 6px; height: 6px; }
@media (max-width: 700px) {
  .st-row { grid-template-columns: 52px minmax(0, 1fr) 70px 50px; padding: 10px 12px; }
  .st-name, .st-veh { display: none !important; }
}

/* =====================================================================
   Nouveautés du parc
   ===================================================================== */
.fn { margin: 4px 0 22px; }
.fn-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fn-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 10px; }
.fn-date { flex: none; width: 52px; height: 56px; border-radius: 14px; background: var(--ink); color: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.fn-date b { font-family: var(--ff-title); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.fn-date span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; opacity: .8; }
.fn-kind { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--vin); background: var(--vin-soft); padding: 2px 8px; border-radius: 999px; }
.fn-item h3 { margin: 6px 0 0; font-family: var(--ff-title); font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.fn-item p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; white-space: pre-line; }
.fn-veh { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.fn-veh span { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.fn-adm { display: flex; gap: 6px; flex: none; }
.fn-adm .icon-btn { width: 32px; height: 32px; }
.fn-adm .icon-btn svg { width: 15px; height: 15px; }
.fn-form { padding: 16px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--vin); box-shadow: 0 0 0 4px var(--vin-soft); margin-bottom: 12px; }
.fn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fn-form .field { margin-bottom: 10px; }
.fn-form :is(input, select, textarea) { width: 100%; padding: 10px 12px; }
#fn-more { display: block; margin: 2px auto 0; font-weight: 800; color: var(--vin); }
@media (max-width: 520px) { .fn-grid { grid-template-columns: 1fr; } .fn-item { flex-wrap: wrap; } .fn-adm { margin-left: auto; } }
/* bouton Préférences ouvert */
.topbar #theme.on { background: #fff; color: var(--brand); border-color: #fff; }
.tabs button svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }

/* =====================================================================
   Page Paramètres du visiteur
   ===================================================================== */
.pr-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 4px 18px 16px; margin-bottom: 14px; }
.pr-card h2 { margin-top: 16px !important; }
.pr-l { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 8px; }
.pr-card .seg { display: flex; flex-wrap: wrap; }
.pr-row { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; }
.pr-card .pr-row + .pr-row { margin-top: 0; }
.pr-hint { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.pr-link { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 11px 12px; border-radius: 14px; background: var(--vin-soft); color: var(--vin); font-weight: 800; font-size: 13.5px; }
.pr-link span { flex: 1; } .pr-link svg { width: 18px; height: 18px; } .pr-link[hidden] { display: none; }
.pr-data { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.pr-data:first-of-type { border-top: 0; }
.pr-about p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 0 0 12px; }
.pr-links { display: flex; flex-wrap: wrap; gap: 8px; }
/* taille du texte choisie */
body[data-text="grand"] :is(#view, #ribbon, .tabbar) { zoom: 1.1; }
body[data-text="tres"] :is(#view, #ribbon, .tabbar) { zoom: 1.22; }
/* animations réduites */
body.calm *, body.calm *::before, body.calm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }

/* =====================================================================
   À propos : FAQ, équipe, infos pratiques, contact
   ===================================================================== */
.ab-item { position: relative; }
.ab-adm { display: flex; gap: 4px; justify-content: flex-end; margin: 6px 0 2px; }
.ab-adm .icon-btn { width: 30px; height: 30px; }
.ab-adm .icon-btn svg { width: 15px; height: 15px; }
.ab-adm [data-up] svg { transform: rotate(90deg); } .ab-adm [data-down] svg { transform: rotate(90deg); }
.ab-adm .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.ab-add { margin-bottom: 12px; }
.ab-form { padding: 16px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--vin); box-shadow: 0 0 0 4px var(--vin-soft); margin-bottom: 12px; }
.ab-form .field { margin-bottom: 10px; }
.ab-form :is(input, select, textarea) { width: 100%; padding: 10px 12px; }
.ab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ab-colors { display: flex; gap: 8px; padding-top: 4px; }
.ab-col { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.ab-col.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); }
.ab-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 22px; padding: 20px; border-radius: 20px; color: #fff;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px), linear-gradient(160deg, var(--brand), var(--brand-deep)); }
.ab-cta b { font-family: var(--ff-title); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.ab-cta span { opacity: .85; font-size: 14px; margin-bottom: 10px; }
.ab-cta .btn.primary { background: #fff; border-color: #fff; color: var(--brand); }
/* FAQ en accordéon */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; width: 18px; height: 18px; color: var(--muted); transform: rotate(90deg); transition: transform .25s var(--ease); }
.faq-item[open] summary svg { transform: rotate(-90deg); color: var(--vin); }
.faq-item[open] summary { color: var(--vin); }
.faq-a { padding: 0 16px 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; white-space: pre-line; animation: viewIn .3s var(--ease); }
/* Équipe */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); height: 100%; }
.team-av { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: var(--c); color: #fff; font-family: var(--ff-title); font-size: 30px; font-weight: 800; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--c) 35%, transparent), 0 12px 24px -12px var(--c); }
.team-card b { font-family: var(--ff-title); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.team-role { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--vin); }
.team-card p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
/* Infos pratiques */
.infos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.info-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
a.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.info-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); }
.info-ic svg { width: 21px; height: 21px; }
.info-card b { display: block; font-family: var(--ff-title); font-size: 15.5px; font-weight: 800; letter-spacing: -.015em; }
.info-card .grow span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; line-height: 1.4; }
.info-card > svg:last-child { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
a.info-card:hover > svg:last-child { transform: translateX(3px); color: var(--ink); }
.infos-more { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
/* Contact */
.contact-f { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; }
.contact-f .field { margin-bottom: 12px; position: relative; }
.contact-f :is(input, select, textarea) { width: 100%; padding: 11px 13px; }
.contact-f textarea { resize: vertical; min-height: 140px; }
.contact-f label i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; }
.ct-count { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--muted); font-weight: 700; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 4px 0 14px; }
.ct-note a { text-decoration: underline; }
.ct-ok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ct-ok[hidden] { display: none; }
.ct-ok-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; margin-bottom: 8px; animation: emptyPop .5s var(--ease); }
@keyframes emptyPop { from { transform: scale(.4); opacity: 0; } }
.ct-ok-ic svg { width: 30px; height: 30px; }
.ct-ok b { font-family: var(--ff-title); font-size: 20px; font-weight: 800; }
.ct-ok span { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
/* Messages (admin) */
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.msg.unread { border-left: 4px solid var(--vin); }
.msg-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; }
.msg-from { margin-top: 8px; font-size: 13.5px; } .msg-from a { text-decoration: underline; }
.msg p { margin: 8px 0 10px; font-size: 14px; line-height: 1.55; white-space: pre-line; color: var(--ink-2); }
.msg-a { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 560px) { .ab-grid { grid-template-columns: 1fr; } }

/* formulaire d'édition en pleine largeur dans les grilles */
.team-grid > .ab-form, .infos-grid > .ab-form { grid-column: 1 / -1; }
