/* Hermine Home Slider — front.css v1.2 — design polish premium */

/* ────────────────────────────────────────────────────────────
   Container
   ──────────────────────────────────────────────────────────── */
.hhs-slider {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 76vh, 760px);
  background: var(--ch-cream, #f4eee4);
}

/* ────────────────────────────────────────────────────────────
   Slides — crossfade opacity
   ──────────────────────────────────────────────────────────── */
.hhs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity .95s ease-in-out;
}
.hhs-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

/* ────────────────────────────────────────────────────────────
   Image — Ken Burns très subtil
   ──────────────────────────────────────────────────────────── */
.hhs-slide__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hhs-slide__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hhs-slide__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  transition: transform 9s ease;
}
/* Zoom très lent (6 % sur 9 s, ~4 % visibles avant le changement de slide à 6 s) */
.hhs-slide.is-active .hhs-slide__img {
  transform: scale(1.06);
}

/* ────────────────────────────────────────────────────────────
   Overlay ivoire allégé — la photo respire
   .94 → .80 | .72 → .48 | .08 → .01
   ──────────────────────────────────────────────────────────── */
.hhs-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(251, 248, 241, .80)  0%,
    rgba(251, 248, 241, .48) 40%,
    rgba(251, 248, 241, .01) 78%
  );
}

/* ────────────────────────────────────────────────────────────
   Bloc texte — air et équilibre
   ──────────────────────────────────────────────────────────── */
.hhs-slide__copy {
  width: min(600px, 88vw);
  padding: 5rem 0;
}

/* Transition entrée du texte — active uniquement après init JS
   (data-hhs-ready évite l'animation au premier rendu) */
.hhs-slider[data-hhs-ready] .hhs-slide .hhs-slide__copy {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .65s ease .35s, transform .65s cubic-bezier(.22, .68, 0, 1) .35s;
}
.hhs-slider[data-hhs-ready] .hhs-slide.is-active .hhs-slide__copy {
  opacity: 1;
  transform: translateY(0);
}

/* ────────────────────────────────────────────────────────────
   Eyebrow / surtitre
   ──────────────────────────────────────────────────────────── */
.hhs-slide__eyebrow {
  display: block;
  color: var(--ch-muted, #6e6258);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ────────────────────────────────────────────────────────────
   Titre — légèrement réduit, plus respirable
   clamp(2.6rem, 7vw, 6rem) → clamp(2.2rem, 5.5vw, 4.5rem)
   ──────────────────────────────────────────────────────────── */
.hhs-slide__title {
  font-family: var(--ch-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--ch-ink, #181512);
  margin: 0 0 .4rem;
}

/* ────────────────────────────────────────────────────────────
   Sous-titre
   ──────────────────────────────────────────────────────────── */
.hhs-slide__subtitle {
  color: var(--ch-ink, #181512);
  font-size: clamp(.92rem, 1.3vw, 1.1rem);
  max-width: 440px;
  margin: 1.4rem 0 2.6rem;
  line-height: 1.68;
  letter-spacing: .01em;
}

/* ────────────────────────────────────────────────────────────
   Bouton CTA — premium, proportions affinées
   ──────────────────────────────────────────────────────────── */
.hhs-slide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 158px;
  padding: .9rem 1.8rem;
  border: 1px solid var(--ch-ink, #181512);
  border-radius: 0;
  background: var(--ch-ink, #181512);
  color: #fff;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
  font-family: system-ui, -apple-system, sans-serif;
}
.hhs-slide__btn:hover,
.hhs-slide__btn:focus {
  background: var(--ch-brown, #4f3829);
  border-color: var(--ch-brown, #4f3829);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(24, 21, 18, .18);
}
.hhs-slide__btn:focus {
  outline: 2px solid var(--ch-ink, #181512);
  outline-offset: 3px;
}

/* ────────────────────────────────────────────────────────────
   Dots — style discret avec scale sur actif
   ──────────────────────────────────────────────────────────── */
.hhs-slider__nav {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: .65rem;
  align-items: center;
}
.hhs-slider__dot {
  width: 7px;
  height: 7px;
  border: 1.5px solid rgba(24, 21, 18, .45);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .25s, border-color .25s, transform .25s;
}
.hhs-slider__dot.is-active {
  background: var(--ch-ink, #181512);
  border-color: var(--ch-ink, #181512);
  transform: scale(1.35);
}
.hhs-slider__dot:hover {
  border-color: var(--ch-ink, #181512);
}
.hhs-slider__dot:focus {
  outline: 2px solid rgba(24, 21, 18, .5);
  outline-offset: 3px;
}

/* ────────────────────────────────────────────────────────────
   Flèches — cercles fins, chevrons CSS, backdrop-filter
   ──────────────────────────────────────────────────────────── */
.hhs-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(24, 21, 18, .30);
  background: rgba(251, 248, 241, .15);
  color: var(--ch-ink, #181512);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color .22s ease, background .22s ease,
              transform .22s cubic-bezier(.22, .68, 0, 1.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hhs-slider__arrow:hover {
  border-color: rgba(24, 21, 18, .70);
  background: rgba(251, 248, 241, .52);
  transform: translateY(-50%) scale(1.1);
}
.hhs-slider__arrow:focus {
  outline: 2px solid rgba(24, 21, 18, .5);
  outline-offset: 3px;
}
.hhs-slider__arrow--prev { left: 1.5rem; }
.hhs-slider__arrow--next { right: 1.5rem; }

/* Chevrons via pseudo-éléments */
.hhs-slider__arrow::before {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border-style: solid;
  border-color: currentColor;
}
.hhs-slider__arrow--prev::before {
  border-width: 1.5px 0 0 1.5px;  /* haut + gauche → coin ↖ → chevron ‹ après rotation */
  transform: rotate(-45deg) translateX(2px);
}
.hhs-slider__arrow--next::before {
  border-width: 1.5px 1.5px 0 0;  /* haut + droite → coin ↗ → chevron › après rotation */
  transform: rotate(45deg) translateX(-2px);
}

/* ────────────────────────────────────────────────────────────
   Mobile
   ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hhs-slide__overlay {
    background: linear-gradient(
      90deg,
      rgba(251, 248, 241, .90)  0%,
      rgba(251, 248, 241, .68) 55%,
      rgba(251, 248, 241, .18) 100%
    );
  }
  .hhs-slide__title {
    font-size: clamp(1.8rem, 8.5vw, 3rem);
  }
  .hhs-slide__subtitle {
    font-size: .92rem;
    margin-bottom: 1.8rem;
    line-height: 1.6;
  }
  .hhs-slide__copy {
    padding: 3.5rem 0;
  }
  .hhs-slider__arrow {
    display: none;
  }
}
