@font-face {
  font-family: "Bodoni Moda Hero";
  src: url("../fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.hero-redesign {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  isolation: isolate;
  background: #0A1929;
}

.hero-redesign::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 32px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  filter: saturate(1.35) contrast(1.12) brightness(1.28);
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-bg-scale 9s ease-out forwards;
}

.hero-bg--video {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1200ms ease;
}

.hero-bg--video.is-ready {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(4, 12, 24, 0.24) 0%, rgba(4, 12, 24, 0.14) 42%, rgba(4, 12, 24, 0) 72%),
    linear-gradient(rgba(5, 14, 28, 0.17), rgba(5, 14, 28, 0.17)),
    linear-gradient(to top, rgba(10, 15, 25, 0.84) 0%, rgba(10, 15, 25, 0.35) 50%, rgba(10, 15, 25, 0.08) 100%);
}

.hero-top-scrim {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 220px;
  background: linear-gradient(to bottom, rgba(4, 16, 30, 0.42) 0%, rgba(4, 16, 30, 0) 100%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.hero-top-scrim.is-hidden {
  opacity: 0;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px) clamp(96px, 14vh, 160px);
  align-items: flex-end;
}

.hero-content {
  max-width: 980px;
}

.hero-eyebrow {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-title {
  max-width: clamp(560px, 70vw, 980px);
  margin: 0 0 32px;
  color: #FFFFFF;
  font-family: "Bodoni Moda Hero", serif;
  font-size: clamp(40px, 6.1vw, 86px);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-subhead {
  max-width: 800px;
  margin: 0 0 40px;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-subhead-line {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1em;
  font-weight: 400;
}

.hero-subhead-line--lead {
  color: #FFFFFF;
  font-size: 1.05em;
  font-weight: 600;
}

.hero-subhead-line + .hero-subhead-line {
  margin-top: 3px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-primary,
.hero-cta-secondary {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
}

.hero-primary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  background: var(--color-foret);
  box-shadow: 0 6px 24px var(--color-foret-shadow);
  color: #FFFFFF;
  font-size: 15px;
  text-decoration: none;
  transition: background 200ms ease, filter 200ms ease;
}

.hero-primary:hover {
  background: var(--color-foret-hover);
  filter: brightness(1.08);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 4px;
  color: #FFFFFF;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.65);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  transition: text-decoration-color 200ms ease, text-underline-offset 200ms ease;
}

.hero-cta-secondary:hover {
  text-decoration-color: #FFFFFF;
  text-underline-offset: 10px;
}

.hero-event-card {
  position: absolute;
  right: clamp(24px, 5vw, 64px);
  bottom: clamp(32px, 6vh, 64px);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 330px;
  padding: 16px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 12px 40px rgba(15, 23, 42, 0.22);
  color: #0A1929;
  text-decoration: none;
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 280ms ease, border-color 280ms ease, background 280ms ease;
}

.hero-event-card:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 14px 44px rgba(15, 23, 42, 0.25);
  transform: translateY(-3px);
}

.hero-event-date {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 4px;
  background: #0A1929;
  color: #FFFFFF;
}

.hero-event-day {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.hero-event-month {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-event-body {
  display: grid;
  gap: 4px;
}

.hero-event-label {
  color: #0A1929;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-event-title {
  color: #0A1929;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-event-link {
  color: var(--color-foret);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 61, 36, 0.4);
  text-underline-offset: 4px;
}

.hero-event-card:hover .hero-event-link {
  text-decoration-color: var(--color-foret);
}

/* Contract §7: with no public upcoming event the card has no date tile. */
.hero-event-card-fallback {
  grid-template-columns: minmax(0, 1fr);
}

.hero-redesign a:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

.hero-scroll-cue {
  position: absolute;
  bottom: clamp(24px, 4vh, 40px);
  left: 50%;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 8px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  opacity: 0.8;
  transform: translateX(-50%);
  transition: opacity 300ms ease;
  animation: hero-cue-bob 2.2s ease-in-out infinite;
}

.hero-scroll-cue svg {
  width: 24px;
  height: 24px;
}

.hero-scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-scroll-cue:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

html.js .hero-redesign .hero-reveal {
  opacity: 0;
  transform: translateY(12px);
}

html.js .hero-redesign.hero-loaded .hero-reveal {
  animation: hero-fade-up 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html.js .hero-redesign.hero-loaded .hero-title {
  animation-duration: 800ms;
  animation-delay: 200ms;
  transform: translateY(20px);
}

html.js .hero-redesign.hero-loaded .hero-eyebrow {
  animation-delay: 350ms;
}

html.js .hero-redesign.hero-loaded .hero-subhead {
  animation-delay: 450ms;
}

html.js .hero-redesign.hero-loaded .hero-actions {
  animation-delay: 550ms;
}

html.js .hero-redesign.hero-loaded .hero-event-card {
  animation-delay: 700ms;
}

@keyframes hero-bg-scale {
  to {
    transform: scale(1);
  }
}

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-cue-bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 6px);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-event-card {
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Tablet and phone: a composition of its own, not the desktop hero squeezed.
   Desktop anchors the copy to the bottom of a tall frame and floats the event
   card in the corner. Here the copy sits under the header, the card follows
   it in flow, and the frame is exactly as tall as that content: there is no
   min-height for leftover image to fill. Spacing derives from the shared
   --header-height and --page-gutter tokens set in site.css.

   Crops: the poster is a 4:3 still and the video a 16:9 drone shot of a
   different view, and in a portrait frame both crop horizontally only, so
   each gets its own horizontal object-position and no transform zoom. */
@media (max-width: 1080px) {
  .hero-redesign {
    min-height: 0;
  }

  .hero-bg {
    animation: none;
    transform: none;
  }

  .hero-bg--poster {
    object-position: 58% 50%;
  }

  .hero-bg--video {
    object-position: 30% 50%;
  }

  .hero-container {
    padding: calc(var(--header-height) + var(--hero-top-gap)) var(--page-gutter) var(--hero-bottom-gap);
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }

  .hero-primary,
  .hero-cta-secondary {
    min-height: 44px;
    font-size: 14px;
  }

  .hero-event-card {
    position: static;
    grid-template-columns: 42px minmax(0, 1fr) 8px;
    gap: 12px;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    margin: var(--hero-card-gap) 0 0;
    padding: 9px 14px 9px 9px;
  }

  .hero-event-card-fallback {
    grid-template-columns: minmax(0, 1fr) 8px;
    padding-left: 14px;
  }

  .hero-event-card::after {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(-45deg);
  }

  .hero-event-date {
    width: 42px;
    height: 42px;
  }

  .hero-event-day {
    font-size: 19px;
  }

  .hero-event-title {
    font-size: 14px;
    line-height: 1.2;
  }

  .hero-event-link {
    font-size: 12px;
    line-height: 1.2;
  }

  .hero-scroll-cue {
    display: none;
  }
}

/* Tablet tier. */
@media (min-width: 641px) and (max-width: 1080px) {
  .hero-redesign {
    --hero-top-gap: 80px;
    --hero-bottom-gap: 64px;
    --hero-card-gap: 36px;
  }

  .hero-content {
    width: min(100%, 760px);
  }

  .hero-eyebrow {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .hero-title {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(50px, 6.4vw, 60px);
    line-height: 1.04;
  }

  .hero-subhead {
    max-width: 640px;
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 22px;
  }

  .hero-primary {
    padding: 11px 20px;
  }
}

/* Phone tier. */
@media (max-width: 640px) {
  /* The announcement bar sits under the photo, not on it: the image stops
     --hero-bar-height above the hero's bottom edge. --hero-bottom-gap
     reserves the bar plus 80px of landscape between the button and the bar. */
  .hero-redesign {
    --hero-top-gap: 48px;
    --hero-bar-height: 56px;
    --hero-bottom-gap: calc(var(--hero-bar-height) + 80px);
  }

  .hero-bg,
  .hero-overlay {
    height: calc(100% - var(--hero-bar-height));
  }

  .hero-redesign + .benefits-section {
    padding-top: 48px;
  }

  .hero-content {
    width: 100%;
  }

  /* Fewer layers of text over the image on a phone. The logo directly above
     already names the association, so the bold lead line repeats it; the
     eyebrow is the most expendable line. Both stay on tablet and desktop. */
  .hero-eyebrow,
  .hero-subhead-line--lead {
    display: none;
  }

  .hero-subhead-line:not(.hero-subhead-line--lead)::first-letter {
    text-transform: uppercase;
  }

  .hero-title {
    max-width: 390px;
    margin-bottom: 18px;
    font-size: clamp(34px, 10.6vw, 46px);
    letter-spacing: -0.03em;
    line-height: 1.02;
  }

  .hero-title br {
    display: none;
  }

  .hero-subhead {
    max-width: 370px;
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 1.45;
  }

  /* One action on the image: "Découvrir l'Association" stays in the menu and
     the page below, and on a phone it only stacked under the primary button. */
  .hero-cta-secondary {
    display: none;
  }

  .hero-primary {
    padding: 10px 18px;
    white-space: nowrap;
  }

  /* The event card becomes an announcement bar along the hero's bottom edge,
     under the photo: full width, solid brand green, one line. */
  .hero-event-card {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    width: auto;
    max-width: none;
    min-height: var(--hero-bar-height);
    margin: 0;
    padding: 10px var(--page-gutter);
    border: 0;
    border-radius: 0;
    background: var(--color-foret);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    color: #FFFFFF;
  }

  .hero-event-card-fallback {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-event-card:hover {
    border-color: transparent;
    background: var(--color-foret-hover);
    box-shadow: none;
    transform: none;
  }

  .hero-event-card::after {
    display: none;
  }

  .hero-event-date {
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    color: var(--color-foret);
  }

  .hero-event-day {
    font-size: 16px;
  }

  .hero-event-month {
    font-size: 8px;
  }

  .hero-event-body {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .hero-event-label {
    display: none;
  }

  .hero-event-title {
    overflow: hidden;
    color: #FFFFFF;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-event-link {
    flex: none;
    color: #DCE8DC;
    font-size: 13px;
    text-decoration-color: rgba(220, 232, 220, 0.5);
    white-space: nowrap;
  }

  .hero-event-card:hover .hero-event-link {
    text-decoration-color: #FFFFFF;
  }

  .hero-redesign .hero-event-card:focus-visible {
    outline-offset: -4px;
  }
}

@media (min-width: 1081px) {
  .hero-redesign {
    min-height: max(600px, 85vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg--video {
    display: none;
  }

  .hero-bg {
    animation: none;
    transform: scale(1);
  }

  html.js .hero-redesign .hero-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-scroll-cue {
    animation: none;
    transition: none;
  }

  .hero-event-card {
    transition-duration: 0ms;
  }

  .hero-top-scrim {
    transition: none;
  }
}
