/* ==========================================================================
   PAGE DÉDIÉE ANIMATEURS (SPA)
   Les cartes elles-mêmes (.card, .team-card, .card-img...) réutilisent le
   style déjà défini dans style.css — ce fichier ne contient que la mise en
   page propre à cette page dédiée, pour rester léger.
   ========================================================================== */

.team-page-spa-container {
    display: none; /* Masqué par défaut */
    padding-top: 106px; /* Hauteur du header fixe (80px) + bandeau dédicaces (36px) */
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff !important;
    position: relative;
    z-index: 100;
}

/* Le header passe en position fixed + top:50px quand la barre noire admin
   est active (voir .navbar dans style.css), et le bandeau dédicaces suit
   le même décalage (voir .dedicaces-ticker) : il faut alors laisser
   d'autant plus de place en haut, sinon le titre "L'Équipe VAFM" et le
   bouton "+ Ajouter un membre" se retrouvent cachés derrière. */
body.admin-logged-in .team-page-spa-container {
    padding-top: 156px !important;
}

.team-page-spa-container.active {
    display: block !important;
}

.team-spa-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px 80px 20px;
}

.team-spa-content .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.team-spa-content .section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
}

/* État de chargement pendant le premier fetch de l'équipe */
.team-page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 20px;
    color: #888;
}

.team-page-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #E50914;
    animation: team-spin 0.8s linear infinite;
}

@keyframes team-spin {
    to { transform: rotate(360deg); }
}

@media screen and (max-width: 768px) {
    .team-page-spa-container {
        padding-top: 106px !important;
    }

    .team-spa-content {
        padding: 20px 12px 100px 12px !important;
    }

    .team-spa-content .section-header h2 {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   MENU HAMBURGER — UNIQUEMENT SUR MOBILE
   Sur desktop, le menu Actualités/Émissions/Animateurs est déjà visible en
   permanence dans le header : le hamburger n'y a pas sa place, il ne sert
   qu'à donner un accès rapide sur téléphone.
   ========================================================================== */
#nav-hamburger-btn {
    display: none;
}

@media screen and (max-width: 768px) {
    #nav-hamburger-btn {
        display: flex;
    }
}