@font-face {
    font-family: "Space Grotesk";
    src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
        U+FEFF, U+FFFD;
}

/* =========================================================================
   1. Jetons
   ====================================================================== */
:root {
    color-scheme: dark;
    --bg: #0a0712;
    --bg-soft: #0f0a1a;
    --surface: #150f22;
    --surface-2: #1b142c;
    --surface-3: #241a38;
    --line: #2b2142;
    --line-strong: #3d2f5c;
    --line-soft: rgba(240, 235, 255, 0.07);
    --text: #f1ecfb;
    --text-dim: #c9c0de;
    --muted: #a096bb;
    --accent: #b98bff;
    --accent-ink: #140a26;
    --accent-soft: rgba(185, 139, 255, 0.14);
    --accent-2: #ff6ec7;
    --danger: #ff6b8a;
    --warn: #ffc857;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --wrap: 1220px;
    --gutter: clamp(18px, 4vw, 40px);

    --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
    --head-bg: rgba(10, 7, 18, 0.82);
    --nav-bg: rgba(12, 8, 22, 0.98);
}

/* Thème clair : mêmes rôles de couleurs, palette violette inversée. */
html[data-theme="light"] {
    color-scheme: light;
    /* Clair mais teinté violet : moins de blanc pur, donc moins éblouissant. */
    --bg: #ebe4f7;
    --bg-soft: #f2ecfb;
    --surface: #f9f5ff;
    --surface-2: #e8def8;
    --surface-3: #dbccf2;
    --line: #d2c3e9;
    --line-strong: #b49bd8;
    --line-soft: rgba(43, 26, 80, 0.1);
    --text: #191026;
    --text-dim: #3d2e57;
    --muted: #64567e;
    --accent: #6d28d9;
    --accent-ink: #ffffff;
    --accent-soft: rgba(109, 40, 217, 0.11);
    --accent-2: #b01f92;
    --danger: #b91c46;
    --warn: #7d5200;
    --shadow: 0 24px 60px -30px rgba(45, 22, 90, 0.3);
    --head-bg: rgba(243, 237, 252, 0.88);
    --nav-bg: rgba(243, 237, 252, 0.98);
}

/* Thèmes alternatifs : mêmes rôles de couleurs, ambiances distinctes. */
/* Noël : bleu glacier, neige sur les bords des cadres. */
html[data-theme="noel"] {
    color-scheme: dark;
    --bg: #05101d;
    --bg-soft: #08182a;
    --surface: #0b2036;
    --surface-2: #102a46;
    --surface-3: #163657;
    --line: #1d416b;
    --line-strong: #2c5d94;
    --line-soft: rgba(240, 248, 255, 0.08);
    --text: #f2f8ff;
    --text-dim: #c9dff5;
    --muted: #94b3d2;
    --accent: #6fc3ff;
    --accent-ink: #04202e;
    --accent-soft: rgba(111, 195, 255, 0.16);
    --accent-2: #b9e6ff;
    --danger: #ff6b8a;
    --warn: #ffd166;
    --shadow: 0 24px 60px -30px rgba(0, 8, 20, 0.92);
    --head-bg: rgba(5, 16, 29, 0.84);
    --nav-bg: rgba(7, 21, 37, 0.98);
}

html[data-theme="noel"] .hero,
html[data-theme="noel"] .hero--news {
    background-color: #061426;
}

html[data-theme="noel"] .hero::before {
    background:
        linear-gradient(180deg, rgba(5, 16, 29, 0.58) 0%, rgba(5, 16, 29, 0.88) 46%, var(--bg) 100%),
        radial-gradient(80% 70% at 78% 30%, rgba(111, 195, 255, 0.14), transparent 70%);
}

/* Noël : congère et glaçons posés sur le haut des cadres, comme un rebord
   de fenêtre (motif vectoriel assets/img/snow-ledge.svg, répété). */
html[data-theme="noel"] :is(.card, .console-card, .console-tile, .callout, .cta, .panel) {
    position: relative;
}

html[data-theme="noel"] :is(.card, .console-card, .console-tile, .callout, .cta, .panel)::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    border-radius: inherit;
    background: url("../img/snow-ledge.svg") left top / 106px 15px repeat-x;
    filter: drop-shadow(0 2px 3px rgba(4, 20, 40, 0.35));
    pointer-events: none;
}

/* Les vignettes de consoles sont plus petites : neige plus discrète. */
html[data-theme="noel"] .console-tile::after {
    height: 14px;
    background-size: 99px 14px;
}

/* Bas de la une : neige posée sur le rebord inférieur. */
html[data-theme="noel"] .hero::after,
html[data-theme="noel"] .hero--news::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    background: url("../img/snow-bank.svg") left bottom / 204px 34px repeat-x;
    pointer-events: none;
}

html[data-theme="halloween"] {
    color-scheme: dark;
    --bg: #100808;
    --bg-soft: #180d0c;
    --surface: #1f1210;
    --surface-2: #2a1916;
    --surface-3: #37211c;
    --line: #43291f;
    --line-strong: #5c3a2a;
    --line-soft: rgba(255, 241, 227, 0.08);
    --text: #fff1e3;
    --text-dim: #e6c9b3;
    --muted: #b89b86;
    --accent: #ff8b3d;
    --accent-ink: #241004;
    --accent-soft: rgba(255, 139, 61, 0.14);
    --accent-2: #b06bff;
    --danger: #ff6b5e;
    --warn: #ffc857;
    --shadow: 0 24px 60px -30px rgba(12, 2, 0, 0.9);
    --head-bg: rgba(16, 8, 8, 0.84);
    --nav-bg: rgba(20, 10, 9, 0.98);
}

html[data-theme="mario"] {
    color-scheme: dark;
    background: #081020 url("../img/mario-bg.png") center bottom / cover no-repeat fixed;
    --bg: #081020;
    --bg-soft: #0c1730;
    --surface: #101d3c;
    --surface-2: #16274d;
    --surface-3: #1d3260;
    --line: #29406f;
    --line-strong: #3a5794;
    --line-soft: rgba(244, 248, 255, 0.08);
    --text: #f4f8ff;
    --text-dim: #cfddf6;
    --muted: #a3b6d6;
    --accent: #e63946;
    --accent-ink: #ffffff;
    --accent-soft: rgba(230, 57, 70, 0.16);
    --accent-2: #ffd23f;
    --danger: #ff6b8a;
    --warn: #ffd23f;
    --shadow: 0 24px 60px -30px rgba(0, 4, 16, 0.9);
    --head-bg: rgba(8, 16, 32, 0.84);
    --nav-bg: rgba(10, 20, 40, 0.98);
}

html[data-theme="gta6"] {
    color-scheme: dark;
    background-color: #0e0818;
    --bg: #0e0818;
    --bg-soft: #140b24;
    --surface: #1b0f2e;
    --surface-2: #24143c;
    --surface-3: #2f1a4d;
    --line: #3d2459;
    --line-strong: #5a357f;
    --line-soft: rgba(253, 243, 255, 0.08);
    --text: #fdf3ff;
    --text-dim: #e3c9f5;
    --muted: #b79ccc;
    --accent: #ff5c8a;
    --accent-ink: #1b0016;
    --accent-soft: rgba(255, 92, 138, 0.16);
    --accent-2: #ffa268;
    --danger: #ff5d7a;
    --warn: #ffd166;
    --shadow: 0 24px 60px -30px rgba(6, 0, 16, 0.92);
    --head-bg: rgba(11, 6, 22, 0.84);
    --nav-bg: rgba(16, 9, 30, 0.98);
}

/* Minecraft : terre, herbe et diamant, sur fond de caverne de lave. */
html[data-theme="minecraft"] {
    color-scheme: dark;
    background-color: #12100d;
    background-image:
        linear-gradient(180deg, rgba(10, 8, 6, 0.52) 0%, rgba(10, 8, 6, 0.44) 38%, rgba(10, 8, 6, 0.54) 62%, rgba(10, 8, 6, 0.78) 100%),
        url("../img/minecraft-cave.webp"),
        linear-gradient(180deg, #1b140f 0%, #120d0a 55%, #0b0908 100%);
    background-position: center, center 40%, center;
    background-size: cover, cover, cover;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-attachment: fixed, fixed, fixed;
    --bg: #12100d;
    --bg-soft: #1a1611;
    --surface: #221c16;
    --surface-2: #2c241c;
    --surface-3: #392e23;
    --line: #4a3b2d;
    --line-strong: #63503d;
    --line-soft: rgba(255, 246, 236, 0.08);
    --text: #f7f1e8;
    --text-dim: #e2d3c2;
    --muted: #b39c86;
    --accent: #7cc243;
    --accent-ink: #0e2007;
    --accent-soft: rgba(124, 194, 67, 0.16);
    --accent-2: #58cfe2;
    --danger: #e2575a;
    --warn: #f0c14b;
    /* Angles presque nets : rappel des blocs du jeu. */
    --radius-sm: 2px;
    --radius: 4px;
    --radius-lg: 6px;
    --shadow: 0 24px 60px -30px rgba(0, 8, 0, 0.9);
    --head-bg: rgba(18, 16, 13, 0.86);
    --nav-bg: rgba(22, 18, 14, 0.98);
}

/* La caverne habille le fond de la page : les blocs de contenu restent opaques. */
html[data-theme="minecraft"] body {
    background: transparent;
}

html[data-theme="minecraft"] .hero,
html[data-theme="minecraft"] .hero--news {
    background: transparent;
}

html[data-theme="minecraft"] .hero::before {
    background:
        linear-gradient(180deg, rgba(12, 9, 6, 0.42) 0%, rgba(12, 9, 6, 0.62) 48%, var(--bg) 100%),
        radial-gradient(70% 60% at 62% 16%, rgba(255, 150, 70, 0.16), transparent 70%);
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) {
    /* `background-size: cover` sur un document de plusieurs milliers de pixels
       agrandissait la caverne jusqu'à n'en garder qu'une bande floue : on la
       peint dans une couche fixe à la taille de l'écran, sous le contenu. */
    html[data-theme="minecraft"] {
        background-image:
            linear-gradient(180deg, rgba(10, 8, 6, 0.52) 0%, rgba(10, 8, 6, 0.44) 38%, rgba(10, 8, 6, 0.54) 62%, rgba(10, 8, 6, 0.78) 100%),
            linear-gradient(180deg, #1b140f 0%, #120d0a 55%, #0b0908 100%);
        background-attachment: scroll, scroll;
        background-size: cover, cover;
    }

    html[data-theme="minecraft"] body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background-image:
            linear-gradient(180deg, rgba(10, 8, 6, 0.56) 0%, rgba(10, 8, 6, 0.52) 42%, rgba(10, 8, 6, 0.62) 68%, rgba(10, 8, 6, 0.8) 100%),
            url("../img/minecraft-cave.webp");
        /* Portrait : cadrage sur les parois sombres, la coulée de lave reste
           en lisière droite pour ne pas passer derrière le texte. */
        background-position: center, 14% 42%;
        background-size: cover, cover;
        background-repeat: no-repeat, no-repeat;
    }
}

/* =========================================================================
   2. Base
   ====================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-color: var(--line) var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.62;
    font-feature-settings: "ss01" 1;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* clip évite de créer un conteneur de défilement (sticky préservé) */
    overflow-x: clip;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.7rem);
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

h3 {
    font-size: 1.1rem;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2rem 0;
}

code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 0.1em 0.35em;
    border-radius: 5px;
}

/* =========================================================================
   3. Utilitaires
   ====================================================================== */
.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 50%;
    top: -100px;
    transform: translateX(-50%);
    z-index: 200;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 10px 18px;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 0;
}

.muted {
    color: var(--muted);
}

.dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
    vertical-align: middle;
    margin: 0 0.55em;
}

.linklike {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--line);
}

.linklike:hover {
    color: var(--accent);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin: 0 0 0.9em;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(185, 139, 255, 0.5);
    animation: pulse 2.8s var(--ease) infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(185, 139, 255, 0.45); }
    70% { box-shadow: 0 0 0 7px rgba(185, 139, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(185, 139, 255, 0); }
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    padding: 0.78em 1.35em;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: transform 0.18s var(--ease), background 0.18s var(--ease),
        border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn:hover {
    transform: translateY(-1px);
    background: #cbb0ff;
    border-color: #cbb0ff;
}

.btn--sm {
    padding: 0.55em 1.05em;
    font-size: 0.86rem;
}

.btn--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.btn--ghost:hover {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--text);
}

/* =========================================================================
   4. En-tête
   ====================================================================== */
.site-head {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: var(--head-bg);
    backdrop-filter: blur(14px) saturate(140%);
}

.site-head.is-scrolled {
    box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.9);
}

.site-head__inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--accent);
}

.brand__glyph {
    width: 28px;
    height: 28px;
}

.brand__word {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.brand__tld {
    color: var(--muted);
    font-weight: 500;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.2vw, 30px);
    margin-inline: auto;
}

.nav a {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dim);
    padding-block: 6px;
    transition: color 0.15s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--text);
}

.nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.site-head__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 0.86rem;
    transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.icon-btn:hover {
    border-color: var(--line-strong);
    color: var(--text);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.kbd {
    font-family: var(--mono);
    font-size: 0.68rem;
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    background: var(--surface);
}

.burger {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.burger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.2s var(--ease);
}

/* =========================================================================
   5. Héros
   ====================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #0a0712 url("/assets/img/ambiance.jpg") center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 7, 18, 0.5) 0%, rgba(10, 7, 18, 0.86) 46%, var(--bg) 100%),
        radial-gradient(80% 70% at 78% 30%, rgba(185, 139, 255, 0.09), transparent 70%);
}

.hero__glow {
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 60%;
    background: radial-gradient(closest-side, rgba(185, 139, 255, 0.18), transparent);
    filter: blur(40px);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(28px, 4vw, 68px);
    padding-block: clamp(48px, 7vw, 104px);
    align-items: center;
}

.hero__title {
    margin: 0 0 0.55em;
    font-size: clamp(2.7rem, 5.6vw, 4.9rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
    font-weight: 600;
}

.hl {
    color: var(--accent);
    position: relative;
    white-space: nowrap;
}

.hl::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.04em;
    height: 0.09em;
    background: var(--accent);
    opacity: 0.35;
}

.hero__lede {
    max-width: 46ch;
    color: var(--text-dim);
    font-size: clamp(1rem, 1.35vw, 1.14rem);
    line-height: 1.55;
}

/* Bandeau défilant */
.ticker {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
    padding-block: 12px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker 60s linear infinite;
}

.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding-inline: 18px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.ticker__dot {
    color: var(--accent);
    font-size: 0.55rem;
    opacity: 0.7;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================================================================
   6. Sections
   ====================================================================== */
.section {
    padding-block: clamp(48px, 6.4vw, 92px);
}

.section--tight {
    padding-top: clamp(28px, 3.4vw, 48px);
}

.section--flush {
    padding-bottom: clamp(24px, 3vw, 40px);
}

.section--inline {
    margin-top: clamp(36px, 4.5vw, 64px);
    padding-bottom: 0;
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(22px, 3vw, 36px);
}

.section__head--tight {
    margin-bottom: 16px;
}

.section__head h2 {
    margin: 0;
}

.section__head .eyebrow {
    margin-bottom: 0.35em;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color 0.15s var(--ease);
}

.link-arrow svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
    color: var(--accent);
}

.link-arrow:hover svg {
    transform: translateX(3px);
}

.link-arrow--sm {
    font-size: 0.8rem;
}

/* Grilles */
.grid {
    display: grid;
    gap: clamp(14px, 1.8vw, 22px);
}

.grid--games {
    grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
}

.grid--articles {
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

.grid--tools {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* =========================================================================
   7. Cartes
   ====================================================================== */
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    overflow: hidden;
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
        background 0.22s var(--ease);
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: var(--surface);
}

.card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card__media {
    position: relative;
    aspect-ratio: 3 / 4;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(120% 100% at 18% 6%, color-mix(in oklab, var(--brand) 52%, transparent), transparent 64%),
        radial-gradient(90% 80% at 88% 100%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 72%),
        var(--surface-2);
}

.card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 4px);
    opacity: 0.55;
    pointer-events: none;
}

.card__media--wide {
    aspect-ratio: 16 / 9;
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.card:hover .card__img {
    transform: scale(1.035);
}

/* Jaquettes : l’image entière reste visible, même si son format diffère
   du cadre 3:4 (jaquette carrée, format paysage, etc.). */
.card__media:not(.card__media--wide) .card__img {
    object-fit: contain;
}

.card:hover .card__media:not(.card__media--wide) .card__img {
    transform: none;
}

.card__mono {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card__mono--sm {
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    padding-inline: 12px;
}

.card__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 5px;
    background: rgba(10, 7, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f4efff;
}

.card__tag--accent {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: transparent;
    font-weight: 600;
}

.card__body {
    padding: 14px 15px 16px;
}

.card__title {
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 5px;
}

.card__meta {
    margin: 0;
    font-size: 0.76rem;
    color: var(--muted);
}

.card__excerpt {
    margin: 8px 0 0;
    font-size: 0.84rem;
    color: var(--text-dim);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card--article .card__body {
    padding: 16px 16px 18px;
}

/* Couleurs de marque */
[class*="cover--"],
[class*="console-tile--"] {
    --brand: #8f84a8;
}

.cover--nintendo { --brand: #ff3b4e; }
.cover--sega { --brand: #2f8cff; }
.cover--sony { --brand: #6f7bff; }
.cover--microsoft { --brand: #52b043; }
.cover--atari { --brand: #ff8a2b; }
.cover--snk { --brand: #f2c94c; }
.cover--nec { --brand: #b06cff; }
.cover--bandai { --brand: #ff5f8f; }
.cover--commodore { --brand: #6cc7ff; }
.cover--other { --brand: #8f84a8; }

/* =========================================================================
   8. Bandeau consoles
   ====================================================================== */
.console-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 210px);
    gap: 14px;
    overflow-x: auto;
    padding: 4px var(--gutter) 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

/* Vignettes du carrousel : toutes au même format, logo et titre centrés. */
.console-tile {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 236px;
    height: 172px;
    padding: 16px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(160deg, color-mix(in oklab, var(--brand) 12%, transparent), transparent 55%),
        var(--bg-soft);
    text-align: center;
    scroll-snap-align: start;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.console-tile:hover {
    border-color: color-mix(in oklab, var(--brand) 45%, var(--line));
    transform: translateY(-2px);
}

.console-tile__logo {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
}

.console-tile__logo img {
    width: auto;
    max-width: 150px;
    max-height: 44px;
    object-fit: contain;
}

/* Monogramme de repli quand aucun logo n'est disponible. */
.console-tile__mono {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid color-mix(in oklab, var(--brand) 55%, var(--line));
    border-radius: 10px;
    background: color-mix(in oklab, var(--brand) 18%, transparent);
    color: color-mix(in oklab, var(--brand) 72%, #ffffff);
    font-family: var(--mono);
    font-size: 0.86rem;
    letter-spacing: 0.06em;
}

.console-tile__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.5em;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.console-tile__meta {
    width: 100%;
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.7rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================================
   9. Bloc éditorial (populaires + outils)
   ====================================================================== */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.rank {
    border-top: 1px solid var(--line);
}

.rank__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
}

.rank__num {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    width: 22px;
    flex-shrink: 0;
}

.rank__link {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.rank__title {
    font-weight: 500;
    font-size: 0.96rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank__meta {
    font-size: 0.75rem;
    color: var(--muted);
}

.rank__views {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    flex-shrink: 0;
}

.rank__item:hover .rank__title {
    color: var(--accent);
}

.tool-list {
    display: grid;
    gap: 2px;
    border-top: 1px solid var(--line);
}

.tool-list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--line);
    transition: color 0.15s var(--ease);
}

.tool-list a:hover {
    color: var(--accent);
}

.tool-list__name {
    font-size: 0.92rem;
    font-weight: 500;
}

.tool-list__meta {
    font-size: 0.72rem;
    color: var(--muted);
    text-align: right;
}

.callout {
    margin-top: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--bg-soft);
}

.callout__title {
    font-weight: 600;
    margin-bottom: 0.35em;
}

.callout p {
    font-size: 0.86rem;
    color: var(--muted);
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(90% 140% at 90% 0%, rgba(185, 139, 255, 0.1), transparent 60%),
        var(--bg-soft);
}

.cta h2 {
    margin-bottom: 0.3em;
}

.cta p {
    color: var(--muted);
    margin: 0;
    max-width: 52ch;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================================================================
   10. En-têtes de page
   ====================================================================== */
.page-head {
    padding-block: clamp(28px, 4vw, 54px) clamp(20px, 2.5vw, 30px);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    font-size: 0.76rem;
    color: var(--muted);
}

.crumbs a:hover {
    color: var(--accent);
}

.crumbs span[aria-hidden] {
    opacity: 0.4;
}

.page-head h1 {
    margin-bottom: 0.35em;
}

.page-head__lede {
    max-width: 62ch;
    color: var(--text-dim);
    font-size: clamp(0.95rem, 1.2vw, 1.06rem);
    margin-bottom: 0;
}

.page-head__meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
}

/* =========================================================================
   11. Filtres, onglets, alphabet
   ====================================================================== */
.filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.6fr auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.field > span {
    font-family: var(--mono);
    font-size: 0.63rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.field select,
.field input,
.search-page input,
.search-modal__form input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    font-size: 0.88rem;
    appearance: none;
    transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a196' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
}

.field select:focus,
.field input:focus,
.search-page input:focus {
    border-color: #414a42;
    background: var(--surface-2);
}

.filters__submit {
    height: 40px;
}

/* Filtres repliables : la grille reste visible tout de suite sur mobile */
.filterbox__summary {
    display: none;
    list-style: none;
    cursor: pointer;
}

.filterbox__summary::-webkit-details-marker { display: none; }

.filterbox__body {
    display: grid;
    gap: 4px;
}

@media (min-width: 641px) {
    /* Sur grand écran, le repli est neutralisé : filtres toujours visibles. */
    .filterbox:not([open]) .filterbox__body { display: grid; }
}

@media (max-width: 640px) {
    .filterbox__summary {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px 10px;
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--bg-soft);
        font-family: var(--mono);
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text);
    }

    .filterbox[open] .filterbox__summary { margin-bottom: 10px; }

    .filterbox__hint {
        font-family: var(--sans, inherit);
        letter-spacing: 0;
        text-transform: none;
        color: var(--muted);
    }

    .filterbox__active { color: var(--accent); }
}

/* Bandeau d'aperçu (administration) */
.preview-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px var(--gutter);
    background: #f0c674;
    color: #1b1405;
    font-size: 0.82rem;
}

.preview-bar__tag {
    padding: 3px 9px;
    border-radius: 999px;
    background: #1b1405;
    color: #f0c674;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.preview-bar__text { flex: 1 1 220px; }

.preview-bar__back {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Retour rapide à l'administration — visible uniquement une fois connecté */
.admin-fab {
    position: fixed;
    top: 80px;
    left: 14px;
    z-index: 150;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--head-bg);
    backdrop-filter: blur(12px) saturate(140%);
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.9);
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.admin-fab svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.admin-fab:hover,
.admin-fab:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .admin-fab {
        top: 74px;
        left: 10px;
        padding: 7px 11px 7px 9px;
        font-size: 0.62rem;
    }
}

/* Téléchargements multiples sur une fiche */
.downloads { align-items: flex-start; }

.downloads__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.downloads__item {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.downloads__note {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    opacity: 0.72;
}

.alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-block: 22px;
}

.alpha a {
    min-width: 28px;
    padding: 4px 6px;
    text-align: center;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    transition: background 0.12s var(--ease), color 0.12s var(--ease);
}

.alpha a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.alpha a.is-active {
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
}

.alpha--inline {
    margin: 0;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 26px;
}

.tabs a {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.84rem;
    color: var(--text-dim);
    transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.tabs a:hover {
    border-color: #3d2f5c;
    color: var(--text);
}

.tabs a.is-active {
    background: var(--text);
    border-color: var(--text);
    color: var(--ink, #140a26);
    color: #140a26;
    font-weight: 600;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* =========================================================================
   12. Pagination
   ====================================================================== */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: clamp(30px, 4vw, 48px);
}

.pager__btn {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-dim);
    transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.pager__btn:hover {
    border-color: #3d2f5c;
    color: var(--text);
}

.pager__btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.pager__pages {
    display: flex;
    align-items: center;
    gap: 3px;
}

.pager__pages a,
.pager__pages span {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding-inline: 6px;
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--muted);
}

.pager__pages a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.pager__pages [aria-current="page"] {
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
}

.pager__gap {
    color: var(--muted);
    opacity: 0.5;
}

/* =========================================================================
   13. États vides, notices
   ====================================================================== */
.empty {
    padding: 54px 24px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}

.empty__title {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.4em;
}

.empty a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notice {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--bg-soft);
    margin-bottom: 28px;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.notice p {
    margin: 0;
}

.notice strong {
    color: var(--text);
}

/* =========================================================================
   14. Page console
   ====================================================================== */
.console-hero {
    padding-block: clamp(28px, 4vw, 50px) clamp(26px, 3vw, 40px);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(80% 130% at 85% 0%, color-mix(in oklab, var(--brand) 18%, transparent), transparent 62%),
        linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.console-hero__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.console-hero h1 {
    margin-bottom: 0.25em;
}

.console-hero__lede {
    max-width: 58ch;
    color: var(--text-dim);
    margin: 0;
    font-size: 0.98rem;
}

.console-hero__stats {
    display: flex;
    gap: 34px;
    margin: 0;
}

.console-hero__stats dt {
    font-family: var(--mono);
    font-size: 0.63rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.console-hero__stats dd {
    margin: 2px 0 0;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* =========================================================================
   15. Page consoles (groupes)
   ====================================================================== */
.maker {
    padding-block: clamp(22px, 3vw, 34px);
    border-bottom: 1px solid var(--line);
}

.maker:first-child {
    padding-top: 0;
}

.maker:last-child {
    border-bottom: 0;
}

.maker__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
}

.maker__head h2 {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-family: var(--mono);
    font-weight: 500;
    color: var(--text-dim);
}

.maker__count {
    font-size: 0.74rem;
    color: var(--muted);
}

.maker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.console-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(165deg, color-mix(in oklab, var(--brand) 10%, transparent), transparent 60%),
        var(--bg-soft);
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.console-card:hover {
    border-color: color-mix(in oklab, var(--brand) 45%, var(--line));
    transform: translateY(-2px);
}

.console-card__year {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.console-card__name {
    font-size: 1.15rem;
    font-weight: 600;
}

.console-card__summary {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.console-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.73rem;
    color: var(--text-dim);
}

.console-card__foot svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

/* =========================================================================
   16. Fiche de jeu
   ====================================================================== */
.game__head {
    padding-block: clamp(24px, 3.4vw, 42px) clamp(18px, 2.4vw, 26px);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.game__title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.game__title h1 {
    margin-bottom: 0.42em;
    max-width: 22ch;
}

.views {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    white-space: nowrap;
    padding-bottom: 6px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chips li {
    font-size: 0.74rem;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-dim);
    background: var(--surface);
}

.game__body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 340px);
    gap: clamp(30px, 4vw, 64px);
    padding-block: clamp(28px, 3.6vw, 46px) clamp(48px, 6vw, 88px);
    align-items: start;
}

.game__cover {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 26px;
    background:
        radial-gradient(100% 100% at 22% 8%, color-mix(in oklab, var(--brand) 55%, transparent), transparent 66%),
        radial-gradient(90% 90% at 85% 100%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 70%),
        var(--surface-2);
}

.game__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 4px);
    opacity: 0.5;
    pointer-events: none;
}

.game__cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game__mono {
    font-size: clamp(3.4rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.07em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
}

.game__mono-console {
    position: absolute;
    bottom: 14px;
    right: 16px;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.game__summary {
    font-size: clamp(1.02rem, 1.4vw, 1.16rem);
    line-height: 1.55;
    color: var(--text);
    margin-bottom: 1.2em;
}

.game__side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 92px;
}

.facts {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    overflow: hidden;
}

.facts__title {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    margin: 0;
}

.facts dl {
    margin: 0;
    padding: 6px 16px 12px;
}

.facts dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.85rem;
}

.facts dl > div:last-child {
    border-bottom: 0;
}

.facts dt {
    color: var(--muted);
    flex-shrink: 0;
}

.facts dd {
    margin: 0;
    text-align: right;
    color: var(--text);
}

.facts dd a {
    color: var(--accent);
}

.facts p {
    padding: 0 16px 14px;
    font-size: 0.85rem;
}

.share {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: var(--bg-soft);
}

.share__title {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.share__row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.share__btn {
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.76rem;
    color: var(--text-dim);
    transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.share__btn:hover {
    border-color: var(--line-strong);
    color: var(--accent);
}

.report {
    font-size: 0.84rem;
    color: var(--muted);
    padding: 4px 2px;
}

.panel {
    margin-top: 34px;
    padding: clamp(20px, 2.6vw, 28px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
}

.panel__title {
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.panel__aside {
    margin: 16px 0 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.panel__aside a {
    color: var(--accent);
}

.where {
    display: grid;
    gap: 8px;
}

.where__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.where__item:hover {
    border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
    background: var(--surface-2);
}

.where__kind {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    min-width: 62px;
}

.where__label {
    font-size: 0.9rem;
    font-weight: 500;
}

.where__item svg {
    width: 14px;
    height: 14px;
    margin-left: auto;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--line));
    border-radius: 12px;
    background: var(--accent-soft);
}


/* Un peu d'air entre la description et le bloc de téléchargement de la fiche. */
.game__main .prose + .download {
    margin-top: 30px;
}

.download__title {
    font-weight: 600;
    margin-bottom: 2px;
}

.download__note {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0;
}

/* =========================================================================
   17. Prose
   ====================================================================== */
.prose {
    max-width: 72ch;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.72;
}

.prose h2,
.prose h3 {
    color: var(--text);
    margin: 1.9em 0 0.55em;
    scroll-margin-top: 90px;
}

.prose h2 {
    font-size: 1.35rem;
}

.prose h3 {
    font-size: 1.08rem;
}

.prose p {
    margin: 0 0 1.05em;
}

.prose ul,
.prose ol {
    margin: 0 0 1.2em;
    padding-left: 0;
}

.prose ul li,
.prose ol li {
    position: relative;
    padding-left: 1.35em;
    margin-bottom: 0.5em;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 1px;
}

.prose ol {
    counter-reset: li;
}

.prose ol li::before {
    counter-increment: li;
    content: counter(li) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--mono);
    font-size: 0.8em;
    color: var(--accent);
}

.prose a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: color-mix(in oklab, var(--accent) 55%, transparent);
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--accent);
}

.prose strong {
    color: var(--text);
    font-weight: 600;
}

.prose blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 18px;
    border-left: 2px solid var(--accent);
    color: var(--text);
    font-size: 1.04em;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose pre {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    overflow-x: auto;
    font-size: 0.85rem;
}

.prose pre code {
    background: none;
    border: 0;
    padding: 0;
}

/* Largeur de lecture volontairement limitée (confort de lecture), mais
   centrée dans la colonne pour éviter un grand vide à droite. */
.prose--article {
    max-width: 72ch;
    margin-inline: auto;
    font-size: 1.06rem;
    color: var(--text-dim);
}

.prose__lede {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 1.3em;
}

.prose--page {
    max-width: 74ch;
}

/* =========================================================================
   18. Article
   ====================================================================== */
.post__head {
    padding-block: clamp(28px, 4vw, 52px) clamp(22px, 3vw, 32px);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.post__head-inner {
    max-width: 960px;
    margin-inline: auto;
}

.post__title {
    max-width: 22ch;
    margin-bottom: 0.4em;
}

.post__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0;
}

.post__body {
    max-width: 960px;
    margin-inline: auto;
    padding-block: clamp(28px, 4vw, 52px);
}

.post__cover {
    margin: 0 0 2.2em;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 7;
}

.post__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: clamp(34px, 4vw, 54px);
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.post__foot-label {
    font-weight: 500;
    margin-bottom: 0.2em;
}

/* =========================================================================
   19. Outils / détail
   ====================================================================== */
.tool-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.tool-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.tool-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tool-card__name {
    font-weight: 600;
    font-size: 1rem;
}

.tool-card__meta {
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.tool-card__license {
    font-size: 0.64rem;
    padding: 2px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    white-space: nowrap;
}

.tool-card__summary {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.tool-card__console {
    font-size: 0.72rem;
    color: var(--accent);
    margin-top: 2px;
}

.tool-card--lg {
    padding: 20px;
    min-height: 150px;
}

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: start;
}

.detail__main > .facts {
    margin-bottom: 20px;
}

.detail__actions {
    margin-bottom: 24px;
}

.result-group {
    margin-top: 40px;
}

.result-group__title {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.result-list {
    display: grid;
    gap: 2px;
}

.result-list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--line-soft);
}

.result-list a:hover strong {
    color: var(--accent);
}

.result-list strong {
    font-weight: 500;
}

.result-list span {
    font-size: 0.76rem;
    color: var(--muted);
}

/* =========================================================================
   20. Recherche
   ====================================================================== */
.search-page {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    max-width: 540px;
}

.search-page input {
    height: 46px;
}

.search-modal {
    width: min(620px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    color: var(--text);
    box-shadow: 0 40px 90px -40px #000;
    margin-top: 12vh;
}

.search-modal::backdrop {
    background: rgba(6, 4, 12, 0.72);
    backdrop-filter: blur(6px);
}

.search-modal__form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.search-modal__form svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    flex-shrink: 0;
}

.search-modal__form input {
    border: 0;
    background: transparent;
    height: auto;
    font-size: 1.02rem;
}

.search-modal__form input:focus {
    outline: none;
}

.search-modal__results {
    max-height: 52vh;
    overflow-y: auto;
    padding: 8px;
}

.search-modal__results a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 9px;
}

.search-modal__results a:hover,
.search-modal__results a:focus {
    background: var(--surface-2);
}

.search-modal__results .s-type {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    min-width: 62px;
}

.search-modal__results .s-text {
    display: grid;
    min-width: 0;
}

.search-modal__results .s-text strong {
    font-weight: 500;
    font-size: 0.9rem;
}

.search-modal__results .s-text span {
    font-size: 0.73rem;
    color: var(--muted);
}

.search-modal__empty {
    margin: 0;
    padding: 18px 16px;
    font-size: 0.84rem;
    color: var(--muted);
}

.search-modal__hint {
    margin: 0;
    padding: 10px 16px 14px;
    font-size: 0.7rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

/* Plan du site */
.sitemap {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.sitemap__col h2 {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 12px;
}

.sitemap__col ul {
    display: grid;
    gap: 6px;
    margin-bottom: 28px;
}

.sitemap__col a {
    font-size: 0.88rem;
    color: var(--text-dim);
}

.sitemap__col a:hover {
    color: var(--accent);
}

.sitemap__games {
    columns: 2;
    column-gap: 24px;
}

.sitemap__games li {
    break-inside: avoid;
    margin-bottom: 6px;
}

/* =========================================================================
   21. Consentement & publicité
   ====================================================================== */
.consent {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 150;
    width: min(940px, calc(100vw - 24px));
    border: 1px solid #333b34;
    border-radius: var(--radius-lg);
    background: rgba(19, 14, 31, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 70px -30px #000;
}

.consent__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 18px 22px;
}

.consent h2 {
    font-size: 0.98rem;
    margin-bottom: 0.25em;
}

.consent p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.consent a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consent__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ad-slot {
    display: block;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: var(--bg-soft);
    min-height: 120px;
}

.ad-slot__label {
    display: block;
    font-family: var(--mono);
    font-size: 0.56rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6e766e;
    margin-bottom: 8px;
}

.ad-slot__box {
    min-height: 90px;
}

/* =========================================================================
   22. Pied de page
   ====================================================================== */
.site-foot {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
    padding-top: clamp(40px, 5vw, 64px);
}

.site-foot__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.8fr));
    gap: clamp(28px, 4vw, 56px);
    padding-bottom: clamp(30px, 4vw, 48px);
}

.site-foot__desc {
    margin: 16px 0 10px;
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 38ch;
}

.site-foot__note {
    font-size: 0.74rem;
    color: var(--muted);
    margin: 0;
}

.site-foot__col h2 {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 14px;
}

.site-foot__col ul {
    display: grid;
    gap: 3px;
}

.site-foot__col a,
.site-foot__col button {
    font-size: 0.86rem;
    color: var(--text-dim);
    transition: color 0.15s var(--ease);
}

.site-foot__col a:hover,
.site-foot__col button:hover {
    color: var(--accent);
}

.site-foot__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.74rem;
    color: #756a8c;
}

.site-foot__bottom p {
    margin: 0;
}

/* =========================================================================
   23. Erreurs
   ====================================================================== */
.error-page {
    padding-block: clamp(56px, 9vw, 120px);
}

.error-page--inline .wrap {
    max-width: 640px;
}

.error-page__code {
    font-family: var(--mono);
    font-size: clamp(3.4rem, 9vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1px var(--line);
    margin-bottom: 0.2em;
}

.error-page h1 {
    margin-bottom: 0.4em;
}

.error-page__text {
    color: var(--muted);
    max-width: 46ch;
}

.error-page__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 26px;
}

/* =========================================================================
   24. Flash
   ====================================================================== */
.flashes {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}

.flash {
    margin: 0;
    padding: 10px 14px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 0.86rem;
}

.flash--success { border-color: #3c6b35; color: #bdf0a8; }
.flash--error { border-color: #6b3535; color: #ffb0c4; }

/* =========================================================================
   25. Responsive
   ====================================================================== */
@media (max-width: 1080px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .game__body {
        grid-template-columns: 1fr;
    }

    .game__side {
        position: static;
    }

    .detail {
        grid-template-columns: 1fr;
    }

    .site-foot__grid {
        grid-template-columns: 1fr 1fr;
    }

    .filters {
        grid-template-columns: 1fr 1fr;
    }

    .field--grow {
        grid-column: 1 / -1;
    }

    .filters__submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .site-head__inner {
        gap: 12px;
    }

    .nav {
        position: fixed;
        inset: 68px 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 10px var(--gutter) 22px;
        background: var(--nav-bg);
        border-bottom: 1px solid var(--line);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
    }

    .nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line-soft);
        font-size: 1rem;
    }

    .nav a[aria-current="page"]::after {
        display: none;
    }

    body.nav-open .nav {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .burger {
        display: flex;
    }

    .head-cta,
    .icon-btn__label {
        display: none;
    }

    .icon-btn {
        width: 40px;
        justify-content: center;
        padding: 0;
    }

    .icon-btn .kbd {
        display: none;
    }

    .console-hero__stats {
        gap: 24px;
    }

    .section__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .post__foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .consent__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .grid--games {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .card__body {
        padding: 10px 11px 12px;
    }

    .card__title {
        font-size: 0.86rem;
    }

    .card__excerpt {
        display: none;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .site-foot__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pager__pages {
        display: none;
    }

    .site-foot__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .ticker__track {
        animation: none;
    }
}

/* =========================================================================
   20. Média d'actualité
   ====================================================================== */
.hero--news {
    background: #0a0712 url("/assets/img/ambiance.jpg") center / cover no-repeat;
}

.hero__inner--news {
    display: block;
    padding-block: clamp(26px, 3.4vw, 42px) clamp(40px, 5vw, 68px);
}

.masthead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-bottom: 16px;
    margin-bottom: clamp(22px, 3vw, 34px);
    border-bottom: 1px solid var(--line);
}

.masthead__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.masthead__brand strong {
    font-weight: 600;
    color: var(--accent);
}

.masthead__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.masthead__stats b {
    color: var(--text);
    font-weight: 600;
}

.news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(22px, 3.4vw, 48px);
    align-items: start;
}

.lead {
    display: block;
}

.lead__media {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-2);
    display: grid;
    place-items: center;
}

.lead__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.lead:hover .lead__media img {
    transform: scale(1.02);
}

.lead__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10, 7, 18, 0.55));
    pointer-events: none;
}

.lead__cat {
    position: absolute;
    z-index: 1;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lead__title {
    margin: 0.6em 0 0.4em;
    font-size: clamp(1.75rem, 3.6vw, 3rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.lead:hover .lead__title {
    color: var(--accent);
}

.lead__excerpt {
    margin: 0;
    max-width: 62ch;
    color: var(--text-dim);
    font-size: clamp(0.95rem, 1.2vw, 1.06rem);
    line-height: 1.55;
}

.lead__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.lead__meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted);
}

.news-rail {
    border-top: 1px solid var(--line);
}

.news-rail__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 12px 0 10px;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.news-rail__head a {
    color: var(--accent);
    letter-spacing: 0.04em;
}

.news-rail ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rail-item {
    border-top: 1px solid var(--line-soft);
}

.rail-item a {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
}

.rail-item__thumb {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
    display: grid;
    place-items: center;
}

.rail-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rail-item__cat {
    display: block;
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.rail-item__title {
    display: block;
    margin-top: 3px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.32;
    letter-spacing: -0.01em;
}

.rail-item:hover .rail-item__title {
    color: #ffffff;
}

.rail-item__date {
    display: block;
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--muted);
}

.cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.cats a {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--text-dim);
    background: var(--surface);
}

.cats a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =========================================================================
   21. Bibliothèque (jaquettes)
   ====================================================================== */
.grid--shelf {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: clamp(14px, 1.8vw, 24px);
}

.grid--shelf .card {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.grid--shelf .card:hover {
    background: transparent;
    transform: none;
}

.grid--shelf .card__media {
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 38px -26px rgba(0, 0, 0, 0.95);
}

.grid--shelf .card__body {
    padding: 10px 2px 0;
}

.grid--shelf .card__title {
    font-size: 0.86rem;
    line-height: 1.3;
}

.grid--shelf .card__meta {
    font-size: 0.7rem;
}

.grid--shelf .card__tag {
    top: auto;
    bottom: 8px;
    left: 8px;
    font-size: 0.55rem;
    padding: 3px 6px;
}

/* =========================================================================
   22. Fiche de jeu : jaquette en tête
   ====================================================================== */
.game__top {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(22px, 3.4vw, 48px);
    align-items: start;
    padding-block: clamp(24px, 3vw, 36px);
}

.game__art {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 28px 50px -32px rgba(0, 0, 0, 0.95);
    background:
        radial-gradient(110% 90% at 20% 6%, color-mix(in oklab, var(--brand) 52%, transparent), transparent 66%),
        radial-gradient(90% 90% at 90% 100%, color-mix(in oklab, var(--brand) 24%, transparent), transparent 72%),
        var(--surface-2);
}

.game__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 5%),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 4px);
    opacity: 0.6;
    pointer-events: none;
}

.game__art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game__art .game__mono {
    font-size: clamp(3rem, 8vw, 5.2rem);
}

.game__intro h1 {
    margin: 0.16em 0 0.32em;
    font-size: clamp(2rem, 3.8vw, 3.3rem);
    max-width: 20ch;
}

.game__intro .chips {
    margin-bottom: 18px;
}

.game__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.game__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    column-gap: 28px;
    margin: 22px 0 0;
    border-top: 1px solid var(--line);
}

.game__facts > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.84rem;
}

.game__facts dt {
    color: var(--muted);
    flex-shrink: 0;
}

.game__facts dd {
    margin: 0;
    text-align: right;
}

.game__facts dd a {
    color: var(--accent);
}

@media (max-width: 860px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .game__top {
        grid-template-columns: 1fr;
    }

    .game__art {
        max-width: 240px;
    }
}

/* =========================================================================
   Thème clair : ajustements des surfaces qui utilisent une image sombre
   ====================================================================== */
html[data-theme="light"] .hero,
html[data-theme="light"] .hero--news {
    background-color: #e2d8f1;
}

html[data-theme="light"] .hero::before {
    background:
        linear-gradient(180deg, rgba(236, 228, 247, 0.965) 0%, rgba(236, 228, 247, 0.98) 46%, var(--bg) 100%),
        radial-gradient(80% 70% at 78% 30%, rgba(109, 40, 217, 0.1), transparent 70%);
}

/* Monogrammes : en clair, les dégradés de marque deviennent pastel. */
html[data-theme="light"] .game__mono,
html[data-theme="light"] .card__mono {
    color: rgba(27, 17, 45, 0.82);
    text-shadow: 0 8px 30px rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .game__mono-console {
    color: rgba(27, 17, 45, 0.62);
}

html[data-theme="light"] .consent {
    border-color: var(--line);
    background: rgba(247, 242, 255, 0.97);
}

html[data-theme="light"] .site-head.is-scrolled {
    box-shadow: 0 12px 30px -26px rgba(45, 22, 90, 0.35);
}

html[data-theme="light"] .search-modal {
    box-shadow: 0 40px 90px -50px rgba(45, 22, 90, 0.5);
}

/* =========================================================================
   Thèmes : sélecteur dans l'en-tête
   ====================================================================== */
.theme-picker {
    position: relative;
}

.theme-picker > summary {
    list-style: none;
    cursor: pointer;
}

.theme-picker > summary::-webkit-details-marker {
    display: none;
}

.theme-picker[open] > summary {
    border-color: var(--accent);
    color: var(--text);
}

.theme-picker__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 130;
    display: grid;
    gap: 2px;
    width: 228px;
    max-width: calc(100vw - 24px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.theme-picker__title {
    margin: 4px 8px 6px;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.theme-picker__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: none;
    color: var(--text);
    font-size: 0.86rem;
    text-align: left;
}

.theme-picker__item:hover {
    background: var(--surface-2);
}

.theme-picker__item[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.theme-picker__item[aria-pressed="true"]::after {
    content: "✓";
    margin-left: auto;
    color: var(--accent);
    font-size: 0.8rem;
}

.theme-picker__swatch {
    width: 22px;
    height: 22px;
    flex: none;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: linear-gradient(135deg, #0a0712 45%, #b98bff 55%);
}

.theme-picker__swatch--light { background: linear-gradient(135deg, #f7f3ff 45%, #6d28d9 55%); }
.theme-picker__swatch--noel { background: linear-gradient(135deg, #0b2036 38%, #6fc3ff 62%, #f2f8ff 88%); }
.theme-picker__swatch--halloween { background: linear-gradient(135deg, #1f1210 40%, #ff8b3d 65%, #b06bff 90%); }
.theme-picker__swatch--mario { background: linear-gradient(135deg, #101d3c 38%, #e63946 62%, #ffd23f 88%); }
.theme-picker__swatch--minecraft { background: linear-gradient(135deg, #7cc94b 0 38%, #83552f 38% 62%, #58cfe2 62% 100%); }
.theme-picker__swatch--gta6 { background: linear-gradient(135deg, #1b0f2e 38%, #ff4fa3 64%, #4de1ff 90%); }

/* =========================================================================
   23. Réseaux sociaux & entraide Discord
   ====================================================================== */
.site-foot__social {
    margin-top: 18px;
}

.site-foot__social-title {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social__link {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.76rem;
    color: var(--text-dim);
    transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.social__link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.report__discord {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.report__discord-title {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
}

.report__discord p {
    font-size: 0.8rem;
    line-height: 1.5;
}

.report__discord .btn {
    margin-top: 6px;
}

/* =========================================================================
   24. Blocs de contenu des articles
   ====================================================================== */
.blocks {
    display: grid;
    gap: 1.15em;
}

.block {
    margin: 0;
}

.block--text p:last-child,
.block--quote p:last-child,
.block--note p:last-child,
.block--list ul:last-child,
.block--list ol:last-child {
    margin-bottom: 0;
}

.block--text-lede {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text);
}

.block--text-small {
    font-size: 0.9rem;
    color: var(--muted);
}

.block--heading {
    color: var(--text);
    margin: 1.5em 0 0.2em;
    scroll-margin-top: 90px;
}

h2.block--heading {
    font-size: 1.35rem;
}

h3.block--heading {
    font-size: 1.08rem;
}

.block--image {
    margin: 1.4em 0;
}

.block--image img {
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.block--image-wide img {
    max-width: 100%;
}

.block--image figcaption {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--muted);
}

.block--quote {
    padding: 4px 0 4px 20px;
    border-left: 2px solid var(--accent);
    color: var(--text);
    font-size: 1.08em;
}

.block--quote-accent {
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent-soft);
}

.block--note {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 0.95rem;
}

.block--note-info {
    border-color: color-mix(in oklab, var(--accent) 30%, var(--line));
    background: var(--accent-soft);
}

.block--note-tip {
    border-left: 3px solid var(--accent-2);
}

.block--note-warning {
    border-left: 3px solid var(--warn);
}

.block--separator {
    height: 0;
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--line);
}

/* =========================================================================
   25. Maintenance
   ====================================================================== */
.maintenance-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.maintenance {
    width: min(600px, 100%);
}

.maintenance h1 {
    margin: 8px 0 16px;
}

.maintenance__lede {
    color: var(--text-dim);
    font-size: 1.02rem;
}

.maintenance__lede span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.maintenance__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

@media (max-width: 620px) {
    .block--image img {
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .site-head__inner {
        gap: 8px;
    }

    .brand__glyph {
        width: 24px;
        height: 24px;
    }

    .brand__word {
        font-size: 1rem;
    }

    .brand__tld {
        display: none;
    }

    .site-head__actions {
        gap: 6px;
    }

    .icon-btn,
    .burger {
        width: 36px;
        height: 36px;
    }
}

/* =========================================================================
   Décors animés des thèmes
   ====================================================================== */
.fx-scene {
    position: fixed;
    inset: 0;
    z-index: 95;
    overflow: hidden;
    pointer-events: none;
}

.fx-layer {
    position: absolute;
    inset: 0;
    display: none;
}

html[data-theme="noel"] .fx-layer--noel,
html[data-theme="halloween"] .fx-layer--halloween,
html[data-theme="mario"] .fx-layer--mario,
html[data-theme="minecraft"] .fx-layer--minecraft,
html[data-theme="gta6"] .fx-layer--gta6 {
    display: block;
}

/* Le sol du décor Mario occupe le bas de l'écran : on réserve sa hauteur
   pour que le bas du pied de page reste lisible en fin de document. */
html[data-theme="mario"] body {
    background: transparent;
    padding-bottom: 64px;
}

/* GTA 6 : deux illustrations officielles en fond fixe, tirées au hasard à
   chaque chargement (attribut data-gta-bg posé côté serveur), recouvertes d'un
   voile sombre pour la lisibilité. Un dégradé de secours reste dessous. */
html[data-theme="gta6"] {
    --gta6-bg: url("../img/gta6-bg.jpg");
    background-color: #0e0818;
    background-image:
        linear-gradient(180deg, rgba(10, 5, 20, 0.58) 0%, rgba(10, 5, 20, 0.52) 42%, rgba(10, 5, 20, 0.5) 62%, rgba(10, 5, 20, 0.68) 100%),
        var(--gta6-bg),
        linear-gradient(180deg, #140c2a 0%, #291547 34%, #4a2154 62%, #160b22 100%);
    background-position: center, center bottom, center;
    background-size: cover, cover, cover;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-attachment: fixed, fixed, fixed;
}

html[data-theme="gta6"][data-gta-bg="2"] {
    --gta6-bg: url("../img/gta6-bg-2.jpg");
}

html[data-theme="gta6"] body {
    background: transparent;
}

/* L'en-tête de une a son propre fond : en GTA 6 on le rend transparent pour
   laisser voir l'illustration, avec un voile qui protège le texte à gauche. */
html[data-theme="gta6"] .hero,
html[data-theme="gta6"] .hero--news {
    background: transparent;
}

html[data-theme="gta6"] .hero::before {
    background:
        linear-gradient(90deg, rgba(10, 5, 20, 0.76) 0%, rgba(10, 5, 20, 0.56) 46%, rgba(10, 5, 20, 0.2) 100%),
        linear-gradient(180deg, rgba(10, 5, 20, 0.32) 0%, rgba(10, 5, 20, 0.46) 58%, rgba(10, 5, 20, 0.54) 100%);
}

@media (max-width: 720px) {
    html[data-theme="gta6"] {
        background-attachment: fixed, fixed, fixed;
        background-size: cover, cover, auto;
    }

    html[data-theme="gta6"] .hero::before {
        background:
            linear-gradient(180deg, rgba(10, 5, 20, 0.6) 0%, rgba(10, 5, 20, 0.5) 55%, rgba(10, 5, 20, 0.54) 100%);
    }
}

/* Le décor du thème Mario est une image de fond fixe : les surfaces opaques
   (en-tête, cartes, pied de page) restent lisibles par-dessus. */
@media (max-width: 720px) {
    html[data-theme="mario"] {
        background-attachment: scroll;
        background-size: auto 100vh;
    }
}

/* --- Noël : neige ------------------------------------------------------ */
.fx-snow {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: #ffffff;
    animation: fx-snow-fall 20s linear infinite;
}

.fx-snow--1 {
    width: 4px;
    height: 4px;
    opacity: 0.85;
    box-shadow:
        4vw -12vh 0 0 rgba(255, 255, 255, 0.9),
        11vw -48vh 0 1px rgba(255, 255, 255, 0.72),
        18vw -84vh 0 0 rgba(255, 255, 255, 0.85),
        26vw -30vh 0 1px rgba(255, 255, 255, 0.7),
        33vw -66vh 0 0 rgba(255, 255, 255, 0.8),
        41vw -96vh 0 1px rgba(255, 255, 255, 0.62),
        48vw -20vh 0 0 rgba(255, 255, 255, 0.86),
        55vw -54vh 0 1px rgba(255, 255, 255, 0.72),
        62vw -78vh 0 0 rgba(255, 255, 255, 0.8),
        69vw -38vh 0 1px rgba(255, 255, 255, 0.68),
        76vw -92vh 0 0 rgba(255, 255, 255, 0.84),
        83vw -14vh 0 1px rgba(255, 255, 255, 0.72),
        90vw -60vh 0 0 rgba(255, 255, 255, 0.78),
        97vw -44vh 0 1px rgba(255, 255, 255, 0.7);
}

.fx-snow--2 {
    width: 3px;
    height: 3px;
    opacity: 0.7;
    animation-duration: 30s;
    animation-delay: -8s;
    box-shadow:
        7vw -30vh 0 0 #fff,
        15vw -74vh 0 0 #fff,
        23vw -18vh 0 1px #fff,
        31vw -58vh 0 0 #fff,
        38vw -90vh 0 0 #fff,
        46vw -42vh 0 1px #fff,
        53vw -16vh 0 0 #fff,
        60vw -70vh 0 0 #fff,
        67vw -100vh 0 0 #fff,
        74vw -34vh 0 1px #fff,
        81vw -56vh 0 0 #fff,
        88vw -86vh 0 0 #fff,
        94vw -24vh 0 0 #fff;
}

.fx-snow--3 {
    width: 7px;
    height: 7px;
    opacity: 0.45;
    filter: blur(1px);
    animation-duration: 42s;
    animation-delay: -20s;
    box-shadow:
        9vw -24vh 0 0 #fff,
        20vw -62vh 0 0 #fff,
        29vw -96vh 0 0 #fff,
        42vw -34vh 0 0 #fff,
        51vw -78vh 0 0 #fff,
        63vw -50vh 0 0 #fff,
        72vw -14vh 0 0 #fff,
        84vw -88vh 0 0 #fff,
        93vw -40vh 0 0 #fff;
}

@keyframes fx-snow-fall {
    from { transform: translate3d(0, -12vh, 0); }
    to   { transform: translate3d(0, 112vh, 0); }
}

/* --- Noël : Père Noël pixel art qui danse, en bas à droite ------------ */
.fx-santa {
    position: absolute;
    right: clamp(10px, 2vw, 28px);
    bottom: clamp(10px, 2vh, 24px);
    width: 84px;
    height: 112px;
    background: url("../img/santa-pixel.svg") center bottom / contain no-repeat;
    image-rendering: pixelated;
    transform-origin: 50% 100%;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
    animation: fx-santa-dance 1.4s ease-in-out infinite;
}

@keyframes fx-santa-dance {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    25%      { transform: translateY(-7px) rotate(-1deg); }
    50%      { transform: translateY(0) rotate(5deg); }
    75%      { transform: translateY(-7px) rotate(1deg); }
}

@media (max-width: 700px) {
    .fx-santa {
        width: 58px;
        height: 77px;
    }
}

/* --- Halloween : lueurs, fantômes et citrouilles ----------------------- */
.fx-layer--halloween::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(42vw 42vh at 10% 102%, rgba(255, 122, 26, 0.32), transparent 70%),
        radial-gradient(36vw 36vh at 90% 98%, rgba(176, 107, 255, 0.24), transparent 70%),
        radial-gradient(70vw 30vh at 50% 110%, rgba(255, 160, 60, 0.18), transparent 72%);
    animation: fx-halloween-flicker 7s ease-in-out infinite;
}

@keyframes fx-halloween-flicker {
    0%, 100% { opacity: 0.78; }
    42%      { opacity: 1; }
    58%      { opacity: 0.68; }
}

.fx-ghost,
.fx-pumpkin {
    position: absolute;
    opacity: 0;
    animation: fx-ghost-appear 26s ease-in-out infinite;
}

.fx-ghost svg,
.fx-pumpkin svg {
    display: block;
    width: 100%;
    height: auto;
}

.fx-ghost {
    width: 40px;
}

.fx-ghost svg {
    filter: drop-shadow(0 0 18px rgba(190, 170, 255, 0.5));
}

.fx-ghost--1 {
    left: 5vw;
    top: 22vh;
    animation-delay: 3s;
}

.fx-ghost--2 {
    right: 7vw;
    top: 56vh;
    width: 30px;
    animation-delay: 15s;
}

@keyframes fx-ghost-appear {
    0%, 72%, 100% { opacity: 0; transform: translateY(14px); }
    78%, 92%      { opacity: 0.85; transform: translateY(-10px); }
}

.fx-pumpkin {
    width: 46px;
    animation-name: fx-pumpkin-pop;
    animation-duration: 32s;
}

.fx-pumpkin svg {
    filter: drop-shadow(0 0 18px rgba(255, 120, 20, 0.5));
}

.fx-pumpkin--1 {
    left: 3vw;
    bottom: 7vh;
    animation-delay: 1s;
}

.fx-pumpkin--2 {
    right: 5vw;
    bottom: 17vh;
    width: 34px;
    animation-delay: 19s;
}

.fx-pumpkin--3 {
    right: 26vw;
    bottom: 3vh;
    width: 28px;
    animation-delay: 27s;
}

@keyframes fx-pumpkin-pop {
    0%, 80%, 100% { opacity: 0; transform: translateY(12px) scale(0.9); }
    85%, 95%      { opacity: 0.92; transform: translateY(0) scale(1); }
}

/* --- Super Mario SNES : ciel, briques, tuyau et Mario qui court --------- */
.fx-layer--mario {
    background: linear-gradient(180deg, rgba(110, 192, 255, 0.12), transparent 34%, transparent 62%, rgba(255, 210, 63, 0.06));
}

.fx-layer--mario::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: #8c4a13 url("../img/mario-ground.png") repeat-x bottom / 64px 64px;
    image-rendering: pixelated;
    box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.35);
}

.fx-pipe {
    position: absolute;
    left: 6vw;
    bottom: 64px;
    width: 60px;
    height: 86px;
    background: linear-gradient(90deg, #046b04 0 7%, #00a800 7% 30%, #6fdc6f 30% 44%, #00a800 44% 100%);
    box-shadow: 0 0 0 2px #063d06, inset -8px 0 0 rgba(0, 0, 0, 0.16);
    opacity: 0.92;
}

.fx-pipe::before {
    content: "";
    position: absolute;
    top: -14px;
    left: -6px;
    width: 72px;
    height: 16px;
    background: linear-gradient(90deg, #046b04 0 6%, #00a800 6% 28%, #8ae88a 28% 42%, #00a800 42% 100%);
    box-shadow: 0 0 0 2px #063d06;
}

.fx-coin {
    position: absolute;
    width: 24px;
    height: 24px;
    background: url("../img/mario-coin.png") center / contain no-repeat;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 6px rgba(255, 210, 63, 0.45));
    animation: fx-coin-bob 3.2s ease-in-out infinite;
}

.fx-coin--1 { left: 28vw; bottom: 92px; }
.fx-coin--2 { left: 50vw; bottom: 122px; animation-delay: 0.9s; }
.fx-coin--3 { left: 70vw; bottom: 96px; animation-delay: 1.7s; }

@keyframes fx-coin-bob {
    50% { transform: translateY(-10px); }
}

.fx-goal-pole {
    position: absolute;
    bottom: 64px;
    width: 32px;
    height: 142px;
    background: url("../img/mario-goal.png") center bottom / 32px 142px no-repeat;
    image-rendering: pixelated;
}

/* But de fin de niveau : deux poteaux rayés rapprochés. Mario passe devant
   celui de gauche et derrière celui de droite (jeu de plans). */
.fx-goal-pole--right {
    right: 4vw;
    z-index: 3;
}

.fx-goal-pole--left {
    right: calc(4vw + 82px);
    transform: scaleX(-1);
    z-index: 1;
}

.fx-mario {
    position: absolute;
    z-index: 2;
    bottom: 64px;
    left: 0;
    width: 32px;
    height: 38px;
    background: url("../img/mario-run-1.png") center bottom / 32px 38px no-repeat;
    image-rendering: pixelated;
    animation: fx-mario-cross 30s linear infinite, fx-mario-step 0.36s steps(1) infinite;
}

@keyframes fx-mario-cross {
    from { transform: translateX(-10vw); }
    to   { transform: translateX(110vw); }
}

@keyframes fx-mario-step {
    0%, 33.33%     { background-image: url("../img/mario-run-1.png"); }
    33.34%, 66.66% { background-image: url("../img/mario-run-2.png"); }
    66.67%, 100%   { background-image: url("../img/mario-run-3.png"); }
}

/* --- GTA 6 : coucher de soleil, néons et palmiers ---------------------- */
.fx-layer--gta6 {
    background: linear-gradient(180deg, rgba(255, 92, 138, 0.1), transparent 36%, transparent 58%, rgba(255, 162, 104, 0.1));
}

.fx-layer--gta6::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16vh;
    width: 46vh;
    height: 46vh;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 150, 90, 0.42), rgba(255, 79, 163, 0.2) 46%, transparent 72%);
    animation: fx-gta-sun 14s ease-in-out infinite;
}

@keyframes fx-gta-sun {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

.fx-glow {
    position: absolute;
    width: 55vw;
    height: 46vh;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 79, 163, 0.26), transparent);
    animation: fx-gta-glow 18s ease-in-out infinite;
}

.fx-glow--1 {
    top: 8vh;
    left: -12vw;
}

.fx-glow--2 {
    right: -14vw;
    bottom: 6vh;
    background: radial-gradient(closest-side, rgba(255, 162, 104, 0.22), transparent);
    animation-duration: 24s;
    animation-direction: reverse;
}

@keyframes fx-gta-glow {
    0%, 100% { opacity: 0.55; transform: translate3d(0, 0, 0); }
    50%      { opacity: 0.95; transform: translate3d(3vw, -3vh, 0); }
}

/* --- Minecraft : parois de la caverne, ouvertes sur le site ------------- */
.fx-layer--minecraft {
    background: none;
}

.fx-cave {
    position: absolute;
    top: 0;
    bottom: 0;
    /* La paroi ne dépasse jamais la marge libre entre le bord de l'écran et
       le contenu (marge du .wrap + gouttière), moins 4 px de respiration. */
    width: min(
        clamp(14px, 3.5vw, 72px),
        calc((100vw - min(100vw, calc(var(--wrap) + var(--gutter) * 2))) / 2 + var(--gutter) - 4px)
    );
    background-color: #2c2927;
    background-image: url("../img/minecraft-basalt.webp");
    background-size: 80px 80px;
    background-repeat: repeat;
    image-rendering: pixelated;
    filter: brightness(0.45) saturate(0.75);
}

/* Lueur de lave sur le haut des parois. */
.fx-cave::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 138, 58, 0.14), transparent 48%);
    pointer-events: none;
}

.fx-cave--left {
    left: 0;
    box-shadow: inset -14px 0 20px -10px rgba(0, 0, 0, 0.9);
}

.fx-cave--right {
    right: 0;
    box-shadow: inset 14px 0 20px -10px rgba(0, 0, 0, 0.9);
}

/* --- Confort et petits écrans ----------------------------------------- */
@media (max-width: 700px) {
    .fx-ghost {
        width: 30px;
    }

    .fx-pumpkin {
        width: 34px;
    }

    .fx-pipe {
        right: 4vw;
        width: 42px;
        height: 42px;
    }

    .fx-pipe::before {
        width: 50px;
    }

    .fx-mario {
        width: 28px;
        height: 33px;
        bottom: 64px;
        background-size: 28px 33px;
    }

    .fx-pipe {
        left: 5vw;
        width: 44px;
        height: 64px;
    }

    .fx-pipe::before {
        top: -11px;
        left: -5px;
        width: 54px;
        height: 13px;
    }

    .fx-coin--1 { left: 18vw; bottom: 90px; }
    .fx-coin--2 { bottom: 118px; }
    .fx-coin--3 { left: 82vw; bottom: 94px; }

    .fx-goal-pole--right { right: 3vw; }
    .fx-goal-pole--left { right: calc(3vw + 68px); }

    .fx-layer--mario::after {
        height: 34px;
    }

    html[data-theme="mario"] body {
        padding-bottom: 34px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .fx-scene .fx-snow,
    .fx-scene .fx-ghost,
    .fx-scene .fx-pumpkin,
    .fx-scene .fx-mario,
    .fx-scene .fx-cloud {
        display: none;
    }

    .fx-scene * {
        animation: none !important;
    }
}

html.reduced-motion .fx-scene .fx-snow,
html.reduced-motion .fx-scene .fx-ghost,
html.reduced-motion .fx-scene .fx-pumpkin,
html.reduced-motion .fx-scene .fx-mario,
html.reduced-motion .fx-scene .fx-cloud {
    display: none;
}

html.reduced-motion .fx-scene * {
    animation: none !important;
}

@media print {
    .fx-scene {
        display: none;
    }
}


/* =========================================================================
   23. Fiche de jeu : fond image / vidéo, avis des joueurs
   ====================================================================== */
.game__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.game__hero-frame {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.game__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 177.78vh;
    min-height: 100%;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.game__hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game__hero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(10, 7, 18, 0.78) 0%, rgba(10, 7, 18, 0.42) 52%, rgba(10, 7, 18, 0.12) 100%),
        linear-gradient(180deg, rgba(10, 7, 18, 0.62) 0%, rgba(10, 7, 18, 0.34) 34%, rgba(10, 7, 18, 0.72) 82%, var(--bg) 100%);
}

.game__crumbs {
    position: relative;
    padding-top: clamp(18px, 2.4vw, 30px);
}

.game__hero .game__top {
    position: relative;
}

html[data-theme="light"] .game__hero-veil {
    background:
        linear-gradient(90deg, rgba(236, 228, 247, 0.94) 0%, rgba(236, 228, 247, 0.82) 52%, rgba(236, 228, 247, 0.5) 100%),
        linear-gradient(180deg, rgba(236, 228, 247, 0.9) 0%, rgba(236, 228, 247, 0.72) 34%, rgba(236, 228, 247, 0.9) 82%, var(--bg) 100%);
}

.game__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 2px 0 18px;
}

.game__score {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    padding: 4px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: color-mix(in oklab, var(--surface) 88%, transparent);
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text-dim);
}

.game__score strong {
    font-family: var(--font);
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.game__score-count {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Avis ------------------------------------------------------------------ */
.reviews {
    margin: 34px 0 30px;
    padding: clamp(18px, 2.6vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
}

.reviews__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.reviews__title h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.reviews__summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-left: auto;
}

.reviews__average {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    margin: 0;
    font-family: var(--mono);
    color: var(--accent);
}

.reviews__average strong {
    font-family: var(--font);
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.reviews__average span {
    font-size: 0.82rem;
}

.reviews__count {
    margin: 0;
    font-size: 0.76rem;
    color: var(--muted);
}

.reviews__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews__nav {
    display: flex;
    gap: 4px;
}

.reviews__nav button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.reviews__nav button:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.reviews__track {
    display: flex;
    gap: 14px;
    margin: 18px 0 0;
    padding: 2px 2px 12px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

.review {
    flex: 0 0 min(340px, 84vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.review__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-2);
    flex: none;
}

.review__who {
    min-width: 0;
}

.review__author {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.review__date {
    margin: 2px 0 0;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.review__score {
    margin: 0 0 0 auto;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}

.review__score strong {
    font-family: var(--font);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: var(--accent);
}

.review__text {
    margin: 12px 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--text-dim);
    overflow-wrap: anywhere;
}

.review__criteria {
    display: grid;
    gap: 7px;
    margin: auto 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.review__criteria > div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 8px;
}

.review__criteria dt {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.review__criteria dd {
    display: contents;
    margin: 0;
}

.meter {
    display: block;
    height: 6px;
    border-radius: 4px;
    background: var(--surface-3);
    overflow: hidden;
    position: relative;
}

.meter::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.meter--0::after { width: 0; }
.meter--1::after { width: 20%; }
.meter--2::after { width: 40%; }
.meter--3::after { width: 60%; }
.meter--4::after { width: 80%; }
.meter--5::after { width: 100%; }

.review__criterion-value {
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--muted);
    text-align: right;
}

.reviews__empty {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Formulaire d'avis ----------------------------------------------------- */
.review-form {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.review-form h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.review-form__intro {
    margin: 0 0 18px;
    font-size: 0.82rem;
    color: var(--muted);
    max-width: 70ch;
}

.review-form__errors {
    list-style: none;
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid var(--danger);
    border-radius: 8px;
    background: color-mix(in oklab, var(--danger) 10%, transparent);
    color: var(--text);
    font-size: 0.82rem;
    display: grid;
    gap: 4px;
}

.review-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
}

.field {
    display: grid;
    gap: 7px;
    align-content: start;
}

.field--full {
    grid-column: 1 / -1;
}

.field__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.field__hint {
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--muted);
}

.field output {
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--accent);
    white-space: nowrap;
}

.field input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field input:focus-visible,
.field textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.field [aria-invalid="true"] {
    border-color: var(--danger);
}

.field__error {
    margin: 0;
    font-size: 0.74rem;
    color: var(--danger);
}

.review-form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 18px;
}

.review-form__foot .field__hint {
    margin: 0;
}

.review-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Fenêtre « Signaler » --------------------------------------------------- */
.report-modal {
    width: min(560px, calc(100vw - 24px));
}

.report-form {
    display: grid;
    gap: 16px;
}

.report-form .field textarea {
    min-height: 96px;
}

.report-form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 2px;
}

.report-form__foot .field__hint {
    margin: 0;
}

/* Le bouton « Signaler » garde l'allure d'un lien de la fiche. */
button.link-arrow {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

/* Note sur les cartes de jeu -------------------------------------------- */
.card__rating {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 6px 0 0;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
}

.card__rating strong {
    font-family: var(--font);
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    color: var(--accent);
}

@media (max-width: 720px) {
    .review-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .reviews__summary {
        margin-left: 0;
    }

    .reviews__head {
        align-items: flex-start;
    }

    .review {
        flex-basis: 86vw;
    }
}

.field output.is-short {
    color: var(--danger);
}

/* Curseurs du formulaire d'avis : rendu homogène (mobile inclus). */
.field input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 26px;
    background: transparent;
}

.field input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: var(--surface-3);
}

.field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-soft);
    box-shadow: 0 0 0 1px var(--line-strong);
    cursor: pointer;
}

.field input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--surface-3);
}

.field input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-soft);
    cursor: pointer;
}

/* Évite qu'un carrousel ou un long texte élargisse la colonne de la fiche. */
.game__main,
.reviews {
    min-width: 0;
}

.reviews__track {
    max-width: 100%;
}

#avis,
#donner-mon-avis {
    scroll-margin-top: 96px;
}

@media (max-width: 980px) {
    .game__body,
    .game__top {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Fiche de jeu : avis et recommandations en pleine largeur ; barre latérale discrète. */
.game__body {
    padding-bottom: clamp(22px, 3vw, 34px);
}

.game__after {
    padding-bottom: clamp(48px, 6vw, 88px);
}

.game__after .reviews {
    margin-top: 0;
}

.game__side .report {
    padding: 0;
    font-size: 0.78rem;
    display: grid;
    gap: 6px;
}

.game__side .report > p {
    margin: 0;
}

.game__side .report__discord {
    margin-top: 10px;
    padding-top: 10px;
}

.game__side .report__discord p {
    font-size: 0.74rem;
}

.game__side .report__discord-title {
    font-size: 0.82rem;
}

/* Fenêtre « Je donne mon avis » */
.review-modal {
    width: min(760px, calc(100vw - 24px));
    max-height: min(90vh, 900px);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--bg-soft);
    color: var(--text);
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
}

.review-modal::backdrop {
    background: rgba(6, 3, 12, 0.7);
}

.review-modal__panel {
    padding: clamp(18px, 3vw, 28px);
    max-height: min(90vh, 900px);
    overflow-y: auto;
}

.review-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.review-modal__head h2 {
    margin: 0;
    font-size: 1.35rem;
}

.review-modal__close {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.review-modal__close:hover {
    border-color: var(--line-strong);
}

.review-modal .review-form {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

html.modal-open,
html.modal-open body {
    overflow: hidden;
}

.review-modal .review-form__foot {
    position: sticky;
    bottom: -1px;
    z-index: 1;
    margin-top: 14px;
    padding: 12px 0 4px;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
}

/* Dans la fenêtre, le bouton reste dans le flux (pas de pied collant qui masque les champs). */
.review-modal .review-form__foot {
    position: static;
    z-index: auto;
    margin-top: 18px;
    padding: 0;
    background: transparent;
    border-top: 0;
}

.review-modal__head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 6px;
    background: var(--bg-soft);
}

/* « Où jouer » remonte dans la colonne de droite, au-dessus du signalement. */
.game__side .panel {
    margin-top: 0;
}

.game__side .panel__title {
    font-size: 1.05rem;
}

/* Une seule barre de défilement dans la fenêtre d'avis. */
.review-modal {
    --review-modal-max: min(90vh, 900px);
    max-height: var(--review-modal-max);
    overflow: hidden;
}

.review-modal__panel {
    max-height: calc(var(--review-modal-max) - 4px);
}

/* Rangées et colonnes du constructeur d'articles */
.blocks__row {
    display: grid;
    gap: 1.15em;
    align-items: start;
}

.blocks__row--1 { grid-template-columns: minmax(0, 1fr); }
.blocks__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blocks__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.blocks__col {
    display: grid;
    align-content: start;
    gap: 1.15em;
    min-width: 0;
}

@media (max-width: 760px) {
    .blocks__row--2,
    .blocks__row--3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================================================
   Carrousel infini des consoles
   ====================================================================== */
.console-marquee {
    overflow: hidden;
    padding-block: 4px 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.console-track {
    display: flex;
    width: max-content;
    animation: console-scroll 70s linear infinite;
}

.console-group {
    display: flex;
    gap: 14px;
    padding-right: 14px;
}

.console-marquee:hover .console-track,
.console-marquee:focus-within .console-track {
    animation-play-state: paused;
}

@keyframes console-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .console-marquee {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .console-marquee::-webkit-scrollbar { display: none; }
    .console-track { animation: none; }
}

@media (max-width: 700px) {
    .console-tile {
        width: 200px;
        height: 158px;
        padding: 14px 12px;
    }

    .console-tile__logo {
        height: 38px;
    }

    .console-tile__logo img {
        max-width: 120px;
        max-height: 38px;
    }

    .console-tile__mono {
        width: 36px;
        height: 36px;
        font-size: 0.78rem;
    }

    .console-tile__name {
        font-size: 0.98rem;
    }
}

/* Icônes de partage de la fiche de jeu */
.share--icons {
    display: flex;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
}

.share__icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg-soft);
    color: var(--text-dim);
    cursor: pointer;
    transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}

.share__icon:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
    color: var(--accent);
}

.share__icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* En-tête d'article avec l'image de couverture en fond */
.post__head {
    position: relative;
    overflow: hidden;
}

.post__head--cover {
    display: flex;
    align-items: flex-end;
    min-height: clamp(340px, 42vw, 520px);
    padding-block: clamp(90px, 14vw, 180px) clamp(26px, 4vw, 42px);
}

.post__head-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.post__head--cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(7, 6, 12, 0.18), rgba(7, 6, 12, 0.32) 45%, rgba(7, 6, 12, 0.62) 78%, var(--bg) 100%);
}

.post__head-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.post__head--cover .post__title,
.post__head--cover .crumbs,
.post__head--cover .crumbs a,
.post__head--cover .post__meta,
.post__head--cover .eyebrow {
    color: #fff;
}

.post__head--cover .crumbs a:hover {
    color: #fff;
}

/* Corps d'article et colonne de droite */
.post__body--aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(24px, 4vw, 54px);
    max-width: 1180px;
    align-items: start;
}

.post__main {
    min-width: 0;
}

.post__aside {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 22px;
}

.post-aside__block {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.post-aside__title {
    margin: 0 0 10px;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.post-games,
.post-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-game {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s var(--ease);
}

.post-game:hover {
    background: var(--surface-2);
}

.post-game__cover {
    width: 48px;
    height: 64px;
    flex: 0 0 auto;
    object-fit: contain;
    background: var(--surface-2);
    border-radius: 5px;
    border: 1px solid var(--line);
}

.post-game__cover--empty {
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.post-game__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.post-game__title {
    font-weight: 500;
    font-size: 0.86rem;
    line-height: 1.25;
}

.post-game__meta {
    font-size: 0.72rem;
    color: var(--muted);
}

.post-links a {
    display: grid;
    gap: 2px;
    padding: 7px 6px;
    border-radius: 7px;
    transition: background 0.15s var(--ease);
}

/* Article lié : vignette au-dessus du titre, dans la colonne de droite */
.post-links .post-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.post-link__thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.post-link__thumb--empty {
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.post-link__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.post-link__body .post-links__title {
    overflow-wrap: anywhere;
}

.post-links a:hover {
    background: var(--surface-2);
}

.post-links__cat {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.post-links__title {
    font-size: 0.84rem;
    line-height: 1.35;
}

/* Notes et cœurs */
.post-react {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: clamp(30px, 4vw, 48px);
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.post-react__title {
    margin: 0 0 4px;
    font-size: 1rem;
}

.post-react__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.post-react__average {
    font-size: 1.15rem;
    color: var(--text);
}

.post-react__average small {
    font-size: 0.68rem;
    color: var(--muted);
}

.post-react__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.post-react__label {
    display: block;
    margin-bottom: 3px;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.post-react__star-row {
    display: flex;
    gap: 2px;
}

.post-react__star-row button {
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--line-strong);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.12s var(--ease), transform 0.12s var(--ease);
}

.post-react__star-row button:hover,
.post-react__star-row button:focus-visible {
    color: #f2c14e;
    transform: translateY(-1px);
}

.post-react__like {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.post-react__like:hover {
    border-color: #e0607e;
    color: #e0607e;
}

.post-react__like svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

/* Filtres plus souples quand ils sont nombreux */
.filters {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.filters .field--grow {
    grid-column: span 2;
}

.filters--inline {
    display: flex;
    align-items: end;
    gap: 10px;
    max-width: 520px;
    margin-bottom: 18px;
    padding: 0;
    border: 0;
    background: none;
}

.filters--inline .field {
    flex: 1 1 240px;
}

@media (max-width: 960px) {
    .post__body--aside {
        grid-template-columns: minmax(0, 1fr);
        max-width: 960px;
    }

    .post__aside {
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* Partage de fiche, colonne de droite */
.game__share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
}

.game__share-label {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.game__share .share {
    margin: 0;
}

.game__share .share__icon {
    width: 32px;
    height: 32px;
}

@media (max-width: 720px) {
    .game__share {
        margin-top: 16px;
    }
}

/* Menu flottant admin et popup de statistiques */
.admin-fab-group {
    position: fixed;
    top: 80px;
    left: 14px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.admin-fab-group .admin-fab {
    position: static;
    top: auto;
    left: auto;
}

button.admin-fab {
    appearance: none;
    cursor: pointer;
    /* Pas de raccourci « font: inherit » : il écrasait la taille et la police
       de .admin-fab, et le bouton « Stats » sortait plus gros que les liens. */
}

.page-stats {
    width: min(1040px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.page-stats::backdrop {
    background: rgba(4, 2, 10, 0.72);
    backdrop-filter: blur(3px);
}

.page-stats__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 14px;
}

.page-stats__eyebrow {
    margin: 0 0 5px;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.page-stats__head h2 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.page-stats__path {
    margin: 5px 0 0;
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--muted);
    word-break: break-all;
}

.page-stats__close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.page-stats__close:hover,
.page-stats__close:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

/* Les quatre périodes s'empilent à gauche, le reste des statistiques occupe la droite. */
.page-stats__body {
    display: grid;
    grid-template-columns: minmax(0, 216px) minmax(0, 1fr);
    gap: 18px 26px;
    padding: 16px 22px 4px;
}

.page-stats__grid {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 8px;
}

.page-stats__main {
    display: grid;
    align-content: start;
    gap: 20px;
    min-width: 0;
}

.page-stats__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "days views"
        "days visitors"
        "bar bar";
    align-items: center;
    column-gap: 10px;
    row-gap: 1px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.page-stats__days {
    grid-area: days;
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-stats__views {
    grid-area: views;
    justify-self: end;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.page-stats__card strong {
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.1;
}

.page-stats__unit,
.page-stats__visitors {
    font-size: 0.7rem;
    color: var(--muted);
}

.page-stats__visitors {
    grid-area: visitors;
    justify-self: end;
}

.page-stats__card progress {
    grid-area: bar;
    width: 100%;
    height: 5px;
    margin-top: 8px;
    border: 0;
    border-radius: 99px;
    overflow: hidden;
    accent-color: var(--accent);
    background: var(--surface-3);
}

.page-stats__card progress::-webkit-progress-bar {
    background: var(--surface-3);
    border-radius: 99px;
}

.page-stats__card progress::-webkit-progress-value {
    background: var(--accent);
    border-radius: 99px;
}

/* Graphiques du panneau de statistiques */
.page-stats__block {
    min-width: 0;
}

.page-stats__split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
}

/* Période commune aux trois blocs */
.page-stats__period-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 10px 22px 12px;
    border-bottom: 1px solid var(--line);
}

.page-stats__period-label {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-stats__periods {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
}

.page-stats__period {
    appearance: none;
    padding: 4px 9px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.page-stats__period:hover {
    color: var(--text);
}

.page-stats__period[aria-pressed="true"] {
    background: var(--accent);
    color: #0a0b0a;
}

.page-stats__block > h3 {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.page-stats__chart {
    display: block;
    width: 100%;
    height: 132px;
}

.page-stats__chart rect {
    fill: var(--accent);
    opacity: 0.8;
}

.page-stats__chart rect:hover { opacity: 1; }

.page-stats__chart-axis {
    stroke: var(--line);
    stroke-width: 1;
}

.page-stats__axis {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--muted);
}

.page-stats__sources {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-stats__sources li {
    display: grid;
    grid-template-columns: minmax(0, 96px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
}

.page-stats__sources li > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-stats__sources progress {
    width: 100%;
    height: 6px;
    border: 0;
    border-radius: 99px;
    overflow: hidden;
    accent-color: var(--accent);
    background: var(--surface-3);
}

.page-stats__sources progress::-webkit-progress-bar {
    background: var(--surface-3);
    border-radius: 99px;
}

.page-stats__sources progress::-webkit-progress-value {
    background: var(--accent);
    border-radius: 99px;
}

.page-stats__sources b {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--muted);
}

.page-stats__empty {
    margin: 0;
    font-size: 0.74rem;
    color: var(--muted);
}

.page-stats__hint {
    margin: 14px 0 0;
    padding: 0 22px;
    font-size: 0.7rem;
    color: var(--muted);
}

.page-stats__link {
    display: inline-block;
    margin: 12px 22px 20px;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Points de rupture du panneau : d'abord les deux colonnes, puis les blocs, puis les cartes. */
@media (max-width: 780px) {
    .page-stats__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .page-stats__split {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 18px;
    }
}

@media (max-width: 460px) {
    .page-stats__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-stats__period-label {
        font-size: 0.55rem;
    }
}

@media (max-width: 640px) {
    .admin-fab-group {
        top: 74px;
        left: 10px;
        right: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }

    .admin-fab-group .admin-fab {
        padding: 6px 9px;
        font-size: 0.58rem;
    }
}

/* Réactions sur les vignettes d’articles */
.card__reactions,
.lead__reactions,
.rail-item__reactions {
    position: absolute;
    right: 9px;
    bottom: 9px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(10, 7, 18, 0.72);
    backdrop-filter: blur(8px);
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.62rem;
    line-height: 1;
    pointer-events: none;
}

.lead__reactions {
    right: 16px;
    bottom: 16px;
    font-size: 0.7rem;
    padding: 6px 10px;
}

.rail-item__reactions {
    right: 5px;
    bottom: 5px;
    gap: 5px;
    padding: 3px 5px;
    font-size: 0.54rem;
}

.card__reactions span,
.lead__reactions span,
.rail-item__reactions span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Réponse de l'équipe sous un avis */
.review__reply {
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--surface-2);
    font-size: 0.86rem;
}

.review__reply-head {
    margin: 0 0 4px;
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.review__reply p {
    margin: 0;
}
