/* === HERO CAROUSEL === */

.carousel-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  height: min(100vh, 720px);
  overflow: hidden;
  color: #fff;
}

.carousel-hero .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.carousel-hero .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
}

/* Gradient */
.carousel-hero .hero-gradient-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Texte gauche */

.carousel-hero .hero-overlay {
  position: absolute;
  inset: 0;
  padding: 4vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 2;
  pointer-events: none;
}

.carousel-hero .hero-title {
  margin: 0 0 0.4em;
  max-width: 18ch;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.1;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.carousel-hero .hero-sub {
  margin: 0;
  max-width: 32ch;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Logo + tagline + bouton */

.carousel-hero .hero-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  width: 100%;
  z-index: 3;
  pointer-events: auto;
}

.carousel-hero .hero-brand-logo {
  width: clamp(140px, 28vw, 300px);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 -1px 2px rgba(255,245,230,0.9))
    drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.carousel-hero .hero-brand-tagline {
  color: #fff;
  font-style: italic;
  font-size: clamp(1.05rem, 2.8vw, 1.5rem);
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  max-width: 90%;
}

.carousel-hero .hero-cta {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
}

.carousel-hero .btn-hero {
  padding: 0.7rem 1.5rem;
  border-radius: 9px;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,248,240,0.6);
  background: rgba(139,0,0,0.94);
  color: #fef8f0;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  position: relative;
  z-index: 10;
}

.carousel-hero .btn-hero:hover,
.carousel-hero .btn-hero:focus-visible {
  background: rgba(139,0,0,1);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}

.carousel-hero .btn-hero:focus-visible {
  outline: 2px solid #fef8f0;
  outline-offset: 3px;
}

/* Barre de pagination centrée */
.carousel-hero .swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 4;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px; /* espace entre les traits */
}

/* Tirets gris */
.carousel-hero .swiper-pagination-bullet {
  display: inline-block;
  width: 16px;                 /* longueur de base du tiret */
  height: 2px;                 /* épaisseur */
  margin: 0 1px !important;    /* très peu d’espace entre les tirets */
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 0.7;
  transform-origin: center;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}

/* Trait actif : plus clair et plus long */
.carousel-hero .swiper-pagination-bullet-active {
  background: #ffffff;
  opacity: 1;
  transform: scaleX(1.8);  /* allonge le trait sans changer le layout */
}


/* === OVERLAY VIDEO === */

.hero-video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.hero-video-overlay.is-open {
  display: flex;
}

.hero-video-backdrop {
  position: absolute;
  inset: 0;
}

.hero-video-dialog {
  position: relative;
  z-index: 1;
  width: min(90vw, 960px);
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  border-radius: 12px;
  overflow: hidden;
}

.hero-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero-video-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #fef8f0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.hero-video-close:hover {
  background: rgba(0,0,0,0.9);
}

/* Responsive */

@media (max-width: 768px) {
  .carousel-hero {
    min-height: 80vh;
  }

  .carousel-hero .hero-overlay {
    padding: 2.5rem 1.5rem;
  }

  .carousel-hero .hero-brand {
    bottom: 90px;
  }
}

.btn-hero .icon {
  margin-right: 0.4rem;
}
