/* ======================================================================
   Passe « frontend-design » (2 décembre 2026), chargée après les styles de chaque page.
   Le thème aurore, ses cartes en verre et les bandes nuit restent tels quels.
   Un seul élément mémorable : la bande nuit de l'en-tête (carte, globe, titre révélé mot à mot).
   Le reste se fait discret : une seule famille (Geist), pas de mot mis en valeur dans les titres,
   pas de capitales ni de chasse fixe pour les étiquettes, pas de repère au-dessus des titres,
   pas de flèche sur les liens, pas d'apparition section par section ni carte par carte.
   ====================================================================== */

/* Titres : une seule voix, pas de mot accentué */
h1 em, h2 em, h3 em, .accent-em, header.top h1 em {
  font: inherit; font-style: normal; color: inherit; background: none; padding: 0;
  letter-spacing: inherit; line-height: inherit;
}

/* Repères au-dessus des titres : ils répètent le titre, on les retire */
.eyebrow { display: none !important; }

/* Étiquettes : casse de phrase, même famille que le texte */
th, .metric .k, .label, .datacard__stats dt, .bi-kpi__k, .tab small, .fgroup > span, .flabel, .bi-field > span, .bi-field label {
  text-transform: none !important; letter-spacing: 0 !important; font-family: var(--font-body) !important;
}
th { font-weight: 600 !important; font-size: 0.8125rem !important; color: var(--ink-muted) !important; }
.metric .k, .bi-kpi__k { font-size: 0.875rem !important; font-weight: 500 !important; }
.datacard__stats dt { font-size: 0.75rem !important; }
.meth-nav .mn-ref, .mono { font-family: var(--font-body); }

/* Liens et boutons : le libellé dit l'action, sans flèche décorative */
.btn::after, a.more::after, .case-card__link::after, a.go::after, .now-list a::after { content: none !important; }

/* Mouvement : un seul moment orchestré (l'en-tête) ; le reste est là d'emblée */
.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.js [data-stagger]:not(.is-in) > *, .js [data-stagger].is-in > * { opacity: 1 !important; transform: none !important; transition: none !important; }
a.card:hover, a.post-card:hover, .case-card:hover, .alert:hover, .stage:hover, .datacard:hover, .now-list a:hover,
.meth-nav button:hover, .btn:hover, .nav-cta:hover { transform: none !important; }

/* Alertes : date séparée par l'espace, sans point médian */
.ahead .date::before { content: none !important; }

/* ======================================================================
   Passe impeccable « layout + typeset + polish » (2 décembre 2026) : accueil et composants globaux.
   Voir DESIGN.md (« The Dawn Bulletin »). Le monde aurore reste ; on retire ses clichés.
   ====================================================================== */
:root {
  --ease-back: cubic-bezier(0.16, 1, 0.3, 1);   /* plus de rebond : sortie exponentielle */
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;  /* code seulement */
  --rhythm-section: clamp(64px, 9vw, 120px);     /* espace au-dessus d'une section */
  --rhythm-head: clamp(24px, 3vw, 40px);         /* titre puis contenu : plus serré que l'espace au-dessus */
}

/* ---------- Fond : une lumière d'aube, deux lavis, immobile ---------- */
body::before {
  animation: none !important; filter: blur(24px) !important; inset: -6vmax !important;
  background:
    radial-gradient(46vmax 34vmax at 88% -6%, rgba(79, 179, 232, 0.30), transparent 70%),
    radial-gradient(40vmax 26vmax at 4% 104%, rgba(255, 196, 150, 0.22), transparent 70%) !important;
}
body::after { background: none !important; }

/* ---------- Bandes nuit : lumière d'arête, sans projecteur ni anneaux ---------- */
.night-bg, header.top, .sitefoot {
  background:
    linear-gradient(180deg, rgba(127, 208, 245, 0.10) 0%, rgba(127, 208, 245, 0) 38%),
    linear-gradient(160deg, #10263B 0%, #0B1726 55%, #081220 100%) !important;
}
.night, .night-scope.c3d-box {
  background:
    linear-gradient(180deg, rgba(127, 208, 245, 0.08) 0%, rgba(127, 208, 245, 0) 34%),
    linear-gradient(160deg, #10263B 0%, #0B1726 55%, #081220 100%) !important;
}
header.top::before, header.top:not(.hero-split)::before { content: none !important; }
header.top::after { background-image: none !important; }

/* ---------- Note de l'en-tête : une note, pas une carte dans une carte ---------- */
header.top .notice {
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 14px 0 0 !important; border-top: 1px solid rgba(234, 244, 251, 0.14) !important;
  max-width: 56ch; font-size: 0.9375rem; line-height: 1.55; color: #B4C7D8;
}
header.top .notice b { color: #EAF4FB; font-weight: 600; }

/* ---------- Boutons : pas de lueur ; réponse nette au survol et à l'appui ---------- */
.btn, .nav-cta { box-shadow: none !important; transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease) !important; }
.btn:hover { background: #22344A; border-color: #22344A; color: #fff; }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:active, .nav-cta:active, .chip:active, .metric-pick button:active, .tab:active { transform: scale(0.97) !important; }
header.top .btn:hover { background: #fff; border-color: #fff; color: #0B1726; box-shadow: none !important; }
header.top .btn.ghost:hover { background: rgba(234, 244, 251, 0.14); color: #F5FAFE; }
.nav-cta:hover { background: #22344A !important; }

/* ---------- Liens : le soulignement s'épaissit ---------- */
a { text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease), text-decoration-thickness 160ms var(--ease); }
a:hover { text-decoration-thickness: 2px; }

/* ---------- Surfaces du navigateur aux couleurs du site ---------- */
html { scrollbar-color: rgba(14, 30, 46, 0.28) transparent; accent-color: var(--accent); caret-color: var(--accent); }
::selection { background: rgba(79, 179, 232, 0.32); color: var(--ink); }
.night ::selection, header.top ::selection, .sitefoot ::selection { background: rgba(127, 208, 245, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
header.top :focus-visible, .sitefoot :focus-visible, .night :focus-visible { outline-color: #7FD0F5; }

/* ---------- Langue : l'option inactive reste lisible (contraste AA) ---------- */
.lang a { color: var(--muted) !important; }
.lang a[aria-current="true"] { color: var(--ink) !important; }

/* ---------- Tableaux : la ligne du pic se signale par une teinte, pas une barre latérale ---------- */
tr.is-peak td:first-child { box-shadow: none !important; }

/* ---------- Typographie : échelle plus nette, interlettrage dans les limites ---------- */
h1, .heading-1 { letter-spacing: -0.04em; }
header.top h1 { font-size: clamp(2.5rem, 5.6vw, 5.75rem); line-height: 0.98; }
@media (min-width: 900px) { header.top.hero-split h1 { font-size: clamp(2.4rem, min(4.4vw, 7.2vh), 4.6rem); line-height: 1.02; } }
.section-head h2, .cta-band h2, .now-side h2 {
  font: 650 clamp(2rem, 3.6vw, 3.25rem)/1.06 var(--font-display) !important; letter-spacing: -0.035em !important; max-width: 20ch;
}
.lede { max-width: 60ch; }
.stage__body, .now-list .now-title, .keyfig p { text-wrap: pretty; }

/* ---------- Accueil : rythme des sections ---------- */
.section { padding-block: var(--rhythm-section) 0 !important; }
.section-head { padding-bottom: var(--rhythm-head) !important; gap: 12px !important; }
.now { padding-block: var(--rhythm-section) 0 !important; }

/* Trois étapes : une séquence éditoriale en colonnes, pas trois cartes identiques */
.stages { gap: 0 !important; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(14, 30, 46, 0.16); }
.stage {
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 28px 32px 8px 0 !important; gap: 10px !important;
}
.stage + .stage { padding-left: 32px !important; border-left: 1px solid rgba(14, 30, 46, 0.10) !important; }
.stage__num {
  width: auto !important; height: auto !important; background: none !important; border-radius: 0 !important; display: block !important;
  font: 600 0.9375rem/1 var(--font-body) !important; color: var(--accent) !important; letter-spacing: 0 !important; font-variant-numeric: tabular-nums;
}
.stage__title { font: 650 1.625rem/1.15 var(--font-display) !important; letter-spacing: -0.03em !important; margin-top: 4px !important; }
.stage__body { color: var(--ink-muted); max-width: 36ch; }
.stage a.more { margin-top: 6px; font-weight: 500; }
@media (max-width: 820px) {
  .stages { grid-template-columns: minmax(0, 1fr); }
  .stage, .stage + .stage { padding: 24px 0 20px !important; border-left: 0 !important; }
  .stage + .stage { border-top: 1px solid rgba(14, 30, 46, 0.10) !important; }
}

/* Dernières alertes : une liste à filets, pas une pile de cartes */
.now-list, ul.now-list { gap: 0 !important; border-top: 1px solid rgba(14, 30, 46, 0.16) !important; margin: 4px 0 8px !important; }
.now-list a, ul.now-list a {
  background: none !important; border: 0 !important; border-bottom: 1px solid rgba(14, 30, 46, 0.10) !important; border-radius: 0 !important;
  box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 16px 8px 16px 0 !important; transition: background-color 160ms var(--ease) !important;
}
.now-list a:hover { background: rgba(255, 255, 255, 0.55) !important; }
.now-list a:hover .now-title { text-decoration: underline 2px var(--accent-fill); text-underline-offset: 4px; }
.now-list a::before { margin-top: 6px; }
.now-meta { font-size: 0.8125rem !important; color: var(--muted) !important; }
.now-title { font: 600 1.0625rem/1.35 var(--font-display) !important; letter-spacing: -0.015em !important; }

/* Chiffres : un seul relevé, une surface d'information, des séparations fines */
.keyfigs {
  gap: 0 !important; padding: 8px 0 !important; border-radius: 20px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(15, 40, 70, 0.04), 0 12px 32px -14px rgba(40, 70, 130, 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.keyfig, .keyfig:first-child, .keyfig:not(:first-child) {
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 22px 28px !important;
}
.keyfig + .keyfig { border-left: 1px solid rgba(14, 30, 46, 0.10) !important; }
.keyfig .val, .keyfig:first-child .val { font: 650 clamp(2.5rem, 4vw, 3.75rem)/1 var(--font-display) !important; letter-spacing: -0.04em !important; color: var(--ink) !important; }
.keyfig .unit, .keyfig:first-child .unit { color: var(--muted) !important; font: 500 1rem/1 var(--font-body) !important; align-self: end; margin-bottom: 6px; }
.keyfig p, .keyfig:first-child p { color: var(--ink-muted) !important; font-size: 0.9375rem; max-width: 24ch; }
@media (max-width: 900px) {
  .keyfig:nth-child(3) { border-left: 0 !important; }
  .keyfig:nth-child(n + 3) { border-top: 1px solid rgba(14, 30, 46, 0.10) !important; }
}
@media (max-width: 520px) {
  .keyfigs { grid-template-columns: minmax(0, 1fr) !important; }
  .keyfig + .keyfig { border-left: 0 !important; border-top: 1px solid rgba(14, 30, 46, 0.10) !important; }
}

/* Appel final : aligné sur la colonne, sans halo, séparé par un filet */
.cta-band {
  text-align: left !important; justify-items: start !important; gap: 24px !important;
  padding-block: var(--rhythm-section) 96px !important;
}
.cta-band::before { content: none !important; }
.cta-band .hero-actions { justify-content: flex-start !important; }

/* Pied de page : ligne de base aérée, casse de phrase */
.foot-base { padding-block: 20px 24px !important; text-transform: none !important; letter-spacing: 0 !important; font: 400 0.8125rem/1.4 var(--font-body) !important; }

/* ======================================================================
   Passe impeccable « typeset + polish » 2 (2 décembre 2026) :
   police éditoriale Schibsted Grotesk hébergée sur le site, fin des pilules.
   ====================================================================== */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Le mot-symbole garde son dessin d'origine (Geist Light), seul usage de cette police */
@font-face {
  font-family: "Geist Logo"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/geist-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Logo"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/geist-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-num: "Schibsted Grotesk", system-ui, sans-serif;
  --r-full: 8px;   /* plus de pilules : les contrôles ont un arrondi doux */
}
body { font-feature-settings: normal; font-variant-numeric: normal; }  /* tnum élargit aussi virgule et point dans Schibsted : réservé aux chiffres alignés */
/* Chiffres proportionnels partout : les chiffres tabulaires de Schibsted élargissent aussi point, virgule et séparateurs */
body, td, th, output, .metric .v, .keyfig .val, .datacard__value, .datacard__stats dd, .bi-kpi__v, .fig b, .chart-head .kpi b, .kpi b { font-variant-numeric: lining-nums proportional-nums !important; }
.sitenav .brand, .logo { font-family: "Geist Logo", system-ui, sans-serif !important; }

/* Typographie : Schibsted est plus charpentée que Geist, on desserre un peu le titrage */
h1, .heading-1 { letter-spacing: -0.03em; font-weight: 700; }
h2, h3, .heading-2, .heading-3, .heading-4, .heading-5, .heading-6 { letter-spacing: -0.02em; }
.section-head h2, .cta-band h2, .now-side h2 { font-weight: 700 !important; letter-spacing: -0.025em !important; }
.stage__title { font-weight: 700 !important; letter-spacing: -0.02em !important; }
.now-title { letter-spacing: -0.01em !important; }
.metric .v, .keyfig .val, .chart-head .kpi b, .kpi b, .datacard__value, .bi-kpi__v { letter-spacing: -0.03em !important; }

/* Navigation : la page courante est soulignée, pas posée sur une pilule */
.navlinks a { background: none !important; border-radius: 0 !important; padding: 8px 2px !important; margin-inline: 10px; color: var(--ink-muted); }
.navlinks a:hover { color: var(--ink); text-decoration: underline 1px; text-underline-offset: 6px; }
.navlinks a[aria-current="page"] { color: var(--ink) !important; text-decoration: underline 2px var(--accent) !important; text-underline-offset: 6px; }
.nav-cta { border-radius: 10px !important; }
/* Langue : deux mots, la langue active en encre */
.lang { background: none !important; padding: 0 !important; gap: 2px !important; border-radius: 0 !important; }
.lang a { background: none !important; box-shadow: none !important; border-radius: 4px !important; padding: 4px 6px !important; font: 500 0.8125rem/1 var(--font-body) !important; }
.lang a[aria-current="true"] { font-weight: 700 !important; text-decoration: underline 2px var(--accent); text-underline-offset: 5px; }

/* Onglets : soulignés, comme des intertitres */
.tabs:not(:has(.tabrow)) { background: none !important; padding: 0 !important; border-radius: 0 !important; gap: 28px !important; border-bottom: 1px solid rgba(14, 30, 46, 0.14) !important; }
.tabs:not(:has(.tabrow)) .tab { background: none !important; box-shadow: none !important; border-radius: 0 !important; padding: 10px 0 !important; margin-bottom: -1px !important; border-bottom: 2px solid transparent !important; color: var(--muted); }
.tabs:not(:has(.tabrow)) .tab:hover { color: var(--ink); }
.tabs:not(:has(.tabrow)) .tab[aria-selected="true"] { color: var(--ink) !important; border-bottom-color: var(--ink) !important; }

/* Statut : une phrase en couleur, précédée d'une flèche de tendance ; ni pilule ni point */
:root {
  --ico-trend-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E");
  --ico-trend-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l6 6 4-4 8 8'/%3E%3Cpath d='M15 17h6v-6'/%3E%3C/svg%3E");
  --ico-trend-flat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h16'/%3E%3Cpath d='M15 8l4 4-4 4'/%3E%3C/svg%3E");
}
.status { background: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; gap: 8px !important; font: 600 1rem/1.35 var(--font-body) !important; }
.status::before {
  width: 18px !important; height: 18px !important; border-radius: 0 !important; box-shadow: none !important; flex: none;
  background: currentColor; -webkit-mask: var(--ico-trend-flat) center / contain no-repeat; mask: var(--ico-trend-flat) center / contain no-repeat;
}
.status.bad::before, .status.up::before { -webkit-mask-image: var(--ico-trend-up); mask-image: var(--ico-trend-up); }
.status.good::before, .status.down::before { -webkit-mask-image: var(--ico-trend-down); mask-image: var(--ico-trend-down); }

/* Légendes des graphiques : du texte et un trait de couleur, pas des boutons en pilule */
.legend > span, .legend > button, .night .legend > span, .night .legend > button {
  background: none !important; border: 0 !important; border-radius: 4px !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 4px 2px !important;
}
.legend > button:hover, .night .legend > button:hover { background: none !important; text-decoration: underline 1px; text-underline-offset: 4px; }
.legend > button[aria-pressed="false"], .night .legend > *[aria-pressed="false"] { opacity: 0.45; text-decoration: line-through; }
.legend { gap: 6px 18px !important; }

/* Étiquettes et badges : du texte, plus des pilules */
.pill { background: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; color: var(--muted) !important; font: 500 0.8125rem/1.4 var(--font-body) !important; }
.pill.type::before { content: none !important; }
.pills { gap: 6px 16px !important; }
.peak-tag, .meth-nav .mn-badge, .bi-fresh__a, .bi-chip { border-radius: 4px !important; }
.filters select { border-radius: 8px !important; }

/* Titre révélé mot à mot : le masque laisse passer les jambages de Schibsted (q, g, p) */
.wmask { padding-bottom: 0.26em !important; margin-bottom: -0.26em !important; }

/* Formes : moins de rondeur générique. Cartes 14 px, bande nuit 20 px et ombre courte, pied de page à bords francs */
:root { --r-xl: 14px; --r-2xl: 16px; }
.card, .chart-card, .eqbox, .panel-card, .panel, .metric, .notice, .post-card, .dz, .empty, .datacard, .bi-kpi, .bi-bar, .keyfigs, .case-card, .meth-nav button {
  border-radius: 14px !important;
}
.metric, .bi-kpi { border-radius: 12px !important; }
header.top { border-radius: 20px !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 36px -26px rgba(8, 18, 32, 0.5) !important; }
.night, .night-scope.c3d-box { border-radius: 14px !important; }
.sitefoot { border-radius: 0 !important; }

/* Longueur de ligne : Schibsted est plus étroite que Geist ; on revient sous ~75 caractères */
.method > p, .method li, .meth-block > p, .meth-block li, .note, #pub-note, #own-help, .alert p, .how p, .lede, .stage__body, .keep li, .ref, .model-lead { max-width: 62ch; }
/* Badge du modèle appliqué : contraste AA sur la carte bleu nuit */
.meth-nav button[aria-pressed="true"] .mn-badge { background: rgba(8, 18, 32, 0.55) !important; color: #fff !important; }
/* Chiffres dans un panneau : posés à plat, séparés par un filet, pas des cartes dans une carte */
.panel .metric, section.panel .metric {
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border-top: 1px solid rgba(14, 30, 46, 0.12) !important; padding: 14px 4px 4px !important;
}

/* Titres de panneau passés de h3 à h2 (hiérarchie sans saut) : même marge qu'avant */
h2.label { margin: 0 0 0.5em; }
/* Carte posée dans un panneau : aplatie */
.panel .card { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding-inline: 0 !important; }
/* Statut en rouge : contraste AA sur le fond clair */
.status.bad, .status.up { color: #A93226 !important; }

/* Premier écran : la bande nuit de l'en-tête l'occupe seule, sur toutes les pages.
   Hauteur = fenêtre - barre de navigation (65 px) - même écart en haut et en bas ; contenu centré. */
header.top {
  --nav-h: 65px; --band-gap: clamp(16px, 2.5vw, 32px);
  min-height: calc(100vh - var(--nav-h) - 2 * var(--band-gap));
  min-height: calc(100svh - var(--nav-h) - 2 * var(--band-gap));
  margin-top: var(--band-gap) !important; margin-bottom: calc(var(--band-gap) + 24px) !important;
  align-content: center;
}
header.top.hero-split { align-items: center; }

/* Cases : dégradé de lumière du matin (demande du 2 déc. 2026), discret : blanc en haut, bleu ciel très pâle en bas.
   Les surfaces aplaties dans un panneau (.panel .metric, .panel .card) restent plates : leur règle est plus précise. */
:root { --card-dawn: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 248, 253, 0.88) 55%, rgba(225, 239, 250, 0.82) 100%); }
.card, .chart-card, .eqbox, .panel-card, .panel, .metric, .post-card, .dz, .empty, .datacard, .bi-kpi, .bi-bar, .keyfigs, .case-card,
.meth-nav button:not([aria-pressed="true"]), .bi-multi__panel {
  background: var(--card-dawn) !important;
}
.datacard.is-quiet { background: linear-gradient(180deg, rgba(255, 255, 255, 0.70) 0%, rgba(232, 242, 250, 0.55) 100%) !important; }

/* Filtres de maladie (carte 3D, Explorer les chiffres) : arrondi doux, plus de pilules */
.metric-pick button, .bi-chips button, .bi-chips > * { border-radius: 8px !important; }

/* Relief « entre 2D et 3D » (demande du 2 déc. 2026) : chaque case est une plaque posée sur la page.
   Arête de lumière en haut, tranche plus sombre en bas, ombre de contact courte et ombre portée douce.
   Sélecteurs à une seule classe : les surfaces aplaties dans un panneau (.panel .metric, .panel .card) restent plates. */
:root {
  --slab-edge: rgba(255, 255, 255, 0.95) rgba(196, 216, 236, 0.75) rgba(160, 188, 216, 0.85) rgba(196, 216, 236, 0.75);
  --slab: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(120, 160, 205, 0.12),
          0 1px 0 rgba(150, 180, 212, 0.55), 0 2px 3px -1px rgba(15, 40, 70, 0.10),
          0 16px 30px -18px rgba(30, 60, 110, 0.34);
  --slab-raised: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(120, 160, 205, 0.14),
          0 1px 0 rgba(150, 180, 212, 0.6), 0 4px 6px -2px rgba(15, 40, 70, 0.12),
          0 24px 40px -20px rgba(30, 60, 110, 0.42);
}
.card, .chart-card, .eqbox, .panel-card, .panel, .metric, .post-card, .dz, .empty, .datacard, .bi-kpi, .bi-bar, .keyfigs, .case-card,
.meth-nav button:not([aria-pressed="true"]), .bi-multi__panel {
  border-style: solid !important; border-width: 1px !important; border-color: var(--slab-edge) !important;
  box-shadow: var(--slab) !important;
}
.datacard.is-quiet { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 0 rgba(150, 180, 212, 0.35), 0 10px 22px -16px rgba(30, 60, 110, 0.22) !important; }
/* Les cases cliquables se soulèvent un peu au survol et s'enfoncent au clic */
.meth-nav button, .post-card, .case-card, .dz, a.card, .metric-pick button, .bi-chips button {
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 160ms var(--ease) !important;
}
.meth-nav button:not([aria-pressed="true"]):hover, .post-card:hover, .case-card:hover, .dz:hover, a.card:hover {
  transform: translateY(-2px); box-shadow: var(--slab-raised) !important;
}
.meth-nav button:active, .post-card:active, .case-card:active, a.card:active { transform: translateY(0) scale(0.99); }
/* Filtres de maladie : petites touches en relief */
.metric-pick button:not([aria-pressed="true"]), .bi-chips button:not([aria-pressed="true"]) {
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(150, 180, 212, 0.6), 0 2px 4px -2px rgba(15, 40, 70, 0.14) !important;
}
.metric-pick button[aria-pressed="true"], .bi-chips button[aria-pressed="true"] {
  box-shadow: inset 0 2px 3px rgba(8, 18, 32, 0.28) !important;
}
@media (prefers-reduced-motion: reduce) {
  .meth-nav button:hover, .post-card:hover, .case-card:hover, .dz:hover, a.card:hover,
  .meth-nav button:active, .post-card:active, .case-card:active, a.card:active { transform: none !important; }
}

/* Illustration 3D dans la bande d'en-tête (pages autres que l'accueil) : colonne de droite, décorative */
header.top.hero-split > :not(.hero-map):not(.hero-3d) { grid-column: 1; }
header.top.hero-split > .hero-3d { grid-column: 2; grid-row: 1 / span 6; align-self: center; margin: 0; width: 100%; aspect-ratio: 1 / 0.86; max-height: 72vh; opacity: 0; transition: opacity 900ms var(--ease); }
header.top.hero-split > .hero-3d.is-ready { opacity: 1; }
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }
@media (max-width: 900px) { header.top.hero-split > .hero-3d { display: none; } }
@media (prefers-reduced-motion: reduce) { header.top.hero-split > .hero-3d { transition: none; } }

/* En-têtes : texte et figure (carte ou illustration 3D) sur une même ligne, centrés l'un par rapport à l'autre
   et, ensemble, au milieu de la bande (demande du 2 déc. 2026) */
header.top.hero-split {
  grid-template-columns: minmax(0, 44rem) minmax(0, 34rem) !important; grid-template-rows: auto;
  justify-content: center; align-items: center; align-content: center; column-gap: clamp(32px, 5vw, 80px) !important;
}
header.top.hero-split > .hero-text { grid-column: 1; grid-row: 1; display: grid; gap: var(--s-300); align-content: center; min-width: 0; }
header.top.hero-split > .hero-text > .eyebrow { margin-bottom: var(--s-75); }
header.top.hero-split > .hero-map, header.top.hero-split > .hero-3d { grid-column: 2; grid-row: 1; align-self: center; justify-self: center; }
@media (max-width: 900px) {
  header.top.hero-split { grid-template-columns: minmax(0, 1fr) !important; }
  header.top.hero-split > .hero-map { grid-column: 1; grid-row: 2; }
}
/* La colonne de texte prend la largeur réelle du texte : le couple texte + figure est vraiment au milieu de la bande */
header.top.hero-split { grid-template-columns: fit-content(40rem) minmax(0, 34rem) !important; }
@media (max-width: 900px) { header.top.hero-split { grid-template-columns: minmax(0, 1fr) !important; } }

/* Filets gravés (demande du 2 déc. 2026) : chaque trait de séparation est un sillon, un trait sombre
   doublé d'un trait de lumière juste à côté, comme gravé dans la page. Même relief que les cases. */
:root { --groove-d: rgba(14, 30, 46, 0.26); --groove-l: #fff; --groove-s: rgba(14, 30, 46, 0.07);
  --groove-top: inset 0 1px 0 var(--groove-l), inset 0 2px 0 var(--groove-l), inset 0 3px 2px -1px var(--groove-s);
  --groove-left: inset 1px 0 0 var(--groove-l), inset 2px 0 0 var(--groove-l), inset 3px 0 2px -1px var(--groove-s);
  --groove-bottom: 0 1px 0 var(--groove-l), 0 2px 0 var(--groove-l), 0 3px 2px -1px var(--groove-s); }
/* Traits en haut : la lumière juste dessous */
.stages, .now-list, ul.now-list, .panel .metric, section.panel .metric, .datacard__stats, .datacard__foot, .sitefoot {
  border-top-color: var(--groove-d) !important; box-shadow: var(--groove-top) !important;
}
@media (max-width: 820px) { .stage + .stage { border-top-color: var(--groove-d) !important; box-shadow: var(--groove-top) !important; } }
@media (max-width: 900px) { .keyfig:nth-child(n + 3), .keyfig + .keyfig { border-top-color: var(--groove-d) !important; box-shadow: var(--groove-top) !important; } }
/* Traits verticaux : la lumière juste à droite */
@media (min-width: 821px) { .stage + .stage { border-left-color: var(--groove-d) !important; box-shadow: var(--groove-left) !important; } }
@media (min-width: 901px) { .keyfig + .keyfig { border-left-color: var(--groove-d) !important; box-shadow: var(--groove-left) !important; } }
.datacard__stats > div + div { border-left-color: var(--groove-d) !important; box-shadow: var(--groove-left); }
/* Traits en bas : la lumière juste dessous, à l'extérieur */
.now-list a, ul.now-list a, .tabs:not(:has(.tabrow)), .tip-h, th, td, .sitenav-band {
  border-bottom-color: var(--groove-d) !important; box-shadow: var(--groove-bottom) !important;
}
.now-list a:hover { box-shadow: var(--groove-bottom) !important; }
/* Sur les fonds bleu nuit : sillon sombre et lumière très faible */
header.top .notice { border-top-color: rgba(0, 0, 0, 0.45) !important; box-shadow: inset 0 1px 0 rgba(234, 244, 251, 0.12) !important; }
.night th, .night td, .night-scope th, .night-scope td, .night .tip-h, .night-scope .tip-h, .night .tabs:not(:has(.tabrow)) {
  border-bottom-color: rgba(0, 0, 0, 0.45) !important; box-shadow: 0 1px 0 rgba(234, 244, 251, 0.10) !important;
}

/* Statuts en relief (demande du 3 déc. 2026) : la phrase d'état est une plaquette posée sur la page, teintée par
   l'état (rouge : en hausse, vert : en recul, gris : incertain). Même lumière que les cases : arête claire en haut,
   tranche plus sombre en bas, ombre courte. Coins de 8 px, pas une pilule. */
.status { --st: 78, 98, 117; }
.status.bad, .status.up { --st: 169, 50, 38; }
.status.good, .status.down { --st: 35, 120, 75; }
.status {
  display: inline-flex !important; align-items: center; max-width: 100%;
  padding: 8px 14px 9px 12px !important; border-radius: 8px !important;
  border: 1px solid !important;
  border-color: rgba(255, 255, 255, 0.95) rgba(var(--st), 0.20) rgba(var(--st), 0.38) rgba(var(--st), 0.20) !important;
  background: linear-gradient(180deg, rgba(var(--st), 0.015) 0%, rgba(var(--st), 0.11) 100%), #fff !important;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(var(--st), 0.10),
              0 1px 0 rgba(var(--st), 0.32), 0 2px 3px -1px rgba(15, 40, 70, 0.12),
              0 12px 20px -14px rgba(var(--st), 0.55) !important;
}
/* Sur fond bleu nuit : plaquette sombre, arête de lumière faible */
.night .status, .night-scope .status, header.top .status {
  border-color: rgba(234, 244, 251, 0.22) rgba(234, 244, 251, 0.08) rgba(0, 0, 0, 0.5) rgba(234, 244, 251, 0.08) !important;
  background: linear-gradient(180deg, rgba(234, 244, 251, 0.10), rgba(234, 244, 251, 0.03)) !important;
  box-shadow: inset 0 1px 0 rgba(234, 244, 251, 0.14), 0 1px 0 rgba(0, 0, 0, 0.5), 0 8px 16px -10px rgba(0, 0, 0, 0.7) !important;
}
/* Petites étiquettes d'état (tendance du tableau de bord, pic d'un tableau, modèle appliqué) : même relief, en petit */
.bi-chip, .meth-nav .mn-badge {
  border-radius: 5px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}
.peak-tag {
  border-radius: 5px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.14), 0 1px 0 rgba(120, 30, 20, 0.35), 0 2px 4px -1px rgba(15, 40, 70, 0.25) !important;
}
