/* ==========================================
   VARIABLES ET CONFIGURATION
   ========================================== */
:root {
    --bg: #f5f5f7;
    --text: #1a1a1a;
    --primary: #334155;
    --secondary: #94a3b8;
    --card-bg: #ffffff;
    --nav-bg: rgba(245, 245, 247, 0.8);
    --accent: #64748b;
}

[data-theme="dark"] {
    --bg: #0f1113;      
    --text: #e2e8f0;    
    --primary: #94a3b8; 
    --secondary: #475569;
    --card-bg: #1e2023; 
    --nav-bg: rgba(15, 17, 19, 0.9);
    --accent: #cbd5e1;
}

* { margin: 0; padding: 0; box-sizing: border-box; transition: all 0.3s ease; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* ==========================================
   NAVIGATION
   ========================================== */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 0.8rem 2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--secondary);
}

.logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.logo-text { font-weight: 800; font-size: 1.4rem; color: var(--text); letter-spacing: -0.5px; }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }

.theme-toggle { 
    cursor: pointer; 
    background: var(--card-bg); 
    border: 1px solid var(--secondary); 
    color: var(--text); 
    padding: 8px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center;
    margin-left: auto;
}

/* ==========================================
   HERO & SECTIONS
   ========================================== */
section { padding: 100px 10%; opacity: 0; transform: translateY(20px); }
section.visible { opacity: 1; transform: translateY(0); }

section h2 { margin-bottom: 2.5rem; font-size: 2rem; font-weight: 700; }

.hero { text-align: center; padding: 180px 10% 120px; }
.hero h1 { font-size: 4rem; font-weight: 900; margin-bottom: 1rem; color: var(--text); min-height: 1.2em; }
.hero p { font-size: 1.2rem; color: var(--secondary); max-width: 600px; margin: 0 auto; }

.btn-discord { 
    background: #5865F2; 
    color: white; 
    padding: 14px 28px; 
    border-radius: 12px; 
    text-decoration: none; 
    display: inline-block; 
    margin-top: 2rem; 
    font-weight: 600; 
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3); 
}
.btn-discord:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4); }

/* ==========================================
   COMPOSANTS (Grilles, Cartes, Badges)
   ========================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.card { 
    background: var(--card-bg); 
    padding: 2.5rem; 
    border-radius: 16px; 
    border: 1px solid rgba(148, 163, 184, 0.1); 
}
.card:hover { border-color: var(--primary); transform: translateY(-5px); }
.card h3 { margin-bottom: 1rem; color: var(--accent); }

/* --- Styles pour cartes cliquables --- */
.clickable-card { padding: 0; overflow: hidden; } /* On retire le padding de la div pour que le lien prenne tout l'espace */
.clickable-card a { 
    display: block; 
    padding: 2.5rem; 
    text-decoration: none; 
    color: inherit; 
    height: 100%; 
    width: 100%; 
}
/* ------------------------------------- */

.card-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.badge { background: var(--secondary); color: var(--bg); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }

/* Staff */
.staff-card { text-align: center; }
.staff-avatar { width: 80px; height: 80px; background: var(--secondary); border-radius: 50%; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* Typewriter Cursor */
.cursor { font-weight: 300; color: var(--primary); animation: blink 1s infinite; margin-left: 5px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

footer { text-align: center; padding: 4rem 2rem; border-top: 1px solid var(--secondary); opacity: 0.7; font-size: 0.9rem; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
}