/*
 * Styles du shortcode [team_display].
 * Les propriétés essentielles (grille responsive, photo ronde, onglet actif) sont aussi
 * dupliquées en inline avec !important par team_slider_critical_css() car le thème Kadence
 * peut surcharger les styles de cette feuille externe.
 */

.team-slider-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
}

.team-slider-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.team-slider-tab {
    font: inherit;
    cursor: pointer;
    padding: 10px 22px;
    border: 1px solid #d8dee4;
    border-radius: 999px;
    background-color: #fff;
    color: #2c3338;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}

.team-slider-tab:hover {
    border-color: #1d6fa4;
}

.team-slider-tab.is-active {
    background-color: #1d6fa4;
    border-color: #1d6fa4;
    color: #fff;
}

@media (max-width: 480px) {
    .team-slider-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
}

.team-slider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 991px) {
    .team-slider-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .team-slider-grid {
        grid-template-columns: 1fr;
    }
}

.team-slider-card-hidden {
    display: none !important;
}

.team-slider-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    padding: 28px 20px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.team-slider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.team-slider-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #1d6fa4;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.team-slider-photo-placeholder {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.team-slider-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
}

.team-slider-role {
    margin: 0 0 16px;
    font-size: 14px;
    color: #6b7a8d;
}

.team-slider-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.team-slider-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #f0f3f6;
    color: #1d6fa4;
    transition: background-color .2s ease, color .2s ease;
}

.team-slider-socials a:hover {
    background-color: #1d6fa4;
    color: #fff;
}

.team-slider-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.team-slider-contact a {
    color: #2c3338;
    text-decoration: none;
}

.team-slider-contact a:hover {
    color: #1d6fa4;
    text-decoration: underline;
}
