:root {
  --bg: #0b1220;
  --bg-soft: #101a2d;
  --panel: rgba(16, 26, 45, .84);
  --panel-solid: #121d31;
  --text: #eef4ff;
  --muted: #9fb0c7;
  --line: rgba(255, 255, 255, .10);
  --brand: #65d6ff;
  --brand-2: #7c5cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --green: #34d399;
  --yellow: #facc15;
  --orange: #fb923c;
  --red: #ef4444;
  --purple: #a855f7;
  --unknown: #64748b;
  color-scheme: dark;
}

html[data-theme='light'] {
  --bg: #f6f8fc;
  --bg-soft: #eef4fb;
  --panel: rgba(255, 255, 255, .88);
  --panel-solid: #ffffff;
  --text: #172033;
  --muted: #5d6b80;
  --line: rgba(15, 23, 42, .12);
  --shadow: 0 24px 80px rgba(15, 23, 42, .13);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(101, 214, 255, .18), transparent 28rem),
    radial-gradient(circle at top right, rgba(124, 92, 255, .18), transparent 32rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; }

button, input, select { font: inherit; }

.skip-link {
  position: fixed;
  top: -10rem;
  left: 1rem;
  z-index: 9999;
  background: var(--brand);
  color: #05101c;
  padding: .65rem 1rem;
  border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.hero { padding: 1rem clamp(1rem, 3vw, 3rem) 2rem; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1480px;
  margin: 0 auto;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 13, 24, .52);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 1rem;
  z-index: 50;
}

html[data-theme='light'] .topbar { background: rgba(255,255,255,.72); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  min-width: 0;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 14px 40px rgba(101, 214, 255, .25);
}
.brand__text { display: grid; line-height: 1; }
.brand__text small { color: var(--muted); margin-top: .22rem; }

.topbar__links {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.topbar__links a, .ghost, .menu-toggle {
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  border-radius: 999px;
  padding: .72rem .95rem;
  cursor: pointer;
}
.topbar__links a:hover, .ghost:hover, .menu-toggle:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.05);
}
.menu-toggle { display: none; }

.hero__content {
  max-width: 1480px;
  margin: 5rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 2rem;
  align-items: end;
}
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--brand);
  font-weight: 780;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-size: .78rem;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.6rem);
  line-height: .93;
  letter-spacing: -.07em;
  max-width: 980px;
}
.lead {
  max-width: 820px;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.65;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  border: 0;
  border-radius: 999px;
  padding: .9rem 1.2rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 760;
}
.button--primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; box-shadow: 0 18px 45px rgba(101, 214, 255, .24); }
.button--soft { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--line); }
.full { width: 100%; }
.status-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.status-card p { color: var(--muted); margin: 0 0 .3rem; }
.status-card strong { display: block; font-size: 1.55rem; margin-bottom: .25rem; }
.status-card span { color: var(--muted); }
.pulse {
  width: .8rem;
  height: .8rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .55);
  animation: pulse 1.7s infinite;
  margin-bottom: 1rem;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 1rem rgba(52, 211, 153, 0); } }

.summary, .workspace, .modules, .local, .webmaster, .sources, .footer {
  width: min(1480px, calc(100% - 2rem));
  margin-inline: auto;
}

.summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}
.risk-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  min-height: 112px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 1rem;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.risk-card:hover { transform: translateY(-2px); border-color: rgba(101,214,255,.45); }
.risk-card__icon { font-size: 1.55rem; }
.risk-card h2 { margin: 0 0 .3rem; font-size: 1rem; }
.risk-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.level {
  display: inline-grid;
  place-items: center;
  min-width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  color: #03101c;
  font-weight: 900;
}
.level-0 { background: var(--green); }
.level-1 { background: var(--yellow); }
.level-2 { background: var(--orange); }
.level-3 { background: var(--red); color: #fff; }
.level-4 { background: var(--purple); color: #fff; }
.level-x { background: var(--unknown); color: #fff; }

.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 340px;
  gap: 1rem;
  margin-top: 1rem;
  align-items: stretch;
}
.panel, .map-shell, .module-card, .local, .code-panel, .source-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.panel { padding: 1rem; }
.panel__head h2, .map-toolbar h2, .section-title h2 { margin: 0; letter-spacing: -.03em; }
.field { display: grid; gap: .45rem; margin: 1rem 0; color: var(--muted); font-weight: 650; }
select, input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: .86rem .9rem;
  outline: none;
}
html[data-theme='light'] select, html[data-theme='light'] input { background: #fff; }
select:focus, input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(101,214,255,.12); }
.layer-list { display: grid; gap: .55rem; margin-block: 1rem; }
.layer {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-md);
  padding: .82rem .9rem;
  cursor: pointer;
}
.layer.is-active { border-color: rgba(101,214,255,.7); background: rgba(101,214,255,.13); }
.legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: .88rem;
}
.dot { display: inline-block; width: .72rem; height: .72rem; border-radius: 50%; margin-right: .3rem; }
.l0 { background: var(--green); } .l1 { background: var(--yellow); } .l2 { background: var(--orange); } .l3 { background: var(--red); } .l4 { background: var(--purple); }

.map-shell { overflow: hidden; min-height: 720px; display: grid; grid-template-rows: auto minmax(560px, 1fr) auto; }
.map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1rem .8rem;
}
.toolbar-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: end; }
#map { width: 100%; height: clamp(560px, 68vh, 760px); min-height: 560px; position: relative; background: radial-gradient(circle at 45% 40%, rgba(101,214,255,.11), transparent 34rem), #122033; z-index: 1; overflow: hidden; isolation: isolate; contain: layout paint; }
.leaflet-container { background: transparent; color: #1f2937; font: inherit; }
.leaflet-container .leaflet-tile,
.leaflet-container img.leaflet-marker-icon,
.leaflet-container img.leaflet-marker-shadow { max-width: none !important; max-height: none !important; }
.leaflet-container .leaflet-pane,
.leaflet-container .leaflet-tile-pane,
.leaflet-container .leaflet-overlay-pane { position: absolute; }
.leaflet-container .leaflet-tile-pane { z-index: 100; pointer-events: none; }
.leaflet-container .leaflet-overlay-pane { z-index: 400; }
.leaflet-container .leaflet-marker-pane { z-index: 450; }
.leaflet-container .leaflet-popup-pane { z-index: 470; }
.leaflet-container .leaflet-control-container { position: relative; z-index: 500; }
.leaflet-container .leaflet-overlay-pane svg, .leaflet-container canvas { will-change: transform; }
#map.is-vector-only .leaflet-tile-pane { display: none; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel-solid); color: var(--text); }
.cartogram {
  display: none;
  padding: 1rem;
  gap: .35rem;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  max-height: 340px;
  overflow: auto;
  border-top: 1px solid var(--line);
}
.cartogram.is-visible { display: grid; }
.tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .55rem;
  background: rgba(255,255,255,.05);
  text-align: left;
  cursor: pointer;
}
.tile small { display: block; color: var(--muted); }
.tile strong { font-size: .86rem; }
.tile[data-level="0"] { box-shadow: inset 0 0 0 2px rgba(52,211,153,.38); }
.tile[data-level="1"] { box-shadow: inset 0 0 0 2px rgba(250,204,21,.48); }
.tile[data-level="2"] { box-shadow: inset 0 0 0 2px rgba(251,146,60,.55); }
.tile[data-level="3"] { box-shadow: inset 0 0 0 2px rgba(239,68,68,.58); }
.tile[data-level="4"] { box-shadow: inset 0 0 0 2px rgba(168,85,247,.65); }

.details-empty, .detail-block p { color: var(--muted); line-height: 1.55; }
.detail-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .8rem 0 1rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.05);
}
.detail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.detail-list li { border-bottom: 1px solid var(--line); padding-bottom: .55rem; color: var(--muted); }

.modules, .webmaster, .sources { margin-top: 4rem; }
.section-title { margin-bottom: 1rem; }
.section-title h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.module-card { padding: 1.2rem; display: flex; flex-direction: column; min-height: 280px; }
.module-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.module-icon { font-size: 2rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .7rem;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  font-weight: 700;
  font-size: .78rem;
}
.module-card h3 { font-size: 1.3rem; margin: 1rem 0 .35rem; }
.module-card p { color: var(--muted); line-height: 1.55; }
.module-card ul { margin: .4rem 0 1rem; padding-left: 1.2rem; color: var(--muted); line-height: 1.55; }
.module-link { margin-top: auto; color: var(--brand); font-weight: 750; text-decoration: none; }

.local {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 1rem;
  padding: 1.2rem;
  align-items: center;
}
.local__content h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 3rem); letter-spacing: -.04em; }
.local__content p { color: var(--muted); line-height: 1.65; }
.local-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(101,214,255,.13), rgba(124,92,255,.12));
  padding: 1rem;
}
.local-card h3 { margin-bottom: .4rem; }
.local-card p { color: var(--muted); line-height: 1.5; }

.code-panel { padding: 1.2rem; }
.code-panel p { color: var(--muted); }
pre { margin: 0; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(0,0,0,.22); padding: 1rem; }
code { color: var(--brand); }
.source-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.source-grid article { padding: 1rem; }
.source-grid p, .warning { color: var(--muted); line-height: 1.55; }
.warning {
  border: 1px solid rgba(250,204,21,.36);
  background: rgba(250,204,21,.08);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 3rem 0;
  color: var(--muted);
}
.footer a { color: var(--brand); text-decoration: none; }

body.embed .topbar, body.embed .hero__actions, body.embed .workspace, body.embed .modules, body.embed .local, body.embed .webmaster, body.embed .sources, body.embed .footer { display: none; }
body.embed .hero { padding-bottom: 0; }
body.embed .hero__content { grid-template-columns: 1fr; margin-top: 1rem; }
body.embed h1 { font-size: 2rem; }
body.embed .lead { display: none; }
body.embed .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }

@media (max-width: 1180px) {
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace { grid-template-columns: 290px minmax(0, 1fr); }
  .panel--details { grid-column: 1 / -1; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .topbar { align-items: flex-start; border-radius: 28px; }
  .topbar__links {
    position: absolute;
    left: .8rem;
    right: .8rem;
    top: calc(100% + .5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel-solid);
    box-shadow: var(--shadow);
  }
  .topbar__links.is-open { display: flex; }
  .hero__content, .local { grid-template-columns: 1fr; margin-top: 3rem; }
  .summary, .module-grid, .source-grid { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .map-toolbar { align-items: flex-start; flex-direction: column; }
  #map { height: 460px; min-height: 460px; }
  .map-shell { min-height: auto; }
  .footer { flex-direction: column; }
}

/* Correctif vigilance météo : affichage des phénomènes actifs */
.phenomenon-list li {
  display: block;
}
.phenomenon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  margin-right: .55rem;
  margin-bottom: .25rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  color: #0b1220;
  font-weight: 800;
  font-size: .78rem;
  vertical-align: middle;
}
.phenomenon-chip.level-3 { color: #fff; }

/* Correctif 2026-06-19 : phénomènes visibles sur la carte + bulletin de suivi */
.leaflet-tooltip.map-phenomena-label {
  display: grid;
  gap: .12rem;
  min-width: 74px;
  max-width: 118px;
  padding: .28rem .35rem;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 12px;
  background: rgba(11, 18, 32, .84);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  font: 800 .62rem/1.15 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: center;
  white-space: normal;
  pointer-events: none;
}
.leaflet-tooltip.map-phenomena-label::before { display: none; }
.map-label-code { color: #7dd3fc; letter-spacing: .08em; }
.map-label-name { display: none; }
.map-label-phenomena { display: flex; gap: .15rem; justify-content: center; flex-wrap: wrap; }
.map-label-risk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .08rem .28rem;
  color: #06111f;
  background: var(--yellow);
}
.map-label-risk.level-2 { background: var(--orange); }
.map-label-risk.level-3 { background: var(--red); color: #fff; }
.map-label-more { color: var(--muted); }
.leaflet-tooltip.map-hover-tooltip {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: rgba(11,18,32,.9);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.leaflet-tooltip.map-hover-tooltip::before { border-top-color: rgba(11,18,32,.9); }
.bulletin-box {
  margin-top: 1rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.045);
}
.bulletin-box h3 { margin: 0 0 .5rem; font-size: 1rem; }
.bulletin-section {
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}
.bulletin-section:first-of-type { border-top: 0; }
.bulletin-section__head {
  display: flex;
  gap: .45rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}
.bulletin-title {
  margin: .2rem 0 .45rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}
.bulletin-box--comment { background: rgba(101,214,255,.07); }
@media (max-width: 820px) {
  .leaflet-tooltip.map-phenomena-label { transform: scale(.86); transform-origin: center; }
}

/* Version vigilance officielle : pictogrammes, popup et archives */
.weather-phenomena-marker {
  background: transparent;
  border: 0;
}
.weather-icon-stack {
  display: flex;
  gap: .12rem;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.45));
}
.weather-icon {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(15, 23, 42, .9);
  border-radius: 999px;
  background: #facc15;
  color: #111827;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 2px 0 rgba(255,255,255,.35) inset;
}
.weather-icon.level-2 { background: #fb923c; }
.weather-icon.level-3 { background: #ef4444; color: #fff; }
.official-vigilance-popup .leaflet-popup-content-wrapper,
.official-vigilance-popup .leaflet-popup-tip {
  background: #fff;
  color: #111827;
}
.official-vigilance-popup .leaflet-popup-content-wrapper {
  border: 1px solid rgba(15,23,42,.22);
  border-radius: 12px;
  box-shadow: 0 16px 35px rgba(0,0,0,.35);
}
.official-vigilance-popup .leaflet-popup-content { margin: .8rem .9rem; }
.official-popup__department {
  width: 100%;
  margin: 0 0 .25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.official-popup__department strong { font-size: 1.05rem; }
.official-popup__date {
  margin: .1rem 0 .55rem;
  text-align: center;
  color: #334155;
}
.official-popup__risk { margin-top: .55rem; }
.official-popup__risk-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.official-popup__link {
  margin: .7rem 0 0;
  color: #1d4ed8;
  font-weight: 700;
}
.vigilance-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: .25rem;
  margin-top: .45rem;
}
.timeline-slot {
  padding: .25rem .35rem;
  border-radius: 6px;
  background: #facc15;
  color: #111827;
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
}
.timeline-slot span {
  display: block;
  font-size: .7rem;
  font-weight: 700;
}
.timeline-slot.level-2 { background: #fb923c; }
.timeline-slot.level-3 { background: #ef4444; color: #fff; }
.timeline-box {
  margin-top: 1rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.045);
}
.timeline-box h3 { margin: 0 0 .65rem; font-size: 1rem; }
.timeline-phenomenon + .timeline-phenomenon {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.timeline-phenomenon__head {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .35rem;
}
.small { font-size: .84rem; }
.archives {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto;
}
.archive-toolbar {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, .58);
}
.archive-toolbar .field { min-width: 230px; margin: 0; }
.archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .8rem;
}
.archive-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.045);
}
.archive-card p { margin: .25rem 0 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 820px) {
  .weather-icon { width: 1.3rem; height: 1.3rem; font-size: .82rem; }
  .weather-icon-stack { gap: 0; }
  .archive-toolbar { align-items: stretch; flex-direction: column; }
}

/* Correctif rendu propre 2026-06-19 : carte plus lisible, pictogrammes compacts */
.leaflet-tooltip.map-hover-tooltip,
.leaflet-tooltip.map-phenomena-label {
  display: none !important;
}
.weather-phenomena-marker {
  width: auto !important;
  height: auto !important;
}
.weather-icon-stack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 22px;
  min-height: 22px;
  padding: 2px;
  border: 1px solid rgba(15, 23, 42, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 2px 8px rgba(0,0,0,.24);
  filter: none;
}
.weather-icon {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(15, 23, 42, .55);
  font-size: 12px;
  box-shadow: none;
}
.weather-icon-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .88);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.official-vigilance-popup .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.24);
}
.official-vigilance-popup .leaflet-popup-content {
  width: min(300px, calc(100vw - 80px)) !important;
  margin: .7rem .8rem;
}
.official-popup__risk-title .weather-icon {
  width: 22px;
  height: 22px;
  font-size: 14px;
}
.bulletin-box--local {
  border-color: rgba(101, 214, 255, .28);
  background: rgba(101, 214, 255, .06);
}
.bulletin-box--missing {
  border-color: rgba(251, 146, 60, .35);
  background: rgba(251, 146, 60, .08);
}
.detail-text {
  margin-top: .85rem;
  color: var(--muted);
}
@media (max-width: 820px) {
  .weather-icon { width: 16px; height: 16px; font-size: 10px; }
  .weather-icon-stack { padding: 1px; }
}

/* Correctif phénomènes 2026-06-19 : badges attachés aux départements */
.weather-phenomena-marker { display: none !important; }
.leaflet-tooltip.map-phenomena-label {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: inherit !important;
  pointer-events: none !important;
}
.leaflet-tooltip.map-phenomena-label::before { display: none !important; }
.map-phenomena-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 22px;
  min-height: 22px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.38);
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.map-phenomena-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.55);
  background: #facc15;
  color: #111827;
  font-size: 12px;
  line-height: 1;
}
.map-phenomena-icon.level-2 { background: #fb923c; }
.map-phenomena-icon.level-3 { background: #ef4444; color: #fff; }
.map-phenomena-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: rgba(15,23,42,.9);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
@media (max-width: 820px) {
  .map-phenomena-icon { width: 15px; height: 15px; font-size: 10px; }
  .map-phenomena-badge { min-width: 18px; min-height: 18px; padding: 1px; }
}

/* Correctif 2026-06-19 : pictogrammes météo propres, sans tooltips Leaflet permanents */
.leaflet-tooltip.map-phenomena-label { display: none !important; }
.weather-phenomena-marker { display: none !important; }
.phenomena-overlay {
  position: absolute;
  inset: 0;
  z-index: 620;
  pointer-events: none;
  overflow: hidden;
}
.phenomena-overlay__badge {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 3px 10px rgba(0,0,0,.28);
  cursor: pointer;
  pointer-events: auto;
}
.phenomena-overlay__badge:hover,
.phenomena-overlay__badge:focus-visible {
  background: #fff;
  outline: 2px solid rgba(125,211,252,.95);
  z-index: 2;
}
.phenomena-overlay__badge .weather-icon-stack {
  padding: 0;
  gap: 1px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.phenomena-overlay__badge .weather-icon {
  width: 18px;
  height: 18px;
  font-size: 11px;
  border: 1px solid rgba(15,23,42,.45);
}
.phenomena-overlay__badge .weather-icon-more {
  min-width: 15px;
  height: 15px;
  font-size: 9px;
}

/* Correctif détail vigilance : panneau départemental strictement local */
.detail-block--weather-only .detail-level--simple {
  margin-top: .4rem;
}
.detail-subtitle {
  margin: 1rem 0 .45rem;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .02em;
}
.detail-block--weather-only .phenomenon-list {
  margin-bottom: .85rem;
}
.detail-block--weather-only .bulletin-box {
  margin-top: 1rem;
}
.detail-block--weather-only .bulletin-box h3 {
  font-size: 1.05rem;
}
.detail-block--weather-only .bulletin-section:last-child {
  padding-bottom: 0;
}


/* Correctif 2026-06-22 : carte recentrée + pictos toujours visibles au zoom */
.phenomena-overlay {
  z-index: 620;
}
.phenomena-overlay__badge {
  transition: transform .08s ease, background .08s ease;
  will-change: left, top;
}
.phenomena-overlay__badge:hover,
.phenomena-overlay__badge:focus-visible {
  transform: translate(-50%, -50%) scale(1.12);
}
.phenomena-overlay__badge .weather-icon-stack {
  max-width: 92px;
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .phenomena-overlay__badge .weather-icon-stack { max-width: 74px; }
}

/* Correctif 2026-06-22 : pictogrammes vigilance propres et stables */
.phenomena-overlay {
  z-index: 650;
  overflow: hidden;
}
.phenomena-overlay__badge {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.32));
}
.phenomena-overlay__badge:hover,
.phenomena-overlay__badge:focus-visible {
  background: transparent;
  outline: none;
  transform: translate(-50%, -50%) scale(1.18);
}
.phenomena-overlay__badge .weather-icon-stack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 44px;
  padding: 1px 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  box-shadow: none;
}
.phenomena-overlay__badge .weather-icon {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: none;
  font-size: 9px;
  line-height: 15px;
}
.phenomena-overlay__badge .weather-icon-more {
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(15,23,42,.82);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 14px;
}


/* Correctif ATMO : rendu type carte qualité de l'air + détail sous-indices */
.detail-block--atmo { display: grid; gap: 1rem; }
.detail-level--atmo {
  border-color: color-mix(in srgb, var(--atmo-color) 55%, rgba(255,255,255,.22));
  background: linear-gradient(135deg, color-mix(in srgb, var(--atmo-color) 22%, transparent), rgba(255,255,255,.04));
}
.detail-level--atmo strong {
  color: #06111f;
  background: var(--atmo-color);
  border-radius: 999px;
  padding: .42rem .75rem;
  min-width: 7rem;
  text-align: center;
}
.atmo-day {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: .9rem;
  background: rgba(255,255,255,.045);
}
.atmo-day h3 {
  margin: 0 0 .7rem;
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  font-size: .98rem;
}
.atmo-day h3 small { color: var(--muted); font-size: .78rem; }
.atmo-bubbles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.atmo-bubble {
  display: flex;
  min-height: 5.1rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .18rem;
  border-radius: 999px;
  padding: .75rem .5rem;
  color: #06111f;
  text-align: center;
  background: var(--atmo-color);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}
.atmo-bubble strong { font-size: .82rem; line-height: 1; }
.atmo-bubble small { font-size: .66rem; line-height: 1.15; font-weight: 800; }
.atmo-episodes, .atmo-taxons {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .85rem;
  background: rgba(255,255,255,.04);
}
.atmo-episodes p { margin: .35rem 0 0; }
.atmo-mini-chip {
  display: inline-flex;
  margin: .45rem .35rem 0 0;
  padding: .28rem .55rem;
  border-radius: 999px;
  color: #06111f;
  background: var(--atmo-color);
  font-weight: 850;
  font-size: .78rem;
}
@media (max-width: 1180px) {
  .atmo-bubbles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .atmo-bubbles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atmo-bubble { min-height: 4.4rem; }
}
