/* ============================================================
   HERO SLIDER — v5
   3 slides plein-écran, simulateur intégré, conversion-first
   ============================================================ */

/* ── WRAPPER ── */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 620px;
  max-height: 900px;
  overflow: hidden;
  background: var(--navy);
}

/* ── SLIDES ── */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .08s;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Photo de fond */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 7s linear;
}

.hero-slide.is-active .hero-slide-bg {
  transform: scale(1);
}

/* Double overlay : sombre global + gradient latéral pour le texte */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(6,35,64,.92) 0%,
      rgba(6,35,64,.75) 45%,
      rgba(6,35,64,.25) 100%);
  z-index: 1;
}

/* Grain subtil */
.hero-slide-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Contenu du slide */
.hero-slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--s8);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--s10);
  align-items: center;
}

/* Texte gauche */
.hero-slide-text {
  max-width: 600px;
  min-width: 0;
}

/* Eyebrow */
.hero-slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245,165,0,.13);
  border: 1px solid rgba(245,165,0,.4);
  color: #F5A500;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: var(--s5);
  transform: translateY(24px);
  opacity: 0;
  transition: transform .55s .15s cubic-bezier(.22,1,.36,1),
              opacity .55s .15s;
}
.hero-slide.is-active .hero-slide-eyebrow {
  transform: translateY(0);
  opacity: 1;
}

/* H1 */
.hero-slide-h1 {
  color: #fff;
  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: 0 0 var(--s5);
  transform: translateY(30px);
  opacity: 0;
  transition: transform .6s .25s cubic-bezier(.22,1,.36,1),
              opacity .6s .25s;
}
.hero-slide.is-active .hero-slide-h1 {
  transform: translateY(0);
  opacity: 1;
}

/* Accent orange sur mot-clé */
.hero-slide-h1 em {
  font-style: normal;
  color: #F5A500;
}

/* Sous-titre */
.hero-slide-sub {
  color: rgba(255,255,255,.65);
  font-size: var(--fs-base);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 0 var(--s7);
  transform: translateY(24px);
  opacity: 0;
  transition: transform .55s .35s cubic-bezier(.22,1,.36,1),
              opacity .55s .35s;
}
.hero-slide.is-active .hero-slide-sub {
  transform: translateY(0);
  opacity: 1;
}

/* CTA + ancre */
.hero-slide-actions {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .5s .45s cubic-bezier(.22,1,.36,1),
              opacity .5s .45s;
}
.hero-slide.is-active .hero-slide-actions {
  transform: translateY(0);
  opacity: 1;
}

.hero-slide-cta {
  background: linear-gradient(135deg, #F5A500 0%, #FFB930 100%);
  color: #062340;
  font-weight: 900;
  font-size: var(--fs-sm);
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 28px rgba(245,165,0,.4);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.hero-slide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(245,165,0,.5);
}

/* Ancre stat */
.hero-slide-anchor {
  display: flex;
  flex-direction: column;
}
.hero-slide-anchor-val {
  font-family: var(--font-h);
  font-size: var(--fs-xl);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.hero-slide-anchor-label {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  max-width: 120px;
  line-height: 1.4;
}

/* ── SIMULATEUR FLOTTANT ── */
.hero-sim-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: var(--s6) var(--s6) var(--s5);
  box-shadow:
    0 32px 80px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.08);
  transform: translateX(40px);
  opacity: 0;
  transition: transform .65s .3s cubic-bezier(.22,1,.36,1),
              opacity .65s .3s;
}
.hero-slide.is-active .hero-sim-card {
  transform: translateX(0);
  opacity: 1;
}

.hero-sim-title {
  font-family: var(--font-h);
  font-size: var(--fs-md);
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 var(--s5);
  letter-spacing: -.02em;
}

/* Slider montant */
.hero-sim-group {
  margin-bottom: var(--s4);
}
.hero-sim-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.hero-sim-label span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.hero-sim-label strong {
  font-family: var(--font-h);
  font-size: var(--fs-md);
  font-weight: 900;
  color: var(--navy);
}

input[type=range].hero-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
input[type=range].hero-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(6,35,64,.3);
  cursor: pointer;
  transition: transform .15s;
}
input[type=range].hero-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
input[type=range].hero-range::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(6,35,64,.3);
  cursor: pointer;
}

/* Résultat mensualité */
.hero-sim-result {
  background: linear-gradient(135deg, var(--navy) 0%, #1A5FAD 100%);
  border-radius: 12px;
  padding: var(--s4);
  text-align: center;
  margin: var(--s5) 0;
}
.hero-sim-result-label {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.hero-sim-result-val {
  font-family: var(--font-h);
  font-size: 1.85rem;
  font-weight: 900;
  color: #F5A500;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.hero-sim-result-sub {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-top: 4px;
}

/* Bouton CTA sim */
.hero-sim-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #F5A500 0%, #FFB930 100%);
  color: #062340;
  font-weight: 900;
  font-size: var(--fs-sm);
  text-align: center;
  padding: 13px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(245,165,0,.35);
}
.hero-sim-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245,165,0,.45);
}

/* Hint RGPD */
.hero-sim-hint {
  font-size: 10.5px;
  color: #94a3b8;
  text-align: center;
  margin-top: var(--s3);
  line-height: 1.5;
}

/* ── CONTRÔLES SLIDER ── */
.hero-controls {
  position: absolute;
  bottom: var(--s8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--s5);
}

/* Bullets */
.hero-bullets {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-bullet {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width .3s, background .3s;
  flex-shrink: 0;
}
.hero-bullet.is-active {
  width: 28px;
  background: #F5A500;
}

/* Barre de progression */
.hero-progress {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  overflow: hidden;
}
.hero-progress-bar {
  height: 100%;
  background: #F5A500;
  border-radius: 99px;
  width: 0%;
  transition: none;
}
.hero-progress-bar.is-animating {
  transition: width 5s linear;
  width: 100%;
}

/* Flèches */
.hero-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.hero-arrow:hover { background: rgba(255,255,255,.2); }
.hero-arrow svg { width: 16px; height: 16px; }

/* Numéro slide */
.hero-slide-num {
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
  white-space: nowrap;
}

/* ── STATS BAR ── (réutilisée depuis hero précédent) */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  background: rgba(6,35,64,.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.07);
}

.hero-stat {
  padding: var(--s4) var(--s3);
  text-align: center;
  position: relative;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.08);
}
.hero-stat-val {
  font-family: var(--font-h);
  font-size: var(--fs-lg);
  font-weight: 900;
  color: #F5A500;
  line-height: 1;
  letter-spacing: -.03em;
}
.hero-stat-label {
  font-size: 10.5px;
  color: rgba(255,255,255,.4);
  margin-top: 3px;
  line-height: 1.4;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-slide-content {
    grid-template-columns: minmax(0,1fr);
    gap: var(--s6);
    padding: 0 var(--s5);
  }
  .hero-sim-card {
    display: none; /* Masqué sur tablette — affiché dans section sim en-dessous */
  }
  .hero-slider {
    max-height: 700px;
  }
}

@media (max-width: 640px) {
  .hero-slider {
    height: 85vh;
    min-height: 520px;
    max-height: 680px;
  }
  .hero-slide-h1 {
    font-size: 1.85rem;
  }
  .hero-slide-sub {
    font-size: var(--fs-sm);
  }
  .hero-controls {
    bottom: var(--s5);
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0,1fr));
    position: static;
  }
  .hero-progress { display: none; }
  .hero-slide-cta { white-space: normal; text-align: center; }
}
