/**
 * HERO CAROUSEL — CINEMATIC PREMIUM DESIGN
 * Full-viewport · Left-aligned desktop · Cinematic gradient · No card box
 * Classes: hero-prem-* (zero conflict with legacy CSS)
 */

/* ============================================
   1. CAROUSEL — PLEIN ÉCRAN
   Tous les sélecteurs de classe pour battre premium-conversion-v2
   ============================================ */
.hero-carousel,
.hero-carousel--premium,
.hero-carousel--conversion {
  height: 100svh !important;
  min-height: 580px !important;
  max-height: none !important;
}
@media (max-width: 900px) {
  .hero-carousel,
  .hero-carousel--premium,
  .hero-carousel--conversion {
    height: 100svh !important;
    min-height: 520px !important;
    max-height: none !important;
  }
}

/* ============================================
   2. GRADIENT CINÉMATIQUE DOUBLE
   Sélecteurs spécifiques pour battre premium-conversion-v2 (0,2,0 > 0,1,0)
   ============================================ */
.hero-carousel--conversion .hero-carousel-overlay,
.hero-carousel--premium .hero-carousel-overlay,
.hero-carousel-overlay {
  background:
    linear-gradient(
      to right,
      rgba(0,0,0,0.58) 0%,
      rgba(0,0,0,0.18) 52%,
      rgba(0,0,0,0) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.0) 0%,
      rgba(0,0,0,0.1) 25%,
      rgba(0,0,0,0.52) 58%,
      rgba(0,0,0,0.90) 80%,
      rgba(0,0,0,0.97) 100%
    ) !important;
}

/* ============================================
   3. IMAGE FILTRE + KEN BURNS
   Sélecteurs (0,3,0) pour battre premium-conversion-v2
   ============================================ */
.hero-carousel--conversion .hero-carousel-slide .hero-carousel-img,
.hero-carousel--premium .hero-carousel-slide .hero-carousel-img {
  filter: saturate(1.05) contrast(1.02) brightness(0.82) !important;
  transition: transform 10s cubic-bezier(0.25,0.46,0.45,0.94), filter 1s ease !important;
}

.hero-carousel--conversion .hero-carousel-slide.is-active .hero-carousel-img,
.hero-carousel--premium .hero-carousel-slide.is-active .hero-carousel-img {
  transform: scale(1.06) !important;
}

/* ============================================
   4. OVERLAY PRINCIPAL — CONTENEUR
   ============================================ */
.hero-prem-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 clamp(1.25rem, 6vw, 5rem) clamp(4.5rem, 10vh, 7rem);
  pointer-events: none;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .hero-prem-overlay {
    justify-content: center;
    padding-bottom: 0;
    padding-top: 0;
  }
}

/* ============================================
   5. INNER — BLOC CONTENU
   ============================================ */
.hero-prem-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
  max-width: min(100%, 660px);
  animation: prem-fade-up 0.85s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}

@media (max-width: 767px) {
  .hero-prem-inner {
    max-width: 100%;
    align-items: flex-start;
  }
}

@keyframes prem-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   6. LABEL + LIVE DOT
   ============================================ */
.hero-prem-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.hero-prem-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: live-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  60%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ============================================
   7. TITRE H1 — DM Serif Display
   ============================================ */
.hero-prem-title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: clamp(2.8rem, 7.5vw, 6rem) !important;
  font-weight: 400 !important;
  line-height: 1.0 !important;
  color: #fff !important;
  margin: 0 0 1.4rem !important;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
  font-style: normal;
}

.hero-prem-accent {
  font-style: italic !important;
  color: rgba(255,255,255,0.88);
}

/* ============================================
   8. NUMÉRO DE TÉLÉPHONE — HERO ELEMENT
   ============================================ */
.hero-prem-phone {
  display: inline-block;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-decoration: none;
  margin-bottom: 1.75rem;
  opacity: 0.95;
  transition: opacity 0.2s;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.2em;
}

.hero-prem-phone:hover {
  opacity: 1;
  border-bottom-color: rgba(255,255,255,0.55);
  color: #fff;
}

/* ============================================
   9. BOUTONS CTA — PILLS
   ============================================ */
.hero-prem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.hero-prem-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero-prem-btn--call {
  background: #fff;
  color: #0d0d0d;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-weight: 700;
}
.hero-prem-btn--call:hover {
  background: #f2f2f2;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  color: #0d0d0d;
}

.hero-prem-btn--wa {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-prem-btn--wa:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
  color: #fff;
}

.hero-prem-btn--book {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-prem-btn--book:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   10b. LIEN RÉSERVER (texte discret)
   ============================================ */
.hero-prem-reserve-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.hero-prem-reserve-link:hover { color: rgba(255,255,255,0.85); }

/* ============================================
   11. TRUST LINE
   ============================================ */
.hero-prem-trust {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
  letter-spacing: 0.01em;
}

.hero-prem-trust strong {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

/* ============================================
   12. DOTS PILLS
   ============================================ */
.hero-prem-dots {
  position: absolute;
  bottom: clamp(1.25rem, 3vh, 2rem);
  left: clamp(1.25rem, 6vw, 5rem);
  right: clamp(1.25rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  pointer-events: auto;
}

.hero-prem-dots .carousel-dot {
  width: 28px !important;
  height: 3px !important;
  min-width: 28px !important;
  min-height: 3px !important;
  border-radius: 3px !important;
  background: rgba(255,255,255,0.28) !important;
  border: none !important;
  padding: 0 !important;
  transition: width 0.35s ease, background 0.35s ease !important;
  cursor: pointer;
}

.hero-prem-dots .carousel-dot.active {
  width: 56px !important;
  background: #fff !important;
  transform: none !important;
}

.hero-prem-dots .carousel-dot:hover:not(.active) {
  background: rgba(255,255,255,0.55) !important;
}

@media (max-width: 480px) {
  .hero-prem-dots .carousel-dot { width: 20px !important; }
  .hero-prem-dots .carousel-dot.active { width: 40px !important; }
}

/* ============================================
   13. FLÈCHES GLASSMORPHIC
   ============================================ */
.hero-carousel-btn,
.carousel-btn {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s, border-color 0.2s, transform 0.2s !important;
  z-index: 4 !important;
}

.hero-carousel-btn:hover,
.carousel-btn:hover {
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.5) !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.carousel-btn-prev { left: clamp(1rem, 2.5vw, 1.75rem) !important; }
.carousel-btn-next { right: clamp(1rem, 2.5vw, 1.75rem) !important; }

.carousel-btn::after {
  width: 9px !important;
  height: 9px !important;
  border-width: 2px !important;
  border-color: rgba(255,255,255,0.9) !important;
}

@media (max-width: 480px) {
  .hero-carousel-btn, .carousel-btn {
    width: 40px !important; height: 40px !important;
    min-width: 40px !important; min-height: 40px !important;
  }
  .carousel-btn-prev { left: 0.5rem !important; }
  .carousel-btn-next { right: 0.5rem !important; }
}

/* ============================================
   14. COMPTEUR + BARRE PROGRESSION
   ============================================ */
.hero-slide-counter {
  position: absolute;
  top: clamp(5rem, 10vh, 7rem);
  right: clamp(1.25rem, 3vw, 2rem);
  z-index: 4;
  display: flex;
  align-items: baseline;
  gap: 3px;
  pointer-events: none;
  font-family: 'Inter', system-ui, sans-serif;
}

.hero-slide-counter .current {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.hero-slide-counter .sep {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
}

.hero-slide-counter .total {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  .hero-slide-counter { top: 4.25rem; right: 0.85rem; }
}

.hero-carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 5;
  overflow: hidden;
}

.hero-carousel-progress-bar {
  height: 100%;
  background: rgba(255,255,255,0.6);
  width: 0%;
}

/* ============================================
   15. MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 767px) {

  /* Flèches — cachées sur mobile, overlap avec le titre à 50% hauteur */
  .hero-carousel-btn,
  .carousel-btn {
    display: none !important;
  }

  /* Overlay — centré verticalement + clearance sticky bar */
  .hero-prem-overlay {
    justify-content: center !important;
    padding: clamp(5rem, 12vh, 7rem) 1.25rem clamp(5rem, 11vh, 7rem) !important;
  }

  .hero-prem-title {
    font-size: clamp(2rem, 8.5vw, 2.6rem) !important;
    margin-bottom: 0.65rem !important;
    line-height: 1.05 !important;
  }

  .hero-prem-phone {
    font-size: clamp(1.25rem, 6.5vw, 1.65rem) !important;
    margin-bottom: 1rem !important;
    letter-spacing: 0.05em !important;
  }

  .hero-prem-actions {
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    width: 100%;
  }

  .hero-prem-btn--call {
    width: 100%;
    justify-content: center;
    font-size: 0.975rem;
    padding: 0.85rem 1.25rem;
    min-height: 50px;
  }

  .hero-prem-btn--wa {
    flex: 1;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0.7rem 0.9rem;
  }

  .hero-prem-reserve-link {
    display: none !important;
  }

  .hero-prem-label {
    font-size: 0.62rem !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-prem-dots {
    left: 1.25rem;
    right: 1.25rem;
  }
}

/* ============================================
   16. MASQUER ANCIENS ÉLÉMENTS DU HERO CARD
   ============================================ */
.hero-copy-card--conversion-v2,
.hero-content-overlay {
  display: none !important;
}

