/* Styles spécifiques pour le carousel principal */

/* Carousel container */
.carousel {
  position: relative !important;
  height: 80vh !important;
  min-height: 500px !important;
  width: 100% !important;
  overflow: hidden !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10 !important;
  margin-top: 80px !important;
}

/* Carousel inner container */
.carousel-inner {
  height: 100% !important;
  width: 100% !important;
  position: relative !important;
  display: block !important;
  visibility: visible !important;
}

/* Style for all slides */
.carousel-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center !important;
  transition: opacity 1s ease-in-out !important;
  z-index: 1 !important;
}

/* Active slide */
.carousel-slide.active {
  opacity: 1 !important;
  z-index: 2 !important;
  visibility: visible !important;
  display: flex !important;
}

/* Background gradient overlay */
.carousel-slide:before {
  content: "";
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.3) 100%
  ) !important;
  z-index: 1 !important;
}

/* Slide content */
.carousel-content {
  position: relative !important;
  max-width: 700px !important;
  padding: 0 2rem !important;
  margin-left: 10% !important;
  color: white !important;
  z-index: 2 !important;
}

/* Titles and text */
.hero-title {
  font-size: 3rem !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.hero-subtitle {
  font-size: 1.3rem !important;
  line-height: 1.5 !important;
  max-width: 90% !important;
  margin-bottom: 2rem !important;
}

/* Navigation arrows */
.carousel-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 45px !important;
  height: 45px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(5px) !important;
  border-radius: 50% !important;
  color: white !important;
  font-size: 1.3rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
}

.carousel-arrow:hover {
  background-color: rgba(255, 255, 255, 0.5) !important;
}

.carousel-arrow-prev {
  left: 20px !important;
}

.carousel-arrow-next {
  right: 20px !important;
}

/* Navigation dots */
.carousel-nav {
  position: absolute !important;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 10px !important;
  z-index: 10 !important;
}

.carousel-dot {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.4) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.carousel-dot.active, .carousel-dot:hover {
  background-color: white !important;
}

/* Specific styles for recruitment slide */
.carousel-slide[style*="recrutement_kodann_conseiller_commercial.png"] {
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  position: absolute !important;
}

.carousel-slide[style*="recrutement_kodann_conseiller_commercial.png"]:before {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 100%
  ) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .carousel {
    height: 70vh !important;
    min-height: 450px !important;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
  
  .carousel-content {
    margin-left: 5% !important;
    padding: 0 1rem !important;
  }
  
  .carousel-arrow {
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
  }
  
  .carousel-arrow-prev {
    left: 10px !important;
  }
  
  .carousel-arrow-next {
    right: 10px !important;
  }
  
  /* Mobile adjustments for recruitment slide */
  .carousel-slide[style*="recrutement_kodann_conseiller_commercial.png"] {
    background-position: center top !important;
    background-size: cover !important;
    filter: brightness(1.05) contrast(1.1) !important;
  }
  
  .carousel-slide[style*="recrutement_kodann_conseiller_commercial.png"]:before {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.5) 100%
    ) !important;
  }
  
  .carousel-slide[style*="recrutement_kodann_conseiller_commercial.png"] .carousel-content {
    margin-left: 0 !important;
    padding: 0 2rem !important;
    text-align: center !important;
    width: 100% !important;
  }
}
