﻿/* =====================================================================
   Site — design system
   Thème « Veillée » (choisi le 02/10/2026) : bleu nuit et un accent unique,
   le bleu électrique tiré du logo (22/10/2026, comme le launcher), l'ambre
   du logo en appoint. Aucune dépendance à un framework : tout est
   écrit ici, en jetons. Le décor de nuit et l'accueil sont en fin de fichier.

   Les noms de jetons hérités (--gold-*, --ink-*, --cream, --line…) sont
   CONSERVÉS : simulator.css et les dix feuilles scopées de
   Components/Simulateur/ en consomment près de deux cents. Seule leur
   VALEUR change. Les noms sémantiques (--accent, --surface, --border…)
   sont des alias posés à côté, à utiliser dans tout code neuf.
   ===================================================================== */

:root {
    color-scheme: dark;

    /* ---- surfaces : cinq paliers de bleu nuit ---- */
    --ink-900: #020A22;   /* fond de page                                */
    --ink-850: #061230;   /* bande alternée, header vitré, fond de champ */
    --ink-800: #0A1A40;   /* carte, panneau                              */
    --ink-700: #0F2352;   /* carte survolée, popover, modale             */
    --ink-600: #152C64;   /* ligne sélectionnée, onglet actif            */

    /* ---- filets décoratifs : du blanc transparent, jamais un gris opaque ----
       Un gris opaque se décale dès qu'il est posé sur une autre surface ;
       l'alpha suit le fond qu'il traverse. */
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);

    /* ---- accent unique ----
       Les paliers gardent leurs anciens noms. 500 est l'accent de marque :
       il REMPLIT et BORDE, il ne colore jamais du texte sous 18px (4,3:1).
       Pour du texte accentué, c'est 300 (8,3:1). */
    --gold-300: #6FD8FF;
    --gold-400: #45A9FF;
    --gold-500: #0182F9;
    --gold-600: #003FDE;

    /* ---- succès : reste vert, c'est une couleur porteuse de sens ---- */
    --green-300: #6EE7A0;
    --green-400: #34D399;
    --green-500: #10A870;

    /* ---- texte : la hiérarchie se fait ICI, par la couleur, pas par la graisse ---- */
    --cream: #F7F3E3;
    --text: #CBD3EA;
    --muted: #8E9CC4;

    --grad-gold: linear-gradient(180deg, #6FD8FF 0%, #0182F9 100%);
    --grad-green: linear-gradient(135deg, #6EE7A0 0%, #10A870 100%);
    --glow-gold: 0 0 40px rgba(1, 130, 249, .32);

    /*
        Le rouge de l'interdit. Promu en jeton parce que trois composants le redeclaraient chacun
        dans leur coin, chacun avec une teinte differente : un objet non equipable n'avait donc pas
        la meme couleur selon l'ecran qui le montrait.
    */
    --bad: #F26D6D;
    --bad-line: rgba(242, 109, 109, .45);
    --bad-fill: rgba(242, 109, 109, .12);
    --glow-bad: 0 0 0 2px rgba(242, 109, 109, .5), 0 0 18px rgba(242, 109, 109, .25);

    /* ---- rayons : resserrés. Un outil, pas une page d'atterrissage. ---- */
    --r-xs: 4px;
    --r-sm: 6px;
    --r: 10px;
    --r-lg: 16px;
    --r-full: 999px;

    /* ---- élévation : un anneau clair + du noir dense.
       Sur fond sombre, une ombre portée seule ne se voit pas ; c'est le filet
       lumineux du dessus qui fait décoller la surface. ---- */
    --shadow-1: 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-2: 0 0 0 1px rgba(255, 255, 255, .1),
                0 12px 32px -12px rgba(0, 0, 0, .75),
                0 16px 64px rgba(0, 0, 0, .45);

    --maxw: 1200px;
    --header-h: 64px;

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

    /* ================= alias sémantiques =================
       Même chose, dit avec les mots du rôle. À préférer dans tout code neuf. */
    --bg: var(--ink-900);
    --bg-subtle: var(--ink-850);
    --surface: var(--ink-800);
    --surface-hover: var(--ink-700);
    --surface-active: var(--ink-600);

    --border: var(--line);
    --border-hover: var(--line-strong);
    /* Le SEUL filet porteur de sens : quand un contour est la seule preuve
       qu'un composant existe (champ vide, case décochée, bouton fantôme). */
    --border-control: #3D5A9E;

    --accent: var(--gold-500);
    --accent-300: var(--gold-300);
    --accent-400: var(--gold-400);
    --accent-600: var(--gold-600);
    --accent-hover: #1E95FF;
    --accent-fg: #FFFFFF;
    --accent-soft: rgba(1, 130, 249, .14);
    --accent-line: rgba(1, 130, 249, .38);
    --grad-accent: var(--grad-gold);
    --glow-accent: var(--glow-gold);
    /* Volontairement plus clair que l'accent, et nulle part ailleurs : le
       lecteur comprend immédiatement que c'est le clavier qui parle. */
    --focus: #6FD8FF;

    --success: var(--green-400);
    --success-text: var(--green-300);
    --danger: var(--bad);

    --text-strong: var(--cream);
    --text-muted: var(--muted);
    --text-faint: #55638F;

    --scrollbar-thumb: #1E3570;
    --hairline-top: inset 0 1px 0 rgba(255, 255, 255, .06);

    --dur-instant: 90ms;
    --dur-fast: 140ms;
    --dur-base: 200ms;
    --dur-slow: 280ms;
    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv01", "calt", "kern";
    overflow-x: hidden;
}

/* Pas de halo global : le seul de tout le site est dans le hero de l'accueil.
   Un fond teinté partout, c'est ce qui empêche une page sombre de paraître nette. */

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--cream);
    /* 600, pas 700 : le saut 400 → 700 est le premier marqueur d'amateurisme. */
    font-weight: 600;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 1.45rem + 2.4vw, 3rem); line-height: 1.12; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 1.28rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -.022em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; }
h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }

/* The router auto-focuses the page <h1> on every navigation (<FocusOnNavigate Selector="h1"/>)
   for screen-reader accessibility. Browsers then draw their focus ring around the title — it
   looked like a stray white box that appeared on load and vanished on click. Headings are only
   programmatically focusable (tabindex -1, never reachable by Tab), so hiding this ring is safe
   and does not affect keyboard focus rings on real controls. */
h1:focus, h2:focus, h3:focus, h4:focus { outline: none; }

::selection { background: rgba(1, 130, 249, .35); color: #fff; }

/* Un seul motif de focus pour tout le site. L'écart de 2px laisse voir le fond
   entre l'élément et l'anneau : c'est ce qui garantit mécaniquement le contraste. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: inherit;
}
/* Débordement masqué, cellule de tableau, ligne dense : l'anneau rentre à l'intérieur. */
.dense :focus-visible, td :focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
:focus:not(:focus-visible) { outline: none; }
@media (forced-colors: active) {
    :focus-visible { outline-color: Highlight; }
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------- layout */

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 24px;
}

/* Colonne de lecture : formulaires courts et pages de texte. Ici et pas dans un <style> de page,
   sinon la regle ne suit pas le composant qui la declare. */
.container--narrow { max-width: 720px; }

/* Plus serré encore : un formulaire de deux champs flotte sur 720px. */
.container--form { max-width: 440px; }

/*
    Pour les ecrans de travail — le simulateur — plutot que pour du texte. Le gabarit de 1200 px
    laissait deux marges vides aussi larges que la colonne de droite ; le plafond reste pose pour
    qu'une ligne ne devienne pas illisible sur un tres grand ecran.
*/
.container--large { max-width: min(1680px, 96vw); }

.section { padding: clamp(56px, 9vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 68px) 0; }
/* Deux sections qui se touchent sans respiration entre elles. */
.section--flush { padding-bottom: 0; }
.section--alt { background: var(--bg-subtle); border-block: 1px solid var(--line); }

/* Corps centré par défaut : harmonise toutes les pages. */
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }

/* En-tête de section avec une action à droite (« Toutes les actualités → »). */
.section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
    text-align: left;
    margin-inline: 0;
}
.section-head--row > :first-child { max-width: 640px; }
.section-head p:last-child { margin-bottom: 0; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin: 0 0 12px;
}

.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.5; color: var(--text); }
.muted { color: var(--muted); }
.sm { font-size: .875rem; }
.xs { font-size: .8125rem; }
.mono { font-family: var(--font-mono); }
/* Obligatoire dès qu'une colonne de nombres se lit verticalement. */
.num, .tnum { font-variant-numeric: tabular-nums; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--r-sm);
    font: 500 .9375rem/1 var(--font-body);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: background var(--dur-instant) ease,
                border-color var(--dur-instant) ease,
                color var(--dur-instant) ease,
                transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn--lg { height: 46px; padding: 0 22px; font-size: 1rem; }
.btn--tiny { height: 30px; padding: 0 11px; font-size: .8125rem; }
.btn--block { width: 100%; }

/* Un seul bouton plein par bande. Deux boutons de même poids ne désignent aucune priorité. */
.btn--primary { background: var(--accent); color: var(--accent-fg); }
.btn--primary:hover { background: var(--accent-hover); }

/* Le filet est le seul indice d'existence : il lui faut un vrai contraste. */
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--border-control); }
.btn--ghost:hover { background: var(--surface-hover); border-color: var(--cream); }

/* Actions de service (« Retirer », « Vider ») : présentes sans peser. */
.btn--quiet { background: transparent; color: var(--muted); }
.btn--quiet:hover { background: var(--surface-hover); color: var(--cream); }

.btn--danger { background: transparent; color: var(--bad); border-color: var(--bad-line); }
.btn--danger:hover { background: var(--bad-fill); }

.btn--discord { background: #5865F2; color: #fff; }
.btn--discord:hover { background: #4752C4; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* Lien-action inline, pour les « Tout voir → » d'en-tête de section. */
.link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-300);
    font-size: .9375rem;
    font-weight: 500;
    transition: color var(--dur-instant) ease;
}
.link:hover { color: var(--cream); }

/* ---------------------------------------------------------------- chips */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 9px;
    border-radius: var(--r-sm);
    font: 500 .75rem/1 var(--font-body);
    border: 1px solid var(--line);
    background: var(--bg-subtle);
    color: var(--muted);
}
.chip b { color: var(--cream); font-weight: 600; }
/* Pas de halo : un rayonnement sur un point de six pixels est du bruit. */
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.chip--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--gold-300); }
.chip--success { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .4); color: var(--green-300); }
.chip--danger { background: var(--bad-fill); border-color: var(--bad-line); color: var(--bad); }

/* Pastille « en ligne » : le point respire, le texte non. */
.chip--live .dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--header-h);
    display: flex;
    align-items: center;
    /* Verre permanent, à toutes les positions de défilement : aucun écouteur de
       scroll, donc aucun contrat JS de plus à maintenir. */
    background: rgba(11, 11, 12, .72);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 8px; }

/* -- marque --
   Le logo illustré (or, biseaux, halo) ne descend pas à 40px : son contour
   extérieur mange la forme. La barre porte donc le nom en toutes lettres ;
   le logo dessiné reste en vedette sur l'accueil, où il a la place de vivre. */
.brand {
    display: flex;
    align-items: baseline;
    gap: .34em;
    margin-right: 24px;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    line-height: 1;
    letter-spacing: -.01em;
    white-space: nowrap;
    color: var(--cream);
}
.brand__strong { font-weight: 700; }
.brand__light { font-weight: 400; color: var(--muted); transition: color var(--dur-instant) ease; }
.brand:hover .brand__light { color: var(--text); }

.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    background: none;
    border: 0;
    color: var(--text);
    font: 500 .9375rem/1 var(--font-body);
    cursor: pointer;
    transition: color var(--dur-instant) ease, background var(--dur-instant) ease;
}
.nav-link:hover { color: var(--cream); background: rgba(255, 255, 255, .05); }

/* L'onglet courant. La règle existait déjà mais n'était jamais atteinte : la
   barre utilisait des <a href>, pas des <NavLink>, donc « active » n'arrivait
   jamais. Trait sous la ligne de base du header, largeur du libellé. */
.nav-link.active, .nav-link.is-active { color: var(--cream); }
.nav-link.active::after, .nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -15px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--accent);
}

.nav-link__caret {
    width: 12px; height: 12px;
    flex: none;
    opacity: .7;
    transition: transform var(--dur-fast) var(--ease-out);
}
.nav-item--open .nav-link__caret { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    transition: color var(--dur-instant) ease, background var(--dur-instant) ease;
}
.icon-btn:hover { color: var(--cream); background: var(--surface-hover); }
.icon-btn svg { width: 18px; height: 18px; }

/* Le violet de marque ne se dispute pas avec le bleu Discord : l'icône reste
   neutre et ne se colore qu'au survol. */
.icon-discord:hover { color: #fff; background: rgba(88, 101, 242, .22); }

.account-mini { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.account-mini .who { color: var(--cream); font-weight: 500; }

/* ---------------------------------------------------------------- menus déroulants */

.nav-item, .account-menu { position: relative; }

.account-menu .account-mini {
    background: transparent;
    border: 1px solid var(--border-control);
    border-radius: var(--r-sm);
    height: 34px;
    padding: 0 10px 0 12px;
    cursor: pointer;
    color: var(--cream);
    font-family: var(--font-body);
    transition: border-color var(--dur-instant) ease, background var(--dur-instant) ease;
}
.account-menu .account-mini:hover { border-color: var(--cream); background: var(--surface-hover); }
.account-menu .account-mini .caret { width: 13px; height: 13px; opacity: .7; transition: transform var(--dur-fast) var(--ease-out); }
.account-menu.open .account-mini .caret { transform: rotate(180deg); }

/* Le panneau reste dans le DOM et c'est la classe d'ouverture qui l'affiche :
   en mobile, « Outils » se rend à plat et ne doit donc jamais dépendre d'un
   rendu conditionnel côté C#. */
.nav-item .menu-panel, .account-menu .menu-panel { display: none; }
.nav-item--open .menu-panel, .account-menu.open .menu-panel { display: block; }

.menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 70;
    min-width: 232px;
    padding: 6px;
    background: var(--surface-hover);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
    transform-origin: top right;
    animation: menu-in var(--dur-base) var(--ease-out);
}
@keyframes menu-in {
    from { opacity: 0; transform: scale(.97); }
    to { opacity: 1; transform: none; }
}

/* Le déroulant « Outils » : plus large, une ligne par outil, chacune avec sa
   promesse. C'est le sous-titre qui fait le travail, pas le nom. */
.menu-panel--tools { left: 0; right: auto; width: 380px; transform-origin: top left; }

.account-dropdown a, .menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: .9375rem;
    font-weight: 500;
    transition: background var(--dur-instant) ease, color var(--dur-instant) ease;
}
.account-dropdown a:hover, .menu-item:hover { background: var(--surface-active); color: var(--cream); }
.account-dropdown a svg { width: 18px; height: 18px; opacity: .85; flex: none; }
.account-dropdown__sep, .menu-sep { height: 1px; background: var(--line); margin: 6px; }
.account-dropdown a.danger { color: var(--bad); }
.account-dropdown a.danger:hover { background: var(--bad-fill); }

/* ---------------------------------------------------------------- choix de la langue

   Le drapeau reprend la forme du menu de compte : même hauteur, même bordure, même
   chevron. C'est un réglage de la page au même titre, il n'a aucune raison de se
   distinguer — et la barre porte déjà un seul bouton plein, « Jouer ». */

.lang-menu { position: relative; }

.lang-menu .lang-mini {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 8px 0 9px;
    background: transparent;
    border: 1px solid var(--border-control);
    border-radius: var(--r-sm);
    cursor: pointer;
    color: var(--cream);
    transition: border-color var(--dur-instant) ease, background var(--dur-instant) ease;
}
.lang-menu .lang-mini:hover { border-color: var(--cream); background: var(--surface-hover); }
.lang-menu .lang-mini .caret { width: 13px; height: 13px; opacity: .7; transition: transform var(--dur-fast) var(--ease-out); }
.lang-menu.open .lang-mini .caret { transform: rotate(180deg); }

.lang-menu .menu-panel { display: none; }
.lang-menu.open .menu-panel { display: block; }

.lang-dropdown { min-width: 196px; }
.lang-dropdown .menu-label {
    display: block;
    padding: 6px 12px 8px;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
}
.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: .9375rem;
    font-weight: 500;
    transition: background var(--dur-instant) ease, color var(--dur-instant) ease;
}
.lang-dropdown a:hover { background: var(--surface-active); color: var(--cream); }
.lang-dropdown a.is-active { color: var(--cream); }
/* Le NOM de la langue prend la place libre — jamais le drapeau, qui est lui aussi un <span> :
   étiré par ce flex: 1, il gardait ses 14 px de haut et s'écrasait (dessin sans proportions). */
.lang-dropdown a > span:not(.drapeau) { flex: 1; }
.lang-dropdown .lang-check { width: 15px; height: 15px; flex: none; color: var(--accent-300); }

/* Le drapeau lui-même : un contour clair, sans quoi le blanc du français et de
   l'italien se dissout dans le fond sombre. */
.drapeau {
    display: inline-block;
    flex: none;
    border: 1px solid var(--border-control);
    border-radius: 2px;
    overflow: hidden;
    line-height: 0;
}
.drapeau svg { display: block; width: 100%; height: 100%; }

/* Une entrée d'outil : icône encadrée, titre, promesse. */
.menu-item--tool { align-items: flex-start; gap: 12px; padding: 11px 12px; }
.menu-item__icon {
    flex: none;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: var(--accent-soft);
    color: var(--gold-300);
}
.menu-item__icon svg { width: 20px; height: 20px; }
.menu-item__body { min-width: 0; }
.menu-item__title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cream);
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1.3;
}
.menu-item__sub {
    margin: 3px 0 0;
    font-size: .8125rem;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 400;
}
/* Déconnecté, l'outil reste annoncé : c'est un argument de vente. On dit
   seulement qu'il faut un compte. */
.tool-lock {
    flex: none;
    font-size: .6875rem;
    font-weight: 500;
    color: var(--text-faint);
    letter-spacing: .02em;
}

.menu-backdrop { position: fixed; inset: 0; z-index: 55; background: transparent; }

.burger {
    display: none;
    width: 34px; height: 34px;
    align-items: center; justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--cream); border-radius: 2px; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.nav-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Micro-label des groupes du menu mobile. */
.nav-group-label { display: none; }

/* ---------------------------------------------------------------- cards grid */

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
    position: relative;
    padding: 24px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    /* Une lumière rasante sur l'arête haute : c'est elle qui fait décoller la
       surface du fond, pas une ombre portée (invisible sur du noir). */
    box-shadow: var(--hairline-top);
    transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
/* Le survol par défaut ne DÉPLACE rien : la règle globale d'avant faisait
   sauter les <details> de la Moisson et les lignes de l'Atelier, qui portent
   aussi .card sans être cliquables. */
.card:hover { background: var(--surface-hover); border-color: var(--line-strong); }

/* Le mouvement est réservé aux cartes réellement cliquables et isolées. */
.card--link { display: block; color: inherit; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), var(--hairline-top); }
@media (hover: none) {
    .card--link:hover { transform: none; }
}

/* Sous-zone d'une carte : un .card ne contient jamais un autre .card. */
.panel {
    padding: 16px;
    border-radius: var(--r);
    background: var(--bg-subtle);
    border: 1px solid var(--line);
}

.card__icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm);
    background: var(--accent-soft);
    color: var(--gold-300);
    margin-bottom: 16px;
}
.card__icon svg { width: 20px; height: 20px; }
.card h3 { color: var(--cream); margin-bottom: 8px; }
.card p { color: var(--text); margin: 0; font-size: .9375rem; }
.card p + p { margin-top: .75rem; }

/* ---------------------------------------------------------------- forms */

.auth-wrap { max-width: 440px; margin: clamp(40px, 8vw, 88px) auto; padding-inline: 24px; }
.auth-card {
    padding: 32px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1), var(--hairline-top);
}
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: .9375rem; }
/* Titre suivi directement du formulaire (connexion, création de compte) : même écart qu'avec .sub. */
.auth-card h1 + form { margin-top: 26px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }

/* Le contour d'un champ vide est la seule preuve qu'il existe : il ne peut pas
   être décoratif. D'où --border-control et non --line. */
.field input,
.field select,
.field textarea,
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
select, textarea {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-control);
    color: var(--cream);
    font: 400 .9375rem var(--font-body);
    transition: border-color var(--dur-instant) ease, background var(--dur-instant) ease;
}
:is(.field input, .field select, .field textarea, input, select, textarea):hover { border-color: #8A8A93; }
:is(.field input, .field select, .field textarea, input, select, textarea):focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}
::placeholder { color: var(--text-faint); }
input:disabled, select:disabled, textarea:disabled { color: var(--text-faint); background: var(--bg); cursor: not-allowed; }
input[aria-invalid="true"], .invalid, input.invalid, select.invalid { border-color: var(--bad); }
textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.55; }
input[type="number"] { text-align: center; font-variant-numeric: tabular-nums; }

.field .hint { font-size: .75rem; color: var(--muted); margin-top: 5px; }

/* Critères de mot de passe : la couleur change, rien ne bouge. */
.criteria { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.criteria li {
    display: flex; align-items: center; gap: 7px;
    font-size: .75rem; color: var(--muted);
    transition: color var(--dur-instant) ease;
}
.criteria li::before { content: "·"; width: 12px; text-align: center; font-weight: 700; }
.criteria li.ok { color: var(--green-300); }
.criteria li.ok::before { content: "✓"; font-size: .6875rem; }

/* -------------------------------------------------- dropdown (SiteSelect)
   Le <select> natif fait peindre sa liste par l'OS : fond blanc, hors charte,
   et non stylable sur Safari. Le contrôle est donc reconstruit en markup. */

.dd { position: relative; }

.dd__control {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-control);
    color: var(--cream);
    font: 400 .9375rem var(--font-body);
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--dur-instant) ease, background var(--dur-instant) ease;
}
.dd__control:hover { border-color: #8A8A93; }
.dd--open .dd__control { border-color: var(--accent); background: var(--surface); }
.dd__control:disabled { opacity: .45; cursor: not-allowed; }

.dd__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dd__value--empty { color: var(--text-faint); }

.dd__chevron {
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 2px;
    border-right: 1.6px solid var(--muted);
    border-bottom: 1.6px solid var(--muted);
    transform: translateY(-3px) rotate(45deg);
    transition: transform var(--dur-fast) var(--ease-out);
}
.dd--open .dd__chevron { transform: translateY(2px) rotate(225deg); }

/* z-index seulement pour passer au-dessus des champs suivants : la carte porte
   .reveal, dont la matrice identité résiduelle en fait un contexte d'empilement,
   donc le panneau reste de toute façon confiné sous le header. */
.dd__panel {
    position: absolute;
    z-index: 5;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: var(--r);
    background: var(--surface-hover);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-2);
    animation: dd-in var(--dur-fast) var(--ease-out);
}
@keyframes dd-in {
    from { opacity: 0; transform: scale(.98); }
    to { opacity: 1; transform: none; }
}

.dd__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: var(--r-xs);
    color: var(--text);
    font-size: .9375rem;
    line-height: 1.45;
    cursor: pointer;
}
.dd__option--active { background: var(--surface-active); color: var(--cream); }
.dd__option--selected { color: var(--gold-300); font-weight: 500; }

.dd__option-label { flex: 1; min-width: 0; }

/* Coche : présente uniquement sur l'option retenue. */
.dd__tick {
    flex: none;
    width: 11px;
    height: 6px;
    border-left: 1.7px solid var(--gold-300);
    border-bottom: 1.7px solid var(--gold-300);
    transform: rotate(-45deg) translate(1px, -2px);
    opacity: 0;
}
.dd__option--selected .dd__tick { opacity: 1; }

/* Barre de défilement discrète, le panneau est court. */
.dd__panel::-webkit-scrollbar { width: 10px; }
.dd__panel::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: var(--r-full);
}
.dd__panel::-webkit-scrollbar-thumb:hover { background: #45454E; background-clip: content-box; }


/* La couleur ne porte jamais seule l'information : chaque message a son signe. */
.form-msg {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    font-size: .875rem;
    border: 1px solid;
    margin-bottom: 16px;
}
.form-msg--error, .form-msg--err { background: var(--bad-fill); border-color: var(--bad-line); color: var(--bad); }
.form-msg--ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .38); color: var(--green-300); }
.form-msg--info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--gold-300); }
.form-msg::before { flex: none; font-weight: 700; line-height: 1.4; }
.form-msg--error::before, .form-msg--err::before { content: "!"; }
.form-msg--ok::before { content: "✓"; }
.form-msg--info::before { content: "i"; }

.auth-alt { text-align: center; margin-top: 18px; font-size: .875rem; color: var(--muted); }
.auth-alt a { color: var(--gold-300); font-weight: 500; }
.auth-alt a:hover { color: var(--cream); }

/* Une phrase en deux groupes entiers : chacun garde sa ligne, la phrase ne se coupe jamais au milieu
   d'un groupe. Sur un petit écran, la police se resserre plutôt que de couper. */
.auth-card .sub--lignes > span { display: block; white-space: nowrap; }
.form-msg--groupes > span > span { white-space: nowrap; }
.auth-astuce { text-align: center; color: var(--muted); font-size: .8125rem; margin: -6px 0 14px; white-space: nowrap; }
@media (max-width: 480px) {
    .auth-card .sub--lignes { font-size: .8125rem; }
    .auth-astuce { font-size: .75rem; }
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 18px;
    color: var(--muted);
    font-size: .8125rem;
}
.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.validation-message, .validation-errors { color: var(--bad); font-size: .8125rem; display: block; margin-top: 5px; }

/* ---------------------------------------------------------------- écran verrouillé */

.locked { text-align: center; max-width: 520px; margin-inline: auto; }
.locked__icon {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
}
.locked__icon svg { width: 28px; height: 28px; }

/* Le pendant vert de .locked__icon : même disque de 64 px, même famille. Utilisé par les trois
   écrans de réussite du parcours de compte (inscription, lien envoyé, mot de passe changé) —
   d'où sa place ici plutôt que dans le <style> de l'une d'elles. */
.auth-ok__icon {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(52, 211, 153, .1);
    border: 1px solid rgba(52, 211, 153, .38);
    color: var(--green-300);
}
.auth-ok__icon svg { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- listes denses */

/* Une ligne de liste est survolée des centaines de fois par jour : seul le fond
   change, en 90 ms. Aucun déplacement, aucune ombre, aucune bordure colorée. */
.list-row {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    transition: background var(--dur-instant) ease;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--surface-hover); }
.list-row--selected { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }

.table-wrap { overflow-x: auto; }
th {
    font: 600 .6875rem/1 var(--font-body);
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    text-align: left;
    padding: 0 12px 10px;
}
td { padding: 10px 12px; border-top: 1px solid var(--line); }

/* Séparateur de sections dans une page longue. */
.rule { height: 1px; background: var(--line); border: 0; margin: 32px 0; }

/* ---------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(8px); animation: reveal var(--dur-slow) var(--ease-out) forwards; }
.reveal-1 { animation-delay: .04s; }
.reveal-2 { animation-delay: .1s; }
.reveal-3 { animation-delay: .16s; }
.reveal-4 { animation-delay: .22s; }
@keyframes reveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    /* On garde l'opacité, on retire le déplacement : tout supprimer laisserait
       des blocs invisibles si l'animation ne se déclenche pas. */
    .reveal { transform: none; animation-duration: 1ms; }
    *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
    html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- blazor */

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1000;
    padding: 12px 46px 12px 20px;
    background: var(--surface-hover);
    border-top: 1px solid var(--bad-line);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .5);
    color: var(--cream);
    font-size: .875rem;
}
#blazor-error-ui .reload { color: var(--gold-300); text-decoration: underline; cursor: pointer; }
#blazor-error-ui .dismiss { position: absolute; right: 16px; top: 10px; cursor: pointer; color: var(--muted); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
    .breeds { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 900px) {
    .grid--3, .steps { grid-template-columns: 1fr 1fr; }
    .breeds { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
    .burger { display: flex; }

    /*
        Le tiroir mobile n'utilise PAS position: fixed.
        .site-header porte un backdrop-filter, ce qui en fait le bloc conteneur de
        tout descendant « fixed » : un panneau calé à bottom:0 s'alignait donc sur
        le bas du HEADER, soit 64 px de haut — il partait à y = -122, invisible.
        (Même piège que celui documenté sur .dd__panel, avec une matrice de
        transformation au lieu d'un filtre.)
        Le header devient donc lui-même le tiroir : il passe en hauteur libre, son
        conteneur revient à la ligne, et la nav puis les actions s'empilent dans le
        flux. Aucun bloc conteneur à deviner.
    */
    .site-header { height: auto; min-height: var(--header-h); align-items: stretch; }
    .site-header .container {
        flex-wrap: wrap;
        align-items: center;
        min-height: var(--header-h);
        max-height: 100vh;
        overflow-y: auto;
        padding-bottom: 0;
    }
    .nav-open .site-header .container { padding-bottom: 24px; }

    .brand { margin-right: auto; }
    .burger { order: 2; }
    .nav { order: 3; }
    .header-actions { order: 4; }

    .nav, .header-actions {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .nav-open .nav, .nav-open .header-actions { display: flex; animation: tiroir var(--dur-base) var(--ease-out); }
    .nav { padding-top: 8px; margin-right: 0; }
    .header-actions { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }

    @keyframes tiroir {
        from { opacity: 0; transform: translateY(-6px); }
    }

    .nav-link { height: auto; padding: 12px 8px; justify-content: flex-start; }
    .nav-link.active::after, .nav-link.is-active::after { display: none; }
    .nav-link.active, .nav-link.is-active { color: var(--gold-300); }

    /* « Outils » ne se replie pas en mobile : les trois entrées sont à plat,
       sous un micro-label. Un déroulant dans un tiroir est un piège. */
    .nav-item--tools .nav-link { display: none; }
    .nav-item { width: 100%; }
    .nav-group-label {
        display: block;
        margin: 14px 8px 6px;
        font-size: .6875rem;
        font-weight: 600;
        letter-spacing: .09em;
        text-transform: uppercase;
        color: var(--muted);
    }
    .nav-item .menu-panel--tools { display: block; }
    .menu-panel--tools {
        position: static;
        width: auto;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        animation: none;
    }
    .menu-item__sub { font-size: .8125rem; }

    .header-actions .btn { width: 100%; }
    .icon-btn { width: 100%; justify-content: flex-start; gap: 11px; padding: 0 12px; height: 42px; color: var(--text); }
    .icon-btn__label { display: inline; }

    .account-menu { width: 100%; }
    .account-menu .account-mini { width: 100%; justify-content: space-between; height: 42px; }
    .menu-panel, .account-dropdown {
        position: static;
        min-width: 0;
        padding: 4px 0 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        animation: none;
    }
    .menu-backdrop { display: none; }
}
@media (min-width: 821px) {
    .icon-btn__label { display: none; }
}
@media (max-width: 620px) {
    .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
    .breeds { grid-template-columns: repeat(3, 1fr); }
    .footer-cols { gap: 32px; }
    .statband__cell { flex-basis: 50%; border-left: 0; border-top: 1px solid var(--line); }
    .statband__cell:nth-child(-n+2) { border-top: 0; }
    .statband__cell:nth-child(even) { border-left: 1px solid var(--line); }
}

/* ------------------------------------------------- fenetre de reconnexion (circuit Blazor perdu)

   Feuille globale et non CSS « scoped » du composant : un seul fichier .razor.css suffisait a faire
   generer le bundle <assembly>.styles.css, dont le nom d'assemblage se retrouvait alors en clair
   dans le <head> de chaque page. Les selecteurs ci-dessous ne visent que des elements produits par
   le framework (#components-reconnect-modal, .components-*), donc les rendre globaux n'elargit
   rien en pratique. */

.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    background: var(--surface-hover);
    color: var(--text);
    font-family: var(--font-body);
    font-size: .9375rem;
    width: min(380px, calc(100vw - 32px));
    margin: 20vh auto;
    padding: 28px 32px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
    opacity: 0;
    transition: display .5s allow-discrete, overlay .5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
}

#components-reconnect-modal[open] {
    animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal::backdrop {
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(6px);
    animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp {
    0% { transform: translateY(30px) scale(0.95); }
    100% { transform: translateY(0); }
}

@keyframes components-reconnect-modal-fadeInOpacity {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes components-reconnect-modal-fadeOutOpacity {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p { margin: 0; text-align: center; line-height: 1.55; }
#components-reconnect-modal strong, #components-reconnect-modal b { color: var(--cream); }

/* Style du bouton recopié en dur : ces éléments sont produits par le framework,
   on ne peut pas leur ajouter la classe .btn. */
#components-reconnect-modal button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: var(--accent);
    color: var(--accent-fg);
    font: 500 .9375rem/1 var(--font-body);
    cursor: pointer;
    transition: background var(--dur-instant) ease;
}

#components-reconnect-modal button:hover { background: var(--accent-hover); }
#components-reconnect-modal button:active { transform: scale(.97); }

.components-rejoining-animation {
    position: relative;
    width: 36px;
    height: 36px;
}

/* Deux anneaux décalés d'une demi-période : l'imbrication des deux <div> est
   produite par le framework, ne pas y toucher. */
.components-rejoining-animation div {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: components-rejoining-animation 900ms linear infinite;
}

.components-rejoining-animation div:nth-child(2) { border-top-color: var(--gold-300); animation-delay: -450ms; opacity: .5; }

@keyframes components-rejoining-animation {
    to { transform: rotate(360deg); }
}

/* =====================================================================
   VEILLÉE — le décor commun et l'accueil (02/10/2026)

   Le site ne sert plus qu'à télécharger le launcher. Chaque page se pose
   sur le même décor que la porte du launcher (22/10/2026) : le Bastion des
   froides légions de nuit (une carte du jeu, rendue puis passée au bleu),
   une lueur bleue et des éclats de givre ; les couleurs sont celles du logo.
   Titres en Cinzel, texte en Alegreya Sans ; les outils (Grimoire…)
   gardent leurs polices, seules leurs couleurs suivent les jetons.
   ===================================================================== */

:root {
    --font-titre: "Cinzel", Georgia, serif;
    --font-veillee: "Alegreya Sans", var(--font-body);
    --feu-haut: #6FD8FF;
    --feu-bas: #0182F9;
    --feu-ombre: #0A3FA8;
    --feu-texte: #FFFFFF;
    /* Les boutons pleins, comme ceux du launcher : le blanc s'y lit (3:1 au moins en gras, haut compris). */
    --feu-bouton-haut: #2394FF;
    --feu-bouton-bas: #0A63E0;
    /* L'ambre du logo : le nom du site et les liens d'action, comme « Créer un compte » au launcher. */
    --or: #F0BE6E;
}

/* ---- le décor : fixe, pour qu'une longue page (Grimoire) défile devant lui ----
   Sur ordinateur, l'image déborde à droite (135 % de la largeur) : la tour du Bastion se pose à côté
   du logo au lieu de passer derrière lui. Sur téléphone, elle reprend sa place au milieu. */
.scene { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; isolation: isolate; overflow-x: clip; }
.scene::before,
.scene::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
.scene::before { z-index: -2; background: var(--bg) url(/media/vitrine/fond-veillee.jpg) 0% 15% / max(135vw, 142vh) auto no-repeat; }
@media (max-width: 640px) {
    .scene::before { background-position: 56% 50%; background-size: cover; }
}
/* Hors de l'accueil, le voile est plus dense : on y lit des formulaires et des textes. */
.scene::after {
    z-index: -1;
    background: linear-gradient(180deg, rgba(2, 10, 34, .70) 0%, rgba(2, 10, 34, .82) 40%, rgba(2, 10, 34, .93) 100%);
}
.scene--accueil::after {
    background: radial-gradient(ellipse 38% 34% at 50% 40%, rgba(1, 130, 249, .34), transparent 70%),
                linear-gradient(180deg, rgba(2, 10, 34, .62) 0%, rgba(2, 10, 34, .28) 38%, rgba(2, 10, 34, .80) 78%, rgba(2, 10, 34, .96) 100%);
}

.scene__neige { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* La neige du décor (23/10/2026, à la place des lucioles) : chaque flocon tombe en passant par sa place de repos
   (--y, sa place quand le mouvement est coupé), se balance à son rythme (le <b>) et garde un peu de lueur cyan.
   Tirages dans MainLayout.razor : un lointain est petit, pâle et lent, un proche plus gros, plus vif, plus rapide. */
.scene__neige i {
    position: absolute;
    width: calc(14px * var(--taille, 1));
    height: calc(14px * var(--taille, 1));
    margin: calc(-7px * var(--taille, 1)) 0 0 calc(-7px * var(--taille, 1));
    opacity: var(--opacite, .7);
    will-change: transform;
    animation: neige-chute var(--chute, 16s) linear infinite;
    animation-delay: var(--retard, 0s);
}
.scene__neige b {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle closest-side, #fff 0, rgba(221, 246, 255, .94) 30%, rgba(101, 240, 253, .33) 50%,
        rgba(101, 240, 253, 0) 100%);
    animation: neige-balance var(--balance, 2.5s) ease-in-out infinite alternate;
    animation-delay: var(--retard2, 0s);
}
@keyframes neige-chute {
    from { transform: translateY(calc(-1 * var(--y) - 3vh)); }
    to { transform: translateY(calc(100vh - var(--y) + 3vh)); }
}
@keyframes neige-balance {
    from { transform: translateX(calc(-1 * var(--ampli, 14px))); }
    to { transform: translateX(var(--ampli, 14px)); }
}
@media (prefers-reduced-motion: reduce) { .scene__neige i, .scene__neige b { animation: none; } }

.scene__corps { flex: 1; display: flex; flex-direction: column; }
.scene__corps > * { width: 100%; }

/* ---- la barre ---- */
.tete {
    position: relative;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px clamp(16px, 3vw, 34px);
    font-family: var(--font-veillee);
    font-weight: 700;
    font-size: 1rem;
    color: var(--cream);
}
.tete__marque { font-family: var(--font-titre); font-weight: 900; font-size: 1.05rem; letter-spacing: .06em; color: var(--or); white-space: nowrap; }
.tete__droite { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tete__lien { color: var(--cream); white-space: nowrap; transition: color var(--dur-instant) ease; }
.tete__lien:hover { color: var(--feu-haut); }
.tete__lien--actif { color: var(--feu-haut); box-shadow: inset 0 -2px 0 var(--feu-haut); }
/* Le nom du site ; sur téléphone, le petit logo le remplace pour laisser la place à « Voter ». */
.tete__marque { display: inline-flex; align-items: center; }
.tete__marque-logo { display: none; width: 36px; height: 36px; filter: drop-shadow(0 0 8px rgba(1, 130, 249, .45)); }
.tete .icon-btn { color: var(--cream); }
.tete .account-mini { background: rgba(10, 26, 64, .7); }
/* Les deux liens de joueur connecté : dans la barre sur ordinateur, dans le menu du compte sur téléphone. */
.tete__seulement-etroit { display: none; }
@media (max-width: 640px) {
    .tete { gap: 12px; padding-block: 14px; }
    .tete__droite { gap: 10px; }
    .tete__lien--large { display: none; }
    .tete__marque-logo { display: block; }
    .tete__marque-texte { display: none; }
    .tete .account-mini .who { max-width: 8.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .account-dropdown .tete__seulement-etroit { display: flex; }
    .account-dropdown .menu-sep.tete__seulement-etroit { display: block; }
}

/* ---- le pied : une ligne, les pages légales et la mention de non-affiliation ---- */
.pied {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    padding: 16px 24px 22px;
    font-family: var(--font-veillee);
    font-size: .875rem;
    color: #8E9CC4;
}
.pied a:hover { color: var(--cream); }

/* ---- l'accueil : un seul écran ---- */
.accueil {
    position: relative;
    flex: 1;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 16px;
    padding: 0 24px 20px;
    text-align: center;
    font-family: var(--font-veillee);
}
/* La boîte flotte, le logo respire dans son halo et un reflet traverse sa forme (masqué par le logo
   lui-même : il suit n'importe quel logo). Les étincelles posées sur les lettres de l'ancien logo sont
   parties avec lui (22/10/2026). */
/* 52vh : avec le titre sur deux lignes, l'accueil tient sans défilement sur un écran de 900 px de haut. */
.accueil__logo-boite { position: relative; width: min(540px, 82vw, 52vh); aspect-ratio: 712 / 503; animation: logo-flotte 6s ease-in-out infinite; }
.accueil__logo {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(1, 130, 249, .45)) drop-shadow(0 10px 18px rgba(0, 0, 0, .7));
    animation: logo-aura 4.2s ease-in-out infinite;
}
.accueil__halo {
    position: absolute;
    left: 50%; top: 50%;
    width: 160%; height: 150%;
    translate: -50% -50%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(101, 240, 253, .55), rgba(1, 130, 249, .18) 55%, transparent 75%);
    pointer-events: none;
    animation: logo-respire 4.2s ease-in-out infinite;
}
.accueil__eclat {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 40%, rgba(240, 252, 255, .95) 50%, transparent 60%) 160% 0 / 260% 100% no-repeat;
    -webkit-mask: url(/media/brand/logo.png) center / 100% 100% no-repeat;
            mask: url(/media/brand/logo.png) center / 100% 100% no-repeat;
    mix-blend-mode: screen;
    animation: logo-reflet 5.5s ease-in-out infinite;
}
@keyframes logo-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes logo-respire { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes logo-aura {
    0%, 100% { filter: drop-shadow(0 0 14px rgba(101, 240, 253, .35)) drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); }
    50% { filter: drop-shadow(0 0 34px rgba(101, 240, 253, .8)) drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); }
}
@keyframes logo-reflet { 0% { background-position: 160% 0; } 28%, 100% { background-position: -60% 0; } }
/* Animations coupées par le visiteur (Windows, téléphone) : le logo reste lumineux, mais immobile. */
@media (prefers-reduced-motion: reduce) {
    .accueil__logo-boite, .accueil__logo, .accueil__halo { animation: none; }
    .accueil__eclat { display: none; }
}

/* ---- le Comte Harebourg et ses sbires (B, choisi le 22/10/2026) ----
   Deux groupes, un de chaque côté du logo, posés sur le bas de l'accueil et tournés vers lui : le Comte
   (sous la relique des Glaces) et Sylargh à gauche, Klime, Missiz Frizz et Nileza à droite. Chaque groupe
   occupe la colonne libre entre le bord (même marge que la barre) et le contenu du milieu ; tailles en %
   de cette colonne, pour que tout rétrécisse ensemble. Le titre passe alors sur deux lignes. Sous
   1280 px de large, la place manque : les boss s'effacent, le décor reste. */
.accueil__boss { display: none; }
@media (min-width: 1280px) {
    .accueil__boss {
        /* La colonne libre va de la marge (34 px) au contenu du milieu (logo de 540 px et son écart) ;
           le groupe, de 480 px au plus, se centre dedans : sur un grand écran, il ne colle pas au bord. */
        --colonne: calc(50vw - 330px);
        --groupe: min(480px, var(--colonne));
        position: absolute;
        bottom: 20px;
        width: var(--groupe);
        display: flex;
        justify-content: center;
        align-items: flex-end;
        pointer-events: none;
    }
    .accueil__boss--gauche { left: calc(34px + (var(--colonne) - var(--groupe)) / 2); }
    .accueil__boss--droite { right: calc(34px + (var(--colonne) - var(--groupe)) / 2); }
    .accueil__boss img { display: block; height: auto; margin: 0 -3.3%; }
    .accueil__boss-porteur { position: relative; display: block; width: 32%; margin: 0 -3.3%; }
    .accueil__boss-porteur img { width: 100%; margin: 0; }
    .accueil__boss-porteur .accueil__relique { position: absolute; left: 50%; top: -26%; width: 92%; translate: -50% 0; }
    /* Largeurs pour une colonne de 480 px : le Comte 330 px de haut, chaque sbire 223 px
       (23/10/2026 : les quatre de la même taille, dans la proportion de la porte du launcher). */
    .accueil__boss .sylargh { width: 33.5%; }
    .accueil__boss .klime { width: 41.0%; transform: scaleX(-1); }
    .accueil__boss .missiz { width: 25.3%; }
    .accueil__boss .nileza { width: 37.4%; }
    .accueil__titre span { display: block; }
}
.accueil__titre {
    margin: 0;
    font-family: var(--font-titre);
    font-weight: 900;
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: 0;
    color: var(--cream);
    text-shadow: 0 0 28px rgba(0, 0, 0, .9);
    text-wrap: balance;
}
.accueil__titre span { white-space: nowrap; }
.accueil__action { display: grid; justify-items: center; gap: 10px; margin-top: 6px; }
.accueil__precision { font-size: 1rem; font-weight: 600; color: #B4C1E2; letter-spacing: .02em; }
.accueil__compte { margin: 0; font-size: 1.0625rem; color: var(--text); }
.accueil__compte a { color: var(--or); font-weight: 800; border-bottom: 2px solid rgba(240, 190, 110, .45); }
.accueil__compte a:hover { border-bottom-color: var(--or); }

.bouton-feu {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--r-full);
    padding: 18px 40px;
    font-family: var(--font-veillee);
    font-weight: 800;
    font-size: 1.375rem;
    background: linear-gradient(180deg, var(--feu-bouton-haut), var(--feu-bouton-bas));
    color: var(--feu-texte);
    box-shadow: 0 0 34px rgba(1, 130, 249, .5), 0 4px 0 var(--feu-ombre);
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
}
.bouton-feu:hover { transform: translateY(-2px); box-shadow: 0 0 46px rgba(1, 130, 249, .65), 0 6px 0 var(--feu-ombre); }
.bouton-feu:active { transform: translateY(2px); box-shadow: 0 0 24px rgba(1, 130, 249, .45), 0 2px 0 var(--feu-ombre); }
.bouton-feu svg { width: 26px; height: 26px; flex: none; }
/* Le launcher pendant les préinscriptions (BoutonLauncher) : le même bouton, grisé, sans lien. */
.lien-launcher--bientot { opacity: .45; cursor: not-allowed; filter: grayscale(.7); }
.lien-launcher--bientot, .lien-launcher--bientot:hover, .lien-launcher--bientot:active { transform: none; box-shadow: none; }

.statut {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    border-radius: var(--r-full);
    background: rgba(10, 26, 64, .72);
    border: 1px solid #1E3570;
    font-weight: 700;
    font-size: .9375rem;
    color: var(--cream);
}
.statut i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.statut--enligne i { background: #4CD964; box-shadow: 0 0 0 4px rgba(76, 217, 100, .25); }
.statut b { color: var(--cream); font-weight: 800; }

.accueil__aide { max-width: 520px; font-size: .9375rem; color: #A3B0D4; }
.accueil__aide summary { cursor: pointer; list-style: none; border-bottom: 1px dashed rgba(163, 176, 212, .6); display: inline; }
.accueil__aide summary::-webkit-details-marker { display: none; }
.accueil__aide p { margin: 10px 0 0; line-height: 1.5; }

/* Le launcher ne s'installe que sur Windows : sur téléphone, le bouton devient la création du compte. */
.accueil__telephone { display: none; }
@media (max-width: 640px) {
    .accueil { gap: 16px; padding: 4px 16px 20px; }
    .accueil__ordinateur { display: none; }
    .accueil__telephone { display: grid; }
    .accueil__precision { font-size: .9375rem; }
    .bouton-feu { font-size: 1.1875rem; padding: 16px 30px; }
}
/* Portable de 1366×768 : l'écran tient sans défilement. */
@media (max-height: 820px) and (min-width: 641px) {
    .tete { padding-block: 12px; }
    .accueil { gap: 12px; }
    .accueil__logo-boite { width: min(380px, 44vh); }
    .bouton-feu { padding-block: 15px; }
}

/* ---- les pages de compte et les pages légales, posées sur le décor ---- */
.auth-card {
    background: rgba(4, 14, 42, .86);
    border-color: #1E3570;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(111, 216, 255, .2);
}
.auth-card h1 { font-family: var(--font-titre); font-weight: 900; letter-spacing: 0; }
.locked h1 { font-family: var(--font-titre); font-weight: 900; letter-spacing: 0; }

/* =====================================================================
   VOTE — la page /voter (02/10/2026, « Le sentier » choisi sur planche)

   Pensée pour le téléphone : le solde en haut (les pièces y atterrissent),
   les annuaires empilés, les paliers en colonne de bas en haut. Sur
   ordinateur, annuaires et paliers côte à côte. Effets (pièces, onde,
   annonce) posés par wwwroot/js/vote.js dans un calque fixe sur <body>.
   ===================================================================== */

.vote {
    box-sizing: border-box;
    width: min(1040px, 100%);
    margin-inline: auto;
    padding: 6px 16px 40px;
    display: grid;
    gap: 14px;
    align-content: start;
    font-family: var(--font-veillee);
    color: var(--text);
}
.vote__connexion { padding-top: 24px; }
.vote__titre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vote__titre h1 { margin: 0; font-family: var(--font-titre); font-weight: 900; font-size: 1.75rem; line-height: 1.1; letter-spacing: 0; color: var(--cream); }
.vote__attente { margin: 24px 0; text-align: center; color: var(--muted); }

.vote-x2,
.vote-pouce {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 11px 3px 4px;
    border-radius: var(--r-full);
    background: rgba(111, 216, 255, .12);
    border: 1px solid rgba(111, 216, 255, .42);
    color: var(--feu-haut);
    font-weight: 700;
    font-size: .875rem;
    white-space: nowrap;
    cursor: default;
}
.vote-x2 b { padding: 0 7px; border-radius: var(--r-full); background: var(--feu-haut); color: var(--bg); font-weight: 800; font-size: .8125rem; }
.vote-pouce { padding-left: 11px; }

.vote-oeil { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.vote__corps { display: grid; gap: 14px; }
.vote__colonne { display: grid; gap: 10px; align-content: start; min-width: 0; }

/* ---- le solde ---- */
.vote-solde { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: var(--r-lg); background: rgba(4, 14, 42, .78); border: 1px solid #1E3570; }
.vote-solde__piece { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 0 10px rgba(1, 130, 249, .55)); }
.vote-solde__texte { display: grid; min-width: 0; }
.vote-solde__ligne { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.vote-solde__ligne b { display: inline-block; font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--cream); font-variant-numeric: lining-nums tabular-nums; }
.vote-solde__ligne span { font-size: .9375rem; font-weight: 700; color: var(--muted); }

/* ---- les annuaires : tuiles de hauteur fixe, le nom cède (« … ») plutôt que de passer à la ligne ---- */
.vote-tuiles { display: grid; gap: 10px; }
.vote-tuile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 12px;
    height: 78px;
    padding: 0 14px 0 16px;
    border-radius: var(--r-lg);
    background: rgba(10, 26, 64, .80);
    border: 1px solid var(--line-strong);
    transition: background-color var(--dur-slow) ease, border-color var(--dur-slow) ease;
}
.vote-tuile.prete {
    background: linear-gradient(180deg, rgba(52, 211, 153, .11), rgba(52, 211, 153, .03)), rgba(10, 26, 64, .84);
    border-color: rgba(52, 211, 153, .40);
}
.vote-tuile__nom { grid-column: 1; grid-row: 1; align-self: end; font-weight: 800; font-size: 1.03rem; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote-tuile__gain { grid-column: 1; grid-row: 2; align-self: start; font-size: .9rem; font-weight: 700; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: lining-nums; }
.vote--operation .vote-tuile.prete .vote-tuile__gain { color: var(--feu-haut); }
.vote-tuile:not(.prete) .vote-tuile__gain { color: var(--muted); font-weight: 600; }
.vote-tuile__action { grid-column: 2; grid-row: 1 / 3; display: grid; justify-items: end; }

.vote-bouton {
    border: 0;
    cursor: pointer;
    border-radius: var(--r-full);
    padding: 11px 24px;
    white-space: nowrap;
    font-family: var(--font-veillee);
    font-weight: 800;
    font-size: 1.03rem;
    background: linear-gradient(180deg, var(--feu-bouton-haut), var(--feu-bouton-bas));
    color: var(--feu-texte);
    box-shadow: 0 0 22px rgba(1, 130, 249, .38), 0 3px 0 var(--feu-ombre);
    transition: transform var(--dur-fast) var(--ease-out);
    animation: vote-appel 2.8s ease-in-out infinite;
}
.vote-bouton:hover { transform: translateY(-1px); }
.vote-bouton:active { transform: translateY(2px); }
.vote-bouton:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.vote-bouton:disabled { cursor: default; animation: none; transform: none; background: var(--surface-hover); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
@keyframes vote-appel {
    0%, 100% { box-shadow: 0 0 16px rgba(1, 130, 249, .28), 0 3px 0 var(--feu-ombre); }
    50% { box-shadow: 0 0 30px rgba(1, 130, 249, .6), 0 3px 0 var(--feu-ombre); }
}

.vote-horloge { display: grid; justify-items: end; line-height: 1.15; }
.vote-horloge b { font-size: 1.3rem; font-weight: 800; color: var(--cream); font-variant-numeric: lining-nums tabular-nums; }
.vote-horloge span { font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* ---- la ligne d'état : hauteur réservée, elle ne fait pas sauter la page ---- */
.vote-statut { display: flex; align-items: center; gap: 8px; min-height: 22px; margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.vote-statut span { min-width: 0; text-wrap: balance; }
.vote-statut--erreur { color: #CBD3EA; }
.vote-tourne { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(111, 216, 255, .25); border-top-color: var(--feu-haut); animation: vote-tourne .8s linear infinite; }
@keyframes vote-tourne { to { transform: rotate(1turn); } }

/* ---- le sentier des paliers : de bas (départ) en haut, la braise monte avec les votes ---- */
.vote-sentier { --pas: 34px; display: grid; gap: 6px; padding: 14px 16px 12px; border-radius: var(--r-lg); background: rgba(4, 14, 42, .78); border: 1px solid #1E3570; }
.vote-sentier__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vote-sentier__compte { margin: 0 0 4px; font-size: .9rem; color: var(--muted); white-space: nowrap; font-variant-numeric: lining-nums; }
.vote-sentier__compte b { color: var(--cream); font-weight: 800; }
.vote-sentier__fin { display: inline-block; width: 0; height: 1em; vertical-align: middle; }
.vote-sentier__piste { position: relative; display: grid; grid-auto-rows: var(--pas); }
.vote-sentier__ligne,
.vote-sentier__rempli { position: absolute; left: 10px; width: 4px; border-radius: 2px; translate: -50% 0; }
.vote-sentier__ligne { top: calc(var(--pas) / 2); bottom: calc(var(--pas) / 2); background: rgba(255, 255, 255, .10); }
.vote-sentier__rempli {
    bottom: calc(var(--pas) / 2);
    height: calc(var(--avance, 0) * var(--pas));
    background: linear-gradient(0deg, #003FDE, #6FD8FF);
    box-shadow: 0 0 10px rgba(1, 130, 249, .55);
    transition: height 1s var(--ease-out);
}
.vote-sentier__braise {
    position: absolute;
    z-index: 2;
    left: 10px;
    bottom: calc(var(--pas) / 2 + var(--avance, 0) * var(--pas));
    width: 12px;
    height: 12px;
    translate: -50% 50%;
    border-radius: 50%;
    background: #E6FBFF;
    transition: bottom 1s var(--ease-out);
    animation: vote-braise 1.8s ease-in-out infinite;
}
@keyframes vote-braise {
    0%, 100% { box-shadow: 0 0 0 3px rgba(111, 216, 255, .3), 0 0 12px 4px rgba(1, 130, 249, .65); }
    50% { box-shadow: 0 0 0 5px rgba(111, 216, 255, .18), 0 0 20px 7px rgba(1, 130, 249, .9); }
}
.vote-marche { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.vote-marche__noeud { position: relative; z-index: 1; justify-self: center; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(255, 255, 255, .22); transition: all var(--dur-slow) ease; }
.vote-marche__nom { font-size: .97rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: lining-nums; }
.vote-marche__tag { font-size: .78rem; font-weight: 800; color: var(--feu-haut); white-space: nowrap; font-variant-numeric: lining-nums; }
.vote-marche__val { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 54px; font-size: 1rem; font-weight: 800; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.vote-marche__val img { width: 18px; height: 18px; }
.vote-marche.fait .vote-marche__noeud { background: #003FDE; border-color: #45A9FF; }
.vote-marche.fait .vote-marche__nom,
.vote-marche.fait .vote-marche__val { color: var(--text); }
.vote-marche.actuelle .vote-marche__noeud { background: var(--feu-haut); border-color: #E6FBFF; box-shadow: 0 0 12px 3px rgba(1, 130, 249, .7); }
.vote-marche.actuelle .vote-marche__nom { color: var(--cream); }
.vote-marche.actuelle .vote-marche__val { color: var(--feu-haut); font-size: 1.2rem; }
.vote-marche.actuelle .vote-marche__tag { color: var(--cream); font-weight: 700; opacity: .85; }
.vote-marche.suivante .vote-marche__noeud { border-color: var(--feu-haut); }
.vote-marche.suivante .vote-marche__nom { color: var(--cream); }

/* ---- ordinateur : annuaires à gauche, sentier à droite ---- */
@media (min-width: 760px) {
    .vote { gap: 20px; padding-top: 14px; }
    .vote__titre h1 { font-size: 2.15rem; }
    .vote__corps { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px; align-items: start; }
    .vote-sentier { --pas: 38px; padding: 18px 22px 16px; }
}

/* ---- les effets, posés par vote.js dans un calque fixe ---- */
.vote-fx { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.vote-piece {
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    background: url(/media/brand/monnaie-64.png) center / contain no-repeat;
    filter: drop-shadow(0 0 7px rgba(101, 240, 253, .85));
    will-change: transform, opacity;
}
.vote-jaillit,
.vote-puce,
.vote-onde,
.vote-etincelle,
.vote-annonce { position: absolute; left: 0; top: 0; }
.vote-jaillit { font-family: var(--font-titre); font-weight: 900; font-size: 2.25rem; color: var(--feu-haut); white-space: nowrap; text-shadow: 0 0 20px rgba(1, 130, 249, .95), 0 2px 0 var(--feu-ombre); }
.vote-puce { padding: 3px 11px; border-radius: var(--r-full); background: #0A1A40; border: 1px solid rgba(111, 216, 255, .7); color: #C9F7FF; font-family: var(--font-veillee); font-weight: 800; font-size: .9rem; white-space: nowrap; box-shadow: 0 0 18px rgba(1, 130, 249, .7); }
.vote-onde { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid var(--feu-haut); box-shadow: 0 0 22px rgba(111, 216, 255, .8), inset 0 0 14px rgba(111, 216, 255, .5); }
.vote-etincelle { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #F0FCFF; box-shadow: 0 0 8px 3px rgba(111, 216, 255, .9); }
.vote-annonce {
    display: grid;
    justify-items: center;
    gap: 2px;
    translate: -50% -50%;
    padding: 12px 22px;
    border-radius: var(--r-lg);
    background: rgba(4, 14, 42, .92);
    border: 1px solid rgba(111, 216, 255, .7);
    box-shadow: 0 0 40px rgba(1, 130, 249, .55);
    white-space: nowrap;
    font-family: var(--font-veillee);
    animation: vote-annonce 2.8s var(--ease-out) both;
}
.vote-annonce b { font-family: var(--font-titre); font-weight: 900; font-size: 1.25rem; color: var(--feu-haut); }
.vote-annonce span { font-size: .9rem; font-weight: 700; color: var(--cream); font-variant-numeric: lining-nums; }
@keyframes vote-annonce { 0% { opacity: 0; transform: scale(.7); } 12% { opacity: 1; transform: scale(1.06); } 20% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }

/* « Vote validé · +40 » (et la monnaie) : posée sur la barre du site, deux secondes et demie. */
.vote-valide {
    position: fixed;
    z-index: 95;
    left: 50%;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    translate: -50% 0;
    padding: 8px 18px;
    border-radius: var(--r-full);
    background: #0F1A15;
    border: 1px solid rgba(52, 211, 153, .5);
    color: var(--green-300);
    font-family: var(--font-veillee);
    font-weight: 800;
    font-size: .95rem;
    white-space: nowrap;
    font-variant-numeric: lining-nums;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(52, 211, 153, .18);
    opacity: 0;
    pointer-events: none;
}
.vote-valide.montre { animation: vote-valide 2.6s var(--ease-out) both; }
@keyframes vote-valide {
    0% { opacity: 0; transform: translateY(-12px) scale(.94); }
    10%, 84% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .vote-bouton, .vote-sentier__braise, .vote-annonce { animation: none; }
    .vote-sentier__rempli, .vote-sentier__braise { transition: none; }
}

/* =====================================================================
   PRÉINSCRIPTIONS (25/10/2026, maquette validée par le propriétaire)
   L'accueil tant que le serveur n'est pas ouvert (Home.razor) : une grille
   de 1200 px et UNE marge ; le haut centré sur l'axe de la page, puis deux
   panneaux de même hauteur, le Pack du Pionnier (3/5) et le formulaire (2/5).
   Cartes identiques, titres des panneaux sur la même ligne, aucun texte coupé.
   ===================================================================== */
.pre {
    --pre-marge: 24px;
    --pre-case: rgba(4, 14, 40, .72);
    --pre-panneau: rgba(8, 22, 56, .80);
    width: 100%;
    max-width: 1248px;
    margin-inline: auto;
    padding: 0 var(--pre-marge) 48px;
    font-family: var(--font-veillee);
    font-variant-numeric: lining-nums;
}

/* ---- le haut ---- */
.pre-haut { position: relative; display: grid; justify-items: center; gap: 18px; padding-block: 12px 44px; text-align: center; }
.pre-boss { position: absolute; bottom: 0; display: none; pointer-events: none; }
.pre-boss img { display: block; height: 100%; width: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .7)); }
.pre-boss--gauche { left: calc(50% - 50vw + 32px); height: 340px; }
.pre-boss--droite { right: calc(50% - 50vw + 40px); height: 300px; }
.pre-boss .pre-boss__relique { position: absolute; left: 100px; bottom: 134px; height: 82px; filter: drop-shadow(0 0 16px rgba(111, 216, 255, .7)); }
/* Posés au bord de l'écran, hors de la colonne : jamais sur le titre (vérifié à 1 440 px, titre espagnol compris). */
@media (min-width: 1400px) { .pre-boss { display: block; } }

.pre-logo { width: auto; height: clamp(96px, 16vh, 150px); filter: drop-shadow(0 0 30px rgba(1, 130, 249, .45)) drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); }
.pre-statut { white-space: nowrap; }
.pre-titre {
    margin: 0;
    font-family: var(--font-titre);
    font-weight: 900;
    font-size: clamp(1.5rem, 7vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: 0;
    color: var(--cream);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.pre-titre span { display: inline-block; white-space: nowrap; }
.pre-chapo { margin: 0; max-width: 34em; font-size: 1.15rem; color: var(--text); text-wrap: balance; }
.pre-chapo b { color: var(--or); font-weight: 800; white-space: nowrap; }

.pre-decompte { display: grid; grid-template-columns: repeat(4, 96px); gap: 12px; margin-top: 6px; }
.pre-decompte__case {
    display: grid; align-content: center; justify-items: center; gap: 2px; height: 92px;
    border-radius: var(--r-lg); background: var(--pre-panneau); border: 1px solid var(--line-strong);
}
.pre-decompte__case b { font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums lining-nums; }
.pre-decompte__case span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pre-date { margin: 0; font-weight: 700; color: var(--cream); text-wrap: balance; }
.pre-date time { color: var(--feu-haut); white-space: nowrap; }
.pre-vers-formulaire { display: none; width: min(100%, 432px); justify-content: center; padding: 15px 24px; font-size: 1.2rem; }

/* ---- les deux panneaux ---- */
.pre-offre { display: grid; grid-template-columns: 3fr 2fr; gap: var(--pre-marge); align-items: stretch; }
.pre-panneau {
    min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: var(--pre-marge);
    border-radius: 18px; background: var(--pre-panneau); border: 1px solid var(--line-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.pre-panneau--formulaire { scroll-margin-top: 16px; }
.pre-panneau__tete { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 64px; text-align: center; }
.pre-panneau__tete h2, .pre-ok h2 { margin: 0; font-family: var(--font-titre); font-weight: 700; font-size: 1.5rem; color: var(--cream); white-space: nowrap; }
.pre-panneau__tete p { margin: 0; color: var(--muted); white-space: nowrap; }

.pre-rangee { display: flex; align-items: center; gap: 14px; color: var(--feu-haut); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.pre-rangee::before, .pre-rangee::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

.pre-exclusifs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pre-titre-pionnier {
    display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 76px; padding: 10px 16px;
    border-radius: 12px; background: rgba(240, 190, 110, .08);
    border: 1px solid rgba(240, 190, 110, .55); box-shadow: inset 0 0 0 1px rgba(240, 190, 110, .25);
}
.pre-titre-pionnier img { width: 52px; height: 52px; flex: none; object-fit: contain; }
.pre-titre-pionnier div { min-width: 0; display: grid; text-align: left; }
.pre-titre-pionnier b, .pre-titre-pionnier span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre-titre-pionnier b { color: var(--or); font-weight: 800; font-size: 1.1rem; }
.pre-titre-pionnier span { color: var(--muted); font-size: .9rem; }

.pre-objets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1; }
.pre-objet {
    min-width: 0; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 16px 8px; text-align: center;
    border-radius: 12px; background: var(--pre-case); border: 1px solid var(--line);
}
.pre-objet__ic { position: relative; display: grid; place-items: center; width: 72px; height: 72px; }
.pre-objet__ic::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(closest-side, rgba(111, 216, 255, .28), transparent); }
.pre-objet__ic img { position: relative; width: 64px; height: 64px; object-fit: contain; }
.pre-objet__textes { min-width: 0; max-width: 100%; display: grid; gap: 2px; }
.pre-objet__textes b, .pre-objet__textes span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre-objet__textes b { color: var(--cream); font-weight: 800; font-size: 1rem; }
.pre-objet__textes span { color: var(--muted); font-size: .875rem; }

.pre-garanties { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pre-garanties li {
    min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 10px;
    border-radius: var(--r-full); border: 1px solid var(--line-strong); color: var(--cream); font-weight: 700; font-size: .95rem;
}
.pre-garanties span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre-garanties svg { width: 16px; height: 16px; flex: none; color: var(--green-400); }

/* ---- le formulaire ---- */
.pre-form { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; flex: 1; }
.pre-champs-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pre-champ .dd { min-width: 0; }
.pre-champ { min-width: 0; display: grid; align-content: start; gap: 6px; }
.pre-champ label { color: var(--cream); font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* InputText n'écrit pas type="text" : le style global des champs ne le prend pas, d'où ces règles complètes. */
.pre-champ input {
    width: 100%; height: 46px; padding: 0 14px; border-radius: 10px;
    background: var(--bg-subtle); border: 1px solid var(--border-control); color: var(--cream);
    font: 400 1rem var(--font-body);
}
.pre-champ input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.pre-champ .dd__control { height: 46px; padding: 0 14px; border-radius: 10px; font-size: 1rem; }
.pre-champ .validation-message { margin-top: 0; }
.pre-bouton-plein { width: 100%; justify-content: center; padding: 15px 24px; font-size: 1.2rem; }
button.bouton-feu { border: 0; cursor: pointer; }
button.bouton-feu:disabled { opacity: .6; cursor: wait; transform: none; }
.pre-deja { margin: 0; text-align: center; color: var(--muted); white-space: nowrap; }
.pre-deja a { color: var(--or); font-weight: 700; }

/* ---- compte créé : le contenu centré dans le panneau, qui garde sa hauteur ---- */
.pre-ok { flex: 1; display: grid; justify-items: center; align-content: center; gap: 16px; text-align: center; }
.pre-ok__pastille { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(52, 211, 153, .14); border: 2px solid var(--green-400); color: var(--green-400); }
.pre-ok__pastille svg { width: 38px; height: 38px; }
.pre-ok p { margin: 0; max-width: 24em; text-wrap: balance; }
.pre-ok p b { color: var(--or); white-space: nowrap; }
.pre-fiche { width: 100%; margin: 0; display: grid; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.pre-fiche div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; }
.pre-fiche div + div { border-top: 1px solid var(--line); }
.pre-fiche dt { color: var(--muted); white-space: nowrap; }
.pre-fiche dd { margin: 0; min-width: 0; color: var(--cream); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre-precision { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.pre-telephone { display: none; }

/* ---- largeurs ---- */
@media (max-width: 1000px) {
    .pre-offre { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
    .pre-vers-formulaire { display: inline-flex; }
}
@media (max-width: 640px) {
    .pre { --pre-marge: 16px; }
    .pre-decompte { grid-template-columns: repeat(4, minmax(0, 72px)); gap: 8px; }
    .pre-decompte__case { height: 76px; }
    .pre-decompte__case b { font-size: 1.8rem; }
    .pre-decompte__case span { font-size: .65rem; letter-spacing: .08em; }
    .pre-garanties { grid-template-columns: 1fr; }
    .pre-exclusifs { grid-template-columns: 1fr; }
    .pre-champs-2 { grid-template-columns: 1fr; }
    .pre-ordinateur { display: none; }
    .pre-telephone { display: block; white-space: normal; }
    /* Les cartes passent en lignes : l'icône et ses deux textes forment un bloc de même largeur, centré dans chaque
       case, pour que les icônes s'alignent d'une ligne à l'autre et qu'aucun nom (« Escarchosombrero ») ne soit coupé. */
    .pre-objets { grid-template-columns: 1fr; gap: 8px; }
    .pre-objet { grid-template-columns: 56px minmax(0, 190px); justify-content: center; justify-items: start; align-items: center; column-gap: 14px; padding: 8px 12px; text-align: left; }
    .pre-objet__ic { width: 56px; height: 56px; }
    .pre-objet__ic img { width: 48px; height: 48px; }
}
@media (max-width: 380px) {
    .pre-date { font-size: .95rem; }
}
