/* Approved mobile hero composition — reference validated 2026-09-14.
   Layout only: no checkout, tracking, admin, data, or desktop behavior changes. */
.hero-audio-trust {
  display: none;
}

@media (max-width: 768px) {
  #accueil .storefront-hero--approved {
    display: grid !important;
    grid-template-columns: minmax(0, 57%) minmax(0, 43%) !important;
    grid-template-rows: auto auto auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    background: #f8f6f0 !important;
  }

  /* The title sits over the upper-left of the photo, exactly like the
     approved reference: broad reading area on the left, product visible right. */
  #accueil .storefront-hero--approved .storefront-hero__conversion-title {
    grid-column: 1 / 3 !important;
    grid-row: 1 !important;
    position: relative !important;
    z-index: 3 !important;
    box-sizing: border-box !important;
    width: 79% !important;
    max-width: 79% !important;
    margin: 0 !important;
    padding: 29px 4px 18px 18px !important;
    background: linear-gradient(
      90deg,
      #f8f6f0 0%,
      #f8f6f0 87%,
      rgba(248, 246, 240, .96) 92%,
      rgba(248, 246, 240, 0) 100%
    ) !important;
    color: #075a46 !important;
    font-size: clamp(1.58rem, 7.15vw, 2rem) !important;
    font-weight: 600 !important;
    line-height: 1.01 !important;
    letter-spacing: -.022em !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__conversion-title::before {
    display: none !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__conversion-title em {
    color: #b37d22 !important;
  }

  /* Let the two children of the existing split participate directly in the
     hero grid. This lets one real photo span title + benefits without duplicating it. */
  #accueil .storefront-hero--approved .storefront-hero__split {
    display: contents !important;
    min-height: 0 !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__split-copy {
    grid-column: 1 !important;
    grid-row: 2 !important;
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 19px !important;
    box-sizing: border-box !important;
    padding: 17px 9px 20px 18px !important;
    background: #f8f6f0 !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__split > picture {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__side-image,
  #accueil .storefront-hero--approved .storefront-hero__split > picture .storefront-hero__side-image {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
    filter: none !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__conversion-intro {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    color: #334b44 !important;
    font-size: clamp(.88rem, 3.8vw, .98rem) !important;
    font-weight: 600 !important;
    line-height: 1.43 !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__conversion-points {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    gap: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__conversion-points li {
    position: relative !important;
    min-height: 34px !important;
    padding: 5px 0 0 42px !important;
    color: #075a46 !important;
    font-size: clamp(.84rem, 3.55vw, .94rem) !important;
    font-weight: 750 !important;
    line-height: 1.28 !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__conversion-points li::before {
    top: 0 !important;
    left: 0 !important;
    width: 33px !important;
    height: 33px !important;
    transform: none !important;
    border: 1px solid rgba(196, 147, 45, .30) !important;
    background: #f6e7bc !important;
    color: #075a46 !important;
    font-size: 1rem !important;
    box-shadow: inset 0 0 0 1px rgba(198, 161, 91, .12) !important;
  }

  /* No artificial split height: the gold divider follows the third benefit
     naturally, removing the large blank area that was still visible. */
  #accueil .storefront-hero--approved .storefront-hero__closing {
    grid-column: 1 / 3 !important;
    grid-row: 3 !important;
    position: relative !important;
    z-index: 4 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 18px 18px 24px !important;
    border-top: 3px solid #d2a440 !important;
    background: #fffdf8 !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__conversion-transition {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #075a46 !important;
    font-family: var(--font-display, Georgia, serif) !important;
    font-size: clamp(1.05rem, 4.65vw, 1.22rem) !important;
    font-weight: 500 !important;
    line-height: 1.38 !important;
  }

  /* The validated mobile reference ends this hero copy here. The richer
     product explanation still exists unchanged for tablet/desktop. */
  #accueil .storefront-hero--approved .storefront-hero__conversion-product,
  #accueil .storefront-hero--approved .storefront-hero__conversion-copy {
    display: none !important;
  }
}

@media (max-width: 390px) {
  #accueil .storefront-hero--approved {
    grid-template-columns: minmax(0, 58%) minmax(0, 42%) !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__conversion-title {
    width: 81% !important;
    max-width: 81% !important;
    padding: 26px 3px 16px 15px !important;
    font-size: clamp(1.50rem, 7vw, 1.78rem) !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__split-copy {
    gap: 17px !important;
    padding: 15px 7px 18px 15px !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__conversion-intro {
    font-size: .86rem !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__conversion-points {
    gap: 12px !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__conversion-points li {
    min-height: 32px !important;
    padding-left: 39px !important;
    font-size: .82rem !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__conversion-points li::before {
    width: 31px !important;
    height: 31px !important;
    font-size: .92rem !important;
  }

  #accueil .storefront-hero--approved .storefront-hero__closing {
    padding: 17px 15px 22px !important;
  }
}

/* Mobile conversion polish: the old price card stays out of the hero and
   the former empty area becomes a real audio proof card. */
@media (max-width: 768px) {
  #accueil {
    background: #fffdf8 !important;
  }

  #accueil > div {
    padding-bottom: 18px !important;
  }

  #accueil .storefront-hero--approved ~ div,
  #accueil .storefront-hero--approved ~ p {
    display: none !important;
  }

  .hero-audio-trust {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 18px 18px 6px !important;
    background: #fffdf8 !important;
  }

  .hero-audio-card {
    overflow: hidden !important;
    border: 1px solid rgba(198, 161, 91, .20) !important;
    border-radius: 22px !important;
    background: #fff !important;
    padding: 18px 16px 20px !important;
    box-shadow: 0 12px 34px rgba(19, 61, 51, .09) !important;
  }

  .hero-audio-badge {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #ad0013 !important;
    padding: 7px 13px !important;
    color: #fff !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    box-shadow: 0 3px 8px rgba(120, 0, 12, .18) !important;
  }

  .hero-audio-title {
    margin: 14px 0 0 !important;
    color: #075a46 !important;
    font-family: var(--font-display, Georgia, serif) !important;
    font-size: clamp(1.25rem, 5.4vw, 1.52rem) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
  }

  .hero-audio-proof {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px !important;
    margin: 10px 0 0 !important;
    color: #44524d !important;
    font-size: .88rem !important;
    font-weight: 550 !important;
    line-height: 1.35 !important;
  }

  .hero-audio-proof span {
    flex: 0 0 auto !important;
    color: #075a46 !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  .hero-audio-controls {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) 40px !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  .hero-audio-play-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .hero-audio-play {
    display: grid !important;
    width: 54px !important;
    height: 54px !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #ad0013 !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(120, 0, 12, .18) !important;
    cursor: pointer !important;
  }

  .hero-audio-play-icon {
    display: block !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    transform: translateX(1px) !important;
  }

  .hero-audio-play-label {
    color: #44524d !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
  }

  .hero-audio-progress-wrap {
    min-width: 0 !important;
  }

  .hero-audio-range {
    width: 100% !important;
    height: 22px !important;
    margin: 0 !important;
    accent-color: #075a46 !important;
  }

  .hero-audio-times {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: -2px !important;
    color: #7a817e !important;
    font-size: .70rem !important;
    font-variant-numeric: tabular-nums !important;
  }

  .hero-audio-restart {
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #075a46 !important;
    font-size: 1.55rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  body > div.fixed.inset-x-0.bottom-0.z-40 {
    border-top: 0 !important;
    background: rgba(255, 253, 248, .98) !important;
    padding: 10px 18px max(14px, env(safe-area-inset-bottom)) !important;
    box-shadow: 0 -8px 24px rgba(19, 61, 51, .06) !important;
  }

  .commander-zoom {
    min-height: 60px !important;
    border-radius: 22px !important;
    background: #075a46 !important;
    color: #fff !important;
    font-size: clamp(.92rem, 4vw, 1.05rem) !important;
    font-weight: 650 !important;
    letter-spacing: .14em !important;
    box-shadow: 0 8px 20px rgba(7, 90, 70, .18) !important;
  }
}

@media (max-width: 390px) {
  .hero-audio-trust {
    padding: 16px 14px 4px !important;
  }

  .hero-audio-card {
    padding: 16px 14px 18px !important;
  }

  .hero-audio-controls {
    grid-template-columns: 54px minmax(0, 1fr) 36px !important;
    gap: 8px !important;
  }

  .hero-audio-play {
    width: 50px !important;
    height: 50px !important;
  }
}


/* Premium testimonial badge — isolated visual enhancement only. */
.hero-audio-badge {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  background: #ad0013 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  border-radius: 999px !important;
  text-shadow: 0 1px 2px rgba(68, 0, 8, .24) !important;
  box-shadow:
    0 5px 14px rgba(125, 0, 15, .25),
    0 0 0 1px rgba(173, 0, 19, .08),
    0 0 18px rgba(210, 18, 40, .16) !important;
  transform-origin: center !important;
  animation: testimonial-badge-pulse 3.8s ease-in-out infinite !important;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease !important;
  -webkit-tap-highlight-color: transparent;
}

.hero-audio-badge::after {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  top: -45% !important;
  bottom: -45% !important;
  left: -38% !important;
  width: 30% !important;
  pointer-events: none !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent) !important;
  transform: translateX(-160%) skewX(-16deg) !important;
  animation: testimonial-badge-shimmer 5.2s ease-in-out infinite !important;
}

@keyframes testimonial-badge-pulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.012);
    filter: brightness(1.035);
  }
}

@keyframes testimonial-badge-shimmer {
  0%, 58% {
    transform: translateX(-160%) skewX(-16deg);
    opacity: 0;
  }
  68% {
    opacity: .75;
  }
  82%, 100% {
    transform: translateX(600%) skewX(-16deg);
    opacity: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero-audio-badge:hover {
    animation-play-state: paused !important;
    transform: translateY(-1px) scale(1.014) !important;
    filter: brightness(1.04) !important;
    box-shadow:
      0 8px 18px rgba(125, 0, 15, .28),
      0 0 22px rgba(210, 18, 40, .21) !important;
  }
}

.hero-audio-badge:active {
  animation-play-state: paused !important;
  transform: scale(.992) !important;
}

@media (max-width: 390px) {
  .hero-audio-badge {
    padding-inline: 11px !important;
    font-size: clamp(.66rem, 3vw, .72rem) !important;
    letter-spacing: .095em !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-audio-badge,
  .hero-audio-badge::after {
    animation: none !important;
  }
  .hero-audio-badge {
    transform: none !important;
    transition: none !important;
  }
}
