

/* --- Overlay trame / aplat clair --- */
.modal-popup {
    display: none;
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: rgba(156, 152, 167, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}

.modal-popup.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* --- Boîte Néo-Brutaliste --- */
.modal-content {
    background: #eee;
    padding: 28px;
    border-radius: 16px;
    width: auto;
    position: relative;
    box-sizing: border-box;
    font-family: 'Roboto', system-ui, sans-serif;
    color: #121212;
    
    /* Contour épais et ombre nette décalée */
    border: 3px solid #5C0054;
    box-shadow: 4px 4px 0px #5C0054;
    
    transform: translate(-4px, -4px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-popup.active .modal-content {
    transform: translate(0, 0);
}

/* --- Bouton Fermeture carré & net --- */
.close-modal-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 1.8rem; /* Augmente la taille de la croix */
    font-weight: 700;
    color: #5C0054;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.close-modal-btn:hover {
    color: #F49000; /* Passage à l'orange d'accentuation */
    transform: scale(1.15);
}

.close-modal-btn:active {
    transform: scale(0.95);
}

/* --- Typographie & Actions --- */
.modal-title {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #5C0054;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.modal-body {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    color: #121212;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-primary {
    background-color: #009DB7;
    color: #FFFFFF;
    border: 2px solid #121212;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 4px 4px 0px #121212;
    transition: all 0.15s ease;
}

.btn-primary:hover {
    background-color: #00839a;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #121212;
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #121212;
}

.btn-accent {
    background-color: #F49000;
    color: #FFFFFF;
    border: 2px solid #121212;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 4px 4px 0px #121212;
    transition: all 0.15s ease;
}

.btn-accent:hover {
    background-color: #d87f00;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #121212;
}

.btn-accent:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #121212;
}

.form-auth {
    background: #eee;
    padding: 28px;
    border-radius: 16px;
    width: auto;
    box-sizing: border-box;
    font-family: 'Roboto', system-ui, sans-serif;
    color: #121212;
    
    /* Contour épais et ombre nette décalée */
    border: 3px solid #5C0054;
    box-shadow: 4px 4px 0px #5C0054;
}

.form-message {
    background: #f5e0f3;
    padding: 28px;
    border-radius: 16px;
    width: auto;
    text-align: center; /* Modifié : "font: center" n'existe pas */
    font-family: 'Roboto', system-ui, sans-serif;
    color: #4A154B;     /* Modifié : le texte blanc (#fff) sur fond violet très clair (#f5e0f3) est illisible */
}