/*
 * Affiche d'un message informatif / alerte
 */
.toast-container {
  position: fixed;
  top: 10px;
  left: 25%;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 50vw;
  max-width: 50vw;
}
.toast {
  color: #fff;
  padding: 10px 20px;
  margin-bottom: 10px;
  border-radius: 4px;

  /* Animation */
  opacity: 0;
  transform: translateY(-20px); /* décalage initial vers le haut */
  transition: opacity 0.4s ease, transform 0.4s ease;

  width: 100%; /* le toast remplit toute la largeur du conteneur */
  box-sizing: border-box; /* pour que padding soit inclus dans la largeur */
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateY(0); /* revient à sa position normale */
}
.toast.success {
  background-color: rgb(76 175 80 / 90%); /* vert */
}
.toast.warning {
  background-color:rgb(255 152 0/ 90%); /* orange */
}
.toast.error {
  background-color:rgb(244 67 54 / 90%); /* rouge */
}
.toast.info {
  background-color: rgb(33 150 243 / 90%); /* bleu */
}
.close-btn {
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
}
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}