/*
 * ⭐ **Le plateau** : la nuit de la salle, la lumière tungstène des projecteurs, et un gel bleu en
 * contre. Ces jetons et les règles partagées par toutes les scènes ; chaque composant garde les
 * siennes.
 */

/* Servies par le site (sous-ensembles latins, variables) : aucune requête vers Google Fonts. */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('/_astro/unbounded-latin-wght.D5afBTBx.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/_astro/hanken-grotesk-latin-wght.CaVRRdDk.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* La position du projecteur du hero : animable, et posée par `scripts/spot.ts`. */
@property --x {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 62%;
}

@property --y {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 58%;
}

:root {
  --night: #08080c;
  --stage: #111018;
  --line: #2b2935;
  --text: #eeeaf2;
  --muted: #a6a2b4;
  --faint: #5e5b6b;
  --tungsten: #ffdba8;
  --tungsten-2: #ffb35c;
  --gel: #4d63ff;
  --gel-2: #8b9bff;
  --veil: rgba(8, 8, 12, 0.93);
  --veil-soft: rgba(8, 8, 12, 0.55);
  --glow: rgba(255, 179, 92, 0.45);
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(3rem + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 1.05rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

/* L'encoche de l'iPhone garde la couleur de la salle quand la page défile dessous. */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: env(safe-area-inset-top, 0px);
  background: var(--night);
}

::selection {
  background: var(--tungsten);
  color: var(--night);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--tungsten);
  outline-offset: 3px;
}

.page {
  overflow-x: clip;
}

.wrap {
  max-width: 1320px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* La conduite : le petit repère au-dessus de chaque titre, comme sur une feuille de régie. */
.cue {
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font: 600 0.74rem/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gel-2);
}

.cue::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--tungsten);
  box-shadow: 0 0 12px 2px var(--tungsten-2);
}

.cue.center {
  justify-content: center;
}

/* Une scène : une section que la lumière éclaire quand elle entre dans l'écran. */
.scene {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 10vw, 8.5rem);
  border-top: 1px solid var(--line);
}

.scene::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 55%;
  width: min(1100px, 120vw);
  aspect-ratio: 3/1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    closest-side,
    rgba(255, 219, 168, 0.13),
    rgba(255, 219, 168, 0.04) 55%,
    transparent 75%
  );
}

.scene.cool::before {
  background: radial-gradient(
    closest-side,
    rgba(77, 99, 255, 0.16),
    rgba(77, 99, 255, 0.05) 55%,
    transparent 75%
  );
}

.h2 {
  margin: 0;
  font: 700 clamp(2.4rem, 6.6vw, 6rem) / 0.98 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h2 .dim {
  color: var(--muted);
  font-weight: 300;
}

.intro {
  margin: 1.4rem 0 0;
  max-width: 46ch;
  color: var(--muted);
}

.intro strong {
  color: var(--text);
  font-weight: 600;
}

/*
 * Mouvement : seulement si le visiteur ne l'a pas réduit. Sans `animation-timeline` (Firefox), les
 * scènes restent simplement éclairées.
 */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .scene::before {
      animation: lightup linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 45%;
    }
  }
}

@keyframes lightup {
  from {
    opacity: 0.05;
  }
  to {
    opacity: 1;
  }
}

/* `<Picture>` d'Astro enveloppe l'image : la balise `<picture>` ne doit pas changer la mise en page. */
picture {
  display: contents;
}
.foot[data-astro-cid-jo6i4kqk] {
  position: relative;
  z-index: 6;
  background: var(--night);
  border-top: 1px solid var(--line);
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
}

p[data-astro-cid-jo6i4kqk] {
  margin: 0;
  color: #8a8698;
  font: 500 .8rem/1.5 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
}
