/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* Variables : tu peux ajuster le peek/gap si besoin */
.slider-team {
    --peek: 0.3;
    --gap: 20px;
}

section#equipe {
    padding-right: 0 !important;
}

section#equipe .section-wrapper {
    max-width: initial !important;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: end;
    overflow: hidden;
}

/* Wrapper ajouté par le script (flèches fixes) */
.slider-shell {
    position: relative;
    max-width: 58.33%;
    margin-right: -50px;

    @media screen and (max-width: 761px) {
        max-width: 100%;
        margin-right: initial;
    }
}

/* Piste scrollable */
.slider-team {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row nowrap;
            flex-flow: row nowrap;
    gap: var(--gap);
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: -webkit-grab;
    cursor: grab;
    width: 100%;
}

.slider-team::-webkit-scrollbar {
    display: none;
}

.slider-team.is-dragging {
    -ms-scroll-snap-type: none;
        scroll-snap-type: none;
    cursor: -webkit-grabbing;
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

/* Toujours 1 carte + ~30% de la suivante, quoi qu’il arrive :
   C = (largeur_piste - gap) / (1 + peek) */
.slider-team .slider-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    aspect-ratio: 414 / 521;
    min-height: 20vw;
    min-width: 414px;
    width: 60vw;
}

/* Overlay lisible mais non bloquant */
.slider-team .slider-card:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(17, 17, 17, .50)), color-stop(38.2%, rgba(255, 188, 112, 0)));
    background: -o-linear-gradient(bottom, rgba(17, 17, 17, .50) 0%, rgba(255, 188, 112, 0) 38.2%);
    background: linear-gradient(0deg, rgba(17, 17, 17, .50) 0%, rgba(255, 188, 112, 0) 38.2%);
}

/* Image plein cadre */
.slider-team .slider-card-image,
.slider-team .slider-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: cover;
       object-fit: cover;
    pointer-events: none;
}

/* Corps */
.slider-team .slider-card .slider-card-body {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    text-align: center;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 16px;
    padding: 32px;
    z-index: 2;
}

.slider-team .slider-card .slider-card-body>.name {
    text-shadow: 0 0 4px rgba(0, 0, 0, .12);
    font-family: Spectral;
    font-size: 32px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -1.52px;
}

/* Flèches (fixes) */
.slider-shell .slider-arrow {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
}

.slider-shell .slider-arrow--prev {
    left: 25px;
}

.slider-shell .slider-arrow--next {
    right: 75px;
}

.slider-shell .slider-arrow[disabled] {
    opacity: .35;
    cursor: default;
}