/* =========================================================
   Prestations Slider — Widget Elementor
   Layout : 50% image | 50% texte — le bloc entier slide
   ========================================================= */

.ps-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: grid;
    /* Fond géré par la section Elementor parente */
}

/* Toutes les slides sont empilées dans la même cellule de la grille :
   la hauteur du wrapper = celle de la slide la plus haute. */
.ps-slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 516px;
    transition: transform 0.65s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.ps-slide.ps-current      { transform: translateX(0); }
.ps-slide.ps-hidden-left  { transform: translateX(-100%); visibility: hidden; }
.ps-slide.ps-hidden-right { transform: translateX(100%);  visibility: hidden; }
/* La slide sortante/entrante reste visible pendant la transition */
.ps-slide.ps-animating    { visibility: visible; }
.ps-slide.ps-instant      { transition: none !important; }

.ps-img {
    flex: 0 0 50%;
    width: 50%;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ps-text {
    flex: 0 0 50%;
    width: 50%;
    box-sizing: border-box;
    padding: 64px 100px 110px 60px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

.ps-text-body {
    flex: 1;
    min-width: 0;
}

/* ── Badge numéro ──────────────────────────────────────── */
.ps-num-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 98px;
    height: 98px;
    flex-shrink: 0;
}

/* Cercle en pointillés autour du numéro */
.ps-num-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(249, 249, 249, 0.55);
}

.ps-num {
    font-family: 'Besley', Georgia, serif;
    font-weight: 600;
    font-style: italic;
    font-size: 48px;
    line-height: 64px;
    color: #f9f9f9;
    position: relative;
    z-index: 1;
}

/* ── Titre ─────────────────────────────────────────────── */
.ps-title {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 52px;
    color: #f9f9f9;
    margin: 0 0 18px;
    max-width: 320px;
    word-break: break-word;
}

/* ── Description ───────────────────────────────────────── */
.ps-desc {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(249, 249, 249, 0.8);
    max-width: 520px;
    margin: 0;
}

.ps-desc p { margin: 0 0 8px; }
.ps-desc p:last-child { margin-bottom: 0; }

/* ── Barre de progression — sous le texte ─────────────── */
.ps-progress {
    flex-shrink: 0;
}

.ps-progress-track {
    width: 200px;
    height: 1px;
    background: rgba(249, 249, 249, 0.2);
    border-radius: 100px;
    position: relative;
}

.ps-progress-fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    width: 0%;
    background: #f9f9f9;
    border-radius: 100px;
    transition: width 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── Flèches de navigation (moitié texte, en bas) ─────── */
.ps-controls {
    position: absolute;
    left: 50%;
    right: 0;
    bottom: 40px;
    /* Barre alignée sur le titre (padding texte 60 + badge 98 + gap 24) */
    padding: 0 50px 0 182px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
}

.ps-nav-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ps-nav {
    position: relative;
    width: 50px;
    height: 50px;
    padding: 0 !important;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(249, 249, 249, 0.65);
    color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.ps-nav:hover {
    background: rgba(249, 249, 249, 0.12);
    border-color: rgba(249, 249, 249, 0.9);
}


/* ── Responsive ≤ 1100px — image au-dessus, texte dessous ── */
@media (max-width: 1100px) {
    .ps-wrapper { padding-bottom: 80px; }

    .ps-slide {
        flex-direction: column;
        min-height: 0 !important;
    }

    .ps-img {
        flex: 0 0 auto;
        width: 100%;
        height: 340px;
    }

    .ps-text {
        flex: 1 1 auto;
        width: 100%;
        padding: 32px 20px 24px;
    }

    .ps-num-group { margin-bottom: 20px; }

    .ps-title { font-size: 36px; line-height: 42px; max-width: none; }
    .ps-desc  { max-width: none; }

    .ps-controls {
        left: 0;
        right: 0;
        bottom: 15px;
        padding: 0 20px;
        justify-content: center;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .ps-img { height: 300px; }
    .ps-title { font-size: 32px; line-height: 38px; }
    .ps-num-group { width: 80px; height: 80px; }
    .ps-num { font-size: 32px; line-height: 1; }
}

@media (max-width: 768px) {
    /* Place pour la fraction + les flèches empilées */
    .ps-wrapper { padding-bottom: 140px; }

    .ps-img { height: 260px; }

    /* Chiffre au-dessus du texte */
    .ps-text {
        flex-direction: column;
        gap: 0;
        padding: 24px 20px 24px;
    }

    .ps-num-group { width: 72px; height: 72px; margin-bottom: 16px; }
    .ps-num { font-size: 36px; line-height: 1; }
    .ps-title { font-size: 28px; line-height: 34px; }

    /* Flèches en dessous de la fraction */
    .ps-controls {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        bottom: 24px;
    }

    .ps-progress-track { width: 160px; }
}
