/* =====================
   ANIMATIONS ET EFFETS
   ===================== */

/* Animations Globales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(253, 183, 20, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(253, 183, 20, 0.8);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* ========================
   AMÉLIORATION DU HEADER
   ======================== */

header {
  animation: slideInDown 0.8s ease-out;
}

nav a {
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transition: left var(--transition-normal);
}

nav a:hover::after, nav a.active::after {
  left: 0;
}

nav a.active {
  color: #fdb714;
  font-weight: 600;
}

.contact-btn {
  animation: pulse 2s infinite;
}

/* ========================
   AMÉLIORATION DU HERO
   ======================== */

.hero-content h1 {
  animation: slideInLeft 0.8s ease-out 0.2s both;
  font-weight: 800;
  background: linear-gradient(
          135deg,
          var(--color-secondary-dark) 0%,
          var(--color-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-btn {
  animation: slideInLeft 0.8s ease-out 0.6s both;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-normal);
}

.hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.hero-btn:hover::before {
  left: 100%;
}

.hero-btn:hover {
  box-shadow: var(--shadow-primary-hover);
  transform: translateY(-4px);
}

.hero-slider {
  animation: slideInRight 0.8s ease-out 0.2s both;
}

.hero-slider:hover {
  box-shadow: 0 30px 80px rgba(253, 183, 20, 0.3);
}

.swiper-button-next,
.swiper-button-prev {
  transition: all 0.3s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.1);
}

/* ========================
   AMÉLIORATION DES SERVICES
   ======================== */

.section-title {
  animation: fadeInDown 0.8s ease-out;
  font-weight: 800;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.services {
  overflow: hidden;
}

.service-card {
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
          135deg,
          var(--color-bg-white) 0%,
          var(--color-bg-light) 100%
  );
  border: 2px solid transparent;
  transition: all var(--transition-smooth);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
          135deg,
          var(--color-primary) 0%,
          transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-15px) rotate(1deg);
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-icon {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  animation: none;
  transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
  transition: color var(--transition-normal);
  position: relative;
  z-index: 1;
}

.service-card:hover h3 {
  color: var(--color-primary);
}

.service-card p {
  position: relative;
  z-index: 1;
}

/* ========================
   AMÉLIORATION DU COUNTERS
   ======================== */

.counters {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  position: relative;
  overflow: hidden;
}

.counters::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
          circle at 20% 50%,
          rgba(253, 183, 20, 0.1) 0%,
          transparent 50%
  ),
  radial-gradient(
          circle at 80% 80%,
          rgba(253, 183, 20, 0.05) 0%,
          transparent 50%
  );
  pointer-events: none;
}

.counter-item {
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  z-index: 1;
  text-align: center;
}

.counter-number {
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
}

/* ========================
   AMÉLIORATION DES PARTENAIRES
   ======================== */

.partner-card {
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.partner-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
          90deg,
          transparent,
          rgba(253, 20, 20, 0.2),
          transparent
  );
  animation: shimmer 3s infinite;
}

.partner-card:hover {
  box-shadow: 0 15px 40px rgba(253, 183, 20, 0.15);
}

/* ========================
   AMÉLIORATION DES POSTS
   ======================== */

/* ========================
   AMÉLIORATION DU FOOTER
   ======================== */

footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fdb714, transparent);
}

.footer-links a {
  position: relative;
  transition: all 0.3s ease;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-normal);
}

.footer-links a:hover::before {
  width: 100%;
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

/* ========================
   SCROLL ANIMATIONS
   ======================== */

.scroll-fade-in {
  /*opacity: 0;*/
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ========================
   EFFETS DE PARTICULES
   ======================== */

.particle {
  position: fixed;
  pointer-events: none;
  animation: float 10s infinite;
}

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title::after {
    width: 60px;
    height: 3px;
  }

  .service-card:hover {
    transform: translateY(-10px) rotate(0deg);
  }
}
