/* ================================================
   ANIMATIONS AVANCÉES - WAVES & PARALLAX
   ================================================ */

/* ================================================
   ONDULATION ANIMATIONS (RIPPLE WAVES)
   ================================================ */

/* Container pour les ondulations */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.wave-container svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
}

/* Ondulations animées - Style fluide */
.wave-animated {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  z-index: 1;
}

.wave-animated .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  animation: ripple-animation 18s cubic-bezier(0.4, 0.2, 0.6, 0.8) infinite;
}

.wave-animated .wave:nth-child(1) {
  opacity: 0.15;
  animation-duration: 28s;
  z-index: 1;
}

.wave-animated .wave:nth-child(2) {
  opacity: 0.25;
  animation-duration: 22s;
  animation-delay: -7s;
  z-index: 2;
}

.wave-animated .wave:nth-child(3) {
  opacity: 0.35;
  animation-duration: 18s;
  animation-delay: -3s;
  z-index: 3;
}

@keyframes ripple-animation {
  0% {
    transform: translateX(0) translateY(0) scaleY(1);
  }
  33% {
    transform: translateX(-16.66%) translateY(-3px) scaleY(0.95);
  }
  66% {
    transform: translateX(-33.33%) translateY(3px) scaleY(1.05);
  }
  100% {
    transform: translateX(-50%) translateY(0) scaleY(1);
  }
}

/* Ondulations SVG animées - Style doux */
.wave-svg-animated {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.wave-svg-animated svg {
  position: relative;
  display: block;
  width: calc(300% + 1.3px);
  height: 120px;
}

.wave-svg-animated .wave-path {
  animation: ripple-svg-animation 25s cubic-bezier(0.45, 0.3, 0.55, 0.7) infinite;
}

.wave-svg-animated .wave-path:nth-child(1) {
  animation-duration: 32s;
  opacity: 0.2;
}

.wave-svg-animated .wave-path:nth-child(2) {
  animation-duration: 24s;
  animation-delay: -8s;
  opacity: 0.3;
}

.wave-svg-animated .wave-path:nth-child(3) {
  animation-duration: 20s;
  animation-delay: -4s;
  opacity: 0.4;
}

@keyframes ripple-svg-animation {
  0% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(-16.66%) translateY(-2px);
  }
  50% {
    transform: translateX(-33.33%) translateY(2px);
  }
  75% {
    transform: translateX(-50%) translateY(-1px);
  }
  100% {
    transform: translateX(-66.66%) translateY(0);
  }
}

/* ================================================
   PARALLAX EFFECTS
   ================================================ */

/* Container parallax */
.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.parallax-layer-1 {
  transform: translateZ(0);
}

.parallax-layer-2 {
  transform: translateZ(0);
}

.parallax-layer-3 {
  transform: translateZ(0);
}

/* Éléments flottants avec parallax */
.parallax-float {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.parallax-float:nth-child(even) {
  animation-delay: -3s;
  animation-duration: 8s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* ================================================
   FLOATING SHAPES - Formes géométriques animées
   ================================================ */

.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(2px);
  animation: float-shapes 20s ease-in-out infinite;
}

.shape.circle {
  border-radius: 50%;
}

.shape.square {
  border-radius: 8px;
}

.shape.triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86.6px solid currentColor;
}

/* Différentes tailles et positions */
.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 5%;
  background: linear-gradient(135deg, #1B4EE8, #00C6E0);
  animation-duration: 25s;
  animation-delay: 0s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 10%;
  background: linear-gradient(135deg, #FFB800, #FF6B35);
  animation-duration: 18s;
  animation-delay: -5s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 15%;
  background: linear-gradient(135deg, #10B981, #059669);
  animation-duration: 22s;
  animation-delay: -10s;
}

.shape-4 {
  width: 50px;
  height: 50px;
  top: 30%;
  right: 20%;
  background: linear-gradient(135deg, #3B82F6, #1B4EE8);
  animation-duration: 20s;
  animation-delay: -3s;
}

.shape-5 {
  width: 70px;
  height: 70px;
  bottom: 40%;
  right: 5%;
  background: linear-gradient(135deg, #00C6E0, #1B4EE8);
  animation-duration: 28s;
  animation-delay: -8s;
}

@keyframes float-shapes {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(30px, -30px) rotate(90deg) scale(1.1);
  }
  50% {
    transform: translate(0, -60px) rotate(180deg) scale(0.9);
  }
  75% {
    transform: translate(-30px, -30px) rotate(270deg) scale(1.05);
  }
}

/* ================================================
   PARTICLE SYSTEM - Système de particules
   ================================================ */

.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 10s ease-in-out infinite;
}

/* Variations de particules */
.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.particle:nth-child(2) {
  left: 20%;
  animation-delay: -2s;
  animation-duration: 15s;
}

.particle:nth-child(3) {
  left: 30%;
  animation-delay: -4s;
  animation-duration: 10s;
}

.particle:nth-child(4) {
  left: 40%;
  animation-delay: -6s;
  animation-duration: 18s;
}

.particle:nth-child(5) {
  left: 50%;
  animation-delay: -8s;
  animation-duration: 13s;
}

.particle:nth-child(6) {
  left: 60%;
  animation-delay: -10s;
  animation-duration: 16s;
}

.particle:nth-child(7) {
  left: 70%;
  animation-delay: -12s;
  animation-duration: 11s;
}

.particle:nth-child(8) {
  left: 80%;
  animation-delay: -14s;
  animation-duration: 14s;
}

.particle:nth-child(9) {
  left: 90%;
  animation-delay: -16s;
  animation-duration: 17s;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* ================================================
   GRADIENT ANIMATIONS - Dégradés animés
   ================================================ */

.animated-gradient {
  background: linear-gradient(270deg, #1B4EE8, #00C6E0, #3B82F6);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

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

/* ================================================
   GLOW EFFECTS - Effets de lueur
   ================================================ */

.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(27, 78, 232, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse-glow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
  }
}

/* ================================================
   SCROLL ANIMATIONS - Animations au scroll
   ================================================ */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-in.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ================================================
   TILT EFFECT - Effet d'inclinaison au survol
   ================================================ */

.tilt-effect {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --parallax-y: 0px;
  transform-style: preserve-3d;
  transform: translateY(var(--parallax-y));
  transition: transform 0.15s ease;
}

.tilt-effect:hover {
  transform: translateY(var(--parallax-y)) perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale3d(1.02, 1.02, 1.02);
}

/* ================================================
   RIPPLE EFFECT - Effet d'ondulation
   ================================================ */

.ripple-container {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

/* Délais d'animation */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Durées d'animation */
.duration-fast { animation-duration: 0.3s; }
.duration-normal { animation-duration: 0.6s; }
.duration-slow { animation-duration: 1s; }

/* Animation infinie */
.animate-infinite {
  animation-iteration-count: infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wave-container svg,
  .wave-animated,
  .wave-svg-animated svg {
    height: 80px;
  }
  
  .shape {
    transform: scale(0.6);
  }
  
  .floating-shapes {
    opacity: 0.5;
  }
}
