/* ==========================================================================
   ESCAPE GAMES UNIVERS — PORTAIL (v2, « néon raffiné »)
   Généré avec Docs-Et-Ressources/portal-gen/build_portal.py (HTML FR + EN).
   Les easter eggs (modale, salle secrète, matrix, toasts) sont dans portal-eggs.css.
   ========================================================================== */

@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
    --bg: #05060b;
    --bg-2: #0a0c16;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.065);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --line-3: rgba(255, 255, 255, 0.24);
    --text: #eef0f7;
    --muted: #9aa2b8;
    --dim: #687089;

    --kids: #ff5fa2;
    --teens: #38d6ff;
    --ya: #a78bfa;
    --classic: #fbbf24;
    --cyan: #22e6ff;
    --violet: #8b5cf6;

    --display: 'Space Grotesk', system-ui, sans-serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;

    --wrap: 1240px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Alias pour portal-eggs.css (ancienne nomenclature) */
    --bg-dark: var(--bg);
    --bg-card: #0d101b;
    --bg-card-hover: #121626;
    --border-color: var(--line-2);
    --border-highlight: var(--violet);
    --accent-cyan: var(--cyan);
    --color-kids: var(--kids);
    --color-teens: var(--teens);
    --color-ya: var(--ya);
    --color-classic: var(--classic);
    --text-main: var(--text);
    --text-muted: var(--muted);
    --font-sans: var(--sans);
    --font-mono: var(--mono);
    --font-heading: var(--display);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; }
::selection { background: rgba(34, 230, 255, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- Fonds */
#master-bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.45; pointer-events: none; }
#cursor-spotlight {
    position: fixed; left: 0; top: 0; width: 640px; height: 640px; border-radius: 50%;
    transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
    background: radial-gradient(circle, rgba(34, 230, 255, 0.06), transparent 62%);
    transition: opacity 0.4s;
}
@media (hover: none) { #cursor-spotlight { display: none; } }

/* ---------------------------------------------------------------- Navigation */
.portal-navbar {
    position: sticky; top: 0; z-index: 40;
    border-bottom: 1px solid transparent;
    transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.portal-navbar.scrolled { background: rgba(5, 6, 11, 0.72); border-color: var(--line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.portal-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon-box {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; position: relative;
    background: linear-gradient(135deg, rgba(34, 230, 255, 0.18), rgba(139, 92, 246, 0.22));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 24px -8px rgba(34, 230, 255, 0.5);
}
.brand-icon-box svg { width: 22px; height: 22px; }
.brand-text strong { display: block; font: 700 17px/1.1 var(--display); letter-spacing: -0.01em; }
.brand-text span { display: block; font: 500 11px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.25s, background 0.25s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 12px var(--mono); letter-spacing: 0.08em; color: var(--muted); text-decoration: none; transition: color 0.25s, border-color 0.25s; }
.lang-switch:hover { color: var(--text); border-color: var(--line-3); }

/* ---------------------------------------------------------------- Boutons */
.btn {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
    font: 600 16px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.35s, border-color 0.35s, color 0.35s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn.small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary {
    color: #05060b;
    background: linear-gradient(120deg, var(--cyan), #7c8cff 50%, var(--violet));
    box-shadow: 0 12px 40px -12px rgba(34, 230, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
    transform: translateX(-120%); transition: transform 0.9s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 18px 50px -12px rgba(34, 230, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--line-3); background: var(--surface-2); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; margin-top: -76px; padding-top: 76px; }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; filter: blur(90px) saturate(130%); opacity: 0.55; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -8%; top: 4%; background: radial-gradient(circle, rgba(34, 230, 255, 0.55), transparent 65%); }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; right: -6%; top: -4%; background: radial-gradient(circle, rgba(139, 92, 246, 0.6), transparent 65%); animation-duration: 26s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 40vw; height: 40vw; left: 32%; top: 34%; background: radial-gradient(circle, rgba(255, 95, 162, 0.38), transparent 65%); animation-duration: 30s; animation-delay: -12s; }
@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6%, 8%, 0) scale(1.12); }
    100% { transform: translate3d(-5%, 3%, 0) scale(0.94); }
}
.hero-grid {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
    opacity: 0.6;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: 56px; min-height: min(86vh, 820px); padding-top: 24px; padding-bottom: 64px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(10, 12, 22, 0.55); backdrop-filter: blur(10px);
    font: 600 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #cfd6ea;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 230, 255, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 230, 255, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(34, 230, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 230, 255, 0); } }
.eyebrow .hidden-mystery-key { margin-left: 2px; }

.hero h1 {
    margin: 24px 0 0; font: 700 clamp(42px, 5.4vw, 78px)/0.98 var(--display); letter-spacing: -0.045em;
    text-wrap: balance;
}
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .w > span { display: inline-block; animation: wordUp 1.1s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes wordUp { from { transform: translateY(105%); } to { transform: none; } }
.grad {
    background: linear-gradient(100deg, var(--cyan) 0%, #8fa2ff 30%, var(--violet) 55%, var(--kids) 80%, var(--cyan) 100%);
    background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: wordUp 1.1s var(--ease-out) both, gradShift 9s linear infinite;
    animation-delay: calc(var(--i) * 70ms + 150ms), 0s;
}
@keyframes gradShift { to { background-position: 220% 0; } }
.hero-lead { margin-top: 26px; max-width: 590px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--muted); }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.fade-in { animation: fadeUp 1s var(--ease-out) both; animation-delay: var(--d, 0.6s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 44px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat-n { font: 700 clamp(30px, 3vw, 42px)/1 var(--display); letter-spacing: -0.03em; }
.stat-n small { font-size: 0.55em; margin-left: 2px; color: var(--muted); }
.stat-l { margin-top: 8px; font: 500 11.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

/* Orbite (visuel signature du hero) */
.orbit { position: relative; width: min(520px, 100%); aspect-ratio: 1; justify-self: end; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.14); }
.orbit-ring.r1 { inset: 0; animation: spin 90s linear infinite; }
.orbit-ring.r2 { inset: 13%; border-style: solid; border-color: rgba(139, 92, 246, 0.22); animation: spin 60s linear infinite reverse; }
.orbit-ring.r3 { inset: 27%; border-color: rgba(34, 230, 255, 0.18); animation: spin 40s linear infinite; }
.orbit-ring.r2::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 18px 4px rgba(139, 92, 246, 0.8); }
.orbit-ring.r3::after { content: ''; position: absolute; bottom: 12%; right: 6%; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px 3px rgba(34, 230, 255, 0.9); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core {
    position: absolute; inset: 33%; border-radius: 50%; display: grid; place-items: center; text-align: center;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), transparent 45%), radial-gradient(circle, #121633 0%, #070816 70%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 80px -10px rgba(139, 92, 246, 0.65), 0 0 140px -30px rgba(34, 230, 255, 0.6), inset 0 0 40px rgba(139, 92, 246, 0.25);
    animation: breathe 6s var(--ease) infinite;
}
@keyframes breathe { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 110px -10px rgba(139, 92, 246, 0.8), 0 0 170px -30px rgba(34, 230, 255, 0.75), inset 0 0 50px rgba(139, 92, 246, 0.3); } }
.orbit-core b { display: block; font: 700 clamp(44px, 5vw, 64px)/1 var(--display); letter-spacing: -0.04em; }
.orbit-core span { display: block; margin-top: 4px; font: 600 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.orbit-track { position: absolute; inset: 6.5%; animation: spin 48s linear infinite; pointer-events: none; } /* laisse passer les clics vers le cœur « 25 » */
.orbit-node {
    position: absolute; width: 22%; height: 22%; margin: -11% 0 0 -11%; border-radius: 50%;
    display: grid; place-items: center; text-decoration: none; pointer-events: auto;
    background: rgba(10, 12, 24, 0.82); backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 10px 40px -10px color-mix(in srgb, var(--c) 70%, transparent);
    transition: box-shadow 0.4s;
}
.orbit-node:nth-child(1) { left: 50%; top: 0; }
.orbit-node:nth-child(2) { left: 100%; top: 50%; }
.orbit-node:nth-child(3) { left: 50%; top: 100%; }
.orbit-node:nth-child(4) { left: 0; top: 50%; }
.orbit-node > span { position: absolute; inset: 0; display: grid; place-items: center; animation: spin 48s linear infinite reverse; }
.orbit-node svg { width: 74%; height: 74%; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 60%, transparent)); }
.orbit-node em { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px; font: 600 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; color: var(--c); white-space: nowrap; }
.orbit-node:hover { box-shadow: 0 0 0 1px var(--c), 0 14px 50px -6px color-mix(in srgb, var(--c) 90%, transparent); }
.orbit-track:hover, .orbit-track:hover .orbit-node > span { animation-play-state: paused; }

/* ---------------------------------------------------------------- Bandeau défilant */
.marquee { position: relative; border-block: 1px solid var(--line); background: rgba(8, 10, 18, 0.6); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scrollX 70s linear infinite; }
.marquee-group { display: flex; flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; font: 600 15px var(--display); color: #c6cce0; white-space: nowrap; text-decoration: none; transition: color 0.25s; }
.marquee-item:hover { color: #fff; }
.marquee-item svg { width: 26px; height: 26px; flex: none; }
.marquee-item::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--line-3); margin-left: 16px; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- Sections */
.section { padding-top: clamp(88px, 11vw, 140px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 600 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.section-head h2 { margin-top: 14px; font: 700 clamp(34px, 4.4vw, 58px)/1.02 var(--display); letter-spacing: -0.04em; max-width: 720px; text-wrap: balance; }
.section-head p { max-width: 430px; color: var(--muted); font-size: 16.5px; }

/* Bordure dégradée animée (cartes collection, newsletter) */
.glow-border::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
    background: conic-gradient(from var(--ang), transparent 0 55%, var(--c, var(--cyan)) 72%, transparent 88%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: rotateAng 7s linear infinite; opacity: 0.5; transition: opacity 0.5s;
}
.glow-border:hover::before { opacity: 1; }
@keyframes rotateAng { to { --ang: 360deg; } }

/* ---------------------------------------------------------------- Collections */
.collections-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.collection-hub-banner {
    position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 380px; padding: 26px;
    border-radius: 26px; text-decoration: none; color: var(--text);
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, #0b0d18) 0%, #090a13 70%);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 0.35s var(--ease-out), box-shadow 0.5s;
}
.collection-hub-banner::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 80%) var(--my, 0%), color-mix(in srgb, var(--c) 26%, transparent), transparent 60%);
    opacity: 0.55; transition: opacity 0.5s;
}
.collection-hub-banner:hover::after { opacity: 1; }
.hub-emblem { width: 112px; height: 112px; margin-left: -10px; margin-bottom: auto; transition: transform 0.8s var(--ease-out); filter: drop-shadow(0 0 22px color-mix(in srgb, var(--c) 55%, transparent)); }
.collection-hub-banner:hover .hub-emblem { transform: rotate(-8deg) scale(1.08); }
.hub-age { margin-top: 40px; font: 600 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); }
.collection-hub-banner h3 { margin-top: 8px; font: 700 28px/1.05 var(--display); letter-spacing: -0.03em; }
.collection-hub-banner p { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.hub-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.hub-cta i { font-style: normal; font: 500 12px var(--mono); color: var(--dim); }
.hub-cta svg { width: 18px; height: 18px; color: var(--c); transition: transform 0.35s var(--ease-out); }
.collection-hub-banner:hover .hub-cta svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- Méthode (3 points) */
.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 18px; border-radius: 26px; overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.method-item { padding: 30px 28px; background: #080912; }
.method-item b { display: block; font: 600 12px var(--mono); letter-spacing: 0.1em; color: var(--dim); }
.method-item h3 { margin-top: 14px; font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; }
.method-item p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ---------------------------------------------------------------- Barre d'outils du catalogue */
.toolbar {
    position: sticky; top: 88px; z-index: 30; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-bottom: 26px; padding: 10px; border-radius: 22px;
    background: rgba(9, 11, 20, 0.78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}
.search-input-box { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-input-box .search-icon { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
#game-search-input {
    width: 100%; height: 46px; padding: 0 44px 0 46px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font: 400 15px var(--sans);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
#game-search-input::placeholder { color: var(--dim); }
#game-search-input:focus { outline: none; border-color: rgba(34, 230, 255, 0.6); background: rgba(34, 230, 255, 0.04); box-shadow: 0 0 0 4px rgba(34, 230, 255, 0.12); }
.clear-search-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; display: none; place-items: center; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 13px; }
.clear-search-btn:hover { color: var(--text); background: var(--line-2); }
.filter-tabs-container { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
    border: 1px solid transparent; background: transparent; color: var(--muted); font: 500 14px var(--sans); cursor: pointer;
    transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.filter-btn::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--text)); box-shadow: 0 0 10px var(--dot, transparent); }
.filter-btn[data-category="all"] { --dot: linear-gradient(135deg, var(--cyan), var(--violet)); }
.filter-btn[data-category="kids"] { --dot: var(--kids); }
.filter-btn[data-category="teens"] { --dot: var(--teens); }
.filter-btn[data-category="ya"] { --dot: var(--ya); }
.filter-btn[data-category="classic"] { --dot: var(--classic); }
.filter-btn[data-category="all"]::before { background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: none; }
.filter-btn:hover { color: var(--text); background: var(--surface-2); }
.filter-btn.active { color: #05060b; background: var(--text); }
.filter-btn.active::before { box-shadow: none; }
.search-counter-bar { margin-left: auto; padding-right: 10px; font: 500 12.5px var(--mono); color: var(--dim); }
.search-counter-bar strong { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- Grille des jeux */
.games-master-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(282px, 1fr)); gap: 20px; }
.portal-game-card {
    position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 0.35s var(--ease-out), box-shadow 0.5s;
}
.portal-game-card::after {
    content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.4s;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 55%);
}
.portal-game-card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 34px 70px -34px color-mix(in srgb, var(--c) 70%, transparent); }
.portal-game-card:hover::after { opacity: 1; }
.card-art {
    position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
    background: radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--c) 34%, transparent), transparent 58%), linear-gradient(140deg, var(--b1), var(--b2));
}
.card-art::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(color-mix(in srgb, var(--c) 12%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, transparent) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(circle at 60% 40%, #000, transparent 70%); mask-image: radial-gradient(circle at 60% 40%, #000, transparent 70%);
}
.card-art .ring { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); animation: spin 40s linear infinite; }
.card-art .ring + .ring { width: 54%; border-style: solid; border-color: color-mix(in srgb, var(--c) 22%, transparent); animation-direction: reverse; animation-duration: 28s; }
.card-art svg { position: absolute; left: 17%; top: 17%; width: 66%; height: 66%; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c) 55%, transparent)); transition: transform 0.9s var(--ease-out); }
.portal-game-card:hover .card-art svg { transform: scale(1.09) rotate(-4deg); }
.card-num { position: absolute; top: 14px; left: 16px; font: 600 11.5px var(--mono); letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.7); }
.card-content-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px 22px 22px; }
.badge-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.age-tag { padding: 4px 10px; border-radius: 999px; font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.genre-tag { font-size: 12.5px; color: var(--dim); }
.portal-game-card h3 { font: 600 20px/1.22 var(--display); letter-spacing: -0.02em; }
.portal-game-card p { flex: 1; font-size: 14.5px; line-height: 1.58; color: var(--muted); }
.card-action-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.btn-play-action {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px;
    font: 600 14.5px var(--sans); text-decoration: none; color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2);
    transition: background 0.35s, color 0.35s, box-shadow 0.35s;
}
.btn-play-action svg { width: 14px; height: 14px; }
.portal-game-card:hover .btn-play-action { background: var(--c); color: #05060b; box-shadow: 0 10px 30px -10px var(--c); }
.btn-lang-action { display: inline-grid; place-items: center; height: 44px; padding: 0 14px; border-radius: 999px; font: 600 12px var(--mono); letter-spacing: 0.06em; color: var(--muted); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: color 0.25s, box-shadow 0.25s; }
.btn-lang-action:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.empty-state { display: none; grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- Club */
.newsletter-card {
    position: relative; isolation: isolate; overflow: hidden; border-radius: 34px; padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px); text-align: center;
    background: radial-gradient(ellipse 70% 80% at 50% -10%, rgba(139, 92, 246, 0.3), transparent 60%), radial-gradient(ellipse 50% 60% at 90% 110%, rgba(34, 230, 255, 0.16), transparent 60%), #080912;
    box-shadow: inset 0 0 0 1px var(--line);
}
.newsletter-icon { width: 76px; height: 76px; margin: 0 auto 22px; filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.7)); }
.newsletter-card h2 { margin-top: 14px; font: 700 clamp(32px, 4.4vw, 56px)/1.04 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.newsletter-card p { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-size: 17px; }
.newsletter-form { display: flex; gap: 10px; max-width: 520px; margin: 34px auto 0; padding: 7px; border-radius: 999px; background: rgba(5, 6, 11, 0.7); box-shadow: inset 0 0 0 1px var(--line-2); }
.newsletter-form:focus-within { box-shadow: inset 0 0 0 1px rgba(34, 230, 255, 0.6), 0 0 0 5px rgba(34, 230, 255, 0.1); }
.newsletter-form input { flex: 1; min-width: 0; height: 48px; padding: 0 20px; border: 0; background: transparent; color: var(--text); font: 400 15.5px var(--sans); }
.newsletter-form input:focus { outline: none; }
.newsletter-form input::placeholder { color: var(--dim); }
.newsletter-form .btn { height: 48px; }
.newsletter-security { margin-top: 18px; font: 500 12px var(--mono); color: var(--dim); }

/* ---------------------------------------------------------------- Pied de page */
.portal-footer { margin-top: clamp(88px, 11vw, 140px); border-top: 1px solid var(--line); background: rgba(5, 6, 11, 0.6); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 56px 0 40px; }
.footer-top p { max-width: 360px; margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font: 600 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer-cols ul { list-style: none; display: grid; gap: 10px; }
.footer-cols a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color 0.2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid var(--line); font: 500 12px var(--mono); color: var(--dim); }

/* ---------------------------------------------------------------- Lecteur d'ambiance */
.audio-player-dock {
    position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 10px;
    height: 52px; padding: 6px 16px 6px 6px; border-radius: 999px;
    background: rgba(9, 11, 20, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -20px rgba(0, 0, 0, 0.9);
}
.audio-btn-toggle { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; font-size: 14px; color: #05060b; background: linear-gradient(135deg, var(--cyan), var(--violet)); transition: transform 0.3s var(--ease-out); }
.audio-btn-toggle:hover { transform: scale(1.06); }
.audio-equalizer { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq-bar { width: 3px; height: 4px; border-radius: 2px; background: var(--cyan); transition: height 0.3s; }
.audio-player-dock.playing .eq-bar { animation: eq 0.9s ease-in-out infinite alternate; }
.audio-player-dock.playing .eq-bar:nth-child(2) { animation-delay: -0.3s; background: var(--violet); }
.audio-player-dock.playing .eq-bar:nth-child(3) { animation-delay: -0.6s; }
.audio-player-dock.playing .eq-bar:nth-child(4) { animation-delay: -0.15s; background: var(--kids); }
@keyframes eq { from { height: 4px; } to { height: 18px; } }
.audio-info { display: flex; flex-direction: column; line-height: 1.2; }
.audio-title { font: 600 13px var(--sans); }
.audio-status { font: 500 11px var(--mono); color: var(--dim); }
.audio-extra { display: flex; align-items: center; gap: 10px; max-width: 0; opacity: 0; overflow: hidden; transition: max-width 0.5s var(--ease-out), opacity 0.4s; }
.audio-player-dock:hover .audio-extra, .audio-player-dock:focus-within .audio-extra { max-width: 320px; opacity: 1; }
.audio-track-selector { height: 34px; padding: 0 10px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--text); font: 500 12.5px var(--sans); cursor: pointer; }
.audio-track-selector option { background: #0b0d18; }
.audio-volume-slider { width: 84px; accent-color: var(--cyan); cursor: pointer; }

/* ---------------------------------------------------------------- Révélation au scroll */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-visible { opacity: 1; animation: rise 0.95s var(--ease-out) backwards; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
    .collections-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-links { display: none; }
}
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding-top: 40px; padding-bottom: 56px; }
    .orbit { width: min(340px, 86%); justify-self: center; margin-top: 28px; }
    .stats { grid-template-columns: repeat(2, auto); }
    .method { grid-template-columns: 1fr; }
    .toolbar { position: static; }
    .search-input-box { max-width: none; }
    .search-counter-bar { margin-left: 0; width: 100%; padding: 0 8px 4px; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .nav-inner { height: 64px; }
    .brand-text span { display: none; }
    .brand-text strong { font-size: 15px; white-space: nowrap; }
    .brand-icon-box { width: 34px; height: 34px; }
    .nav-actions .btn.small { padding: 0 14px; }
    .eyebrow { font-size: 10.5px; letter-spacing: 0.08em; }
    .hero { margin-top: -64px; padding-top: 64px; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .orbit-node em { display: none; }
    .collections-overview { grid-template-columns: 1fr; }
    .collection-hub-banner { min-height: 0; }
    .hub-emblem { width: 72px; height: 72px; }
    .hub-age { margin-top: 24px; }
    .filter-tabs-container { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px; }
    .filter-tabs-container::-webkit-scrollbar { display: none; }
    .filter-btn { flex: none; }
    .newsletter-form { flex-direction: column; border-radius: 24px; }
    .newsletter-form .btn { width: 100%; }
    .audio-player-dock { right: 12px; bottom: 12px; height: 46px; padding-right: 6px; }
    .audio-btn-toggle { width: 34px; height: 34px; }
    .audio-info, .audio-equalizer { display: none; }
    .audio-player-dock:hover .audio-extra, .audio-player-dock:focus-within .audio-extra { max-width: 240px; }
    .audio-volume-slider { width: 64px; }
    .footer-cols { gap: 40px; }
}
@media (max-width: 480px) {
    .nav-actions .btn.small { display: none; }
}

/* ---------------------------------------------------------------- Bouton Kits Anniversaire */
.btn-kit-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    height: 36px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 600;
    font-family: var(--sans);
    color: #f472b6;
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.35);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-kit-action:hover {
    background: rgba(236, 72, 153, 0.28);
    border-color: #ec4899;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
}

/* ---------------------------------------------------------------- Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .marquee-track { animation: none; }
    .js [data-reveal] { opacity: 1; }
}
