/* =====================================================
   Floratek – Sticky Reveal  |  Beekom Studio  |  v1.7.0
   ===================================================== */

/* ── Wrapper : réserve l'espace de scroll (hauteur injectée par JS) ── */
.fsr-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* ── Scene : sticky pendant toute la durée du scroll ── */
.fsr-scene {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Titre (centré, derrière les cartes) ── */
.fsr-title-wrap {
    position: relative;
    z-index: 1;
    text-align: center;
    pointer-events: none;
    padding: 0 5%;
    width: 100%;
}

.fsr-surtitle {
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888888;
    margin: 0 0 16px;
}

.fsr-title {
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1E213C;
    margin: 0;
}

/* ── Zone des cartes (par-dessus le titre) ── */
.fsr-cards {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

/* ── Carte individuelle ── */
.fsr-card {
    position: absolute;
    will-change: transform;
    overflow: hidden;
    opacity: 1;
}

.fsr-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.fsr-card--shadow {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, .12),
        0  3px 10px  rgba(0, 0, 0, .06);
}

/* ═══════════════════════════════════════════
   ÉDITEUR ELEMENTOR — aperçu administrable
   ═══════════════════════════════════════════ */

.elementor-editor-active .fsr-wrapper {
    height: auto !important;
}

.elementor-editor-active .fsr-scene {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
    overflow: visible !important;
    flex-direction: column !important;
    padding: 32px 20px !important;
    gap: 24px !important;
}

.elementor-editor-active .fsr-title-wrap {
    pointer-events: auto;
}

.elementor-editor-active .fsr-cards {
    position: relative !important;
    inset: auto !important;
    overflow: visible !important;
    pointer-events: none !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    width: 100% !important;
}

.elementor-editor-active .fsr-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
}

/* ═══════════════════════════════════════════
   MOBILE (< 768px) — layout vertical simple
   ═══════════════════════════════════════════ */

@media (max-width: 767px) {

    .fsr-wrapper { height: auto !important; }

    .fsr-scene {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        margin-left: 0 !important;
        overflow: visible !important;
        flex-direction: column !important;
        padding: 48px 20px 40px !important;
        gap: 24px !important;
    }

    .fsr-title { font-size: clamp(2rem, 8vw, 3rem); }

    .fsr-cards {
        position: relative !important;
        inset: auto !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .fsr-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ═══════════════════════════════════════════
   TABLETTE (768px – 1024px)
   ═══════════════════════════════════════════ */

@media (min-width: 768px) and (max-width: 1024px) {
    .fsr-title { font-size: clamp(2rem, 5vw, 4rem); }
}
