/* ==========================================================================
   ALPHABET // ONCHE GAME ARCHIVE — MASTER STYLESHEET
   Design System : Cyberpunk / Retro-Futurism / Brutalist Arcade Vault
   Compatible Neocities — 100% Native CSS3
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. VARIABLES CSS GLOBALES (DESIGN SYSTEM & THÈME)
   -------------------------------------------------------------------------- */
:root {
    /* Palette de Fond & Profondeur */
    --bg-deep: #05070a;
    --bg-surface: #0a0e17;
    --bg-surface-elevated: #111726;
    --bg-surface-glass: rgba(10, 14, 23, 0.85);
    
    /* Couleurs Néon & Accents Cyber */
    --cyan-core: #00f3ff;
    --cyan-glow: rgba(0, 243, 255, 0.45);
    --cyan-muted: rgba(0, 243, 255, 0.12);
    --cyan-border: rgba(0, 243, 255, 0.25);

    --onche-gold: #ffb703;
    --onche-amber: #fb8500;
    --onche-glow: rgba(255, 183, 3, 0.4);
    
    --green-neon: #00ff88;
    --green-glow: rgba(0, 255, 136, 0.4);
    
    --pink-glitch: #ff0055;
    --pink-glow: rgba(255, 0, 85, 0.4);

    /* Textes & Teintes Techniques */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #05070a;

    /* Bordures & Lignes Techniques */
    --border-dim: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.2);
    --border-tech: rgba(0, 243, 255, 0.3);

    /* Typographies */
    --font-display: 'Syne', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Share Tech Mono', Consolas, Monaco, "Courier New", monospace;

    /* Transitions & Courbes de Vitesse */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s var(--ease-out-expo);
    --transition-smooth: 0.4s var(--ease-out-expo);

    /* Espacements & Layout */
    --header-height: 48px;
    --container-max: 1440px;
    --radius-sm: 2px;
    --radius-md: 4px;
}

/* --------------------------------------------------------------------------
   02. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--bg-deep);
    position: relative;
}

/* Sélection de texte style cyberpunk */
::selection {
    background-color: var(--cyan-core);
    color: var(--text-dark);
    text-shadow: none;
}

a {
    color: var(--cyan-core);
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Accessibilité Focus */
:focus-visible {
    outline: 2px solid var(--cyan-core);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   03. AMBIANCE VISUELLE (CANVAS, CRT SCANLINES & GRAIN)
   -------------------------------------------------------------------------- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}

/* Scanlines CRT Subtiles */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 990;
    pointer-events: none;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.28) 50%
    ), linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.02),
        rgba(0, 255, 0, 0.01),
        rgba(0, 0, 255, 0.02)
    );
    background-size: 100% 3px, 3px 100%;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

body.no-crt .crt-overlay {
    display: none;
}

/* Vignette d'écran rétro */
.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 989;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 60%, rgba(3, 5, 8, 0.85) 100%);
}

/* Bruit / Noise granuleux SVG pur (très léger et dynamique) */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 988;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Bannière No-Script */
.noscript-banner {
    position: relative;
    z-index: 10000;
    background: #ff0055;
    color: #fff;
    padding: 1.25rem 2rem;
    font-family: var(--font-mono);
    text-align: center;
    border-bottom: 2px solid #fff;
}

/* --------------------------------------------------------------------------
   04. CURSEUR CYBERPUNK PERSONNALISÉ
   -------------------------------------------------------------------------- */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan-core);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--cyan-core);
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid var(--cyan-core);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cursor-label {
    position: absolute;
    top: 24px;
    left: 18px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--cyan-core);
    background: var(--bg-deep);
    padding: 2px 6px;
    border: 1px solid var(--cyan-border);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
}

/* États du Curseur */
.custom-cursor.is-hovering .cursor-ring {
    width: 48px;
    height: 48px;
    border-color: var(--onche-gold);
    border-width: 2px;
    background: rgba(255, 183, 3, 0.08);
}

.custom-cursor.is-hovering .cursor-dot {
    background: var(--onche-gold);
    box-shadow: 0 0 12px var(--onche-gold);
}

.custom-cursor.has-label .cursor-label {
    opacity: 1;
    transform: translateY(0);
}

/* Désactivation curseur custom sur mobile / écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   05. SYSTEM BAR (TOP HUD HEADER)
   -------------------------------------------------------------------------- */
.system-bar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 900;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-tech);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.system-bar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.sys-left, .sys-center, .sys-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sys-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--green-neon);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green-neon);
    animation: sysPulse 2s infinite ease-in-out;
}

@keyframes sysPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.sys-tag {
    font-weight: 700;
    color: var(--text-primary);
}

.sys-divider {
    color: var(--text-muted);
}

.sys-status {
    color: var(--green-neon);
}

.sys-coords, .sys-sec {
    color: var(--text-secondary);
}

/* Boutons HUD de la topbar */
.hud-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.hud-btn:hover {
    background: var(--cyan-muted);
    border-color: var(--cyan-core);
    color: var(--cyan-core);
}

.hud-btn strong {
    color: var(--text-primary);
}

.hud-btn-accent {
    border-color: var(--cyan-border);
    color: var(--cyan-core);
    font-weight: 700;
}

.hud-btn-accent:hover {
    background: var(--cyan-core);
    color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   06. PAGE WRAPPER & REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.page-wrapper {
    position: relative;
    z-index: 10;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Reveal Observer Animation */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    will-change: opacity, transform;
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   07. HERO SECTION (L'ARCHIVE SPECTACULAIRE)
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: clamp(3rem, 8vh, 6.5rem) 2rem clamp(2.5rem, 6vh, 4.5rem);
    margin-top: 1.5rem;
    margin-bottom: 3.5rem;
    background: linear-gradient(135deg, rgba(16, 23, 38, 0.7) 0%, rgba(7, 10, 16, 0.85) 100%);
    border: 1px solid var(--cyan-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 243, 255, 0.04);
    overflow: hidden;
}

/* Cadre HUD décoratif */
.hud-corner {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--cyan-core);
    opacity: 0.6;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.hud-tl { top: 8px; left: 12px; }
.hud-tr { top: 8px; right: 12px; }
.hud-bl { bottom: 8px; left: 12px; }
.hud-br { bottom: 8px; right: 12px; }

.hero-content {
    max-width: 980px;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-creator {
    background: var(--onche-gold);
    color: var(--text-dark);
    padding: 0.3rem 0.75rem;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    letter-spacing: 0.06em;
    box-shadow: 0 0 15px var(--onche-glow);
}

.eyebrow-line {
    flex-grow: 1;
    max-width: 80px;
    height: 1px;
    background: var(--cyan-border);
}

.badge-vault {
    color: var(--cyan-core);
    letter-spacing: 0.1em;
}

/* Titre Hero Géant */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7.5vw, 6.2rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title-sub {
    display: block;
    color: var(--cyan-core);
    font-size: 0.45em;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 20px var(--cyan-glow);
}

.hero-title-main {
    display: block;
    background: linear-gradient(180deg, #ffffff 30%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Description Hero */
.hero-desc {
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 760px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.text-highlight {
    color: var(--text-primary);
    font-weight: 600;
}

/* Grille de Télémétrie */
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-tech);
}

.telemetry-card {
    background: rgba(6, 9, 15, 0.7);
    border: 1px solid var(--border-dim);
    border-left: 3px solid var(--cyan-core);
    padding: 0.9rem 1.1rem;
    transition: all var(--transition-fast);
}

.telemetry-card:hover {
    border-color: var(--cyan-border);
    background: rgba(0, 243, 255, 0.03);
    transform: translateY(-2px);
}

.telemetry-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.telemetry-value {
    font-family: var(--font-mono);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.telemetry-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.text-accent-green { color: var(--green-neon); text-shadow: 0 0 10px var(--green-glow); }
.text-accent-amber { color: var(--onche-gold); text-shadow: 0 0 10px var(--onche-glow); }
.text-accent-cyan { color: var(--cyan-core); text-shadow: 0 0 10px var(--cyan-glow); }

/* Boutons Cyber Hero */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.btn-cyber {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.85rem 1.65rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all var(--transition-base);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-cyber-primary {
    background: var(--cyan-core);
    color: var(--text-dark);
    box-shadow: 0 0 20px var(--cyan-glow);
    border: none;
}

.btn-cyber-primary:hover {
    background: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    color: #000;
}

.btn-cyber-secondary {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-bright);
    color: var(--text-primary);
}

.btn-cyber-secondary:hover {
    border-color: var(--onche-gold);
    color: var(--onche-gold);
    box-shadow: 0 0 18px var(--onche-glow);
    transform: translateY(-2px);
}

.btn-cyber-outline {
    background: transparent;
    border: 1px solid var(--border-tech);
    color: var(--cyan-core);
}

.btn-cyber-outline:hover {
    background: var(--cyan-muted);
    border-color: var(--cyan-core);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Ticker Marquee sous le Hero */
.system-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background: rgba(0, 0, 0, 0.85);
    border-top: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    animation: marqueeScroll 28s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   08. TERMINAL DE CONTRÔLE (RECHERCHE, FILTRES, TRI)
   -------------------------------------------------------------------------- */
.archive-section {
    margin-bottom: 5rem;
}

.terminal-control-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-tech);
    margin-bottom: 2.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.control-box-header {
    background: rgba(0, 243, 255, 0.06);
    border-bottom: 1px solid var(--border-tech);
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.control-box-title {
    color: var(--cyan-core);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.terminal-prompt {
    color: var(--onche-gold);
    margin-right: 0.3rem;
}

.active-filter-count {
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
}

.control-box-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Champ de recherche */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-deep);
    border: 1px solid var(--border-dim);
    padding: 0.25rem 0.75rem;
    transition: all var(--transition-fast);
}

.search-input-wrapper:focus-within {
    border-color: var(--cyan-core);
    box-shadow: 0 0 12px var(--cyan-muted);
}

.search-icon {
    font-size: 0.9rem;
    margin-right: 0.6rem;
    color: var(--text-muted);
}

.cyber-search-input {
    flex-grow: 1;
    padding: 0.6rem 0.25rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.cyber-search-input::placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-clear-btn {
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.search-clear-btn.is-visible {
    opacity: 1;
}

.search-clear-btn:hover {
    color: var(--pink-glitch);
}

/* Tags de Catégories */
.filter-tags-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.filter-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-filter-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.tag-filter-btn:hover {
    border-color: var(--cyan-border);
    color: var(--cyan-core);
}

.tag-filter-btn.is-active {
    background: var(--cyan-core);
    border-color: var(--cyan-core);
    color: var(--text-dark);
    font-weight: 700;
    box-shadow: 0 0 10px var(--cyan-glow);
}

/* Contrôles Secondaires : Tri & Mode d'Affichage */
.secondary-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.control-sublabel {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.cyber-select {
    background: var(--bg-deep);
    border: 1px solid var(--border-dim);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.cyber-select:focus {
    border-color: var(--cyan-core);
}

.view-mode-control {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.view-btn {
    padding: 0.35rem 0.65rem;
    background: var(--bg-deep);
    border: 1px solid var(--border-dim);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn.is-active {
    border-color: var(--cyan-core);
    color: var(--cyan-core);
    background: var(--cyan-muted);
}

/* --------------------------------------------------------------------------
   09. CARTES DE JEUX (CARTRIDGE & RETRO-CYBER DISPLAY)
   -------------------------------------------------------------------------- */
.games-grid-container {
    display: grid;
    gap: 2rem;
    transition: opacity var(--transition-base);
}

/* Mode Grille */
.games-grid-container.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

/* Mode Liste Compacte */
.games-grid-container.view-compact {
    grid-template-columns: 1fr;
}

/* Structure de la Carte de Jeu */
.game-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-sm);
}

/* Effet de Coin Coupé Tech */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, transparent 50%, var(--bg-deep) 50%);
    border-bottom: 1px solid var(--border-tech);
    border-left: 1px solid var(--border-tech);
    z-index: 5;
    pointer-events: none;
}

/* Hover de la Carte */
.game-card:hover {
    border-color: var(--cyan-core);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--cyan-muted);
    transform: translateY(-4px);
}

/* Carte ciblée via Hash URL (#game-001) */
.game-card.is-targeted {
    border-color: var(--onche-gold) !important;
    box-shadow: 0 0 35px var(--onche-glow) !important;
    animation: targetPulse 2.5s infinite ease-in-out;
}

@keyframes targetPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

/* En-tête de la Carte */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.card-id {
    font-weight: 700;
    color: var(--cyan-core);
    letter-spacing: 0.06em;
}

.card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    color: var(--green-neon);
    background: rgba(0, 255, 136, 0.08);
    padding: 2px 8px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--green-neon);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green-neon);
}

/* Statut Archivé / Serveur Off */
.card-status.status-archived {
    color: var(--onche-gold);
    background: rgba(255, 183, 3, 0.1);
    border-color: rgba(255, 183, 3, 0.3);
}

.card-status.status-archived .status-dot {
    background: var(--onche-gold);
    box-shadow: 0 0 6px var(--onche-glow);
}

/* Statut Bêta */
.card-status.status-beta {
    color: var(--cyan-core);
    background: rgba(0, 243, 255, 0.08);
    border-color: var(--cyan-border);
}

.card-status.status-beta .status-dot {
    background: var(--cyan-core);
    box-shadow: 0 0 6px var(--cyan-glow);
}

/* Conteneur Média / Miniature */
.card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020305;
    overflow: hidden;
    border-bottom: 1px solid var(--border-dim);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
    filter: saturate(0.85) contrast(1.05);
}

.game-card:hover .card-img {
    transform: scale(1.06);
    filter: saturate(1.15) contrast(1.1);
}

/* Fallback Visuel Haute Qualité si pas d'image */
.card-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #141c2e 0%, #05070a 100%);
}

.placeholder-grid {
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    background-image: 
        linear-gradient(to right, rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
}

.placeholder-icon {
    font-size: 2.25rem;
    color: var(--cyan-core);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--cyan-glow);
    z-index: 2;
}

.placeholder-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    z-index: 2;
}

/* Réticule HUD sur la miniature */
.card-hud-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--cyan-core);
    opacity: 0.4;
    transition: opacity var(--transition-fast);
}

.game-card:hover .card-hud-overlay {
    opacity: 0.9;
}

.hud-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    color: var(--cyan-core);
    opacity: 0;
    transition: opacity var(--transition-fast), transform 0.4s var(--ease-out-expo);
}

.game-card:hover .hud-crosshair {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Corps de la Carte */
.card-body {
    padding: 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
    transition: color var(--transition-fast);
}

.game-card:hover .card-title {
    color: var(--cyan-core);
}

.card-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--onche-gold);
    font-weight: 700;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Tags de la Carte */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.card-tag-pill {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dim);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.03em;
}

/* Actions / Boutons de la Carte */
.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-dim);
}

.btn-card-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--cyan-core);
    color: var(--text-dark);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.6rem 0.5rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.04em;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.btn-card-play:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--cyan-glow);
    color: #000;
}

.btn-card-topic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid var(--onche-gold);
    color: var(--onche-gold);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.6rem 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
}

.btn-card-topic:hover {
    background: var(--onche-gold);
    color: var(--text-dark);
    box-shadow: 0 0 15px var(--onche-glow);
}

.btn-card-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-dim);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.btn-card-share:hover {
    border-color: var(--cyan-core);
    color: var(--cyan-core);
}

/* Mode Compact Terminal View */
.view-compact .game-card {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.view-compact .card-media {
    width: 140px;
    aspect-ratio: 16 / 10;
    border-bottom: none;
    border-right: 1px solid var(--border-dim);
}

.view-compact .card-header {
    width: 100%;
}

.view-compact .card-body {
    padding: 0.85rem 1.25rem;
}

.view-compact .card-actions {
    border-top: none;
    padding-top: 0;
    padding-right: 1.25rem;
}

/* Aucun résultat */
.no-results-box {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surface);
    border: 1px dashed var(--border-tech);
    margin: 2rem 0;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--onche-gold);
    margin-bottom: 1rem;
}

.no-results-box h3 {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.no-results-box p {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   10. SECTION À PROPOS / DOSSIER D'ARCHIVISTE "ALPHABET"
   -------------------------------------------------------------------------- */
.about-section {
    margin-bottom: 5rem;
}

.about-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-tech);
    padding: clamp(1.5rem, 4vw, 3rem);
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.about-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--onche-gold), var(--cyan-core), transparent);
}

.about-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 1rem;
}

.about-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--onche-gold);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.25rem;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
}

.about-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.avatar-terminal {
    background: var(--bg-deep);
    border: 1px solid var(--border-dim);
    padding: 1.25rem;
    text-align: center;
}

.avatar-hud-frame {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border: 2px solid var(--cyan-core);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 20px var(--cyan-muted);
}

.avatar-letter {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: var(--cyan-core);
    text-shadow: 0 0 20px var(--cyan-glow);
}

.avatar-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px #fff;
    animation: avatarScan 2.5s infinite linear;
}

@keyframes avatarScan {
    0% { top: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.avatar-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    line-height: 1.4;
}

.avatar-meta strong {
    color: var(--cyan-core);
}

.about-col-right p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.cyber-chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 243, 255, 0.06);
    border: 1px solid var(--cyan-border);
    color: var(--cyan-core);
    padding: 0.35rem 0.85rem;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   11. FOOTER BRUTALISTE & DÉTAILS TECHNIQUES
   -------------------------------------------------------------------------- */
.system-footer {
    border-top: 1px solid var(--border-tech);
    background: var(--bg-surface);
    margin-top: 5rem;
    padding-top: 3.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--cyan-core);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 320px;
}

.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--green-neon);
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.25);
    padding: 0.35rem 0.75rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--green-neon);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green-neon);
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--onche-gold);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--cyan-core);
    padding-left: 4px;
}

.footer-shortcuts {
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.footer-shortcuts li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

kbd {
    background: var(--bg-deep);
    border: 1px solid var(--border-bright);
    color: var(--cyan-core);
    padding: 1px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 2px;
}

.footer-sm-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-dim);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer-secret-hint {
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-secret-hint:hover {
    color: var(--pink-glitch);
}

/* --------------------------------------------------------------------------
   12. TERMINAL MODAL (CLI EASTER EGG)
   -------------------------------------------------------------------------- */
.terminal-modal {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.terminal-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.terminal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.85);
    backdrop-filter: blur(8px);
}

.terminal-window {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 680px;
    height: 440px;
    background: #090c14;
    border: 1px solid var(--cyan-core);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--cyan-muted);
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: rgba(0, 243, 255, 0.08);
    border-bottom: 1px solid var(--cyan-border);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.term-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.term-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cyan-core);
}

.term-close-btn {
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}
.term-close-btn:hover { color: #fff; }

.terminal-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.term-line {
    word-break: break-all;
}

.term-intro {
    color: var(--onche-gold);
    font-weight: 700;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-dim);
    background: rgba(0, 0, 0, 0.4);
    font-family: var(--font-mono);
}

.term-prompt-sym {
    color: var(--green-neon);
    font-size: 0.8rem;
    white-space: nowrap;
}

.term-cmd-input {
    flex-grow: 1;
    color: #fff;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   13. HUD TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.hud-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9995;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--cyan-core);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--cyan-muted);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transform: translateY(120%);
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
}

.hud-toast.is-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-indicator {
    width: 6px;
    height: 28px;
    background: var(--cyan-core);
    box-shadow: 0 0 10px var(--cyan-core);
}

.toast-body {
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
}

.toast-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cyan-core);
    letter-spacing: 0.08em;
}

.toast-msg {
    font-size: 0.82rem;
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   14. EASTER EGG OVERDRIVE / MATRIX MODE
   -------------------------------------------------------------------------- */
body.overdrive-mode {
    --cyan-core: #00ff66;
    --cyan-glow: rgba(0, 255, 102, 0.5);
    --cyan-border: rgba(0, 255, 102, 0.35);
    --onche-gold: #00ff88;
    --onche-glow: rgba(0, 255, 136, 0.5);
    filter: hue-rotate(90deg) contrast(1.1);
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .avatar-terminal {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .system-bar-inner {
        padding: 0 1rem;
    }
    .sys-center {
        display: none;
    }
    .hero-section {
        padding: 2.5rem 1.25rem;
    }
    .hero-eyebrow {
        flex-wrap: wrap;
    }
    .telemetry-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .secondary-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-actions {
        grid-template-columns: 1fr;
    }
    .view-compact .game-card {
        flex-direction: column;
    }
    .view-compact .card-media {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-dim);
    }
    .view-compact .card-actions {
        width: 100%;
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .telemetry-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions .btn-cyber {
        width: 100%;
    }
    .hud-toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}

/* --------------------------------------------------------------------------
   16. ACCESSIBILITÉ PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@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;
    }
    #bg-canvas {
        display: none;
    }
    .marquee-track {
        animation: none;
    }
}
