/* Animation Classes */
.animate-in {
  animation-fill-mode: both;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up {
  animation-name: fadeUp;
  opacity: 0;
  transform: translateY(30px);
}

.fade-left {
  animation-name: fadeLeft;
  opacity: 0;
  transform: translateX(-30px);
}

.fade-right {
  animation-name: fadeRight;
  opacity: 0;
  transform: translateX(30px);
}

.slide-up {
  animation-name: slideUp;
  opacity: 0;
  transform: translateY(50px);
}

.slide-down {
  animation-name: slideDown;
  opacity: 0;
  transform: translateY(-50px);
}

.slide-left {
  animation-name: slideLeft;
  opacity: 0;
  transform: translateX(-50px);
}

.slide-right {
  animation-name: slideRight;
  opacity: 0;
  transform: translateX(50px);
}

.scale-in {
  animation-name: scaleIn;
  opacity: 0;
  transform: scale(0.9);
}

/* Hero Carousel CSS */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.carousel-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background-color: white !important;
  opacity: 1 !important;
}

/* Animation Keyframes */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hover Animations */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.realisation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

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

/* Stagger Animations */
.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}
.service-card:nth-child(5) {
  animation-delay: 0.5s;
}

.realisation-card:nth-child(1) {
  animation-delay: 0.1s;
}
.realisation-card:nth-child(2) {
  animation-delay: 0.2s;
}
.realisation-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Loader CSS */
.loader {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid #fff;
  border-top: 2px solid #06c4ec; /* Uses primary color */
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Partners Carousel CSS */
.partners-carousel {
  position: relative;
}

.partners-track {
  display: flex;
  animation: scroll 30s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
