/* ==========================================================================
   Cartes d'équipe — page À propos
   --------------------------------------------------------------------------
   Structure reprise à l'identique du modèle (projet romi, page About) :
   .team-card, .team-photo, .team-name, .team-role, .team-desc.
   Seules les COULEURS ont été transposées à la charte de ce site
   (bleu nuit #001f3f / #001428, or #d4af37).
   ========================================================================== */

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 1.6rem 1.1rem;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover,
.team-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.team-photo {
    flex: 0 0 auto;
    width: 118px;
    height: 118px;
    margin-bottom: 1.1rem;
    overflow: hidden;
    border: 4px solid rgba(0, 31, 63, 0.12);
    border-radius: 50%;
}

.team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    margin-bottom: 0.4rem;
    /* !important : neutralise la taille globale des h3 */
    font-size: 1.05rem !important;
    font-weight: 700;
    color: #001428;
}

.team-role {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(0, 31, 63, 0.08);
    color: #001f3f;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.team-desc {
    margin-bottom: 0;
    color: #7b8794;
    /* !important : neutralise la taille globale des paragraphes */
    font-size: 0.9rem !important;
    line-height: 1.6;
}

/* --- Mobile : cartes un peu plus compactes ------------------------------- */
@media (max-width: 575.98px) {

    .team-card {
        padding: 1.35rem 1.1rem;
    }
}
