.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #28a745;
  color: white;
  padding: 16px 32px;
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  font-size: 1.2rem;
  animation: fadein 0.5s, fadeout 0.5s 3s forwards;
  text-align: center;
}

@keyframes fadein {
  from {opacity: 0; transform: translate(-50%, -60%);}
  to {opacity: 1; transform: translate(-50%, -50%);}
}

@keyframes fadeout {
  from {opacity: 1; transform: translate(-50%, -50%);}
  to {opacity: 0; transform: translate(-50%, -40%); visibility: hidden;}
}

/* test avec un toast en haut a droite */
.toast2 {
  position: fixed;
  top: 20px;
  right: 20px;
  transform: none;
  background-color: lightblue;
  color: black;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 0px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  font-size: 1rem;
  animation: fadein2 0.5s, fadeout2 0.5s 3s forwards;
  text-align: center;
}

.toast-message {
    display: flex;
    align-items: center;
}

.toast-icon {
    width: 26px;
    height: 26px;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes fadein2 {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeout2 {
  from {opacity: 1; transform: translateY(0);}
  to {opacity: 0; transform: translateY(-20px); visibility: hidden;}
}

/* pour test et cnage style */
/*
@keyframes fadeout2 {
  from {opacity: 1; }
  to {opacity: 1; }
}
*/


