/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  max-width: 100%;
  /* scroll-snap-type: y proximity; */
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden !important;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
.banner-message {
  font-family: "Orbitron", sans-serif;
  /* font-family: "Unbounded", sans-serif; */
  font-size:clamp(16px, 1.8vw, 24px);
  color:white;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-banner {
  inset-inline: 0;
  width: auto;
  max-width: 100%;
  background-color: rgba(5, 9, 20, 0.52);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(241, 213, 43, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

body.intro-pending .intro-reveal {
  opacity: 0;
  transform: translate3d(0, 2.5rem, 0);
  visibility: hidden;
  will-change: transform, opacity;
}

body.intro-pending .contact-banner.intro-reveal,
body.intro-pending .scroll-cue.intro-reveal,
body.intro-pending .progress-indicator.intro-reveal {
  transform: translate3d(0, 1.25rem, 0);
}

.story-panel {
  position: relative;
  min-height: clamp(480px, 64svh, 700px);
  display: grid;
  align-items: center;
  gap: 2rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem clamp(0.75rem, 3vw, 3rem) 2.5rem;
  margin-bottom: -3rem;
  isolation: isolate;
  /* scroll-snap-align: center; */
  opacity: 0;
  transform: scale(0.96);
  visibility: hidden;
  filter: saturate(0.85);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease, visibility 0s linear 0.8s;
}

body.intro-pending .story-panel.intro-reveal {
  opacity: 0;
  transform: translate3d(0, 3rem, 0) scale(0.96);
  visibility: hidden;
}

.story-panel.is-seen {
  opacity: 0.58;
  transform: scale(0.985);
  visibility: visible;
  transition-delay: 0s;
}

.story-panel.is-seen.is-visible {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1);
}

.story-panel.is-seen.is-past {
  opacity: 0.72;
  transform: scale(0.99);
}

.story-panel-left,
.story-panel-right,
.story-panel-center,
.story-panel-split,
.story-panel-services {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.story-art {
  perspective: 1000px;
  position: relative;
  width: min(100%, 1120px);
  z-index: 1;
}

.story-art img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 0 #000) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
}

.story-image {
  --holo-angle: 135deg;
  --holo-x: 50%;
  --holo-y: 45%;
  --story-mask: none;
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.story-image::before,
.story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  -webkit-mask: var(--story-mask) center / 100% 100% no-repeat;
  mask: var(--story-mask) center / 100% 100% no-repeat;
}

.story-image::before {
  background:
    radial-gradient(
      circle at var(--holo-x) var(--holo-y),
      rgba(255, 255, 255, 0.68) 0,
      rgba(226, 232, 255, 0.22) 14%,
      transparent 34%
    ),
    linear-gradient(
      var(--holo-angle),
      transparent 20%,
      rgba(222, 230, 255, 0.1) 38%,
      rgba(255, 226, 248, 0.16) 50%,
      rgba(232, 235, 255, 0.1) 62%,
      transparent 80%
    );
  background-blend-mode: screen;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.55s ease;
  will-change: opacity;
}

.story-image::after {
  background:
    repeating-linear-gradient(
      calc(var(--holo-angle) + 34deg),
      transparent 0 7px,
      rgba(255, 255, 255, 0.11) 8px,
      transparent 9px 15px
    );
  background-position: var(--holo-x) var(--holo-y);
  background-size: 180% 180%;
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.55s ease;
  will-change: opacity;
}

.story-image picture {
  position: relative;
  z-index: 0;
  display: block;
}

.story-image > img {
  position: relative;
  z-index: 0;
}

.story-sheen {
  position: absolute;
  inset: -22%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1) 32%, transparent 68%);
  filter: blur(13px);
  mix-blend-mode: screen;
  opacity: 0.18;
  transition: opacity 0.9s ease;
}

.story-panel.is-seen.is-visible .story-sheen {
  opacity: 0.62;
}

.story-panel.is-seen.is-visible .story-image::before {
  opacity: 0.3;
}

.story-panel.is-seen.is-visible .story-image::after {
  opacity: 0.07;
}

body.is-scrolling .story-panel.is-seen.is-visible .story-image::before {
  opacity: 0.12;
}

body.is-scrolling .story-panel.is-seen.is-visible .story-image::after {
  opacity: 0.02;
}

.frame-skew-left .story-image {
  transform: rotate(-4deg);
}

.frame-skew-right .story-image {
  transform: rotate(2deg);
}

.frame-burst .story-image {
  transform: rotate(-1deg) scale(1.02);
}

.frame-services .story-image {
  transform: rotate(-1.5deg);
}

.story-copy,
.story-art img,
.story-image {
  transform-style: preserve-3d;
}

.story-copy.type {
  position: absolute;
  z-index: 2;
  font-family: "Orbitron", sans-serif;
  /* font-family: "Unbounded", sans-serif; */
  max-width: min(420px, 72vw);
  background: linear-gradient(0deg, rgba(255, 174, 0, 1) 0%, rgba(255, 233, 38, 1) 100%);
  border: 4px solid black;
  color: black;
  padding: 1rem 1.15rem;
  text-transform: uppercase;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.9);
  transform-origin: center;
}

.story-copy p {
  margin: 0;
  font-size: clamp(0.95rem, 1vw + 0.7rem, 1.4rem);
  line-height: 1.1;
  font-weight: 600;
}

.story-copy span {
  font-weight: 900;
  font-size: 1.1em;
}

.story-panel-left .story-copy {
  top: 5.25rem;
  left: 1rem;
}

.story-panel-right .story-copy {
  bottom: 5rem;
  left: 1rem;
}

.story-copy-inline {
  top: 7.5rem;
  right: 3rem;
  max-width: min(440px, 56vw);
}

.story-copy-burst {
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: min(560px, 86vw);
}

.story-copy-services {
  top: 2rem;
  left: 1rem;
}

.frame-tall {
  width: min(100%, 820px);
}

.frame-wide {
  width: min(100%, 1160px);
}

.frame-no-shadow img {
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.3));
}

.comic-story {
  position: relative;
  padding-bottom: clamp(5rem, 10vw, 10rem);
}

.progress-indicator {
  position: fixed;
  right: 1rem;
  top: 50%;
  z-index: 120;
  transform: translateY(-50%);
}

.progress-track {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.15rem 0;
  background:
    linear-gradient(
      to bottom,
      transparent 0.3rem,
      rgba(241, 213, 43, 0.3) 0.3rem,
      rgba(241, 213, 43, 0.3) calc(100% - 0.3rem),
      transparent calc(100% - 0.3rem)
    )
    center / 2px 100% no-repeat;
}

.progress-step {
  position: relative;
  z-index: 1;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid #f1d52b;
  border-radius: 999px;
  background: #050505;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s ease, background-color 0.35s ease, opacity 0.35s ease, border-color 0.35s ease;
  opacity: 0.7;
  background-clip: padding-box;
}

.progress-step.is-active,
.progress-step.is-complete {
  opacity: 1;
}

.progress-step.is-active {
  background: #f1d52b;
  border-color: #fff3ab;
  transform: scale(1.18);
}

.progress-step.is-complete {
  background: rgba(241, 213, 43, 0.65);
  border-color: #f1d52b;
}

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 115;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #f1d52b;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 0.45s ease, transform 0.45s ease;
  animation: scroll-cue-pulse 1.8s ease-in-out infinite;
}

.scroll-cue-label {
  display: inline-flex;
  align-items: center;
}

.scroll-cue-arrow {
  width: 0.9rem;
  height: 0.9rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.scroll-cue.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate(-50%, 0.4rem);
  pointer-events: none;
  animation: none;
}

@keyframes scroll-cue-pulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(0.35rem);
  }
}

.type{
  font-family: "Orbitron", sans-serif;
  /* font-family: "Unbounded", sans-serif; */
}

@media (min-width: 1024px){
  /* Keep every case on the same reading axis; the bubbles create the rhythm. */
  .story-panel-left {
    top: clamp(1rem, 4vh, 3rem);
  }

  .story-panel-left,
  .story-panel-right,
  .story-panel-center,
  .story-panel-split,
  .story-panel-services {
    justify-items: center;
  }

  .story-panel-left .story-art,
  .story-panel-right .story-art {
    margin-inline: auto;
  }

  .story-panel-split .story-art {
    margin-top: 1rem;
  }

  .story-panel-services {
    padding-bottom: 3rem;
    margin-bottom: 4rem;
  }
}

#preloader {
  overflow: hidden;
  background-color: #02050d;
  background-image:
    linear-gradient(rgba(65, 125, 180, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 125, 180, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  transition: opacity 0.8s ease;
}

.preloader-content {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1.25rem;
  color: #f1d52b;
  text-transform: uppercase;
}

.preloader-status,
.preloader-copy {
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  letter-spacing: 0.2em;
  text-shadow: 2px 2px 0 #000;
}

.preloader-progress {
  width: min(19rem, calc(100vw - 3rem));
  color: #f1d52b;
}

.preloader-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  font-size: clamp(0.52rem, 0.8vw, 0.65rem);
  letter-spacing: 0.14em;
  text-shadow: 2px 2px 0 #000;
}

.preloader-progress-value {
  min-width: 3.5em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.preloader-progress-track {
  position: relative;
  height: 0.45rem;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(40, 169, 255, 0.72);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(40, 169, 255, 0.08) 0,
      rgba(40, 169, 255, 0.08) 0.75rem,
      transparent 0.75rem,
      transparent 0.95rem
    ),
    rgba(0, 0, 0, 0.52);
  box-shadow: 0 0 16px rgba(40, 169, 255, 0.22);
}

.preloader-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #168ee7 0%, #f1d52b 88%);
  box-shadow: 0 0 12px rgba(241, 213, 43, 0.72);
  transition: width 0.16s linear;
}

.preloader-progress-fill::after {
  content: "";
  display: block;
  width: 1.5rem;
  height: 100%;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(2px);
}

.preloader-progress.is-complete .preloader-progress-track {
  border-color: rgba(241, 213, 43, 0.9);
  box-shadow: 0 0 20px rgba(241, 213, 43, 0.32);
}

.preloader-status {
  animation: preloader-flicker 2.4s ease-in-out infinite;
}

.preloader-logo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(11rem, 19vw, 16rem);
  height: clamp(11rem, 19vw, 16rem);
  border: 1px solid rgba(241, 213, 43, 0.5);
  background: radial-gradient(circle, rgba(241, 213, 43, 0.16), transparent 64%);
  box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.35), 0 0 48px rgba(20, 125, 255, 0.28);
  transform: rotate(-2deg);
}

.preloader-logo-frame::before,
.preloader-logo-frame::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 1px;
  background: rgba(40, 169, 255, 0.7);
  box-shadow: 0 0 14px rgba(40, 169, 255, 0.7);
}

.preloader-logo-frame::before {
  top: 16%;
  left: -18%;
}

.preloader-logo-frame::after {
  right: -18%;
  bottom: 16%;
}

.preloader-logo {
  width: clamp(7rem, 12vw, 10rem);
  animation: preloader-logo-pulse 2s ease-in-out infinite;
}

.preloader-corner {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-color: #f1d52b;
  border-style: solid;
}

.preloader-corner-top {
  top: -0.4rem;
  right: -0.4rem;
  border-width: 2px 2px 0 0;
}

.preloader-corner-bottom {
  bottom: -0.4rem;
  left: -0.4rem;
  border-width: 0 0 2px 2px;
}

@keyframes preloader-logo-pulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes preloader-flicker {
  0%, 100% {
    opacity: 0.58;
  }
  45% {
    opacity: 1;
  }
  48% {
    opacity: 0.34;
  }
  52% {
    opacity: 0.9;
  }
}

.preloader-logo {
  animation: preloader-logo-pulse 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

#preloader.slide-down {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .preloader-progress-fill {
    transition: none;
  }
}

/* On cache le body par défaut */
body {
  font-family: "Orbitron", sans-serif;
  /* font-family: "Unbounded", sans-serif; */
  width: auto;
  max-width: 100%;
  background-color: #050914;
  background-image:
    radial-gradient(ellipse 46% 27% at 50% 14%, rgba(21, 128, 255, 0.2), transparent 72%),
    radial-gradient(ellipse 38% 24% at 74% 62%, rgba(7, 77, 145, 0.17), transparent 75%),
    linear-gradient(rgba(75, 139, 196, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 139, 196, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, rgba(0, 0, 0, 0.22), transparent 42%, rgba(12, 73, 128, 0.1));
  background-size: auto, auto, 72px 72px, 72px 72px, auto;
  background-attachment: fixed;
  visibility: hidden;
  opacity: 0;
}

/* Une classe pour forcer l'affichage si le JS plante (sécurité) */
body.js-ready {
  visibility: visible;
  opacity: 1;
}

/* Fond actif : une grille de console et des halos qui donnent de la profondeur
   sans concurrencer les planches de la narration. */
.ambient-background {
  --pointer-x: 50%;
  --pointer-y: 42%;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle 22rem at var(--pointer-x) var(--pointer-y), rgba(68, 173, 255, 0.13), transparent 68%),
    radial-gradient(ellipse 52% 30% at 50% 105%, rgba(17, 70, 129, 0.18), transparent 74%);
  transition: background 0.6s ease-out;
}

.ambient-grid,
.ambient-orb,
.ambient-scanline {
  position: absolute;
  display: block;
}

.ambient-grid {
  inset: -25%;
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(96, 180, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 180, 255, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 12%, transparent 73%);
  animation: ambient-grid-drift 20s linear infinite;
}

.ambient-orb {
  width: clamp(20rem, 40vw, 42rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: 0.32;
}

.ambient-orb-one {
  top: -16rem;
  left: -13rem;
  background: radial-gradient(circle, rgba(19, 137, 255, 0.45), transparent 67%);
  animation: ambient-orbit-one 17s ease-in-out infinite alternate;
}

.ambient-orb-two {
  right: -16rem;
  bottom: 2vh;
  background: radial-gradient(circle, rgba(29, 91, 201, 0.38), transparent 66%);
  animation: ambient-orbit-two 23s ease-in-out infinite alternate;
}

.ambient-scanline {
  top: -20%;
  left: 0;
  width: 100%;
  height: 22%;
  opacity: 0.22;
  background: linear-gradient(to bottom, transparent, rgba(155, 220, 255, 0.07) 48%, rgba(241, 213, 43, 0.15) 50%, transparent 52%);
  animation: ambient-scan 11s linear infinite;
}

.comic-story,
footer {
  position: relative;
  z-index: 1;
}

.footer-logo-orbit {
  position: relative;
  transform-style: preserve-3d;
  transform-origin: center;
  will-change: transform;
}

.footer-logo-orbit img {
  filter: drop-shadow(0 0.75rem 1rem rgba(0, 0, 0, 0.3));
}

/* Curseur de navigation : le point reste précis, l'orbite le rejoint avec une
   petite inertie pour un ressenti plus physique. */
.cursor-orbit,
.cursor-point {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 350;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity, width, height;
}

.cursor-orbit {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(241, 213, 43, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(16, 113, 209, 0.36), 0 0 1.3rem rgba(30, 141, 255, 0.24);
  mix-blend-mode: screen;
  transition: width 0.28s ease, height 0.28s ease, border-color 0.28s ease, background-color 0.28s ease, opacity 0.2s ease;
}

.cursor-orbit::before,
.cursor-orbit::after {
  content: "";
  position: absolute;
  background: #f1d52b;
  box-shadow: 0 0 0.55rem rgba(241, 213, 43, 0.9);
}

.cursor-orbit::before {
  width: 0.3rem;
  height: 1px;
  right: -0.15rem;
}

.cursor-orbit::after {
  width: 1px;
  height: 0.3rem;
  bottom: -0.15rem;
}

.cursor-orbit-core {
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 999px;
  background: rgba(241, 213, 43, 0.8);
}

.cursor-point {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #fff7b8;
  box-shadow: 0 0 0.7rem rgba(241, 213, 43, 1);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

body.has-custom-cursor.cursor-is-visible .cursor-orbit,
body.has-custom-cursor.cursor-is-visible .cursor-point {
  opacity: 1;
}

body.has-custom-cursor.cursor-is-link .cursor-orbit {
  width: 3.65rem;
  height: 3.65rem;
  border-color: #fff3ab;
  background: rgba(241, 213, 43, 0.1);
}

body.has-custom-cursor.cursor-is-link .cursor-orbit-core {
  transform: scale(1.5);
}

body.has-custom-cursor.cursor-is-pressed .cursor-orbit {
  width: 1.8rem;
  height: 1.8rem;
  background: rgba(241, 213, 43, 0.24);
}

body.has-custom-cursor.cursor-is-pressed .cursor-point {
  width: 0.22rem;
  height: 0.22rem;
}

@keyframes ambient-grid-drift {
  from { transform: translate3d(0, 0, 0) rotate(-1.5deg); }
  to { transform: translate3d(-72px, -72px, 0) rotate(-1.5deg); }
}

@keyframes ambient-orbit-one {
  from { transform: translate3d(0, 0, 0) scale(0.9); }
  to { transform: translate3d(24vw, 12vh, 0) scale(1.16); }
}

@keyframes ambient-orbit-two {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-21vw, -17vh, 0) scale(1.2); }
}

@keyframes ambient-scan {
  from { transform: translateY(0); }
  to { transform: translateY(560%); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-grid,
  .ambient-orb,
  .ambient-scanline {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .banner-message {
    font-size: 18px;
  }

  .progress-indicator {
    display: none;
    position: absolute;
    top: auto;
    right: 50%;
    bottom: 1.25rem;
    transform: translateX(50%);
    writing-mode: initial;
    flex-direction: column;
  }

  .progress-track {
    flex-direction: row;
  }

  .scroll-cue {
    bottom: 4.25rem;
  }

  .story-panel {
    width: min(calc(100% - 1.25rem), 760px);
    min-height: auto;
    padding: 3rem 0 4rem;
    margin-bottom: 0;
  }

  .comic-story {
    padding-bottom: 4rem;
  }

  .story-panel-split {
    display: flex;
    flex-direction: column;
  }

  .story-panel-split .story-art {
    order: 1;
  }

  .story-panel-split .story-copy-inline {
    order: 2;
    margin-top: 1.25rem;
    margin-bottom: 0;
  }

  .story-panel.is-seen.is-visible .story-art {
    animation: story-image-idle 5.8s ease-in-out infinite;
    animation-delay: 0.8s;
  }

  .story-panel.is-seen.is-visible .story-copy.type {
    animation: story-bubble-idle 5.2s ease-in-out infinite;
    animation-delay: 0.8s;
  }

  body.is-scrolling .story-panel.is-seen.is-visible .story-art {
    animation-play-state: paused;
  }

  body.is-scrolling .story-panel.is-seen.is-visible .story-copy.type {
    animation-play-state: paused;
  }

  .story-copy.type,
  .story-copy-inline,
  .story-copy-burst,
  .story-copy-services,
  .story-panel-left .story-copy,
  .story-panel-right .story-copy {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin-bottom: -1.35rem;
    max-width: 100%;
    transform: none;
    z-index: 3;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.9);
  }

  .story-copy-burst {
    text-align: left;
  }

  .frame-skew-left .story-image,
  .frame-skew-right .story-image,
  .frame-burst .story-image,
  .frame-services .story-image {
    transform: none;
  }
}

@keyframes story-image-idle {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(0, -0.8rem, 0) rotate(0.7deg) scale(1.008);
  }
}

@keyframes story-bubble-idle {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -0.2rem, 0) rotate(0.15deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.intro-pending .intro-reveal,
  body.intro-pending .story-panel.intro-reveal {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .story-panel.is-seen.is-visible .story-art {
    animation: none;
  }

  .story-panel.is-seen.is-visible .story-copy.type {
    animation: none;
  }

  .story-panel.is-seen.is-visible .story-sheen {
    opacity: 0.25;
  }

  .story-panel.is-seen.is-visible .story-image::before {
    opacity: 0.12;
  }

  .story-panel.is-seen.is-visible .story-image::after {
    opacity: 0.025;
  }
}

/* ==========================================================================
   Mentions légales
   ========================================================================== */

body.legal-page {
  min-height: 100vh;
  visibility: visible;
  opacity: 1;
  color: #eef7ff;
}

.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  color: #eef7ff;
  background-color: #050914;
  background-image:
    radial-gradient(ellipse 46% 27% at 50% 14%, rgba(21, 128, 255, 0.2), transparent 72%),
    radial-gradient(ellipse 38% 24% at 74% 62%, rgba(7, 77, 145, 0.17), transparent 75%),
    linear-gradient(rgba(75, 139, 196, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 139, 196, 0.09) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  contain: layout paint style;
  overscroll-behavior: contain;
}

.legal-overlay:target {
  display: block;
}

body:has(.legal-overlay:target) {
  overflow: hidden;
}

body.legal-view-open > .ambient-background,
body.legal-view-open > .contact-banner,
body.legal-view-open > .scroll-cue,
body.legal-view-open > .comic-story,
body.legal-view-open > #site-footer {
  visibility: hidden;
}

body.legal-view-open .ambient-grid,
body.legal-view-open .ambient-orb,
body.legal-view-open .ambient-scanline,
body.legal-view-open .story-art,
body.legal-view-open .story-copy {
  animation-play-state: paused;
}

.legal-page .ambient-background {
  z-index: 0;
}

.legal-header,
.legal-main,
.legal-footer {
  position: relative;
  z-index: 1;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(120, 186, 242, 0.26);
}

.legal-brand,
.legal-back {
  display: inline-flex;
  align-items: center;
  color: #f8fbff;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-brand {
  gap: 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.legal-brand img {
  width: 3.2rem;
  height: 3.2rem;
  filter: drop-shadow(0 0.5rem 0.8rem rgba(0, 0, 0, 0.36));
}

.legal-back {
  gap: 0.65rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(241, 213, 43, 0.55);
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.legal-back span {
  color: #f1d52b;
  font-size: 1.15rem;
  line-height: 0;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: #050914;
  border-color: #f1d52b;
  background: #f1d52b;
}

.legal-back:hover span,
.legal-back:focus-visible span {
  color: #050914;
}

.legal-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 9rem);
}

.legal-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: 2rem 5rem;
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.legal-kicker {
  grid-column: 1 / -1;
  margin: 0 0 -0.5rem;
  color: #f1d52b;
  font-size: clamp(0.62rem, 1vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.7;
  text-transform: uppercase;
}

.legal-heading h1 {
  margin: 0;
  color: #f8fbff;
  font-family: "Bangers", sans-serif;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.7;
  text-transform: uppercase;
  text-shadow: 0.06em 0.06em 0 #08101f, 0.075em 0.075em 0 #f1d52b;
}

.legal-heading h1 span {
  color: #f1d52b;
  text-shadow: 0.06em 0.06em 0 #08101f, 0.075em 0.075em 0 #2a9fff;
}

.legal-intro {
  margin: 0;
  padding: 1.4rem 0 0.2rem 1.5rem;
  border-left: 3px solid #f1d52b;
  color: #bfd1e2;
  font-size: clamp(0.82rem, 1.2vw, 0.96rem);
  line-height: 1.8;
}

.legal-content {
  border-top: 1px solid rgba(120, 186, 242, 0.32);
}

.legal-section {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(2.2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid rgba(120, 186, 242, 0.22);
}

.legal-section > div {
  max-width: 52rem;
}

.legal-number {
  margin: 0;
  color: #f1d52b;
  font-family: "Bangers", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  opacity: 0.92;
}

.legal-section h2 {
  margin: 0 0 1.4rem;
  color: #f8fbff;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.legal-section p,
.legal-section li,
.legal-section address,
.legal-details {
  color: #b9cadb;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.84rem, 1.2vw, 0.96rem);
  line-height: 1.85;
}

.legal-section p {
  margin: 0 0 1.2rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: #f1d52b;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.legal-section a:hover,
.legal-section a:focus-visible {
  color: #ffffff;
}

.legal-section address {
  font-style: normal;
}

.legal-section ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding-left: 1.5rem;
}

.legal-section li::before {
  content: "◆";
  position: absolute;
  top: 0;
  left: 0;
  color: #2a9fff;
  font-size: 0.62em;
}

.legal-details {
  display: grid;
  margin: 1.6rem 0 0;
}

.legal-details > div {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px dashed rgba(120, 186, 242, 0.2);
}

.legal-details dt {
  color: #8299ae;
  text-transform: uppercase;
}

.legal-details dd {
  margin: 0;
  color: #d7e4ef;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid rgba(120, 186, 242, 0.26);
  color: #71869a;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-footer a {
  color: #f8fbff;
  text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: #f1d52b;
}

@media (max-width: 720px) {
  .legal-brand span {
    display: none;
  }

  .legal-back {
    padding-inline: 0.75rem;
  }

  .legal-heading {
    grid-template-columns: 1fr;
  }

  .legal-heading h1 {
    font-size: clamp(4.2rem, 24vw, 7.2rem);
  }

  .legal-intro {
    max-width: 30rem;
  }

  .legal-section {
    grid-template-columns: 2.8rem minmax(0, 1fr);
  }

  .legal-details > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-page .ambient-grid,
  .legal-page .ambient-orb,
  .legal-page .ambient-scanline {
    animation: none;
  }
}

/* ==========================================================================
   Theme music
   ========================================================================== */

.sound-ui {
  --sound-yellow: #f1d52b;
  --sound-blue: #2a9fff;
  --sound-ink: #050914;
  position: fixed;
  right: clamp(0.8rem, 2.5vw, 2rem);
  bottom: clamp(0.8rem, 2.5vw, 2rem);
  z-index: 250;
  display: grid;
  justify-items: end;
  gap: 0.75rem;
  font-family: "Orbitron", sans-serif;
  pointer-events: none;
}

.sound-ui button,
.sound-toast {
  pointer-events: auto;
}

.sound-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.55rem 0.8rem 0.55rem 0.6rem;
  overflow: hidden;
  color: #f8fbff;
  border: 1px solid rgba(120, 186, 242, 0.42);
  border-bottom-color: rgba(241, 213, 43, 0.85);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(42, 159, 255, 0.13), transparent 48%),
    rgba(5, 9, 20, 0.88);
  box-shadow: 0.35rem 0.35rem 0 rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.sound-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.09) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 450ms ease;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  color: var(--sound-yellow);
  border-color: var(--sound-yellow);
  outline: none;
  transform: translate(-0.12rem, -0.12rem);
  box-shadow: 0.48rem 0.48rem 0 rgba(0, 0, 0, 0.78);
}

.sound-toggle:hover::before,
.sound-toggle:focus-visible::before {
  transform: translateX(120%);
}

.sound-toggle-icon {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid rgba(241, 213, 43, 0.55);
  background: rgba(241, 213, 43, 0.08);
}

.sound-icon {
  grid-area: 1 / 1;
  width: 1.35rem;
  height: 1.35rem;
  transition: opacity 160ms ease, transform 160ms ease;
}

.sound-icon-on {
  opacity: 0;
  transform: scale(0.76);
}

.sound-icon-off {
  opacity: 1;
  transform: scale(1);
}

.sound-toggle.is-playing {
  color: var(--sound-yellow);
  border-color: rgba(241, 213, 43, 0.8);
}

.sound-toggle.is-playing .sound-icon-on {
  opacity: 1;
  transform: scale(1);
}

.sound-toggle.is-playing .sound-icon-off {
  opacity: 0;
  transform: scale(0.76);
}

.sound-toggle-copy {
  position: relative;
  display: grid;
  gap: 0.12rem;
  min-width: 5.6rem;
  text-align: left;
  text-transform: uppercase;
}

.sound-toggle-label {
  color: inherit;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sound-toggle-state {
  color: #90a8bd;
  font-size: 0.52rem;
  letter-spacing: 0.09em;
}

.sound-toggle.is-playing .sound-toggle-state {
  color: #f8fbff;
}

.sound-toast {
  position: relative;
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: 0.85rem;
  width: min(22.5rem, calc(100vw - 1.6rem));
  padding: 1rem;
  color: #f8fbff;
  border: 1px solid rgba(120, 186, 242, 0.5);
  border-top: 3px solid var(--sound-yellow);
  background:
    linear-gradient(135deg, rgba(42, 159, 255, 0.15), transparent 44%),
    rgba(5, 9, 20, 0.96);
  box-shadow: 0.6rem 0.6rem 0 rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.8rem) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 260ms ease, transform 260ms ease, visibility 0s linear 260ms;
}

.sound-toast::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  bottom: -0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 1px solid rgba(120, 186, 242, 0.5);
  border-bottom: 1px solid rgba(120, 186, 242, 0.5);
  background: #050914;
  transform: rotate(45deg);
}

.sound-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.sound-toast-signal {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0.17rem;
  height: 2.7rem;
  padding: 0.55rem 0.4rem;
  border: 1px solid rgba(42, 159, 255, 0.5);
  background: rgba(42, 159, 255, 0.08);
}

.sound-toast-signal i {
  width: 0.18rem;
  height: 30%;
  background: var(--sound-yellow);
  animation: sound-equalizer 0.8s ease-in-out infinite alternate;
}

.sound-toast-signal i:nth-child(2) {
  height: 82%;
  animation-delay: -0.5s;
}

.sound-toast-signal i:nth-child(3) {
  height: 55%;
  animation-delay: -0.2s;
}

.sound-toast-signal i:nth-child(4) {
  height: 95%;
  animation-delay: -0.65s;
}

.sound-toast-content p {
  margin: 0;
}

.sound-toast-kicker {
  color: var(--sound-yellow);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sound-toast-title {
  margin-top: 0.35rem !important;
  font-family: "Bangers", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.sound-toast-copy {
  margin-top: 0.38rem !important;
  color: #aebfd0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.69rem;
  line-height: 1.45;
}

.sound-toast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.sound-toast-actions button {
  min-height: 2.25rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.sound-toast-accept {
  color: var(--sound-ink);
  border: 1px solid var(--sound-yellow);
  background: var(--sound-yellow);
}

.sound-toast-decline {
  color: #bdccda;
  border: 1px solid rgba(120, 186, 242, 0.42);
  background: transparent;
}

.sound-toast-actions button:hover,
.sound-toast-actions button:focus-visible {
  outline: none;
  transform: translateY(-0.12rem);
}

.sound-toast-accept:hover,
.sound-toast-accept:focus-visible {
  color: #ffffff;
  border-color: var(--sound-blue);
  background: var(--sound-blue);
}

.sound-toast-decline:hover,
.sound-toast-decline:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
}

@keyframes sound-equalizer {
  from {
    transform: scaleY(0.42);
  }
  to {
    transform: scaleY(1);
  }
}

@media (max-width: 520px) {
  .sound-ui {
    left: 0.8rem;
    right: 0.8rem;
    justify-items: end;
  }

  .sound-toast {
    width: 100%;
  }

  .sound-toggle-copy {
    min-width: 0;
  }

  .sound-toggle-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sound-toast,
  .sound-toggle,
  .sound-toggle::before,
  .sound-icon {
    transition: none;
  }

  .sound-toast-signal i {
    animation: none;
  }
}
