/* ============================================
   PAGE LIBERTÉ – Styles globaux
============================================ */

/* ------------------------------------------------
   1) FOOTER — SUPPRESSION
------------------------------------------------- */
#footer,
#footer-bottom,
#footer-inner,
#site-footer,
#colophon {
    display: none !important;
}

/* ------------------------------------------------
   2) BODY — BASE
------------------------------------------------- */
body.page-id-1770 {
    background: #e9e5df !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ------------------------------------------------
   3) CONTENEUR PRINCIPAL
------------------------------------------------- */
.liberte-container {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* ------------------------------------------------
   4) IMAGE — DESKTOP
------------------------------------------------- */
.liberte-container img.liberte-image {
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;

    display: block;
    margin: 40px auto;
}

/* ------------------------------------------------
   5) BOUTON RETOUR
------------------------------------------------- */
.liberte-retour {
    position: fixed;
    top: 18px;
    right: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 26px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);

    color: #fff !important;
    font-size: 22px;
    font-weight: 600;
    border-radius: 12px;

    text-decoration: none !important;
    cursor: pointer;
    z-index: 99999;

    -webkit-tap-highlight-color: transparent;
}

/* ------------------------------------------------
   6) FADE AUTOUR IMAGE (OPTIONNEL)
------------------------------------------------- */
.liberte-fade-wrapper {
    position: relative;
    display: inline-block;
}

.liberte-fade-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle,
        rgba(0,0,0,0) 70%,
        rgba(0,0,0,0.15) 100%
    );
    pointer-events: none;
}

/* ===========================================================
   7) MOBILE — IMAGE LIMITÉE À 2 ÉCRANS + DOUBLE SCROLL
=========================================================== */
@media (max-width: 768px) {

    /* BODY = scroll libre */
    body.page-id-1770 {
        overflow: auto !important;
    }

    body.page-id-1770 #outer-wrap,
    body.page-id-1770 #wrap,
    body.page-id-1770 #main,
    body.page-id-1770 .content-area,
    body.page-id-1770 .site-main {
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Conteneur scrollable */
    .liberte-scroll,
    .liberte-container {
        width: max-content !important;
        height: auto !important;

        overflow: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    /* IMAGE — LIMITE 2 ÉCRANS */
    .liberte-image {
        max-height: 200vh !important; /* 🔥 2 écrans */
        max-width: none !important;

        width: auto !important;
        height: auto !important;

        display: block !important;
        margin: 0 auto !important;

        -webkit-user-drag: none !important;
    }

    /* Bouton retour plus compact */
    .liberte-retour {
        padding: 10px 20px !important;
        font-size: 18px !important;
        border-radius: 10px !important;
    }
}