/* ========================================
   TOAST NOTIFICATIONS - Spacestylist
   ======================================== */

@keyframes toastInMobile {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastInDesktop {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Mobile : pleine largeur en bas */
.toast-container {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 3px solid;
    animation: toastInMobile var(--transition-base);
    pointer-events: auto;
}

.toast.is-success { border-color: var(--color-success); }
.toast.is-error   { border-color: var(--color-error); }

.toast__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.toast.is-success .toast__icon { color: var(--color-success); }
.toast.is-error   .toast__icon { color: var(--color-error); }

.toast__text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    flex: 1;
}

/* Desktop : coin bas-droit, largeur fixe */
@media (min-width: 768px) {
    .toast-container {
        left: auto;
        right: 1.5rem;
        bottom: 1.5rem;
        width: 320px;
    }

    .toast {
        animation: toastInDesktop var(--transition-base);
    }
}