/* Vigie feux — « salle de veille » publique (/vigie-feux), étape 1.
   Scène MapLibre plein cadre + HUD façon app 1.25 (hub capsule haut-gauche,
   dock bas-droite, panneaux, barre temps). Palette site.css (--navy/--surface/
   --fire…). CSS externe imposé par la CSP (zéro <style> inline).
   Le bloc « legacy » en fin de fichier sert encore /vigie-feux/archive.
   Étape 4 : la 3D vit DANS cette page (classe .is-3d sur la scène), plus de /3d. */

/* ── Scène ─────────────────────────────────────────────────────── */
.vf-sec { padding: 0 !important; }
.vf-scene {
    position: relative; overflow: hidden; background: #070d18; isolation: isolate;
    height: calc(100dvh - 77px); min-height: 520px;   /* 77 = header 76 + bordure */
    font-family: 'Inter', system-ui, sans-serif;
    --vf-hud-bg: rgba(11, 22, 40, .84);
    --vf-hud-bd: rgba(79, 195, 247, .16);
    --vf-glass: blur(12px) saturate(1.2);
}
.vf-map { position: absolute; inset: 0; background: #070d18; }
.vf-map canvas:focus { outline: none; }
.vf-scene.is-armed::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 6;
    box-shadow: inset 0 0 0 1px rgba(79, 195, 247, .35);
}
/* Overlays purement visuels (aucun événement pointeur). */
.vf-tint { position: absolute; inset: 0; pointer-events: none; z-index: 2; background: #1c2f52; mix-blend-mode: multiply; opacity: 0; transition: opacity .4s; }
.vf-scene.base-osm .vf-tint { opacity: .9; }
.vf-grid {
    position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: .9;
    background-image: linear-gradient(rgba(79, 195, 247, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 195, 247, .045) 1px, transparent 1px);
    background-size: 64px 64px;
}
.vf-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 4; background: radial-gradient(ellipse at center, transparent 55%, rgba(4, 9, 18, .55) 100%); }
.vf-windcvs { position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .6s; }
.vf-scene.has-wind .vf-windcvs { opacity: .85; }
.vf-fx { position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .5s; }
.vf-scene.is-ops .vf-fx { opacity: 1; }
/* Balayage radar : une seule rotation au chargement. */
.vf-sweep { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; opacity: 0; }
.vf-sweep::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(79, 195, 247, 0) 0deg, rgba(79, 195, 247, 0) 300deg, rgba(79, 195, 247, .10) 345deg, rgba(79, 195, 247, .26) 360deg);
}
.vf-sweep.is-on { animation: vf-sweep-fade 3.2s linear 1 forwards; }
.vf-sweep.is-on::before { animation: vf-sweep 3.2s cubic-bezier(.3, .1, .5, 1) 1 forwards; }
@keyframes vf-sweep { to { transform: rotate(360deg); } }
@keyframes vf-sweep-fade { 0% { opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

/* MapLibre : contrôles au thème sombre, au-dessus de la teinte (z 2) et de la grille. */
.vf-scene .maplibregl-control-container > * { z-index: 9; }
.vf-scene .maplibregl-ctrl-group { background: var(--vf-hud-bg); border: 1px solid var(--vf-hud-bd); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); backdrop-filter: var(--vf-glass); -webkit-backdrop-filter: var(--vf-glass); }
.vf-scene .maplibregl-ctrl-group button { width: 34px; height: 34px; }
.vf-scene .maplibregl-ctrl-group button + button { border-top-color: rgba(255, 255, 255, .08); }
.vf-scene .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) opacity(.85); }
.vf-scene .maplibregl-ctrl-top-right { top: 12px; right: 12px; }
.vf-scene .maplibregl-ctrl-bottom-left { bottom: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.vf-scene .maplibregl-ctrl-bottom-left .maplibregl-ctrl { margin-bottom: 6px; }
.vf-scene .maplibregl-ctrl-scale { background: rgba(7, 13, 24, .6); color: #b9c7da; border-color: #3a4d6e; font-size: 10px; }
.vf-scene .maplibregl-ctrl-attrib { background: rgba(7, 13, 24, .7); color: #7f8fa8; font-size: 10px; }
.vf-scene .maplibregl-ctrl-attrib a { color: #9fb0c8; }
.vf-scene .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(7, 13, 24, .7); }
.vf-scene .maplibregl-cooperative-gesture-screen { background: rgba(7, 13, 24, .7); color: #E6EDF6; font-size: 14px; }

/* ── Étiquettes HTML (marqueurs), affichage selon zoom ──────────── */
.vf-lbl {
    display: none; pointer-events: auto; cursor: pointer; white-space: nowrap;
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px; line-height: 1; padding: 3px 7px; border-radius: 6px;
    background: rgba(7, 13, 24, .78); border: 1px solid rgba(255, 255, 255, .1); color: #E6EDF6;
    text-shadow: 0 0 3px #000; box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.vf-lbl b { font-weight: 700; }
.vf-lbl em { font-style: normal; font-size: 9px; letter-spacing: .5px; text-transform: uppercase; opacity: .85; }
.vf-lbl--fire { border-color: rgba(255, 107, 53, .45); }
.vf-lbl--new b { color: #FFF1D6; } .vf-lbl--persist b { color: #FF8A3D; } .vf-lbl--hot b { color: #FF3B30; } .vf-lbl--reprise b { color: #C99CFF; }
.vf-lbl--ac { border-color: rgba(79, 195, 247, .4); color: #cfe9ff; }
.vf-scene.vf-z8:not(.no-labels):not(.no-fires) .vf-lbl--fire { display: block; }
.vf-scene.vf-z7:not(.no-labels):not(.no-ac) .vf-lbl--ac { display: block; }
/* Étape 3 : étiquettes T+ de la projection moteur (vue feu), pas cliquables. */
.vf-lbl--fc { border-color: rgba(79, 195, 247, .55); color: #cfe9ff; cursor: default; pointer-events: none; }
.vf-lbl--fc b { color: #4FE3FF; }
.vf-scene.is-fire:not(.no-labels):not(.no-fc) .vf-lbl--fc { display: block; }
.vf-scene .maplibregl-marker { z-index: 7; }

/* ── Fiabilité (badge, fantômes) ───────────────────────────────── */
.vf-rel {
    display: inline-block; vertical-align: 1px; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 700; letter-spacing: .4px; line-height: 1;
    padding: 3px 6px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap;
}
.vf-rel--confirme { color: #5FE0A0; background: rgba(52, 199, 89, .10); }
.vf-rel--probable { color: #FFB74D; background: rgba(255, 183, 77, .10); }
.vf-rel--a_confirmer { color: #C9B58C; background: rgba(184, 162, 122, .10); border-style: dashed; }
.vf-tip__rel { margin: 3px 0 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vf-row__rel { color: #B5C3D6; font-style: italic; }
.vf-row--ghost { opacity: .8; border-style: dashed; }
.vf-row--ghost .vf-row__dot { box-shadow: none; outline: 1px dashed #B8A27A; outline-offset: 1px; background: transparent !important; }
.vf-relbox { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; background: rgba(17, 32, 58, .6); border: 1px solid rgba(255, 255, 255, .06); font-size: 11.5px; color: #CFE0F2; }
.vf-relbox--confirme { border-color: rgba(52, 199, 89, .3); } .vf-relbox--probable { border-color: rgba(255, 183, 77, .35); } .vf-relbox--a_confirmer { border-style: dashed; border-color: rgba(184, 162, 122, .5); }
.vf-relbox__r { color: #B5C3D6; }
.vf-relbox__h { flex-basis: 100%; font-size: 10.5px; color: #8FA0B6; line-height: 1.45; }
.vf-lbl--ghost { border-style: dashed; border-color: rgba(184, 162, 122, .6); color: #C9B58C; }
.vf-lbl--ghost b { color: #C9B58C; }
.vf-sw-ghost { border: 1.5px dashed #B8A27A; background: transparent !important; }
.vf-switch--ghost.is-zero { opacity: .6; }
/* Étape 5 : pré-détection EUMETSAT (géostationnaire, pas encore VIIRS) — blanc pointillé. */
.vf-rel--pre_detection { color: #F4F7FB; background: rgba(255, 255, 255, .08); border-style: dashed; }
.vf-relbox--pre_detection { border-style: dashed; border-color: rgba(255, 255, 255, .45); }
.vf-row--pre .vf-row__dot { box-shadow: none; outline: 1.5px dashed #F4F7FB; outline-offset: 1px; background: transparent !important; }
.vf-lbl--pre { border-style: dashed; border-color: rgba(255, 255, 255, .55); }
.vf-lbl--pre b, .vf-lbl--pre em { color: #F4F7FB; }
.vf-sw-pre { border: 1.5px dashed #F4F7FB; background: transparent !important; }
.vf-tip__pre { color: #CFE0F2; font-size: 11px; line-height: 1.4; margin: 2px 0; }

/* ── Tooltip ────────────────────────────────────────────────────── */
.vf-tip {
    position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; max-width: 260px;
    padding: 8px 11px; border-radius: 10px; background: rgba(11, 22, 40, .94); border: 1px solid var(--vf-hud-bd);
    color: #E6EDF6; font-size: 12px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.vf-tip__t { font-weight: 700; display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.vf-tip__t i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 8px currentColor; }
.vf-tip__r { color: #CFE0F2; } .vf-tip__r b { color: #fff; }
.vf-tip__dim { color: #8FA0B6; font-size: 11px; }

/* ── Barrière (fermeture au clic) ──────────────────────────────── */
.vf-barrier { position: absolute; inset: 0; z-index: 30; background: transparent; }

/* ── Hub capsule (haut-gauche) ─────────────────────────────────── */
.vf-hub {
    position: absolute; z-index: 40; top: 12px; left: 12px; max-width: calc(100% - 72px);
    display: flex; align-items: stretch; gap: 0; border-radius: 16px; overflow: hidden;
    background: var(--vf-hud-bg); border: 1px solid var(--vf-hud-bd); box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    backdrop-filter: var(--vf-glass); -webkit-backdrop-filter: var(--vf-glass);
    animation: vf-in .5s ease both;
}
@keyframes vf-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.vf-hub__brand {
    display: flex; flex-direction: column; justify-content: center; padding: 8px 14px 8px 14px; border-right: 1px solid rgba(255, 255, 255, .08);
    font-weight: 800; font-size: 15px; letter-spacing: .3px; color: #E6EDF6; white-space: nowrap;
}
.vf-hub__brand b { color: var(--accent, #4FC3F7); } .vf-hub__brand .sym { color: var(--fire, #FF6B35); }
.vf-hub__crumb { font-family: 'JetBrains Mono', monospace; font-weight: 400; font-size: 9px; letter-spacing: 2px; color: #8FA0B6; margin-top: 2px; }
.vf-hub__live { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 1.5px; color: var(--success, #34C759); }
.vf-hub__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--success, #34C759); box-shadow: 0 0 8px var(--success, #34C759); animation: vf-blink 1.6s infinite; }
@keyframes vf-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.vf-hub__segs { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }   /* 8 segments : défilable si la capsule déborde */
.vf-hub__segs::-webkit-scrollbar { display: none; }
.vf-hub__segs[hidden] { display: none; }
.vf-seg {
    appearance: none; background: none; border: 0; border-right: 1px solid rgba(255, 255, 255, .08); color: #E6EDF6; cursor: pointer;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-width: 84px; padding: 7px 13px; text-align: left;
    font: inherit; transition: background .15s;
}
.vf-seg:last-child { border-right: 0; }
.vf-seg:hover, .vf-seg.is-on { background: rgba(79, 195, 247, .09); }
.vf-seg:focus-visible { outline: 2px solid var(--accent, #4FC3F7); outline-offset: -2px; }
.vf-seg__val { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; gap: 5px; }
.vf-seg__val small { font-size: 10px; color: #8FA0B6; font-weight: 400; }
.vf-seg__lbl { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #8FA0B6; white-space: nowrap; }
.vf-seg__dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 2px; }
.vf-seg--fire .vf-seg__val { color: #FF6B35; } .vf-seg--fire .vf-seg__dot { background: #FF6B35; box-shadow: 0 0 8px #FF6B35; }
.vf-seg--frp .vf-seg__val { color: #FFB74D; }
.vf-seg--ac .vf-seg__val { color: #4FC3F7; } .vf-seg--ac .vf-seg__dot { background: #4FC3F7; box-shadow: 0 0 8px #4FC3F7; }
.vf-seg.is-zero .vf-seg__val { color: #6B7C93; } .vf-seg.is-zero .vf-seg__dot { background: #6B7C93; box-shadow: none; }
.vf-seg__val.is-up { color: #FF5252; } .vf-seg__val.is-down { color: var(--success, #34C759); } .vf-seg__val.is-flat { color: #9AA8BC; }
.vf-seg--back { min-width: 0; color: var(--accent, #4FC3F7); font-weight: 700; font-size: 13px; }
.vf-seg--title { min-width: 0; max-width: 240px; }
.vf-seg--title .vf-seg__val { font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 100%; }

/* Segment « contrôle » (div, pas bouton) : curseur Aujourd'hui / J+1 du danger IFM. */
.vf-seg--ctl { cursor: default; gap: 3px; }
.vf-seg--ctl:hover { background: none; }
.vf-segctl { display: inline-flex; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; overflow: hidden; background: rgba(7, 13, 24, .5); }
.vf-segctl__b { appearance: none; font: inherit; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border: 0; background: none; color: #9AA8BC; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s; }
.vf-segctl__b + .vf-segctl__b { border-left: 1px solid rgba(255, 255, 255, .1); }
.vf-segctl__b.is-on { background: rgba(255, 152, 0, .18); color: #FFB74D; }
.vf-segctl__b:hover { color: #fff; }
.vf-segctl__b:focus-visible { outline: 2px solid var(--accent, #4FC3F7); outline-offset: -2px; }
.vf-segctl--wide { display: flex; margin-bottom: 10px; }
.vf-segctl--wide .vf-segctl__b { flex: 1; padding: 7px 8px; font-size: 11px; }
.vf-seg__lbl--btn { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #8FA0B6; display: inline-flex; align-items: center; }
.vf-seg__lbl--btn:hover, .vf-seg__lbl--btn.is-on { color: #FFB74D; }
.vf-seg__lbl--btn:focus-visible { outline: 2px solid var(--accent, #4FC3F7); outline-offset: 2px; border-radius: 4px; }
.vf-seg--danger .vf-seg__dot { background: #FF9800; box-shadow: 0 0 8px #FF9800; }
.vf-seg--meteo .vf-seg__val { color: #9fe6ff; }
.vf-seg--vigi .vf-seg__val { color: #FFB74D; } .vf-seg--vigi .vf-seg__dot { background: #FF9800; box-shadow: 0 0 8px #FF9800; }
.vf-seg--vigi.is-red .vf-seg__val { color: #FF5252; } .vf-seg--vigi.is-red .vf-seg__dot { background: #F44336; box-shadow: 0 0 8px #F44336; }
.vf-seg--vigi.is-yellow .vf-seg__val { color: #FFEB3B; } .vf-seg--vigi.is-yellow .vf-seg__dot { background: #FFEB3B; box-shadow: 0 0 8px #FFEB3B; }
.vf-vigi { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 700; letter-spacing: .4px; padding: 2px 6px; border-radius: 999px; color: #0b1628; }
.vf-vigi--1 { background: #34C759; } .vf-vigi--2 { background: #FFEB3B; } .vf-vigi--3 { background: #FF9800; } .vf-vigi--4 { background: #F44336; color: #fff; }
.vf-tip__phen { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }

/* Panneau du hub (sous la capsule). */
.vf-panel {
    position: absolute; z-index: 41; top: 78px; left: 12px; width: 340px; max-width: calc(100% - 24px); max-height: calc(100% - 160px);
    display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
    background: var(--vf-hud-bg); border: 1px solid var(--vf-hud-bd); box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    backdrop-filter: var(--vf-glass); -webkit-backdrop-filter: var(--vf-glass);
    opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease;
}
.vf-panel[hidden] { display: none; }
.vf-panel.is-open { opacity: 1; transform: none; }
.vf-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 10px 9px 15px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.vf-panel__title { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent, #4FC3F7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-panel__close { appearance: none; background: none; border: 0; color: #9AA8BC; font-size: 20px; line-height: 1; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.vf-panel__close:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.vf-panel__close:focus-visible, .vf-btn:focus-visible, .vf-row:focus-visible { outline: 2px solid var(--accent, #4FC3F7); outline-offset: 1px; }
.vf-panel__body { overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 12px; font-size: 12.5px; color: #CFE0F2; }
.vf-panel__body::-webkit-scrollbar { width: 7px; } .vf-panel__body::-webkit-scrollbar-thumb { background: #2E4366; border-radius: 4px; }
.vf-list { display: flex; flex-direction: column; gap: 5px; }
.vf-row {
    appearance: none; font: inherit; text-align: left; width: 100%; cursor: pointer;
    display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px; background: rgba(17, 32, 58, .6); border: 1px solid rgba(255, 255, 255, .06); color: #E6EDF6;
    transition: border-color .15s, background .15s;
}
.vf-row:hover { border-color: var(--accent-dim, #2E7CA8); background: rgba(17, 32, 58, .9); }
.vf-row.is-focus, .vf-row.is-on { border-color: var(--accent, #4FC3F7); }
.vf-row__dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.vf-row__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vf-row__t { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-row__t em { font-style: normal; font-weight: 600; font-size: 11px; }
.vf-row__s { font-size: 11px; color: #9AA8BC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-row__v { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.vf-row__v small { font-size: 10px; color: #9AA8BC; font-weight: 400; }
.vf-bar { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); margin-top: 3px; overflow: hidden; }
.vf-bar span { display: block; height: 100%; border-radius: 2px; box-shadow: 0 0 6px currentColor; }
.vf-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 12.5px; color: #9AA8BC; }
.vf-kv b { font-family: 'JetBrains Mono', monospace; color: #E6EDF6; font-size: 13px; text-align: right; }
.vf-kv b.is-up { color: #FF5252; } .vf-kv b.is-down { color: var(--success, #34C759); } .vf-kv b.is-flat { color: #E6EDF6; }
.vf-note { font-size: 11px; line-height: 1.5; color: #8FA0B6; margin: 10px 0 0; }
.vf-note a { color: var(--accent, #4FC3F7); }
.vf-note code { font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.vf-empty { font-size: 12.5px; color: #9AA8BC; padding: 8px 2px; }
.vf-sub { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: #8FA0B6; margin: 12px 0 7px; }
.vf-btn { appearance: none; font: inherit; font-size: 12px; margin-top: 10px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--border-strong, #2E4366); background: var(--surface-elev, #1B2A44); color: #E6EDF6; cursor: pointer; }
.vf-btn:hover { border-color: var(--accent, #4FC3F7); }
.vf-mono { font-family: 'JetBrains Mono', monospace; }
.vf-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.vf-card { background: rgba(17, 32, 58, .6); border: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; padding: 8px 10px; }
.vf-card__v { font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 700; color: #E6EDF6; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vf-card__v small { font-size: 10px; color: #9AA8BC; font-weight: 400; }
.vf-card__l { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: #9AA8BC; margin-top: 3px; }
.vf-card__h { font-size: 10.5px; color: #8FA0B6; }
/* Météo */
.vf-wx-now { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.vf-wx-cell { background: rgba(17, 32, 58, .6); border: 1px solid rgba(255, 255, 255, .06); border-radius: 9px; padding: 7px 9px; }
.vf-wx-cell .v { font-family: 'JetBrains Mono', monospace; font-size: 15px; color: #E6EDF6; }
.vf-wx-cell .l { font-size: 9.5px; color: #9AA8BC; text-transform: uppercase; letter-spacing: .5px; margin-top: 1px; }
.vf-wx-cond { grid-column: 1 / -1; font-size: 12px; color: #CFE0F2; }
.vf-wx-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; font-size: 11.5px; color: #9AA8BC; margin-bottom: 5px; }
.vf-wx-row .h { font-family: 'JetBrains Mono', monospace; color: #CFE0F2; }
.vf-wx-row .bar { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #2E7DF6, #4FC3F7); }
.vf-wx-row .w { font-family: 'JetBrains Mono', monospace; color: #E6EDF6; white-space: nowrap; }
.vf-wx-arrow { display: inline-block; color: #9fe6ff; }
/* Météo-France au point : lignes IFM + briefing. */
.vf-mfrow { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.vf-mfrow__l { flex: 1; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #9AA8BC; }
.vf-mfrow__d { font-family: 'JetBrains Mono', monospace; font-weight: 700; } .vf-mfrow__d.is-up { color: #FF5252; } .vf-mfrow__d.is-down { color: #34C759; } .vf-mfrow__d.is-flat { color: #9AA8BC; }
.vf-mfrow__j1 { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #9AA8BC; }
.vf-mfrow--fire { margin-bottom: 8px; }
.vf-brief { font-size: 12.5px; line-height: 1.5; color: #E6EDF6; margin: 8px 0 10px; padding: 8px 10px; border-left: 2px solid #FF9800; background: rgba(255, 152, 0, .07); border-radius: 0 8px 8px 0; }

/* ── Étape 3 : vue tactique (panneau Feu, hub) ─────────────────── */
.vf-seg--fc .vf-seg__val { color: #4FE3FF; }
.vf-spin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(79, 195, 247, .25); border-top-color: #4FC3F7; animation: vf-spin .8s linear infinite; vertical-align: -2px; margin-right: 4px; }
@keyframes vf-spin { to { transform: rotate(360deg); } }
.vf-loading { display: flex; align-items: center; gap: 6px; }
.vf-list--hz { margin-bottom: 4px; }
.vf-row--hz .vf-row__s { white-space: normal; }
.vf-fcfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 2px; font-size: 11px; }
.vf-fcfoot--share { margin-top: 12px; justify-content: flex-start; }
.vf-btn--sm { margin-top: 0; padding: 5px 10px; font-size: 11.5px; white-space: nowrap; }
.vf-btn[disabled] { opacity: .45; cursor: default; }
.vf-btn.is-on { border-color: #4FC3F7; color: #9fe6ff; }
.vf-fuel-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 5px 2px 7px; font-size: 10.5px; color: #9AA8BC; }
.vf-fuel-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.vf-tl-legend__fc { color: #9fc8ff; }
.vf-tl-legend__wl { display: none; }
.vf-scene.has-windlocal .vf-tl-legend__wl { display: inline; color: #9fe6ff; }
.vf-scene.no-fc .vf-tl-legend__fc { display: none; }
@media (prefers-reduced-motion: reduce) { .vf-spin { animation: none; } }

/* ── Étape 4 : relief 3D, coupe, obstacles ─────────────────────── */
/* Boussole MapLibre : en 3D seulement (rotation/inclinaison désactivées en 2D). */
.vf-scene:not(.is-3d) .maplibregl-ctrl-compass { display: none; }
.vf-scene .maplibregl-ctrl-compass .maplibregl-ctrl-icon { filter: invert(1) opacity(.85); }
/* Ciel/brume : repli CSS si setSky n'existe pas (dégradé en haut de la scène, sous le HUD). */
.vf-scene.is-3d.no-sky::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 38%; pointer-events: none; z-index: 4; background: linear-gradient(180deg, rgba(11, 26, 51, .85) 0%, rgba(36, 64, 95, .35) 55%, transparent 100%); }
.vf-scene.is-3d .vf-grid { opacity: .35; }
.vf-scene.is-3d .vf-tint { opacity: .55; }
.vf-dock__btn--3d { position: relative; }
.vf-dock__txt { position: absolute; right: 4px; bottom: 3px; font-family: 'JetBrains Mono', monospace; font-size: 8.5px; font-weight: 700; letter-spacing: .3px; color: #9fe6ff; }
.vf-dock__btn.is-busy { opacity: .55; cursor: progress; }
.vf-dock__btn[hidden] { display: none; }
.vf-scene.is-profiling .vf-map { cursor: crosshair; }
.vf-tl-row--profile { align-items: flex-start; }
.vf-profile__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vf-profile { display: block; width: 100%; height: 88px; border-radius: 8px; background: rgba(7, 13, 24, .55); border: 1px solid rgba(255, 255, 255, .06); }
.vf-profile__txt { white-space: normal; font-size: 11px; }
.vf-profile__txt b { color: #FFEB3B; }
.vf-tl-row--profile + .vf-tl-row { margin-top: 2px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .07); }
.vf-tl-legend__3d { display: none; }
.vf-scene.is-3d .vf-tl-legend__3d { display: inline; color: #ffb3ad; }
@media (max-width: 760px) { .vf-profile { height: 64px; } .vf-dock__txt { font-size: 8px; } }

/* ── Étape 5 : replay projection vs réel ───────────────────────── */
.vf-scene.is-replay .vf-tl-time { white-space: normal; line-height: 1.5; }
.vf-scene.is-replay .vf-tl-time b { color: #fff; }
.vf-tl-time .vf-tl-rp-fc { color: #9fc8ff; } .vf-tl-time .vf-tl-rp-obs { color: #ff8a80; } .vf-tl-time .vf-tl-rp-sum { color: #FFEB3B; }
.vf-tl-legend__rp { display: none; }
.vf-scene.is-replay .vf-tl-legend__rp { display: inline; color: #cfe0f2; }
.vf-scene.is-replay .vf-tl-legend__obs, .vf-scene.is-replay .vf-tl-legend__cur, .vf-scene.is-replay .vf-tl-legend__env { display: none; }
.vf-scene.is-replay:not(.no-labels) .vf-lbl--rp { display: block; }
.vf-lbl--rp.is-best { border-color: #4FE3FF; color: #fff; box-shadow: 0 0 0 1px rgba(79, 227, 255, .35), 0 2px 8px rgba(0, 0, 0, .5); }
.vf-rpstep.is-on { border-color: #4FC3F7; }

/* ── Dock (bas-droite) ─────────────────────────────────────────── */
.vf-dock {
    position: absolute; z-index: 40; right: 12px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 16px;
    background: var(--vf-hud-bg); border: 1px solid var(--vf-hud-bd); box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    backdrop-filter: var(--vf-glass); -webkit-backdrop-filter: var(--vf-glass);
    animation: vf-in .5s ease .1s both;
}
.vf-dock__btn {
    appearance: none; background: none; border: 0; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; color: #CFE0F2; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.vf-dock__btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vf-dock__btn:hover, .vf-dock__btn[aria-expanded="true"] { background: rgba(79, 195, 247, .12); color: #fff; }
.vf-dock__btn:focus-visible { outline: 2px solid var(--accent, #4FC3F7); outline-offset: -2px; }
/* Menu Calques : fond de carte fixe en tête (3 tuiles à vignette CSS), puis groupes
   repliables qui défilent dans .vf-dockmenu__scroll. Jamais plus haut que min(70dvh, 520px). */
.vf-dockmenu {
    position: absolute; z-index: 41; right: 68px; bottom: 14px; width: 300px; max-height: min(70dvh, 520px); border-radius: 14px;
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--vf-hud-bg); border: 1px solid var(--vf-hud-bd); box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    backdrop-filter: var(--vf-glass); -webkit-backdrop-filter: var(--vf-glass);
    opacity: 0; transform: translateX(6px); transition: opacity .18s, transform .18s;
}
.vf-dockmenu[hidden] { display: none; }
.vf-dockmenu.is-open { opacity: 1; transform: none; }
.vf-dockmenu__grip { display: none; }
.vf-dockmenu__head { flex: 0 0 auto; padding: 10px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.vf-dockmenu__title { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: #8FA0B6; margin: 0 0 7px; }
.vf-dockmenu__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 10px; scrollbar-width: thin; scrollbar-color: rgba(143, 160, 182, .35) transparent; }
/* Fond de carte : tuiles radio à vignette. */
.vf-basegroup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vf-base { appearance: none; font: inherit; font-size: 11px; padding: 4px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(17, 32, 58, .6); color: #CFE0F2; cursor: pointer; display: flex; flex-direction: column; gap: 5px; align-items: stretch; transition: border-color .15s, background .15s; }
.vf-base:hover { border-color: rgba(255, 255, 255, .22); color: #fff; }
.vf-base__thumb { display: block; height: 40px; border-radius: 7px; border: 1px solid rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.vf-base__lbl { display: block; text-align: center; line-height: 1.2; white-space: nowrap; }
.vf-base--osm .vf-base__thumb {
    background:
        linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 8px 8px,
        linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 8px 8px,
        linear-gradient(135deg, #1B2C48 0%, #0E1A30 55%, #0A1426 100%);
}
.vf-base--ortho .vf-base__thumb {
    background:
        radial-gradient(ellipse 60% 45% at 30% 35%, rgba(46, 84, 44, .9), transparent 70%),
        radial-gradient(ellipse 50% 40% at 75% 70%, rgba(140, 118, 72, .85), transparent 70%),
        linear-gradient(135deg, #3E6A3B 0%, #6B7B3E 50%, #8C7A4A 100%);
}
.vf-base--plan .vf-base__thumb {
    background:
        linear-gradient(28deg, transparent 47%, rgba(230, 168, 90, .95) 47.5%, rgba(230, 168, 90, .95) 51%, transparent 51.5%),
        linear-gradient(118deg, transparent 62%, rgba(255, 255, 255, .95) 62.5%, rgba(255, 255, 255, .95) 65%, transparent 65.5%),
        linear-gradient(135deg, #F4EEDD 0%, #EAE1C6 100%);
}
.vf-base[aria-checked="true"] { border-color: var(--accent, #4FC3F7); color: #fff; background: rgba(79, 195, 247, .14); box-shadow: 0 0 0 1px rgba(79, 195, 247, .35); }
.vf-base[aria-checked="true"] .vf-base__thumb { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.vf-base[aria-checked="true"] .vf-base__lbl { font-weight: 700; }
/* Groupes repliables (accordéon : un seul ouvert). */
.vf-lgroup { padding: 0; margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }   /* <section> : neutralise le padding 80px de site.css */
.vf-lgroup:last-child { border-bottom: 0; }
.vf-lgroup__head { display: flex; align-items: center; gap: 6px; }
.vf-lgroup__toggle { appearance: none; font: inherit; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 2px; background: none; border: 0; color: #E6EDF6; cursor: pointer; text-align: left; border-radius: 8px; }
.vf-lgroup__toggle:hover { color: #fff; }
.vf-lgroup__toggle:focus-visible, .vf-lgroup__all:focus-visible { outline: 2px solid var(--accent, #4FC3F7); outline-offset: -2px; }
.vf-lgroup__chev { width: 7px; height: 7px; flex: 0 0 auto; border-right: 1.8px solid #8FA0B6; border-bottom: 1.8px solid #8FA0B6; transform: rotate(-45deg); transition: transform .18s; margin-left: 2px; }
.vf-lgroup__toggle[aria-expanded="true"] .vf-lgroup__chev { transform: rotate(45deg); border-color: var(--accent, #4FC3F7); }
.vf-lgroup__name { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: #CFE0F2; flex: 1 1 auto; }
.vf-lgroup__toggle[aria-expanded="true"] .vf-lgroup__name { color: #fff; }
.vf-lgroup__badge { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(79, 195, 247, .16); color: #9FDDFB; flex: 0 0 auto; }
.vf-lgroup__badge.is-zero { background: rgba(255, 255, 255, .07); color: #8FA0B6; }
.vf-lgroup__all { appearance: none; font: inherit; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; flex: 0 0 auto; padding: 3px 7px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .1); background: none; color: #8FA0B6; cursor: pointer; transition: color .15s, border-color .15s; }
.vf-lgroup__all:hover { color: #fff; border-color: rgba(255, 255, 255, .28); }
.vf-lgroup__body { padding: 0 0 8px; }
.vf-lgroup__body[hidden] { display: none; }
.vf-lgroup__hint { margin: 0 0 4px; font-size: 10.5px; line-height: 1.35; color: #8FA0B6; }
.vf-lgroup__inline { margin: 2px 0 8px; }
.vf-dockmenu .vf-segctl--wide .vf-segctl__b { padding: 5px 6px; }
/* « Feu ouvert » : seulement en vue Feu. */
.vf-scene:not(.is-fire) .vf-lgroup--fire { display: none; }
.vf-base:focus-visible, .vf-switch:focus-visible { outline: 2px solid var(--accent, #4FC3F7); outline-offset: 1px; }
/* Interrupteur : ::after = rail, ::before = pastille (animée). */
.vf-switch { appearance: none; position: relative; font: inherit; font-size: 12.5px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px; background: none; border: 0; color: #E6EDF6; cursor: pointer; }
.vf-switch::after { content: ''; width: 30px; height: 17px; border-radius: 10px; background: #2E4366; flex: 0 0 auto; transition: background .15s; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.vf-switch[aria-checked="true"]::after { background: var(--accent, #4FC3F7); }
.vf-switch::before { content: ''; position: absolute; right: 17px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: #fff; z-index: 1; opacity: .9; transition: transform .15s; }
.vf-switch[aria-checked="true"]::before { transform: translateX(13px); }
.vf-switch span { display: flex; align-items: center; gap: 8px; }
.vf-switch span i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.vf-panel__body .vf-switch { padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.vf-panel__body .vf-switch small { color: #8FA0B6; font-size: 10.5px; margin-left: 4px; }

/* ── Barre temps (bas-centre, réserve dock à droite) ───────────── */
.vf-timeline {
    position: absolute; z-index: 35; left: 12px; right: 74px; bottom: 14px; margin: 0 auto; width: min(720px, calc(100% - 86px));
    display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 14px;
    background: var(--vf-hud-bg); border: 1px solid var(--vf-hud-bd); box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    backdrop-filter: var(--vf-glass); -webkit-backdrop-filter: var(--vf-glass);
}
.vf-timeline[hidden] { display: none; }
.vf-tl-row { display: flex; align-items: center; gap: 12px; }
.vf-tl-play { appearance: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong, #2E4366); background: #11203A; color: #E6EDF6; cursor: pointer; font-size: 12px; flex: 0 0 auto; }
.vf-tl-play:hover { border-color: var(--accent, #4FC3F7); } .vf-tl-play[disabled] { opacity: .45; cursor: default; }
.vf-tl-play:focus-visible, .vf-tl-slider:focus-visible { outline: 2px solid var(--accent, #4FC3F7); outline-offset: 2px; }
.vf-tl-slider { flex: 1; accent-color: #FF3B30; min-width: 60px; }
.vf-tl-time { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: #E6EDF6; white-space: nowrap; }
.vf-tl-row[hidden], .vf-tl-legend[hidden] { display: none; }
.vf-tl-row--radar + .vf-tl-row { margin-top: 2px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .07); }
.vf-tl-play--radar { border-color: rgba(46, 125, 246, .6); color: #9fc8ff; }
.vf-tl-slider--radar { accent-color: #2E7DF6; }
.vf-tl-time em { font-style: italic; color: #9fc8ff; }
.vf-tl-time .vf-tl-src { color: #8FA0B6; font-size: 10px; margin-left: 6px; }
.vf-tl-x { appearance: none; background: none; border: 0; color: #9AA8BC; font-size: 18px; line-height: 1; width: 26px; height: 26px; border-radius: 7px; cursor: pointer; flex: 0 0 auto; }
.vf-tl-x:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.vf-dock__btn[aria-pressed="true"] { background: rgba(46, 125, 246, .22); color: #9fc8ff; }
.vf-tl-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #9AA8BC; }
.vf-tl-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }

/* ── Légende météo (bas-gauche, au-dessus de l'échelle/attribution) ── */
.vf-legend {
    position: static; z-index: 8; margin: 0 0 6px 10px; pointer-events: none; display: flex; flex-direction: column; gap: 4px;
    padding: 6px 9px; border-radius: 10px; background: rgba(7, 13, 24, .72); border: 1px solid rgba(255, 255, 255, .07);
    font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: #9AA8BC; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.vf-legend[hidden] { display: none; }
.vf-legend__row { display: flex; align-items: center; gap: 3px; }
.vf-legend__t { color: #E6EDF6; font-weight: 700; letter-spacing: .5px; margin-right: 4px; }
.vf-legend__c { width: 16px; height: 8px; border-radius: 2px; display: inline-block; }
.vf-legend__l { margin-left: 5px; letter-spacing: .3px; }
.vf-legend__g { width: 90px; height: 8px; border-radius: 2px; display: inline-block; }
/* Pastille IFM (panneaux). */
.vf-ifm { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--c, #6B7C93); color: var(--c, #9AA8BC); background: rgba(255, 255, 255, .04); white-space: nowrap; }
.vf-ifm--na { --c: #6B7C93; }
.vf-ifm--2 { color: #E6D84A; } .vf-ifm--0, .vf-ifm--1 { color: #7FD08A; }
.vf-row--legend { cursor: default; padding: 5px 10px; }
.vf-row--legend:hover { border-color: rgba(255, 255, 255, .06); background: rgba(17, 32, 58, .6); }
.vf-list--legend { gap: 3px; }
.vf-note--warn { color: var(--warn, #FFA726); }

/* ── Statut, toast, erreur ─────────────────────────────────────── */
.vf-status { position: absolute; z-index: 8; left: 12px; bottom: 14px; pointer-events: none; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .5px; color: #8FA0B6; text-shadow: 0 0 4px #000; }
.vf-toast {
    position: absolute; z-index: 50; left: 50%; top: 84px; transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
    padding: 8px 14px; border-radius: 10px; background: rgba(11, 22, 40, .95); border: 1px solid var(--vf-hud-bd); color: #E6EDF6; font-size: 12.5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: opacity .2s, transform .2s;
}
.vf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.vf-error { position: absolute; z-index: 9; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--warn, #FFA726); font-size: 14px; }
.vf-error[hidden] { display: none; }

/* ── Éditorial SEO sous la scène ───────────────────────────────── */
.vf-seo { padding: 48px 0 64px; border-top: 1px solid var(--border, #1F2D45); }
.vf-seo .container { max-width: 900px; }
.vf-seo h1 { font-size: 30px; line-height: 1.2; margin: 0 0 14px; }
.vf-seo .lead { font-size: 17px; color: var(--text-muted, #9AA8BC); margin: 0 0 22px; }
.vf-seo h2 { font-size: 22px; margin: 28px 0 10px; }
.vf-seo ul { line-height: 1.75; padding-left: 20px; }
.vf-seo .faq { line-height: 1.7; }
.vf-seo .src { margin-top: 26px; font-size: 13px; color: var(--text-dim, #8FA0B6); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1440px) {
    .vf-seg { min-width: 74px; padding: 7px 10px; }
    .vf-seg__val { font-size: 16px; }
    .vf-hub__brand { padding: 8px 11px; }
}
@media (max-width: 1100px) {
    .vf-hub__brand { padding: 8px 10px; font-size: 14px; }
    .vf-seg { min-width: 70px; padding: 6px 10px; }
    .vf-seg__val { font-size: 16px; }
}
@media (max-width: 760px) {
    .vf-scene { height: 70dvh; min-height: 420px; }
    .vf-hub { top: 8px; left: 8px; max-width: calc(100% - 60px); border-radius: 14px; }
    .vf-hub__brand { display: none; }
    .vf-hub__segs { overflow-x: auto; scrollbar-width: none; }
    .vf-hub__segs::-webkit-scrollbar { display: none; }
    .vf-seg { min-width: 0; padding: 6px 9px; }
    .vf-seg__val { font-size: 14px; } .vf-seg__lbl { font-size: 8.5px; }
    .vf-seg__dot { display: none; }
    .vf-seg--title { max-width: 150px; }
    .vf-scene .maplibregl-ctrl-top-right { top: 8px; right: 8px; }
    /* Panneaux en sheet bas. */
    .vf-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; max-height: 58%; border-radius: 16px 16px 0 0; transform: translateY(12px); }
    .vf-panel.is-open { transform: none; }
    .vf-dock { flex-direction: row; right: 8px; bottom: 8px; padding: 4px; gap: 2px; }
    .vf-dock__btn { width: 40px; height: 40px; }
    /* Menu Calques en sheet bas pleine largeur, poignée, fond de carte toujours en tête. */
    .vf-dockmenu { left: 0; right: 0; bottom: 0; width: 100%; max-height: min(70dvh, 520px); border-radius: 16px 16px 0 0; transform: translateY(12px); }
    .vf-dockmenu.is-open { transform: none; }
    .vf-dockmenu__grip { display: block; width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); margin: 8px auto 0; }
    .vf-dockmenu__head { padding-top: 8px; }
    .vf-base__thumb { height: 34px; }
    .vf-dockmenu__scroll { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    .vf-timeline { left: 8px; right: 8px; bottom: 60px; width: auto; padding: 8px 10px; }
    .vf-tl-legend { display: none; }
    .vf-tl-time { font-size: 10.5px; }
    .vf-status { display: none; }
    .vf-scene .maplibregl-ctrl-bottom-left { bottom: 58px; }
    .vf-legend { margin-left: 8px; padding: 4px 7px; }
    .vf-seo h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .vf-sweep, .vf-hub, .vf-dock { animation: none !important; }
    .vf-hub__live i { animation: none; }
}

/* ── Legacy (archive.php) ─────────────────────────────────────── */
.vigie-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.vigie-list__head { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #9AA8BC); margin-bottom: 2px; }
.vigie-row { display: grid; grid-template-columns: 14px 1fr auto auto; align-items: center; gap: 12px; background: var(--surface, #11203A); border: 1px solid var(--border, #1F2D45); border-radius: var(--radius, 10px); padding: 10px 14px; cursor: pointer; }
.vigie-row:hover { border-color: var(--accent-dim, #2E7CA8); }
.vigie-dot { width: 12px; height: 12px; border-radius: 50%; }
.vigie-row__main { font-size: 13.5px; color: var(--text, #E6EDF6); }
.vigie-row__sub { font-size: 12px; color: var(--text-muted, #9AA8BC); }
.vigie-row__frp { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vigie-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.vigie-status-nouveau { color: var(--accent, #4FC3F7); }
.vigie-status-persistant { color: var(--text-muted, #9AA8BC); }
.vigie-status-reprise { color: #B388FF; font-weight: 700; }
.is-faible { color: #FFCA28; } .is-modere { color: #FF9800; } .is-fort { color: #F4511E; } .is-extreme { color: #D32F2F; }
.vigie-msg { font-size: 13px; color: var(--text-muted, #9AA8BC); padding: 12px 0; }
.vigie-msg--err { color: var(--warn, #FFA726); }
.vigie-disclaimer { font-size: 12px; color: var(--text-dim, #8FA0B6); margin-top: 18px; max-width: 760px; }
@media (max-width: 560px) { .vigie-row { grid-template-columns: 12px 1fr auto; } .vigie-row__badge-cell { display: none; } }
