/**
 * ============================================
 * QuickCI - Animations CSS
 * Styles pour toutes les animations du site
 * ============================================
 */

/* ============================================
   1. FADE-IN AU SCROLL
   ============================================ */
.fade-in-scroll,
.fade-in-up-scroll,
.fade-in-left-scroll,
.fade-in-right-scroll,
.scale-in-scroll,
.slide-up-scroll {
  opacity: 0;
  transition: all 0.6s ease-out;
}

.fade-in-scroll.animate-fadeIn {
  opacity: 1;
}

.fade-in-up-scroll {
  transform: translateY(30px);
}

.fade-in-up-scroll.animate-fadeInUp {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left-scroll {
  transform: translateX(-30px);
}

.fade-in-left-scroll.animate-fadeInLeft {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right-scroll {
  transform: translateX(30px);
}

.fade-in-right-scroll.animate-fadeInRight {
  opacity: 1;
  transform: translateX(0);
}

.scale-in-scroll {
  transform: scale(0.9);
}

.scale-in-scroll.animate-scaleIn {
  opacity: 1;
  transform: scale(1);
}

.slide-up-scroll {
  transform: translateY(50px);
}

.slide-up-scroll.animate-slideUp {
  opacity: 1;
  transform: translateY(0);
}

/* Délais personnalisés */
.fade-in-scroll.delay-100 { transition-delay: 0.1s; }
.fade-in-scroll.delay-200 { transition-delay: 0.2s; }
.fade-in-scroll.delay-300 { transition-delay: 0.3s; }
.fade-in-scroll.delay-400 { transition-delay: 0.4s; }
.fade-in-scroll.delay-500 { transition-delay: 0.5s; }

/* ============================================
   2. SMOOTH SCROLL
   ============================================ */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .fade-in-scroll,
  .fade-in-up-scroll,
  .fade-in-left-scroll,
  .fade-in-right-scroll,
  .scale-in-scroll,
  .slide-up-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   3. EFFETS HOVER SUR IMAGES
   ============================================ */
.parallax-image {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.zoom-on-hover {
  transition: transform 0.3s ease;
  overflow: hidden;
}

.zoom-on-hover img {
  transition: transform 0.3s ease;
}

.zoom-on-hover:hover img {
  transform: scale(1.1);
}

.tilt-3d {
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

/* Effet shimmer sur les images */
.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.shimmer-effect:hover::before {
  left: 100%;
}

/* Effet glow au hover */
.glow-on-hover {
  transition: box-shadow 0.3s ease;
}

.glow-on-hover:hover {
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5),
              0 0 40px rgba(251, 191, 36, 0.3),
              0 0 60px rgba(251, 191, 36, 0.1);
}

/* ============================================
   4. COMPTEURS ANIMÉS
   ============================================ */
.counter {
  font-weight: bold;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.counter.counted {
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ============================================
   5. ANIMATIONS HERO
   ============================================ */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #9ca3af;
  margin-top: 1rem;
}

.hero-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Curseur animé */
.animated-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(251, 191, 36, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}

.animated-cursor.hover {
  width: 40px;
  height: 40px;
  background: rgba(251, 191, 36, 0.1);
}

/* Animation de particules (optionnel) */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(251, 191, 36, 0.5);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* ============================================
   6. ANIMATIONS DE TEXTE
   ============================================ */
.typing-text {
  border-right: 2px solid rgba(251, 191, 36, 0.8);
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 50% { border-color: rgba(251, 191, 36, 0.8); }
  51%, 100% { border-color: transparent; }
}

/* Gradient text animé */
.gradient-text-animated {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================
   7. ANIMATIONS DE CARTES
   ============================================ */
.card-animated {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-animated:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Effet de flip */
.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* ============================================
   8. LOADING ANIMATIONS
   ============================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* ============================================
   9. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .counter {
    font-size: 2rem;
  }
  
  .animated-cursor {
    display: none; /* Masquer sur mobile */
  }
}

/* ============================================
   10. PERFORMANCE
   ============================================ */
.will-animate {
  will-change: transform, opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}



