.errorInput {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

.error, .succes {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  border-radius: 10px;
  color: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  font-weight: bold;

  /* Ajout du forwards au fadein */
  animation: 
    fadein 0.5s ease-out forwards, 
    fadeout 0.5s ease-in-out 4.5s forwards;
}
.error {
  background-color: #f44336;
}
.succes {
  background-color: #08a100;
}

.no-data {
  font-style: italic;
  color: #777;
  text-align: center;
  margin-top: 2rem;
}

/* Animation d'apparition */
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Animation de disparition */
@keyframes fadeout {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}


.error-message {
    color: #dc3545; /* Rouge alerte */
    font-size: 12px;
    margin-top: 5px;
    min-height: 15px; /* Évite que le formulaire "saute" quand l'erreur apparaît */
    display: block;
    font-weight: bold;
}

/* Optionnel : mettre le bord de l'input en rouge quand il y a une erreur */
.input-error {
    border-color: #dc3545 !important;
}