/* Style pour le bloc Hero Slider */
.wp-block-mon-theme-aca-hero-slider {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 0;
  font-family: "Inter", sans-serif;
}

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 600px; /* Hauteur fixe comme dans le design React */
}

.hero-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: none;
  align-items: center;
  justify-content: flex-start; /* Alignement à gauche comme dans React */
  text-align: left; /* Texte aligné à gauche */
  color: white;
  padding: 0; /* Supprimé le padding global */
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-slide.active {
  display: flex;
}

/* Overlay gradient comme dans React */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(45, 155, 138, 0.8),
    rgba(45, 155, 138, 0.6)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInText 1.5s ease-in-out;
  max-width: 1280px; /* max-w-7xl de Tailwind */
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .hero-content {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 0 2rem;
  }
}

.hero-content > div {
  max-width: 48rem; /* max-w-3xl de Tailwind */
}

.hero-title {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: white;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem; /* md:text-6xl */
  }
}

.hero-subtitle {
  font-size: 1.25rem; /* text-xl */
  margin-bottom: 2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem; /* md:text-2xl */
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-btn {
  display: inline-block;
  font-weight: 600;
  padding: 16px 32px; /* px-8 py-4 */
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  transform: scale(1);
}

.hero-btn:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.hero-btn-primary {
  border: 2px solid white;
  color: white;
  background-color: transparent;
}

.hero-btn-primary:hover {
  background-color: white;
  color: #2d9b8a;
}

.hero-btn-secondary {
  background-color: #28a745;
  color: white;
}

.hero-btn-secondary:hover {
  background-color: #16a34a; /* green-600 */
  color: white;
}

/* Navigation */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  font-size: 18px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-nav:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.hero-nav-prev {
  left: 1rem;
}

.hero-nav-next {
  right: 1rem;
}

/* Indicateurs */
.hero-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 20;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1);
}

.hero-indicator:hover {
  background-color: rgba(255, 255, 255, 0.75);
}

.hero-indicator.active {
  background-color: white;
  transform: scale(1.25);
}

/* Animation */
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-slider {
    height: 500px;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .hero-nav-prev {
    left: 0.5rem;
  }

  .hero-nav-next {
    right: 0.5rem;
  }

  .hero-indicators {
    bottom: 1rem;
  }

  .hero-indicator {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 400px;
  }

  .hero-content {
    padding: 0 0.5rem;
  }
}
