/* Fond semi-transparent de la modale */
.modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 40%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3000; /* Assure que la modale passe au-dessus de tout */
    justify-content: center;
    align-items: center;
}

/* La boîte de la fenêtre modale modifiée en rectangle */
.modal-content {
    height: auto !important; /* 🟢 Permet à la hauteur de s'ajuster automatiquement au contenu */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    padding: 20px 35px;        /* 🟢 Réduction du padding haut/bas pour réduire la hauteur */
    border-radius: 8px;
    width: 92%;
    max-width: 650px;          /* 🟢 Augmentation de la largeur (passé de 450px à 650px) */
    color: #333333;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    box-shadow: 0 4px 25px rgba(0,0,0,0.25);
    animation: fadeInModal 0.3s ease-in-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Bouton de fermeture (la croix) */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}
.modal-close:hover { color: #333; }


/* 🟢 Optimisation des marges des titres et descriptions pour gagner de la place en hauteur */
.modal-content .MiniTitle {
    margin-top: 5px;
    margin-bottom: 5px;
    color: #1a12ff;
    font-size: 20px;
    text-align: center;
}

.modal-content .MiniSubtitle {
    font-size: 13px;
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

/* Style des champs */
.modal-form-group {
    margin-bottom: 12px;       /* 🟢 Légère réduction de l'espace entre les champs */
    text-align: left;
}

.modal-form-group label {
    display: block;
    font-size: 14px;
    color: #4ed1e6;
    margin-bottom: 4px;
    font-weight: 500;
}

.modal-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Bouton de validation */
.btn-modal-submit {
    background-color: #00d2ff; 
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}
.btn-modal-submit:hover { background-color: #00b8e0; }

.error-msg {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
    display: none; /* Masqué par défaut */
    font-weight: 500;
}


