/* ════════════════════════════════
   HOME — Licorne Passion (Figma "Home")
════════════════════════════════ */

body.home-page {
  background: #fff;
  color: #000;
}
body.home-page .blob { display: none; }
body.home-page main {
  padding-top: 0; /* hero is full-bleed under the transparent nav */
}

/* ── Hero ── */
.home-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  /* dvh — sur mobile la "100vh" inclut la barre d'URL qui se rétracte et
     cause un saut. dvh (dynamic viewport height) suit la hauteur visible. */
  height: 100dvh;
  overflow: hidden;
  background: #1a1a1a;
}
.home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Hero promo overlay ──
   S'affiche uniquement si siteParams.promoPercent > 0. Posé à droite du
   hero pour laisser l'image (souvent un visage) lisible à gauche. Pas
   d'arrière-plan plein : on table sur l'image hero pour porter le contraste,
   et un text-shadow doux assure la lisibilité même sur fond clair. */
.home-hero-promo {
  position: absolute;
  right: clamp(28px, 6vw, 100px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
  z-index: 2;
  pointer-events: none;
  max-width: min(680px, 50vw);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 3.5vw, 64px);
}
/* Halo de 4 ombres autour du bloc, sans aucun fill central (= pas de
   carré visible). Le ::before est juste un conteneur transparent
   inset:0 qui sert de source de projection pour les box-shadows.
   Quatre ombres une par direction cardinale → halo doux et homogène
   tout autour du texte sans direction dominante, sans recouvrir
   la photo en arrière-plan. */
.home-hero-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow:
    0 -16px 40px rgba(0, 0, 0, .12),   /* haut */
    0 16px 40px rgba(0, 0, 0, .12),    /* bas */
    -16px 0 40px rgba(0, 0, 0, .12),   /* gauche */
    16px 0 40px rgba(0, 0, 0, .12);    /* droite */
  z-index: -1;
}
.home-hero-promo__eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4.2vw, 64px);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.05;
}
.home-hero-promo__title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.8vw, 42px);
  color: #d4b87a;
  letter-spacing: .02em;
  margin-top: -4px;
  position: relative;
}
/* Petits tirets décoratifs de chaque côté du titre italique. */
.home-hero-promo__title::before,
.home-hero-promo__title::after {
  content: "";
  display: inline-block;
  width: clamp(16px, 2vw, 36px);
  height: 1px;
  background: #d4b87a;
  vertical-align: middle;
  margin: 0 12px;
}
.home-hero-promo__percent {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(58px, 10vw, 150px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  margin: clamp(4px, 1vw, 14px) 0;
}
.home-hero-promo__subtitle {
  font-family: 'Urbanist', sans-serif;
  font-size: clamp(14px, 1.4vw, 22px);
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.home-hero-promo__badge {
  margin-top: clamp(14px, 2vw, 28px);
  padding: clamp(8px, 1.1vw, 14px) clamp(20px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, .9);
  font-family: 'Urbanist', sans-serif;
  font-size: clamp(11px, 1.2vw, 16px);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: none;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
/* Row de 4 features sous le badge — séparées par un trait vertical fin.
   Pas de bullet markers natifs, chaque <li> est un mini-flex (icône + label).
   Les séparateurs sont des `::after` sur tous les `<li>` sauf le dernier. */
.home-hero-promo__features {
  list-style: none;
  margin: clamp(20px, 3vw, 40px) 0 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 36px);
  width: 100%;
  font-family: 'Urbanist', sans-serif;
}
.home-hero-promo__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
  line-height: 1.4;
  position: relative;
  padding-right: clamp(14px, 2.5vw, 36px);
  flex: 1 1 0;
  max-width: 130px;
}
.home-hero-promo__feature:last-child {
  padding-right: 0;
}
.home-hero-promo__feature:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: rgba(255, 255, 255, .55);
}
.home-hero-promo__feature svg {
  width: clamp(22px, 2.4vw, 36px);
  height: clamp(22px, 2.4vw, 36px);
}

@media (max-width: 900px) {
  /* Sur mobile (image portrait), on centre le bloc et on rapproche du bas
     pour ne pas couvrir le visage du modèle si la photo est en portrait. */
  .home-hero-promo {
    right: 50%;
    top: auto;
    bottom: 8vh;
    transform: translateX(50%);
    width: calc(100% - 32px);
    max-width: 420px;
    padding: clamp(20px, 5vw, 32px) clamp(18px, 5vw, 28px);
  }
  /* En mobile, l'image hero est portrait et souvent contrastée derrière
     le texte → les 4 box-shadow ne suffisent plus à garantir la lisibilité.
     On bascule sur un fond blanc translucide flouté (frosted glass) avec
     mask radial pour fondre les bords dans la photo. */
  .home-hero-promo::before {
    box-shadow: none;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px) saturate(1.05);
    -webkit-backdrop-filter: blur(12px) saturate(1.05);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 92%);
            mask-image: radial-gradient(ellipse at center, #000 55%, transparent 92%);
    border-radius: 0;
  }

  /* Pour que "VENTE PRIVÉE" tienne sur une seule ligne sur tous les
     mobiles, on réduit la borne haute du clamp et on assure white-space. */
  .home-hero-promo__eyebrow {
    font-size: clamp(26px, 8.5vw, 44px);
    white-space: nowrap;
  }
  /* Les tirets autour de "exceptionnelle" en italique : sur écran étroit,
     ils débordaient parce qu'on ne contrôlait pas leur largeur max.
     On les rétrécit et on autorise le wrap inline. */
  .home-hero-promo__title {
    font-size: clamp(16px, 5vw, 26px);
    line-height: 1.1;
  }
  .home-hero-promo__title::before,
  .home-hero-promo__title::after {
    width: clamp(10px, 3vw, 22px);
    margin: 0 8px;
  }
  .home-hero-promo__percent {
    font-size: clamp(56px, 18vw, 110px);
    margin: 6px 0;
  }
  .home-hero-promo__subtitle {
    font-size: clamp(12px, 3.4vw, 17px);
    letter-spacing: .12em;
  }
  .home-hero-promo__badge {
    font-size: clamp(10px, 2.6vw, 13px);
    padding: 8px 16px;
    letter-spacing: .1em;
  }

  /* Features en grille 2×2 sur mobile pour éviter qu'elles débordent et
     pour garder chaque label lisible. On supprime les séparateurs verticaux
     (peu visibles entre 2 rangées) et on remplace par un peu d'espace. */
  .home-hero-promo__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-top: 22px;
    width: 100%;
  }
  .home-hero-promo__feature {
    padding-right: 0;
    max-width: none;
    font-size: clamp(10px, 2.4vw, 12px);
    letter-spacing: .12em;
  }
  .home-hero-promo__feature:not(:last-child)::after {
    display: none;
  }
  .home-hero-promo__feature svg {
    width: 26px;
    height: 26px;
  }
}

/* ── Section "découvrez toute la collection" ── */
.home-discover {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 44px;
  text-align: center;
  font-family: 'Urbanist', sans-serif;
  background: #fff;
}
.home-discover-link {
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.18s;
}
.home-discover-link:hover { opacity: 0.65; }
.home-discover-title {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.home-discover-sub {
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  margin: 0;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

/* ── Wrapper du flux home : intercale rangées de cards + bandeaux bundle
      avec un espace vertical uniforme. ── */
.home-feed {
  display: flex;
  flex-direction: column;
  gap: 56px;
  background: #fff;
  padding: 48px 0;
}

/* ── Product grids on home (4 columns edge-to-edge, mirrors Figma) ── */
.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
}

/* ── Mid lifestyle banner (legacy, conservé en fallback) ── */
.home-banner {
  width: 100%;
  height: 783px;
  max-height: 95vh;
  background: #1a1a1a center / cover no-repeat;
  margin: 0;
}

/* ── Card produit BUNDLE full-width (remplace l'ancienne bannière) ──
   Reprend les dimensions de `.home-banner` mais devient cliquable, avec
   un overlay de bas en haut contenant label + titre + prix. */
.home-bundle-card {
  display: block;
  position: relative;
  width: 100%;
  height: 783px;
  max-height: 95vh;
  background-color: #1a1a1a;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  margin: 0;
  transition: opacity 0.25s ease;
  font-family: 'Urbanist', sans-serif;
}
.home-bundle-card:hover { opacity: 0.92; }

/* Voile bas-haut pour la lisibilité du texte sur l'image */
.home-bundle-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.home-bundle-card-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 44px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.home-bundle-card-label {
  font-family: 'Urbanist', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}
.home-bundle-card-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0;
  text-transform: lowercase;
  line-height: 1.1;
}
.home-bundle-card-price {
  font-family: 'Urbanist', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
/* Sur fond image sombre, le texte du barré reste blanc avec une opacité
   réduite — le trait barré reste rouge pour rester cohérent avec le pattern
   utilisé sur les cards catalogue (text-decoration-color découplé). */
.home-bundle-card-price--struck {
  opacity: 0.85;
  text-decoration: line-through;
  text-decoration-color: #c4344f;
  text-decoration-thickness: 1.5px;
  font-weight: 300;
  font-size: 12px;
}
.home-bundle-card-price--promo {
  font-weight: 600;
  font-size: 16px;
}
/* Badge beige — même couleur que sur catalog cards, lit bien sur fond
   sombre du hero bundle. */
.home-bundle-card-price__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  background: #c4a36c;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.5;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .home-hero { height: 100vh; height: 100dvh; min-height: 480px; }
  .home-feed { gap: 40px; padding: 36px 0; }
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .home-banner,
  .home-bundle-card { height: 60vh; min-height: 420px; }
  .home-bundle-card-overlay { padding: 32px 24px; }
  .home-bundle-card-title { font-size: 28px; }
  .home-bundle-card-label { font-size: 10px; letter-spacing: 0.28em; }
  .home-discover { padding: 40px 24px 28px; }
}

@media (max-width: 480px) {
  .home-grid { grid-template-columns: 1fr; }
}
