:root {
  --bg: #0f1a2b;
  --panel: #182742;
  --panel-2: #1f3050;
  --text: #e8eef8;
  --muted: #93a5c4;
  --in: #4fc3f7;
  --out: #ffb74d;
  --event: #ef5350;
  --ok: #66bb6a;
  --warn: #ffa726;
  --bad: #ef5350;
  --radius: 12px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px 6px;
  flex-wrap: wrap;
}
h1 { margin: 0; font-size: 1.5rem; }
.subtitle { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

.header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lang-toggle {
  background: var(--panel); color: var(--muted); border: 1px solid transparent;
  border-radius: 999px; padding: 8px 14px; font-size: .85rem; font-weight: 700;
  cursor: pointer;
}
.lang-toggle:hover { color: var(--text); border-color: var(--in); }

/* Menu de navigation vers les rubriques (en-tête, haut à droite). */
.menu-nav { position: relative; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  background: var(--panel-2); border: 1px solid #2b3f66; border-radius: 10px;
  padding: 6px; margin: 0; list-style: none; min-width: 230px;
  max-height: 74vh; overflow-y: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.menu-list li { padding: 0; border: none; }
.menu-list button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--text); padding: 8px 12px; border-radius: 7px; cursor: pointer;
  font-size: .85rem;
}
.menu-list button:hover { background: rgba(255, 255, 255, .06); color: var(--in); }
/* « Nous écrire » n'est pas une rubrique du tableau de bord mais une action :
   un filet l'isole de la liste des panneaux. */
.menu-list li.menu-sep {
  margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .10);
}

.status-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border-radius: 999px; padding: 8px 14px;
  font-size: .85rem; color: var(--muted);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }

main { padding: 12px 22px 40px; max-width: 1100px; margin: 0 auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 16px 18px; }
.card-label { color: var(--muted); font-size: .85rem; }
.card-value { font-size: 2.4rem; font-weight: 700; margin-top: 4px; }
.card-value.small { font-size: 1.3rem; margin-top: 10px; }
.card-sub { color: var(--muted); font-size: .78rem; margin-top: 4px; }

.panel { background: var(--panel); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.panel h2 { margin: 0 0 12px; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legend { font-size: .75rem; color: var(--muted); font-weight: 400; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 3px 0 8px; }
.sw-in { background: var(--in); } .sw-out { background: var(--out); } .sw-ev { background: var(--event); }

.chart-wrap { position: relative; height: 320px; }
.note { color: var(--muted); font-size: .8rem; }
.hint { cursor: help; color: var(--muted); font-size: .8rem; }

.trends { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

.analysis-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.analysis-controls input[type="date"] {
  background: var(--panel-2); color: var(--text); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 7px 10px; font-size: .9rem; color-scheme: dark;
}
.analysis-controls button {
  background: var(--in); color: #06263a; border: none; border-radius: 8px;
  padding: 8px 16px; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.ev-analyze, .ev-rapport { background: none; border: none; cursor: pointer; font-size: .95rem; padding: 0 2px; margin-left: 6px; }
.events-more { margin-top: 12px; padding: 7px 16px; font-size: .82rem; }

/* Synthèse RENS */
.syn-result {
  margin-top: 12px; background: var(--panel-2); border-radius: 10px;
  padding: 4px 16px; font-size: .88rem; line-height: 1.55; display: none;
}
.syn-result.filled { display: block; }
.syn-result h3 { font-size: .92rem; color: var(--in); margin: 14px 0 6px; }
.syn-result p { margin: 6px 0; }
.syn-result ul { margin: 6px 0; padding-left: 20px; }

/* Carte des incidents */
.map-wrap { height: 380px; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.map-days {
  background: var(--panel-2); color: var(--text); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 3px 8px; font-size: .78rem; margin-left: auto;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--panel-2); color: var(--text);
}
.leaflet-popup-content a { color: var(--in); }
.map-rapport {
  margin-top: 6px; background: var(--in); color: #06263a; border: none;
  border-radius: 6px; padding: 4px 10px; font-size: .78rem; font-weight: 700;
  cursor: pointer;
}
.leaflet-container { font: inherit; }
.pulse-ring {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid #ef5350;
  animation: pulse-ring 1.6s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(.45); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Page d'administration */
.analysis-controls input[type="text"], .analysis-controls select {
  background: var(--panel-2); color: var(--text); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 7px 10px; font-size: .9rem;
}
.created-box {
  margin-top: 12px; background: var(--panel-2); border: 1px solid var(--in);
  border-radius: 10px; padding: 12px 14px; font-size: .88rem;
}
.created-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.created-link code {
  background: var(--bg); padding: 6px 10px; border-radius: 6px;
  word-break: break-all; font-size: .8rem;
}
.user-off td { opacity: .5; }
a.lang-toggle { text-decoration: none; }
.log-box {
  background: var(--bg); border-radius: 8px; padding: 10px 12px;
  max-height: 320px; overflow: auto; font-family: ui-monospace, Consolas, monospace;
  font-size: .74rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.lvl-WARNING { color: var(--warn); }
.lvl-ERROR, .lvl-CRITICAL { color: var(--bad); }
.lvl-INFO { color: var(--muted); }
.state-value { font-weight: 700; }
.history-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; flex-wrap: wrap; }
.history-dots { display: flex; gap: 3px; flex-wrap: wrap; }
.dot-h { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot-ok { background: var(--ok); } .dot-warn { background: var(--warn); } .dot-bad { background: var(--bad); }
.trend-card { background: var(--panel-2); border-radius: 10px; padding: 12px 14px; font-size: .88rem; }
.trend-card .t-title { font-weight: 600; margin-bottom: 6px; }
.trend-card .t-date { color: var(--muted); font-size: .78rem; }
.trend-line { display: flex; justify-content: space-between; margin-top: 6px; }
.pct-up { color: var(--ok); font-weight: 700; }
.pct-down { color: var(--bad); font-weight: 700; }
.pct-none { color: var(--muted); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters button {
  background: var(--panel-2); color: var(--text); border: 1px solid transparent;
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .82rem;
}
.filters button.active { border-color: var(--in); }

.events { list-style: none; margin: 0; padding: 0; }
.events li { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .9rem; }
.events li:last-child { border-bottom: none; }
.badge { font-size: .72rem; border-radius: 999px; padding: 2px 9px; margin-right: 8px; white-space: nowrap; }
.badge-incident { background: #5c1f24; color: #ff8a80; }
.badge-iran { background: #5c421f; color: #ffcc80; }
.badge-usa { background: #1f3a5c; color: #90caf9; }
.badge-autre { background: #1f5c46; color: #80e2b8; }
.badge-officiel { background: #3a3a5c; color: #b8b8ff; }
.ev-date { color: var(--muted); font-size: .76rem; margin-right: 8px; white-space: nowrap; }
.events a { color: var(--text); text-decoration: none; }
.events a:hover { text-decoration: underline; }
.ev-source { color: var(--muted); font-size: .76rem; }
.ev-more {
  background: var(--panel-2); color: var(--muted); border: none; cursor: pointer;
  border-radius: 999px; padding: 2px 9px; font-size: .72rem; margin-left: 8px;
  white-space: nowrap;
}
.ev-more:hover { color: var(--text); }
.ev-sub { list-style: none; margin: 6px 0 0; padding: 0 0 0 18px; }
.ev-sub li { padding: 4px 0; border-bottom: none; font-size: .82rem; }
.ev-sub a { color: var(--muted); }

.table-wrap { overflow-x: auto; }
/* Fenêtre de lecture : montre les éléments récents (journée en cours), le
   reste accessible par un ascenseur vertical. */
.scroll-window { max-height: 460px; overflow-y: auto; }
.scroll-window::-webkit-scrollbar { width: 9px; }
.scroll-window::-webkit-scrollbar-thumb { background: #2b3f66; border-radius: 6px; }
.map-last-link {
  background: none; border: none; color: var(--in); cursor: pointer;
  font: inherit; padding: 0; text-decoration: underline dotted; text-underline-offset: 3px;
}
.map-last-link:hover { text-decoration-style: solid; }
/* Imagerie satellite */
.imagery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .imagery-grid { grid-template-columns: 1fr; } }
.imagery-fig { margin: 0; background: var(--panel-2); border-radius: 10px; padding: 8px; }
.imagery-fig img {
  width: 100%; border-radius: 6px; display: block; aspect-ratio: 1 / 1; object-fit: cover;
}
.imagery-fig figcaption {
  margin-top: 6px; font-size: .82rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.imagery-date { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.imagery-next {
  margin: 3px 0 0; font-size: .72rem; color: var(--muted); opacity: .85;
  font-variant-numeric: tabular-nums;
}
.imagery-empty { text-align: center; padding: 30px 8px; }

/* Postures & tendances */
.posture-alertes { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.posture-alerte-ligne {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 8px 11px; border-radius: 9px; font-size: .83rem;
  background: var(--panel-2); border-left: 3px solid #ffa726;
}
.posture-alerte-ligne.sens-durcissement { border-left-color: #ef5350; }
.posture-alerte-ligne.sens-apaisement { border-left-color: #66bb6a; }
.posture-alerte-ligne.niv-alerte { background: rgba(239,83,80,.10); }
.posture-alerte-tag {
  border-radius: 999px; padding: 1px 8px; font-size: .64rem; font-weight: 700;
  letter-spacing: .05em; background: #4a3320; color: #ffb74d;
}
.niv-alerte .posture-alerte-tag { background: #4a2020; color: #ff8a80; }
.posture-alerte-date { margin-left: auto; color: var(--muted); font-size: .72rem; }

.posture-acteurs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(192px, 1fr));
  gap: 10px; margin: 12px 0 4px;
}
.posture-carte {
  background: var(--panel-2); border-radius: 10px; padding: 10px 12px;
  border-left: 3px solid #90a4ae;
}
.posture-nom { font-size: .8rem; color: var(--muted); margin-bottom: 3px; }
.posture-valeur { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.posture-label { font-size: .72rem; font-weight: 600; opacity: .85; margin-left: 4px; }
.posture-tend { font-size: .78rem; margin-top: 3px; color: var(--muted); }
.posture-tend.tend-durcissement { color: #ef5350; }
.posture-tend.tend-apaisement { color: #66bb6a; }
.posture-delta { opacity: .75; }
.posture-spark { display: block; margin: 5px 0 2px; width: 100%; height: 30px; }
.posture-meta { font-size: .7rem; color: var(--muted); }
.posture-alerte { color: #ffa726; }
.posture-sous-titre {
  font-size: .88rem; margin: 16px 0 6px; color: var(--text); font-weight: 600;
}
.posture-compte { font-size: .74rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.posture-resume { font-size: .86rem; line-height: 1.55; }
.posture-resume.filled { background: var(--panel-2); border-radius: 10px; padding: 10px 14px; }
.posture-declarations { display: flex; flex-direction: column; gap: 1px; }
.posture-ligne {
  display: flex; gap: 9px; align-items: flex-start; padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.posture-ligne.recente { background: rgba(79,195,247,.06); }
.posture-note {
  flex: 0 0 auto; min-width: 26px; text-align: center; border-radius: 5px;
  padding: 2px 5px; font-size: .74rem; font-weight: 700; color: #10151f;
}
.posture-corps { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.posture-corps a { color: var(--text); text-decoration: none; font-size: .83rem; }
.posture-corps a:hover { color: var(--in); text-decoration: underline; }
.posture-src { font-size: .72rem; color: var(--muted); }
.posture-tag {
  background: #1d3a57; color: #6ec6ff; border-radius: 999px; padding: 1px 7px;
  font-size: .64rem; font-weight: 700; margin-left: 5px;
}

/* Tendances presse — agenda thématique */
.presse-agenda { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.presse-theme { display: flex; align-items: center; gap: 9px; font-size: .8rem; }
.presse-theme-nom { flex: 0 0 108px; color: var(--muted); }
.presse-theme-barre {
  flex: 1 1 auto; height: 9px; border-radius: 5px; background: rgba(255,255,255,.07);
  overflow: hidden; min-width: 60px;
}
.presse-theme-barre i { display: block; height: 100%; background: var(--in); border-radius: 5px; }
.presse-theme-val { flex: 0 0 46px; text-align: right; font-variant-numeric: tabular-nums; }
.presse-theme-ecart {
  flex: 0 0 68px; text-align: right; font-size: .72rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.presse-theme-ecart.up { color: #ef5350; }
.presse-theme-ecart.down { color: #26c6da; }

/* Conséquences économiques */
.eco-avertissement { margin: 8px 0 0; font-style: italic; }
.eco-proxy {
  display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px;
  background: rgba(255,255,255,.09); color: var(--muted); font-size: .62rem;
  font-style: normal; vertical-align: middle;
}
.eco-anormal {
  display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px;
  background: rgba(239,83,80,.16); color: #ef5350; font-size: .68rem;
  font-weight: 600;
}
.eco-blocs {
  display: grid; gap: 10px; margin-top: 8px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.eco-bloc {
  background: var(--panel-2); border-radius: 10px; padding: 9px 12px;
  border-left: 3px solid #7b8794;
}
.eco-bloc-nom {
  font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .3px;
}
.eco-bloc-texte { font-size: .84rem; line-height: 1.5; }

/* Détection radar des navires (Sentinel-1) */
.sar-resume { max-width: 260px; margin: 10px 0 4px; }
.dark-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dark-item {
  background: var(--panel-2); border-radius: 10px; padding: 10px 12px;
  border-left: 3px solid #ef5350;
}
.dark-head { font-size: .9rem; margin-bottom: 5px; }
.dark-flag {
  color: var(--muted); font-size: .82rem; margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.dark-meta { margin-top: 5px; font-size: .76rem; color: var(--muted); }

/* Assistant IA (démonstrateur) */
.demo-badge {
  background: #3a3a5c; color: #b8b8ff; border-radius: 999px;
  padding: 2px 10px; font-size: .68rem; font-weight: 700; margin-left: 8px;
  text-transform: uppercase; letter-spacing: .04em; vertical-align: middle;
}
.ask-controls { display: flex; gap: 8px; margin: 10px 0 8px; flex-wrap: wrap; }
.ask-controls input {
  flex: 1; min-width: 220px; background: var(--panel-2); color: var(--text);
  border: 1px solid #2b3f66; border-radius: 8px; padding: 10px 12px; font-size: .9rem;
}
.ask-controls button {
  background: var(--in); color: #06263a; border: none; border-radius: 8px;
  padding: 10px 18px; font-weight: 700; cursor: pointer; font-size: .9rem;
}
.ask-controls button:disabled { opacity: .5; cursor: default; }
.ask-suggestions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ask-chip {
  background: var(--panel-2); color: var(--muted); border: 1px solid transparent;
  border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: .78rem;
}
.ask-chip:hover { color: var(--text); border-color: var(--in); }

.lane-row { cursor: pointer; }
.lane-row:hover td { background: rgba(255, 255, 255, .04); }
.vessel-link { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.vessel-link:hover { color: var(--in); border-bottom-style: solid; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }

footer { color: var(--muted); font-size: .75rem; line-height: 1.5; }

.overlay {
  position: fixed; inset: 0; background: rgba(8, 13, 22, .93);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.overlay.hidden, .hidden { display: none; }
.overlay-box { background: var(--panel); padding: 28px; border-radius: var(--radius); width: min(360px, 90vw); text-align: center; }
.overlay-box input {
  width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--muted);
  background: var(--bg); color: var(--text); margin: 10px 0; font-size: 1rem;
}
.overlay-box button {
  width: 100%; padding: 10px; border-radius: 8px; border: none;
  background: var(--in); color: #06263a; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.key-error { color: var(--bad); font-size: .85rem; }

/* Rapport d'incident en fenêtre superposée (le panneau dédié a disparu). */
.rapport-box {
  width: min(760px, 94vw); max-height: 88vh; overflow-y: auto; text-align: left;
}
.rapport-box h2 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-top: 0; font-size: 1.1rem;
}

/* Bandeau d'alertes — en tête de page, avant tout le reste : sa raison d'être
   est d'être vu sans qu'on ait à chercher. */
.bandeau {
  background: var(--panel); border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 14px; border-left: 4px solid var(--warn);
}
.bandeau.a-critique { border-left-color: var(--bad); }
.bandeau-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bandeau-titre { font-size: 1.02rem; font-weight: 700; }
.bandeau-compte { font-size: .8rem; color: var(--muted); }
.bandeau-tete button { margin-left: auto; }
.bandeau-lignes { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bandeau-ligne {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  background: var(--panel-2); border-radius: 8px; padding: 7px 11px;
  border-left: 3px solid #7b8794; font-size: .85rem; cursor: pointer;
}
.bandeau-ligne:hover { background: rgba(255, 255, 255, .06); }
.bandeau-ligne.niv-critique { border-left-color: var(--bad); background: rgba(239,83,80,.10); }
.bandeau-ligne.niv-alerte { border-left-color: var(--warn); }
.bandeau-ligne.niv-signal { border-left-color: #7b8794; }
.bandeau-tag {
  font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; padding: 2px 7px; border-radius: 4px;
  background: rgba(255, 255, 255, .09); color: var(--muted); white-space: nowrap;
}
.niv-critique .bandeau-tag { background: #4a2020; color: #ff8a80; }
.niv-alerte .bandeau-tag { background: #4a3a1c; color: #ffcc80; }
.bandeau-texte { flex: 1 1 260px; min-width: 0; }
.bandeau-detail { color: var(--muted); font-size: .78rem; }
.bandeau-date { color: var(--muted); font-size: .74rem; white-space: nowrap; }

/* Fenêtre de contact */
.contact-box { width: min(560px, 94vw); text-align: left; }
.contact-box h2 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-top: 0; font-size: 1.1rem;
}
.contact-box textarea {
  width: 100%; box-sizing: border-box; margin-top: 10px; padding: 10px 12px;
  background: var(--panel-2); color: var(--text); font: inherit; font-size: .9rem;
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px; resize: vertical;
}
.contact-box textarea:focus, .contact-box input:focus {
  outline: none; border-color: var(--in);
}
.contact-pied {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px;
}
.contact-pied button { width: auto; margin: 0; padding: 8px 20px; }
#contact-etat.ok { color: #66bb6a; }
#contact-etat.ko { color: #ef5350; }
.rapport-actions { display: flex; gap: 8px; white-space: nowrap; }

/* Annuaire STRATCOM */
.stratcom-search {
  flex: 1; min-width: 220px; background: var(--panel-2); color: var(--text);
  border: 1px solid #2b3f66; border-radius: 8px; padding: 7px 10px; font-size: .85rem;
}
.sc-rubrique,
.events li.sc-rubrique {
  margin: 18px 0 6px; font-size: 1rem; font-weight: 700; color: var(--out);
  border-bottom: 2px solid var(--out); padding: 0 0 4px;
}
.sc-rubrique .sc-n {
  color: var(--muted); font-weight: 400; font-size: .76rem; margin-left: 8px;
}
.sc-groupe h3 { margin: 10px 0 2px; font-size: .9rem; color: var(--in); }
.sc-groupe h3 .sc-peri { color: var(--muted); font-weight: 400; font-size: .74rem; margin-left: 8px; }
.sc-canal {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  padding: 3px 0 3px 14px; border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.sc-canal a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.sc-canal a:hover { color: var(--in); }
.sc-meta { color: var(--muted); font-size: .74rem; }
.sc-axe {
  flex-basis: 100%; color: var(--muted); font-size: .73rem; font-style: italic; display: none;
}
.sc-canal:hover .sc-axe { display: block; }

@media (max-width: 700px) {
  header { padding: 14px 14px 4px; }
  main { padding: 10px 14px 30px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .card-value { font-size: 1.9rem; }
  .chart-wrap { height: 240px; }
}

/* Déclarations officielles : texte intégral dépliable */
.sc-plus {
  background: none; border: 1px solid rgba(255,255,255,.18); color: var(--muted);
  border-radius: 999px; padding: 0 8px; font-size: .66rem; cursor: pointer;
  margin-left: 4px; white-space: nowrap;
}
.sc-plus:hover { color: var(--in); border-color: var(--in); }
.sc-corps {
  margin: 6px 0 2px 4px; padding: 8px 11px; background: var(--panel-2);
  border-left: 2px solid var(--in); border-radius: 0 8px 8px 0;
  font-size: .8rem; line-height: 1.55; color: var(--text); white-space: pre-wrap;
}

/* Avertissements explicites à la navigation (panneau Postures) */
.posture-avert { margin: 10px 0 2px; }
.posture-avert-titre {
  font-size: .78rem; font-weight: 700; color: #ff8a80; letter-spacing: .02em;
  margin-bottom: 6px; text-transform: uppercase;
}
.posture-avert-ligne {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  padding: 8px 11px; margin-bottom: 5px; border-radius: 9px;
  background: rgba(239,83,80,.12); border-left: 3px solid #ef5350; font-size: .83rem;
}
.posture-avert-tag {
  background: #4a2020; color: #ff8a80; border-radius: 999px; padding: 1px 8px;
  font-size: .62rem; font-weight: 700; letter-spacing: .05em; white-space: nowrap;
}
.posture-avert-ligne a { color: var(--text); text-decoration: none; }
.posture-avert-ligne a:hover { color: var(--in); text-decoration: underline; }
.posture-avert-src { margin-left: auto; color: var(--muted); font-size: .72rem; white-space: nowrap; }

/* Boîte de réception des messages de contact (/admin) */
/* Sans largeur plancher, la colonne du message se réduit à un mot par ligne
   dès que la fenêtre est étroite : le tableau, lui, défile déjà. */
.contact-msg {
  min-width: 300px; max-width: 460px; white-space: pre-wrap;
  overflow-wrap: anywhere; font-size: .82rem; line-height: 1.45;
}

/* Bascule des échos radar sur la carte des incidents */
.map-echos {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
  font-size: .78rem; color: var(--muted); font-weight: 400; cursor: pointer;
}
.map-echos input { accent-color: var(--in); cursor: pointer; }
.map-days { margin-left: 8px; }
