/* ── Boîte de dialogue de confirmation modale ───────────────────────────── */
/* Module confirmDialog.js : remplace window.confirm() bloquant.            */

.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000; /* au-dessus des toasts notify (9999) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-overlay.confirm-visible {
    opacity: 1;
}

.confirm-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    max-width: min(440px, 92vw);
    width: 100%;
    padding: 22px 24px;
    transform: translateY(-12px);
    transition: transform 0.2s ease;
}

.confirm-overlay.confirm-visible .confirm-box {
    transform: translateY(0);
}

.confirm-title {
    margin: 0 0 10px;
    color: #005EB8;
    font-size: 1.15em;
}

.confirm-message {
    margin: 0 0 20px;
    color: #333;
    line-height: 1.5;
    white-space: pre-line; /* conserve les retours à la ligne du message */
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-btn {
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 0.92em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Annuler : gris, texte sombre */
.confirm-btn-cancel {
    background: #f5f5f5;
    color: #1a1a1a;
    border: 1px solid #bdbdbd;
}
.confirm-btn-cancel:hover {
    background: #e8e8e8;
    border-color: #9e9e9e;
}

/* Confirmer (action neutre) : turquoise CNED */
.confirm-btn-confirm {
    background: #2da288;
    color: #ffffff;
}
.confirm-btn-confirm:hover {
    background: #259678;
}

/* Confirmer (action destructive) : rouge */
.confirm-btn-danger {
    background: #c62828;
    color: #ffffff;
}
.confirm-btn-danger:hover {
    background: #b71c1c;
}
