/**
 * Carousel Component Styles
 */

.carousel-component {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
}

.carousel-slides {
  display: flex;
  width: 100%;
  height: 100vh; /* Plein écran vertical */
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  display: none;
  transform: scale(1.05);
}

.carousel-slide.active {
  opacity: 1;
  display: block;
  transform: scale(1);
}

/* Animation pour les éléments de texte */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-slide.active .carousel-title {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.carousel-slide.active .carousel-description {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.carousel-slide.active .carousel-button-wrapper {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.7s;
  opacity: 0;
}

.carousel-slide-content {
  position: relative;
  height: 100%;
  width: 100%;
  background-color: #000; /* Fond noir pour les images sombres */
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.carousel-image.fullscreen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%); /* Dégradé pour meilleure lisibilité */
}

.carousel-text-content {
  width: 100%;
  max-width: 80vw;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff; /* Texte blanc pour contraste sur fond sombre */
}

.carousel-title {
  font-size: 3.5rem;
  font-weight: 700;
  width: 50vw;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-description {
  font-size: 1.2rem;
  line-height: 1.6;
  width: 40vw;
  margin-bottom: 2rem;
  color: #fff;
  max-width: 800px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-button-wrapper {
  margin-top: 1rem;
}

.carousel-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #DF6B22;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-button:hover {
  background-color: #b87247;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 10;
  transform: translateY(-50%);
}

/* Conteneur central pour les indicateurs */
.carousel-indicators-container {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 9;
}

/* Boutons de navigation (flèches) */
.carousel-control {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
}

.carousel-component:hover .carousel-control {
  opacity: 1;
}

.carousel-control svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5px;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.6);
  border-color: #fff;
  transform: scale(1.1);
}

/* Conteneur des indicateurs (points) */
.carousel-indicators {
  display: flex;
  gap: 15px;
}

/* Points de navigation */
.carousel-indicator {
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.carousel-indicator.active {
  background-color: #fff;
  transform: scale(1.2);
}

/* Responsive styles */
@media (max-width: 1200px) {
  .carousel-title {
    font-size: 3rem;
  }
  
  .carousel-text-content {
    padding: 30px;
  }
}

@media (max-width: 992px) {
  .carousel-slides {
    height: 80vh; /* Un peu moins haut sur tablette */
  }
  
  .carousel-text-content {
    padding: 30px;
  }
  
  .carousel-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .carousel-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .carousel-button {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .carousel-controls {
    top: 50%;
    padding: 0 20px;
    transform: translateY(-50%);
  }
  
  .carousel-indicators-container {
    bottom: 30px;
  }
  
  .carousel-control {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .carousel-slides {
    height: 70vh;
  }
  
  .carousel-text-content {
    padding: 25px;
  }
  
  .carousel-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .carousel-slides {
    height: 100vh; /* Retour au plein écran sur mobile */
  }
  
  .carousel-text-content {
    padding: 20px;
    text-align: center; /* Centrer le texte sur mobile */
  }
  
  .carousel-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .carousel-description {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  
  .carousel-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .carousel-controls {
    top: 50%;
    padding: 0 10px;
    transform: translateY(-50%);
  }
  
  .carousel-indicators-container {
    bottom: 20px;
  }
  
  .carousel-control {
    width: 36px;
    height: 36px;
  }
  
  .carousel-control svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
  }
  
  .carousel-indicator {
    width: 10px;
    height: 10px;
  }
}
