/* HAFSOIT BEAUTY — Maison premium (Apple · Dior · Zara) */

.hb-maison-hero {
  position: relative;
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
  isolation: isolate;
  background: #0a0908;
}

.hb-maison-hero__video,
.hb-maison-hero__products {
  display: none;
}

.hb-maison-hero.is-mode-video .hb-maison-hero__video {
  display: block;
}

.hb-maison-hero.is-mode-products .hb-maison-hero__products {
  display: block;
}

/* —— Hero vidéo (wrapper = .hb-maison-hero__video / .hero-video-wrapper) —— */
.hb-maison-hero__video,
.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
}

.hb-maison-hero__video.is-scrolled .hb-maison-hero__media {
  opacity: 0.42;
  transform: scale(1.02);
}

.hb-maison-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hb-maison-hero__video-el {
  width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #0a0908;
}

/* Desktop : pleine largeur, hauteur 16:9 = 56.25vw, plafonnée à l’écran */
@media (min-width: 769px) {
  .hb-maison-hero__video,
  .hero-video-wrapper {
    height: 56.25vw;
    max-height: 100vh;
    aspect-ratio: 16 / 9;
    min-height: unset;
  }

  .hb-maison-hero__video-el {
    aspect-ratio: 16 / 9;
  }
}

/* Mobile : vidéo portrait, hauteur généreuse sans ratio paysage forcé */
@media (max-width: 768px) {
  .hb-maison-hero__video,
  .hero-video-wrapper {
    height: auto;
    min-height: min(92svh, 780px);
    max-height: 100svh;
    aspect-ratio: auto;
  }

  .hb-maison-hero__video-el {
    aspect-ratio: 9 / 16;
    min-height: min(92svh, 780px);
    object-position: center 35%;
  }
}

.hb-maison-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
      180deg,
      rgba(10, 9, 8, 0.35) 0%,
      transparent 35%,
      transparent 55%,
      rgba(10, 9, 8, 0.75) 100%
    ),
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent, rgba(0, 0, 0, 0.35));
}

.hb-maison-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 6vw, 64px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.hb-maison-hero.is-revealed .hb-maison-hero__overlay {
  opacity: 1;
  transform: translateY(0);
}

.hb-maison-hero__eyebrow {
  font-size: clamp(0.625rem, 1.5vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(232, 212, 160, 0.95);
  margin: 0 0 16px;
}

.hb-maison-hero__title {
  font-family: var(--hb-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: #fffaf2;
  margin: 0;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hb-maison-hero__title em {
  font-style: italic;
  font-weight: 300;
  color: #e8d4a0;
}

.hb-maison-hero__rule {
  display: block;
  width: 56px;
  height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, rgba(232, 212, 160, 0.95), transparent);
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.hb-maison-hero.is-revealed .hb-maison-hero__rule {
  transform: scaleX(1);
}

.hb-maison-hero__lead {
  margin: 18px 0 0;
  max-width: 36ch;
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.65;
  color: rgba(245, 240, 232, 0.82);
  letter-spacing: 0.04em;
}

.hb-maison-hero__cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 15px 36px;
  border-radius: 999px;
  background: #fffaf2;
  color: #1a1513;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.hb-maison-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32);
}

.hb-maison-hero__sound {
  position: absolute;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 6;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 250, 242, 0.28);
  background: rgba(10, 9, 8, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 250, 242, 0.88);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hb-maison-hero__sound:hover {
  transform: scale(1.06);
  background: rgba(10, 9, 8, 0.58);
  border-color: rgba(232, 212, 160, 0.45);
}

.hb-maison-hero__sound.is-sound-on {
  color: #e8d4a0;
  border-color: rgba(232, 212, 160, 0.55);
  background: rgba(10, 9, 8, 0.55);
  box-shadow: 0 0 0 1px rgba(232, 212, 160, 0.2), 0 6px 24px rgba(0, 0, 0, 0.35);
}

.hb-maison-hero__sound-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.hb-maison-hero__scroll-hint {
  position: absolute;
  bottom: clamp(20px, 4vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.5);
  opacity: 0;
  transition: opacity 0.8s ease 1s;
}

.hb-maison-hero.is-revealed .hb-maison-hero__scroll-hint {
  opacity: 1;
}

@media (max-width: 640px) {
  .hb-maison-hero__scroll-hint {
    display: none;
  }
}

/* —— Barre confiance premium —— */
.hb-maison-trust {
  background: #fffaf2;
  border-bottom: 1px solid rgba(26, 21, 19, 0.06);
  padding: clamp(14px, 3vw, 22px) 24px;
}

body.dark .hb-maison-trust {
  background: #141210;
  border-color: rgba(255, 255, 255, 0.06);
}

.hb-maison-trust__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
}

.hb-maison-trust__list li {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-muted, #5c5348);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hb-maison-trust__list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hb-gold, #a68b4b);
}

body.dark .hb-maison-trust__list li {
  color: #b8b0a4;
}

/* —— Collections 3 piliers —— */
.hb-maison-collections {
  padding: clamp(56px, 10vw, 100px) clamp(20px, 5vw, 48px);
  background: #fffaf2;
}

body.dark .hb-maison-collections {
  background: #0f0e0d;
}

.hb-maison-collections__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.hb-maison-collections__head h2 {
  font-family: var(--hb-font-display, Georgia, serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--hb-ink, #1a1513);
}

body.dark .hb-maison-collections__head h2 {
  color: #f5f0e8;
}

.hb-maison-collections__head p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--hb-muted, #5c5348);
  letter-spacing: 0.06em;
}

.hb-maison-collections__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(12px, 2vw, 18px);
  max-width: 1280px;
  margin: 0 auto;
}

.hb-maison-collection--lead {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 100%;
}

@media (min-width: 901px) {
  .hb-maison-collection--lead {
    min-height: 520px;
  }

  .hb-maison-collection:not(.hb-maison-collection--lead) {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 900px) {
  .hb-maison-collections__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 480px;
  }

  .hb-maison-collection--lead {
    grid-row: auto;
    aspect-ratio: 3 / 4;
    min-height: 420px;
  }
}

.hb-maison-collection {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 2px;
}

.hb-maison-collection__media {
  position: absolute;
  inset: 0;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hb-maison-collection__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hb-maison-collection:hover .hb-maison-collection__media {
  transform: scale(1.06);
}

.hb-maison-collection__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.hb-maison-collection__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(20px, 4vw, 32px);
  color: #fffaf2;
}

.hb-maison-collection__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hb-maison-collection__name {
  font-family: var(--hb-font-display, Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin: 6px 0 0;
  line-height: 1.1;
}

.hb-maison-collection__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 250, 242, 0.5);
  padding-bottom: 2px;
}

/* —— Histoire marque (accueil) —— */
.hb-maison-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: min(70vh, 640px);
  background: #f5f0e8;
}

body.dark .hb-maison-story {
  background: #1a1816;
}

@media (max-width: 900px) {
  .hb-maison-story {
    grid-template-columns: 1fr;
    min-height: unset;
  }
}

.hb-maison-story__visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.hb-maison-story__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hb-maison-story__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vw, 80px);
}

.hb-maison-story__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hb-gold, #a68b4b);
  margin: 0 0 16px;
}

.hb-maison-story__content h2 {
  font-family: var(--hb-font-display, Georgia, serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--hb-ink, #1a1513);
}

body.dark .hb-maison-story__content h2 {
  color: #f5f0e8;
}

.hb-maison-story__content p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--hb-muted, #5c5348);
  max-width: 46ch;
}

.hb-maison-story__content p:last-of-type {
  margin-bottom: 28px;
}

.hb-maison-story__cta {
  align-self: flex-start;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(26, 21, 19, 0.2);
  color: var(--hb-ink, #1a1513);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.hb-maison-story__cta:hover {
  background: var(--hb-ink, #1a1513);
  color: #fffaf2;
}

/* —— WhatsApp flottant premium —— */
.whatsapp-float.hb-maison-wa {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.9);
  z-index: 9000;
}

.whatsapp-float.hb-maison-wa .hb-icon svg {
  width: 28px;
  height: 28px;
}

/* Scroll reveal maison */
.hb-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hb-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hb-maison-hero__video.is-scrolled .hb-maison-hero__media,
  .hb-maison-hero__media,
  .hb-maison-hero__overlay,
  .hb-reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .hb-maison-collection:hover .hb-maison-collection__media {
    transform: none;
  }
}

/* Produits hero dans shell */
.hb-maison-hero__products .hero.hero-sultana {
  min-height: min(92vh, 820px);
}

.site-top > .hb-maison-hero {
  min-height: unset;
  width: 100%;
  max-width: none;
}
