/* ==========================================================================
   CLR — clr-public / mockup portail joueurs
   Thème Escapetime : noir + bleu #23B9F0 dominants.
   L'orange #E0491B du logo BOOM IMMINENT reste un accent RARE et porteur de sens —
   il ne sert qu'à : l'accroche du hero, le rang 1 du podium, la ligne « vous » du
   classement et le temps manquant d'une partie perdue. Partout ailleurs, c'est le bleu.
   Mockup statique : aucune dépendance réseau, aucun framework.
   ========================================================================== */

/* ---------- Fontes vendorisées (assets/fonts/) ----------
   Montserrat est la police d'escapetime.fr : on la reprend pour les titres
   comme pour le texte. JetBrains Mono ne sert plus qu'aux valeurs chiffrées
   (scores, temps, codes), où l'alignement des chiffres compte. */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-var.woff2') format('woff2-variations'),
         url('../fonts/montserrat-var.woff2') format('woff2');
    font-weight: 100 900; font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrains-var.woff2') format('woff2-variations'),
         url('../fonts/jetbrains-var.woff2') format('woff2');
    font-weight: 100 800; font-display: swap;
}

:root {
    /* Palette Escapetime (alignée sur clr-controller : TV + IHM joueur) */
    --bg:         #050810;
    --bg-2:       #070c18;
    --panel:      #0d1424;
    --panel-hi:   #131c33;
    --border:     #1e2a44;
    --border-hi:  #2c3d63;
    --text:       #e6edf3;
    --muted:      #6b7a99;
    --blue:       #23b9f0;
    --blue-hi:    #5cd5ff;
    --blue-dim:   rgba(35, 185, 240, .14);
    --orange:     #e0491b;
    --orange-hi:  #ff6b35;
    --orange-dim: rgba(224, 73, 27, .14);
    --success:    #3fb950;
    --danger:     #f85149;
    --warn:       #d29922;

    --ff-title: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    --ff-mono:  'JetBrains Mono', Consolas, ui-monospace, monospace;
    --ff-body:  'Montserrat', 'Segoe UI', system-ui, sans-serif;

    --maxw: 1240px;
    --r: 4px;
}

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

html { scroll-behavior: smooth; }

body {
    /* colonne : l'écran d'accueil prend la place restante sans qu'on ait à
       soustraire à la main la hauteur de la barre, du bandeau et du pied. */
    min-height: 100dvh; display: flex; flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Fond tactique global : photo spatiale + grille + halos.
   L'image est fixe (le pseudo-élément l'est déjà) et passe sous un voile
   sombre dégradé — plus dense en bas, là où le contenu est le plus chargé —
   pour que le texte reste lisible sur toute la hauteur des pages longues. */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(900px 600px at 78% -5%, rgba(224, 73, 27, .05), transparent 65%),
        repeating-linear-gradient(0deg,  rgba(107,122,153,.035) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(90deg, rgba(107,122,153,.035) 0 1px, transparent 1px 64px),
        linear-gradient(180deg, rgba(5,8,16,.60) 0%, rgba(5,8,16,.74) 45%, rgba(5,8,16,.86) 100%),
        url('../img/bg-space.jpg') center / cover no-repeat,
        var(--bg);
}
/* Scanlines très discrètes */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: 9998; pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px);
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ==========================================================================
   Primitives
   ========================================================================== */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }

.mono { font-family: var(--ff-mono); }

/* Étiquette technique (petit texte mono espacé) */
.kicker {
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--blue);
    display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ''; width: 26px; height: 1px; background: currentColor; flex: none; }
.kicker.is-orange { color: var(--orange-hi); }

h1, h2, h3, h4 { font-family: var(--ff-title); font-weight: 900; line-height: 1.08; letter-spacing: -.01em; }

.h-sec { font-size: clamp(24px, 3vw, 36px); text-transform: uppercase; margin-top: 10px; }
.h-sec em { font-style: normal; color: var(--blue); }
.h-sec i  { font-style: normal; color: var(--orange-hi); }

.lead { color: var(--muted); max-width: 62ch; margin-top: 14px; font-size: 16px; }
/* Phrase de rappel : tient sur une ligne tant que la largeur le permet */
.lead-line { max-width: none; }

section { padding-block: clamp(56px, 8vw, 96px); position: relative; }

.sec-head { margin-bottom: 38px; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Panel (bloc tactique à coins marqués) ---------- */
.panel {
    position: relative;
    background: linear-gradient(180deg, rgba(13,20,36,.90) 0%, rgba(7,12,24,.94) 100%);
    backdrop-filter: blur(3px);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 22px;
}
.panel.brackets::before,
.panel.brackets::after {
    content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
    border-color: var(--blue); opacity: .85;
}
.panel.brackets::before { top: -1px; left: -1px;  border-top: 2px solid; border-left: 2px solid; }
.panel.brackets::after  { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }
.panel.brackets.is-orange::before,
.panel.brackets.is-orange::after { border-color: var(--orange); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--ff-title); font-weight: 800; font-size: 12.5px;
    letter-spacing: .09em; text-transform: uppercase;
    padding: 13px 24px; border: 1px solid transparent; border-radius: var(--r);
    cursor: pointer; transition: .18s ease; white-space: nowrap;
}
/* Le site de la franchise met son bouton de réservation en teinte chaude sur
   fond sombre : on reprend le principe avec l'orange du logo BOOM IMMINENT. */
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-hi); border-color: var(--orange-hi); box-shadow: 0 0 22px rgba(224,73,27,.45); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--border-hi); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-dim); color: var(--blue-hi); }
.btn-sm { padding: 8px 14px; font-size: 11px; }

/* ---------- Badges / pastilles ---------- */
.tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px;
    border: 1px solid var(--border-hi); color: var(--muted); background: rgba(255,255,255,.02);
}
.tag.is-blue    { color: var(--blue);      border-color: rgba(35,185,240,.40); background: var(--blue-dim); }
.tag.is-orange  { color: var(--orange-hi); border-color: rgba(224,73,27,.45);  background: var(--orange-dim); }
.tag.is-success { color: var(--success);   border-color: rgba(63,185,80,.40);  background: rgba(63,185,80,.12); }
.tag.is-danger  { color: var(--danger);    border-color: rgba(248,81,73,.40);  background: rgba(248,81,73,.12); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 currentColor; }
    50%      { opacity: .45; box-shadow: 0 0 0 5px transparent; }
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.nav {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(5, 8, 16, .82);
    border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; gap: 16px; height: 49px; position: relative; }   /* 49 + 1px de bordure = 50 px pile */

/* Le logo complet en en-tête : sa hauteur commande celle de la barre. */
.brand { display: flex; align-items: center; flex: none; }
.brand .logo-full { display: block; height: 38px; width: auto; flex: none; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ff-title); font-weight: 700; font-size: 12px;
    letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
    padding: 7px 11px; border-radius: var(--r); transition: .16s; position: relative;
}
/* Icones de menu : au trait, elles prennent la couleur du lien */
.nav-links svg {
    width: 15px; height: 15px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.4;
    stroke-linecap: round; stroke-linejoin: round;
}
.nav-links a svg { opacity: 1; }
.nav-links .btn svg { stroke-width: 1.6; opacity: 1; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--blue); }
.nav-links .btn-primary { color: #fff; }
.nav-cta { margin-left: 8px; }

.burger {
    display: none; margin-left: auto; background: none; border: 1px solid var(--border-hi);
    color: var(--text); width: 42px; height: 38px; border-radius: var(--r); cursor: pointer;
    font-size: 17px; line-height: 1;
}

/* ==========================================================================
   Hero (accueil)
   ========================================================================== */

.hero { padding-block: clamp(44px, 6vw, 80px) clamp(40px, 6vw, 70px); text-align: center; overflow: hidden; }
.hero-logo {
    display: block; margin: 0 auto;
    width: min(430px, 76vw); height: auto;
    filter: drop-shadow(0 0 46px rgba(35, 185, 240, .22));
    animation: rise .8s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.97); } }

.hero-sub {
    font-family: var(--ff-mono); font-size: 12px; letter-spacing: .34em;
    text-transform: uppercase; color: var(--muted); margin-top: 26px;
}
.hero-sub b { color: var(--blue); font-weight: 400; }

.hero-title {
    font-family: var(--ff-title); font-weight: 700; text-transform: uppercase;
    font-size: clamp(26px, 4.4vw, 50px); line-height: 1.06; margin-top: 30px;
}
.hero-title span { color: var(--orange-hi); }
.hero-lead { color: var(--muted); max-width: 58ch; margin: 18px auto 0; font-size: 16.5px; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.hero-timer {
    display: inline-flex; align-items: center; gap: 16px; margin-top: 42px;
    padding: 12px 22px; border: 1px solid var(--border); border-radius: var(--r);
    background: rgba(13, 20, 36, .6);
}
.hero-timer .lbl {
    font-family: var(--ff-mono); font-size: 10px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--muted);
}
.hero-timer .val {
    font-family: var(--ff-mono); font-weight: 700; font-size: 30px; letter-spacing: .06em;
    color: var(--danger); text-shadow: 0 0 16px rgba(248, 81, 73, .55);
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Bandeau KPI
   ========================================================================== */

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { text-align: center; padding: 26px 16px; }
.kpi .n {
    font-family: var(--ff-mono); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px);
    color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums;
}
.kpi.is-orange .n { color: var(--orange-hi); }
.kpi .l {
    font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--muted); margin-top: 12px;
}

/* ==========================================================================
   Flux « dernières parties »
   ========================================================================== */

.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feed-card { padding: 20px; transition: .2s; animation: pop .45s cubic-bezier(.2,.7,.3,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(-10px); } }
.feed-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.feed-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.feed-team { font-family: var(--ff-title); font-weight: 800; font-size: 18px; text-transform: uppercase; }
.feed-meta { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.feed-stats { display: flex; gap: 22px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.feed-stats div { display: flex; flex-direction: column; gap: 3px; }
.feed-stats .k { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.feed-stats .v { font-family: var(--ff-mono); font-weight: 700; font-size: 17px; color: var(--text); }
.feed-stats .v.blue { color: var(--blue); }

/* ==========================================================================
   Étapes « comment ça marche »
   ========================================================================== */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: st; }
.step { padding: 28px 24px 26px; }
.step::before {
    counter-increment: st; content: '0' counter(st);
    font-family: var(--ff-mono); font-weight: 700; font-size: 46px;
    color: var(--border-hi); line-height: 1; display: block; margin-bottom: 14px;
}
.step h3 { font-size: 17px; text-transform: uppercase; margin-bottom: 10px; color: var(--blue); }
.step p { color: var(--muted); font-size: 14.5px; }

/* ==========================================================================
   Cartes scénario
   ========================================================================== */

.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sc { padding: 0; overflow: hidden; transition: .2s; }
.sc:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.sc-visual {
    height: 148px; position: relative; display: grid; place-items: center;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 50% 120%, rgba(35,185,240,.22), transparent 62%),
        repeating-linear-gradient(0deg,  rgba(107,122,153,.07) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(107,122,153,.07) 0 1px, transparent 1px 22px);
}
.sc-code { font-family: var(--ff-mono); font-weight: 700; font-size: 34px; letter-spacing: .16em; color: var(--text); opacity: .9; }
.sc-body { padding: 20px 22px 22px; }
.sc-body h3 { font-size: 19px; text-transform: uppercase; }
.sc-body p { color: var(--muted); font-size: 14px; margin-top: 8px; min-height: 44px; }
.sc-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.sc-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border);
    font-family: var(--ff-mono); font-size: 11.5px; color: var(--muted);
}
.sc-foot b { color: var(--blue); font-weight: 700; }

/* ==========================================================================
   Podium
   ========================================================================== */

.podium { display: grid; grid-template-columns: 1fr 1.16fr 1fr; gap: 16px; align-items: end; }
.pod { text-align: center; padding: 26px 18px 24px; }
.pod .rank { font-family: var(--ff-mono); font-weight: 700; font-size: 40px; line-height: 1; color: var(--border-hi); }
.pod.p1 { padding-block: 40px 34px; border-color: var(--border-hi); }
.pod.p1 .rank { color: var(--orange-hi); text-shadow: 0 0 22px rgba(224,73,27,.5); font-size: 54px; }
.pod.p2 .rank, .pod.p3 .rank { color: var(--blue); opacity: .8; }
.pod .team { font-family: var(--ff-title); font-weight: 800; font-size: 19px; text-transform: uppercase; margin-top: 12px; }
.pod.p1 .team { font-size: 28px; }
.pod .sub { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); margin-top: 5px; letter-spacing: .08em; }
.pod .score {
    font-family: var(--ff-mono); font-weight: 700; font-size: 26px; margin-top: 16px;
    padding-top: 14px; border-top: 1px solid var(--border); color: var(--text);
}
.pod .score span { font-size: 11px; color: var(--muted); letter-spacing: .16em; display: block; margin-top: 4px; font-weight: 400; }

/* ==========================================================================
   Tables (classement, historique)
   ========================================================================== */

.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r);
    background: rgba(13,20,36,.96); backdrop-filter: blur(4px); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 800px; }
table.tbl th {
    font-family: var(--ff-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted); text-align: left; padding: 14px 16px;
    border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); white-space: nowrap;
}
table.tbl td { padding: 15px 16px; border-bottom: 1px solid rgba(30,42,68,.6); vertical-align: middle; }
table.tbl tbody tr { transition: .14s; }
table.tbl tbody tr:hover { background: rgba(35,185,240,.05); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
.t-rank { font-family: var(--ff-mono); font-weight: 700; font-size: 17px; color: var(--muted); width: 74px; }
/* Le top 3 en bleu : dans le tableau, l'orange est réservé à la ligne « vous ». */
.t-rank.top { color: var(--blue); }
.t-team { font-family: var(--ff-title); font-weight: 800; font-size: 15px; text-transform: uppercase; }
.t-sub { font-family: var(--ff-mono); font-size: 10.5px; color: var(--muted); letter-spacing: .06em; margin-top: 2px; }
.t-num { font-family: var(--ff-mono); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.t-num.blue { color: var(--blue); }
tr.is-me { background: rgba(224,73,27,.09) !important; box-shadow: inset 3px 0 0 var(--orange); }
tr.is-me .t-rank { color: var(--orange-hi); }

/* Filtres */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.fgroup { display: flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.fgroup button {
    background: transparent; border: 0; cursor: pointer; color: var(--muted);
    font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    padding: 10px 15px; transition: .15s; border-right: 1px solid var(--border);
}
.fgroup button:last-child { border-right: 0; }
.fgroup button:hover { color: var(--text); background: rgba(255,255,255,.04); }
.fgroup button.on { background: var(--blue-dim); color: var(--blue); }
select.fsel {
    background: var(--panel); border: 1px solid var(--border); color: var(--text);
    font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    padding: 10px 14px; border-radius: var(--r); cursor: pointer;
}
.fcount { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); letter-spacing: .12em; margin-left: auto; }

/* ==========================================================================
   Fiche de partie
   ========================================================================== */

/* Ligne de contexte : la nav annonce « mes parties », la page en montre une —
   ce fil rappelle laquelle et où trouver les autres. */
.crumb {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
    font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted);
}
.crumb b { color: var(--text); font-weight: 400; }
.crumb a { color: var(--blue); white-space: nowrap; }
.crumb a:hover { color: var(--blue-hi); }

/* Pas d'overflow:hidden ici : il rognerait les équerres de .panel.brackets. */
.verdict {
    display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
    padding: 34px 32px; position: relative;
}
.verdict::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(600px 220px at 100% 50%, rgba(63,185,80,.13), transparent 70%);
}
.verdict.failed::after { background: radial-gradient(600px 220px at 100% 50%, rgba(248,81,73,.14), transparent 70%); }
.verdict .state {
    font-family: var(--ff-title); font-weight: 900; text-transform: uppercase;
    font-size: clamp(28px, 4vw, 48px); line-height: 1; color: var(--success);
    text-shadow: 0 0 30px rgba(63,185,80,.4);
}
.verdict.failed .state { color: var(--danger); text-shadow: 0 0 30px rgba(248,81,73,.45); }
.verdict .mission { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.verdict .chrono { text-align: right; position: relative; z-index: 1; }
.verdict .chrono .v {
    font-family: var(--ff-mono); font-weight: 700; font-size: clamp(40px, 6vw, 68px); line-height: 1;
    color: var(--text); font-variant-numeric: tabular-nums;
}
.verdict .chrono .k { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.metaline { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; }
.metaline div { font-family: var(--ff-mono); font-size: 12px; color: var(--muted); }
.metaline b { color: var(--text); font-weight: 400; }

/* Grille modules */
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mod { padding: 16px; border-left: 3px solid var(--border-hi); display: flex; flex-direction: column; gap: 4px; transition: .18s; }
.mod:hover { background: var(--panel-hi); }
.mod .id { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.mod .nm { font-family: var(--ff-title); font-weight: 800; font-size: 14.5px; text-transform: uppercase; line-height: 1.15; }
.mod .st { font-family: var(--ff-mono); font-size: 11px; margin-top: 4px; display: flex; align-items: center; gap: 7px; }
.mod.ok      { border-left-color: var(--success); }
.mod.ok .st  { color: var(--success); }
.mod.ko      { border-left-color: var(--danger); }
.mod.ko .st  { color: var(--danger); }
.mod.off     { border-left-color: var(--border); opacity: .5; }
.mod.off .st { color: var(--muted); }

/* Timeline */
.tl { position: relative; padding-left: 30px; }
.tl::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: ''; position: absolute; left: -27px; top: 6px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--bg); border: 2px solid var(--blue);
}
.tl-item.ok::before { border-color: var(--success); background: var(--success); }
.tl-item.ko::before { border-color: var(--danger);  background: var(--danger); }
.tl-item .t { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.tl-item .d { font-size: 14.5px; margin-top: 2px; }
.tl-item .d b { font-family: var(--ff-title); font-weight: 700; text-transform: uppercase; font-size: 16px; letter-spacing: .02em; }

/* Équipage */
.crew { display: flex; flex-wrap: wrap; gap: 10px; }
.crew .p {
    display: flex; align-items: center; gap: 10px; padding: 7px 15px 7px 7px;
    border: 1px solid var(--border); border-radius: 999px; background: var(--panel);
    font-size: 14px;
}
.avatar {
    width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
    font-family: var(--ff-mono); font-weight: 700; font-size: 12px; color: #04121c;
    background: linear-gradient(140deg, var(--blue), #1479a8);
}
.avatar.o { background: linear-gradient(140deg, var(--orange-hi), var(--orange)); color: #fff; }
.avatar.lg { width: 78px; height: 78px; font-size: 27px; }

/* ==========================================================================
   Profil
   ========================================================================== */

.prof-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.prof-head h1 { font-size: clamp(30px, 4.5vw, 46px); text-transform: uppercase; }
.grade { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-top: 4px; }

.bar { height: 6px; background: var(--panel-hi); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #1479a8, var(--blue-hi)); border-radius: 999px; }

.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.badge { text-align: center; padding: 18px 14px; transition: .18s; }
.badge:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.badge .ico {
    width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%;
    display: grid; place-items: center; font-size: 20px;
    background: var(--blue-dim); border: 1px solid rgba(35,185,240,.40);
}
.badge h4 { font-size: 13.5px; text-transform: uppercase; }
.badge p { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.badge.locked { opacity: .38; }
.badge.locked .ico { background: rgba(255,255,255,.03); border-color: var(--border); filter: grayscale(1); }

/* Objectifs restants : une ligne de rappels, pas quatre cartes grisees */
.todo {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.todo-lbl {
    font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--muted);
}
.todo-item {
    display: inline-flex; align-items: baseline; gap: 8px;
    font-family: var(--ff-title); font-weight: 800; font-size: 12.5px;
    text-transform: uppercase; letter-spacing: .02em; color: var(--muted);
}
.todo-item i { font-style: normal; color: var(--border-hi); font-size: 13px; }
.todo-item b {
    font-family: var(--ff-body); font-weight: 400; font-size: 12px;
    text-transform: none; letter-spacing: 0; color: var(--border-hi);
}

/* ==========================================================================
   Bandeau CTA + footer
   ========================================================================== */

.cta-band {
    text-align: center; padding: clamp(40px, 6vw, 64px) 28px;
    border-color: var(--border-hi);
    background:
        radial-gradient(700px 260px at 50% 0%, rgba(35,185,240,.13), transparent 70%),
        linear-gradient(180deg, var(--panel), var(--bg-2));
}
.cta-band h2 { font-size: clamp(22px, 3vw, 34px); text-transform: uppercase; }
.cta-band p { color: var(--muted); margin: 14px auto 26px; max-width: 54ch; }

footer { border-top: 1px solid var(--border); padding-block: 44px 34px; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.foot-logo { display: block; width: 168px; height: auto; }
.foot-grid p { color: var(--muted); font-size: 13px; margin-top: 14px; max-width: 42ch; }
.foot-grid h5 { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 9px; }
.foot-grid ul a { font-size: 14px; color: var(--text); opacity: .8; }
.foot-grid ul a:hover { color: var(--blue); opacity: 1; }
.foot-bot {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border);
    font-family: var(--ff-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em;
}

/* ==========================================================================
   Animations d'apparition
   ========================================================================== */

/* Masqué uniquement si le JS a démarré : sans JS, la page reste entièrement lisible. */
html.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
html.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html.js .rv, .rv { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1040px) {
    .mods   { grid-template-columns: repeat(3, 1fr); }
    .badges { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
    .nav-in { height: 50px; }
    .brand .logo-full { height: 36px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        position: absolute; left: -20px; right: -20px; top: 100%;
        background: rgba(5,8,16,.97); border-bottom: 1px solid var(--border); padding: 12px 20px 18px;
    }
    .nav-links.open .nav-cta { margin: 8px 0 0; }
    .burger { display: block; }

    .kpis, .feed, .steps, .scenarios, .podium, .foot-grid { grid-template-columns: 1fr; }
    .podium .pod.p1 { order: -1; }
    .verdict { grid-template-columns: 1fr; }
    .verdict .chrono { text-align: left; }
    .mods, .badges { grid-template-columns: repeat(2, 1fr); }
    .sec-head--row { align-items: flex-start; }
}
@media (max-width: 520px) {
    .mods, .badges { grid-template-columns: 1fr; }
    .kpi .l { letter-spacing: .12em; }
}

/* Grilles utilitaires */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-side { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 880px) { .g2, .g-side { grid-template-columns: 1fr; } }

.stack-16 > * + * { margin-top: 16px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-34 { margin-top: 34px; }
.center { text-align: center; }

/* ==========================================================================
   Accueil « un seul écran »
   Tout le contenu de la page d'accueil tient dans la hauteur du viewport :
   deux colonnes, aucune section à faire défiler. En dessous de 1040 px de
   large ou 640 px de haut, la grille se déplie et la page redevient
   naturellement défilante — on ne compresse jamais au point d'illisibilité.
   ========================================================================== */

.screen {
    flex: 1 1 auto;
    display: flex; align-items: center;
    padding-block: clamp(8px, 1.3vh, 20px);
}
.screen-grid > section { padding-block: 0; }      /* neutralise le padding global des <section> */
.screen-grid {
    display: grid; grid-template-columns: 1.06fr .94fr;
    gap: clamp(20px, 3vw, 46px); align-items: center; width: 100%;
}

/* ---------- Colonne gauche ----------
   La barre ne porte qu'un logo discret (38 px) : le lockup reprend donc sa
   place ici, où il tient son rôle de signature. */
.screen-left .hero-logo {
    display: block; margin: 0 0 clamp(20px, 3vh, 32px);
    width: min(240px, 52%); height: auto;
    filter: drop-shadow(0 0 46px rgba(35, 185, 240, .22));
    animation: rise .8s cubic-bezier(.2,.7,.3,1) both;
}
.screen-left .hero-title {
    margin-top: 0;
    font-size: clamp(21px, 2.3vw, 32px);
    line-height: 1.12;
}
.screen-left .hero-lead {
    margin: clamp(14px, 2vh, 20px) 0 0; font-size: 16px; max-width: 48ch;
}
.screen-left .hero-actions { justify-content: flex-start; margin-top: clamp(20px, 2.8vh, 30px); }

/* Chiffres clés : une bande pleine largeur, juste au-dessus du pied de page */
/* Bandeau défilant : reste sur le fond sombre, ses couleurs d'état
   (vert/rouge) ne tiendraient pas sur un aplat bleu. */
.ticker-band {
    border-top: 1px solid var(--border);
    padding-block: clamp(9px, 1.4vh, 14px);
    background: rgba(5, 8, 16, .45);
}
.ticker { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

/* Voile bleu plutôt qu'aplat franc : on garde la section colorée
   d'escapetime.fr sans qu'elle écrase le reste de la page. */
.figures-band {
    padding-block: clamp(14px, 2vh, 24px);
    background: rgba(35, 185, 240, .13);
    border-top: 1px solid rgba(35, 185, 240, .28);
}
.figures-band .figures > div { border-left-color: rgba(35, 185, 240, .22); }
.figures {
    display: grid; grid-template-columns: repeat(5, 1fr);
}
.figures > div {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    text-align: center; padding-inline: 14px;
    border-left: 1px solid var(--border);
}
.figures > div:first-child { border-left: 0; }
.figures .n {
    font-family: var(--ff-mono); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px);
    color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums;
}
.figures .l {
    font-family: var(--ff-mono); font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--muted);
}

/* ---------- Colonne droite ---------- */
.screen-right { display: grid; gap: clamp(12px, 1.8vh, 18px); }
.side-card { padding: clamp(14px, 2vh, 19px) 18px; }
.side-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.side-link {
    font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
a.side-link:hover { color: var(--blue); }
.side-note {
    font-size: 11.5px; color: var(--muted); margin-top: 11px;
    padding-top: 10px; border-top: 1px solid var(--border);
}

/* Bloc « l'expérience » : les faits qui lèvent les freins à la réservation */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.facts > div {
    display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
    padding: 12px 6px; border: 1px solid var(--border); border-radius: var(--r);
    background: rgba(255,255,255,.015);
}
.facts .n {
    font-family: var(--ff-mono); font-weight: 700; font-size: clamp(17px, 1.5vw, 21px);
    color: var(--blue); line-height: 1; white-space: nowrap;
}
.facts .l {
    font-family: var(--ff-mono); font-size: 9px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted); line-height: 1.3;
}

.side-more {
    display: block; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border);
    font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted);
}
.side-more:hover { color: var(--blue); }

/* Podium en liste (page classement) */
.rank-list { list-style: none; display: grid; gap: 2px; }
.rank-list li {
    display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
    padding: 7px 8px; border-radius: var(--r); transition: .15s;
}
.rank-list li:hover { background: rgba(255,255,255,.03); }
.rank-list .pos {
    font-family: var(--ff-mono); font-weight: 700; font-size: 17px; color: var(--blue); opacity: .75;
}
.rank-list .r1 .pos { color: var(--orange-hi); opacity: 1; font-size: 20px; }
.rank-list .who { display: flex; flex-direction: column; min-width: 0; }
.rank-list .who b {
    font-family: var(--ff-title); font-weight: 800; font-size: 15px; text-transform: uppercase;
    letter-spacing: .01em; line-height: 1.2;
}
.rank-list .who i {
    font-style: normal; font-family: var(--ff-mono); font-size: 10.5px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-list .pts {
    font-family: var(--ff-mono); font-weight: 700; font-size: 16px;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rank-list .r1 .pts { color: var(--orange-hi); }

/* ---------- Actualités : ce qui bouge dans le réseau ---------- */
.news { list-style: none; display: grid; gap: 2px; }
.news li {
    display: grid; grid-template-columns: 104px 1fr; align-items: baseline; gap: 12px;
    padding: 9px 8px; border-radius: var(--r); transition: .15s;
}
.news li:hover { background: rgba(255,255,255,.03); }
.news-tag {
    font-family: var(--ff-mono); font-size: 8.5px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted);
    border: 1px solid var(--border); border-radius: 999px;
    padding: 4px 8px; text-align: center; white-space: nowrap;
}
.news-tag.is-new { color: var(--orange-hi); border-color: rgba(224,73,27,.45); background: var(--orange-dim); }
.news-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.news-body b {
    font-family: var(--ff-title); font-weight: 800; font-size: 13.5px;
    text-transform: uppercase; letter-spacing: .02em; line-height: 1.2;
}
.news-body i { font-style: normal; font-family: var(--ff-mono); font-size: 10.5px; color: var(--muted); }

/* ---------- Bandeau défilant des dernières parties ---------- */
.ticker {
    display: flex; align-items: center; gap: 16px;
    padding-bottom: clamp(10px, 1.5vh, 15px);
    margin-bottom: clamp(10px, 1.5vh, 15px);
    border-bottom: 1px solid var(--border);
}
.ticker-lbl, .ticker-link {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.ticker-link:hover { color: var(--blue); }
.ticker-mask {
    flex: 1 1 auto; overflow: hidden; min-width: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.ticker-track { display: flex; width: max-content; animation: defile 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tk {
    display: inline-flex; align-items: baseline; gap: 9px;
    padding: 0 20px; border-left: 2px solid var(--border-hi); white-space: nowrap;
}
.tk.ok { border-left-color: var(--success); }
.tk.ko { border-left-color: var(--danger); }
.tk b { font-family: var(--ff-title); font-weight: 800; font-size: 12.5px; text-transform: uppercase; }
.tk i { font-style: normal; font-family: var(--ff-mono); font-size: 10px; color: var(--muted); }
.tk em, .tk u {
    font-style: normal; text-decoration: none;
    font-family: var(--ff-mono); font-weight: 700; font-size: 12px;
}
.tk u { color: var(--blue); }
.tk s {
    text-decoration: none; font-family: var(--ff-mono); font-size: 9px;
    letter-spacing: .12em; text-transform: uppercase;
}
.tk.ok s { color: var(--success); }
.tk.ko s { color: var(--danger); }

@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Pied de page réduit à une ligne */
.foot-slim { border-top: 1px solid var(--border); margin-top: 0; padding-block: 10px; }
.foot-line {
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-family: var(--ff-mono); font-size: 10.5px; color: var(--muted); letter-spacing: .05em;
}
.foot-line a:hover { color: var(--blue); }

/* Écran trop étroit ou trop bas : on déplie et on laisse défiler */
@media (max-width: 1040px), (max-height: 650px) {
    .screen { min-height: 0; padding-block: 34px; }
    .screen-grid { grid-template-columns: 1fr; gap: 34px; }
    .screen-left { text-align: center; }
    .screen-left .hero-logo { margin-inline: auto; width: min(230px, 62vw); }
    .screen-left .hero-lead { margin-inline: auto; }
    .screen-left .hero-actions { justify-content: center; }
}
@media (max-width: 880px) {
    .news li { grid-template-columns: 1fr; gap: 6px; }
    .news-tag { justify-self: start; }
    .ticker-lbl span:not(.dot), .ticker-link { display: none; }
}
@media (max-width: 560px) {
    .facts { grid-template-columns: repeat(2, 1fr); }
    .figures { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
    .figures > div:nth-child(odd) { border-left: 0; }
    .run { grid-template-columns: 1fr auto 76px; }
    .run-mods { display: none; }
}

/* ==========================================================================
   Mon espace — le diplôme, puis le relevé de statistiques
   ========================================================================== */

.diploma {
    display: grid; grid-template-columns: auto 1fr 250px;
    gap: clamp(20px, 3vw, 40px); align-items: center;
    padding: clamp(26px, 3.4vw, 40px) clamp(24px, 3vw, 38px);
    background:
        radial-gradient(760px 300px at 18% 0%, rgba(35,185,240,.10), transparent 70%),
        linear-gradient(180deg, var(--panel), var(--bg-2));
}

/* Sceau : la bombe du logo, en médaillon */
.dip-seal {
    width: 124px; height: 124px; flex: none;
    border-radius: 50%; border: 1px solid var(--border-hi);
    background: rgba(35,185,240,.06);
    display: grid; place-items: center; gap: 2px; position: relative;
}
.dip-seal::before {
    content: ''; position: absolute; inset: 7px;
    border: 1px dashed rgba(107,122,153,.35); border-radius: 50%;
}
.dip-badge { width: 78px; height: auto; display: block; color: var(--text); }


.dip-kicker {
    font-family: var(--ff-mono); font-size: 10px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--muted);
}
.dip-grade {
    font-family: var(--ff-title); font-weight: 900; text-transform: uppercase;
    font-size: clamp(24px, 2.8vw, 36px); line-height: 1.02; margin-top: 8px;
    color: var(--text);
}
.dip-name {
    font-family: var(--ff-mono); font-size: 16px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--blue); margin-top: 8px;
}
.dip-cite {
    color: var(--muted); font-size: 13.5px; margin-top: 14px; max-width: 54ch;
    padding-top: 13px; border-top: 1px solid var(--border);
}
.dip-cite b { color: var(--text); font-weight: 600; }

.dip-next { border-left: 1px solid var(--border); padding-left: clamp(18px, 2.4vw, 28px); }
.dip-next-name {
    font-family: var(--ff-title); font-weight: 900; font-size: 21px;
    text-transform: uppercase; margin-top: 10px;
}
.dip-next-note { font-family: var(--ff-mono); font-size: 10.5px; color: var(--muted); margin-top: 8px; }
.dip-cta { margin-top: 16px; width: 100%; }

/* Échelle des grades */
.grades { list-style: none; margin-top: 18px; display: grid; gap: 5px; }
.grades li {
    font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted); opacity: .55;
    display: flex; align-items: center; gap: 9px;
}
.grades li::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    border: 1px solid currentColor; flex: none;
}
.grades li.done { opacity: .8; }
.grades li.done::before { background: var(--muted); }
.grades li.now {
    color: var(--blue); opacity: 1; font-weight: 700;
}
.grades li.now::before { background: var(--blue); box-shadow: 0 0 8px var(--blue); }

/* Relevé de statistiques : 4 par rangée */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { text-align: center; padding: 20px 12px; transition: .18s; }
.stat:hover { border-color: var(--border-hi); }
.stat .n {
    font-family: var(--ff-mono); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px);
    color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat .n .tot { color: var(--muted); font-size: .62em; }
.stat .n sup { font-size: .5em; }
.stat .l {
    font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted); margin-top: 11px;
}

@media (max-width: 1040px) {
    .diploma { grid-template-columns: auto 1fr; }
    .dip-next { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); padding: 20px 0 0; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .diploma { grid-template-columns: 1fr; text-align: center; }
    .dip-seal { margin: 0 auto; }
    .dip-cite { margin-inline: auto; }
    .grades { display: inline-grid; text-align: left; }
}

/* ==========================================================================
   Classement — « votre position »
   Le bloc qui remplace le podium : un classement ne fait revenir que s'il dit
   au joueur ou il en est et ce qui lui manque.
   ========================================================================== */

.standing {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: clamp(20px, 3vw, 40px); align-items: center;
    padding: clamp(22px, 2.8vw, 32px) clamp(24px, 3vw, 34px);
    background:
        radial-gradient(640px 260px at 8% 0%, rgba(224,73,27,.10), transparent 70%),
        linear-gradient(180deg, rgba(13,20,36,.90), rgba(7,12,24,.94));
}
.st-rank { text-align: center; padding-right: clamp(18px, 2.4vw, 30px); border-right: 1px solid var(--border); }
.st-rank .n {
    display: block; font-family: var(--ff-mono); font-weight: 700;
    font-size: clamp(42px, 5vw, 62px); line-height: 1; color: var(--orange-hi);
    text-shadow: 0 0 26px rgba(224,73,27,.35);
}
.st-rank .n sup { font-size: .42em; }
.st-rank .l {
    display: block; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted); margin-top: 10px;
}
.st-gap p { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 62ch; }
.st-gap p b { color: var(--text); font-weight: 600; }
.st-bar {
    height: 5px; background: var(--panel-hi); border-radius: 999px;
    overflow: hidden; margin-top: 14px; max-width: 420px;
}
.st-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1479a8, var(--blue-hi)); }
.st-note {
    font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .1em;
    color: var(--muted); margin-top: 8px;
}
.st-cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }

@media (max-width: 880px) {
    .standing { grid-template-columns: auto 1fr; }
    .st-cta { grid-column: 1 / -1; flex-direction: row; justify-content: center; align-items: center; }
}
@media (max-width: 560px) {
    .standing { grid-template-columns: 1fr; text-align: center; }
    .st-rank { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 16px; }
    .st-gap p, .st-bar { margin-inline: auto; }
}

/* ==========================================================================
   Défilement par écran
   Chaque « écran » occupe la hauteur du viewport et s'aligne au défilement.
   On utilise « proximity » et non « mandatory » : une section plus haute que
   l'écran (un tableau de 18 lignes) doit rester librement défilable, sinon
   son bas devient inatteignable.
   ========================================================================== */

html { scroll-snap-type: y proximity; }

.snap {
    position: relative;
    /* la barre sticky mange 50 px en haut : un écran utile vaut 100dvh moins ça */
    min-height: calc(100dvh - 50px);
    scroll-snap-align: start;
    scroll-margin-top: 50px;
    display: flex; flex-direction: column; justify-content: center;
    padding-block: clamp(24px, 4vh, 48px) clamp(64px, 9vh, 96px);
}
/* Écran dont le contenu dépasse la hauteur : on aligne en haut, jamais au
   centre — un contenu centré plus haut que l'écran a son sommet inaccessible. */
.snap.top { justify-content: flex-start; padding-block: clamp(28px, 4vh, 52px) 72px; }

.snap > section { padding-block: 0; }
.snap > section + section { padding-top: clamp(18px, 2.6vh, 30px); }

/* Repère « ça continue en dessous » */
.scroll-cue {
    position: absolute; left: 50%; bottom: clamp(18px, 3vh, 30px);
    display: inline-flex; flex-direction: column; align-items: center; gap: 7px;
    font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--orange-hi);
    text-shadow: 0 1px 10px rgba(5, 8, 16, .9);
    animation: cue 2.4s cubic-bezier(.4,0,.3,1) infinite;
    transition: color .16s;
}
.scroll-cue:hover { color: #ff8b5e; }
.scroll-cue svg {
    width: 24px; height: 13px; fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 1px 8px rgba(5, 8, 16, .9));
}
@keyframes cue {
    0%, 100% { transform: translate(-50%, 0); opacity: .9; }
    50%      { transform: translate(-50%, 8px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-snap-type: none; }
    .scroll-cue { animation: none; }
}
/* Sous 1040px de large ou 650px de haut, la mise en page se déplie déjà :
   forcer un écran par section n'aurait plus de sens. */
@media (max-width: 1040px), (max-height: 650px) {
    html { scroll-snap-type: none; }
    .snap { min-height: 0; display: block; padding-block: clamp(40px, 7vw, 72px); }
    .scroll-cue { display: none; }
}

/* ==========================================================================
   Page actualités
   ========================================================================== */

.feature { display: grid; grid-template-columns: 300px 1fr; gap: 0; padding: 0; overflow: hidden; }
.feature-visual {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    gap: 2px; padding: 26px 24px; min-height: 260px;
    border-right: 1px solid var(--border);
    background:
        radial-gradient(420px 260px at 30% 110%, rgba(224,73,27,.32), transparent 70%),
        radial-gradient(360px 300px at 80% 0%, rgba(35,185,240,.22), transparent 70%),
        repeating-linear-gradient(0deg,  rgba(107,122,153,.06) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(107,122,153,.06) 0 1px, transparent 1px 24px);
}
.feature-tag {
    position: absolute; top: 20px; left: 24px;
    font-family: var(--ff-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
    color: #fff; background: var(--orange); padding: 5px 11px; border-radius: 999px;
}
.feature-city {
    font-family: var(--ff-title); font-weight: 900; font-size: clamp(30px, 3.2vw, 42px);
    text-transform: uppercase; line-height: .95; letter-spacing: -.02em;
}
.feature-place {
    font-family: var(--ff-title); font-weight: 700; font-size: 17px;
    text-transform: uppercase; color: var(--blue); letter-spacing: .04em;
}
.feature-date {
    font-family: var(--ff-mono); font-size: 11px; letter-spacing: .16em;
    color: var(--muted); margin-top: 10px;
}

.feature-body { padding: clamp(22px, 2.6vw, 32px); }
.feature-body h2 { font-size: clamp(21px, 2.3vw, 31px); text-transform: uppercase; margin-top: 10px; }
.feature-body p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 64ch; }
.news-meta { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.news-meta b { color: var(--blue); font-weight: 400; }

.feature-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.feature-facts li { display: flex; flex-direction: column; gap: 3px; }
.feature-facts b { font-family: var(--ff-mono); font-weight: 700; font-size: 19px; color: var(--blue); }
.feature-facts span { font-family: var(--ff-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Le fil */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.post { padding: 20px; display: flex; flex-direction: column; transition: .18s; }
.post:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.post-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.post-date { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--muted); }
.post h3 { font-size: 16.5px; text-transform: uppercase; line-height: 1.22; }
.post p { color: var(--muted); font-size: 13.5px; margin-top: 10px; flex: 1 1 auto; }
.post-more {
    font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--blue); margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--border);
}
.news-tag.is-record { color: var(--orange-hi); border-color: rgba(224,73,27,.45); background: var(--orange-dim); }

@media (max-width: 1040px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .feature { grid-template-columns: 1fr; }
    .feature-visual { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--border); }
    .news-grid { grid-template-columns: 1fr; }
}
