/****************************
   PAGE 458 — ZOOM MAXIMAL
****************************/

/* Fond loupe */
.page-id-458 #outer-wrap {
    background-image: url("https://www.amupcycling.fr/wp-content/uploads/2025/12/fd-loupe_fd-2-e1765315465918.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Masquer header OceanWP */
.page-id-458 .page-header,
.page-id-458 .page-header-inner,
.page-id-458 .page-header-bg {
    display: none !important;
}

.page-id-458 #content-wrap,
.page-id-458 #main {
    padding: 0 !important;
    margin: 0 !important;
}

/* Wrapper principal */
.page-id-458 .zoom-layout {
    margin-top: -15px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Slider plein écran */
.page-id-458 .zoom-slider-wrapper {
    width: 100%;
    min-height: calc(100vh - 140px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* UL des slides */
.page-id-458 .zoom-slides {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slide */
.page-id-458 .zoom-slide-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative !important; /* nécessaire pour le bouton circulaire */
}

/* Image grand format */
.page-id-458 .zoom-slide {
    max-width: 98vw !important;
    max-height: 92vh !important;
    width: auto;
    height: auto;
    object-fit: contain;
}

/************* FLÈCHES *************/
body.page-id-458 .zoom-arrow {
    position: fixed !important;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    color: #000;
    font-size: 60px;
    z-index: 9999;
    cursor: pointer;
}

body.page-id-458 .zoom-prev { left: 1vw !important; }
body.page-id-458 .zoom-next { right: 1vw !important; }

/************* LÉGENDE *************/
.page-id-458 #zoom-desc-box {
    position: relative;
    width: 80vw;
    max-width: 840px;
    background: rgba(0,0,0,0.55);
    padding: 18px 24px;
    border-radius: 24px;
    transform: translateY(-50px);
    margin-bottom: 20px;
    text-align: center;
}

.page-id-458 #zoom-desc-box,
.page-id-458 #zoom-desc-box * {
    color: #ffffff !important;
}

.page-id-458 #zoom-desc-box h2 {
    margin-top: 0;
}

/************* FOOTER MASQUÉ *************/
.page-id-458 .site-footer,
.page-id-458 #colophon {
    display: none !important;
}

/********************************************
   NOUVEAU : BOUTON CIRCULAIRE "VOIR EN LIBERTÉ"
********************************************/

/* On désactive l’ancien overlay */
.page-id-458 .zoom-slide-overlay {
    display: none !important;
}

/* Wrapper positionné à gauche dans la loupe */
.zoom-liberte-wrapper {
    position: absolute;
    top: 120px;         /* ajustable */
    left: -10px;        /* collé vers la gauche */
    width: 220px;
    height: 220px;
    cursor: pointer;
    z-index: 20;
    pointer-events: auto;
}

/* SVG + rotation pour orienter la zone vide vers la sculpture */
.zoom-liberte-svg {
    width: 100%;
    height: 100%;
    transform: rotate(140deg);
    transition: transform 0.25s ease;
}

/* Effet zoom au survol */
.zoom-liberte-wrapper:hover .zoom-liberte-svg {
    transform: rotate(140deg) scale(1.1);
}

/* Fond du cercle 100% transparent */
.zoom-liberte-svg circle {
    fill: transparent !important;
}

/********************************************
   VERSION MOBILE
********************************************/
@media (max-width: 768px) {

    .page-id-458 #content-wrap,
    .page-id-458 #main,
    .page-id-458 .zoom-layout {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .page-id-458 .zoom-slides {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .page-id-458 .zoom-slide-item {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    .page-id-458 .zoom-slide {
        max-width: 95vw !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 0 auto !important;
        transform: translateX(-1.5vw);
    }

    body.page-id-458 .zoom-prev { left: 4vw !important; }
    body.page-id-458 .zoom-next { right: 4vw !important; }

    .page-id-458 #zoom-desc-box {
        width: 92vw !important;
        font-size: 15px !important;
        transform: translateY(-20px) !important;
    }

    /* Position spéciale mobile : plus petit et plus à gauche */
    .zoom-liberte-wrapper {
        top: 105px !important;
        left: -20px !important;
        width: 160px !important;
        height: 160px !important;
    }

    .zoom-liberte-svg text {
        font-size: 14px !important;
    }
}

/********************************************
   PATCH SLIDER — Force display:none même si OceanWP casse tout
********************************************/
.page-id-458 .zoom-slide-item[style*="display: none"] {
    display: none !important;
}