/* ===== Rocade Bordeaux v2 ===== */
:root {
  --bg: #f1f4f9;
  --surface: #fcfdfe;
  --surface-2: #f6f8fb;
  --text: #0f172a;
  --muted: #5b6577;
  --border: #e2e7ef;
  --primary: #1e40af;
  --primary-soft: #e8eefc;
  --ok: #0f8a4f;
  --ok-soft: #e3f6ec;
  --warn: #b45309;
  --warn-soft: #fdf1dc;
  --bad: #c3192d;
  --bad-soft: #fde8ea;
  --unknown: #64748b;
  --unknown-soft: #eef1f5;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .05);
  --radius: 16px;
  --topbar-h: 64px;
  --tabbar-h: 64px;
  --topbar-bg: var(--surface);
  --topbar-line: var(--border);
  --info: #0e7490;
  --info-soft: #e0f2f7;
  --on-primary: #f8fafc;
  --on-color: #f8fafc;
  --key-prevu: #111827;
  color-scheme: light;
}

/* Thème sombre : automatique (réglage du système) sauf si le visiteur force le clair */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120;
    --surface: #131b2e;
    --surface-2: #1a2338;
    --text: #e6ebf4;
    --muted: #97a3b8;
    --border: #253049;
    --primary: #7aa2ff;
    --primary-soft: #1b2748;
    --ok: #3ccf87;
    --ok-soft: #113325;
    --warn: #f5b454;
    --warn-soft: #3a2a12;
    --bad: #ff6b7a;
    --bad-soft: #3d161c;
    --unknown: #97a3b8;
    --unknown-soft: #1f2940;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --topbar-bg: var(--surface);
    --topbar-line: var(--border);
    --info: #5ec8dd;
    --info-soft: #11303a;
    --on-primary: #0b1120;
    --on-color: #f8fafc;
    --key-prevu: #e5e7eb;
    color-scheme: dark;
  }
}
/* Thème sombre choisi avec le bouton */
:root[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #131b2e;
  --surface-2: #1a2338;
  --text: #e6ebf4;
  --muted: #97a3b8;
  --border: #253049;
  --primary: #7aa2ff;
  --primary-soft: #1b2748;
  --ok: #3ccf87;
  --ok-soft: #113325;
  --warn: #f5b454;
  --warn-soft: #3a2a12;
  --bad: #ff6b7a;
  --bad-soft: #3d161c;
  --unknown: #97a3b8;
  --unknown-soft: #1f2940;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --topbar-bg: var(--surface);
  --topbar-line: var(--border);
  --info: #5ec8dd;
  --info-soft: #11303a;
  --on-primary: #0b1120;
  --on-color: #f8fafc;
  --key-prevu: #e5e7eb;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* hidden doit toujours gagner sur les display: flex/grid des composants */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2 { margin: 0; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: .5rem 0; }
.small { font-size: .8125rem; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; border-radius: 12px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ----- Barre du haut ----- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar-bg); border-bottom: 1px solid var(--topbar-line);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.125rem; font-weight: 700; white-space: nowrap; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.topnav { display: none; gap: 4px; margin-left: 24px; align-self: stretch; }
.topnav a {
  display: flex; align-items: center; padding: 0 14px; color: var(--muted); font-size: .9375rem; font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.topnav a:hover { color: var(--text); text-decoration: none; }
.topnav a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  background: transparent; color: var(--text); border: 0; border-radius: 999px; cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ico-sun { display: none; }
/* En sombre on propose le soleil (passer en clair), en clair la lune */
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .ico-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .ico-moon { display: none; }
}
.refresh {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  background: var(--primary-soft); color: var(--primary); border: 1px solid transparent; border-radius: 12px;
  font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.refresh:hover { border-color: var(--primary); }
.refresh svg { width: 18px; height: 18px; }
.refresh.loading svg { animation: spin 1s linear infinite; }
@media (max-width: 639px) {
  .refresh { padding: 0; width: 40px; justify-content: center; }
  .refresh-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .refresh.loading svg { animation: none; opacity: .5; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Retour tactile : léger enfoncement au clic */
.refresh, .theme-toggle, .tabs button, .btn, .link-card, .tabbar a, .kpi, .quick-item, .seg button, .fav, .stations .st-card {
  transition: transform .12s ease-out, background-color .15s ease-out, border-color .15s ease-out;
}
.refresh:active, .theme-toggle:active, .tabs button:active, .btn:active, .seg button:active, .fav:active { transform: scale(.97); }
.link-card:active, .kpi:active, .quick-item:active, .stations .st-card:active { transform: scale(.99); }
.tabbar a:active { transform: translateY(1px); }

#main { padding-top: 8px; }

/* ----- Titre de page ----- */
/* Titre lu par Google et les lecteurs d'écran, invisible à l'écran */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.updated { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 0 auto; font-size: .8125rem; line-height: 1.35; white-space: nowrap; }
.updated > span:last-child { display: flex; flex-direction: column; }
@media (max-width: 639px) {
  .upd-label, .upd-sub { display: none; }
  .updated { align-items: center; }
  .live-dot { margin-top: 0 !important; }
}
/* Point vert = données en direct (état réel, pas décoratif) */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-top: 4px; box-shadow: 0 0 0 4px var(--ok-soft); flex: none; }

/* ----- Indicateurs ----- */
.kpis { display: grid; gap: 10px; margin-bottom: 10px; }
.kpi {
  --c: var(--unknown); --c-soft: var(--unknown-soft);
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
}
.kpi:hover { text-decoration: none; border-color: var(--c); }
.kpi-ok { --c: var(--ok); --c-soft: var(--ok-soft); }
.kpi-warn { --c: var(--warn); --c-soft: var(--warn-soft); }
.kpi-bad { --c: var(--bad); --c-soft: var(--bad-soft); }
.kpi-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-soft); color: var(--c); display: grid; place-items: center; }
.kpi-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpi-txt { display: flex; flex-direction: column; min-width: 0; }
.kpi-value { font-size: 1.0625rem; line-height: 1.3; font-weight: 800; color: var(--c); letter-spacing: -.01em; }
@media (max-width: 639px) {
  /* Mobile : les 3 indicateurs sur une ligne, en pastilles colorées */
  .kpis { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
  .kpi { justify-content: center; padding: 6px 4px; min-height: 44px; background: var(--c-soft); border-color: transparent; text-align: center; }
  .kpi-ico { display: none; }
  .kpi-value { font-size: .8125rem; line-height: 1.2; }
}

/* ----- Cartes / grille ----- */
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 16px; margin-bottom: 16px; min-width: 0;
}
.grid > .card { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.empty { color: var(--muted); padding: 12px 0; }

.pill { font-size: .8125rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { color: var(--ok); background: var(--ok-soft); }
.pill-warn { color: var(--warn); background: var(--warn-soft); }
.pill-bad { color: var(--bad); background: var(--bad-soft); }

/* ----- Carte trafic ----- */
.map-wrap { position: relative; }
.map { position: relative; display: block; aspect-ratio: 534 / 500; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
/* rocade.png (550x600) : la carte occupe 8..542 x 8..508, le reste est une marge blanche de la capture.
   On agrandit l'image pour ne montrer que la zone carte. */
.map img { position: absolute; top: -1.6%; left: -1.5%; width: 103%; height: 118.4%; max-width: none; object-fit: cover; object-position: center top; }
.legend {
  position: absolute; left: 12px; bottom: 12px; display: flex; gap: 14px; flex-wrap: wrap;
  padding: 7px 12px; border-radius: 12px; background: var(--surface); color: var(--text);
  font-size: .8125rem; font-weight: 500; box-shadow: var(--shadow);
}
.legend span { display: flex; align-items: center; gap: 6px; }
/* Mobile : légende masquée pour laisser toute la place à la carte */
@media (max-width: 639px) { #trafic .legend { display: none; } }
.lg { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.lg-ok { background: #22c55e; } .lg-warn { background: #f59e0b; } .lg-bad { background: #ef4444; }

/* ----- Temps de parcours ----- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.seg button {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 12px;
  font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.seg button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.seg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.routes { list-style: none; margin: 0; padding: 0; }
.route { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--border); }
.route:last-child { border-bottom: 0; }
.routes.fav-only .route:not(.is-fav) { display: none; }
.route-main { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.route-name { font-size: .9375rem; font-weight: 500; }
.route-hint { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.route-arrow { color: var(--muted); margin: 0 2px; }
.route-time { font-size: 1.0625rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 58px; text-align: right; color: var(--ok); }
.route.is-late .route-time { color: var(--warn); }
.badge-route { flex: none; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.badge-warn { color: var(--warn); background: var(--warn-soft); }
.fav { flex: none; width: 32px; height: 32px; margin-right: -4px; display: grid; place-items: center; border: 0; background: transparent; color: var(--primary); border-radius: 999px; cursor: pointer; }
.fav:hover { background: var(--surface-2); }
.fav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; color: var(--primary); background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

/* ----- Accès rapides ----- */
.quick { display: grid; gap: 12px; margin-bottom: 16px; }
.quick-item { display: flex; align-items: center; gap: 14px; margin-bottom: 0; color: var(--text); }
a.quick-item:hover { text-decoration: none; border-color: var(--primary); }
.q-ico { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.q-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.q-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.q-txt strong { font-size: 1rem; }
.q-chev { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----- Prévisions du trafic ----- */
.forecast { flex-wrap: wrap; }
.fc-txt { min-width: 0; flex: 1; }
.fc-txt h2 { font-size: 1rem; }
.fc-txt p { margin: 2px 0 0; color: var(--muted); font-size: .875rem; }
.fc-chart { min-width: 0; flex: 1 1 100%; }
.fc-bars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; align-items: end; height: 40px; }
.fc-bar { display: block; border-radius: 2px 2px 0 0; min-height: 3px; }
.fc-ok { background: #34c07a; }
.fc-warn { background: #f5a445; }
.fc-bad { background: #e5484d; }
.fc-bar.is-past { opacity: .35; }
.fc-bar.is-now { outline: 2px solid var(--text); outline-offset: 1px; }
.fc-axis { display: grid; grid-template-columns: repeat(var(--n), 1fr); margin-top: 6px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.fc-axis span { white-space: nowrap; transform: translateX(-25%); }
@media (max-width: 639px) {
  }

/* ----- Détail des prévisions ----- */
.is-clickable { cursor: pointer; }
.is-clickable:hover { border-color: var(--primary); }
.fc-dialog {
  width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto;
  padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.fc-dialog::backdrop { background: rgba(15, 23, 42, .5); }
.fcd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fcd-head p { margin: 4px 0 0; }
.fcd-close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.fcd-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fcd-facts { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.fcd-facts li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.fcd-facts strong { font-size: 1.125rem; }
.fcd-plot { display: flex; gap: 6px; margin-top: 8px; }
.fcd-yaxis { position: relative; width: 44px; flex: none; font-size: .6875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fcd-yaxis span { position: absolute; right: 0; transform: translateY(50%); white-space: nowrap; }
.fcd-curve { position: relative; flex: 1; min-width: 0; touch-action: pan-y; cursor: crosshair; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fcd-curve svg { position: relative; display: block; width: 100%; height: 260px; }
.fcd-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--border); }
.fcd-curve path, .fcd-curve line { vector-effect: non-scaling-stroke; }
/* Couleurs des enveloppes reprises du graphique Bordeaux Métropole */
.b-ok { fill: #a6d854; opacity: .75; }
.b-warn { fill: #fc8d62; opacity: .7; }
.b-bad { fill: #ff4d4f; opacity: .75; }
.c-prev { fill: none; stroke: var(--text); stroke-width: 2; stroke-dasharray: 6 4; }
.c-real { fill: none; stroke: #1d23ff; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
:root[data-theme="dark"] .c-real { stroke: #8ea2ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-real { stroke: #8ea2ff; } }
/* Heure actuelle : ligne rouge + étiquette HH:MM */
.c-now { stroke: #e5484d; stroke-width: 2; }
.now-label {
  position: absolute; top: 4px; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px;
  background: #e5484d; color: #fff; font-size: .6875rem; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none;
}
.c-cursor { stroke: var(--text); stroke-width: 1.5; }
.fcd-hours { position: relative; height: 18px; margin: 4px 0 0 50px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.fcd-hours span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.fcd-hours span:first-child { transform: none; }
.fcd-hours span:last-child { transform: translateX(-100%); }
.fcd-info { min-height: 1.5em; margin: 12px 0; font-weight: 600; font-size: .9375rem; }
.fcd-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); margin-bottom: 6px; }
.fcd-legend span { display: flex; align-items: center; gap: 6px; }
.lgb { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lgl { width: 18px; height: 0; display: inline-block; }
.lgl-prev { border-top: 2px dashed var(--text); }
.lgl-real { border-top: 3px solid #1d23ff; }
.b-ok-b { background: #a6d854; }
.b-warn-b { background: #fc8d62; }
.b-bad-b { background: #ff4d4f; }
@media (max-width: 639px) {
  /* Mobile : panneau qui monte depuis le bas */
  .fc-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  }

/* ----- Alertes ----- */
.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.alert { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--warn-soft); }
.alert-bad { background: var(--bad-soft); }
.alert-ico { width: 20px; height: 20px; flex: none; color: var(--warn); margin-top: 2px; }
.alert-bad .alert-ico { color: var(--bad); }
.alert-body { min-width: 0; font-size: .9375rem; }
.alert-title { display: block; margin-bottom: 2px; }
.alert-text { margin: 0; }
.alert-text ul { padding-left: 18px; margin: 6px 0; }
.alert-text li { margin-bottom: 6px; }
.alert details summary { cursor: pointer; list-style: none; }
.alert details summary::-webkit-details-marker { display: none; }
.alert details[open] summary { display: none; }
.more { color: var(--primary); font-weight: 600; white-space: nowrap; }

/* ----- Pont Chaban ----- */
.closures { list-style: none; margin: 8px 0 12px; padding: 0; }
.closures li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; }
.closures li:last-child { border-bottom: 0; }
.closures li.is-now { background: var(--bad-soft); margin: 0 -8px; padding: 10px 8px; border-radius: 12px; }
.cl-when { display: flex; flex-direction: column; min-width: 118px; }
.cl-day { font-weight: 700; font-size: .9375rem; }
.cl-hours { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .875rem; }
.cl-what { font-size: .875rem; min-width: 0; overflow-wrap: anywhere; }
.link-out { font-size: .875rem; font-weight: 600; }
.link-out::after { content: " ↗"; }

/* ----- iframes ----- */

/* ----- Carburants ----- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 40px;
}
.tabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.stations { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.stations li { counter-increment: st; border-bottom: 1px solid var(--border); }
.stations li:last-child { border-bottom: 0; }
.stations .st-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; color: var(--text); border-radius: 12px;
  border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.stations .st-card:hover { background: var(--surface-2); }
.price { font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums; min-width: 86px; color: var(--ok); }
.price small { font-weight: 500; font-size: .75rem; color: var(--muted); }
.stations li:nth-child(n+4) .price { color: var(--text); }
.station { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.station strong { font-size: .9375rem; }
.station .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date { flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: 12px; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: .9375rem;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { background: var(--primary-soft); color: var(--primary); }

/* ----- Stations autour de moi ----- */
.btn { border: 0; font-family: inherit; cursor: pointer; gap: 8px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn[disabled] { opacity: .7; cursor: progress; }
.near-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0; }
.near-title { margin: 0; font-weight: 700; }
.near-msg { margin: 6px 0; color: var(--muted); font-size: .9375rem; }
.near-msg.is-error { color: var(--bad); }
.km { flex: none; font-size: .8125rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
#carburant.near-mode .tabs + .stations, #carburant.near-mode .stations[role="tabpanel"] { display: none; }

/* ----- Actualités ----- */
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.news li:last-child { border-bottom: 0; }
.news a { color: var(--text); font-weight: 600; font-size: .9375rem; }

/* ----- Infos pratiques ----- */
.links { display: grid; grid-template-columns: 1fr; gap: 10px; }
.link-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.link-card:hover { text-decoration: none; border-color: var(--primary); }
.link-card:hover .link-ext { color: var(--primary); }
.link-ico, .link-ext { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link-ico { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.link-ext { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.link-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }

/* ----- Sorties ----- */
.search {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; padding: 0 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.search:focus-within { border-color: var(--primary); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; padding: 12px 0; width: 100%; outline: none; }
.exits { list-style: none; margin: 0; padding: 0; column-gap: 28px; }
.exits li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9375rem; break-inside: avoid; }
.exit-num {
  flex: none; min-width: 44px; height: 28px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center;
  background: #0b6e3a; color: var(--on-color); font-weight: 800; font-size: .8125rem; white-space: nowrap;
}
/* Échangeurs autoroutiers : cartouche bleu comme la signalisation */
.exit-num-a { background: #1d4ed8; }
.exit-info { display: flex; flex-direction: column; min-width: 0; }
.exit-road { font-size: .875rem; }
.exit-sens { font-size: .75rem; font-weight: 600; color: var(--warn); }
.exits li.exit-bridge { justify-content: center; gap: 6px; color: var(--muted); font-size: .8125rem; font-style: italic; border-bottom-style: dashed; }
.exits li.exit-bridge::before { content: "≈"; font-style: normal; color: #38bdf8; }
.exits mark { background: var(--warn-soft); color: inherit; border-radius: 2px; }
.exit-map { margin-top: 14px; }
.exit-map summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.exit-map img { margin-top: 10px; border-radius: 12px; background: #fff; }

/* ----- Pub ----- */
.ad { margin: 0 0 16px; width: 100%; min-width: 250px; border-radius: var(--radius); overflow: hidden; }
/* Emplacement sans annonce : on le masque au lieu de laisser un cadre blanc */
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad ins[data-ad-status="unfilled"] { display: none !important; }

/* ----- Pied de page ----- */
.footer { padding: 24px 0 32px; color: var(--muted); font-size: .875rem; text-align: center; }
.footer p { margin: 4px 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 8px 0; font-size: .8125rem; }

/* ----- Barre d'onglets mobile ----- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
}
.tabbar a {
  position: relative; height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: .6875rem; font-weight: 600;
}
.tabbar a:hover { text-decoration: none; }
.tabbar a.active { color: var(--primary); }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .badge {
  position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--bad); color: var(--on-color); font-size: .6875rem; display: grid; place-items: center;
}

/* ===== Tablette ===== */
@media (min-width: 640px) {
  .links { grid-template-columns: repeat(2, 1fr); }
  .exits { columns: 2; }
}

/* ===== Desktop ===== */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  #main { padding-top: 10px; }
  .grid-main { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  /* Prévisions compactes : texte réduit, le graphique prend le reste de la largeur */
  .quick .forecast { flex-wrap: nowrap; gap: 12px; padding: 8px 14px; }
  .forecast .q-ico { width: 36px; height: 36px; }
  .forecast .q-ico svg { width: 20px; height: 20px; }
  .fc-txt { flex: 0 0 auto; max-width: 170px; }
  .fc-txt h2 { font-size: .9375rem; }
  .fc-txt p { font-size: .8125rem; line-height: 1.3; }
  .fc-chart { flex: 1 1 auto; max-width: none; margin-left: 0; }
  .forecast .fc-bars { height: 36px; gap: 2px; }
  .forecast .fc-axis { margin-top: 2px; font-size: .6875rem; }
  /* Temps de parcours à la hauteur de la carte : les trajets se répartissent */
  .grid-top { align-items: stretch; }
  .grid-top #parcours { display: flex; flex-direction: column; }
  .grid-top .routes:not(.fav-only) { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
  .card { padding: 20px 22px; }
  h2 { font-size: 1.25rem; }
  .links { grid-template-columns: repeat(3, 1fr); }
  .exits { columns: 3; }
}

/* ----- Icônes Phosphor (duotone) ----- */
svg.ph { fill: currentColor !important; stroke: none !important; }
/* Étoile favori active : la couche claire devient pleine */
.fav[aria-pressed="true"] svg.ph path[opacity] { opacity: 1; }
.fav[aria-pressed="true"] svg.ph { fill: #f5b301 !important; }
@media (min-width: 1024px) { .quick { grid-template-columns: 2fr 1fr; } }
/* Mobile : la flèche des prévisions reste en haut à droite au lieu de passer sous le graphique */
@media (max-width: 1023px) {
  .forecast { position: relative; padding-right: 40px; }
  .forecast > .q-chev { position: absolute; top: 18px; right: 14px; }
}

/* ----- Webcams en fenêtre ----- */
.cam-dialog { width: min(1100px, calc(100% - 48px)); }
.cam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 10px; }
.cam-big { margin: 0; }
.cam-big video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 12px; background: #0f172a; object-fit: cover; }
.cam-big figcaption { margin-top: 6px; font-weight: 600; font-size: .9375rem; }
/* Carte Webcams : titre sur une ligne, vignette plus petite */
.cam-quick .q-txt strong { white-space: nowrap; }
@media (min-width: 1024px) {
  .quick { grid-template-columns: 2fr 1fr; }
  .quick .cam-quick { padding: 8px 14px; gap: 12px; }
  .cam-quick .q-ico { width: 36px; height: 36px; }
  .cam-quick .q-ico svg { width: 20px; height: 20px; }
}
@media (max-width: 639px) { .cam-grid { grid-template-columns: 1fr; } }

/* ----- Parcs relais et tram ----- */
.pr-title { display: flex; align-items: center; gap: 8px; }
.pr-title svg { width: 24px; height: 24px; color: var(--primary); }
.pr-summary { margin: 0 0 12px; font-size: .9375rem; }
.pr-summary strong { font-size: 1.125rem; color: var(--ok); margin-right: 4px; }
.pr-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.pr-filters::-webkit-scrollbar { display: none; }
.pr-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 12px 0 8px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
  font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.pr-chip[data-line=""] { padding-left: 12px; }
.pr-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tram-badge {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  color: #fff; font-size: .75rem; font-weight: 800; line-height: 1; background: #64748b;
}
.tram-a { background: #8e2d8a; } .tram-b { background: #d62839; } .tram-c { background: #d4508d; }
.tram-d { background: #7a5bb5; } .tram-e { background: #0e7c86; } .tram-f { background: #c46a12; }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pr-item.is-hidden { display: none; }
.pr-item .pr-card {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
}
.pr-item .pr-card:hover { border-color: var(--primary); }
.pr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pr-name { font-size: .9375rem; }
.pr-lines { display: flex; gap: 3px; flex: none; }
.pr-count strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pr-bar { display: block; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.pr-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.pr-warn .pr-bar i { background: var(--warn); }
.pr-bad .pr-bar i { background: var(--bad); }
.pr-state { font-weight: 600; color: var(--ok); }
.pr-warn .pr-state { color: var(--warn); }
.pr-bad .pr-state, .pr-closed .pr-state { color: var(--bad); }
.pr-unknown .pr-state { color: var(--muted); }
.pr-closed a { opacity: .7; }
#prMore { display: flex; margin: 12px 0 0 auto; }
.pr-source { margin: 8px 0 0; }
@media (min-width: 640px) { .pr-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pr-list { grid-template-columns: repeat(3, 1fr); } }

/* ----- Carte des parcs relais (Leaflet) ----- */
.pr-head-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pr-map-btn { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.pr-map-btn svg { width: 18px; height: 18px; }
.pr-map-dialog { width: min(1100px, calc(100% - 48px)); }
.pr-map { height: min(68vh, 620px); margin-top: 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.pr-map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--muted); }
.pr-map-legend span { display: flex; align-items: center; gap: 6px; }
.pm-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.pm-ok { background: #16a34a; } .pm-warn { background: #d97706; } .pm-bad { background: #dc2626; } .pm-off { background: #64748b; }
.pm-pop { font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-width: 180px; }
.pm-pop strong { display: block; font-size: 15px; }
.pm-pop .pm-lines { display: flex; gap: 3px; margin: 4px 0; }
.pm-pop .pm-free { font-size: 18px; font-weight: 800; }
.pm-pop a { font-weight: 600; }
/* Thème sombre : fond de carte assombri (les tuiles OpenStreetMap sont claires) */
:root[data-theme="dark"] .pr-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); }
@media (max-width: 639px) {
  .pr-map { height: 62vh; }
  .pr-map-btn { width: 100%; justify-content: center; }
}
/* ----- Parcs relais : recherche, autour de moi, tracés sur la carte ----- */
.pr-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.pr-search { flex: 1; margin: 0; }
.pr-search input { padding: 9px 0; }
.pr-near-btn { flex: none; min-height: 42px; font-size: .875rem; }
.pr-near-btn svg { width: 18px; height: 18px; }
.pr-near-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.pr-dist { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .75rem; }
.lgl-rocade, .lgl-tram { width: 22px; height: 5px; border-radius: 3px; display: inline-block; }
.lgl-rocade { background: #1f5f6e; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(0,0,0,.15); }
.lgl-tram { background: linear-gradient(90deg, #8e2d8a 0 16%, #d62839 16% 33%, #d4508d 33% 50%, #7a5bb5 50% 66%, #0e7c86 66% 83%, #c46a12 83%); }
.leaflet-control-layers label { display: flex; align-items: center; }
.leaflet-control-layers .tram-badge { width: 16px; height: 16px; font-size: .625rem; margin: 0 5px 0 3px; }
.lc-swatch { display: inline-block; width: 16px; height: 5px; border-radius: 3px; margin: 0 5px 0 3px; }
@media (max-width: 639px) {
  .pr-tools { flex-wrap: wrap; }
  .pr-near-btn { width: 100%; justify-content: center; }
}
/* ----- Parkings ----- */
.pk-sector { flex: none; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); }
.pk-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pk-price { font-weight: 700; color: var(--text); white-space: nowrap; }
.pk-extra { display: flex; flex-wrap: wrap; gap: 2px 12px; }
/* ----- Fiche détaillée d'un parking ----- */
.pd-dialog { width: min(560px, calc(100% - 32px)); }
.pd-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pd-live { margin: 16px 0; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.pd-live .pd-count { font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pd-live .pr-bar { height: 8px; margin: 8px 0 6px; }
.pd-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 16px; }
.pd-facts div { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
.pd-facts dt { font-size: .75rem; color: var(--muted); }
.pd-facts dd { margin: 2px 0 0; font-weight: 700; }
.pd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 160px; }
.pd-actions svg { width: 18px; height: 18px; }
.pm-pop .pm-more { margin-left: 12px; padding: 0; border: 0; background: none; color: #1e40af; font: inherit; font-weight: 600; cursor: pointer; }
.pd-tariffs { margin: 0 0 16px; }
.pd-tariffs h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 4px; }
.pd-tariffs table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.pd-tariffs td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.pd-tariffs td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pd-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
/* ----- Fiche station carburant ----- */
.sd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 12px 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); }
.sd-fuel { font-weight: 700; color: var(--primary); }
.sd-price strong { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sd-price strong small { font-size: .875rem; font-weight: 600; }
.sd-price .muted { flex-basis: 100%; }
.sd-section { font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
.sd-hours { width: 100%; border-collapse: collapse; font-size: .875rem; }
.sd-hours td { padding: 4px 0; }
.sd-hours td:last-child { text-align: right; }
.sd-hours tr.is-today td { font-weight: 700; }
.sd-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sd-services span { font-size: .8125rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.sd-badge { display: inline-block; margin-top: 4px; font-size: .8125rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }

/* ----- Pastilles d'enseigne (sigle aux couleurs de la marque) ----- */
.brand { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: .8125rem; font-weight: 900;
  letter-spacing: -.03em; line-height: 1; color: #fff; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.brand svg { width: 20px; height: 20px; color: var(--muted); }
.bl-total { background: linear-gradient(135deg, #e4032e 0%, #f39200 55%, #0068b4 100%); }
.bl-intermarche { background: #e2001a; }
.bl-leclerc { background: #005aa9; box-shadow: inset 0 -4px 0 #f18a00; font-size: .6875rem; }
.bl-u { background: #fff; color: #0055a4; box-shadow: inset 0 0 0 2px #e3001b; font-size: 1.0625rem; }
.bl-esso { background: #fff; color: #e30613; box-shadow: inset 0 0 0 2px #003b8f; font-size: 1rem; }
.bl-carrefour { background: #004e9f; box-shadow: inset 0 -4px 0 #e2001a; font-size: 1rem; }
.bl-auchan { background: #e3001b; box-shadow: inset 0 -4px 0 #2e9c3f; font-size: 1rem; }
.bl-avia { background: #e30613; font-size: .75rem; }
.bl-shell { background: #ffd500; color: #dd1d21; font-size: 1rem; }
.bl-bp { background: #009b3a; color: #ffe600; font-size: .9375rem; }
.bl-netto { background: #ffe500; color: #1d1d1b; font-size: 1rem; }
.bl-spar { background: #00843d; box-shadow: inset 0 -4px 0 #e2001a; font-size: 1rem; }
.bl-casino { background: #00923f; font-size: 1rem; }
.bl-dyneff { background: #004a98; font-size: 1rem; }
.bl-eni { background: #ffd200; color: #1d1d1b; font-size: 1.0625rem; }
.brand.has-logo { background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.brand img { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; }
#sdName .brand img { width: 28px; height: 28px; }
#sdName { display: flex; align-items: center; gap: 10px; }
#sdName .brand { width: 38px; height: 38px; }
/* ----- Raccourcis vers les rubriques (sous les Prévisions) ----- */
.quick { margin-bottom: 10px; }
.shortcuts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; padding: 2px 0; }
.shortcuts::-webkit-scrollbar { display: none; }
.shortcuts a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.shortcuts a:hover { text-decoration: none; border-color: var(--primary); }
.shortcuts svg { width: 18px; height: 18px; color: var(--primary); }
@media (min-width: 1024px) { .shortcuts { flex-wrap: wrap; overflow: visible; } }
/* ----- Carte des stations carburant : étiquettes de prix ----- */
.fm-pin { background: none; border: 0; }
.fm-tag { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 7px)); display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px 4px 5px; border-radius: 999px; background: #fff; color: #0f172a; font: 800 12.5px/1 system-ui, sans-serif; white-space: nowrap; width: max-content;
  box-shadow: 0 2px 8px rgba(0,0,0,.3); border: 2px solid #1f5f6e; cursor: pointer; }
.fm-tag::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -6px; border: 6px solid transparent; border-top-color: #1f5f6e; border-bottom: 0; }
.fm-tag.is-top { border-color: #16a34a; }
.fm-tag.is-top::after { border-top-color: #16a34a; }
.fm-tag img { flex: none; width: 16px !important; height: 16px !important; border-radius: 3px; object-fit: contain; }
/* ----- Carburants : onglets et boutons sur la même ligne ----- */
.fuel-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.fuel-bar .tabs { margin-bottom: 0; padding-bottom: 0; }
.fuel-bar .fuel-actions { margin-top: 0; gap: 6px; }
.fuel-bar .fuel-actions .btn { min-height: 38px; padding: 7px 12px; font-size: .875rem; }
.fuel-bar .fuel-actions svg { width: 18px; height: 18px; }
@media (max-width: 639px) {
  .fuel-bar .fuel-actions { flex-wrap: wrap; width: 100%; }
  .fuel-bar .fuel-actions::-webkit-scrollbar { display: none; }
  .fuel-bar .fuel-actions .btn { flex: none; }
}
.pr-map-dialog.is-fuel .pm-park { display: none; }
/* ----- Météo ----- */
.wx-ico { width: 36px; height: 36px; flex: none; }
.wx-now { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.wx-now .wx-big { width: 60px; height: 60px; }
.wx-temp { font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.wx-desc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wx-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wx-days li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.wx-day { font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.wx-mm { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-rain { color: var(--muted); white-space: nowrap; }
.wx-rain.is-wet { color: #3b82f6; font-weight: 700; }
.wx-src { margin: 10px 0 0; }
/* Pont Chaban et Météo à la même hauteur : les prévisions occupent l'espace libre */
.grid-same { align-items: stretch; }
#meteo { display: flex; flex-direction: column; }
#meteo .wx-days { flex: 1; }
#meteo .wx-days li { justify-content: center; gap: 8px; }
#meteo .wx-days .wx-ico { width: 44px; height: 44px; }
.wx-sun { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin: 14px 0 0; color: var(--muted); }
.wx-sun span { display: inline-flex; align-items: center; gap: 6px; }
.wx-sun .wx-ico { width: 22px; height: 22px; }
.wx-src { margin-top: 10px; }
/* Prochaines heures (pas de 2 h) */
.wx-hours { list-style: none; margin: 0 0 12px; padding: 10px 4px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wx-hours li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.wx-hours .wx-ico { width: 30px; height: 30px; }
.wx-hours strong { font-variant-numeric: tabular-nums; }
/* ----- Questions fréquentes ----- */
.faq { display: grid; gap: 14px 28px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; } }
.faq-item h3 { font-size: 1rem; margin: 0 0 4px; }
.faq-item p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
