/* ============================================================
   Popup public — L'Épice Rit Aiguines
   Emplacement :
   public_html/nouveau-site/public/assets/css/popup.css

   Le popup est conçu sans JavaScript :
   <details open> permet de le fermer proprement.
   ============================================================ */

.site-popup-host {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(20, 31, 24, .68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.site-popup-host:not([open]) {
    display: none;
}

.site-popup-host > summary {
    list-style: none;
}

.site-popup-host > summary::-webkit-details-marker {
    display: none;
}

.site-popup-close {
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    background: rgba(23, 63, 44, .92);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    transition:
        transform .18s ease,
        background .18s ease;
}

.site-popup-close:hover,
.site-popup-close:focus-visible {
    transform: scale(1.07);
    background: #173f2c;
    outline: 3px solid rgba(239, 189, 117, .48);
    outline-offset: 3px;
}

.site-popup-card {
    position: relative;
    width: min(92vw, 760px);
    max-height: min(86vh, 820px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 30px 10px 30px 10px;
    background: #fffdf8;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .30),
        0 8px 28px rgba(32, 57, 42, .18);
    animation: site-popup-arrive .32s ease-out both;
}

.site-popup-media {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    max-height: 360px;
    background: #e9d19c;
}

.site-popup-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 360px;
    object-fit: cover;
}

.site-popup-body {
    padding: 34px 38px 38px;
}

.site-popup-kicker {
    margin: 0 0 9px;
    color: #c88f43;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-popup-title {
    margin: 0;
    color: #173f2c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 5vw, 48px);
    font-style: italic;
    line-height: 1.04;
    letter-spacing: -.025em;
}

.site-popup-message {
    margin: 20px 0 0;
    color: #596159;
    font-size: 16px;
    line-height: 1.75;
}

.site-popup-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(39, 95, 69, .12);
    color: #758077;
    font-size: 12px;
}

.site-popup-foot::before {
    content: "";
    width: 34px;
    height: 2px;
    flex: 0 0 auto;
    background: #d39b50;
}

@keyframes site-popup-arrive {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 680px) {
    .site-popup-host {
        padding: 14px;
    }

    .site-popup-card {
        width: 100%;
        border-radius: 24px 8px 24px 8px;
    }

    .site-popup-close {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .site-popup-media,
    .site-popup-media img {
        min-height: 190px;
        max-height: 270px;
    }

    .site-popup-body {
        padding: 27px 24px 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-popup-card {
        animation: none;
    }

    .site-popup-close {
        transition: none;
    }
}
