/* Floating Labels - Modern form inputs with animated labels */

.floating-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: #6b7280; /* text-gray-600 */
  transition: all 0.2s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.floating-label-active {
  font-size: 0.75rem;
  top: -0.5rem;
  left: 0.75rem;
  background: white;
  padding: 0 0.5rem;
  color: rgb(37 99 235); /* text-blue-600 */
}

/* Focus states */
input:focus + .floating-label,
textarea:focus + .floating-label {
  font-size: 0.75rem;
  top: -0.5rem;
  left: 0.75rem;
  background: white;
  padding: 0 0.5rem;
  color: rgb(37 99 235); /* text-blue-600 */
}

/* Animations pour les micro-interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.liquid-glass-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Focus visible pour l'accessibilit� au clavier */
*:focus-visible {
  outline: 3px solid rgb(59 130 246);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* Smooth transitions pour tous les �l�ments interactifs */
button, a, input, textarea, select {
  transition: all 0.2s ease-in-out;
}

/* Enhanced hover states */
button:hover:not(:disabled),
a:hover {
  transform: translateY(-1px);
}

button:active:not(:disabled),
a:active {
  transform: translateY(0);
}

/* Disabled state */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Progress Tracker Sticky Bar */
.sticky {
  transition: box-shadow 0.3s ease-in-out;
}

.sticky.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Animations pour le progress tracker */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animation pulse pour l'étape courante */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}
