/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 100svh, 980px);
  /* Clears the 201px header band. */
  padding-block: 241px 110px;
  background-color: var(--syn-green-800);
  background-size: cover;
  background-position: center;
  color: #fff;
}
/* Medium screens: the nav wraps to two rows (header ~250px tall), so the
   home hero badge would touch it; keep the same 40px gap as on desktop. */
@media (min-width: 901px) and (max-width: 1225px) {
  .page--front .hero { padding-top: 290px; }
}
.hero > .container { position: relative; z-index: 2; }
.hero--video { overflow: hidden; }

.hero--video::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.29) 0%, rgba(0, 0, 0, 0.42) 59.3%, rgba(0, 0, 0, 0.45) 78.19%, rgba(0, 0, 0, 0.60) 100%);
  z-index: 1;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0) 100%);
}
.hero__inner { max-width: 700px; }

/* Inner pages: shorter hero, everything centred. */
.hero--center {
  min-height: 620px;
  padding-block: 190px 90px;
  text-align: center;
}
/* Recette: a darker layer so the centred text reads on any photo. */
.hero--center .hero__scrim {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.6) 100%);
}
.hero--center .hero__inner { max-width: 900px; margin-inline: auto; }
.hero--center .hero__title { margin-bottom: 14px; font-size: clamp(2rem, 4.4vw, 3.3rem); }
/* Recette (Figma listing and contact heroes): a larger, lighter subtitle
   across a wider measure. */
.hero--center .hero__subtitle { max-width: 900px; margin-inline: auto; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, 0.92); }

.hero__badge {
  display: inline-block;
  margin: 0 0 30px;
  padding: 5px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(35px);
  backdrop-filter: blur(35px);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 20px;
}

.hero__title {
  margin-bottom: 30px;
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.44rem);
  line-height: 1.16;
}
.hero__title .hl { color: var(--syn-green-400); }

.hero__subtitle {
  max-width: 640px;
  font-size: 1.125rem;
  line-height: 1.45;
  color: #fff;
}

/* Multi-value link fields render as bare nested divs, so the wrappers collapse
   and each link is styled by position: primary, outline, then text links. */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 48px;
}
.hero__actions > *,
.hero__actions > * > * { display: contents; }
/* Outline button: fills white with a green label on hover (Figma 1413:4119). */
.hero__actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 16px 28px;
  border: 2px solid #fff;
  border-radius: 14px;
  color: #fff;
  font-weight: 500;
  font-size: 0.94rem;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(45, 106, 45, 0.08);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.hero__actions a:hover,
.hero__actions a:focus-visible {
  background: #fff;
  color: var(--syn-green-500);
  text-decoration: none;
}

/* Primary button: on hover the white disc behind the arrow swells until it
   fills the button, leaving a green label and arrow on white
   (Figma 1413:4107). The disc is painted under the label via ::before with
   z-index -1 inside an isolated stacking context. */
.hero__actions > * > :first-child a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 16px 26px;
  border-color: var(--syn-green-500);
  border-radius: 16px;
  background: var(--syn-green-500);
  box-shadow: 0 4px 14px rgba(45, 106, 45, 0.3);
  transition: color 0.35s ease;
}
.hero__actions > * > :first-child a::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  inset-inline-end: 26px;
  width: 24px; height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.45s ease;
}
.hero__actions > * > :first-child a::after {
  content: "";
  width: 24px; height: 24px;
  background: var(--icon-arrow-disc) center / contain no-repeat;
}
.hero__actions > * > :first-child a:hover,
.hero__actions > * > :first-child a:focus-visible {
  background: var(--syn-green-500);
  color: var(--syn-green-500);
}
.hero__actions > * > :first-child a:hover::before,
.hero__actions > * > :first-child a:focus-visible::before { transform: scale(32); }

@media (prefers-reduced-motion: reduce) {
  .hero__actions a,
  .hero__actions > * > :first-child a::before { transition: none; }
}

.hero__actions > * > :nth-child(n + 3) { display: block; flex-basis: 100%; }
.hero__actions > * > :nth-child(n + 3) a {
  min-height: 0;
  padding: 0;
  border: 0;
  gap: 8px;
  font-size: 0.94rem;
}
.hero__actions > * > :nth-child(n + 3) a::before {
  content: "";
  width: 16px; height: 16px;
  background-color: var(--syn-green-500);
  -webkit-mask: var(--icon-pin) center / contain no-repeat;
  mask: var(--icon-pin) center / contain no-repeat;
}
.hero__actions > * > :nth-child(n + 3) a:hover,
.hero__actions > * > :nth-child(n + 3) a:focus-visible { background: none; color: #fff; text-decoration: underline; }

/* Recette: from medium screens down, every hero fills the screen (at
   least), its content centred; dvh follows the mobile address bar, svh is
   the fallback. ".page" outranks the page-specific heights. */
@media (max-width: 1024px) {
  .page .hero {
    min-height: 100svh;
    min-height: 100dvh;
  }
}
@media (min-width: 901px) and (max-width: 1024px) {
  /* The header is two rows (250px) here: clear it by 40px (category pages
     set their own padding, hence the second selector). */
  .page .hero,
  .page .term-page .hero--center { padding-block: 290px 72px; }
}
@media (max-width: 900px) {
  /* Category heroes kept the desktop header's clearance (201px) under the
     76px mobile header; the same room as the other heroes instead. */
  .page .term-page .hero--center { padding-top: 140px; }
}
@media (max-width: 720px) {
  .page .term-page .hero--center { padding-top: 130px; }
}
