/* ====================================
   GAMING UI - CSS UNIFIÉ
   Style cohérent pour TOUTES les pages
   ==================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Orbitron:wght@400;700;900&display=swap');

/* ====================================
   VARIABLES GLOBALES
   ==================================== */

:root {
    /* Nord Colors */
    --nord0: #2e3440;
    --nord1: #3b4252;
    --nord2: #434c5e;
    --nord3: #4c566a;
    --nord4: #d8dee9;
    --nord5: #e5e9f0;
    --nord6: #eceff4;
    --nord7: #8fbcbb;
    --nord8: #88c0d0;
    --nord9: #81a1c1;
    --nord10: #5e81ac;
    
    /* Semantic Colors */
    --accent-primary: #88c0d0;
    --accent-secondary: #5e81ac;
    --bg-primary: #2e3440;
    --bg-secondary: #3b4252;
    --bg-tertiary: #434c5e;
    --text-primary: #eceff4;
    --text-secondary: #d8dee9;
    --text-muted: #81a1c1;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 15px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ====================================
   RESET & BASE
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ====================================
   NAVBAR (Identique sur toutes pages)
   ==================================== */

nav {
    background: rgba(59, 66, 82, 0.95);
    padding: 15px 30px;
    border-bottom: 1px solid rgba(136, 192, 208, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    padding: 8px 12px;
    position: relative;
    display: inline-block;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Logo */
nav a:first-child,
nav a.nav-logo,
nav a.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
    color: var(--accent-primary);
}

/* Active state */
nav a.active {
    color: var(--accent-primary) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-decoration-color: var(--accent-primary) !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 8px !important;
    text-shadow: 
        0 0 10px rgba(136, 192, 208, 0.8),
        0 0 20px rgba(136, 192, 208, 0.5),
        0 0 30px rgba(136, 192, 208, 0.3) !important;
    background: rgba(136, 192, 208, 0.1);
    border-radius: var(--radius-sm);
}

/* ====================================
   CONTAINER & LAYOUT
   ==================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* ====================================
   TYPOGRAPHY
   ==================================== */

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    margin: 60px 0 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
}

.section-title .icon {
    font-size: 2.5rem;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ====================================
   CARDS (Uniform sur toutes pages)
   ==================================== */

.card {
    background: rgba(59, 66, 82, 0.7);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(136, 192, 208, 0.3);
    margin-bottom: 20px;
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

/* ====================================
   GRIDS
   ==================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* ====================================
   STAT CARDS (Homepage style)
   ==================================== */

.stat-card {
    background: rgba(59, 66, 82, 0.7);
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(136, 192, 208, 0.3);
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ====================================
   LINKS & BUTTONS
   ==================================== */

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-primary);
    color: var(--nord0);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(136, 192, 208, 0.5);
}

/* ====================================
   FOOTER (Uniform)
   ==================================== */

footer {
    background: var(--bg-secondary);
    padding: 40px 20px;
    text-align: center;
    margin-top: 100px;
    border-top: 1px solid rgba(136, 192, 208, 0.3);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 8px 0;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent-primary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .container {
        padding: 60px 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px 30px;
    }
}

/* ====================================
   ANIMATIONS
   ==================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Apply fade-in to cards */
.card {
    animation: fadeIn 0.5s ease-out;
}

/* ====================================
   UTILITIES
   ==================================== */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* ====================================
   GRADIENT TEXT
   ==================================== */

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================================
   FIN DU CSS UNIFIÉ
   ==================================== */
