/* ==========================================================================
   ASUNA PARFUMERIE — Composant InnerPageHero (hero des pages intérieures)
   Dépend de tokens.css. Aucun JavaScript.
   Variables : --inner-hero-image (via <img>), titre et fil d'Ariane dans le markup.

   Le fond place les six parfums sur la droite (à partir de 47,4 % de la largeur de l'image).
   >= 768px : l'image remplit la largeur ; le texte est aligné à droite, juste avant les flacons.
   <  768px : l'image est ancrée en bas, les flacons à droite ; le texte occupe le mur libre au-dessus.
   ========================================================================== */

.inner-hero {
  --inner-gutter: clamp(16px, 2.4vw, 34px);
  --inner-radius: 20px;
  --inner-height: clamp(300px, 25vw, 360px);
  --inner-products-start: 47.4%; /* bord gauche du premier flacon dans l'image */
  --inner-gap: 4%;               /* respiration entre le texte et les flacons */
  --inner-title: #fff7ed;
  --inner-crumb: #e8ccad;
  --inner-accent: #c9954a;

  padding: 6px var(--inner-gutter) 0;
}

.inner-hero__frame {
  position: relative;
  max-width: 1600px;
  height: var(--inner-height);
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--inner-radius);
  background: #4a2615;
  isolation: isolate;
}

.inner-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}

.inner-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* cadrage : bouchons et flacons entiers, socles légèrement rognés en bas */
  object-position: 50% 55%;
}

/* Voile discret côté texte, pour la lisibilité sur les rais de lumière ; les flacons restent intacts */
.inner-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 13, 5, 0.42) 0%,
    rgba(28, 13, 5, 0.3) 30%,
    rgba(28, 13, 5, 0.12) 44%,
    rgba(28, 13, 5, 0) 50%
  );
}

/* Zone de texte : à droite de l'espace libre, son bord droit s'arrête avant le premier flacon */
.inner-hero__content {
  position: absolute;
  top: 50%;
  right: calc(100% - var(--inner-products-start) + var(--inner-gap));
  width: min(560px, calc(var(--inner-products-start) - var(--inner-gap) - 48px));
  transform: translateY(-50%);
  text-align: right;
}

.inner-hero__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inner-hero__crumbs li {
  color: var(--inner-crumb);
  font-family: var(--asuna-font-ui);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.inner-hero__crumbs li + li::before {
  content: "/";
  margin: 0 10px;
  opacity: 0.7;
}

.inner-hero__crumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.inner-hero__crumbs a:hover {
  color: var(--inner-title);
}

.inner-hero__crumbs [aria-current="page"] {
  color: var(--inner-title);
}

.inner-hero__title {
  margin: 12px 0 0;
  color: var(--inner-title);
  font-family: var(--asuna-font-display);
  font-size: clamp(44px, 3.7vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

/* Petit trait champagne sous le titre */
.inner-hero__rule {
  display: block;
  width: 44px;
  height: 1px;
  margin: 18px 0 0 auto;
  background: var(--inner-accent);
}

/* Sous-titre facultatif (ex. page Contact) */
.inner-hero__lead {
  max-width: 420px;
  margin: 16px 0 0 auto;
  color: var(--inner-crumb);
  font-family: var(--asuna-font-display);
  font-size: 17px;
  line-height: 1.45;
  text-wrap: balance;
}

/* Copie affichée sous le hero sur téléphone uniquement (une seule version visible à la fois) */
.inner-hero__lead--below {
  display: none;
}

.inner-hero__crumbs a:focus-visible {
  outline: 2px solid var(--inner-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Tablette : 768–1023px
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  .inner-hero {
    --inner-height: 280px;
    --inner-gap: 3.5%;
  }

  .inner-hero__media img {
    object-position: 50% 62%;
  }

  .inner-hero__content {
    width: calc(var(--inner-products-start) - var(--inner-gap) - 28px);
  }

  .inner-hero__title {
    font-size: clamp(36px, 4.6vw, 44px);
  }
}

/* --------------------------------------------------------------------------
   Mobile : < 768px — flacons en bas à droite, texte sur le mur libre au-dessus
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .inner-hero {
    --inner-gutter: 16px;
    --inner-radius: 16px;
    --inner-height: 248px;
  }

  .inner-hero__frame {
    background: linear-gradient(180deg, #432213 0%, #5a3019 60%, #6a3a21 100%);
  }

  .inner-hero__media {
    top: auto;
    height: 178px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  }

  .inner-hero__media img {
    object-position: 100% 70%;
  }

  .inner-hero__media::after {
    display: none;
  }

  .inner-hero__content {
    top: 22px;
    right: auto;
    left: 18px;
    width: calc(100% - 36px);
    transform: none;
    text-align: left;
  }

  .inner-hero__crumbs ol {
    justify-content: flex-start;
  }

  .inner-hero__crumbs li {
    font-size: 9.5px;
    letter-spacing: 0.16em;
  }

  .inner-hero__crumbs li + li::before {
    margin: 0 7px;
  }

  .inner-hero__title {
    margin-top: 6px;
    /* une seule ligne, même pour « Coffrets personnalisés » sur 320px */
    font-size: clamp(26px, 7.7vw, 34px);
    white-space: nowrap;
  }

  .inner-hero__rule {
    width: 34px;
    margin: 10px 0 0;
  }

  /* Sous-titre : sous le hero (le mur libre est réservé au fil d'Ariane et au titre) */
  .inner-hero__content .inner-hero__lead {
    display: none;
  }

  .inner-hero__lead--below {
    display: block;
    max-width: none;
    margin: 14px 4px 0;
    color: var(--asuna-brown-2);
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-hero__crumbs a {
    transition: none;
  }
}
