/* =========================================================
   Galerie experts – deux colonnes défilantes en sens opposés
   ========================================================= */

/* ── Conteneur général ─────────────────────────────────── */
.experts-gallery {
    width: 100%;
    height: 100%;
    overflow: hidden;           /* Masque ce qui dépasse */
}

.experts-gallery__inner {
    display: flex;
    gap: 1.5rem;                /* Espace entre les deux colonnes */
    height: 70vh;              /* Hauteur visible de la galerie   */
    min-width: 360px;           /* Empêche l'écrasement total      */
    align-items: flex-start;
    justify-content: center;

    /* Rotation globale des colonnes : 8° dans le sens horaire */
    transform: rotate(8deg);
    /* Agrandit la zone pour compenser le recadrage dû à la rotation */
    width: 110%;
}

/* ── Colonnes ───────────────────────────────────────────── */
.experts-col {
    flex: 1 1 160px;            /* base 160 px, croît pour remplir */
    min-width: 150px;           /* plancher absolu                 */
    max-width: 320px;
    display: flex;
    flex-direction: column;
}

.experts-col__track {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* La translation verticale est pilotée par JS via --offset */
    transform: translateY(var(--offset, 0px));
    will-change: transform;
}

/* ── Carte expert (ratio 9:16) ──────────────────────────── */
.expert-card {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;       /* ratio natif, plus fiable que padding-top */
    min-width: 140px;
    min-height: 250px;
    background-color: #1a1a2e;
    background-size: cover;
    background-position: center top;
    border-radius: 32px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Wrapper carte à l'intérieur du duplicata aria-hidden */
.experts-col__track > [aria-hidden="true"] > .expert-card {
    /* même style, hérité */
}

/* ── Bloc glass (bas de carte) ──────────────────────────── */
.expert-card .glass {
    position: absolute;
    bottom: 15px;
    left:15px;
    right: 15px;
    width: calc(100% - 30px);
    border-radius: 24px;
    padding: 1rem 0.875rem 0.875rem;
    /* Effet givré */
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.expert-card .glass .expert-name {
    margin: 0;
    font-size: 20px;
    font-family: var(--e-global-typography-bf1eaa7-font-family), Sans-serif;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.expert-card .glass .expert-name .expert-name__nom {
    text-transform: uppercase;
}

.expert-card .glass .expert-poste {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
