/* DOWNHILL RIOT — Ligne de crête. Change the first six variables to recolour. */
@font-face {
  font-family: Barlow;
  src: url("../fonts/Barlow-Regular.woff2") format("woff2"),
    url("../fonts/Barlow-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Riot;
  src: url("../fonts/BarlowCondensed-ExtraBoldItalic.woff2") format("woff2"),
    url("../fonts/BarlowCondensed-ExtraBoldItalic.woff") format("woff");
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}
:root {
  --night: #080f18;
  --panel: #101c29;
  --orange: #ff7a26;
  --alpine: #a5bd88;
  --paper: #f6f1e6;
  --muted: #b6c3ce;
  --line: #3a4b5a;
  --mauve: #715567;
  --space: clamp(1.25rem, 4.3vw, 5.5rem);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font:
    400 1.125rem/1.6 Barlow,
    Arial,
    sans-serif;
}
img,
picture {
  max-width: 100%;
}
img {
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
a:hover {
  color: var(--orange);
}
button {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button,
[role="button"],
.button {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
dialog:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 6px;
}
::selection {
  background: var(--orange);
  color: var(--night);
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -8rem;
  z-index: 20;
  padding: 1rem;
  background: var(--paper);
  color: var(--night);
}
.skip:focus {
  top: 1rem;
}
.wrap {
  width: min(100% - var(--space) * 2, 1680px);
  margin: auto;
}
.site-header {
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
  background: var(--night);
}
.header-inner {
  height: 88px;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font:
    italic 800 clamp(1.3rem, 2.2vw, 2rem)/1 Riot,
    Impact,
    sans-serif;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.025em;
}
.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
}
.main-nav a,
.languages a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}
.languages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}
.languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 44px;
}
.languages a[aria-current] {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 0.45em;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--alpine);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  min-height: calc(100svh - 88px);
  max-height: 1100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 0%, #60445166, transparent 43%),
    url("../img/contours.svg") left top/620px 850px no-repeat;
}
.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 35%;
  clip-path: polygon(29% 0, 100% 0, 100% 100%, 0 100%);
  background: var(--panel);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}
.hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -15%;
  left: 51%;
  height: 135%;
  width: 2px;
  background: var(--orange);
  transform: rotate(17deg);
  transform-origin: center;
}
.hero-inner {
  padding: clamp(4rem, 9vh, 8.5rem) 0 4rem;
  position: relative;
}
.hero h1 {
  font:
    italic 800 clamp(7rem, 13.7vw, 15rem)/0.82 Riot,
    Impact,
    sans-serif;
  letter-spacing: -0.035em;
  margin: 0 0 1.75rem;
  max-width: 67%;
}
.hero h1 span {
  display: block;
}
.tagline {
  font-size: clamp(1.45rem, 2.65vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 52%;
}
.hero-copy {
  max-width: 470px;
  margin: 0 0 1.75rem;
  font-size: 1.12rem;
}
.pending {
  display: inline-block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.hero-copy .pending {
  display: block;
}
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.85rem 1.6rem;
  min-height: 56px;
  border: 1px solid var(--paper);
  background: transparent;
  text-decoration: none;
  text-transform: uppercase;
  font:
    italic 800 1.4rem/1.15 Riot,
    Impact,
    sans-serif;
  letter-spacing: 0.025em;
  transition:
    background-color 0.18s,
    color 0.18s,
    transform 0.18s;
  max-width: 100%;
  text-align: center;
}
.button:hover {
  background: var(--paper);
  color: var(--night);
  transform: translateY(-2px);
}
.button-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--night);
}
.button-primary:hover {
  background: #ffac6a;
  border-color: #ffac6a;
  color: var(--night);
}
.play-icon {
  font-style: normal;
  font-size: 0.85em;
}
.hero-meta {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.hero-meta span + span {
  border-left: 1px solid var(--orange);
  padding-left: 1.25rem;
}
.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  right: var(--space);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-size: 0.7rem;
}
.section {
  padding: clamp(4rem, 7vw, 8rem) 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.section h2,
.page-heading {
  font:
    italic 800 clamp(3rem, 6vw, 6.3rem)/0.95 Riot,
    Impact,
    sans-serif;
  letter-spacing: -0.015em;
  margin: 0;
}
.section-intro {
  max-width: 450px;
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}
.section-index {
  color: var(--orange);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 0.7rem;
}
.video-box {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}
.video-box picture,
.video-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080f1844;
  color: var(--paper);
  border: 0;
}
.video-play span {
  border: 1px solid var(--paper);
  padding: 1rem 1.5rem;
  background: var(--night);
  font:
    italic 800 1.5rem Riot,
    sans-serif;
}
.video-status {
  position: absolute;
  inset: auto 1rem 1rem;
  max-width: 90%;
  margin: 0;
  background: var(--night);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.feature {
  margin: 0;
}
.feature picture {
  display: block;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-bottom: 2px solid var(--orange);
}
.feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature h3 {
  font:
    italic 800 2.1rem/1 Riot,
    sans-serif;
  margin: 1.25rem 0 0.5rem;
}
.feature p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.gallery-item {
  margin: 0;
}
.gallery-item a {
  display: block;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-item a:after {
  content: "↗";
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  background: var(--night);
  color: var(--paper);
  width: 38px;
  height: 38px;
  text-align: center;
  line-height: 38px;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.25s;
}
.gallery-item a:hover img {
  transform: scale(1.025);
}
.gallery-item figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.mountain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.mountain {
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
}
.mountain picture {
  display: block;
  aspect-ratio: 4/5;
}
.mountain img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mountain-content {
  padding: 2rem;
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, #080f18 27%);
  padding-top: 7rem;
}
.mountain h3 {
  font:
    italic 800 clamp(2.5rem, 4vw, 4rem)/1 Riot,
    sans-serif;
  margin: 0 0 0.6rem;
}
.mountain p {
  margin: 0.25rem 0;
  font-size: 1rem;
}
.follow {
  position: relative;
  background: radial-gradient(ellipse at 90% 20%, #71556730, transparent 55%);
}
.follow .page-heading {
  max-width: 800px;
}
.follow p {
  color: var(--muted);
  max-width: 640px;
}
.social-list {
  list-style: none;
  display: flex;
  gap: 0.75rem 1.8rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 1.5rem 0;
}
.social-list:empty {
  margin: 0;
}
.social-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer {
  padding: 2.5rem 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
}
.footer-links {
  display: flex;
  gap: 1rem 1.75rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-bottom p {
  margin: 0;
}
.page-top {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 20% 0%, #71556736, transparent 55%);
}
.page-top .page-heading {
  margin-bottom: 1rem;
}
.page-top p {
  max-width: 700px;
}
.press-contact {
  color: var(--orange);
}
.press-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 5rem;
  padding: 4rem 0;
}
.facts h2,
.press-content h2,
.prose h2 {
  font:
    italic 800 2.35rem/1.15 Riot,
    sans-serif;
  margin: 2.5rem 0 1rem;
}
.facts h2:first-child,
.press-content h2:first-child {
  margin-top: 0;
}
.facts dl {
  margin: 0;
}
.facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1.2rem;
}
.facts dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}
.press-content p {
  max-width: 70ch;
}
.press-content li {
  margin: 0.7rem 0;
}
.press-content ul {
  padding-left: 1.25rem;
}
.press-content .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.press-content .section {
  padding: 3rem 0;
}
.download-row {
  padding: 1.5rem 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.logo-cell {
  border: 1px solid var(--line);
  padding: 1rem;
  text-align: center;
}
.logo-cell.light {
  background: var(--paper);
  color: var(--night);
}
.logo-cell img {
  height: 120px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 1rem;
}
.logo-cell a {
  font-size: 0.85rem;
}
.prose {
  max-width: 850px;
  padding: 2rem 0 5rem;
}
.prose p,
.prose li {
  color: #d2dbe2;
}
.prose ul {
  padding-left: 1.5rem;
}
.prose a {
  overflow-wrap: anywhere;
}
.notice {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--orange);
  background: var(--panel);
  font-size: 1rem;
}
.credits {
  white-space: normal;
}
.error-main {
  min-height: 65vh;
  padding: 5rem 0;
}
.error-number {
  font:
    italic 800 clamp(8rem, 25vw, 20rem)/1 Riot,
    sans-serif;
  color: var(--orange);
  margin: 0;
}
.error-main h1 {
  font:
    italic 800 3rem/1 Riot,
    sans-serif;
}
.lightbox {
  padding: 0;
  border: 1px solid var(--line);
  max-width: min(95vw, 1500px);
  width: 95vw;
  background: var(--night);
  color: var(--paper);
  max-height: 95vh;
}
.lightbox::backdrop {
  background: #02070de8;
}
.lightbox figure {
  margin: 0;
  padding: 3.5rem 1rem 1rem;
}
.lightbox img {
  max-height: 76vh;
  width: auto;
  max-width: 100%;
  margin: auto;
  object-fit: contain;
}
.lightbox figcaption {
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.lightbox button {
  position: absolute;
  right: 0.7rem;
  top: 0.5rem;
  background: var(--night);
  color: var(--paper);
  border: 1px solid var(--line);
  min-height: 44px;
  padding: 0.4rem 0.8rem;
}
.reveal-ready {
  transition: transform 0.5s;
  transform: translateY(15px);
}
.reveal-ready.is-visible {
  transform: none;
}
@media (min-width: 1800px) {
  .hero-inner {
    padding-top: 10vh;
  }
  .hero {
    min-height: 850px;
  }
}
@media (max-width: 1100px) {
  .main-nav {
    gap: 1rem;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy {
    max-width: 43%;
  }
  .actions {
    max-width: 55%;
  }
  .actions .button {
    font-size: 1.2rem;
  }
  .press-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2.5rem;
  }
  .press-content .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mountain-content {
    padding: 1.2rem;
    padding-top: 6rem;
  }
}
@media (max-width: 767px) {
  :root {
    --space: 1.25rem;
  }
  .header-inner {
    height: 68px;
    gap: 0.5rem;
  }
  .brand {
    font-size: 1.5rem;
  }
  .main-nav {
    display: none;
  }
  .languages {
    gap: 0;
    padding-left: 0.5rem;
  }
  .languages a {
    min-width: 36px;
    font-size: 0.75rem;
  }
  .hero {
    min-height: 720px;
    min-height: calc(100svh - 68px);
    max-height: none;
  }
  .hero-media {
    inset: 0 0 auto;
    height: 330px;
    clip-path: none;
    mask-image: linear-gradient(#000 50%, transparent 100%);
  }
  .hero-media img {
    object-position: 50% 35%;
  }
  .hero:before {
    background:
      linear-gradient(transparent 150px, var(--night) 350px),
      url("../img/contours.svg") left bottom/500px 660px no-repeat;
    opacity: 0.65;
  }
  .hero:after {
    left: auto;
    right: 1.2rem;
    top: 220px;
    height: 160px;
    transform: rotate(17deg);
  }
  .hero-inner {
    padding: 215px 0 2rem;
  }
  .hero h1 {
    font-size: clamp(5.2rem, 20vw, 9rem);
    max-width: 100%;
    margin: 0 0 1.25rem;
    line-height: 0.83;
  }
  .tagline {
    font-size: clamp(1.35rem, 5.3vw, 2.2rem);
    max-width: 100%;
    margin-bottom: 0.8rem;
  }
  .hero-copy {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
  }
  .hero-copy .pending {
    font-size: 0.7rem;
  }
  .actions {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .actions .button {
    font-size: 1.35rem;
    min-height: 50px;
    padding: 0.65rem 1rem;
  }
  .hero-meta {
    font-size: 0.65rem;
    margin-top: 1.5rem;
    gap: 1rem;
  }
  .hero-meta span + span {
    padding-left: 1rem;
  }
  .scroll-cue {
    display: none;
  }
  .section {
    padding: 3.5rem 0;
  }
  .section-head {
    display: block;
    margin-bottom: 1.5rem;
  }
  .section-intro {
    margin-top: 1rem;
  }
  .section h2 {
    font-size: 3.5rem;
  }
  .feature-grid {
    gap: 1.5rem 1rem;
  }
  .feature h3 {
    font-size: 1.7rem;
  }
  .feature p {
    font-size: 0.9rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.75rem;
  }
  .gallery-item figcaption {
    font-size: 0.7rem;
  }
  .mountain-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .mountain picture {
    aspect-ratio: 4/3;
  }
  .mountain-content h3 {
    font-size: 3rem;
  }
  .mountain-content {
    padding: 1.25rem;
    padding-top: 5rem;
  }
  .page-heading {
    font-size: 3.8rem;
  }
  .footer-top,
  .footer-bottom {
    display: block;
  }
  .footer-top > .brand {
    display: inline-block;
    margin-bottom: 1rem;
  }
  .footer-links {
    gap: 0.25rem 1.1rem;
  }
  .footer-bottom p + p {
    margin-top: 0.5rem;
  }
  .page-top {
    padding: 3rem 0 2rem;
  }
  .press-layout {
    display: block;
    padding: 2.5rem 0;
  }
  .facts {
    border-bottom: 1px solid var(--line);
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
  }
  .facts dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
  }
  .facts dl div {
    min-width: 0;
  }
  .facts dt {
    margin-top: 1rem;
  }
  .facts dd {
    font-size: 1rem;
  }
  .press-content .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .press-content .button {
    font-size: 1.2rem;
  }
  .logo-grid {
    grid-template-columns: 1fr;
  }
  .logo-cell img {
    height: 100px;
  }
  .video-status {
    font-size: 0.7rem;
    inset: auto 0.6rem 0.6rem;
    padding: 0.3rem 0.5rem;
  }
  .prose {
    font-size: 1.05rem;
  }
  .error-main {
    padding: 3rem 0;
  }
}
@media (max-width: 379px) {
  .hero-inner {
    padding-top: 185px;
  }
  .hero-media {
    height: 300px;
  }
  .hero h1 {
    font-size: 5.2rem;
  }
  .hero-meta {
    font-size: 0.6rem;
  }
  .hero .eyebrow {
    margin-bottom: 0.75rem;
  }
  .tagline {
    font-size: 1.35rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-ready {
    opacity: 1;
    transform: none;
  }
  .button:hover,
  .gallery-item a:hover img {
    transform: none;
  }
}

.logo-cell.light a:hover {
  color: #8a3500;
}
.logo-cell.light a:focus-visible {
  outline-color: #8a3500;
}
.play-icon {
  font-family: Arial, sans-serif;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  display: inline-block;
}

/* Mode sans images : sections et images éteintes dans config.js */
.feature:has(picture[hidden]) {
  border-top: 2px solid var(--orange);
  padding-top: 0.4rem;
}
@media (max-width: 767px) {
  .hero {
    min-height: 0;
  }
  .hero-inner {
    padding-bottom: 3rem;
  }
  .hero:has(.hero-media picture[hidden]) .hero-media {
    display: none;
  }
  .hero:has(.hero-media picture[hidden]) .hero-inner {
    padding-top: 4.5rem;
  }
  .hero:has(.hero-media picture[hidden]):before {
    background: url("../img/contours.svg") left top/500px 660px no-repeat;
  }
  .hero:has(.hero-media picture[hidden]):after {
    top: 40px;
  }
}
.section-index {
  text-transform: uppercase;
}
/* ART V3 */
main {
  overflow-x: clip;
}
.hero-art {
  position: absolute;
  z-index: -3;
  inset: 0;
  overflow: hidden;
  contain: strict;
  background: linear-gradient(180deg, #0e0c1f 0%, #35264f 36%, #9c4b68 60%, #f07a34 78%, #ffc27a 100%);
  --px: 0;
  --py: 0;
}
.hero:has(.hero-media picture[hidden]) .hero-media,
.hero:has(.hero-media picture[hidden]):after,
.hero:has(.hero-media picture[hidden]) .scroll-cue {
  display: none;
}
.hero:has(.hero-media picture:not([hidden])) .hero-art {
  display: none;
}
.hero:has(.hero-media picture[hidden]):before {
  background:
    linear-gradient(100deg, #080f18f5 0%, #080f18cc 32%, #080f1800 60%),
    linear-gradient(0deg, #080f18 0%, #080f1800 20%);
}
/* Tout ce qui bouge ici n'utilise que transform et opacity :
   la carte graphique déplace des calques déjà dessinés, rien n'est redessiné.
   L'animation suit donc la fréquence de l'écran (60, 120, 144 Hz). */
.ha-stars {
  position: absolute;
  inset: 0 0 60%;
  background: url("../img/art/stars.svg") center top/cover no-repeat;
  animation: ha-twinkle 4s ease-in-out infinite alternate;
  will-change: opacity;
}
@keyframes ha-twinkle {
  to { opacity: 0.4; }
}
.ha-sun {
  position: absolute;
  top: 25.5%;
  left: 72%;
  height: 80%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff4d6 0%, #ffd690 14%, #ff8a3c80 45%, #ff8a3c00 100%);
  animation: ha-pulse 8s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes ha-pulse {
  to { transform: scale(1.1); opacity: 0.82; }
}
.ha-p {
  position: absolute;
  inset: 0;
  transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: translate;
}
.ha-p0 { translate: calc(var(--px) * -6px) calc(var(--py) * -3px); }
.ha-p1 { translate: calc(var(--px) * -12px) calc(var(--py) * -5px); }
.ha-p2 { translate: calc(var(--px) * -20px) calc(var(--py) * -8px); }
.ha-p3 { translate: calc(var(--px) * -32px) calc(var(--py) * -12px); }
.ha-p4 { translate: calc(var(--px) * -48px) calc(var(--py) * -16px); }
.ha-s {
  position: absolute;
  left: -60px;
  top: -20px;
  height: calc(100% + 40px);
  aspect-ratio: 4800 / 900;
  background: 0 0/100% 100% no-repeat;
  animation: ha-scroll linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.ha-s0 { background-image: url("../img/art/ridge0.svg"); animation-duration: 260s; }
.ha-s1 { background-image: url("../img/art/ridge1.svg"); animation-duration: 170s; }
.ha-s2 { background-image: url("../img/art/ridge2.svg"); animation-duration: 105s; }
.ha-s3 { background-image: url("../img/art/ridge3.svg"); animation-duration: 60s; }
.ha-s4 { background-image: url("../img/art/ridge4.svg"); animation-duration: 34s; }
@keyframes ha-scroll {
  to { transform: translate3d(-33.3333%, 0, 0); }
}
.ha-fog {
  position: absolute;
  left: 0;
  top: 58%;
  width: 90%;
  height: 16%;
  background: radial-gradient(closest-side, #ffc9a04d, #ffc9a000);
  animation: ha-fog 46s linear infinite;
  will-change: transform;
}
.ha-fog3 {
  top: 76%;
  animation-duration: 30s;
  animation-delay: -12s;
}
@keyframes ha-fog {
  from { transform: translate3d(-110%, 0, 0); }
  to { transform: translate3d(125%, 0, 0); }
}
.ha-slope {
  position: absolute;
  inset: 0;
  background: url("../img/art/slope.svg") 0 0/100% 100% no-repeat;
}
.ha-streaks i {
  position: absolute;
  width: 11%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffe2c200, #ffe2c2);
  rotate: 32deg;
  opacity: 0;
  animation: ha-streak 1.5s linear infinite;
  will-change: transform, opacity;
}
.ha-streaks i:nth-child(1) { left: 56%; top: 13%; }
.ha-streaks i:nth-child(2) { left: 76%; top: 7%; width: 15%; animation-delay: -0.3s; animation-duration: 2.1s; }
.ha-streaks i:nth-child(3) { left: 88%; top: 31%; width: 8%; animation-delay: -0.9s; animation-duration: 1.2s; }
.ha-streaks i:nth-child(4) { left: 52%; top: 34%; width: 6%; animation-delay: -0.5s; animation-duration: 1.8s; }
.ha-streaks i:nth-child(5) { left: 67%; top: 44%; width: 13%; height: 1px; animation-delay: -1.1s; animation-duration: 2.6s; }
.ha-streaks i:nth-child(6) { left: 92%; top: 55%; width: 6%; animation-delay: -0.2s; animation-duration: 1.1s; }
.ha-streaks i:nth-child(7) { left: 62%; top: 24%; width: 9%; height: 1px; animation-delay: -0.7s; animation-duration: 1.9s; }
.ha-streaks i:nth-child(8) { left: 82%; top: 48%; width: 10%; animation-delay: -1.4s; animation-duration: 1.4s; }
@keyframes ha-streak {
  from { transform: translate3d(-180%, 0, 0); opacity: 0; }
  25% { opacity: 0.7; }
  to { transform: translate3d(320%, 0, 0); opacity: 0; }
}
.ha-dust i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd9b0;
  opacity: 0;
  animation: ha-dust 5s ease-out infinite;
  will-change: transform, opacity;
}
.ha-dust i:nth-child(1) { left: 22%; top: 80%; }
.ha-dust i:nth-child(2) { left: 31%; top: 92%; }
.ha-dust i:nth-child(3) { left: 38%; top: 76%; }
.ha-dust i:nth-child(4) { left: 44%; top: 88%; }
.ha-dust i:nth-child(5) { left: 49%; top: 96%; }
.ha-dust i:nth-child(6) { left: 55%; top: 82%; }
.ha-dust i:nth-child(7) { left: 61%; top: 90%; }
.ha-dust i:nth-child(8) { left: 66%; top: 74%; }
.ha-dust i:nth-child(9) { left: 71%; top: 94%; }
.ha-dust i:nth-child(10) { left: 76%; top: 84%; }
.ha-dust i:nth-child(11) { left: 81%; top: 78%; }
.ha-dust i:nth-child(12) { left: 86%; top: 91%; }
.ha-dust i:nth-child(13) { left: 91%; top: 86%; }
.ha-dust i:nth-child(14) { left: 27%; top: 86%; }
.ha-dust i:nth-child(15) { left: 58%; top: 97%; }
.ha-dust i:nth-child(16) { left: 95%; top: 79%; }
.ha-dust i:nth-child(3n) { animation-duration: 7s; animation-delay: -2s; width: 3px; height: 3px; }
.ha-dust i:nth-child(3n + 1) { animation-duration: 4s; animation-delay: -1s; }
.ha-dust i:nth-child(4n) { animation-delay: -3.3s; width: 6px; height: 6px; }
.ha-dust i:nth-child(5n) { animation-delay: -4.1s; }
@keyframes ha-dust {
  from { transform: translate3d(0, 30px, 0); opacity: 0; }
  20% { opacity: 0.75; }
  to { transform: translate3d(-140px, -220px, 0); opacity: 0; }
}
/* entrée du titre : transform et opacity seulement */
.hero h1 {
  text-shadow: 0 6px 40px #080f1899;
}
.hero h1 span {
  animation: h-rise 0.8s cubic-bezier(0.16, 0.9, 0.2, 1) both;
  will-change: transform, opacity;
}
.hero h1 span + span {
  animation-delay: 0.12s;
}
@keyframes h-rise {
  from { transform: translate3d(-0.35em, 0.5em, 0) skewX(-14deg); opacity: 0; }
}
.tagline,
.hero-copy,
.hero .actions,
.hero-meta {
  animation: h-fade 0.7s 0.45s ease-out both;
}
.hero-copy { animation-delay: 0.55s; }
.hero .actions { animation-delay: 0.65s; }
.hero-meta { animation-delay: 0.75s; }
@keyframes h-fade {
  from { transform: translate3d(0, 18px, 0); opacity: 0; }
}
.hero-inner:before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -20%;
  left: -30%;
  width: 26%;
  height: 160%;
  background: var(--orange);
  transform: skewX(-17deg) translate3d(-120%, 0, 0);
  animation: h-slash 1s 0.05s cubic-bezier(0.7, 0, 0.2, 1) both;
  will-change: transform;
  pointer-events: none;
}
@keyframes h-slash {
  from { transform: skewX(-17deg) translate3d(-120%, 0, 0); }
  to { transform: skewX(-17deg) translate3d(900%, 0, 0); }
}
/* bandeau défilant */
.marquee {
  overflow: hidden;
  background: var(--orange);
  color: var(--night);
  transform: rotate(-1.4deg) scale(1.02);
  margin: -1.4rem 0 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 18px 50px #00000080;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee span {
  font: italic 800 clamp(1.5rem, 2.6vw, 2.6rem)/1 Riot, Impact, sans-serif;
  text-transform: uppercase;
  padding: 0.85rem 0;
  white-space: nowrap;
}
.marquee span:after {
  content: "/";
  margin: 0 1.6rem;
  opacity: 0.45;
}
@keyframes marquee {
  to { transform: translate3d(-50%, 0, 0); }
}
/* le jeu : quatre grandes lignes */
#game {
  padding-top: clamp(5rem, 9vw, 8rem);
}
.pillars {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.pillar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(1rem, 2.2vw, 2rem) clamp(0.5rem, 2vw, 2rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.pillar:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}
.pillar h3 {
  margin: 0;
  font: italic 800 clamp(4rem, 12vw, 11.5rem)/0.86 Riot, Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 2px #f4efe6;
  transition:
    color 0.6s ease,
    -webkit-text-stroke-color 0.3s ease,
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pillar p {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  line-height: 1.4;
  max-width: 26ch;
  justify-self: end;
  transition: color 0.3s ease;
}
.pillar.is-visible h3,
.pillar:not(.reveal-ready) h3 {
  color: #f4efe6;
}
.pillar:nth-child(2) h3 { transition-delay: 0.08s; }
.pillar:nth-child(3) h3 { transition-delay: 0.16s; }
.pillar:nth-child(4) h3 { transition-delay: 0.24s; }
@media (hover: hover) {
  .pillar:hover:before {
    transform: scaleX(1);
  }
  .pillar:hover h3 {
    color: var(--night);
    -webkit-text-stroke-color: var(--night);
    transform: translateX(1.2rem);
    transition-delay: 0s;
  }
  .pillar:hover p {
    color: var(--night);
  }
}
@media (max-width: 767px) {
  .hero:has(.hero-media picture[hidden]) .hero-art {
    height: 64%;
    inset: 0 0 auto;
  }
  .hero:has(.hero-media picture[hidden]):before {
    background: linear-gradient(180deg, #080f1826 0%, #080f18a6 36%, #080f18 60%);
  }
  .hero:has(.hero-media picture[hidden]) .hero-inner {
    padding-top: 10.5rem;
  }
  .hero {
    min-height: 0;
  }
  .hero-inner {
    padding-bottom: 3rem;
  }
  .pillar {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.4rem 0;
  }
  .pillar h3 {
    -webkit-text-stroke-width: 1.5px;
    font-size: clamp(4rem, 21vw, 7rem);
  }
  .pillar p {
    justify-self: start;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art *,
  .marquee-track,
  .hero h1 span,
  .tagline,
  .hero-copy,
  .hero .actions,
  .hero-meta,
  .hero-inner:before {
    animation: none !important;
  }
  .ha-streaks,
  .ha-dust,
  .hero-inner:before {
    display: none;
  }
}
.section-index {
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .ha-slope {
    background-size: 240% 100%;
  }
}
