/**
 * HAFSOIT BEAUTY — Direction éditoriale luxe (Dior / Aesop / Apple)
 * Couche finale — ne modifie pas la logique métier.
 */

/* ——— Tokens éditoriaux ——— */
:root {
  --ed-bg: #faf8f4;
  --ed-ink: #141210;
  --ed-muted: #6e6458;
  --ed-line: rgba(20, 18, 16, 0.08);
  --ed-gold: #9b7c37;
  --ed-gold-soft: #c4a962;
  --ease-editorial: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-ui: 0.62s;
  --dur-slow: 1.05s;
  --section-pad-y: clamp(72px, 12vw, 120px);
  --section-pad-x: clamp(20px, 5vw, 48px);
  --max-editorial: 1240px;
  --shadow-ed: 0 20px 60px rgba(20, 18, 16, 0.06);
  --shadow-ed-hover: 0 28px 72px rgba(20, 18, 16, 0.09);
}

body.hb-editorial {
  background: var(--ed-bg);
  color: var(--ed-ink);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

body.hb-editorial .hb-app {
  background: transparent;
}

/* ——— Typographie globale ——— */
body.hb-editorial h1,
body.hb-editorial h2,
body.hb-editorial h3,
body.hb-editorial .section-title h2 {
  font-family: var(--font-maison-display, 'Instrument Serif', 'Cormorant Garamond', serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ed-ink);
}

body.hb-editorial .section-title {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
  max-width: var(--max-editorial);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--section-pad-x);
}

body.hb-editorial .section-title .ornament {
  display: none !important;
}

body.hb-editorial .section-title h2 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  text-transform: none;
  color: var(--ed-ink);
  margin: 0 0 14px;
}

body.hb-editorial .section-title p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ed-muted);
  margin: 0;
}

/* ——— Hero cinématographique ——— */
body.hb-editorial .hero.hero-sultana {
  min-height: calc(100svh - var(--header-height, 80px));
  max-height: none;
}

body.hb-editorial .hero-sultana-panel.is-active .hero-sultana-media {
  animation-duration: 32s;
}

body.hb-editorial .hero-sultana-copy,
body.hb-editorial .hero-layout {
  letter-spacing: 0.04em;
}

/* ——— Intro éditoriale (sous le hero) ——— */
.hb-editorial-intro {
  text-align: center;
  padding: clamp(40px, 7vw, 72px) var(--section-pad-x) clamp(28px, 4vw, 40px);
  max-width: 720px;
  margin: 0 auto;
  border-bottom: 1px solid var(--ed-line);
}

.hb-editorial-intro__eyebrow {
  margin: 0 0 12px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ed-gold);
}

.hb-editorial-intro__lead {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ed-ink);
  font-style: italic;
}

/* ——— Accueil allégé ——— */
body.hb-editorial .hb-page--home .ticker {
  display: none !important;
}

body.hb-editorial .hb-page--home .flag-banner {
  display: none !important;
}

body.hb-editorial .hb-trust-strip {
  padding: clamp(20px, 3vw, 28px) var(--section-pad-x);
  border-bottom: 1px solid var(--ed-line);
  background: transparent;
}

body.hb-editorial .hb-trust-strip__list {
  gap: clamp(24px, 4vw, 48px);
}

body.hb-editorial .hb-trust-strip__list li {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--ed-muted);
}

body.hb-editorial .hb-trust-strip__list li:hover {
  transform: none;
  box-shadow: none;
  color: var(--ed-gold);
}

body.hb-editorial .hb-trust-icon {
  display: none;
}

body.hb-editorial .hb-trust-strip__list li + li::before {
  content: '·';
  margin-right: 0.35em;
  color: var(--ed-gold-soft);
}

/* Lookbook : styles dans hafsoit-maison.css */

body.hb-editorial .home-trending,
body.hb-editorial .hb-home-block {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

body.hb-editorial .products--home {
  max-width: var(--max-editorial);
  gap: clamp(20px, 3vw, 32px);
}

body.hb-editorial .home-promo-teaser {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--ed-ink);
}

body.hb-editorial .home-promo-teaser-inner {
  background: transparent;
  border: 1px solid rgba(201, 169, 98, 0.28);
  border-radius: 0;
  backdrop-filter: none;
  padding: clamp(48px, 8vw, 72px) clamp(28px, 5vw, 40px);
  max-width: 640px;
}

body.hb-editorial .home-promo-teaser .promo-eyebrow,
body.hb-editorial .home-promo-teaser .promo-desc {
  color: rgba(245, 239, 228, 0.72);
}

body.hb-editorial .home-promo-teaser h2 {
  color: #f5efe4;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

body.hb-editorial .home-promo-teaser h2 span {
  color: var(--ed-gold-soft);
}

body.hb-editorial .hb-home-about-teaser {
  padding: var(--section-pad-y) var(--section-pad-x);
}

body.hb-editorial .hb-home-about-teaser__inner {
  background: transparent;
  border: none;
  border-top: 1px solid var(--ed-line);
  border-bottom: 1px solid var(--ed-line);
  border-radius: 0;
  backdrop-filter: none;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 4vw, 32px);
  max-width: 680px;
}

body.hb-editorial .hb-home-about-teaser h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

body.hb-editorial .hb-home-about-teaser__desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ed-muted);
}

/* ——— Header éditorial ——— */
/* header : voir bloc « Header (tous états) » plus bas */

body.hb-editorial .nav-links a {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-muted);
}

body.hb-editorial .nav-links a:hover,
body.hb-editorial .nav-links a.is-route-active {
  color: var(--ed-ink);
}

body.hb-editorial .nav-links a.is-route-active::after {
  height: 1px;
  background: var(--ed-gold);
}

body.hb-editorial .logo-header .logo-name__brand {
  letter-spacing: 0.38em;
}

/* ——— Cartes produits ——— */
body.hb-editorial #produits .product-card,
body.hb-editorial .products--home .product-card {
  transition: transform var(--dur-ui) var(--ease-editorial);
}

body.hb-editorial #produits .product-card-shell:hover,
body.hb-editorial .products--home .product-card-shell:hover {
  transform: translateY(-5px);
}

body.hb-editorial #produits .product-info h3,
body.hb-editorial .products--home .product-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

body.hb-editorial #produits .product-price,
body.hb-editorial .products--home .product-price {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

/* ——— Boutique ——— */
body.hb-editorial #produits {
  padding-top: clamp(48px, 8vw, 72px);
}

body.hb-editorial .filters-bar {
  border: none;
  border-bottom: 1px solid var(--ed-line);
  padding-bottom: 20px;
  margin-bottom: 32px;
}

body.hb-editorial .filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ed-muted);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

body.hb-editorial .filter-btn.active {
  background: var(--ed-ink);
  color: #f5efe4;
  border-color: var(--ed-ink);
  box-shadow: none;
}

/* ——— Fiche produit ——— */
body.hb-editorial .hb-product-page {
  max-width: var(--max-editorial);
}

body.hb-editorial .hb-back-link {
  letter-spacing: 0.2em;
  font-size: 0.62rem;
}

body.hb-editorial .product-page-content .product-modal-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.12;
}

body.hb-editorial .product-modal-kicker {
  letter-spacing: 0.32em;
}

body.hb-editorial .product-modal-tabs {
  border-top-color: var(--ed-line);
}

body.hb-editorial .product-modal-tab {
  letter-spacing: 0.14em;
  font-size: 0.62rem;
}

/* ——— Footer maison ——— */
body.hb-editorial footer {
  background: var(--ed-ink);
  color: rgba(245, 239, 228, 0.78);
  padding: clamp(64px, 10vw, 96px) var(--section-pad-x) 32px;
  border-top: none;
  margin-top: clamp(48px, 8vw, 80px);
}

body.hb-editorial footer .footer-col h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ed-gold-soft);
}

body.hb-editorial footer .footer-col a:hover {
  color: #fff;
}

body.hb-editorial .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
  letter-spacing: 0.2em;
  font-size: 0.58rem;
  margin-top: 40px;
  padding-top: 24px;
}

/* ——— SPA & motion ——— */
body.hb-editorial .hb-page {
  transition:
    opacity var(--dur-ui) var(--ease-editorial),
    transform var(--dur-ui) var(--ease-editorial);
}

body.hb-editorial .hb-page.is-active {
  transform: translateY(0);
}

body.hb-editorial .hb-app.is-transitioning .hb-page.is-active {
  opacity: 0.96;
  transform: translateY(8px);
}

body.hb-editorial.luxury-motion .scroll-reveal {
  transition-duration: var(--dur-slow);
  transition-timing-function: var(--ease-dramatic);
}

body.hb-editorial .btn-or,
body.hb-editorial .btn-primary {
  letter-spacing: 0.2em;
  font-size: 0.62rem;
  transition-duration: var(--dur-ui);
}

/* ——— Menu mobile ——— */
@media (max-width: 920px) {
  body.hb-editorial header.nav-open .nav-links-wrapper {
    background: rgba(250, 248, 244, 0.98);
    border: 1px solid var(--ed-line);
    border-radius: 2px;
    box-shadow: var(--shadow-ed);
  }

  body.hb-editorial header.nav-open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  body.hb-editorial header.nav-open .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
  }

  body.hb-editorial .hb-editorial-intro {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  body.hb-editorial .categories {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  body.hb-editorial .categories {
    grid-template-columns: 1fr;
  }

  body.hb-editorial .hb-trust-strip__list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* ——— Pages intérieures ——— */
body.hb-editorial .hb-page[data-page="about"] section,
body.hb-editorial .hb-page[data-page="contact"] section {
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

body.hb-editorial .cart-drawer {
  border-left-color: var(--ed-line);
  box-shadow: -32px 0 80px rgba(20, 18, 16, 0.12);
}

body.hb-editorial .hb-product-sticky-bar {
  background: rgba(250, 248, 244, 0.96);
  border-top-color: var(--ed-line);
  box-shadow: 0 -8px 40px rgba(20, 18, 16, 0.08);
}

/* ——— Pre-hero : éviter la redondance avec le hero cinéma ——— */
body.hb-editorial .pre-hero-zone.is-static {
  display: none;
}

/* ——— Hero : vignette & profondeur ——— */
body.hb-editorial .hero.hero-sultana {
  --hero-height: min(96svh, 920px);
}

body.hb-editorial .hero-sultana-media-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 10, 9, 0.12) 0%,
    rgba(12, 10, 9, 0.08) 35%,
    rgba(12, 10, 9, 0.52) 100%
  );
}

body.hb-editorial .hero-sultana-panel {
  transition-duration: 1.35s;
}

body.hb-editorial .hero-sultana-nav button {
  width: 6px;
  height: 6px;
  transition-duration: 0.55s;
}

/* ——— Header (tous états) ——— */
body.hb-editorial header {
  background: rgba(250, 248, 244, 0.72);
  border-bottom: 1px solid var(--ed-line);
  box-shadow: none;
  transition:
    background var(--dur-ui) var(--ease-editorial),
    border-color var(--dur-ui) ease,
    padding var(--dur-ui) var(--ease-editorial);
}

body.hb-editorial header.scrolled {
  background: rgba(250, 248, 244, 0.96);
  box-shadow: 0 1px 0 var(--ed-line);
}

body.hb-editorial .nav-container {
  min-height: var(--header-height, 80px);
}

body.hb-editorial .icon-btn {
  background: transparent;
  border: 1px solid var(--ed-line);
  border-radius: 50%;
  font-size: 0.85rem;
  transition: border-color var(--dur-ui) ease, transform var(--dur-ui) var(--ease-editorial);
}

body.hb-editorial .icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(155, 124, 55, 0.35);
  box-shadow: none;
}

body.hb-editorial .nav-toggle span {
  background: var(--ed-ink);
}

/* ——— Overrides inline accueil ——— */
body.hb-editorial .categories-section .section-title {
  margin-bottom: clamp(40px, 6vw, 64px) !important;
}

body.hb-editorial .categories-section .section-title h2 {
  letter-spacing: 0.02em !important;
  font-weight: 400 !important;
}

body.hb-editorial .categories-section .section-title p {
  font-style: normal !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  margin-top: 12px !important;
}

body.hb-editorial .category-card {
  height: clamp(320px, 36vw, 400px) !important;
  max-height: none !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

body.hb-editorial .categories-section.is-inview .category-card {
  animation-duration: 1.1s;
  animation-timing-function: var(--ease-dramatic);
}

/* ——— Cartes produit (look éditorial) ——— */
body.hb-editorial #produits .product-card-shell,
body.hb-editorial .products--home .product-card-shell {
  border-radius: 2px;
  transition-duration: var(--dur-ui);
  transition-timing-function: var(--ease-editorial);
}

body.hb-editorial #produits .product-card-shell:hover,
body.hb-editorial .products--home .product-card-shell:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-ed-hover);
}

body.hb-editorial #produits .product-card-shell:hover::before,
body.hb-editorial .products--home .product-card-shell:hover::before {
  opacity: 0.92;
}

body.hb-editorial .product-image img,
body.hb-editorial .product-media-wrap img {
  border-radius: 2px;
}

body.hb-editorial .hb-home-cta .btn-or {
  background: transparent;
  color: var(--ed-ink);
  border: 1px solid var(--ed-ink);
  box-shadow: none;
}

body.hb-editorial .hb-home-cta .btn-or:hover {
  background: var(--ed-ink);
  color: #f5efe4;
}

body.hb-editorial .home-promo-teaser .btn-or {
  border-color: rgba(201, 169, 98, 0.5);
  background: transparent;
  color: #f5efe4;
}

body.hb-editorial .home-promo-teaser .btn-or:hover {
  background: rgba(201, 169, 98, 0.12);
}

/* ——— Fiche produit page ——— */
body.hb-editorial .product-modal--page .product-modal {
  box-shadow: none;
}

body.hb-editorial .product-page-content .product-modal-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

body.hb-editorial .product-modal-add-btn,
body.hb-editorial .hb-product-sticky-bar .btn-or {
  letter-spacing: 0.18em;
  font-size: 0.62rem;
}

/* ——— WhatsApp discret ——— */
body.hb-editorial .whatsapp-float {
  box-shadow: var(--shadow-ed);
  transition: transform var(--dur-ui) var(--ease-editorial);
}

/* ——— Ornements globaux ——— */
body.hb-editorial .ornament {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.hb-editorial .hb-page,
  body.hb-editorial .category-card,
  body.hb-editorial .btn-or {
    transition: none !important;
  }
}
