/* ============================================================
   VerbEast Slider
   ============================================================ */

/* ── Outer : espace de scroll (height set inline par JS) ── */
.vbs-outer {
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

/* ── Sticky : collé en haut pendant le défilement GSAP ── */
.vbs-sticky {
    position: relative;       /* GSAP applique position:fixed au pin */
    width: 100%;
    height: calc(100vh - 40px);
    z-index: 100;             /* passe au-dessus des sections Elementor en dessous */
}

/* ── Viewport : la card arrondie ── */
.vbs-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 60px; /* valeur par défaut, écrasée par l'inline style du template */
    overflow: hidden;
    background: #111;
    transform: translateZ(0); /* force un compositing layer */
    -webkit-transform: translateZ(0);
}

/* ── Track ── */
.vbs-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Slides empilées, animées par GSAP ── */
.vbs-slide {
    position: absolute;
    inset: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ── Image de fond ── */
.vbs-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: var(--vbs-img-radius, 0px);
}

/* ── Overlay — background défini inline par PHP (couleurs personnalisables) ── */
.vbs-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--vbs-img-radius, 0px);
    pointer-events: none;
}

/* ── Contenu : positionné bas-gauche ── */
.vbs-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 0 6% 6%;
}

.vbs-content-inner {
    max-width: 55%;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .5s ease, transform .5s ease;
}

.vbs-slide.is-active .vbs-content-inner {
    opacity: 1;
    transform: translateY(0);
}

/* ── Typographie Archivo ── */
.vbs-title,
.vbs-text {
    font-family: 'Archivo', sans-serif;
    font-style: italic;
}
.vbs-cta {
    font-family: 'Archivo', sans-serif;
    font-style: normal;
    font-size: 16px;
}

/* ── Titre ── */
.vbs-title {
    margin: 0 0 .15em;
    font-size: clamp(2rem, 5vw, var(--vbs-title-size, 4.8rem));
    font-weight: 900;
    line-height: 1.0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -.02em;
    word-break: break-word;
}

/* ── Sous-titre ── */
.vbs-text {
    margin: 0 0 .6em;
    font-size: var(--vbs-text-size, 24px);
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255,255,255,.82);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ── Bouton CTA ── */
.vbs-cta {
    display: inline-block;
    padding: .55em 1.6em;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 60px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background .22s, border-color .22s;
}
.vbs-cta:hover,
.vbs-cta:focus-visible {
    background: rgba(234, 85, 34, 0.25);
    border-color: #EA5522;
    color: #fff;
    outline: none;
}

/* ── Dots ── */
.vbs-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vbs-dot {
    display: block;
    width: 24px;
    height: 2px;
    border: none;
    border-radius: 2px;
    padding: 0;
    background: rgba(255,255,255,.35);
    cursor: default;
    pointer-events: none;
    transition: background .3s, width .35s;
}
.vbs-dot.is-active {
    width: 44px;
    background: #fff;
}
.vbs-dot:focus,
.vbs-dot:focus-visible {
    outline: none;
}


/* ============================================================
   Tablette (< 1024px)
   ============================================================ */
@media (max-width: 1023px) {
    .vbs-outer {
        padding: 20px;
    }

    /* Même breakpoint 1024px que le hero → cohérence z-index */
    .vbs-sticky {
        position: sticky;
        top: 20px;
        height: calc(100svh - 40px);
    }

    .vbs-viewport {
        border-radius: 30px;
    }

    .vbs-content {
        padding: 0 5% calc(7% + env(safe-area-inset-bottom, 20px));
    }

    .vbs-content-inner {
        max-width: 80%;
    }

    .vbs-text {
        font-size: calc(var(--vbs-text-size, 24px) * 0.75);
    }

    .vbs-dots {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
}

/* ============================================================
   Mobile (< 768px)
   ============================================================ */
@media (max-width: 767px) {
    .vbs-content {
        padding: 0 5% calc(60px + env(safe-area-inset-bottom, 0px));
    }

    .vbs-content-inner {
        max-width: 100%;
    }

    .vbs-text {
        font-size: calc(var(--vbs-text-size, 24px) * 0.625);
        letter-spacing: .06em;
    }

    .vbs-cta {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .vbs-content-inner {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
