/**
 * Styles pour le slider de détails de véhicule
 * Inspiration: Yamaha (https://www.yamaha-motor.eu/)
 */

/* Section du slider */
.slider-detail-vehicule-section {
  padding: 0;
  background-color: transparent;
  position: relative;
  overflow: hidden;
  margin: 50px 0 70px 0;
}

/* En-tête du slider avec titres et navigation */
.slider-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

/* Conteneur des titres (à gauche) */
.slider-detail-titles {
  text-align: left;
}



/* Zone de navigation (à droite) */
.slider-detail-nav {
  display: flex;
  gap: 20px;
}

/* Wrapper pour le slider */
.slider-detail-vehicule-wrapper {
  position: relative;
  overflow: visible;
  width: 100%;
  margin: 0 auto;
}

/* Container Swiper */
.slider-detail-vehicule-swiper {
  position: relative;
  width: 100%;
  overflow: visible;
  margin: 0 auto;
}

/* Style des slides */
.detail-slide {
  height: auto;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0;
  border: none;
}

.detail-slide:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Style interne du slide */
.detail-slide-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image du slide */
.detail-slide-image {
  position: relative;
  overflow: hidden;
  height: 260px;
  background-color: #000;
}

.detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0.9;
}

.detail-slide:hover .detail-img {
  transform: scale(1.08);
  opacity: 1;
}

/* Numérotation des slides */
.slide-count {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--morel-secondary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 5px 10px;
  z-index: 10;
  min-width: 45px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Contenu du slide */
.detail-slide-content {
  padding: 30px;
  background-color: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.detail-slide-content:before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  width: 40px;
  height: 4px;
  background-color: var(--morel-secondary);
  transform: translateY(-50%);
}

/* Titre du slide */
.detail-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #000;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Description du slide */
.detail-description {
  flex-grow: 1;
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

.detail-description p:last-child {
  margin-bottom: 0;
}

/* Boutons de navigation */
.detail-button-prev,
.detail-button-next {
  position: relative !important;
  width: 30px !important;
  height: 30px !important;
  background-color: #f5f5f5 !important;
  color: #000 !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
  opacity: 1 !important;
  top: 0 !important;
  transform: none !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.detail-button-prev:hover,
.detail-button-next:hover {
  background-color: var(--morel-secondary) !important;
  color: #fff !important;
}

.detail-button-prev.swiper-button-disabled,
.detail-button-next.swiper-button-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  color: #b2b2b2a6 !important;
}

.detail-button-prev:after,
.detail-button-next:after {
  font-size: 16px !important;
  font-weight: bold !important;
}

/* Media queries pour la responsivité */
@media (max-width: 991px) {
  .slider-detail-vehicule-section {
    margin: 40px 0 50px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .detail-slide-image {
    height: 220px;
  }
  
  .detail-title {
    font-size: 1.4rem;
  }
  
  .detail-slide-content {
    padding: 25px;
  }
  
  .slide-count {
    font-size: 1.1rem;
    min-width: 40px;
  }
}

@media (max-width: 767px) {
  .slider-detail-vehicule-section {
    margin: 30px 0 40px 0;
  }
  
  .slider-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .slider-detail-nav {
    align-self: flex-end;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .detail-slide-image {
    height: 200px;
  }
  
  .detail-slide-content {
    padding: 20px;
  }
  
  .detail-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .detail-description {
    font-size: 0.95rem;
  }
  
  .slide-count {
    font-size: 1rem;
    min-width: 35px;
    top: 10px;
    left: 10px;
  }
  
  .detail-button-prev,
  .detail-button-next {
    width: 35px !important;
    height: 35px !important;
  }
  
  .detail-button-prev:after,
  .detail-button-next:after {
    font-size: 14px !important;
  }
}

/* Styles spécifiques pour les très petits écrans */
@media (max-width: 479px) {
  /* Sur très petits écrans, on ramène les flèches plus près du slider pour éviter qu'elles sortent de l'écran */
  .detail-button-prev {
    left: -30px;
  }
  
  .detail-button-next {
    right: -30px;
  }
} 