/* ============================
   ANIMATIONS SUPPLÉMENTAIRES
============================ */

/* Animation de typing pour les titres */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Effet de brillance */
@keyframes shine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.shine-effect {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.8) 50%,
    rgba(255,255,255,0) 100%
  );
  background-size: 200% auto;
  animation: shine 3s linear infinite;
}

/* Particules flottantes */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(0, 102, 255, 0.15);
  border-radius: 50%;
  animation: float-particle 15s infinite ease-in-out;
}

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

/* Animation de rebond */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

/* Effet de rotation 3D */
@keyframes rotate3d {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Gradient animé pour le texte */
.gradient-text {
  background: linear-gradient(90deg, #0066FF, #00A3FF, #00D4FF, #0066FF);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

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

/* Effet de vague */
@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.wave {
  animation: wave 2s ease-in-out infinite;
}

/* Loading spinner moderne */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 102, 255, 0.1);
  border-top-color: #0066FF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Effet de glow pulsant */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 102, 255, 0.5),
                0 0 10px rgba(0, 102, 255, 0.3),
                0 0 15px rgba(0, 102, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.8),
                0 0 20px rgba(0, 102, 255, 0.5),
                0 0 30px rgba(0, 102, 255, 0.3);
  }
}

.glow-effect {
  animation: glow 2s ease-in-out infinite;
}

/* Effet de zoom au hover */
.zoom-hover {
  transition: transform 0.3s ease;
}

.zoom-hover:hover {
  transform: scale(1.05);
}

/* Shake animation pour les erreurs */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.5s ease;
}

/* Effet de ribbon */
.ribbon {
  position: absolute;
  top: 20px;
  right: -5px;
  background: linear-gradient(135deg, #FF5500, #FF7733);
  color: white;
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255, 85, 0, 0.3);
  transform: rotate(3deg);
}

.ribbon::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid #CC4400;
  border-bottom: 5px solid transparent;
}

/* Effet de underline animé */
.underline-animate {
  position: relative;
  display: inline-block;
}

.underline-animate::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, #0066FF, #00A3FF);
  transition: width 0.3s ease;
}

.underline-animate:hover::after {
  width: 100%;
}

/* Effet de card flip */
.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Badge animé */
@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.badge-animated {
  animation: badge-pulse 2s ease-in-out infinite;
}

/* Effet de scan */
@keyframes scan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.scan-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(transparent, rgba(0, 102, 255, 0.3), transparent);
  animation: scan 2s linear infinite;
}
