/* ==========================================
   NOVA ACADEMY - EQUIPES
   Design esport noir et violet
   ========================================== */

.nova-teams {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 90px;
    color: #ffffff;
}

.teams-heading {
    text-align: center;
    margin-bottom: 48px;
}

.teams-eyebrow {
    color: #b78aff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.teams-heading h1 {
    color: #c18aff;
    font-size: clamp(30px, 5vw, 44px);
    margin: 14px 0;
}

.teams-heading p {
    color: #b5a3ca;
    font-size: 16px;
}

/* Jeux */

.nova-teams .game-section {
    background: #0c0917;
    border: 1px solid #2d2044;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 35px;
}

.nova-teams .game-section h2 {
    color: #c18aff;
    font-size: 28px;
    margin: 0 0 12px;
}

.game-description {
    color: #b5a3ca;
    margin-bottom: 25px;
}

/* Rosters */

.nova-teams .roster {
    margin: 30px 0 40px;
}

.roster-heading {
    margin-bottom: 20px;
}

.roster-heading h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 8px;
}

.roster-heading p {
    color: #b5a3ca;
    font-size: 14px;
}

/* Grille */

.player-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* Cartes joueurs */

.nova-teams .player-card {
    box-sizing: border-box;
    min-width: 0;
    min-height: 260px;
    padding: 25px 16px;
    background: #211632;
    border: 1px solid #493064;
    border-radius: 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 10px;

    text-decoration: none;
    color: white;

    transition: transform .25s ease,
                border-color .25s ease,
                box-shadow .25s ease;
}

.nova-teams .player-card:hover {
    transform: translateY(-6px);
    border-color: #a855f7;
    box-shadow: 0 0 24px rgba(168,85,247,.28);
}

.nova-teams .player-card.is-captain {
    border-color: #a855f7;
}

.nova-teams .player-card:focus-visible {
    outline: 3px solid #d8a5ff;
    outline-offset: 4px;
}

/* Avatar */

.player-avatar {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #35204e;
    border: 2px solid #65418c;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #d8a5ff;
}

.is-captain .player-avatar {
    border-color: #a855f7;
}

.player-avatar svg {
    width: 34px;
    height: 34px;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pseudo */

.nova-teams .player-card h4 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0 0;
    text-decoration: none;
    overflow-wrap: anywhere;
}

/* Badges */

.captain-badge {
    color: #d8a5ff;
    font-size: 13px;
    font-weight: 600;
}

.player-badge {
    color: #b5a3ca;
    font-size: 12px;
}

.player-role {
    color: #c4b5d8;
    font-size: 13px;
    margin: 0;
}

/* ==========================================
   BOUTON VOIR LE PROFIL
   ========================================== */

.nova-teams .player-card .player-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: auto;
    padding: 12px 24px;

    background: linear-gradient(
        135deg,
        #9333ea,
        #6d28d9
    );

    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    border: 1px solid #a855f7;
    border-radius: 10px;

    box-shadow: 0 4px 15px rgba(147,51,234,.2);

    transition: background .25s ease,
                transform .25s ease,
                box-shadow .25s ease;
}

.nova-teams .player-card:hover .player-open {
    background: linear-gradient(
        135deg,
        #a855f7,
        #7c3aed
    );

    transform: translateY(-2px);

    box-shadow: 0 0 22px rgba(168,85,247,.45);
}

/* Messages */

.empty-message {
    color: #b5a3ca;
    padding: 20px 0;
}

/* Tablettes */

@media (max-width: 800px) {
    .player-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nova-teams .game-section {
        padding: 20px;
    }
}

/* Mobiles */

@media (max-width: 500px) {
    .nova-teams {
        padding: 35px 14px;
    }

    .player-grid {
        grid-template-columns: 1fr;
    }

    .nova-teams .player-card {
        min-height: 240px;
    }
}
