/* =====================================================================
   LCN CONSULTING — ANIMATIONS
   Effets glow, transitions, parallaxe, animations d'entrée
   ===================================================================== */

/* ---------------------------------------------------------------------
   KEYFRAMES
--------------------------------------------------------------------- */
@keyframes lcn-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lcn-fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes lcn-slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes lcn-slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes lcn-zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes lcn-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

@keyframes lcn-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(2deg); }
  66% { transform: translate(-20px, 20px) rotate(-2deg); }
}

@keyframes lcn-glow-blue {
  0%, 100% { box-shadow: 0 0 20px rgba(13, 110, 253, 0.4); }
  50% { box-shadow: 0 0 40px rgba(13, 110, 253, 0.7); }
}

@keyframes lcn-glow-purple {
  0%, 100% { box-shadow: 0 0 20px rgba(122, 44, 243, 0.4); }
  50% { box-shadow: 0 0 40px rgba(122, 44, 243, 0.7); }
}

@keyframes lcn-glow-turquoise {
  0%, 100% { box-shadow: 0 0 20px rgba(20, 217, 217, 0.4); }
  50% { box-shadow: 0 0 40px rgba(20, 217, 217, 0.7); }
}

@keyframes lcn-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes lcn-rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes lcn-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes lcn-bird-fly {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

/* ---------------------------------------------------------------------
   CLASSES UTILITAIRES D'ANIMATION
--------------------------------------------------------------------- */
.lcn-anim-fade-in { animation: lcn-fadeIn 0.6s ease-out forwards; }
.lcn-anim-fade-in-up { animation: lcn-fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.lcn-anim-fade-in-down { animation: lcn-fadeInDown 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.lcn-anim-zoom-in { animation: lcn-zoomIn 0.6s ease-out forwards; }
.lcn-anim-slide-left { animation: lcn-slideInLeft 0.7s ease-out forwards; }
.lcn-anim-slide-right { animation: lcn-slideInRight 0.7s ease-out forwards; }

.lcn-delay-1 { animation-delay: 0.1s; }
.lcn-delay-2 { animation-delay: 0.2s; }
.lcn-delay-3 { animation-delay: 0.3s; }
.lcn-delay-4 { animation-delay: 0.4s; }
.lcn-delay-5 { animation-delay: 0.5s; }

/* ---------------------------------------------------------------------
   AOS (Animate On Scroll) — déclenché par JS
--------------------------------------------------------------------- */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}
[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="zoom-in"] { transform: scale(0.92); }

[data-aos].lcn-aos-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ---------------------------------------------------------------------
   EFFET GLOW ANIMÉ SUR LE LOGO HERO
--------------------------------------------------------------------- */
.lcn-logo-hero {
  position: relative;
  display: inline-block;
}
.lcn-logo-hero::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--lcn-gradient-tri);
  border-radius: 50%;
  opacity: 0.30;
  filter: blur(40px);
  z-index: -1;
  animation: lcn-pulse 4s ease-in-out infinite;
}

/* Animation des oiseaux du logo (bandeau hero) */
.lcn-bird {
  animation: lcn-bird-fly 4s ease-in-out infinite;
}
.lcn-bird--blue { animation-delay: 0s; }
.lcn-bird--purple { animation-delay: -1.3s; }
.lcn-bird--turquoise { animation-delay: -2.6s; }

/* ---------------------------------------------------------------------
   SHIMMER (effet brillance sur boutons)
--------------------------------------------------------------------- */
.lcn-shimmer {
  background: linear-gradient(90deg,
    var(--lcn-gray-light) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    var(--lcn-gray-light) 100%);
  background-size: 200% 100%;
  animation: lcn-shimmer 1.6s linear infinite;
}

/* ---------------------------------------------------------------------
   PARTICULES BACKGROUND
--------------------------------------------------------------------- */
.lcn-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.lcn-particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: white;
  opacity: 0.5;
  animation: lcn-float 8s ease-in-out infinite;
}

/* ---------------------------------------------------------------------
   GRADIENT TEXT animé
--------------------------------------------------------------------- */
.lcn-gradient-text-animated {
  background: linear-gradient(90deg,
    var(--lcn-blue) 0%,
    var(--lcn-purple) 33%,
    var(--lcn-turquoise) 66%,
    var(--lcn-blue) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lcn-gradient-shift 6s ease infinite;
}

/* ---------------------------------------------------------------------
   HOVER EFFECTS
--------------------------------------------------------------------- */
.lcn-hover-lift {
  transition: transform var(--lcn-transition), box-shadow var(--lcn-transition);
}
.lcn-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--lcn-shadow-xl);
}

.lcn-hover-glow-blue:hover { animation: lcn-glow-blue 2s ease-in-out infinite; }
.lcn-hover-glow-purple:hover { animation: lcn-glow-purple 2s ease-in-out infinite; }
.lcn-hover-glow-turquoise:hover { animation: lcn-glow-turquoise 2s ease-in-out infinite; }

/* ---------------------------------------------------------------------
   SCROLL INDICATOR
--------------------------------------------------------------------- */
.lcn-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid var(--lcn-gray);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.lcn-scroll-indicator::before {
  content: '';
  width: 4px; height: 8px;
  background: var(--lcn-blue);
  border-radius: 2px;
  margin-top: 6px;
  animation: lcn-scroll-dot 2s ease-in-out infinite;
}
@keyframes lcn-scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------------------------------------------------------------------
   RESPECT DES PRÉFÉRENCES UTILISATEUR
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
