/* Conteneur principal (qui sera flou) */
/*.content {
    transition: filter 0.3s ease-in-out;
}*/

/* Fond semi-transparent couvrant toute la page */
.popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
/*    background: #00000085;*/
    backdrop-filter: blur(0.8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    z-index: 1000;
}

/* Fenêtre flottante */
.popup {
    background: white;
    padding: 20px;
    width: 50%;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    margin-top: 120px;
    transform: scale(0.5) translateZ(-1000px);
    opacity: 0;
    z-index: 1001;
}

/* Definition des différentes tailles pour les popup */
.popup-sm {
    width: 35% !important;
}

.popup-md {
    width: 50% !important;
}

.popup-lg {
    width: 70% !important;
}

.popup-xl {
    width: 90% !important;
}

/* Bouton de fermeture */
.closePopup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c6c6c680;
    color: gray;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 25px;
}

/* Lorsque la fenêtre est active */
.popup-wrapper.active {
    opacity: 1;
    visibility: visible;
}

.popup-wrapper.active .popup {
    transform: scale(1) translateZ(0);
    opacity: 1;
}