/* ==========================================================================
   Popup / Modal — Fermeture estivale Latino Ballet
   Fichier autonome : ne dépend d'aucune autre feuille de style.
   ========================================================================== */

.lb-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.65);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lb-popup-overlay.lb-popup-visible {
    opacity: 1;
    visibility: visible;
}

.lb-popup-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 2.5rem 2rem 2.25rem;
    text-align: center;
    font-family: "Lato", sans-serif;
    color: #1a1a1a;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s ease;
    border-top: 4px solid #b91c1c;
}

.lb-popup-visible .lb-popup-modal {
    transform: translateY(0) scale(1);
}

.lb-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    color: #6b6b6b;
    transition: background 0.2s ease, color 0.2s ease;
}

.lb-popup-close:hover,
.lb-popup-close:focus-visible {
    background: #f3f3f3;
    color: #1a1a1a;
    outline: none;
}

.lb-popup-close:focus-visible {
    box-shadow: 0 0 0 2px #b91c1c;
}

.lb-popup-logo {
    display: block;
    width: 200px;
    max-width: 70%;
    height: auto;
    margin: 0 auto 1.5rem;
}

.lb-popup-title {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.lb-popup-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0 0 1.75rem;
}

.lb-popup-text strong {
    color: #1a1a1a;
}

.lb-popup-text .lb-popup-address {
    color: #b91c1c;
    font-weight: 700;
    white-space: nowrap;
}

.lb-popup-btn {
    display: inline-block;
    background: #b91c1c;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 0.125rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.35);
    transition: background 0.3s ease;
}

.lb-popup-btn:hover,
.lb-popup-btn:focus-visible {
    background: #991b1b;
    outline: none;
}

/* Empêche le défilement de la page derrière la modal */
body.lb-popup-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
    .lb-popup-modal {
        padding: 2rem 1.25rem 1.75rem;
        border-radius: 0.75rem;
    }

    .lb-popup-logo {
        width: 160px;
        margin-bottom: 1.25rem;
    }

    .lb-popup-title {
        font-size: 1.25rem;
    }

    .lb-popup-text {
        font-size: 0.9375rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb-popup-overlay,
    .lb-popup-modal {
        transition: none;
    }
}
