#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Toast commun */
.toast-message {
    min-width: 260px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(-20px);
    animation: slideIn 0.5s ease forwards, fadeOut 0.5s ease 3.5s forwards;
    background-color : var(--brand-green);
}

/* ✅ Succès */
.toast-message.success {
    background-color: var(--brand-green) !important;
}

/* ❌ Erreur – rouge bien visible */
.toast-message.error {
    background-color: #e53935 !important;
}

/* Animations */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ── Popup de confirmation générique (window.oelmConfirm) ── */
.oelm-confirm {
    border: none;
    border-radius: 12px;
    padding: 1.75rem;
    max-width: 440px;
    width: 90%;
    background: hsl(var(--card));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.oelm-confirm::backdrop {
    background: rgba(0, 0, 0, 0.4);
}
.oelm-confirm__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
}
.oelm-confirm__icon {
    font-size: 1.6rem;
    color: hsl(var(--destructive));
    flex-shrink: 0;
}
.oelm-confirm__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}
.oelm-confirm__message {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    color: hsl(var(--muted-foreground));
}
.oelm-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}
.oelm-confirm__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.oelm-confirm__btn--ghost {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    border-color: hsl(var(--border, 220 13% 91%));
}
.oelm-confirm__btn--ghost:hover {
    background: hsl(var(--muted) / 0.7);
}
.oelm-confirm__btn--danger {
    background: hsl(var(--destructive));
    color: #fff;
    border-color: hsl(var(--destructive));
}
.oelm-confirm__btn--danger:hover {
    background: hsl(0 72% 45%);
}
