/* ////////////////////////////////////////////////////////
   SECTION : GAME LIST LAYOUT
   //////////////////////////////////////////////////////// */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-left: 5px solid var(--or-lutte);
    padding-left: 15px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Carte de jeu individuelle */
.game-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
    border: 1px solid #eee;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--bleu-escrime);
}

.opponent-name {
    font-size: 1.5rem;
    margin: 5px 0;
    color: var(--bleu-escrime);
}

/* Badges de statut */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 15px 0;
}

.badge-your-turn {
    background-color: var(--or-lutte);
    color: var(--noir);
}

.badge-wait {
    background-color: #eee;
    color: #888;
}

.btn-play {
    margin-top: 10px;
}

.empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 8px;
    color: #888;
}