/* ======= Styles Généraux ======= */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1E2022, #3A3D40); /* Dégradé moderne */
    color: #FFF;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ======= Section Hero ======= */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(120deg, #222831, #393E46); /* Dégradé moderne */
    color: white;
    font-size: 18px;
    border-radius: 10px;
    margin: 30px auto;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* ======= Section Statistiques ======= */
.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 10%;
    flex-wrap: wrap;
}

.stat-card {
    background: #2D2F33;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    width: 220px;
    transition: transform 0.3s ease-in-out;
}

.stat-card:hover {
    transform: scale(1.05);
    background: hsla(0, 0%, 0%, 0.588);
    color: #222;
}

.stat-card h2 {
    font-size: 36px;
    color: #FFD369;
    margin-bottom: 5px;
}

.stat-card p {
    font-weight: bold;
    color: #FFF;
}

/* ======= Section Tournois ======= */
/* ======= Section Tournois ======= */
.tournaments {
    text-align: center;
    padding: 50px 10%;
    margin-top: 20px;
}

/* Grille pour les cartes de tournois */
.tournament-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Carte des tournois */
/* ======= Section Tournois ======= */
.tournaments {
    text-align: center;
    padding: 50px 10%;
    margin-top: 20px;
    margin-bottom: 50px; /* Ajout d'une marge pour l'espace sous les tournois */
}

/* Grille pour les cartes de tournois */
.tournament-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}


/* Style lorsque aucun tournoi n'est disponible */
.no-tournament {
    background: #1E2022;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 50%;
    margin: 20px auto;
}

.no-tournament p {
    font-size: 18px;
    color: #DDD;
}

/* Style général pour le container des alertes */
#alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Style pour chaque alerte */
.alert {
    padding: 15px;
    color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out, fadeOut 5s 4.5s ease-in-out; /* Animation d'apparition et de disparition */
}

/* Types d'alertes */
.alert-success {
    background-color: #4CAF50; /* Vert pour succès */
}

.alert-error {
    background-color: #f44336; /* Rouge pour erreur */
}

.alert-info {
    background-color: #2196F3; /* Bleu pour information */
}

/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation de disparition */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
