/* ── Wrapper ───────────────────────────────────────────────────────────── */
.rs-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ── Stage ─────────────────────────────────────────────────────────────── */
.rs-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Slide ─────────────────────────────────────────────────────────────── */
.rs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 20px;
    pointer-events: none;
    opacity: 0;

}

.rs-slide.is-active {
    pointer-events: auto;
    opacity: 1;
    transform: translateX(0);
}

.rs-slide.is-enter-from-left {
    transform: translateX(-48px);
}

/* ── Peek (images prev/next) ───────────────────────────────────────────── */
.rs-peek {
    flex: 0 0 80px;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.rs-peek:hover {
    opacity: 0.8;
}

.rs-peek img,
.rs-peek__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rs-peek__placeholder {
    background-color: #e0e0e0;
}

/* ── Card ──────────────────────────────────────────────────────────────── */
.rs-card {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-width: 0;
    max-width: 1240px;
    margin: 0 auto;
    border-top: solid 1px #D9D9D9;
    padding: 40px 0px 10px 0px;
}

/* ── Card left: title + CTA ────────────────────────────────────────────── */
.rs-card__left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.rs-card__title {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: inherit;
}


/* ── CTA button ─────────────────────────────────────────────────────────── */
.rs-card__left .elementor-widget-button {
    display: none;
}

.rs-card__left .elementor-button {
    --circle-size: 50px;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.rs-card__left .elementor-button::after {
    content: "";
    position: absolute;
    background-color: var(--e-global-color-primary);
    border-radius: 100%;
    left: calc(100% - 10px);
    height: 100%;
    aspect-ratio: 1 / 1;
    transition: all 0.3s ease;
}

.rs-card__left .elementor-button::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: calc(100% - 8px + (var(--circle-size) / 2));
    top: 50%;
    width: 13px;
    height: 13px;
    background-image: url("/wp-content/uploads/2026/05/fleche-droite.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.rs-card__left .elementor-button:hover {
    border-radius: 100px 0 0 100px !important;
}

.rs-card__left .elementor-button:hover::after {
    border-radius: 0 100px 100px 0;
}

/* ── Card center: image ─────────────────────────────────────────────────── */
.rs-card__image-wrap {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    text-decoration: none;
}

.rs-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.rs-card__image-wrap:hover img {
    transform: scale(1.04);
}

.rs-card__image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
}

/* ── Card right: excerpt + link ─────────────────────────────────────────── */
.rs-card__right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rs-card__excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: inherit;
    opacity: 0.75;
}



/* ── Progress bar ───────────────────────────────────────────────────────── */
.rs-progress {
    width: 100%;
    max-width: 1240px;
    height: 3px;
    background-color: transparent;
    margin-top: 32px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 3px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
}

.rs-progress::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    background-color: #D9D9D9;
    border-radius: 1px;
}

.rs-progress__fill {
    position: relative;
    height: 3px;
    background-color: #283145;
    border-radius: 3px;
    width: 0%;
    z-index: 1;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .rs-card {
        grid-template-columns: 1fr 1fr;
    }

    .rs-card__right {
        display: none;
    }

    .rs-peek {
        flex: 0 0 56px;
    }
}

@media (max-width: 768px) {
    .rs-card {
        grid-template-columns: 1fr;
    }

    .rs-card__image-wrap {
        order: -1;
    }

    .rs-peek {
        flex: 0 0 40px;
    }

    .rs-card__title {
        font-size: 22px;
    }
}