/* ── Popup Offres — Front-end Styles ── */

.pos-popup-overlay {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}

.pos-popup-overlay.pos-active {
    display: flex;
}

/* Boîte principale */
.pos-popup-box {
    position: relative;
    width: 400px;
    height: 600px;
    flex-shrink: 0;
    animation: posPopupZoom 0.35s ease;
}

/* Bouton fermer */
.pos-popup-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #e00000;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pos-popup-close:hover {
    background: #b00000;
    transform: scale(1.12);
}

/* Slideshow */
.pos-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 10px solid #fff;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

/* Slides — toutes empilées, on joue sur l'opacité */
.pos-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.pos-slide.pos-slide-active {
    opacity: 1;
    pointer-events: auto;
}

.pos-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Lien cliquable sur la slide */
.pos-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.pos-slide-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Caption */
.pos-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

/* Animation d'entrée de la popup */
@keyframes posPopupZoom {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* Mobile */
@media (max-width: 520px) {
    .pos-popup-overlay {
        padding: 40px 50px;
    }

    .pos-popup-box {
        width: calc(100vw - 100px);
        height: calc((100vw - 100px) * 1.5);
    }

    .pos-popup-close {
        top: -14px;
        right: -10px;
    }
}
