/* ===== HERO SECTION WITH SERVICES CAROUSEL (Design Simplifié) ===== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/services/voiture-bg.jpeg') center/cover no-repeat;
  color: var(--white);
  padding: 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Navigation inside hero */
.hero .nav-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
}

.hero .nav-container.scrolled {
  background: rgba(255, 123, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Suppression des animations de fond complexes pour un design plus épuré */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  animation: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  opacity: 1;
  animation: none;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  /* Ajustement du padding-top pour tenir compte de la hauteur du menu */
  padding: 120px var(--spacing-md) var(--spacing-xl);
  position: relative;
  z-index: 3;
  animation: heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Services Carousel - Réduit pour un design plus épuré */
.hero-services-carousel {
  position: relative;
  margin: var(--spacing-lg) 0;
  height: 300px;
  /* Augmentation du rayon de bordure pour un effet plus visible */
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100%;
  /* Ajout d'un conteneur relatif pour le positionnement des contrôles */
}

.hero-service-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-md);
  box-sizing: border-box;
}

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

.hero-service-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.hero-service-slide.active .hero-service-image img {
  transform: scale(1.03);
}

.hero-service-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
  font-family: var(--font-family);
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8);
  color: var(--white);
  background: none;
  -webkit-background-clip: none;
  -webkit-text-fill-color: white;
  background-clip: none;
  animation: none;
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero-service-description {
  font-size: var(--font-size-md);
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  font-family: var(--font-family);
  line-height: 1.5;
  max-width: 500px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.5);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  backdrop-filter: blur(3px);
  position: relative;
  z-index: 2;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

/* Hero Carousel Controls - Simplifiés */
.hero-carousel-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  /* Ajustement du padding pour positionner les boutons à côté des bordures */
  padding: 0 1rem;
  pointer-events: none;
  box-sizing: border-box;
  /* Ajout d'un décalage vers le bas */
  align-items: flex-end;
  padding-bottom: 4rem;
}

.hero-carousel-btn {
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: var(--transition);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  /* Ajout d'un z-index élevé pour s'assurer que les boutons sont cliquables */
  z-index: 11;
}

.hero-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

/* Hero Dots Indicator - Simplifiés */
.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  /* Déplacement des points vers le bas, en dehors du carrousel */
  margin: calc(var(--spacing-md) + 1rem) 0 var(--spacing-md);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.hero-dot:hover {
  background: var(--primary-orange);
  transform: scale(1.1);
}

/* Boutons hero simplifiés */
.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: buttonsSlideIn 0.8s ease-out 0.5s both;
}

@keyframes buttonsSlideIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons .btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-md);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: var(--transition);
}

.hero-buttons .btn:hover::before {
  left: 100%;
  transition: left 0.4s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Emergency Bar - Repositionné et simplifié */
.emergency-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin: var(--spacing-lg) auto;
  width: 90%;
  max-width: 600px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.emergency-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.emergency-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.emergency-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 500;
}

/* Stats or highlights section in hero */
.hero-highlights {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
  animation: highlightsSlideIn 1s ease-out 1.2s both;
}

@keyframes highlightsSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-highlight {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.hero-highlight:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-highlight-number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--spacing-xs);
}

.hero-highlight-text {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  font-weight: 500;
}

/* Responsive Design pour le carrousel */
@media (max-width: 768px) {
  .hero-container {
    padding: 80px var(--spacing-sm) var(--spacing-md);
  }
  
  .hero-services-carousel {
    height: 250px;
    margin: var(--spacing-md) 0;
    /* Bordure ajustée pour les écrans moyens */
    border-radius: 1.25rem;
  }
  
  .hero-service-slide {
    padding: var(--spacing-sm);
  }
  
  .hero-service-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: var(--spacing-xs);
  }
  
  .hero-service-description {
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
  }
  
  .hero-carousel-controls {
    padding: 0 0.75rem;
    padding-bottom: 3rem;
  }
  
  .hero-carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
    margin: 0;
  }
  
  .hero-carousel-controls {
    padding: 0 0.75rem;
  }
  
  .hero-carousel-dots {
    margin: calc(var(--spacing-sm) + 0.75rem) 0 var(--spacing-sm);
  }
  
  .hero-dot {
    width: 8px;
    height: 8px;
  }
  
  .emergency-bar {
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    width: 95%;
  }
  
  .emergency-item {
    flex-direction: row;
    gap: var(--spacing-xs);
    width: 100%;
    justify-content: center;
  }
  
  .emergency-number {
    font-size: 1.2rem;
  }
  
  .emergency-label {
    font-size: 0.7rem;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 60px var(--spacing-xs) var(--spacing-sm);
  }
  
  .hero-services-carousel {
    height: 200px;
    margin: var(--spacing-sm) 0;
    /* Bordure ajustée pour les petits écrans */
    border-radius: 1rem;
  }
  
  .hero-service-slide {
    padding: var(--spacing-xs);
  }
  
  .hero-service-title {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  }
  
  .hero-service-description {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.6);
  }
  
  .hero-carousel-controls {
    padding: 0 0.5rem;
    padding-bottom: 2.5rem;
  }
  
  .hero-carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
    margin: 0;
  }
  
  .hero-carousel-controls {
    padding: 0 0.5rem;
  }
  
  .hero-carousel-dots {
    margin: calc(var(--spacing-xs) + 0.5rem) 0 var(--spacing-xs);
  }
  
  .hero-dot {
    width: 6px;
    height: 6px;
  }
  
  .hero-buttons {
    gap: var(--spacing-sm);
  }
  
  .hero-buttons .btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
  }
}
