/* ------------------------------------------------------------------ *
 * Aube Géopolitique : habillage « plateforme de renseignement » (2026-10-16)
 *
 * Chargée après main.css, elle en reprend les jetons et les composants communs :
 * bandeau d'état et barre de commande noirs, Inter pour le texte, JetBrains Mono pour
 * toute donnée (pays, heure UTC, chiffres, sources), filets de 1 px, aucun italique,
 * niveaux de gravité toujours accompagnés d'un mot ou d'un glyphe.
 * Repères étudiés : plateformes de veille et de suivi des conflits (tableaux de bord
 * sombres, cartes au centre, fil d'événements horodaté en UTC).
 * ------------------------------------------------------------------ */

:root {
  --paper:       #ffffff;
  --paper-soft:  #f6f7f9;
  --paper-deep:  #eceef2;
  --ink:         #0a0d12;
  --ink-soft:    #2b313b;
  --ink-mute:    #596170;
  --ink-faint:   #9aa2ae;
  --rule:        #e3e6eb;
  --rule-bold:   #0a0d12;
  --accent:      #0b4f9c;
  --accent-deep: #083a74;

  --cmd:         #000000;
  --cmd-2:       #0d1015;
  --cmd-rule:    #232831;
  --cmd-ink:     #f2f4f7;
  --cmd-mute:    #9aa3b0;

  --lvl-alerte:    #c0182b;
  --lvl-vigilance: #b34700;
  --lvl-repere:    #596170;
  --lvl-calme:     #2f7d4f;

  --ff-display:  "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-body:     "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --col-line:    76ch;
}

/* Aucun italique nulle part (style de la maison) ; l'emphase passe par la graisse. */
*, *::before, *::after { font-style: normal !important; }
em, i, cite { font-weight: 500; }

html, body {
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
}
body { background: var(--paper); }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }
::selection { background: #cfe0f5; }

/* ------------------------------------------------------------------ */
/* Bandeau d'état + barre de commande                                 */
/* ------------------------------------------------------------------ */
.masthead {
  background: var(--cmd);
  color: var(--cmd-ink);
  border-bottom: 1px solid var(--cmd);
  position: relative;
  z-index: 20;
}
.statusbar { border-bottom: 1px solid var(--cmd-rule); background: var(--cmd); }
.statusbar__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 32px;
  min-height: 32px;
  display: flex; align-items: center; gap: 0;
  font: 500 11px/1 var(--ff-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cmd-ink);
  overflow-x: auto; scrollbar-width: none;
}
.statusbar__inner::-webkit-scrollbar { display: none; }
.statusbar__item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; white-space: nowrap;
  border-left: 1px solid var(--cmd-rule);
  color: var(--cmd-ink);
}
.statusbar__item:first-child { padding-left: 0; border-left: 0; }
.statusbar__k { color: var(--cmd-mute); }
.statusbar__dot { width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; display: inline-block; }
.statusbar__alert { border-bottom: 0; }
.statusbar__alert:hover { color: #fff; border-bottom: 0; text-decoration: underline; }
.statusbar__spacer { flex: 1 1 auto; }
.statusbar__clock { font-variant-numeric: tabular-nums; }
.lvl--alerte { color: #ff4d5e; }
.lvl--vigilance { color: #ff8a3d; }

.masthead .lang-toggle {
  margin-left: 14px; padding: 5px 9px;
  font: 600 11px/1 var(--ff-mono); letter-spacing: 0.12em;
  background: transparent; color: var(--cmd-ink); border: 1px solid var(--cmd-mute);
}
.masthead .lang-toggle:hover { background: var(--cmd-ink); color: var(--cmd); border-color: var(--cmd-ink); }

.masthead__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 32px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px;
}
.masthead__brand { padding: 14px 0; }
.brand { align-items: center; gap: 12px; color: var(--cmd-ink); }
.brand:hover { color: var(--cmd-ink); border-bottom: 0; }
.brand__mark {
  font-size: 11px; letter-spacing: 0.14em; padding: 4px 7px;
  background: var(--cmd-ink); color: var(--cmd); border-color: var(--cmd-ink);
}
.brand__name {
  font-family: var(--ff-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
  color: var(--cmd-ink);
}
.masthead__tagline {
  margin: 5px 0 0; font-size: 10px; letter-spacing: 0.16em; color: var(--cmd-mute);
}
.topnav {
  flex: 1 1 520px; max-width: none; margin: 0; padding: 0;
  display: flex; justify-content: flex-end; gap: 0;
  border-top: 0;
  overflow-x: auto; scrollbar-width: none;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav__item {
  font-size: 11px; letter-spacing: 0.1em; font-weight: 500;
  padding: 22px 11px 19px;
  color: var(--cmd-mute);
  border-bottom: 3px solid transparent;
}
.topnav__item:hover { color: var(--cmd-ink); border-bottom-color: var(--cmd-rule); }
.topnav__item.is-active { color: var(--cmd-ink); border-bottom-color: var(--cmd-ink); }

/* ------------------------------------------------------------------ */
/* Page : grille, en-têtes, titres                                    */
/* ------------------------------------------------------------------ */
.layout { max-width: 1320px; padding: 32px 32px 96px; }

.page-head, .country__head, .hero__head { max-width: 980px; }
.kicker {
  font: 500 11px/1.4 var(--ff-mono); letter-spacing: 0.1em; color: var(--ink-mute);
  margin: 0 0 10px;
}
.kicker a { border-bottom: 0; }
.display {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.lede, .dek {
  font-family: var(--ff-body); font-size: 17px; line-height: 1.55; font-weight: 400;
  color: var(--ink-soft); max-width: 72ch; margin: 0 0 20px;
}
.byline { font-size: 11px; letter-spacing: 0.08em; }
.kbd { letter-spacing: 0.04em; }

h1, h2, h3, h4 { font-family: var(--ff-display); letter-spacing: -0.01em; }

/* Titre de section : filet fort au-dessus, étiquette mono à gauche. */
.rule {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 48px 0 18px; padding-top: 10px;
  border-top: 1px solid var(--rule-bold);
  font: 600 11px/1.3 var(--ff-mono); letter-spacing: 0.12em; color: var(--ink);
}
.rule::before, .rule::after { content: none; }
.rule span { padding: 0; }

.back-link { font-size: 11px; letter-spacing: 0.1em; }

/* Cartes et listes d'articles : titres en Inter, chapeaux sans italique. */
.card-feat h3 { font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -0.015em; }
.card-feat .dek { font-size: 15px; }
.list-articles a { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.list-articles__dek { color: var(--ink-mute); font-size: 15px; }
.list-articles--big h2 a { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.list-articles__date { font-size: 11px; letter-spacing: 0.06em; }
.empty { color: var(--ink-mute); }

/* Cartes Leaflet et bulles */
.leaflet-container { font-family: var(--ff-body) !important; }
.popup-title { font-size: 17px; font-weight: 650; }
.popup-sub { font-size: 13px; color: var(--ink-mute); }
.map { border-color: var(--ink); }
.map-modes__btn { font-weight: 500; }

/* Tableaux de chiffres (bandeaux de fiche, chiffres de conflit) */
.country__strip dd, .cfig__big, .cmonth__figures, .cmonth__figures strong {
  font-family: var(--ff-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.cfig__big { font-size: 30px; font-weight: 650; }
.cfig > div { padding: 14px 16px 14px 0; }
.cfig > div + div { padding-left: 16px; }
.country__flag { border: 1px solid var(--rule); }

/* ------------------------------------------------------------------ */
/* Niveaux de gravité (points d'attention, pays à surveiller)         */
/* ------------------------------------------------------------------ */
.points { border-top: 1px solid var(--rule-bold); }
.points__level { font-family: var(--ff-mono); font-weight: 600; }
.points__row--alerte .points__level { background: var(--lvl-alerte); border-color: var(--lvl-alerte); color: #fff; }
.points__row--vigilance .points__level { color: var(--lvl-vigilance); border-color: var(--lvl-vigilance); }
.points__row--repere .points__level { color: var(--lvl-repere); }
.watch__badge--alerte { background: var(--lvl-alerte); color: #fff; }
.watch__badge--vigilance { color: var(--lvl-vigilance); border-color: var(--lvl-vigilance); }
.trend--up { color: var(--lvl-alerte); }
.trend--down { color: var(--lvl-calme); }

/* Veille */
.veille__what { font-family: var(--ff-display); font-size: 16px; font-weight: 500; line-height: 1.4; }
.veille__flag { width: 24px; height: 16px; border-color: var(--rule); }
.veille-home__title { font-family: var(--ff-mono); font-weight: 600; color: var(--ink); letter-spacing: 0.1em; }

/* ------------------------------------------------------------------ */
/* Pied de page : même noir que la barre de commande                   */
/* ------------------------------------------------------------------ */
.endmatter { background: var(--cmd); color: var(--cmd-mute); border-top: 0; }
.endmatter a { color: var(--cmd-ink); border-bottom-color: var(--cmd-rule); }
.endmatter a:hover { color: #fff; border-bottom-color: #fff; }
.endmatter__line { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.06em; }
.endmatter__line--credibility { color: var(--cmd-ink); }

/* ------------------------------------------------------------------ */
/* Téléphone                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 860px) {
  .statusbar__inner, .masthead__inner { padding: 0 16px; }
  .statusbar__item--opt { display: none; }
  .masthead__inner { display: block; }
  .masthead__brand { padding: 12px 0 4px; }
  .topnav { justify-content: flex-start; margin: 0 -16px; padding: 0 5px; }
  .topnav__item { padding: 12px 11px 10px; }
  .layout { padding: 24px 16px 72px; }
}

/* ------------------------------------------------------------------ */
/* Composants de pages                                                */
/* ------------------------------------------------------------------ */
/* Conflits : cartes en Inter */
.conflict-card__title { font-family: var(--ff-display); font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.conflict-card__title a:hover { border-bottom-color: var(--accent); }

/* Liste des pays : drapeau | code | nom | capitale | région, colonnes alignées */
.country-row__link { grid-template-columns: 30px 56px minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.5fr); gap: 16px; padding: 11px 8px; align-items: center; }
.country-row__flag img { width: 26px; height: 18px; object-fit: cover; border: 1px solid var(--rule); display: block; }
.country-row__name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.country-row__iso { letter-spacing: 0.08em; }
@media (max-width: 720px) {
  .country-row__link { grid-template-columns: 30px 48px minmax(0, 1fr); }
}

/* Carnet : la signature reste sous le titre */
.list-articles .byline { grid-column: 2; margin-top: 6px; }

/* Lecture composite de l'institut : fond blanc, barre de gravité à gauche */
.score { background: var(--paper); border: 1px solid var(--ink); border-left-width: 6px; }
.score--stable    { background: var(--paper); border-color: var(--ink); border-left-color: var(--lvl-calme); }
.score--vigilance { background: var(--paper); border-color: var(--ink); border-left-color: #8a6500; }
.score--risque    { background: var(--paper); border-color: var(--ink); border-left-color: var(--lvl-vigilance); }
.score--crise     { background: var(--cmd); border-color: var(--cmd); border-left-color: var(--lvl-alerte); }
.score__head { border-bottom-color: var(--rule) !important; opacity: 1 !important; }
.score--crise .score__head { border-bottom-color: var(--cmd-rule) !important; }
.score__verdict { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.score--stable .score__verdict    { color: var(--lvl-calme); }
.score--vigilance .score__verdict { color: #8a6500; }
.score--risque .score__verdict    { color: var(--lvl-vigilance); }
.score--crise .score__verdict     { color: #ff4d5e; }
.score__num { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Pays à surveiller : pastilles de gravité */
.watch__badge { border-color: var(--lvl-vigilance); }
.watch__badge--alerte { border-color: var(--lvl-alerte); }

/* Fiche pays : drapeau aligné sur le code et le nom, le reste dans la même colonne de texte */
.country__head { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 22px; max-width: 1040px; }
.country__head > * { grid-column: 2; }
.country__head > .country__flag { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 96px; margin: 0; border: 1px solid var(--rule); }
.country__head > .kicker { grid-row: 1; margin-bottom: 4px; align-self: end; }
.country__head > .display { grid-row: 2; margin-bottom: 14px; }
.country__verified { justify-self: start; letter-spacing: 0.1em; }
@media (max-width: 640px) {
  .country__head { grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; }
  .country__head > .country__flag { width: 56px; }
  .country__head > :not(.country__flag):not(.kicker):not(.display) { grid-column: 1 / -1; }
}
