#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
    pointer-events: all; /* Empêche de cliquer sur le site pendant le chargement */
    transition: opacity 0.5s ease;
}

/* La fenêtre (le trou) */
.loader-window {
    width: 250px;
    height: 400px;
    background: transparent;
    border-radius: 125px 125px 0 0;
    
    box-shadow: 0 0 0 200vmax #91a987; 
    
    transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    transform: scale(1);
    will-change: transform;
}

body.loaded .loader-window {
    transform: scale(15);
}

body.loaded #loader-wrapper {
    opacity: 0;
    pointer-events: none;
    transition-delay: 1.2s;
}




#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

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

#event-popup {
    background: #fff;
    width: 90%;
    max-width: 850px;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.popup-content { display: flex; }
@media (max-width: 768px) { .popup-content { flex-direction: column; } }

.popup-image { flex: 1;}
.popup-image img { width: 100%; height: 100%; object-fit: cover; }

.popup-text { flex: 1; padding: 30px; display: flex; flex-direction: column; justify-content: center; }

.popup-tag { color: #91a987; text-transform: uppercase; letter-spacing: 2px; font-size: 11px; margin-bottom: 5px; font-weight: bold;}
#event-popup h2 { font-family: "Playfair Display", serif; margin: 0 0 10px; font-size: 24px; line-height: 1.2; }
.popup-date { font-weight: bold; margin-bottom: 10px; color: #333; }
.popup-description { font-size: 14px; line-height: 1.6; color: #666; margin-bottom: 20px; }
.popup-price { margin-bottom: 25px; font-size: 15px; }

.popup-btn {
    background: #91a987;
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    text-align: center;
    transition: 0.3s;
    font-weight: bold;
}

#close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    color: #333;
}