/* --- SYSTÈME DE DESIGN --- */
:root {
    --primary: #4f46e5;       /* Indigo 600 */
    --primary-soft: rgba(79, 70, 229, 0.1);
    --bg-deep: #0f172a;       /* Slate 900 */
    --bg-card: #1e293b;       /* Slate 800 */
    --border: #334155;        /* Slate 700 */
    --text-white: #f8fafc;    /* Slate 50 */
    --text-muted: #94a3b8;    /* Slate 400 */
    --success: #10b981;
    --discord: #5865F2;       /* Couleur Discord */
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-white);
    line-height: 1.6;
}

/* --- NAVIGATION --- */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Bouton et icône Discord */
.nav-links .discord-icon {
    font-size: 22px;
    margin-right: -10px;
}

.nav-links .discord-icon:hover {
    color: var(--discord);
    transform: translateY(-2px) scale(1.1);
}

.btn-connect {
    background: var(--primary);
    color: white !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

/* --- HERO (Avec Animation Pluie de Comètes Rapide) --- */
.hero {
    padding: 100px 8% 60px 8%;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, transparent 50%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Pour s'assurer que le texte passe AU-DESSUS des comètes */
.hero > * {
    position: relative;
    z-index: 2;
}

/* Base des Comètes */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, #ffffff, var(--primary), transparent);
    border-radius: 100px 0 0 100px;
    z-index: 0;
    opacity: 0;
}

/* Vague 1 (3 comètes très rapides) */
.hero::before {
    top: 10%;
    right: -10%;
    width: 250px;
    /* L'astuce : Le box-shadow crée des copies exactes de la comète à d'autres endroits ! */
    box-shadow:
            0 0 15px 2px rgba(79, 70, 229, 0.8),              /* Comète principale */
            300px -150px 0 -1px rgba(255, 255, 255, 0.4),     /* Comète secondaire (décalée en haut à droite) */
            600px 100px 0 0 rgba(79, 70, 229, 0.6);           /* Comète tertiaire (décalée en bas à droite) */
    animation: comet-fall 2s linear infinite; /* Très rapide : 2 secondes */
}

/* Vague 2 (2 comètes un peu plus lentes et floues pour l'effet de profondeur) */
.hero::after {
    top: -20%;
    right: 20%;
    width: 150px;
    box-shadow:
            0 0 10px 1px rgba(79, 70, 229, 0.5),
            400px -250px 0 0 rgba(255, 255, 255, 0.3);
    filter: blur(1px); /* Rend celles-ci plus lointaines */
    animation: comet-fall 3s linear infinite;
    animation-delay: 0.8s;
}

/* Animation Diagonale des Comètes - Ajustée pour bombarder l'écran */
@keyframes comet-fall {
    0% {
        transform: translate(300px, -300px) rotate(-45deg);
        opacity: 0;
    }
    5% {
        opacity: 1; /* Apparaît d'un coup */
    }
    40% {
        transform: translate(-1800px, 1800px) rotate(-45deg); /* Traverse tout très vite */
        opacity: 0;
    }
    100% {
        /* Reste invisible le temps que la boucle recommence */
        transform: translate(-1800px, 1800px) rotate(-45deg);
        opacity: 0;
    }
}

.status-badge {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(79, 70, 229, 0.3);
    display: inline-block;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 25px 0;
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(79, 70, 229, 0.3); /* Léger halo sur le titre */
}

h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 750px;
    margin: 0 auto 40px auto;
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* --- STATS --- */
.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px 50px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 220px;
    backdrop-filter: blur(5px);
}

.stat-card h2 {
    font-size: 36px;
    margin: 0;
    font-weight: 800;
}

.stat-card p {
    margin: 5px 0 0 0;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- GRID MODULES --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 0 8% 100px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 35px;
    border-radius: var(--radius);
    cursor: default;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: #243147;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
}

.icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.card h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* --- CHANGELOG (MISES À JOUR) --- */
.news-section {
    background: rgba(11, 17, 32, 0.8);
    padding: 100px 8%;
    border-top: 1px solid var(--border);
}

.news-container {
    max-width: 1000px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.news-item:hover {
    border-color: var(--primary);
}

.news-version {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 6px;
    font-weight: 800;
    height: fit-content;
    min-width: 70px;
    text-align: center;
}

.news-content h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
    line-height: 1.7;
}

.tag {
    font-size: 10px;
    background: #334155;
    color: #cbd5e1;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    background-color: var(--bg-deep);
}

footer b {
    color: var(--text-white);
}