:root{--bg:#071426;--text:#e8f0fb;--muted:#9fb3cc;--glass:rgba(255,255,255,.08);--line:rgba(255,255,255,.18)}
*{box-sizing:border-box}
body{margin:0;font:16px/1.5 Inter,system-ui,sans-serif;color:var(--text);background:linear-gradient(160deg,#071426,#0a2748 55%,#06101f) fixed;min-height:100vh}
a{color:#7fb6ff}
.top,.foot,main{max-width:960px;margin:0 auto;padding:16px}
.top{display:flex;justify-content:space-between;align-items:center}
.brand{font-weight:700;text-decoration:none;color:var(--text)}
.langs a{margin-left:10px;text-decoration:none;color:var(--muted)}
.langs a[aria-current]{color:var(--text);font-weight:700}
.lead{color:var(--muted)}
.cards{list-style:none;padding:0;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.card{background:var(--glass);border:1px solid var(--line);border-radius:16px;padding:16px;backdrop-filter:blur(16px);display:flex;flex-direction:column;gap:4px}
.card span{color:var(--muted);font-size:.9rem}
.foot{color:var(--muted);font-size:.85rem}

a{color:#7fb6ff}
.muted{color:var(--muted)}.small{font-size:.85rem}
.card-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.card-head a{color:var(--text);text-decoration:none}.card-head div{display:flex;flex-direction:column}
.level{font-size:1.6rem;font-weight:700}.level small{font-size:.9rem;font-weight:400;color:var(--muted)}.level.big{font-size:2.4rem}
.trend{font-size:.9rem;font-weight:400;color:var(--muted);margin-left:6px}
.badge{display:inline-flex;gap:4px;align-items:center;padding:2px 10px;border-radius:999px;font-size:.8rem;font-weight:600;white-space:nowrap}
.badge.st-normal{background:#12325C;color:#CFE3FF}.badge.st-vigilance{background:#3D3207;color:#FFE9A0}
.badge.st-alerte{background:#44200A;color:#FFD2B3}.badge.st-danger{background:#4A1414;color:#FFCFCB}
.badge.st-pas_de_seuil{background:#1E2A3A;color:#D3DCE8}.badge.st-hors_ligne{background:#18222F;color:#A9B6C6}
.card.st-normal{border-color:#4C9AFF55}.card.st-vigilance{border-color:#F2B600aa}.card.st-alerte{border-color:#FF8A3Daa}.card.st-danger{border-color:#FF6B63}
.card.st-hors_ligne{opacity:.7}
.spark{width:100%;height:44px}.spark path,.chart .ln{fill:none;stroke:#4C9AFF;stroke-width:2;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.spark .th,.chart .th{stroke:#F2B600;stroke-dasharray:4 3;stroke-width:1;vector-effect:non-scaling-stroke}
.chart .th-alerte{stroke:#FF8A3D}.chart .th-danger{stroke:#FF6B63}
.chart{width:100%;height:auto}.chart .grid{stroke:var(--line);stroke-width:1}.chart text{fill:var(--muted);font-size:11px}.chart .thl{fill:#FFE9A0}
.glass{background:var(--glass);border:1px solid var(--line);border-radius:16px;padding:16px;margin:16px 0;backdrop-filter:blur(16px)}
.glass h2{margin-top:0;font-size:1.05rem}.plain{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px}
.banner{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;background:var(--glass);border:1px solid var(--line);border-left:6px solid #8794A6;border-radius:12px;padding:12px 16px;margin:12px 0}
.banner.ic-0{border-left-color:#4C9AFF}.banner.ic-1{border-left-color:#F2B600}.banner.ic-2{border-left-color:#FF8A3D}.banner.ic-3{border-left-color:#FF6B63}
.crumbs{color:var(--muted);font-size:.9rem}

.field{display:flex;flex-direction:column;gap:4px;margin:12px 0}.field input,.field select{padding:12px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--text);font:inherit}
.opt{display:flex;gap:10px;align-items:flex-start;padding:8px 0}.opt input{margin-top:5px;width:18px;height:18px}
fieldset.glass{border:1px solid var(--line)}legend{padding:0 8px;color:var(--muted)}
.btn{background:#4C9AFF;color:#04162b;border:0;border-radius:12px;padding:12px 20px;font:inherit;font-weight:700;cursor:pointer;margin:8px 8px 8px 0}.btn.ghost{background:transparent;color:var(--text);border:1px solid var(--line)}
.error{background:#4A1414;color:#FFCFCB;border-radius:12px;padding:10px 14px}.hp{position:absolute;left:-9999px}

.search{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.search input{flex:1;min-width:200px;padding:12px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--text);font:inherit}
.map svg{width:100%;height:auto;max-height:420px}.map [data-basin]{stroke:#fff;stroke-opacity:.5;cursor:pointer}
.prose{max-width:68ch}.prose h2{margin-top:1.6em;font-size:1.1rem}.footnav a{margin-right:12px}

/* Cartes de station : illustration qui dépasse de 30 px au-dessus de la carte */
.cards{row-gap:48px;margin-top:40px}
.card.station{padding:0;gap:0}
.station .photo{position:relative;height:92px}
.station .photo img{position:absolute;left:0;top:-30px;width:100%;height:122px;object-fit:cover;object-position:50% 26%;pointer-events:none}
.station .photo::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(13,33,64,0),#0D2140);border-radius:0 0 0 0}
.station .photo .badge{position:absolute;top:12px;right:12px;z-index:2}
.station .body{padding:12px 16px 16px;display:flex;flex-direction:column;gap:4px}
.station.st-hors_ligne .photo img{opacity:.4}
