.toast-root {
    position: fixed;
    inset: auto 0 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    max-width: 92vw;
    width: fit-content;
    min-width: 240px;
    background: #111827;
    color: white;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    font: 500 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    transform: translateY(20px);
    opacity: 0;
    transition: .18s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast--info {
    background: #111827;
}

.toast--success {
    background: #065f46;
}

.toast--error {
    background: #7f1d1d;
}

.toast__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.toast__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    flex: 0 0 auto;
}

.toast__close {
    margin-left: 6px;
    opacity: .7;
    cursor: pointer;
    border: none;
    background: transparent;
    color: currentColor;
    font-size: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Desktop : toast plus grand mais toujours ancré en bas (cf. .toast-root par défaut) */
@media (min-width: 1024px) {
    .toast {
        min-width: 360px;
        font-size: 16px;
        padding: 14px 20px;
        border-radius: 16px;
    }
}
