:root {
    --bg-darker: #0a0a0c;
    --bg-card: #141417;
    --accent-green: #2ecc71;
    --accent-blue: #3498db;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border: #27272a;
    --discord: #5865f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between; /* Espacement entre les groupes (gauche, centre, droite) */
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Espacement entre le hamburger et le brand */
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
    /* Assure que la marque se positionne naturellement */
    position: static; 
    transform: none;
}

.brand i {
    color: var(--accent-green);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-green);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-join {
    background: var(--discord);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, filter 0.2s;
}

.btn-join:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* --- HERO --- */
.hero {
    padding: 180px 5% 100px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* --- SECTIONS --- */
section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--accent-green);
    margin-top: 8px;
}

/* --- GRID & CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card:hover {
    border-color: var(--accent-green);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(46, 204, 113, 0.1);
    color: var(--accent-green);
}

.card h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-footer {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333;
}

/* --- CHALLENGES --- */
.challenge-banner {
    background: linear-gradient(90deg, #1a1a1f 0%, #0f0f12 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
}

.challenge-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.timer {
    display: flex;
    gap: 1.5rem;
}

.time-unit {
    text-align: center;
}

.time-unit span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
}

.time-unit small {
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* --- FOOTER --- */
footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 5%;
    border-top: 1px solid var(--border);
    margin-top: 50px;
    gap: 2rem;
}

.footer-logo {
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-partner {
    text-align: right;
}

/* --- HAMBURGER & MOBILE NAV --- */
.hamburger {
    display: block; /* Toujours visible */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 1001;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(15px);
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--accent-green);
}

/* --- MOBILE & RESPONSIVE --- */
/* On garde ce bloc pour les ajustements qui restent pertinents sur mobile */
@media (max-width: 768px) {
    /* Sur mobile, on peut choisir de masquer les liens principaux pour ne pas surcharger */
    .nav-links {
        display: none;
    }
    .btn-join { /* Masquer le bouton "Rejoindre" aussi */
        display: none;
    }
    
    /* Autres ajustements pour mobile */
    .challenge-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-partner {
        text-align: center;
    }
}
/* --- HERO --- */
.hero {
    padding: 180px 5% 100px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* --- SECTIONS --- */
section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--accent-green);
    margin-top: 8px;
}

/* --- GRID & CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card:hover {
    border-color: var(--accent-green);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(46, 204, 113, 0.1);
    color: var(--accent-green);
}

.card h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-footer {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333;
}

/* --- CHALLENGES --- */
.challenge-banner {
    background: linear-gradient(90deg, #1a1a1f 0%, #0f0f12 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
}

.challenge-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.timer {
    display: flex;
    gap: 1.5rem;
}

.time-unit {
    text-align: center;
}

.time-unit span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
}

.time-unit small {
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* --- FOOTER --- */
footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 5%;
    border-top: 1px solid var(--border);
    margin-top: 50px;
    gap: 2rem;
}

.footer-logo {
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-partner {
    text-align: right;
}

/* --- HAMBURGER & MOBILE NAV --- */
.hamburger {
    display: block; /* Toujours visible */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 1001;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(15px);
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--accent-green);
}

/* --- MOBILE & RESPONSIVE --- */
/* On garde ce bloc pour les ajustements qui restent pertinents sur mobile */
@media (max-width: 768px) {
    /* Sur mobile, on peut choisir de masquer les liens principaux pour ne pas surcharger */
    .nav-links {
        display: none;
    }
    .brand {
        /* On pourrait vouloir que la marque ne soit pas écrasée */
        flex-shrink: 0;
    }
    
    /* Autres ajustements pour mobile */
    .challenge-banner { 
        flex-direction: column; 
        text-align: center; 
        padding: 2rem; 
    }
    .hero h1 { 
        font-size: 2.8rem; 
    }
    .grid { 
        grid-template-columns: 1fr; 
    }
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-partner {
        text-align: center;
    }
}
