/* ========================================================== */
/* ==         STYLES SPÉCIFIQUES POUR LA PAGE ÉQUIPE         == */
/* ========================================================== */

.team-container {
    padding: 4rem 2rem;
    text-align: center;
}

.team-header {
    margin-bottom: 4rem;
}

.team-header h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Styles des Cartes 3D --- */
.team-card-container {
    background-color: transparent;
    width: 100%;
    height: 400px;
    perspective: 1000px;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.team-card-container:hover .team-card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Style du Recto --- */
.card-front {
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 2rem;
}
.card-front img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, filter 0.5s;
    filter: brightness(0.8);
}
.team-card-container:hover .card-front img {
    transform: scale(1.1);
    filter: brightness(1);
}
.card-front h3, .card-front p {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
    margin: 0;
}
.card-front h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
}

/* --- Style du Verso --- */
.card-back {
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 1.5rem;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.card-back h4 {
    font-family: var(--font-title);
    color: var(--primary-color);
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
}
.card-back .anecdote {
    font-size: 0.9rem;
    font-style: italic;
    flex-grow: 1;
    width: 100%;
    margin-bottom: 1rem;
}
.stats { 
    width: 100%; 
    margin-bottom: 1rem; 
}
.stat { margin: 0.75rem 0; }
.stat span { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; }
.bar { background-color: #333; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; }
.fill {
    background: linear-gradient(90deg, var(--primary-color), var(--fpv-green));
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.4s;
}
.team-card-container:hover .fill {
    width: var(--stat-level);
}
.social-links-team {
    width: 100%;
    margin-top: auto;
    padding-top: 1rem;
}
.social-links-team a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.social-links-team a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* --- Responsive pour la page équipe --- */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}