/* =========================================================================
   Ormesson Digital - Styles spécifiques & Micro-interactions
   ========================================================================= */

/* Lissage de police & comportement de scroll */
html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Personnalisation de la barre de défilement */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Effets de soulignement animé sur les liens de navigation */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #e06d3b;
  transition: width 0.25s ease-in-out;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #0b2239;
  font-weight: 700;
}

/* Animations au défilement (Scroll Reveal) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Animation flottante subtile pour les badges */
@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: floatBadge 4.5s ease-in-out infinite;
}

/* Animation pour l'ouverture des modales */
@keyframes scaleUpModal {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-scaleUp {
  animation: scaleUpModal 0.25s ease-out forwards;
}

/* Accordéon FAQ transition */
.faq-toggle .faq-icon {
  display: inline-block;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item.open .faq-content {
  display: block;
}

/* Ombre customisée supplémentaire pour éléments phares */
.shadow-2xs {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Adaptation pour les écrans tactiles : désactiver les hovers qui collent */
@media (hover: none) {
  .hover\:-translate-y-1\.5:hover,
  .hover\:-translate-y-0\.5:hover {
    transform: none !important;
  }
}
