/* ============================================================
   Notify — toasts & boîte de confirmation
   Couleurs alignées sur l'interface d'administration :
   brand-blue #1565C0 · success #16A34A · error #DC2626 · warning #F59E0B
   ============================================================ */

/* ─── Conteneur des notifications ─────────────────────────── */
.notify-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: auto;
    max-width: 380px;
    pointer-events: none;
}

@media (max-width: 640px) {
    .notify-container {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
    }
}

/* ─── Toast ───────────────────────────────────────────────── */
.notify-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 14px 14px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #1f2937, #111827);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.28);
    font-size: 13px;
    line-height: 1.45;
    opacity: 0;
    transform: translateX(36px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.notify-toast.notify-is-visible {
    opacity: 1;
    transform: translateX(0);
}

.notify-toast.notify-is-leaving {
    opacity: 0;
    transform: translateX(28px);
}

.notify-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.notify-body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.notify-title {
    font-weight: 700;
    font-size: 13.5px;
    margin: 0;
}

.notify-message {
    font-weight: 400;
    opacity: 0.94;
    margin-top: 2px;
}

.notify-close {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}

.notify-close:hover,
.notify-close:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

/* ─── Variantes de type ───────────────────────────────────── */
.notify-success { background: linear-gradient(135deg, #22c55e, #15803d); }
.notify-success .notify-title { color: #ffffff; }
.notify-success .notify-icon { color: #ffffff; }

.notify-error { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.notify-error .notify-title { color: #ffffff; }
.notify-error .notify-icon { color: #ffffff; }

.notify-warning { background: linear-gradient(135deg, #f59e0b, #b45309); }
.notify-warning .notify-title { color: #ffffff; }
.notify-warning .notify-icon { color: #ffffff; }

.notify-info { background: linear-gradient(135deg, #3b82f6, #1565c0); }
.notify-info .notify-title { color: #ffffff; }
.notify-info .notify-icon { color: #ffffff; }

/* ─── Boîte de confirmation ───────────────────────────────── */
.notify-dialog-wrap {
    position: fixed;
    inset: 0;
    z-index: 2147483010;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 18, 32, 0.55);
    backdrop-filter: blur(4px);
    animation: notifyFadeIn 0.18s ease;
}

.notify-dialog-wrap.notify-dialog-closing {
    opacity: 0;
    transition: opacity 0.22s ease;
}

@keyframes notifyFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.notify-dialog {
    width: 440px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
    padding: 22px 24px;
    animation: notifyDialogIn 0.22s ease;
}

@keyframes notifyDialogIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.notify-dialog-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notify-dialog-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #f59e0b;
}

.notify-dialog-title {
    flex: 1 1 auto;
    font-weight: 800;
    font-size: 16px;
    color: #111827;
}

.notify-dialog-close {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}

.notify-dialog-close:hover,
.notify-dialog-close:focus-visible {
    background: #f3f4f6;
    color: #111827;
}

.notify-dialog-body {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
}

.notify-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.notify-btn {
    padding: 9px 18px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.notify-btn:hover,
.notify-btn:focus-visible {
    background: #f3f4f6;
}

.notify-btn-confirm {
    border-color: #1565c0;
    background: #1565c0;
    color: #ffffff;
}

.notify-btn-confirm:hover,
.notify-btn-confirm:focus-visible {
    background: #0d47a1;
}

.notify-btn-danger {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
}

.notify-btn-danger:hover,
.notify-btn-danger:focus-visible {
    background: #b91c1c;
}

/* ─── Accessibilité : respect du reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
    .notify-toast,
    .notify-dialog-wrap,
    .notify-dialog {
        animation: none;
        transition: opacity 0.15s ease;
    }
}