/* ===================== MODALE FICHE FORMATION ===================== */

.fiche-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.fiche-modal.is-open {
    display: flex;
}

.fiche-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 34, 29, 0.78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.fiche-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0B3C36;
    color: #fff;
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    animation: fiche-modal-in 0.25s ease;
}

@keyframes fiche-modal-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fiche-modal-dialog h2 {
    margin-top: 0;
    color: #BBFEF1;
}

.fiche-modal-intro {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.fiche-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    padding: 0;
    background: none;
    border: none;
    color: #BBFEF1;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.fiche-modal-close:hover {
    opacity: 0.7;
}

/* Champs du formulaire CF7 dans la modale */
.fiche-modal-dialog .wpcf7 input[type="text"],
.fiche-modal-dialog .wpcf7 input[type="email"],
.fiche-modal-dialog .wpcf7 input[type="tel"],
.fiche-modal-dialog .wpcf7 textarea,
.fiche-modal-dialog .wpcf7 select {
    width: 100%;
}
