/* Nova’Time — ajustements fluides communs aux pages publiques. */
:where(.wrap, .hero-copy, .product-story, .product-story-copy, .digital-formula-card, .partner-feature) {
  min-width: 0;
}

:where(h1, h2, h3) {
  text-wrap: balance;
}

img,
video,
figure {
  max-width: 100%;
}

.hero-copy h1,
.page-hero h1,
.product-story-copy h2 {
  overflow-wrap: break-word;
}

/* Le menu complet ne tient pas sur les tablettes en mode paysage. */
@media (min-width: 681px) and (max-width: 1120px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
}

@media (min-width: 681px) and (max-width: 980px) {
  .hero-premium .hero-copy {
    width: min(calc(100% - 40px), var(--max));
    box-sizing: border-box;
    padding-inline: clamp(16px, 3vw, 28px);
  }

  .hero-premium .hero-copy h1 {
    max-width: min(100%, 580px);
    font-size: clamp(2.55rem, 5.6vw, 3.65rem);
  }

  .hero-premium .hero-copy > p,
  .hero-premium .hero-copy .launch-offer-note,
  .hero-premium .hero-copy .hero-trust {
    max-width: min(100%, 560px);
  }
}

.product-story {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.product-story > *,
.wedding-visual {
  min-width: 0;
}

.wedding-visual {
  background: #151719;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
}

.wedding-visual > img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 69% center;
}

/* Le film source est vertical. Contain conserve toute l’image dans le cadre
   horizontal des petits écrans au lieu d’en couper le haut et le bas. */
.halloween-booth-video {
  object-fit: contain;
  object-position: center;
  background: transparent;
}

@media (max-width: 980px) {
  .product-story {
    max-width: 760px;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(26px, 5vw, 42px);
  }

  .product-story .wedding-visual {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .product-story-copy h2 {
    font-size: clamp(2.25rem, 5.8vw, 3.5rem);
  }
}

@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }

  .hero-premium .hero-copy {
    width: min(calc(100% - 24px), var(--max)) !important;
    box-sizing: border-box;
    padding-inline: clamp(12px, 4.1vw, 18px) !important;
    margin-inline: auto !important;
  }

  .hero-premium .hero-copy > *,
  .hero-premium .hero-copy h1,
  .hero-premium .hero-copy .hero-actions {
    margin-inline: 0;
  }

  .hero-premium .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 8.6vw, 3.55rem);
    line-height: 1.08;
  }

  .hero-premium .hero-copy > p,
  .hero-premium .hero-copy .launch-offer-note {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .page-hero { padding-top: 124px; }
  .page-hero .wrap { width: min(calc(100% - 32px), var(--max)); }
  .page-hero h1 { font-size: clamp(2.25rem, 8.7vw, 3.2rem); line-height: 1.08; }
  .section { padding-block: clamp(54px, 12vw, 76px); }
  .section-title { margin-bottom: 32px; }
  .section-title h2,
  .product-story-copy h2 { font-size: clamp(2rem, 7.4vw, 2.85rem); }

  .product-story {
    width: 100%;
    max-width: 760px;
    gap: 28px;
  }

  .product-story .wedding-visual {
    width: min(100%, 320px);
  }

  .halloween-booth-trigger {
    top: 10px;
    bottom: auto;
  }

  .launch-offer-note {
    padding: 11px 13px;
    font-size: .9rem;
  }
}

@media (max-width: 420px) {
  .two-fields { grid-template-columns: minmax(0, 1fr); }
  .page-hero .wrap { width: min(calc(100% - 28px), var(--max)); }
  .mobile-action-bar .btn { min-width: 0; padding-inline: 9px; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  .halloween-booth-video { transition: none; }
}
