/* Loader overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-overlay.active {
    display: flex;
}

/* Contenu du loader */
.loader-content {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    min-width: 200px;
}

/* Spinner qui tourne */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #3498db;
    border-right: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px auto;
}

/* Animation de rotation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Texte */
.loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.loading-subtext {
    font-size: 12px;
    color: #888;
}

/* Fenêtre de confirmation (dialogues.js) */
.sunu-dialogue { border: 0; border-radius: 14px; box-shadow: 0 18px 50px rgba(20, 36, 59, .25); }
.sunu-dialogue .modal-body { padding: 26px 26px 10px; text-align: center; }
.sunu-dialogue-icone { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px; background: var(--accent-soft, #EEF3E0); color: var(--ink, #14243B); }
.sunu-dialogue-icone.danger { background: #FBE9E7; color: #B42318; }
.sunu-dialogue-titre { font-size: 16px; font-weight: 700; color: var(--ink, #14243B); margin: 0 0 6px; }
.sunu-dialogue-detail { font-size: 14px; color: var(--text-2, #5F6B7C); white-space: pre-line; margin: 0; }
.sunu-dialogue-detail:empty { display: none; }
.sunu-dialogue .modal-footer { border-top: 0; justify-content: center; gap: 8px; padding: 14px 26px 24px; }
.sunu-dialogue .modal-footer .btn { min-width: 120px; }
