/* ====================== */
/*        GLOBAL          */
/* ====================== */
body {
    background-color: #121212;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

/* ✅ Ajustement général pour éviter l'effet "collé" */
main {
    padding: 40px 5%;
}

/* ====================== */
/*        TITRES         */
/* ====================== */
h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffcc00;
}

/* ====================== */
/*    SECTIONS PRINCIPALES */
/* ====================== */
.index-upcoming-tournaments,
.index-tournaments,
.index-stats {
    margin-bottom: 50px; /* Espacement entre les sections */
}

/* ====================== */
/*        INFO BOX        */
/* ====================== */
.index-info-box {
    background: rgba(255, 204, 0, 0.2);
    border: 1px solid #ffcc00;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ====================== */
/*        TOURNOIS        */
/* ====================== */
.tournament-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* ✅ Cartes de tournois */
.tournament-card {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out;
}

.tournament-card:hover {
    transform: scale(1.05);
}

/* ✅ Infos dans les tournois */
.tournament-info h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.tournament-info p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 5px;
}

/* ✅ Boutons des tournois */
.tournament-btn {
    display: block;
    background: #ffcc00;
    color: rgb(5, 5, 5);
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.tournament-btn.upcoming-btn {
    background: #ffcc00;
}

.tournament-btn.full {
    background: #dc3545;
}

/* ✅ Tournois en cours - Message vide */
.no-tournament {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}

/* ====================== */
/*        STATISTIQUES    */
/* ====================== */
/* 📊 Section Statistiques */
.index-stats {
    text-align: center;
    margin: 50px auto;
    max-width: 1200px;
}

.index-stats h1 {
    font-size: 22px;
    font-weight: bold;
    color: #ffcc00;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Conteneur des stats en ligne */
.stat-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Permet d'adapter l'affichage en responsive */
}

/* Style des cartes */
.stat-card {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 220px; /* Ajuste la largeur pour que toutes soient identiques */
    box-shadow: 0 4px 6px rgba(255, 204, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h2 {
    font-size: 28px;
    font-weight: bold;
    color: #ffcc00;
}

.stat-card p {
    font-size: 14px;
    color: #ddd;
}


/* ====================== */
/*      RESPONSIVE        */
/* ====================== */
@media screen and (max-width: 768px) {
    .index-stats {
        flex-direction: column;
        align-items: center;
    }
}
