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



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




.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;
}

.error, .succes {
  position: fixed;
  top: 24px;
  left: 50%;
  /* Utilisation des propriétés indépendantes modernes pour éviter les conflits de transform */
  transform: translateX(-50%); 
  
  /* Design Moderne : Coins arrondis, police et ombres douces */
  border-radius: 12px;
  color: #ffffff;
  padding: 1rem 1.75rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  
  /* Ombre portée premium (effet de profondeur) */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 
              0 4px 6px -4px rgba(0, 0, 0, 0.05);
  
  /* Glassmorphism : Flou d'arrière-plan */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
  z-index: 9999;

  /* Une seule animation globale pour l'apparition, l'attente, et la disparition */
  animation: toast-sequence 5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.error {
  background-color: rgba(239, 68, 68, 0.9); /* Rouge doux moderne (Tailwind-like) */
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.succes {
  background-color: rgba(16, 185, 129, 0.9); /* Vert émeraude moderne */
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Séquence d'animation unique tout-en-un (évite les conflits) */
@keyframes toast-sequence {
  /* 0% à 10% : Entrée (0.5s) */
  0% {
    opacity: 0;
    margin-top: -16px;
  }
  10% {
    opacity: 1;
    margin-top: 0;
  }
  /* 10% à 90% : Reste visible (4s) */
  90% {
    opacity: 1;
    margin-top: 0;
  }
  /* 90% à 100% : Sortie (0.5s) */
  100% {
    opacity: 0;
    margin-top: -16px;
  }
}