/* Toasts (Alertes/ToastNotification.razor), partagés par le desktop, le web mobile et l'application (lot 11, Q10). */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}
/* Au-dessus des actions flottantes de la Description (ActionsFlottantes, ADR 0143 : 44 px à 20 px du bas), sauf
   sous 1 100 px là où le bandeau collant les remplace. */
body:has(.flottants) .toast-container {
    bottom: 76px;
}
@media (max-width: 1100px) {
    body:has(.flottants--bandeau) .toast-container {
        bottom: 20px;
    }
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-size: 13px;
    font-weight: 500;
    animation: toastIn 0.2s ease;
}
.toast--Info { border-left: 3px solid #3b82f6; }
.toast--Success { border-left: 3px solid #22c55e; }
.toast--Warning { border-left: 3px solid #f59e0b; }
.toast--Error { border-left: 3px solid #ef4444; }
.toast-message { flex: 1; }
.toast-close {
    border: none;
    background: none;
    cursor: pointer;
    color: rgba(0,0,0,0.4);
    padding: 0;
    display: flex;
}
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Pleine largeur sur mobile, au-dessus de la barre d'accueil de l'application (zone sûre). */
@media (max-width: 767px) {
    .toast-container {
        left: 12px;
        right: 12px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        max-width: unset;
    }
}
