/**************************** SLIDER PERSONNALISÉ ZOOM **************************/

/* =========================================================
   7) SLIDER ZOOM
========================================================= */

/* Conteneur général du slider zoom */
.ms-hidden {
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.zoom-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.zoom-slide-item {
    display: none;
    text-align: center;
}

.zoom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    border: none;
    color: white;
    font-size: 38px;
    padding: 18px 22px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.zoom-prev { left: -60px; }
.zoom-next { right: -60px; }

.zoom-arrow:hover {
    background: rgba(0,0,0,0.55);
}

#zoom-desc-box {
    max-width: 380px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 22px;
    line-height: 1.45;
    font-weight: 400;
    color: #333;
    padding: 20px;
    border-left: 4px solid #222;
}

/* ============================================
   7b) ZOOM — Taille fortement réduite + ultra responsive
=============================================== */

.zoom-slide-item img {
    max-width: 55vw !important;   /* réduit vs 80vw */
    max-height: 50vh !important;  /* réduit vs 70vh */
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Mobile : encore plus petit */
@media (max-width: 768px) {
    .zoom-slide-item img {
        max-width: 80vw !important;
        max-height: 40vh !important;
    }
}

/* Très petits appareils (iPhone SE, mini) */
@media (max-width: 480px) {
    .zoom-slide-item img {
        max-width: 85vw !important;
        max-height: 35vh !important;
    }
}

/* --- Message texte sur l'image (Zoom Page) --- */
.zoom-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.zoom-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.zoom-overlay-text {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.95;
    transition: 0.3s ease;
}

.zoom-wrapper:hover .zoom-overlay-text {
    background: rgba(0,0,0,0.75);
}

/* --- Fullscreen image display --- */
.zoom-fullscreen {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.zoom-fullscreen-img {
    max-width: 95%;
    max-height: 95%;
    border: 4px solid #fff;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
}
/* Conteneur parent pour positionner correctement l’overlay */
.zoom-layout {
    position: relative;
}

/* Zone de texte superposée */
.zoom-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    z-index: 3000;
    white-space: nowrap;
}

/* Affichage au survol de l’image */
.zoom-slider-wrapper:hover + .zoom-overlay {
    opacity: 1;
}