/* BreachCurve — thème dynamique (fond aurora animé, verre, courbes lumineuses) */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1a;
  --panel: rgba(16, 22, 38, 0.55);
  --panel-border: rgba(120, 160, 255, 0.14);
  --text: #e8edf7;
  --text-dim: #8a94ab;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --kev: #f43f5e;
  --proj: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 18px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---- Fond aurora animé ---- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(167, 139, 250, 0.10), transparent 60%),
    radial-gradient(1000px 600px at 10% 20%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-a { width: 520px; height: 520px; background: #1b3a5b; top: -120px; left: -80px; }
.blob-b { width: 420px; height: 420px; background: #3b1b5b; bottom: -100px; right: -60px; animation-delay: -8s; }
.blob-c { width: 300px; height: 300px; background: #0e4f4f; top: 40%; left: 55%; animation-delay: -16s; opacity: 0.35; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, -40px) scale(1.15); }
  100% { transform: translate(-40px, 50px) scale(0.95); }
}

.bg-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }

/* ---- En-tête ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  max-width: 1280px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.3)); }
.brand-name { display: inline-flex; align-items: baseline; gap: 3px; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-accent { color: var(--accent); }
.brand-lockup { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.brand-lockup .brand-name { display: inline; }
.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding-left: 12px;
  border-left: 1px solid var(--panel-border);
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.admin-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.admin-link:hover { color: var(--accent); border-color: var(--accent); }

.lang-switch { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px; padding: 4px; }
.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-btn.is-active { background: var(--accent); color: #04121a; font-weight: 600; }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Recherche (en-tête) ---- */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.search-box:focus-within {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.06);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15), 0 0 18px rgba(34, 211, 238, 0.12);
}
.search-icon { color: var(--text-dim); font-size: 1rem; flex: 0 0 auto; }
.search-box:focus-within .search-icon { color: var(--accent); }
.search-box input {
  width: 170px;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-clear { display: none; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--text); cursor: pointer; font-size: 0.85rem; }
.search-box.has-value .search-clear { display: inline-flex; }
.search-clear:hover { background: rgba(244, 63, 94, 0.4); }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, 86vw);
  max-height: 62vh;
  overflow-y: auto;
  background: rgba(8, 12, 22, 0.98);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  padding: 6px;
  z-index: 90;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.search-results[hidden] { display: none !important; }
.sr-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
}
.sr-item:hover, .sr-item.is-active { background: rgba(34, 211, 238, 0.12); }
.sr-icon { color: var(--accent); font-size: 1rem; text-align: center; }
.sr-label { font-size: 0.85rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-type { font-family: var(--font-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.sr-empty { padding: 14px; color: var(--text-dim); font-size: 0.8rem; text-align: center; }
@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px clamp(16px, 4vw, 22px);
  }
  .brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 1.18rem; }
  .brand-tag { display: none; }
  .header-actions { flex: 1 1 100%; width: 100%; justify-content: space-between; gap: 10px; }
  .search-box { flex: 1 1 auto; }
  .search-box input { width: 100%; }
}

/* ---- Contenu ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 8px clamp(20px, 5vw, 56px) 80px; }

/* ---- Barre de navigation des sections (sticky) ---- */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
}
.section-nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-nav-inner {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.section-nav-inner .sn-link { scroll-snap-align: start; }
.section-nav-inner::-webkit-scrollbar { display: none; }
.sn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sn-link:hover { color: var(--text); }
.sn-link.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.sn-num { font-size: 0.68rem; opacity: 0.6; }

/* Fondu sur le bord droit : indique que la barre de sections défile. */
@media (max-width: 900px) {
  .section-nav-inner { position: relative; }
  .section-nav-inner::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 34px;
    background: linear-gradient(90deg, transparent, rgba(5, 7, 13, 0.92));
    pointer-events: none;
  }
}

/* Compense la hauteur de la barre sticky lors des ancres. */
.section { scroll-margin-top: 56px; }
#sec-events { scroll-margin-top: 56px; }

.hero { margin: 44px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: center; }
.hero-main { min-width: 0; }
.hero-card {
  background: rgba(13, 20, 34, 0.55);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 20px 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-card-kicker {
  margin: 0 0 6px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: var(--font-mono);
}
.hero-card-title {
  margin: 0 0 10px;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.hero-card-text {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-dim);
}
.hero-card-welcome {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--panel-border);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-dim);
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hero-card { padding: 16px; }
}
.hero-eyebrow-row { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.hero-eyebrow-row .hero-eyebrow { margin-bottom: 0; }
.hero-eyebrow-row .chart-info-btn { margin-top: 0; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.hero-title .gradient {
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--text-dim); font-size: 1.05rem; max-width: 620px; margin-top: 18px; }
.hero-updated {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-updated::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}
.hero-updated:empty { display: none; }

/* ---- KPI ---- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.kpi:hover { transform: translateY(-3px); border-color: rgba(120, 160, 255, 0.3); }
.kpi-primary { background: linear-gradient(140deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.10)), var(--panel); }
.kpi-kev { border-color: rgba(244, 63, 94, 0.28); }
.kpi-label { display: block; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 8px; }
.kpi-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kpi-delta { display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; }
.kpi-delta.up { color: var(--ok); }
.kpi-delta.down { color: var(--kev); }
.kpi-note { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--text-dim); }

/* ---- Panneaux ---- */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px 28px 22px;
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.section-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}
.panel-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.panel-sub { color: var(--text-dim); font-size: 0.88rem; margin-top: 4px; }

/* ---- Bouton d'information + description des graphiques ---- */
/* Le titre reste sur une seule ligne de base : l'icône est alignée sur la
   première ligne (utile quand le titre passe sur deux lignes en mobile). */
.panel-title-row { display: flex; align-items: flex-start; gap: 6px; }
/* Icône en gouttière : le sous-titre s'aligne sur le texte du titre. */
.has-chart-note .panel-sub { margin-left: 30px; }
/* Glyphe seul, sans anneau de bouton : un seul cercle à l'écran, lisible. */
.chart-info-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8ab4f8;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.chart-info-btn[hidden] { display: none; }
/* Glyphe en SVG : centrage exact dans le cercle, quelle que soit la police. */
.chart-info-icon { display: block; width: 19px; height: 19px; }
.chart-info-btn:hover { color: #dbeafe; background: rgba(96, 165, 250, 0.16); }
/* Tant que le bouton n'a pas été cliqué, le glyphe pulse doucement pour
   inviter à l'ouvrir ; l'animation cesse dès l'ouverture (aria-expanded). */
.chart-info-btn:not([aria-expanded="true"]) .chart-info-icon {
  animation: chart-info-pulse 2.6s ease-in-out infinite;
}
@keyframes chart-info-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Ouvert : le glyphe s'éclaire, sans fond (évite un effet de cible). */
.chart-info-btn[aria-expanded="true"] { color: #ffffff; }
.chart-info-btn[aria-expanded="true"] .chart-info-icon { animation: none; }
.chart-info-btn:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
/* L'encart occupe toute la largeur du cadre du graphique. */
.chart-note {
  margin-top: 14px;
  padding: 14px 16px;
  width: 100%;
  border-left: 3px solid #3b82f6;
  border-radius: 0 10px 10px 0;
  background: rgba(59, 130, 246, 0.09);
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}
.chart-note[hidden] { display: none; }
/* Markdown rendu dans l'encart. */
.chart-note > :first-child { margin-top: 0; }
.chart-note > :last-child { margin-bottom: 0; }
.chart-note p { margin: 0 0 8px; }
.chart-note ul,
.chart-note ol { margin: 6px 0 10px; padding-left: 22px; }
.chart-note li { margin: 3px 0; }
.chart-note li::marker { color: #60a5fa; }
.chart-note h3,
.chart-note h4,
.chart-note h5,
.chart-note h6 {
  margin: 12px 0 6px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}
.chart-note strong { color: var(--text); font-weight: 600; }
.chart-note em { font-style: italic; }
.chart-note code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(120, 160, 255, 0.14);
  color: #dbeafe;
}
.chart-note a { color: #93c5fd; text-decoration: underline; text-underline-offset: 2px; }
.chart-note a:hover { color: #dbeafe; }

.legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--text-dim); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-cur { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dot-prev { background: var(--accent); opacity: 0.4; border: 1px dashed var(--accent); }
.dot-kev { background: var(--kev); box-shadow: 0 0 8px var(--kev); }
.dot-proj { background: var(--accent); border: 1px dashed var(--accent); opacity: 0.7; }

.chart-wrap { position: relative; height: 420px; }
.chart-wrap-sm { height: 280px; }
.map-wrap { position: relative; }

/* Animation de chargement des graphiques (pendant la récupération des données). */
.chart-wrap.is-loading::after,
.map-wrap.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(34, 211, 238, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: bc-spin 0.8s linear infinite;
}
.chart-wrap.is-loading canvas,
.map-wrap.is-loading svg { opacity: 0.25; transition: opacity 0.2s ease; }
@keyframes bc-spin { to { transform: rotate(360deg); } }
.chart-footnote { font-size: 0.78rem; color: var(--text-dim); margin-top: 12px; }

/* ---- Navigation entre années ---- */
.year-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
}
.year-nav-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  min-width: 34px;
  padding: 6px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}
.year-nav-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.year-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.year-nav-btn.year-nav-cur { font-weight: 600; color: var(--text); }
.year-nav-btn.year-nav-cur.is-current {
  background: var(--accent);
  color: #04121a;
  border-color: var(--accent);
}
.year-nav-label { font-size: 0.75rem; color: var(--text-dim); margin-left: 4px; }

/* ---- Temps de correction ---- */
.rem-stats { display: flex; gap: 40px; margin-bottom: 20px; flex-wrap: wrap; }
.rem-stat { display: flex; flex-direction: column; }
.rem-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.rem-label { font-size: 0.72rem; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Pays ---- */
.signal-switch { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px; padding: 4px; }
.signal-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}
.signal-btn.is-active { background: var(--accent); color: #04121a; font-weight: 600; }
.signal-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.map-wrap { position: relative; margin-bottom: 0; }
.map-wrap svg { width: 100%; height: auto; display: block; }

/* Carte à gauche, classement à droite (affichage densifié). */
.country-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 22px;
}
.country-layout .country-col { max-height: 360px; overflow-y: auto; padding-right: 6px; }
.country-layout .country-col::-webkit-scrollbar { width: 6px; }
.country-layout .country-col::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 3px; }
.map-wrap .country-shape {
  stroke: rgba(120, 160, 255, 0.25);
  stroke-width: 0.5;
  transition: fill 0.3s ease;
  cursor: pointer;
}
.map-wrap .country-shape:hover { stroke: var(--accent); stroke-width: 1; }
.map-wrap .country-shape.has-data { cursor: pointer; }
.map-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}
.map-legend .lg-bar {
  width: 140px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, hsl(215, 80%, 30%), hsl(187, 95%, 75%));
}
.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(10, 15, 26, 0.95);
  border: 1px solid rgba(120, 160, 255, 0.3);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  display: none;
  z-index: 10;
}

.country-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.country-columns-single { grid-template-columns: 1fr; }
.country-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-weight: 600;
}
.country-list { list-style: none; }
.country-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.95rem;
}
.country-list .c-pos { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); width: 20px; }
.country-list .c-name { flex: 1; }
.country-list .c-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  display: inline-block;
  min-width: 2px;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}
.country-list .c-cves { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); width: 60px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Mentions ---- */
.mention-table { display: flex; flex-direction: column; }
.mnt-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.5fr) 64px 92px 64px minmax(120px, 1fr) 58px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--panel-border);
}
.mnt-row.mnt-head {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 6px 12px;
  border-bottom: 1px solid rgba(120, 160, 255, 0.2);
}
/* En-têtes triables : clic = croissant → décroissant → réinitialisation. */
.th-sort { cursor: pointer; user-select: none; }
.th-sort:hover { color: var(--accent); }
.sort-ind { display: inline-block; margin-left: 5px; font-size: 0.62rem; opacity: 0.3; }
.th-sort.is-asc .sort-ind,
.th-sort.is-desc .sort-ind { opacity: 1; color: var(--accent); }
.sort-ind::after { content: "\2195"; }
.th-sort.is-asc .sort-ind::after { content: "\25B2"; }
.th-sort.is-desc .sort-ind::after { content: "\25BC"; }

/* Barres de tri pour les listes sans en-tête (composants, pays). */
.sort-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.st-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  cursor: pointer;
}
.st-btn:hover { color: var(--text); border-color: var(--accent); }
.st-btn.is-asc, .st-btn.is-desc { color: var(--accent); border-color: var(--accent); }
.mnt-cve-btn {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.mnt-cve-id { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; color: var(--accent); white-space: nowrap; display: inline-block; min-width: 16ch; }
.mnt-cve-btn:hover .mnt-cve-id { text-decoration: underline; }
.mnt-cve-name { font-size: 0.75rem; color: var(--text-dim); }
.mnt-tick { color: #34d399; font-size: 0.78rem; }
.mnt-warn { color: #f43f5e; font-size: 0.78rem; }
.mnt-tick-lg { font-size: 1rem; }
.mnt-score { display: flex; }
.mnt-statut { display: flex; justify-content: center; }
.mnt-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mnt-comp { display: flex; flex-wrap: wrap; gap: 4px; }
.mnt-comp.is-none, .mnt-score.is-none { color: var(--text-dim); }
.mnt-src { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-dim); font-variant-numeric: tabular-nums; text-align: right; }
.mnt-empty { color: var(--text-dim); font-size: 0.85rem; }

.comp-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: var(--text);
  white-space: nowrap;
}
.comp-more { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); cursor: help; padding: 3px 6px; border-radius: 6px; }

.comp-popover {
  position: fixed;
  pointer-events: none;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 270px;
  padding: 10px 12px;
  background: rgba(12, 18, 32, 0.98);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  transition: opacity 0.4s ease;
  opacity: 1;
}
.comp-popover.fading { opacity: 0; }

.mnt-legend {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 0 12px;
}
.mnt-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---- Attaques ---- */
.atk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.atk-h { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin: 0 0 10px; }
.atk-rank { list-style: none; }
.atk-rank li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 60px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--panel-border);
}
.atk-rank-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 60px;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.atk-rank-head span:nth-child(2),
.atk-rank-head .atk-head-count { text-align: right; }
.atk-spark-wrap { display: flex; align-items: center; justify-content: flex-end; width: 60px; }
.atk-spark-wrap .cr-spark { display: block; }
.atk-name { font-size: 0.85rem; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atk-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.atk-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; }
.atk-events { list-style: none; }
.atk-event { padding: 10px 8px; border-bottom: 1px solid var(--panel-border); border-radius: 8px; cursor: pointer; transition: background 0.15s ease; }
.atk-event:hover { background: rgba(34, 211, 238, 0.06); }
.modal-link { margin: 6px 0 12px; font-size: 0.82rem; word-break: break-all; }
.modal-link a { color: var(--accent); text-decoration: none; }
.modal-link a:hover { text-decoration: underline; }
.evt-cve-btn { cursor: pointer; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3); color: var(--accent); font-family: var(--font-mono); font-size: 0.72rem; }
.evt-cve-btn:hover { background: rgba(34, 211, 238, 0.22); }
.atk-event-head { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; }
.atk-event-title { font-size: 0.88rem; color: var(--text); }
.atk-event-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); white-space: nowrap; }
.atk-event-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.atk-tag-company { background: rgba(167, 139, 250, 0.1); border-color: rgba(167, 139, 250, 0.3); }
.atk-tag-country { background: rgba(244, 63, 94, 0.08); border-color: rgba(244, 63, 94, 0.25); }

.sev-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.sev-crit { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.4); }
.sev-high { background: rgba(251, 146, 60, 0.15); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.4); }
.sev-med { background: rgba(250, 204, 21, 0.12); color: #facc15; border: 1px solid rgba(250, 204, 21, 0.35); }
.sev-low { background: rgba(52, 211, 153, 0.12); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.35); }

/* ---- Modal détail CVE ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  width: min(640px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--text); }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-right: 32px; }
.modal-title { font-size: 1.2rem; font-weight: 600; color: var(--text); margin: 0; font-family: var(--font-mono); }
.modal-loading { font-size: 0.8rem; color: var(--text-dim); }
.modal-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 14px; }
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.meta-value { font-size: 0.9rem; color: var(--text); }
.modal-vector { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin: 0 0 16px; word-break: break-all; }
.modal-h { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin: 20px 0 8px; }
.modal-desc { font-size: 0.88rem; line-height: 1.6; color: var(--text); margin: 0; }
.modal-list { margin: 0; padding-left: 18px; }
.modal-list li { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text); padding: 3px 0; }
.modal-donate { text-align: center; }
.modal-donate .modal-head { justify-content: center; padding-right: 0; }
.donate-text { font-size: 0.9rem; line-height: 1.65; color: var(--text); margin: 0 0 22px; }
.donate-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #06121f;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.donate-cta .mdi { font-size: 1.15rem; }
.donate-cta:hover {
  background: #4de3f5;
  box-shadow: 0 10px 32px rgba(34, 211, 238, 0.5);
  transform: translateY(-1px);
}
.donate-sub { font-size: 0.78rem; color: var(--text-dim); margin: 16px 0 0; }
.modal-refs li { font-family: inherit; font-size: 0.78rem; }
.modal-refs a { color: var(--accent); text-decoration: none; word-break: break-all; }
.modal-refs a:hover { text-decoration: underline; }
.modal-mitigation { font-size: 0.88rem; line-height: 1.6; color: #fbbf24; margin: 0; padding: 10px 14px; background: rgba(251, 191, 36, 0.06); border-left: 3px solid #fbbf24; border-radius: 4px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--panel-border); font-size: 0.75rem; color: var(--text-dim); }

/* ---- Stats RSS ---- */
.rss-stats {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}
.rss-stats .rs-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(10, 15, 26, 0.4);
}
.rss-stats .rs-value { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.rss-stats .rs-new .rs-value { color: var(--ok); }
.rss-stats .rs-label { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Pied de page ---- */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--panel-border);
}

/* ---- Filtres actifs (barre dynamique) ---- */
.filter-bar {
  position: sticky;
  top: 45px;
  z-index: 45;
  background: rgba(8, 12, 22, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
}
.filter-bar[hidden] { display: none !important; }
.filter-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
}
.filter-chip .fc-kind { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; }
.filter-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.filter-chip button:hover { background: rgba(244, 63, 94, 0.4); }
.filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
}
.filter-reset:hover { color: var(--text); border-color: var(--accent); }

/* Éléments cliquables pour filtrer */
.is-clickable { cursor: pointer; }
.country-list li.is-clickable:hover .c-name { color: var(--accent); text-decoration: underline; }
.atk-rank li.is-clickable:hover .atk-name { color: var(--accent); text-decoration: underline; }
.comp-tag.is-clickable:hover, .comp-ranked li:hover .cr-name { color: var(--accent); }
.comp-tag.is-clickable { cursor: pointer; }

/* ---- Section composants ---- */
/* Classement sur 3 colonnes, remplies de haut en bas puis de gauche à droite
   (ordre décroissant conservé dans chaque colonne). */
.comp-ranked {
  list-style: none;
  column-count: 3;
  column-gap: 32px;
}
.comp-ranked li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 60px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--panel-border);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  cursor: pointer;
}
.cr-name { font-size: 0.9rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; }
.cr-spark-wrap { display: flex; align-items: center; justify-content: flex-end; width: 60px; }
.cr-spark { display: block; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .country-columns, .country-layout { grid-template-columns: minmax(0, 1fr); }
  .country-layout .country-col { max-height: none; overflow: visible; }
  .comp-ranked { column-count: 2; }
  .chart-wrap { height: 320px; }
}
@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .comp-ranked { column-count: 1; }
  .chart-wrap { height: 260px; }
  .legend { gap: 10px; }
  .rem-stats { gap: 20px; }
}

/* Retour en haut */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 70;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: rgba(12, 18, 32, 0.85);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 18px rgba(34, 211, 238, 0.25), 0 8px 24px rgba(0, 0, 0, 0.45); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Bouton « Buy me a CVE » — aligné à droite dans la barre de navigation (sticky). */
.buy-cve {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.buy-cve .mdi { font-size: 1rem; }
.buy-cve:hover {
  background: rgba(34, 211, 238, 0.16);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.32);
  transform: translateY(-1px);
}
.buy-cve:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sur mobile : version compacte du bouton (la barre défile derrière lui). */
@media (max-width: 720px) {
  .buy-cve { padding: 6px 10px; font-size: 0.7rem; gap: 5px; }
}

/* Liens légaux du pied de page */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 6px 0 0;
  font-size: 0.76rem;
  color: var(--text-dim);
}
.footer-legal a { color: var(--text-dim); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); text-decoration: underline; }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--text-dim);
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--accent); }

/* Bandeau de consentement (RGPD) : carte flottante, pas de dalle pleine largeur. */
.cookie-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(14px, 3vw, 24px);
  z-index: 130;
  width: min(680px, calc(100vw - 28px));
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(13, 20, 34, 0.97);
  border: 1px solid var(--panel-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.cb-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cb-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.cb-text { margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--text-dim); }
.cb-text strong { color: var(--text); }
.cb-text a { color: var(--accent); text-decoration: none; }
.cb-text a:hover { text-decoration: underline; }
.cb-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.cb-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.cb-refuse { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.cb-refuse:hover { background: rgba(34, 211, 238, 0.12); }
.cb-accept { background: var(--accent); border: 1px solid var(--accent); color: #04121a; font-weight: 600; }
.cb-accept:hover { filter: brightness(1.08); }
@media (max-width: 560px) {
  .cb-actions { width: 100%; }
  .cb-actions .cb-btn { flex: 1 1 auto; text-align: center; }
}

/* Navigation compacte : le même sommaire, sans onglets hors écran. */
.section-nav-toggle { display: none; }
@media (max-width: 1120px) {
  .section-nav.nav-ready .section-nav-wrap { position: relative; }
  .section-nav.nav-ready .section-nav-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    min-width: 0;
    flex: 1;
    padding: 5px 0;
    border: 0;
    background: none;
    color: var(--text);
    text-align: left;
    cursor: pointer;
  }
  .section-nav-toggle > .mdi { flex: none; color: var(--accent); font-size: 1.2rem; }
  .section-nav-label { display: grid; flex: 1; min-width: 0; }
  .section-nav-caption { font: 0.66rem var(--font-mono); text-transform: uppercase; color: var(--text-dim); }
  .section-nav-current { font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .section-nav.nav-ready .section-nav-inner { display: none; }
  .section-nav.nav-ready.menu-open .section-nav-inner {
    position: absolute;
    inset: calc(100% + 4px) 12px auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: min(65dvh, 420px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 6px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: #0b1120;
    box-shadow: 0 14px 40px #0009;
    scroll-snap-type: none;
  }
  .section-nav.nav-ready .section-nav-inner::after { display: none; }
  .section-nav.nav-ready .sn-link { min-height: 44px; padding: 8px 9px; white-space: normal; border: 0; border-radius: 8px; }
  .section-nav.nav-ready .sn-link.is-active { background: rgba(34, 211, 238, 0.12); }
  .section-nav.nav-ready .buy-cve { min-height: 44px; white-space: nowrap; }
  .filter-bar { position: static; }
  .section, #sec-events { scroll-margin-top: 60px; }
}

@media (max-width: 760px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; }
  .header-actions { display: contents; }
  .site-header .lang-switch { grid-area: 1 / 2; }
  .site-header .lang-btn { min-height: 40px; min-width: 36px; }
  .site-header .search-box { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .site-header .search-box input { font-size: 1rem; }
  .site-header .search-results { width: 100%; z-index: 95; }
  .section-nav-wrap { padding-inline: 14px; }
  .container { padding-inline: 12px; }
  .hero { margin-block: 24px; }
  .hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.08em; }
  .hero-sub { font-size: 0.94rem; margin-top: 12px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { min-width: 0; padding: 12px; }
  .kpi-value { font-size: clamp(1.2rem, 5.2vw, 2rem); }
  .kpi-delta, .kpi-note { font-size: 0.71rem; }
  main .panel { min-width: 0; padding: 14px; }
  .panel-head { gap: 10px; margin-bottom: 14px; }
  .chart-wrap, .map-wrap { min-width: 0; }
  .year-nav { flex-wrap: wrap; }
  .year-nav-btn { min-height: 40px; }
  .atk-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .atk-event-head { flex-wrap: wrap; gap: 4px 12px; }
  .atk-event-title { overflow-wrap: anywhere; }
  .mnt-row { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 0; }
  .mnt-row.mnt-head { display: flex; flex-wrap: wrap; font-size: 0.66rem; gap: 4px 10px; padding: 4px 0 8px; }
  .mnt-row.mnt-head > * { padding-block: 7px; }
  .mnt-cve-btn, .mnt-comp { grid-column: 1 / -1; }
  .mnt-cve-btn { min-height: 40px; overflow-wrap: anywhere; }
  .mnt-statut { grid-area: 2 / 1; justify-content: flex-start; }
  .mnt-date { grid-area: 2 / 3; }
  .mnt-score { grid-area: 2 / 2; }
  .mnt-src { grid-area: 2 / 4; }
  .mnt-src::after { content: ' RSS'; font-size: 0.65rem; }
  .comp-tag { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .modal-backdrop { padding: 12px; }
  .modal { max-height: calc(100dvh - 24px); }
}

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .chart-info-icon { animation: none !important; }
  * { transition: none !important; }
}
