/* VARIABLES ET BASE (DA UNIFIÉE) */
:root {
    --bg-dark: #07070a;
    --nav-bg: #13141c;
    --nav-border: rgba(255, 255, 255, 0.05);
    --text-main: #f8fafc;
    --text-muted: #8b9bb4;
    --primary-blue: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --twitch-purple: #8b5cf6;
    --discord-blue: #5865F2;
    --recruit-red: #f43f5e;
    --success-green: #10b981;
    --card-bg: rgba(19, 20, 28, 0.65);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.08), transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.05), transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 100px;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* =========================================
   EN-TÊTE GLOBAL (BOUTON RETOUR + NAVBAR)
   ========================================= */
.main-header {
    position: fixed; top: 15px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 1450px; /* Légèrement plus grand pour inclure le bouton */
    display: flex; gap: 12px; align-items: center; z-index: 1000;
}

/* Le bouton indépendant collé à gauche */
.global-back-btn {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--nav-bg); border: 1px solid var(--nav-border); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); text-decoration: none; transition: 0.2s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); font-size: 1.1rem;
}
.global-back-btn:hover { background: rgba(255,255,255,0.1); color: white; transform: scale(1.05); }

/* La Navbar */
.navbar {
    flex: 1; /* Prend tout le reste de l'espace */
    background: var(--nav-bg); border: 1px solid var(--nav-border);
    border-radius: 12px; display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-left, .nav-right { flex: 1; display: flex; align-items: center; gap: 10px; }
.nav-center { flex: 2; display: flex; align-items: center; justify-content: center; gap: 20px; }
.nav-right { justify-content: flex-end; }

.nav-btn-icon { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; transition: 0.2s; font-size: 1rem; }
.nav-btn-icon:hover { background: rgba(255, 255, 255, 0.1); color: white; }

.nav-link { color: var(--text-muted); text-decoration: none; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.2s; }
.nav-link:hover, .nav-link.active { color: white; }

.social-group { display: flex; gap: 6px; align-items: center; }
.nav-separator { width: 2px; height: 20px; background: rgba(255,255,255,0.1); margin: 0 5px; border-radius: 1px; }

.nav-btn-twitch, .nav-btn-red, .nav-btn-blue {
    color: white; padding: 0 16px; height: 36px; border-radius: 8px; font-weight: 900; font-size: 0.8rem; 
    display: flex; align-items: center; gap: 8px; text-decoration: none; transition: 0.2s; border: none; 
    cursor: pointer; text-transform: uppercase; white-space: nowrap;
}
.nav-btn-twitch { background: linear-gradient(90deg, #8b5cf6, #a855f7); }
.nav-btn-red { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.nav-btn-blue { background: var(--primary-blue); font-weight: 800; text-transform: none; }

.nav-btn-twitch:hover { filter: brightness(1.1); box-shadow: 0 0 15px rgba(139, 92, 246, 0.4); transform: translateY(-1px); }
.nav-btn-red:hover { filter: brightness(1.1); box-shadow: 0 0 15px rgba(244, 63, 94, 0.4); transform: translateY(-1px); }
.nav-btn-blue:hover { background: #2563eb; }

/* Profil Utilisateur (remplace le bouton connexion quand connecté) */
.nav-user-profile {
    display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05);
    padding: 4px 12px 4px 4px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1);
    transition: 0.2s; cursor: pointer;
}
.nav-user-profile:hover { background: rgba(255,255,255,0.1); }
.nav-user-profile img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-user-profile span { font-weight: 800; font-size: 0.85rem; color: white; }

@media (max-width: 900px) { .nav-center { display: none; } }