/* ==========================================================================
   FRS — Template Région : Hero image + Section Équipe
   Fichier : frs-localites/assets/css/tpl-region.css
   ========================================================================== */

/* ── 1. Hero — image pleine largeur ──────────────────────────────────────── */

.frs-region-hero {
    overflow: hidden;
}

.frs-region-hero__banner {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
}

.frs-region-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Barre de stats sous l'image */
.frs-region-hero__stats-bar {
    background: var(--ast-global-color-0, #111827);
    padding: 20px 0;
}

.frs-region-hero__stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.frs-region-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.frs-region-stat__value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ast-global-color-1);
}

.frs-region-stat__label {
    font-size: .8rem;
    text-transform: uppercase;
    color: var(--ast-global-color-5);
}

@media (max-width: 600px) {
    .frs-region-hero__banner  { max-height: 260px; }
    .frs-region-hero__stats   { gap: 24px; }
    .frs-region-stat__value   { font-size: 1.4rem; }
}


/* ── 2. Section équipe ───────────────────────────────────────────────────── */

.frs-equipe__titre {
    text-align: center;
    margin-bottom: .5rem;
}

.frs-equipe__intro {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/*
 * Grille responsive en flexbox — centrage automatique des orphelins
 * (cartes seules ou en paire sur la dernière ligne si total non multiple de 3).
 *
 * Approche flexbox + justify-content: center :
 * toutes les lignes sont centrées, y compris la dernière.
 * La largeur des cartes est fixée pour rester cohérente avec une grille 3 cols.
 */
.frs-equipe-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.frs-equipe-card {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
}

@media (max-width: 1024px) {
    .frs-equipe-card {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 600px) {
    .frs-equipe-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Carte */
.frs-equipe-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: box-shadow .25s ease, transform .25s ease;
}

.frs-equipe-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
    transform: translateY(-3px);
}

/* Photo circulaire */
.frs-equipe-card__photo-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid var(--ast-global-color-1, #e5e7eb);
    flex-shrink: 0;
}

.frs-equipe-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder avatar SVG */
.frs-equipe-card__photo--placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    margin-bottom: 16px;
    border: 3px solid #e5e7eb;
    flex-shrink: 0;
}

.frs-equipe-card__photo--placeholder svg {
    width: 52px;
    height: 52px;
}

/* Texte */
.frs-equipe-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.frs-equipe-card__nom {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ast-global-color-0, #111827);
    line-height: 1.3;
}

.frs-equipe-card__poste {
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ast-global-color-1, #6b7280);
    margin-bottom: 8px;
}

.frs-equipe-card__specialite {
    font-size: .9rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}