/* ============================================================
   BERMUDE ESPORT — DESIGN SYSTEM
   Charte : Colors_Font.pdf (noir #000000, marine #272265,
   cyan #15C2FF, blanc #FFFFFF, police Conthrax SemiBold)

   Organisation du fichier :
   1. Police
   2. Variables (couleurs, espacement, ombres, transitions)
   3. Reset & base
   4. Typographie
   5. Layout (conteneurs, hero de page)
   6. Navbar
   7. Boutons
   8. Formulaires
   9. Cartes (système unifié — remplace modern-card / info-card /
      admin-card / stat-box qui étaient chacune redéfinies par page)
   10. Badges
   11. Auth (login / register)
   12. Panier / boutique
   13. Footer & bandeau cookies
   14. Animations
   15. Utilitaires
   16. Responsive
   ============================================================ */

/* ============ 1. POLICE ============ */
@font-face {
    font-family: 'Conthrax';
    src: url('../fonts/Conthrax-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ============ 2. VARIABLES ============ */
:root {
    /* Couleurs de marque */
    --primary: #15C2FF;
    --secondary: #272265;
    --dark: #272265;
    --darker: #000000;
    --accent: #ff3366;
    --white: #FFFFFF;

    /* Surfaces */
    --surface: rgba(15, 16, 36, 0.72);
    --surface-hover: rgba(15, 16, 36, 0.9);
    --surface-border: rgba(21, 194, 255, 0.16);
    --surface-border-hover: rgba(21, 194, 255, 0.55);

    /* Texte */
    --text-muted: #9a9db0;

    /* Dégradés — utilisés avec parcimonie (grands titres de hero uniquement) */
    --gradient-primary: linear-gradient(135deg, var(--primary), #0a9fd4);
    --gradient-full: linear-gradient(135deg, var(--primary), var(--secondary));

    /* Espacement */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4rem;

    /* Rayons & ombres */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 8px 24px rgba(21, 194, 255, 0.18);

    --transition: 0.25s ease;
}

/* ============ 3. RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--darker);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

::selection {
    background: var(--primary);
    color: #000;
}

/* ============ 4. TYPOGRAPHIE ============ */
.brand-font {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
}

/* Grand titre de hero — seul endroit où le texte en dégradé est utilisé */
.hero-title {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 600;
    background: var(--gradient-full);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
}

/* Titre de section — solide + liseré d'accent, pas de dégradé répété partout */
.section-title {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-4);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-primary-custom {
    color: var(--primary) !important;
}

/* ============ 5. LAYOUT ============ */
.page-hero {
    position: relative;
    padding: var(--space-7) 0 var(--space-6);
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 30%, rgba(21, 194, 255, 0.08), transparent 55%);
    pointer-events: none;
}

.page-hero > .container {
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--space-6) 0;
}

/* ============ 6. NAVBAR ============ */
.navbar-custom {
    background: rgba(6, 7, 18, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--surface-border);
    padding: 0.9rem 0;
}

.navbar-brand {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0.4rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--primary);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .navbar-collapse {
        background: rgba(6, 7, 18, 0.98);
        padding: var(--space-3);
        margin-top: var(--space-3);
        border: 1px solid var(--surface-border);
        border-radius: var(--radius-md);
    }
    .nav-link::after { display: none; }
}

/* ============ 7. BOUTONS ============ */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: #000;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(21, 194, 255, 0.35);
    color: #000;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: #000;
}

/* ============ 8. FORMULAIRES ============ */
.form-label-custom {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
}

.form-control-custom {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-border);
    color: var(--white);
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    width: 100%;
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 194, 255, 0.15);
    color: var(--white);
    outline: none;
}

.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.alert-custom {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--accent);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    color: #ff6688;
    padding: var(--space-3);
    margin-bottom: var(--space-4);
}

.alert-success-custom {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    border-left: 3px solid #22c55e;
    border-radius: var(--radius-sm);
    color: #4ade80;
    padding: var(--space-3);
    margin-bottom: var(--space-4);
}

/* ============ 9. CARTES — système unifié ============
   Base commune à toutes les "cartes" du site (remplace modern-card,
   info-card, product-card, news-card, event-card, stat-box qui étaient
   chacune redéfinies indépendamment par page). Les variantes n'ajoutent
   que ce qui leur est propre (image, layout interne). */
.card-surface {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card-surface--interactive:hover {
    border-color: var(--surface-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.card-body-padded {
    padding: var(--space-4);
}

/* Carte joueur (roster, page d'accueil) */
.player-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--darker);
    border: 1px solid var(--surface-border);
    transition: border-color var(--transition), transform var(--transition);
}

.player-card:hover {
    border-color: var(--surface-border-hover);
    transform: translateY(-4px);
}

.player-card-image,
.player-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(60%);
    transition: filter var(--transition);
}

.player-card:hover .player-card-image,
.player-card:hover .player-image {
    filter: grayscale(0%);
}

.player-card-info,
.player-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
    padding: var(--space-4) var(--space-3) var(--space-3);
}

.player-pseudo {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.player-role {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Carte "jeu" (roster.php — grille de jeux) */
.game-card {
    position: relative;
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    border: 1px solid var(--surface-border);
    transition: border-color var(--transition), transform var(--transition);
}

.game-card:hover {
    border-color: var(--surface-border-hover);
    transform: translateY(-6px);
}

.game-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-bg {
    transform: scale(1.06);
}

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(39, 34, 101, 0.4) 55%, rgba(0, 0, 0, 0.15) 100%);
}

.game-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    z-index: 2;
}

.game-card-icon {
    width: 52px;
    height: 52px;
    background: rgba(21, 194, 255, 0.15);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: var(--space-3);
}

.game-card-name {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.game-card-stats {
    display: flex;
    gap: var(--space-4);
}

.game-stat {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.game-stat i { color: var(--primary); }

/* Carte actualité */
.news-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}

.news-card:hover {
    border-color: var(--surface-border-hover);
    transform: translateY(-4px);
}

.news-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news-card-body { padding: var(--space-4); }

.news-card-title {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
}

.news-card-date {
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Carte produit */
.product-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}

.product-card:hover {
    border-color: var(--surface-border-hover);
    transform: translateY(-4px);
}

.product-image {
    height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary), var(--dark));
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-info { padding: var(--space-4); }

.product-title {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
    font-size: 1rem;
}

.product-price {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: var(--space-2);
}

/* Carte événement */
.event-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    transition: border-color var(--transition);
    height: 100%;
}

.event-card:hover {
    border-color: var(--surface-border-hover);
}

/* Bloc info générique (biographie, statistiques, contact...) */
.info-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
}

/* Carte statistique (accueil, admin) */
.stat-card {
    text-align: center;
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition);
}

.stat-card:hover { border-color: var(--surface-border-hover); }

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.stat-number,
.stat-value {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ 10. BADGES ============ */
.event-type-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.type-match { background: rgba(21, 194, 255, 0.18); color: var(--primary); }
.type-tournament { background: rgba(255, 215, 0, 0.18); color: #ffd700; }
.type-streaming { background: rgba(138, 43, 226, 0.18); color: #b06bff; }
.type-bootcamp { background: rgba(255, 51, 102, 0.18); color: var(--accent); }
.type-meeting { background: rgba(0, 150, 255, 0.18); color: #4db8ff; }
.type-other,
.type-info { background: rgba(154, 157, 176, 0.18); color: var(--text-muted); }
.type-warning { background: rgba(234, 179, 8, 0.18); color: #eab308; }
.type-urgent { background: rgba(239, 68, 68, 0.18); color: #ef4444; }
.type-event { background: rgba(21, 194, 255, 0.18); color: var(--primary); }

.live-badge {
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

.achievement-badge {
    background: rgba(21, 194, 255, 0.12);
    border: 1px solid var(--surface-border-hover);
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

/* ============ 11. AUTH ============ */
.auth-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    padding: var(--space-6) 0;
}

.auth-card {
    background: var(--surface-hover);
    border: 1px solid var(--surface-border-hover);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    max-width: 480px;
    width: 100%;
}

.auth-title {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: var(--space-5);
    text-transform: uppercase;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--space-5) 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--surface-border);
}

.divider span {
    padding: 0 var(--space-3);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Indicateur de force du mot de passe (inscription) */
.password-strength {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: var(--space-2);
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: width var(--transition), background-color var(--transition);
    border-radius: 2px;
}

.strength-weak { width: 33%; background: var(--accent); }
.strength-medium { width: 66%; background: #eab308; }
.strength-strong { width: 100%; background: var(--primary); }

/* ============ 12. PANIER / BOUTIQUE ============ */
.cart-item {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.cart-item-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.quantity-btn {
    background: rgba(21, 194, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.quantity-btn:hover { background: var(--primary); color: #000; }

.quantity-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-border);
    color: var(--white);
    width: 55px;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 0.35rem;
}

.summary-card {
    background: var(--surface-hover);
    border: 1px solid var(--surface-border-hover);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--surface-border);
}

.summary-total {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: var(--primary);
}

/* Pages légales (mentions, CGU, confidentialité, cookies) */
.legal-page { min-height: 60vh; padding: var(--space-6) 0; }
.legal-card { background: var(--surface); border: 1px solid var(--surface-border-hover); border-radius: var(--radius-lg); padding: var(--space-6); }
.legal-card h1 { font-family: 'Conthrax', sans-serif; color: var(--primary); margin-bottom: var(--space-5); }
.legal-card h2 { color: var(--primary); font-size: 1.3rem; margin-top: var(--space-5); margin-bottom: var(--space-3); }
.legal-card p, .legal-card li { color: rgba(255,255,255,0.8); line-height: 1.8; }
.legal-card ul { padding-left: var(--space-4); }
.legal-card a { color: var(--primary); }
.legal-card .last-update { color: var(--text-muted); font-size: 0.85rem; margin-bottom: var(--space-5); }

.cookie-table { width: 100%; border-collapse: collapse; margin: var(--space-3) 0; }
.cookie-table th, .cookie-table td { padding: var(--space-3); border: 1px solid var(--surface-border-hover); text-align: left; }
.cookie-table th { background: rgba(21, 194, 255, 0.08); color: var(--primary); }
.cookie-table td { color: rgba(255,255,255,0.8); }

.cookie-settings { background: rgba(0,0,0,0.3); border-radius: var(--radius-lg); padding: var(--space-5); margin: var(--space-5) 0; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--surface-border); gap: var(--space-3); }
.cookie-option:last-child { border-bottom: none; }
.cookie-option-info h4 { color: #fff; margin-bottom: 0.3rem; font-size: 1rem; }
.cookie-option-info p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.toggle-switch { position: relative; width: 52px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background-color: rgba(255,255,255,0.15); transition: .3s; border-radius: var(--radius-pill); cursor: pointer; }
.toggle-slider::before { position: absolute; content: ''; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .toggle-slider { background-color: var(--primary); }
input:checked + .toggle-slider::before { transform: translateX(24px); }
input:disabled + .toggle-slider { opacity: 0.6; cursor: not-allowed; }

/* Page 404 */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-6); }
.error-code { font-family: 'Conthrax', sans-serif; font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: var(--space-3); }
.error-title { font-family: 'Conthrax', sans-serif; font-size: 1.6rem; color: #fff; margin-bottom: var(--space-3); text-transform: uppercase; }
.error-message { color: var(--text-muted); font-size: 1.05rem; margin-bottom: var(--space-5); max-width: 480px; margin-left: auto; margin-right: auto; }
.suggestions-list { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-3); }
.suggestion-link { color: var(--primary); text-decoration: none; padding: 0.5rem 1rem; border: 1px solid var(--surface-border-hover); border-radius: var(--radius-pill); font-size: 0.85rem; }
.suggestion-link:hover { background: rgba(21, 194, 255, 0.1); }

/* ============ 13. FOOTER & COOKIES ============ */
footer {
    background: var(--dark);
    border-top: 1px solid var(--surface-border-hover);
}

footer h3, footer h5 {
    font-family: 'Conthrax', 'Orbitron', sans-serif;
    color: var(--primary);
}

footer a:hover { color: var(--primary) !important; }

#cookieBanner {
    background: rgba(4, 5, 12, 0.97);
    border-top: 1px solid var(--surface-border-hover);
}

/* ============ 14. ANIMATIONS ============
   Un seul jeu d'animations réutilisé partout (au lieu de dizaines de
   @keyframes quasi identiques redéfinies par page). */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animate-shake {
    animation: shake 0.4s ease-in-out;
}

/* ============ 15. UTILITAIRES ============ */
.text-muted-custom { color: var(--text-muted) !important; }

.empty-state {
    text-align: center;
    padding: var(--space-7) var(--space-4);
    background: var(--surface);
    border: 1px dashed var(--surface-border-hover);
    border-radius: var(--radius-lg);
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: var(--space-3);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #0af; }

/* ============ 16. RESPONSIVE ============ */
@media (max-width: 768px) {
    .page-hero { padding: var(--space-6) 0 var(--space-5); }
    .game-card { height: 340px; }
    .summary-card { position: static; }
}
