/* ============================================
   MODALE - Composant réutilisable CFM77 Public
   Pattern : fade opacité 300ms
   ============================================ */

/* Overlay plein écran */
.modale_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.modale_overlay.actif {
    opacity: 1;
    visibility: visible;
}

/* Contenu de la modale */
.modale_contenu {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e0e7ff;
    width: 90%;
    max-width: 550px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* En-tête */
.modale_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e7ff;
}

.modale_titre {
    font-size: var(--taille-sous-titre, 18px);
    font-weight: 600;
    color: var(--texte-titre, #4a4a4a);
    margin: 0;
}

/* Bouton fermer */
.modale_fermer {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 200ms ease;
}

.modale_fermer:hover {
    color: #0f172a;
}

/* Corps */
.modale_body {
    padding: 20px;
    overflow-y: auto;
}
