/*
 * Labyssgame Studio -- l'accueil.
 *
 * Le studio porte le nom de Labyss : il en reprend l'univers, un ciel profond
 * ou chaque application est une planete, et la signature Orbitron. Le reste
 * parle la langue de chaque app, a ses couleurs. Les couleurs du studio
 * viennent de son logo : orange, corail, violet.
 *
 * Chemins absolus partout : cette page est aussi servie a toute adresse
 * inconnue du site (regle WordPress du .htaccess).
 */

/* Une seule graisse : chaque fichier de police retarde l'affichage. */
@font-face {
  font-family: 'Orbitron';
  src: url('/labyss/assets/fonts/Orbitron-800.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --space: #070a14;
  --space-2: #0d1328;
  --ink: #edf1fb;
  --text: #b3bdd6;
  --muted: #7c87a5;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.035);

  --studio-1: #ffa24c;
  --studio-2: #ff4f6d;
  --studio-3: #b44fd6;
  --studio: linear-gradient(115deg, var(--studio-1), var(--studio-2) 50%, var(--studio-3));

  --cyan: #23e7ff;
  --gold: #ffb443;

  --display: 'Orbitron', 'Avenir Next', system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;

  --gutter: clamp(16px, 5vw, 56px);
  --wide: 1200px;
  --header: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(255, 79, 109, 0.13), transparent 60%),
    radial-gradient(70% 55% at 100% 8%, rgba(180, 79, 214, 0.12), transparent 60%),
    radial-gradient(80% 60% at 50% 110%, rgba(35, 231, 255, 0.07), transparent 60%),
    var(--space);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--studio-1);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: rgba(255, 79, 109, 0.35);
  color: #fff;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--space);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.sky.is-on {
  opacity: 1;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wide));
  margin-inline: auto;
}

/* ------------------------------------------------------------------ titres */

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 23px;
  letter-spacing: -0.02em;
}

.kicker {
  margin: 0 0 16px;
  color: var(--kicker, #ffb58a);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(100deg, var(--studio-1), var(--studio-2), var(--studio-3), var(--studio-1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 9s linear infinite;
}

@keyframes flow {
  to {
    background-position: 300% 0;
  }
}

.section {
  position: relative;
  padding-block: clamp(80px, 11vw, 140px);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.section-head p:not(.kicker) {
  margin: 18px auto 0;
  max-width: 600px;
  font-size: clamp(17px, 1.5vw, 20px);
  text-wrap: pretty;
}

/* Apparitions au defilement, seulement si le script tourne. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- boutons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-primary {
  border: 0;
  background: var(--studio);
  color: #fff;
  box-shadow: 0 14px 40px -12px rgba(255, 79, 109, 0.7);
}

.btn-primary:hover {
  background: var(--studio);
  box-shadow: 0 18px 50px -10px rgba(255, 79, 109, 0.85);
}

/* Un reflet traverse le bouton au survol. */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}

.btn-primary:hover::after {
  left: 130%;
}

/* Le bouton de Labyss parle neon, comme le jeu. */
.btn-neon {
  border-color: rgba(35, 231, 255, 0.7);
  background: rgba(35, 231, 255, 0.08);
  color: var(--cyan);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    0 0 20px rgba(35, 231, 255, 0.22),
    inset 0 0 14px rgba(35, 231, 255, 0.1);
}

.btn-neon:hover {
  border-color: var(--cyan);
  background: rgba(35, 231, 255, 0.14);
  box-shadow:
    0 0 32px rgba(35, 231, 255, 0.4),
    inset 0 0 18px rgba(35, 231, 255, 0.16);
}

.btn-neon .dot {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------------------------------------------------------------- en-tete */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 10, 20, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.brand-name small {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.46em;
  color: #ffb58a;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  margin-left: auto;
}

.site-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-labyss {
  color: var(--cyan);
}

.header-cta {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .header-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }
  .brand-name strong {
    font-size: 13px;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }
  .header-cta {
    margin-left: auto;
  }
}

/* -------------------------------------------------------------------- hero */

/* Un haut de page sans calcul : du texte, un halo en degrade et les icones
 * des apps. Rien ne s'y anime en boucle, et tout s'affiche sans attendre le
 * moindre script. */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 88vh;
  min-height: 88svh;
  padding: calc(var(--header) + 40px) var(--gutter) 64px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Le halo : trois nappes aux couleurs du logo, sans flou calcule. */
.aurora {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: -1;
  width: min(1100px, 150vw);
  aspect-ratio: 1.6;
  translate: -50% -50%;
  background:
    radial-gradient(38% 42% at 34% 46%, rgba(255, 110, 80, 0.3), transparent 70%),
    radial-gradient(40% 44% at 66% 52%, rgba(180, 79, 214, 0.26), transparent 70%),
    radial-gradient(30% 36% at 50% 40%, rgba(255, 79, 109, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  width: min(100%, 980px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--studio-2);
  box-shadow: 0 0 12px var(--studio-2);
}

.hero h1 {
  font-size: clamp(50px, 9vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.lead {
  margin: 28px auto 0;
  max-width: 620px;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--text);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero .actions {
  justify-content: center;
}

/* La barre des apps : chaque icone mene a sa fiche. */
.dock {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  width: fit-content;
  max-width: 100%;
  margin: 56px auto 0;
  padding: 16px clamp(14px, 2.4vw, 26px) 14px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.035);
}

.dock a {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  width: 76px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dock img,
.dock .tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s ease;
}

.dock .tile {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2, var(--accent)));
  color: #fff;
}

.dock .tile svg {
  width: 26px;
  height: 26px;
}

.dock a:hover {
  color: var(--ink);
}

.dock a:hover img,
.dock a:hover .tile {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px -10px var(--accent);
}

/* Les icones arrivent l'une apres l'autre : ce ne sont pas elles qui font
 * le premier affichage, on peut se permettre ce petit delai. */
@media (prefers-reduced-motion: no-preference) {
  .dock a {
    animation: rise 0.7s var(--ease) both;
    animation-delay: calc(0.15s + var(--i, 0) * 0.06s);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (max-width: 720px) {
  .dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    row-gap: 16px;
  }
  .dock a {
    width: auto;
  }
}

@media (max-width: 560px) {
  .eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }
}

/* --------------------------------------------------------------- Labyss */

.spotlight {
  position: relative;
  padding-block: clamp(40px, 7vw, 90px);
}

.spot-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 4.5vw, 64px);
  border: 1px solid rgba(35, 231, 255, 0.22);
  border-radius: 32px;
  background:
    radial-gradient(70% 90% at 20% 50%, rgba(255, 180, 67, 0.12), transparent 60%),
    radial-gradient(60% 80% at 90% 10%, rgba(35, 231, 255, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(12, 18, 38, 0.92), rgba(7, 10, 20, 0.92));
  box-shadow:
    0 40px 120px -50px rgba(35, 231, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  isolation: isolate;
}

/* La grille du jeu, en filigrane. */
.spot-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(#152040 1px, transparent 1px),
    linear-gradient(90deg, #152040 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 30% 50%, #000, transparent 75%);
  opacity: 0.8;
}

.spot-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.spot-visual canvas {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
}

.spark {
  position: absolute;
  width: 11px;
  height: 11px;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow:
    0 0 10px var(--gold),
    0 0 22px rgba(255, 180, 67, 0.5);
  animation: drift 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.spark::after {
  content: '';
  position: absolute;
  inset: 30%;
  background: rgba(255, 255, 255, 0.9);
}

@keyframes drift {
  50% {
    translate: 0 -12px;
  }
}

.spot-copy .kicker {
  --kicker: var(--gold);
}

.labyss-title {
  font-family: var(--display);
  font-size: clamp(52px, 7.4vw, 104px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.1em;
  color: #e8f1ff;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.6),
    0 0 18px rgba(35, 231, 255, 0.75),
    0 0 48px rgba(35, 231, 255, 0.45);
}

.spot-tagline {
  margin: 14px 0 0;
  color: var(--cyan);
  font-family: var(--display);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 0 16px rgba(35, 231, 255, 0.45);
}

.spot-copy p:not(.kicker):not(.spot-tagline) {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: clamp(17px, 1.5vw, 19px);
  text-wrap: pretty;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 12px;
  border: 1px solid rgba(35, 231, 255, 0.28);
  border-radius: 999px;
  color: #bdf6ff;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 860px) {
  .spot-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .spot-visual {
    max-width: 360px;
  }
  .spot-copy p:not(.kicker):not(.spot-tagline) {
    margin-inline: auto;
  }
  .chips,
  .spot-copy .actions {
    justify-content: center;
  }
}

/* ---------------------------------------------------------------- les apps */

.apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.app {
  --accent: #fff;
  --accent-2: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}

/* Une lueur a la couleur de l'app suit le pointeur. */
.app::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, -30%),
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 30px 70px -36px color-mix(in srgb, var(--accent) 70%, transparent);
}

.app:hover::before {
  opacity: 1;
}

.app-featured {
  grid-column: span 2;
}

/* La banniere de Lovely Couple se montre en entier, sans rognage. */
.app-featured .app-media {
  height: auto;
  aspect-ratio: 1200 / 522;
}

.app-media {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.app-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.app:hover .app-media > img {
  transform: scale(1.04);
}

.app-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8);
}

.app-icon.glyph {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #fff;
}

.app-icon.glyph svg {
  width: 26px;
  height: 26px;
}

.app-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-body > p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.55;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.store-badge {
  display: inline-flex;
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  height: 42px;
  width: auto;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 10px;
  color: color-mix(in srgb, var(--accent) 70%, #fff);
  font-size: 14px;
  font-weight: 700;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: color-mix(in srgb, var(--accent) 80%, #fff);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.app-link:hover {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

/* Affiches des apps qui n'ont pas d'image : leur teinte, leur idee. */
.poster {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  overflow: hidden;
}

.poster-cards {
  position: relative;
  width: 220px;
  height: 150px;
}

.poster-cards span {
  position: absolute;
  top: 18px;
  display: grid;
  place-items: center;
  width: 120px;
  height: 150px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #7a1d4a;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  box-shadow: 0 18px 40px -12px rgba(60, 10, 60, 0.6);
  transition: transform 0.5s var(--ease);
}

.poster-cards span:first-child {
  left: 0;
  transform: rotate(-9deg);
}

.poster-cards span:last-child {
  right: 0;
  transform: rotate(8deg) translateY(-10px);
  background: #2b0f3f;
  color: #ffd1ea;
}

.app:hover .poster-cards span:first-child {
  transform: rotate(-14deg) translateX(-8px);
}

.app:hover .poster-cards span:last-child {
  transform: rotate(13deg) translate(8px, -14px);
}

.poster-quote {
  max-width: 280px;
  text-align: left;
}

.poster-quote b {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 110px;
  line-height: 0.6;
  opacity: 0.9;
}

.poster-quote span {
  display: block;
  margin-top: 8px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.poster-yofit {
  background: linear-gradient(160deg, #1b2230 0%, #111722 60%, #0b0f18 100%);
  position: relative;
}

.poster-yofit::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 42%;
  background: linear-gradient(100deg, #ff7a1a, #ffc94d);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
  opacity: 0.95;
}

.poster-word {
  position: relative;
  margin: 0;
  font-size: 58px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  transition: transform 0.5s var(--ease);
}

.poster-word span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffc94d;
}

.app:hover .poster-word {
  transform: translateY(-4px) rotate(-3deg);
}

.poster-dots {
  position: relative;
  width: 220px;
  height: 140px;
}

.poster-dots i {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 24px currentColor;
  transition: transform 0.6s var(--ease);
}

.poster-dots i:nth-child(1) {
  left: 10px;
  top: 40px;
  width: 58px;
  height: 58px;
  background: #ff4f6d;
  color: #ff4f6d;
}

.poster-dots i:nth-child(2) {
  left: 84px;
  top: 10px;
  width: 64px;
  height: 64px;
  background: #ffd43b;
  color: #ffd43b;
}

.poster-dots i:nth-child(3) {
  right: 8px;
  top: 58px;
  width: 70px;
  height: 70px;
  background: #fff;
  color: #9ff6ff;
  outline: 4px solid rgba(255, 255, 255, 0.35);
  outline-offset: 6px;
}

.app:hover .poster-dots i:nth-child(1) {
  transform: translate(-6px, 6px);
}

.app:hover .poster-dots i:nth-child(2) {
  transform: translateY(-8px);
}

.app:hover .poster-dots i:nth-child(3) {
  transform: scale(1.08);
}

/* En flex, et non en grille : la hauteur en pourcentage de l'image s'y
 * rapporte bien a celle du cadre. */
.media-contain {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4a5582;
}

.media-contain img {
  width: auto;
  height: 88%;
  max-width: 88%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

.app:hover .media-contain img {
  transform: scale(1.05) rotate(-2deg);
}

.media-labyss {
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(35, 231, 255, 0.16), transparent 70%),
    #070a14;
}

.media-labyss::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#152040 1px, transparent 1px),
    linear-gradient(90deg, #152040 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}

.media-labyss canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240px;
  height: 240px;
  translate: -50% -50%;
}

.app-next {
  justify-content: center;
  padding: 32px 28px;
  border-style: dashed;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 79, 109, 0.1), transparent 70%),
    rgba(255, 255, 255, 0.015);
}

.app-next h3 {
  font-size: 26px;
}

.app-next p {
  margin: 12px 0 22px;
  font-size: 16px;
}

@media (max-width: 1000px) {
  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .apps {
    grid-template-columns: 1fr;
  }
  .app-featured {
    grid-column: auto;
  }
  .app-media {
    height: 200px;
  }
  .app-featured .app-media {
    height: auto;
  }
}

/* --------------------------------------------------------------- le studio */

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.studio-copy p:not(.kicker) {
  margin: 22px 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
  text-wrap: pretty;
}

.metrics {
  display: grid;
  gap: 16px;
}

.metric {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.metric::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--studio);
}

.metric strong {
  min-width: 4.2ch;
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  background: var(--studio);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric span {
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .studio {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------- support */

.support {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: stretch;
}

.support-card,
.legal-card {
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
}

.support-card {
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(255, 79, 109, 0.16), transparent 60%),
    radial-gradient(80% 80% at 100% 100%, rgba(180, 79, 214, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.03);
}

.support-card p:not(.kicker) {
  margin: 16px 0 0;
  font-size: 17px;
}

.mail {
  display: inline-block;
  margin-top: 26px;
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: var(--studio);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
}

.mail:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 79, 109, 0.6);
}

.legal-card h3 {
  font-size: 20px;
}

.legal-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.legal-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.legal-list li:first-child {
  border-top: 0;
}

.legal-app {
  color: var(--ink);
  font-weight: 700;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.legal-links a {
  display: inline-block;
  padding-block: 3px;
  color: var(--text);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: rgba(179, 189, 214, 0.3);
  text-underline-offset: 3px;
}

.legal-links a:hover {
  color: var(--ink);
  text-decoration-color: var(--studio-2);
}

.legal-links small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 860px) {
  .support {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ pied de page */

.site-footer {
  padding: 40px var(--gutter) 44px;
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 20, 0.7);
}

.footer-inner {
  width: min(100%, var(--wide));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.footer-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

/* -------------------------------------------------------- mouvement reduit */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
}
