/* METEO3D — interface. Verre fumé sur la 3D, grain léger partout (aucune surface en aplat), lisible au soleil comme la nuit. */
/* Charte « Limpide » — nature, verre clair, aube et glacier.
   Fond : nuit de montagne ; verre : bleu glacier presque transparent, bord hairline ;
   accents : glacier (interaction), aube (Soleil, temps présent), mousse (bon), braise (alerte). */
:root {
  --fond: #0a1426; --fond2: #10203a; --verre: rgba(18, 34, 60, 0.46); --verre-fort: rgba(14, 28, 52, 0.86);
  --bord: rgba(214, 234, 255, 0.14); --bord-fort: rgba(214, 234, 255, 0.3);
  --texte: #f3f8ff; --doux: #b7c7e0; --pale: #8496b6;
  --accent: #8fd3ff; --accent2: #b9a6ff; --soleil: #ffcf5e; --lune: #dbe6ff; --chaud: #ff9a6a; --froid: #7fd8ff; --vert: #7fe0b0; --braise: #ff6a55;
  --rayon: 18px; --ombre: 0 12px 36px rgba(2, 8, 20, 0.38), inset 0 1px 0 rgba(255,255,255,.08);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --police: "Outfit", "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--fond); color: var(--texte); font: 14px/1.45 var(--police); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ico svg { width: 100%; height: 100%; }
small { color: var(--doux); font-size: 12px; }

#vue3d { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; outline: none; }
#etiquettes { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.etiq { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .01em;
  color: #f2f6ff; text-shadow: 0 0 2px #000, 0 0 4px rgba(0,0,0,.85), 0 1px 2px #000, 0 0 10px rgba(0,0,0,.5); margin: -26px 0 0 0; translate: -50% 0; will-change: transform; }
.etiq small { font-weight: 500; color: #c9d4ee; }
.etiq.e-sommet::after, .etiq.e-lieu::after, .etiq.e-vous::after, .etiq.e-balise::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 8px; background: rgba(255,255,255,.7); }
.etiq.e-sommet { color: #fff3dc; }
.etiq.e-vous { background: var(--accent); color: #06122a; text-shadow: none; padding: 2px 8px; border-radius: 99px; box-shadow: var(--ombre); }
.etiq.e-balise { background: rgba(10, 16, 30, 0.75); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--bord); text-shadow: none; }
.etiq.e-cardinal { font-size: 15px; color: #ffd98a; font-weight: 700; margin-top: -22px; }
.etiq.e-astre { font-size: 13px; margin-top: -30px; }
.etiq.e-astre.e-loin { margin-top: 0; }
.etiq.e-soleil { color: #ffd76a; } .etiq.e-lune { color: #dfe6ff; }
.etiq.e-planete { color: #ffe2b8; font-weight: 600; margin-top: -22px; }
.etiq.e-etoile { color: #d5e2ff; font-weight: 500; font-size: 11.5px; margin: -6px 0 0 10px; translate: 0 0; }
.etiq.e-constellation { color: rgba(150, 190, 255, 0.85); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.etiq.e-heure { color: #ffcf7a; font-size: 10.5px; font-weight: 600; margin-top: -18px; }

/* ── verre ──────────────────────────────────────────────────────── */
.barre, .panneau, .temps, .prevision .carte, dialog, .chargement .carte-chargement, #suggestions {
  background: var(--grain), var(--verre); border: 1px solid var(--bord); backdrop-filter: blur(22px) saturate(1.35) brightness(1.06); -webkit-backdrop-filter: blur(22px) saturate(1.35) brightness(1.06);
  box-shadow: var(--ombre);
}

.barre { position: fixed; top: 12px; left: 12px; right: 12px; height: 54px; border-radius: var(--rayon); display: flex; align-items: center; gap: 12px; padding: 0 10px 0 14px; z-index: 20; }
.marque { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--texte); font-weight: 700; letter-spacing: .06em; font-size: 15px; }
.marque svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.marque:hover .logo-marque { transform: translateY(-1px) scale(1.04); } .logo-marque { transition: transform .35s cubic-bezier(.2,.9,.3,1.3); }
.marque b { color: var(--accent); }
.lieu { position: relative; flex: 1; max-width: 380px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--bord); border-radius: 10px; padding: 0 10px; height: 38px; }
.lieu input { flex: 1; background: none; border: 0; outline: none; min-width: 0; }
.lieu input::placeholder { color: var(--texte); opacity: .9; }
.lieu:focus-within { border-color: var(--accent); }
#suggestions { position: absolute; top: 44px; left: 0; right: 0; list-style: none; margin: 0; padding: 6px; border-radius: 12px; background-color: var(--verre-fort); }
#suggestions li { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
#suggestions li:hover, #suggestions li[aria-selected="true"] { background: rgba(110,168,255,.16); }
#suggestions small { display: block; }
.onglets { display: flex; gap: 4px; margin-left: auto; background: rgba(255,255,255,.05); padding: 4px; border-radius: 12px; border: 1px solid var(--bord); }
.onglets button { display: flex; align-items: center; gap: 7px; background: none; border: 0; padding: 7px 14px; border-radius: 9px; color: var(--doux); font-weight: 600; transition: background .2s, color .2s; }
.onglets button:hover { color: var(--texte); }
.onglets button[aria-selected="true"] { background: linear-gradient(180deg, rgba(143,211,255,.32), rgba(143,211,255,.12)); color: #fff; box-shadow: inset 0 0 0 1px rgba(170,220,255,.4), 0 2px 10px rgba(143,211,255,.18); }
.bouton-rond { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bord); background: rgba(255,255,255,.06); display: grid; place-items: center; }
.bouton-rond:hover { border-color: var(--bord-fort); background: rgba(255,255,255,.1); }
.bouton-rond.grand { width: 46px; height: 46px; background: linear-gradient(160deg, #b8e6ff, #5ea0ff); border: 0; color: #06122a; box-shadow: 0 6px 18px rgba(94,160,255,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.bouton-rond.grand .ico { width: 22px; height: 22px; }

/* ── panneaux ───────────────────────────────────────────────────── */
.panneau { position: fixed; z-index: 15; border-radius: var(--rayon); padding: 12px 14px; animation: apparait .5s cubic-bezier(.2,.9,.3,1) both; }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } }
.panneau h2 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--doux); display: flex; align-items: center; gap: 8px; }
.calques { top: 78px; left: 12px; width: 236px; }
.interrupteurs { display: grid; gap: 2px; }
.interrupteurs label { display: flex; align-items: center; gap: 9px; padding: 6px 6px; border-radius: 8px; cursor: pointer; user-select: none; }
.interrupteurs label:hover { background: rgba(255,255,255,.05); }
.interrupteurs input[type="checkbox"] { appearance: none; width: 30px; height: 18px; border-radius: 99px; background: rgba(255,255,255,.14); position: relative; flex: none; transition: background .2s; margin: 0; cursor: pointer; }
.interrupteurs input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #dfe7f8; transition: transform .2s; }
.interrupteurs input[type="checkbox"]:checked { background: linear-gradient(160deg, #b8e6ff, #5ea0ff); box-shadow: 0 0 10px rgba(143,211,255,.35); }
.interrupteurs input[type="checkbox"]:disabled { opacity: .4; cursor: not-allowed; }
.interrupteurs input[type="range"] { width: 100%; accent-color: var(--accent); }
.interrupteurs input[type="checkbox"]:checked::after { transform: translateX(12px); background: #fff; }
.interrupteurs small { margin-left: auto; }
.reglage { display: grid; gap: 4px; margin: 8px 6px 0; font-size: 12.5px; color: var(--doux); }
.reglage input { width: 100%; accent-color: var(--accent); }
.segments { display: flex; gap: 3px; margin: 10px 0 8px; background: rgba(255,255,255,.05); padding: 3px; border-radius: 9px; }
.segments button { flex: 1; border: 0; background: none; padding: 6px 4px; border-radius: 7px; font-size: 12px; color: var(--doux); font-weight: 600; }
.segments button[aria-pressed="true"] { background: rgba(110,168,255,.28); color: #fff; }
.legende-vent .rampe { height: 8px; border-radius: 99px; }
.legende-vent .graduations { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--doux); margin-top: 3px; }
.raccourcis { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.raccourcis button { display: flex; align-items: center; gap: 6px; border: 1px solid var(--bord); background: rgba(255,255,255,.05); border-radius: 9px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; }
.raccourcis button:hover { border-color: var(--bord-fort); }

.fiche { top: 78px; right: 12px; width: 300px; max-height: calc(100vh - 190px); overflow: auto; }
.fiche .entete { display: flex; align-items: center; gap: 12px; }
.fiche .temp { font-size: 42px; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.fiche .icone-meteo { width: 56px; height: 56px; }
.fiche .icone-meteo svg { width: 100%; height: 100%; }
.fiche .titre-lieu { font-weight: 700; font-size: 14px; }
.fiche .etat { color: var(--doux); }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 12px 0 0; font-size: 13px; }
.fiche dt { color: var(--doux); display: flex; align-items: center; gap: 6px; }
.fiche dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.fiche .fleche { vertical-align: -3px; }
.fiche hr { border: 0; border-top: 1px solid var(--bord); margin: 12px 0; }
.fiche .bloc-astre { display: flex; gap: 12px; align-items: center; }
.fiche .note { font-size: 12px; color: var(--pale); margin-top: 8px; }
.fiche .liste-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; text-align: center; font-size: 11px; color: var(--doux); }
.fiche .liste-phases b { display: block; color: var(--texte); font-size: 12px; }
.fiche.astre { top: auto; bottom: 108px; width: 280px; }
.fiche .fermer { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; }

/* ── frise du temps ─────────────────────────────────────────────── */
.temps { position: fixed; left: 12px; right: 12px; bottom: 26px; height: 70px; border-radius: var(--rayon); display: flex; align-items: center; gap: 14px; padding: 0 16px 0 12px; z-index: 20; }
.frise { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.jours { position: relative; height: 18px; font-size: 11.5px; color: var(--doux); font-weight: 600; }
.jours span { position: absolute; top: 0; padding-left: 6px; border-left: 1px solid var(--bord-fort); white-space: nowrap; }
.jours span.nuit { border: 0; }
#curseurTemps { width: 100%; appearance: none; height: 26px; background: transparent; margin: 0; cursor: pointer; }
#curseurTemps::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: var(--fond-frise, rgba(255,255,255,.12)); }
#curseurTemps::-moz-range-track { height: 10px; border-radius: 99px; background: var(--fond-frise, rgba(255,255,255,.12)); }
#curseurTemps::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -5px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
#curseurTemps::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.marque-maintenant { position: absolute; bottom: 12px; width: 2px; height: 22px; background: #ffd25e; border-radius: 2px; pointer-events: none; box-shadow: 0 0 6px #ffd25e; }
.instant { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 150px; }
.instant strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.lien { display: flex; align-items: center; gap: 5px; background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 12.5px; padding: 0; }
.lien .ico { width: 15px; height: 15px; }

.sources { position: fixed; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 10.5px; color: rgba(200,212,240,.7); z-index: 19; pointer-events: auto; text-shadow: 0 1px 2px #000; }
.sources a { color: inherit; }

/* ── chargement, aide ───────────────────────────────────────────── */
.chargement { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; background: radial-gradient(ellipse at 50% 20%, #24436f, #0a1426 60%, #060a14); transition: opacity .8s; }
.chargement.fini { opacity: 0; pointer-events: none; }
.carte-chargement { width: 300px; padding: 22px; border-radius: 18px; text-align: center; }
.carte-chargement svg { width: 54px; height: 54px; }
.jauge { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.jauge div { height: 100%; width: 0; background: linear-gradient(90deg, var(--soleil), var(--accent)); transition: width .3s; box-shadow: 0 0 10px rgba(143,211,255,.5); }
dialog { color: var(--texte); border-radius: 18px; padding: 22px 24px; max-width: 760px; width: calc(100vw - 32px); background-color: var(--verre-fort); }
dialog::backdrop { background: rgba(4,8,18,.55); backdrop-filter: blur(3px); }
dialog h2 { margin: 0 0 12px; }
.aide-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.aide-grille h3 { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 0 0 6px; color: var(--accent); }
.aide-grille ul { margin: 0; padding-left: 18px; color: var(--doux); }
.aide-grille b { color: var(--texte); }
.bouton-principal { margin-top: 16px; border: 0; border-radius: 12px; padding: 10px 18px; font-weight: 700; background: linear-gradient(160deg, #b8e6ff, #5ea0ff); color: #06122a; box-shadow: 0 6px 18px rgba(94,160,255,.35), inset 0 1px 0 rgba(255,255,255,.6); }

/* ── vue Prévision ──────────────────────────────────────────────── */
.prevision { position: fixed; inset: 0; overflow: auto; z-index: 10; padding: 80px 12px 120px; background: var(--grain), radial-gradient(ellipse at 20% 0%, #1b2c55 0%, transparent 55%), radial-gradient(ellipse at 90% 10%, #2a1f4f 0%, transparent 50%), linear-gradient(#0c1426, #070b15); }
.prevision .colonne { max-width: 1240px; margin: 0 auto; display: grid; gap: 14px; }
.prevision .colonne > *, .rangee > * { min-width: 0; }
.prevision .carte { overflow-x: auto; }
.prevision .carte { border-radius: 16px; padding: 16px 18px; }
.prevision h2 { margin: 0 0 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); display: flex; align-items: center; gap: 8px; }
.prevision h2 small { margin-left: auto; text-transform: none; letter-spacing: 0; }
.rangee { display: grid; grid-template-columns: 1.15fr 1.85fr; gap: 14px; }
.maintenant-grand { display: flex; gap: 18px; align-items: center; }
.maintenant-grand .icone-meteo { width: 96px; height: 96px; }
.maintenant-grand .icone-meteo svg { width: 100%; height: 100%; }
.maintenant-grand .t { font-size: 64px; font-weight: 200; line-height: 1; letter-spacing: -.03em; }
.maintenant-grand .etat { font-size: 16px; font-weight: 600; }
.mesures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mesure { background: rgba(255,255,255,.04); border: 1px solid var(--bord); border-radius: 12px; padding: 8px 10px; }
.mesure .l { font-size: 11.5px; color: var(--doux); display: flex; gap: 6px; align-items: center; }
.mesure .l .ico { width: 14px; height: 14px; }
.mesure .v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.jours3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jour { background: rgba(255,255,255,.04); border: 1px solid var(--bord); border-radius: 14px; padding: 12px; display: grid; gap: 6px; cursor: pointer; transition: border-color .2s, transform .2s; }
.jour:hover { border-color: var(--bord-fort); transform: translateY(-1px); }
.jour .nom { font-weight: 700; }
.jour .icone-meteo { width: 48px; height: 48px; }
.jour .minmax { font-size: 20px; font-variant-numeric: tabular-nums; }
.jour .minmax .min { color: var(--froid); } .jour .minmax .max { color: var(--chaud); }
.jour .ligne { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--doux); }
.jour .ligne .ico { width: 15px; height: 15px; }
.confiance { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.confiance.haute { background: rgba(95,212,160,.15); color: var(--vert); } .confiance.moyenne { background: rgba(255,201,74,.15); color: var(--soleil); } .confiance.faible { background: rgba(255,138,92,.15); color: var(--chaud); }
.meteogramme { position: relative; }
.meteogramme canvas { width: 100%; display: block; cursor: crosshair; }
.bulle { position: absolute; pointer-events: none; background: var(--verre-fort); border: 1px solid var(--bord-fort); border-radius: 10px; padding: 8px 10px; font-size: 12px; min-width: 170px; box-shadow: var(--ombre); z-index: 2; }
.bulle b { font-variant-numeric: tabular-nums; }
.bulle .r { display: flex; justify-content: space-between; gap: 10px; }
.legende { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--doux); margin-top: 6px; }
.legende i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
table.horaire { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.horaire th { position: sticky; top: 0; background: var(--fond2); color: var(--doux); font-weight: 600; font-size: 11.5px; text-align: right; padding: 6px 8px; }
table.horaire td { text-align: right; padding: 5px 8px; border-top: 1px solid rgba(160,190,255,.07); }
table.horaire th:first-child, table.horaire td:first-child { text-align: left; }
table.horaire tr.nuit td { background: rgba(0,0,0,.18); }
table.horaire tr.jour-sep td { border-top: 1px solid var(--bord-fort); }
table.horaire tr.actif td { background: rgba(110,168,255,.16); }
table.horaire td .icone-meteo { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }
.defile { max-height: 420px; overflow: auto; border-radius: 10px; }
.modeles { width: 100%; border-collapse: collapse; font-size: 13px; }
.modeles td, .modeles th { white-space: nowrap; padding: 6px 8px; text-align: right; border-top: 1px solid rgba(160,190,255,.08); font-variant-numeric: tabular-nums; }
.modeles th { color: var(--doux); font-weight: 600; font-size: 12px; }
.modeles td:first-child, .modeles th:first-child { text-align: left; }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.grille-air { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.texte-doux { color: var(--doux); font-size: 13px; }

/* ── au-dessus des nuages ───────────────────────────────────────── */
.bouton-large { display: flex; align-items: center; gap: 8px; width: 100%; margin: 4px 0 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--bord-fort); background: linear-gradient(180deg, rgba(124,200,255,.16), rgba(124,200,255,.06)); font-weight: 700; font-size: 13px; text-align: left; }
.bouton-large:hover { border-color: var(--accent); }
.bouton-large small { margin-left: auto; font-weight: 600; }
.sommets { top: 78px; right: 12px; width: 470px; max-height: calc(100vh - 190px); overflow: auto; z-index: 24; }
.sommets .fermer { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; }
.verdict-sommets { padding: 10px 12px; border-radius: 12px; background: rgba(124,200,255,.08); border: 1px solid var(--bord); margin-bottom: 10px; }
.verdict-sommets b { display: block; font-size: 15px; }
.verdict-sommets span { color: var(--doux); font-size: 12.5px; }
.verdict-sommets .confiance { margin-top: 6px; }
.legende-etats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--doux); margin-bottom: 8px; }
.legende-etats i, .etiq i.pt, .table-sommets i.pt { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }
.etiq i.pt { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(0,0,0,.6); margin-right: 4px; }
.table-sommets { display: grid; grid-template-columns: minmax(118px, auto) 1fr; gap: 3px 8px; align-items: center; font-size: 12px; }
.table-sommets .nom { cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-sommets .nom:hover { color: var(--accent); }
.table-sommets .nom small { margin-left: 4px; }
.table-sommets .nom.vous { color: var(--accent); font-weight: 700; }
.table-sommets .depuis { width: 20px; height: 20px; padding: 2px; margin-right: 4px; vertical-align: -5px; border: 1px solid var(--bord); border-radius: 6px; background: rgba(255,255,255,.05); color: var(--doux); }
.table-sommets .depuis:hover { color: var(--accent); border-color: var(--accent); }
.table-sommets canvas { width: 100%; height: 14px; border-radius: 4px; cursor: pointer; display: block; }
.table-sommets .entete { font-size: 10.5px; color: var(--pale); position: relative; height: 14px; }
.table-sommets .entete span { position: absolute; top: 0; border-left: 1px solid var(--bord-fort); padding-left: 3px; white-space: nowrap; }

/* ── alertes ─────────────────────────────────────────────────────── */
.cloche { position: relative; }
.pastille-nombre { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; color: #06122a; background: var(--accent); box-shadow: 0 0 0 2px var(--fond); }
.pastille-nombre.attention { background: var(--soleil); } .pastille-nombre.alerte { background: #ff5a4a; color: #fff; animation: pouls 1.6s ease-in-out infinite; }
@keyframes pouls { 50% { box-shadow: 0 0 0 2px var(--fond), 0 0 0 7px rgba(255,90,74,.25); } }
.alertes { top: 78px; right: 12px; width: 330px; max-height: calc(100vh - 190px); overflow: auto; z-index: 25; }
.alertes h3 { margin: 12px 0 4px; font-size: 12px; color: var(--doux); text-transform: uppercase; letter-spacing: .08em; }
.liste-alertes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.liste-alertes li { display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--bord); cursor: pointer; border-left: 3px solid var(--accent); }
.liste-alertes li.attention { border-left-color: var(--soleil); } .liste-alertes li.alerte { border-left-color: #ff5a4a; }
.liste-alertes li small { display: block; margin-top: 2px; }
.liste-alertes li.vide { cursor: default; color: var(--doux); border-left-color: var(--bord); font-size: 12.5px; }
.bandeaux { position: fixed; top: 76px; left: 50%; translate: -50% 0; width: min(560px, calc(100vw - 24px)); display: grid; gap: 8px; z-index: 40; pointer-events: none; }
.bandeau { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; border-radius: 14px; background: var(--grain), rgba(14,24,46,.94); border: 1px solid var(--bord-fort); border-left: 4px solid var(--accent); box-shadow: 0 14px 40px rgba(0,0,0,.45); backdrop-filter: blur(14px); animation: entree .35s cubic-bezier(.2,.9,.3,1.2); }
.bandeau.attention { border-left-color: var(--soleil); } .bandeau.alerte { border-left-color: #ff5a4a; background: var(--grain), linear-gradient(90deg, rgba(80,18,24,.95), rgba(20,22,40,.94)); }
.bandeau > .ico { width: 26px; height: 26px; color: var(--accent); } .bandeau.attention > .ico { color: var(--soleil); } .bandeau.alerte > .ico { color: #ff8a7a; }
.bandeau .corps { flex: 1; display: grid; gap: 2px; } .bandeau .corps span { color: var(--doux); font-size: 12.5px; }
.bandeau .voir { border: 1px solid var(--bord-fort); background: rgba(255,255,255,.08); border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 12.5px; }
.bandeau .fermer { border: 0; background: none; width: 26px; height: 26px; padding: 4px; color: var(--doux); }
.bandeau.sortie { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
@keyframes entree { from { opacity: 0; transform: translateY(-14px) scale(.98); } }

@media (max-width: 900px) {
  .rangee { grid-template-columns: 1fr; }
  .calques { display: none; }
  .fiche { width: auto; left: 12px; top: auto; bottom: 108px; max-height: 38vh; }
  .onglets button span:last-child { display: none; }
  .onglets button { padding: 7px 9px; }
  .marque span { display: none; }
  .barre { gap: 6px; padding: 0 6px 0 8px; }
  .lieu { min-width: 0; padding: 0 8px; }
  #btnAide { width: 32px; height: 32px; }
  .jours { font-size: 10px; }
  .temps { gap: 8px; padding: 0 10px 0 8px; }
  .fiche { max-height: 52vh; cursor: pointer; padding-top: 16px; transition: max-height .3s ease; }
  .fiche::before { content: ""; position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(200,212,240,.35); }
  .fiche.replie { max-height: 96px; overflow: hidden; }
  .fiche.replie .temp { font-size: 30px; } .fiche.replie .icone-meteo { width: 40px; height: 40px; }
  .alertes, .sommets { left: 12px; width: auto; }
  .bandeaux { top: 72px; }
  .instant { min-width: 0; } .instant .lien { display: none; }
  .mesures { grid-template-columns: repeat(2, 1fr); }
  .jours3 { grid-template-columns: 1fr; }
}

/* ── ?capture=1 : la scène seule (visuels de la fiche boutique) ── */
.capture .barre, .capture .panneau, .capture .temps, .capture .sources, .capture .bandeaux, .capture dialog, .capture #etiquettes { display: none !important; }

/* ── écran de chargement : logo « Crête & Aube » ── */
.carte-chargement { width: min(360px, calc(100vw - 32px)); }
.logo-anime { width: 200px; height: 140px; display: block; margin: 0 auto 10px; filter: drop-shadow(0 16px 30px rgba(0,0,0,.5)); }
.logo-anime .l-soleil { animation: lever 4s cubic-bezier(.3,.7,.3,1) infinite alternate; transform-origin: 134px 66px; }
.logo-anime .l-crete { transform-box: fill-box; transform-origin: 50% 100%; animation: respire 6s ease-in-out infinite alternate; }
.logo-anime .l-c2 { animation-delay: -2s; } .logo-anime .l-c3 { animation-delay: -4s; }
.logo-anime .l-brume { animation: derive 11s linear infinite; }
.logo-anime .l-vent path { stroke-dasharray: 160; animation: souffle 2.8s ease-in-out infinite; }
.logo-anime .l-vent path:nth-child(2) { animation-delay: .6s; }
@keyframes lever { from { transform: translateY(22px) scale(.9); } to { transform: translateY(0) scale(1.04); } }
@keyframes respire { from { transform: scaleY(.985); } to { transform: scaleY(1.015); } }
@keyframes derive { to { transform: translateX(70px); } }
@keyframes souffle { 0% { stroke-dashoffset: 160; opacity: 0; } 30% { opacity: 1; } 100% { stroke-dashoffset: -160; opacity: 0; } }
.titre-chargement { font-weight: 800; letter-spacing: .16em; font-size: 20px; margin-bottom: 0; }
.titre-chargement b { color: var(--accent); }
.devise-chargement { font-size: 12.5px; color: var(--doux); letter-spacing: .06em; margin-bottom: 6px; }
.sources-chargement { list-style: none; margin: 14px 0 0; padding: 0; text-align: left; display: grid; gap: 6px; font-size: 12.5px; color: var(--pale); }
.sources-chargement li { display: flex; align-items: center; gap: 9px; transition: color .3s; }
.sources-chargement li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(160,190,255,.25); box-sizing: border-box; }
.sources-chargement li.encours { color: var(--texte); }
.sources-chargement li.encours::before { border-color: var(--accent); border-right-color: transparent; animation: tourne .8s linear infinite; }
.sources-chargement li.ok { color: var(--doux); }
.sources-chargement li.ok::before { border: 0; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%2306122a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.sources-chargement li.ko { color: #ffb38a; }
.sources-chargement li.ko::before { border-color: #ff8a5c; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .logo-anime * { animation: none !important; } }
.carte-chargement svg.logo-anime { width: 200px; height: 140px; }
.sources-chargement li { display: block; position: relative; padding-left: 23px; }
.sources-chargement li::before { position: absolute; left: 0; top: 2px; }

/* ── vol libre ───────────────────────────────────────────────────── */
.vol .verdict-vol { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--bord); border-left: 4px solid var(--c); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent), transparent); margin-bottom: 10px; }
.vol .verdict-vol b { display: block; font-size: 16px; color: var(--c); }
.vol .verdict-vol span { color: var(--doux); font-size: 12.5px; }
.vol .chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.vol .chiffres div { background: rgba(255,255,255,.04); border: 1px solid var(--bord); border-radius: 12px; padding: 8px 10px; }
.vol .chiffres small { display: block; font-size: 11px; }
.vol .chiffres strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.vol .vents { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; font-size: 12.5px; align-items: center; margin-bottom: 10px; }
.vol .vents i { display: block; height: 6px; border-radius: 6px; }
.vol .dangers { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 5px; font-size: 12.5px; }
.vol .dangers li { padding: 6px 9px; border-radius: 9px; background: rgba(255,255,255,.04); border-left: 3px solid var(--accent); }
.vol .dangers li.g1 { border-left-color: var(--soleil); } .vol .dangers li.g2 { border-left-color: var(--braise); }
.vol .bande { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; height: 26px; border-radius: 8px; overflow: hidden; cursor: pointer; }
.vol .bande span { display: block; }
.vol .bande span.ici { outline: 2px solid #fff; outline-offset: -2px; }
.vol .graduation { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--pale); margin-top: 3px; }
.vol .note { font-size: 11.5px; color: var(--pale); margin-top: 8px; }

/* sites de vol libre : pastille = état du décollage dans le vent affiché */
.etiq.e-site { font-size: 11.5px; color: #fff; }
.etiq i.pt.deco-bon { background: #7fe0b0; } .etiq i.pt.deco-travers { background: #ffcf5e; } .etiq i.pt.deco-cul, .etiq i.pt.deco-trop { background: #ff6a55; }
.etiq i.pt.deco-nul { background: #8fd3ff; } .etiq i.pt.deco-inconnu { background: #9aa6bb; }
.etiq i.pt.atterro { background: #fff; border-radius: 2px; width: 7px; height: 7px; }
.etiq.e-deco::before { content: ""; position: absolute; left: 50%; top: 100%; width: 0; height: 0; margin-left: -4px; border: 4px solid transparent; border-top-color: rgba(255,255,255,.75); }
.vol .phenomenes { display: grid; gap: 6px; margin-bottom: 10px; font-size: 12.5px; }
.vol .phenomenes div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; padding: 6px 9px; border-radius: 9px; background: rgba(255,255,255,.04); }
.vol .phenomenes b { color: var(--soleil); font-weight: 600; }
.vol .liste-sites { display: grid; gap: 4px; font-size: 12px; max-height: 180px; overflow: auto; margin-bottom: 10px; }
.vol .liste-sites div { display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 3px 6px; border-radius: 7px; }
.vol .liste-sites div:hover { background: rgba(255,255,255,.06); }
.vol .liste-sites i.pt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.vol .liste-sites small { margin-left: auto; }
.vol h3 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); margin: 12px 0 6px; }

/* ── archives du climat ── */
.archives { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.arch-bloc canvas { width: 100%; height: 190px; display: block; }
.arch-titre { font-weight: 600; margin-bottom: 6px; } .arch-titre small { margin-left: 6px; }
.arch-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.arch-chiffres > div { background: rgba(255,255,255,.04); border: 1px solid var(--bord); border-radius: 12px; padding: 7px 10px; display: grid; }
.arch-chiffres b { font-size: 17px; font-variant-numeric: tabular-nums; } .arch-chiffres span { font-size: 11.5px; color: var(--doux); }
@media (max-width: 900px) { .archives { grid-template-columns: 1fr; } .arch-chiffres { grid-template-columns: repeat(2, 1fr); } }

/* ── assistant ── */
.bouton-assistant { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 11px; border-radius: 99px; border: 0; font-weight: 700; color: #06122a;
  background: linear-gradient(160deg, #ffe7a8, #8fd3ff); box-shadow: 0 4px 16px rgba(143,211,255,.35), inset 0 1px 0 rgba(255,255,255,.7); }
.bouton-assistant:hover { filter: brightness(1.06); }
.pan-assistant { right: 12px; top: 78px; width: 400px; height: calc(100vh - 190px); display: flex; flex-direction: column; z-index: 26; }
.pan-assistant h2 .effacer { margin-left: auto; margin-right: 34px; font-size: 11.5px; text-transform: none; letter-spacing: 0; }
.pan-assistant .fermer { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; }
.pan-assistant .fil { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 8px; }
.pan-assistant .msg { padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; max-width: 92%; }
.pan-assistant .msg.user { align-self: flex-end; background: linear-gradient(160deg, rgba(143,211,255,.3), rgba(143,211,255,.14)); border: 1px solid rgba(170,220,255,.3); }
.pan-assistant .msg.assistant { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid var(--bord); }
.pan-assistant .msg.erreur { border-color: rgba(255,106,85,.5); color: #ffc2b8; }
.pan-assistant .msg .actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.pan-assistant .msg .actions span { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(127,224,176,.14); color: var(--vert); }
.pan-assistant .attente i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--accent); animation: rebond 1s infinite ease-in-out; }
.pan-assistant .attente i:nth-child(2) { animation-delay: .15s; } .pan-assistant .attente i:nth-child(3) { animation-delay: .3s; }
@keyframes rebond { 50% { transform: translateY(-5px); opacity: .5; } }
.pan-assistant .suggestions { display: grid; gap: 6px; }
.pan-assistant .suggestions button { text-align: left; border: 1px solid var(--bord); background: rgba(255,255,255,.04); border-radius: 12px; padding: 8px 11px; font-size: 12.5px; color: var(--doux); }
.pan-assistant .suggestions button:hover { border-color: var(--accent); color: var(--texte); }
.pan-assistant form { display: flex; gap: 8px; align-items: flex-end; }
.pan-assistant textarea { flex: 1; resize: none; border-radius: 12px; border: 1px solid var(--bord-fort); background: rgba(255,255,255,.06); padding: 9px 11px; outline: none; font-size: 13.5px; }
.pan-assistant textarea:focus { border-color: var(--accent); }
.pan-assistant .note { font-size: 10.5px; color: var(--pale); margin: 6px 0 0; }
@media (max-width: 900px) { .bouton-assistant span:last-child { display: none; } .bouton-assistant { padding: 0 10px; } .pan-assistant { left: 12px; width: auto; top: 72px; height: calc(100vh - 180px); } }

/* ── Calques rangés en sections repliables, jamais plus hauts que l'écran ── */
.calques { max-height: calc(100vh - 196px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(214,234,255,.25) transparent; }
.calques .groupe { border-top: 1px solid var(--bord); padding: 6px 0 4px; }
.calques .groupe:first-of-type { border-top: 0; padding-top: 0; }
.calques .groupe summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 6px 6px; border-radius: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); user-select: none; }
.calques .groupe summary::-webkit-details-marker { display: none; }
.calques .groupe summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; opacity: .7; }
.calques .groupe[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.calques .groupe summary:hover { background: rgba(255,255,255,.05); color: var(--texte); }
.calques .interrupteurs label { padding: 5px 6px; font-size: 13px; }
.calques .bouton-large { margin: 6px 0 4px; }
.pan-assistant[hidden] { display: none; }

/* ── téléphone : la recherche de lieu garde sa place, les sources tiennent sur une ligne ── */
@media (max-width: 900px) {
  .lieu { flex: 1 1 110px; min-width: 96px; }
  .lieu input { font-size: 13px; }
  .onglets { flex: none; }
  .sources { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px; bottom: 2px; font-size: 9.5px; }
  .sources:focus-within, .sources:active { white-space: normal; }
  .jours span { white-space: nowrap; }
}
@media (max-width: 900px) {
  .barre { gap: 4px; padding: 0 5px 0 7px; }
  .lieu { flex: 1 1 84px; min-width: 76px; gap: 5px; padding: 0 7px; }
  .onglets { gap: 2px; padding: 3px; }
  .onglets button { padding: 6px 7px; }
  .bouton-assistant, .bouton-rond { width: 34px; height: 34px; padding: 0; justify-content: center; flex: none; }
  #btnAide { width: 30px; height: 30px; }
}
