/* Structure minimale en ligne */
.game-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Chaque match est sur une seule ligne avec un espacement léger */
.game-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

    .game-item:hover {
        transform: scale(1.02);
    }

/* Date compacte */
.game-date {
    font-size: 0.9em;
    font-family: 'Roboto', sans-serif;
    color: #6c757d;
    justify-self: start; /* Alignement à gauche */
}

/* Logos d'équipes centrés */
.team-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    grid-column: 2; /* Les logos sont placés au centre du grid */
}

.team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain; /* Garder les proportions du logo */
}

/* Informations sur le match : noms des équipes et scores */
.game-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    justify-self: end; /* Alignement à droite */
}

.team-names {
    font-size: 1em;
    font-weight: bold;
}

.game-scores {
    font-size: 0.9em;
    color: #343a40;
}

@media (max-width: 600px) {
    .game-item {
        grid-template-columns: 1fr;
        padding: 6px; /* Réduction du padding sur mobile */
    }

    .team-logos {
        margin: 5px 0; /* Moins d'espace autour des logos */
    }

    .game-info {
        align-items: center;
        text-align: center;
    }

    .game-date {
        text-align: center;
        margin-bottom: 5px; /* Espacement léger sous la date */
    }

    .team-logo {
        width: 35px; /* Logos légèrement plus grands sur mobile pour plus de visibilité */
        height: 35px;
    }
}


* {
    font-family: 'Montserrat', sans-serif;
}

.titre {
    font-size: 1.5em;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

/* Bouton pour charger plus de parties */
.load-more {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-load-more {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn-load-more:hover {
        background-color: #0056b3;
    }


.team-record {
    font-size: 0.8em;
    color: #6c757d; /* Couleur grise pour un style plus discret */
    margin-top: 3px; /* Espace entre le nom de l'équipe et le record */
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}