/* Fichier : css/toast.css */

#toast {
    visibility: hidden; /* Caché par défaut */
    min-width: 250px;
    background-color: #28a745; /* Vert succès */
    color: #fff; /* Texte blanc */
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed; /* Fixe par rapport à l'écran */
    z-index: 1000; /* Au-dessus de tout */
    left: 50%;
    bottom: 30px; /* En bas de l'écran */
    transform: translateX(-50%); /* Pour bien centrer horizontalement */
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

/* Classe qu'on ajoute en JS pour le faire apparaître */
#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Petit effet de remontée */
}