/* ========================================
   Hero & Carousel Styles
   ======================================== */

.hero {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
    url('../assets/images/hero/IslandReach_2.png');
  color: var(--color-white);
  padding: calc(var(--spacing-xxl) * 1.5) 0;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  display: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(20px); }
}

.hero__content {
  position: relative;
  z-index: 1;
  animation: slideInUp var(--transition-slow) ease-in-out;
}

.hero__title {
  font-size: var(--font-size-h1);
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.hero__subtitle {
  font-size: var(--font-size-h3);
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: var(--spacing-lg);
}

.hero .btn {
  margin-top: var(--spacing-md);
}

/* Carousel Section */
.carousel-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, rgba(8, 62, 90, 0.08) 0%, rgba(212, 237, 248, 0.72) 48%, rgba(255, 255, 255, 0.95) 100%);
}

.carousel {
  position: relative;
  margin-top: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.carousel__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: transparent;
  border: none;
  box-shadow: none;
  /* Masque intelligent pour un flou natif sur n'importe quel fond */
  /* Top mask starts at 0% to 10% (normal height fade in), bottom mask is 95% to 100% (reduction of bottom blur height) */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 95%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 95%, transparent 100%);
}

.carousel__track {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  will-change: transform;
}

.carousel__item {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.carousel__image {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  display: block;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: var(--font-size-h2);
  margin-bottom: var(--spacing-xl);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-mg-green), var(--color-primary), var(--color-secondary), var(--color-mg-red));
  border-radius: 4px;
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--spacing-xl) * 1.5) 0;
    min-height: 60vh;
  }

  .hero__title {
    font-size: var(--font-size-h2);
  }

  .hero__subtitle {
    font-size: var(--font-size-body);
  }

  .carousel {
    max-width: 100%;
  }
}


.carousel__btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  color: var(--color-dark);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
  margin: 0;
}

.carousel__btn:hover {
  background: var(--color-white);
  transform: scale(1.08);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.carousel__marquee {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.carousel__btn--prev,
.carousel__btn--next {
  transform: none;
}
