/*
Theme Name:     Thème Enfant Royal elementor
Template:       royal-elementor-kit
Author:         Valentin - VSCD
Version:        1.0
Description:    Thème enfant personnalisé pour la com' numérique de VSCD
*/

/* Conteneur général de la popup (centré + fixed) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow-y: auto;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease!important;
}

/* Contenu de la popup (formulaire ou boîte) */
.popup-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh; /* Limite la hauteur */
    overflow-y: auto;  /* Active le scroll si nécessaire */
    transform: translateY(-30px);
    transition: transform 0.4s ease, opacity 0.4s ease!important;
    opacity: 0;
}

/* Quand la popup est visible */
.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
    opacity: 1;
}

.btn-popup-envoi{
    margin-bottom:1em;
}

#forminatpr-module-249 .forminator-row:first-of-type {
  margin-bottom: 0;
}
.popup-close{
    position:absolute;
    right:2vh;
    top:2vh;
    font-size:30px;
}
