/* =========================================================
   KOVA : Design system (thèmes Sombre, Clair et Sakura)
   ========================================================= */
/* Thèmes : Sombre (par défaut), Clair, Sakura.
   Les couleurs de base sont des canaux RVB (« r g b ») : on peut les reprendre
   avec une opacité, rgb(var(--ink-rgb) / 0.1). Les gris --g-xx sont des mélanges
   encre / fond : le même gris reste lisible dans chaque thème. */
:root {
  --bg-rgb: 5 5 5;            /* fond de page */
  --ink-rgb: 255 255 255;     /* encre : texte fort, traits */
  --void-rgb: 0 0 0;          /* plus profond que le fond : chargement, menu mobile */
  --accent-rgb: 255 255 255;  /* filets, points actifs, pétales */
  --particle-rgb: 255 255 255; /* particules du hero */
  --particle-k: 1;            /* densité des particules : un point sombre sur fond clair paraît plus léger qu'un point clair sur fond sombre */
  --obj-a-rgb: 242 242 242;   /* objets 3D, matière principale */
  --obj-b-rgb: 42 42 42;      /* objets 3D, matière secondaire */
  --shadow-rgb: 0 0 0;
  --shadow-k: 1;              /* force des ombres */
  --invert: 1;                /* icônes natives (croix du champ de recherche) */
  color-scheme: dark;

  --bg: rgb(var(--bg-rgb));
  --ink: rgb(var(--ink-rgb));
  --void: rgb(var(--void-rgb));
  --accent: rgb(var(--accent-rgb));
  --on-ink: var(--void);      /* texte posé sur une surface d'encre (bouton plein, onglet actif) */
  --mark: var(--ink);         /* petits éléments actifs : roses en Sakura */
  --hl-bg: var(--fg);         /* bloc qui surligne « projet. » */
  --hl-on: var(--bg);
  --bg-1: var(--g-0a);
  --bg-2: var(--g-10);
  --bg-3: var(--g-18);
  --line: rgb(var(--ink-rgb) / 0.09);
  --line-2: rgb(var(--ink-rgb) / 0.17);
  --fg: var(--g-f2);
  --muted: var(--g-8c);
  --dim: var(--g-54);

  --f-display: "Sora", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.87, 0, 0.13, 1);

  /* Gris : mêmes valeurs qu'avant en sombre */
  --g-0a: color-mix(in srgb, var(--ink) 2.0%, var(--bg));
  --g-0b: color-mix(in srgb, var(--ink) 2.4%, var(--bg));
  --g-0c: color-mix(in srgb, var(--ink) 2.8%, var(--bg));
  --g-10: color-mix(in srgb, var(--ink) 4.4%, var(--bg));
  --g-12: color-mix(in srgb, var(--ink) 5.2%, var(--bg));
  --g-14: color-mix(in srgb, var(--ink) 6.0%, var(--bg));
  --g-18: color-mix(in srgb, var(--ink) 7.6%, var(--bg));
  --g-2a: color-mix(in srgb, var(--ink) 14.8%, var(--bg));
  --g-33: color-mix(in srgb, var(--ink) 18.4%, var(--bg));
  --g-3a: color-mix(in srgb, var(--ink) 21.2%, var(--bg));
  --g-3c: color-mix(in srgb, var(--ink) 22.0%, var(--bg));
  --g-3d: color-mix(in srgb, var(--ink) 22.4%, var(--bg));
  --g-54: color-mix(in srgb, var(--ink) 31.6%, var(--bg));
  --g-55: color-mix(in srgb, var(--ink) 32.0%, var(--bg));
  --g-5f: color-mix(in srgb, var(--ink) 36.0%, var(--bg));
  --g-6a: color-mix(in srgb, var(--ink) 40.4%, var(--bg));
  --g-6b: color-mix(in srgb, var(--ink) 40.8%, var(--bg));
  --g-6c: color-mix(in srgb, var(--ink) 41.2%, var(--bg));
  --g-6e: color-mix(in srgb, var(--ink) 42.0%, var(--bg));
  --g-7c: color-mix(in srgb, var(--ink) 47.6%, var(--bg));
  --g-7d: color-mix(in srgb, var(--ink) 48.0%, var(--bg));
  --g-8a: color-mix(in srgb, var(--ink) 53.2%, var(--bg));
  --g-8c: color-mix(in srgb, var(--ink) 54.0%, var(--bg));
  --g-8f: color-mix(in srgb, var(--ink) 55.2%, var(--bg));
  --g-9a: color-mix(in srgb, var(--ink) 59.6%, var(--bg));
  --g-a6: color-mix(in srgb, var(--ink) 64.4%, var(--bg));
  --g-a9: color-mix(in srgb, var(--ink) 65.6%, var(--bg));
  --g-b0: color-mix(in srgb, var(--ink) 68.4%, var(--bg));
  --g-b9: color-mix(in srgb, var(--ink) 72.0%, var(--bg));
  --g-bd: color-mix(in srgb, var(--ink) 73.6%, var(--bg));
  --g-c4: color-mix(in srgb, var(--ink) 76.4%, var(--bg));
  --g-c8: color-mix(in srgb, var(--ink) 78.0%, var(--bg));
  --g-c9: color-mix(in srgb, var(--ink) 78.4%, var(--bg));
  --g-cf: color-mix(in srgb, var(--ink) 80.8%, var(--bg));
  --g-d4: color-mix(in srgb, var(--ink) 82.8%, var(--bg));
  --g-d6: color-mix(in srgb, var(--ink) 83.6%, var(--bg));
  --g-e4: color-mix(in srgb, var(--ink) 89.2%, var(--bg));
  --g-e8: color-mix(in srgb, var(--ink) 90.8%, var(--bg));
  --g-ec: color-mix(in srgb, var(--ink) 92.4%, var(--bg));
  --g-ed: color-mix(in srgb, var(--ink) 92.8%, var(--bg));
  --g-f2: color-mix(in srgb, var(--ink) 94.8%, var(--bg));
  --g-f4: color-mix(in srgb, var(--ink) 95.6%, var(--bg));
  --g-f5: color-mix(in srgb, var(--ink) 96.0%, var(--bg));
}
:root[data-theme="light"] {
  --bg-rgb: 245 244 241;
  --ink-rgb: 12 12 12;
  --void-rgb: 255 255 255;
  --accent-rgb: 12 12 12;
  --particle-rgb: 12 12 12;
  --particle-k: 1.6;
  --obj-a-rgb: 44 44 44;
  --obj-b-rgb: 214 212 207;
  --shadow-rgb: 40 36 30;
  --shadow-k: 0.3;
  --invert: 0;
  color-scheme: light;
}
/* Sakura : encre prune sur fond pétale, accents rose cerisier */
:root[data-theme="sakura"] {
  --bg-rgb: 253 241 244;
  --ink-rgb: 72 22 48;
  --void-rgb: 255 251 252;
  --accent-rgb: 226 88 138;
  --particle-rgb: 200 52 108; /* rose plus soutenu que l'accent : le logo se détache du fond pétale */
  --particle-k: 1.75;
  --obj-a-rgb: 246 172 198;
  --obj-b-rgb: 124 46 84;
  --shadow-rgb: 150 50 90;
  --shadow-k: 0.28;
  --invert: 0;
  color-scheme: light;
  --mark: var(--accent);
  --hl-bg: var(--accent);
  --hl-on: var(--void);
}
/* Fonds clairs : les gris moyens sont un peu plus marqués pour garder le contraste */
:root:is([data-theme="light"], [data-theme="sakura"]) {
  --g-0a: color-mix(in srgb, var(--ink) 2.7%, var(--bg));
  --g-0b: color-mix(in srgb, var(--ink) 3.2%, var(--bg));
  --g-0c: color-mix(in srgb, var(--ink) 3.8%, var(--bg));
  --g-10: color-mix(in srgb, var(--ink) 5.9%, var(--bg));
  --g-12: color-mix(in srgb, var(--ink) 7.0%, var(--bg));
  --g-14: color-mix(in srgb, var(--ink) 8.0%, var(--bg));
  --g-18: color-mix(in srgb, var(--ink) 10.1%, var(--bg));
  --g-2a: color-mix(in srgb, var(--ink) 19.4%, var(--bg));
  --g-33: color-mix(in srgb, var(--ink) 24.0%, var(--bg));
  --g-3a: color-mix(in srgb, var(--ink) 27.5%, var(--bg));
  --g-3c: color-mix(in srgb, var(--ink) 28.5%, var(--bg));
  --g-3d: color-mix(in srgb, var(--ink) 29.0%, var(--bg));
  --g-54: color-mix(in srgb, var(--ink) 40.1%, var(--bg));
  --g-55: color-mix(in srgb, var(--ink) 40.6%, var(--bg));
  --g-5f: color-mix(in srgb, var(--ink) 45.3%, var(--bg));
  --g-6a: color-mix(in srgb, var(--ink) 50.3%, var(--bg));
  --g-6b: color-mix(in srgb, var(--ink) 50.7%, var(--bg));
  --g-6c: color-mix(in srgb, var(--ink) 51.2%, var(--bg));
  --g-6e: color-mix(in srgb, var(--ink) 52.1%, var(--bg));
  --g-7c: color-mix(in srgb, var(--ink) 58.2%, var(--bg));
  --g-7d: color-mix(in srgb, var(--ink) 58.6%, var(--bg));
  --g-8a: color-mix(in srgb, var(--ink) 64.1%, var(--bg));
  --g-8c: color-mix(in srgb, var(--ink) 64.9%, var(--bg));
  --g-8f: color-mix(in srgb, var(--ink) 66.2%, var(--bg));
  --g-9a: color-mix(in srgb, var(--ink) 70.6%, var(--bg));
  --g-a6: color-mix(in srgb, var(--ink) 75.2%, var(--bg));
  --g-a9: color-mix(in srgb, var(--ink) 76.3%, var(--bg));
  --g-b0: color-mix(in srgb, var(--ink) 78.9%, var(--bg));
  --g-b9: color-mix(in srgb, var(--ink) 82.1%, var(--bg));
  --g-bd: color-mix(in srgb, var(--ink) 83.4%, var(--bg));
  --g-c4: color-mix(in srgb, var(--ink) 85.8%, var(--bg));
  --g-c8: color-mix(in srgb, var(--ink) 87.0%, var(--bg));
  --g-c9: color-mix(in srgb, var(--ink) 87.4%, var(--bg));
  --g-cf: color-mix(in srgb, var(--ink) 89.2%, var(--bg));
  --g-d4: color-mix(in srgb, var(--ink) 90.7%, var(--bg));
  --g-d6: color-mix(in srgb, var(--ink) 91.3%, var(--bg));
  --g-e4: color-mix(in srgb, var(--ink) 95.0%, var(--bg));
  --g-e8: color-mix(in srgb, var(--ink) 96.0%, var(--bg));
  --g-ec: color-mix(in srgb, var(--ink) 96.9%, var(--bg));
  --g-ed: color-mix(in srgb, var(--ink) 97.1%, var(--bg));
  --g-f2: color-mix(in srgb, var(--ink) 98.2%, var(--bg));
  --g-f4: color-mix(in srgb, var(--ink) 98.5%, var(--bg));
  --g-f5: color-mix(in srgb, var(--ink) 98.7%, var(--bg));
}

*, *::before, *::after { box-sizing: border-box; }
/* Place de la barre de défilement toujours réservée : la page ne saute pas
   quand le scroll est bloqué (chargement, transition) puis débloqué */
html { -webkit-text-size-adjust: 100%; background: var(--bg); scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Écran noir tant que le gabarit n'est pas injecté */
html.preload body::before { content: ""; position: fixed; inset: 0; z-index: 2000; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--mark); color: var(--on-ink); }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--f-mono); font-size: 0.78em; letter-spacing: 0.02em; }

/* Mot mis en retrait (gris) */
.sheen { color: var(--g-7d); }

.h2 { font: 700 clamp(2.3rem, 5.2vw, 4.4rem)/1.02 var(--f-display); letter-spacing: -0.045em; margin: 0; }
.h3 { font: 700 clamp(1.6rem, 2.8vw, 2.4rem)/1.08 var(--f-display); letter-spacing: -0.03em; margin: 0 0 32px; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.12rem); max-width: 520px; margin: 22px 0 0; }

.section-head { margin-bottom: clamp(48px, 7vw, 88px); max-width: 880px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 60px; flex-wrap: wrap; }
.section-head--row .lead { margin: 0; }

/* Découpage des mots / lettres */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0 0.1em; margin: -0.06em 0 -0.1em; }
.wi { display: inline-block; will-change: transform; }
.cw { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.12em 0 0.12em; margin: -0.12em 0 -0.12em; }
.chi { display: inline-block; will-change: transform; }

/* =========================================================
   Boutons
   ========================================================= */
/* Survol : les couleurs s'inversent à l'intérieur d'un disque qui part du point d'entrée de la souris
   et se retire vers son point de sortie (--x, --y, --r posés par main.js). Le disque porte une copie
   du libellé (.btn__fill) : le texte change de couleur exactement au passage du bord. Le libellé ne
   bouge pas, la flèche file et revient par la gauche, le bouton s'enfonce légèrement à l'appui. */
.btn {
  --h: 52px;
  --fill: var(--fg);            /* fond dans le disque */
  --fill-on: var(--on-ink);     /* texte dans le disque */
  --fill-ring: transparent;     /* contour dans le disque */
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--f-body); letter-spacing: -0.01em; white-space: nowrap;
  transition: border-color 0.5s var(--ease-out), scale 0.5s var(--ease-out);
}
.btn__fill {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: inherit; padding: inherit;
  border-radius: inherit; background: var(--fill); color: var(--fill-on); box-shadow: inset 0 0 0 1px var(--fill-ring);
  pointer-events: none;
  clip-path: circle(0px at var(--x, 50%) var(--y, 50%));
  transition: clip-path 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}
.btn:is(:hover, :focus-visible) .btn__fill { clip-path: circle(var(--r, 150%) at var(--x, 50%) var(--y, 50%)); transition-duration: 0.6s; }
.btn:active { scale: 0.97; transition-duration: 0.15s; }
.btn:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
.btn small { font-weight: 500; opacity: 0.55; margin-left: -6px; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 62px; padding: 0 34px; font-size: 16px; }
.btn--block { width: 100%; }
/* Principal (plein) : il devient creux, cerclé de sa couleur */
.btn--light { background: var(--fg); color: var(--on-ink); --fill: var(--bg); --fill-on: var(--ink); --fill-ring: var(--fg); }
/* Secondaire (creux) : il se remplit, le contour se fond dans le disque */
.btn--ghost { border: 1px solid var(--line-2); background: rgb(var(--bg-rgb) / 0.6); }
.btn--ghost:is(:hover, :focus-visible) { border-color: var(--fg); }
/* Sakura : le bouton principal se remplit de rose cerisier */
:root[data-theme="sakura"] .btn--light { --fill: var(--accent); --fill-on: var(--void); --fill-ring: transparent; }
/* Flèche doublée (main.js) : l'une sort à droite pendant que l'autre arrive de la gauche */
.btn__arw { position: relative; display: inline-grid; flex: none; overflow: hidden; }
.btn__arw > svg { grid-area: 1 / 1; transition: transform 0.6s var(--ease-out); }
.btn__arw > svg + svg { transform: translateX(-160%); }
:is(.btn, .hcta):is(:hover, :focus-visible) .btn__arw > svg:first-child { transform: translateX(160%); }
:is(.btn, .hcta):is(:hover, :focus-visible) .btn__arw > svg + svg { transform: none; transition-delay: 0.08s; }

/* Texte qui roule au survol (copie qui remonte) */
.roll { position: relative; display: inline-grid; overflow: hidden; vertical-align: top; gap: inherit; }
.roll > span { grid-area: 1 / 1; display: inline-flex; align-items: baseline; gap: inherit; padding: 0.14em 0; transition: transform 0.65s var(--ease-out); }
.roll > span + span { transform: translateY(108%); }
.has-roll:hover .roll > span:first-child { transform: translateY(-108%); }
.has-roll:hover .roll > span + span { transform: translateY(0); }




/* =========================================================
   Loader (logo qui se remplit + pourcentage)
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--void);
  clip-path: inset(0 0 0 0);
}
.loader__logo { width: min(420px, 64vw); overflow: visible; }
.loader__base { fill: var(--g-12); }
.loader__pct {
  position: absolute; left: 50%; bottom: 12vh; transform: translateX(-50%);
  display: flex; gap: 14px; font: 500 15px/1 var(--f-body); color: var(--g-e8); letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.loader__num { min-width: 3ch; text-align: right; }

/* =========================================================
   Transition entre pages (rideau noir)
   ========================================================= */
.pt { position: fixed; inset: 0; z-index: 1001; pointer-events: none; visibility: hidden; }
.pt.is-on { visibility: visible; pointer-events: auto; }
/* Même noir que l'écran de chargement : aucun saut de teinte entre deux pages.
   Bords en fondu : la page s'efface et réapparaît en douceur, sans arête nette. */
.pt__b {
  position: absolute; inset: 0; will-change: transform; backface-visibility: hidden;
  background: var(--bg); display: grid; place-items: center;
}
.pt__b::before, .pt__b::after { content: ""; position: absolute; left: 0; right: 0; height: 25vh; pointer-events: none; }
.pt__b::before { bottom: 100%; background: linear-gradient(to top, var(--bg), transparent); }
.pt__b::after { top: 100%; background: linear-gradient(to bottom, var(--bg), transparent); }
.pt__label { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding-inline: var(--pad); }
.pt__title { font: 800 clamp(2.6rem, 8vw, 7rem)/1 var(--f-display); letter-spacing: -0.05em; }
.pt__bar { position: absolute; left: 50%; bottom: 12vh; width: 140px; height: 1px; margin-left: -70px; background: rgb(var(--ink-rgb) / 0.15); overflow: hidden; }
.pt__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
/* Arrivée sur une page : écran noir uni, petite barre animée seulement si le chargement traîne */
.pt--arrive .pt__label { display: none; }
.pt--arrive .pt__bar { opacity: 0; transition: opacity 0.4s; }
.pt--arrive.is-wait .pt__bar { opacity: 1; }
.pt--arrive .pt__bar i { width: 40%; transform: none; animation: ptwait 1.1s var(--ease-io) infinite; }
@keyframes ptwait { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* =========================================================
   Nav & menu
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--pad) 0;
  pointer-events: none;
  transition: transform 0.8s var(--ease-out);
}
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(calc(-100% - 30px)); }

/* Logo tout à gauche : la copie remonte au survol */
.nav__logo { justify-self: start; position: relative; display: grid; overflow: hidden; padding: 6px 0; }
.nav__logo svg { grid-area: 1 / 1; width: 96px; height: auto; fill: var(--ink); transition: transform 0.7s var(--ease-out); }
.nav__logo svg + svg { transform: translateY(160%); }
.nav__logo:hover svg:first-child { transform: translateY(-160%); }
.nav__logo:hover svg + svg { transform: translateY(0); }

/* Capsule centrale */
.nav__center { position: relative; }
.nav__links {
  position: relative; display: flex; gap: 2px; padding: 5px; white-space: nowrap;
  border-radius: 999px; border: 1px solid rgb(var(--ink-rgb) / 0.1);
  background: rgb(var(--bg-rgb) / 0.6);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 24px 60px -24px rgb(var(--shadow-rgb) / calc(0.9 * var(--shadow-k))), inset 0 1px 0 rgb(var(--ink-rgb) / 0.06);
  transition: background 0.5s, border-color 0.5s;
}
.nav.is-scrolled .nav__links { background: rgb(var(--bg-rgb) / 0.86); border-color: rgb(var(--ink-rgb) / 0.14); }
.nav__links a { position: relative; z-index: 1; padding: 10px 17px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--g-a9); transition: color 0.35s; }
.nav__links a:hover, .nav__links a.is-active, .nav__links a.is-hot { color: var(--ink); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--mark); }
.nav__hover { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: rgb(var(--ink-rgb) / 0.1); opacity: 0; pointer-events: none; transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.3s; }
.nav__progress { position: absolute; left: 24px; right: 24px; bottom: -1px; height: 1px; overflow: hidden; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.nav.is-scrolled .nav__progress { opacity: 1; }
.nav__progress i { display: block; height: 100%; background: linear-gradient(90deg, rgb(var(--ink-rgb) / 0.15), var(--mark)); transform-origin: left; transform: scaleX(0); }

/* Grand menu sous la barre */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: min(1180px, calc(100vw - var(--pad) * 2));
  transform: translate(-50%, 12px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.55s var(--ease-out), opacity 0.3s, visibility 0s linear 0.3s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav.mega-open .mega { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform 0.55s var(--ease-out), opacity 0.3s, visibility 0s; }
.mega__in {
  position: relative; display: grid; overflow: hidden;
  border-radius: 26px; border: 1px solid rgb(var(--ink-rgb) / 0.12);
  background: rgb(var(--bg-rgb) / 0.97);
  box-shadow: 0 50px 100px -30px rgb(var(--shadow-rgb) / calc(0.95 * var(--shadow-k))), inset 0 1px 0 rgb(var(--ink-rgb) / 0.05);
  transition: height 0.55s var(--ease-out);
}
.mpanel {
  grid-area: 1 / 1; align-self: start;
  display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; padding: 26px;
  opacity: 0; visibility: hidden; transform: translateX(calc(var(--d, 1) * 34px));
  transition: opacity 0.3s, transform 0.6s var(--ease-out), visibility 0s linear 0.3s;
}
.mpanel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s 0.05s, transform 0.6s var(--ease-out), visibility 0s; }
.mega svg:not([width]) { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; font-size: 13.5px; color: var(--muted); }
.mhead a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.mhead a svg { transition: transform 0.5s var(--ease-out); }
.mhead a:hover svg { transform: translateX(4px); }

.mcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mcard { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 18px 44px 18px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgb(var(--ink-rgb) / 0.02); transition: border-color 0.35s, background 0.35s; }
.mcard:hover { border-color: rgb(var(--ink-rgb) / 0.22); background: rgb(var(--ink-rgb) / 0.05); }
.mcard__ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgb(var(--ink-rgb) / 0.08); color: var(--ink); transition: background 0.35s, color 0.35s, transform 0.6s var(--ease-out); }
.mcard:hover .mcard__ic { background: var(--g-f2); color: var(--bg); transform: rotate(-6deg); }
.mcard__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mcard__txt b { font: 600 15.5px/1.3 var(--f-display); letter-spacing: -0.01em; color: var(--ink); }
.mcard__txt span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.mcard__txt em { margin-top: 5px; font-style: normal; font-size: 13px; color: var(--muted); }
.mcard__txt strong { color: var(--ink); font-weight: 600; }
.mcard__go { position: absolute; right: 18px; top: 20px; color: var(--ink); opacity: 0; transform: translateX(-8px); transition: opacity 0.35s, transform 0.5s var(--ease-out); }
.mcard:hover .mcard__go { opacity: 1; transform: none; }

.mside { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-left: 26px; border-left: 1px solid var(--line); }
.mfeat { align-self: stretch; display: flex; flex-direction: column; gap: 6px; padding: 18px; margin-bottom: 18px; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(120% 100% at 100% 0%, rgb(var(--ink-rgb) / 0.1), transparent 60%), var(--g-14); transition: border-color 0.35s; }
.mfeat:hover { border-color: rgb(var(--ink-rgb) / 0.26); }
.mfeat__k { font-size: 12.5px; color: var(--g-cf); }
.mfeat b { font: 700 1.12rem/1.25 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.mfeat > span:not(.mfeat__k) { font-size: 13px; color: var(--muted); }
.mfeat em { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.mfeat em svg { transition: transform 0.5s var(--ease-out); }
.mfeat:hover em svg { transform: translateX(4px); }
.mside__t { margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.mside__l { padding: 6px 0; font-size: 14.5px; font-weight: 500; color: var(--g-d6); transition: color 0.3s, transform 0.45s var(--ease-out); }
.mside__l:hover { color: var(--ink); transform: translateX(5px); }

/* Panneau « Serveurs de jeux » */
.mpanel--games { grid-template-columns: 210px minmax(0, 1fr) 250px; }
.mpanel--games .mside { padding-left: 22px; }
.mg__side { display: flex; flex-direction: column; gap: 12px; }
.mg__search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(var(--ink-rgb) / 0.03); color: var(--muted); transition: border-color 0.3s; }
.mg__search:focus-within { border-color: rgb(var(--ink-rgb) / 0.45); }
.mega .mg__search svg { width: 17px; height: 17px; flex: none; }
.mg__search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--ink); font: 14px var(--f-body); }
.mg__search input::placeholder { color: var(--g-6e); }
.mg__search input::-webkit-search-cancel-button { filter: invert(var(--invert)); opacity: 0.5; }
.mg__cats { display: flex; flex-direction: column; gap: 2px; }
.mg__cat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--g-b9); text-align: left; transition: background 0.3s, color 0.3s; }
.mg__cat em { font-style: normal; font-size: 12.5px; color: var(--dim); }
.mg__cat:hover { color: var(--ink); background: rgb(var(--ink-rgb) / 0.05); }
.mg__cat.is-on { color: var(--ink); background: rgb(var(--ink-rgb) / 0.09); }
.mg__cat.is-on em { color: var(--ink); }
.mg__main { min-width: 0; }
.mg__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; align-content: start;
  height: 352px; overflow-y: auto; padding-right: 6px; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--g-33) transparent;
}
/* Vignette de jeu (grand menu, catalogue, page jeu) : visuel en couleur + icône */
.gc { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.gc[hidden], .mg__empty[hidden] { display: none; }
.gc__img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--g-14); box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / 0.07); isolation: isolate; }
.gc__img > img:first-child { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 0.9s var(--ease-out), filter 0.5s; }
.gc__img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 45%); pointer-events: none; }
.gc__icon { position: absolute; left: 7px; bottom: 7px; width: 26px; height: 26px; padding: 2px; border-radius: 7px; background: rgba(10, 10, 10, 0.72); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.14); object-fit: contain; transition: transform 0.6s var(--ease-out); }
.gc:hover .gc__img > img:first-child { transform: scale(1.08); filter: brightness(1.08) saturate(1.08); }
.gc:hover .gc__icon { transform: translateY(-3px) scale(1.06); }
.gc__img--discord { background: linear-gradient(135deg, #5865f2, #3b44c4); }
.gc__img--mic { background: radial-gradient(120% 120% at 30% 0%, var(--g-3a), var(--g-12)); }
.gsym { width: 38%; height: auto; max-height: 52%; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.6s var(--ease-out); }
.gsym--fill { fill: currentColor; stroke: none; }
.mega .gc .gsym { width: 38%; height: auto; stroke-width: 1.5; }
.mega .gc .gsym--fill { fill: currentColor; stroke: none; }
.gc:hover .gsym { transform: scale(1.1); }
.gc__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1px 8px; min-width: 0; }
.gc__row b { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px/1.25 var(--f-display); color: var(--ink); }
.gc__row em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.mg__empty { grid-column: 1 / -1; margin: 0; padding: 40px 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Actions à droite */
.nav__right { justify-self: end; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav__login { --h: 44px; padding: 0 20px; background: rgb(var(--bg-rgb) / 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav__cta { --h: 44px; padding: 0 18px 0 22px; }

/* Logo et choix du thème, à gauche */
.nav__left { justify-self: start; display: flex; align-items: center; gap: 22px; }

/* Choix du thème : trois pastilles, la capsule glisse sous le thème actif */
.theme {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 34px; padding: 4px;
  border-radius: 999px; border: 1px solid rgb(var(--ink-rgb) / 0.1);
  background: rgb(var(--bg-rgb) / 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.theme button { position: relative; z-index: 1; display: grid; place-items: center; height: 34px; border-radius: 50%; color: var(--g-9a); transition: color 0.4s var(--ease-out); }
.theme button:hover { color: var(--ink); }
.theme button[aria-checked="true"] { color: var(--on-ink); }
.theme button:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.6s var(--ease-out); }
.theme button:hover svg { transform: rotate(-14deg) scale(1.08); }
.theme__pill { position: absolute; top: 4px; left: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--fg); pointer-events: none; transition: transform 0.6s var(--ease-out), background 0.4s; }
:root[data-theme="light"] .theme__pill { transform: translateX(34px); }
:root[data-theme="sakura"] .theme__pill { transform: translateX(68px); background: var(--accent); }
/* Menu mobile : le choix du thème au-dessus des boutons */
.menu__theme { display: none; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }

/* Passage d'un thème à l'autre : le nouveau thème s'ouvre en cercle depuis le bouton (scene.js et layout.js) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Sakura : les mots en retrait passent en rose cerisier */
:root[data-theme="sakura"] :is(.sheen, .dim) { color: var(--accent); }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgb(var(--bg-rgb) / 0.7); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease-out); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav--open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav--open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 890;
  background: var(--void);
  display: flex; flex-direction: column;
  padding: calc(104px + env(safe-area-inset-top, 0px)) var(--pad) calc(28px + env(safe-area-inset-bottom, 0px));
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-io); visibility: hidden;
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; margin-bottom: 28px; }
.menu__links a {
  display: flex; flex-direction: column;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 700 clamp(1.7rem, 7.5vw, 2.6rem)/1.1 var(--f-display); letter-spacing: -0.035em;
}
.menu__links em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.menu__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }

/* =========================================================
   Story : hero de l'accueil (particules + chapitres)
   ========================================================= */
.story { position: relative; height: 450vh; }
.story__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story__fallback { display: none; }
.no-webgl .story__fallback { display: grid; place-items: center; position: absolute; inset: 0 0 32%; }
.no-webgl .story__fallback svg { width: min(60vw, 640px); fill: var(--ink); }
.story__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgb(var(--bg-rgb) / 0.92) 0%, transparent 36%); }

/* Grille : texte à gauche, forme en particules à droite (la zone « stage » est mesurée par scene.js) */
.story__ui {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(24px, 4vw, 72px);
  /* Sur très grand écran, la séquence s'élargit avec lui au lieu de rester un îlot au centre */
  max-width: calc(max(var(--maxw), 70vw) + var(--pad) * 2); margin-inline: auto;
  padding: calc(108px + env(safe-area-inset-top, 0px)) var(--pad) calc(34px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.story__stage { grid-area: 1 / 2 / 3 / 3; min-height: 0; }
.chap { grid-area: 1 / 1 / 2 / 2; min-height: 0; visibility: hidden; opacity: 0; }
.chap a { pointer-events: auto; }

/* Voile sombre derrière le texte des chapitres : les particules ne gênent plus la lecture */
.story__veil {
  grid-area: 1 / 1 / 3 / 2; margin: -14vh -22% -10vh -45%;
  background: radial-gradient(closest-side, rgb(var(--bg-rgb) / 0.9), rgb(var(--bg-rgb) / 0.66) 52%, rgb(var(--bg-rgb) / 0));
  opacity: 0; transition: opacity 1.2s var(--ease-out);
}
.story.is-chap .story__veil { opacity: 1; }

/* Ouverture */
.chap--intro { grid-area: 1 / 1 / 3 / 3; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(6px, 2vh, 22px); }
/* Trait fin qui se dessine et relie le titre au texte */
.chap__rule { display: block; height: 1px; margin-bottom: clamp(26px, 3.6vh, 44px); background: linear-gradient(to right, rgb(var(--ink-rgb) / 0.34), rgb(var(--ink-rgb) / 0.1) 60%, rgb(var(--ink-rgb) / 0.03)); transform-origin: left center; }
.chap--intro .chap__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; }
.chap__title { font: 800 clamp(2.8rem, 5.8vw, 6.6rem)/0.92 var(--f-display); letter-spacing: -0.058em; margin: 0; will-change: transform; }
.chap__title .line { display: block; white-space: nowrap; }
.chap__title .line + .line { margin-top: 0.02em; }
/* « jamais. » se tape lettre par lettre, le curseur suit */
.tch.is-off { display: none; }
.tcaret { display: inline-block; width: 0.075em; height: 0.74em; margin-left: 0.1em; border-radius: 0.02em; background: var(--mark); vertical-align: -0.02em; animation: tblink 1.1s linear infinite; }
.tcaret.is-typing { animation: none; opacity: 1; }
@keyframes tblink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.chap__aside { flex: 0 1 410px; min-width: 300px; padding-bottom: 0.3em; }
.chap__aside-in { display: flex; flex-direction: column; align-items: flex-start; will-change: transform; }
.chap__lead { color: var(--g-a6); font-size: clamp(1.02rem, 1.22vw, 1.18rem); line-height: 1.5; margin: 0 0 26px; }

/* Bouton d'appel du hero : au survol, le carré noir s'étend et remplit le bouton */
.hcta {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; height: 76px; padding: 0 12px 0 26px; border-radius: 20px;
  background: var(--g-f2); color: var(--bg);
  transition: transform 0.6s var(--ease-out);
}
.hcta::before {
  content: ""; position: absolute; z-index: -1; top: 12px; right: 12px; width: 52px; height: 52px;
  border-radius: 14px; background: var(--bg);
  transition: transform 0.8s var(--ease-out), border-radius 0.8s var(--ease-out);
}
.hcta__txt { display: flex; flex-direction: column; gap: 4px; }
.hcta__txt b { font: 700 17px/1.2 var(--f-display); letter-spacing: -0.015em; transition: color 0.5s var(--ease-out); }
.hcta__txt em { font-style: normal; font-size: 13px; color: var(--g-6b); transition: color 0.5s var(--ease-out); }
.hcta__ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; color: var(--ink); }
.hcta:hover::before, .hcta:focus-visible::before { transform: scale(18); border-radius: 30px; }
.hcta:hover .hcta__txt b, .hcta:focus-visible .hcta__txt b { color: var(--ink); }
.hcta:hover .hcta__txt em, .hcta:focus-visible .hcta__txt em { color: var(--g-9a); }
.hcta:active { transform: scale(0.985); }
.hcta:hover { box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / 0.14); }
.hlink { margin-top: 22px; }

/* Chapitres : titre sur trois lignes posées, texte, chiffres clés, lien */
.dim { color: var(--g-6c); }
.chap--side { container-type: inline-size; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: clamp(640px, 34vw, 860px); padding-bottom: clamp(12px, 3vh, 40px); }
.chap__h {
  margin: 0 0 clamp(20px, 3.2vh, 36px); color: var(--g-f5);
  font: 700 clamp(2.5rem, min(3.9vw, 7.4vh), 5.25rem)/0.98 var(--f-display); letter-spacing: -0.045em;
  /* La taille suit la largeur de la colonne : la ligne la plus longue y tient toujours */
  font-size: clamp(2rem, min(12.4cqi, 7.4vh), 6.2rem);
}
.chap__h .line { display: block; white-space: nowrap; }
.chap__h .line + .line { margin-top: 0.03em; }
.chap__h .dim { color: var(--g-8a); }
.chap__p {
  max-width: 31em; margin: 0 0 clamp(26px, 4vh, 44px);
  color: var(--g-b9); font-size: clamp(1rem, 0.6rem + 0.55vw, 1.4rem); line-height: 1.62; letter-spacing: -0.003em;
  text-wrap: pretty;
}
.chap__specs {
  container-type: inline-size;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 2.2vw, 32px);
  width: 100%; margin: 0 0 clamp(26px, 4.2vh, 46px); padding: 0;
}
.spec { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 9px; min-width: 0; padding-top: 18px; }
.spec > i { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgb(var(--ink-rgb) / 0.18); transform-origin: left center; }
.spec > i::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 1px; background: var(--mark); }
.spec dd {
  margin: 0; color: var(--ink); white-space: nowrap;
  font: 700 1.6rem/1.05 var(--f-display); font-size: clamp(1.15rem, 5.3cqi, 2.6rem); letter-spacing: -0.035em;
}
.spec dt { font: 500 clamp(11px, 0.5vw, 13px)/1.45 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-8f); }
/* Valeur qui défile avant de se fixer : la largeur finale est réservée, rien ne bouge autour */
.scr { display: inline-grid; }
.scr > span { grid-area: 1 / 1; }
.scr__final.is-hidden { color: transparent; }
.scr__live { pointer-events: none; }
.chap__link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line-2); font-weight: 600; font-size: clamp(15px, 0.75vw, 18px); transition: border-color 0.3s; }
.chap__link svg { transition: transform 0.6s var(--ease-out); }
.chap__link:hover { border-color: var(--ink); }
.chap__link:hover svg { transform: translateX(5px); }

/* Étiquettes accrochées aux formes : point, trait de rappel, pastille */
.story__hud { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.co { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.co__dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 4px rgb(var(--ink-rgb) / 0.1), 0 0 16px rgb(var(--accent-rgb) / 0.55); }
.co__dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgb(var(--ink-rgb) / 0.5); animation: copulse 2.6s var(--ease-out) infinite; }
@keyframes copulse { from { transform: scale(0.35); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.co__lead { position: absolute; left: 0; width: 80px; height: 40px; max-width: none; overflow: visible; fill: none; stroke: rgb(var(--ink-rgb) / 0.55); stroke-width: 1; }
.co__lead path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.9s var(--ease-out) 0.1s; }
.co--ne .co__lead { top: -40px; }
.co--se .co__lead { top: 0; transform: scaleY(-1); }
.co__tag {
  position: absolute; left: 88px; transform: translateY(-50%); white-space: nowrap;
  padding: 8px 13px; border-radius: 99px; border: 1px solid rgb(var(--ink-rgb) / 0.16);
  background: rgb(var(--bg-rgb) / 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 clamp(11px, 0.48vw, 13px)/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--g-e8);
  opacity: 0; translate: -10px 0; transition: opacity 0.5s ease 0.4s, translate 0.9s var(--ease-out) 0.4s;
}
.co--ne .co__tag { top: -34px; }
.co--se .co__tag { top: 34px; }
/* Près du bord droit de l'écran, l'étiquette part vers la gauche */
.co--w .co__lead { left: -80px; transform: scaleX(-1); }
.co--se.co--w .co__lead { transform: scale(-1, -1); }
.co--w .co__tag { left: auto; right: 88px; translate: 10px 0; }
.co.is-on .co__lead path { stroke-dashoffset: 0; }
.co.is-on .co__tag { opacity: 1; translate: 0 0; }


/* =========================================================
   Bandes croisées
   ========================================================= */
.xbands { position: relative; height: clamp(260px, 26vw, 400px); overflow: hidden; }
.xbands--cat { margin-block: clamp(10px, 2vw, 30px) clamp(-20px, -1vw, 0px); }
.xband { position: absolute; left: -6%; right: -6%; top: 50%; overflow: hidden; padding: clamp(16px, 1.7vw, 26px) 0; }
.xband--dark { z-index: 1; background: var(--g-0c); border-block: 1px solid var(--line-2); transform: translateY(-50%) rotate(5deg); }
.xband--light { z-index: 2; background: var(--g-f2); color: var(--bg); transform: translateY(-50%) rotate(-4.5deg); box-shadow: 0 30px 80px -20px rgb(var(--shadow-rgb) / calc(0.9 * var(--shadow-k))); }
.xband__track { display: flex; width: max-content; will-change: transform; }
.xband__group { display: flex; align-items: center; gap: clamp(26px, 2.6vw, 44px); padding-right: clamp(26px, 2.6vw, 44px); }
.xband__group span, .xband__group a { font: 800 clamp(1.7rem, 3.3vw, 3.2rem)/1 var(--f-display); letter-spacing: -0.045em; white-space: nowrap; }
.xband--dark a { color: var(--g-5f); transition: color 0.3s; }
.xband--dark a:nth-of-type(odd) { color: var(--g-f2); }
.xband--dark a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.xband__sep { flex: none; width: clamp(40px, 3.6vw, 62px); height: auto; fill: currentColor; opacity: 0.22; }
.xband--light .xband__sep { fill: var(--bg); opacity: 0.85; }

/* =========================================================
   Slogan « Au service de votre projet »
   ========================================================= */
.slogan { position: relative; height: 240vh; }
.slogan__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; padding-inline: var(--pad); }
.slogan__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(70px, 8vw, 130px); perspective: 1300px; transform-style: preserve-3d; }
.slogan__sign { display: flex; align-items: center; gap: 20px; color: var(--g-9a); font-size: clamp(15px, 1.15vw, 18px); letter-spacing: 0.01em; }
.slogan__sign svg { width: clamp(84px, 6.4vw, 112px); fill: var(--ink); }
.slogan__div { width: 1px; height: 1.6em; background: var(--line-2); }
.slogan__text { margin: 0; text-align: center; font: 800 clamp(3rem, 10.5vw, 15rem)/0.98 var(--f-display); letter-spacing: -0.06em; transform-style: preserve-3d; will-change: transform; }
.slogan__line { display: block; white-space: nowrap; transform-style: preserve-3d; }
.sw { display: inline-block; white-space: nowrap; transform-style: preserve-3d; }
.sc { display: inline-block; transform-style: preserve-3d; will-change: transform, opacity; }
/* « projet. » : un bloc blanc se dessine derrière, le texte passe en noir */
/* La couleur du texte suit le bloc (--hl de 0 à 1, animé au scroll) : elle reste juste dans chaque thème */
.slogan__hl { position: relative; display: inline-block; padding: 0 0.07em; margin: 0 -0.03em; transform-style: preserve-3d; color: color-mix(in srgb, var(--hl-on) calc(var(--hl, 0) * 100%), var(--fg)); }
.slogan__hl::before { content: ""; position: absolute; inset: 0.03em -0.01em -0.15em; z-index: -1; border-radius: 0.06em; background: var(--hl-bg); transform: scaleX(var(--hl, 0)); transform-origin: left; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding-bottom: clamp(120px, 16vw, 220px); display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px 80px; align-items: start; }
.faq .section-head { position: sticky; top: 110px; }

.ftabs { position: relative; display: inline-flex; max-width: 100%; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgb(var(--ink-rgb) / 0.02); }
.ftabs button { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color 0.35s; }
.ftabs button:hover { color: var(--ink); }
.ftabs button.is-active { color: var(--on-ink); }
.ftabs__pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--fg); transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out); }

/* Accordéon (pages offre + accueil sur mobile) */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { position: relative; border-bottom: 1px solid var(--line); }
.faq__item::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--mark); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out); }
.faq__item.is-open::before { transform: scaleX(1); }
.faq__item.is-hidden { display: none; }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; text-align: left; color: var(--g-d6);
  font: 600 clamp(1.05rem, 1.5vw, 1.25rem)/1.3 var(--f-display); letter-spacing: -0.02em;
  transition: color 0.35s;
}
.faq__qt { transition: transform 0.6s var(--ease-out); }
.faq__q:hover, .faq__item.is-open .faq__q { color: var(--ink); }
.faq__q:hover .faq__qt { transform: translateX(10px); }
.faq__arr { display: none; }
.faq__q i { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.6s var(--ease-out), background 0.3s, border-color 0.3s; }
.faq__q:hover i { border-color: rgb(var(--ink-rgb) / 0.55); }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: var(--ink); transition: transform 0.6s var(--ease-out); }
.faq__q i::after { transform: rotate(90deg); }
.faq__item.is-open .faq__q i { transform: rotate(180deg); background: var(--fg); border-color: var(--fg); }
.faq__item.is-open .faq__q i::before, .faq__item.is-open .faq__q i::after { background: var(--on-ink); }
.faq__item.is-open .faq__q i::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 70px 28px 0; color: var(--muted); max-width: 640px; opacity: 0; transform: translateY(-8px); transition: opacity 0.5s, transform 0.7s var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: 0.12s; }

/* Accueil : grandes questions à gauche, réponse dans un panneau à droite */
.faq--home { display: block; padding-top: clamp(110px, 13vw, 190px); padding-bottom: clamp(40px, 6vw, 90px); }
.faq__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 28px 40px; margin-bottom: clamp(44px, 5.5vw, 72px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.faq--home .faq__q { padding: 24px 0; font-size: clamp(1.15rem, 1.65vw, 1.55rem); letter-spacing: -0.025em; color: var(--g-55); }
.faq--home .faq__q:hover { color: var(--g-c8); }

.fpanel {
  position: sticky; top: 110px; display: flex; flex-direction: column; min-height: 440px;
  padding: clamp(28px, 3.2vw, 46px); border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 100% 0%, rgb(var(--ink-rgb) / 0.07), transparent 55%), var(--g-0b);
}
.fpanel__text { margin: 0 0 36px; font: 500 clamp(1.3rem, 1.85vw, 1.8rem)/1.42 var(--f-display); letter-spacing: -0.025em; color: var(--g-ed); }
.fpanel__text .w { padding-bottom: 0.14em; margin-bottom: -0.14em; }
.fpanel__help { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.fpanel__help-txt { flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 2px; }
.fpanel__help-txt b { font: 600 15px/1.3 var(--f-display); color: var(--ink); }
.fpanel__help-txt span { color: var(--muted); font-size: 13px; }
.help__avatars { display: flex; padding-left: 6px; }
.help__avatars i { width: 36px; height: 36px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--f-body); font-style: normal; color: var(--on-ink); background: var(--g-ec); border: 2px solid var(--g-0b); }
.help__avatars i:nth-child(2) { background: var(--g-b9); }
.help__avatars i:nth-child(3) { background: var(--g-7c); color: var(--ink); }

@media (min-width: 901px) {
  .faq--home .faq__item.is-active .faq__q { color: var(--ink); }
  .faq--home .faq__item.is-active .faq__qt { transform: translateX(14px); }
  .faq--home .faq__item::before { top: auto; bottom: -1px; }
  .faq--home .faq__item.is-active::before { transform: scaleX(1); }
  .faq--home .faq__a, .faq--home .faq__q > i { display: none; }
  .faq--home .faq__arr { display: block; flex: none; opacity: 0; transform: translateX(-14px) rotate(-45deg); transition: opacity 0.4s, transform 0.6s var(--ease-out); }
  .faq--home .faq__item.is-active .faq__arr { opacity: 1; transform: none; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { position: relative; border-top: 1px solid var(--line); padding-top: clamp(80px, 9vw, 130px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 60px; }
.footer__logo { display: inline-block; }
.footer__logo svg { width: 124px; height: auto; fill: var(--ink); transition: transform 0.6s var(--ease-out); }
.footer__logo:hover svg { transform: scale(1.05); }
.footer__brand p { color: var(--muted); max-width: 320px; margin: 22px 0 30px; font-size: 15.5px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--g-cf); transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.5s var(--ease-out); }
.footer__social a:hover { background: var(--g-f2); border-color: var(--g-f2); color: var(--bg); transform: translateY(-4px); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; padding-top: 4px; }
.footer__cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer__cols a { color: var(--g-bd); font-size: 15.5px; padding: 5px 0; transition: color 0.3s; }
.footer__cols a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 30px; margin-top: clamp(70px, 8vw, 110px); padding-block: 24px; color: var(--muted); font-size: 14px; position: relative; }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--line); }
.footer__up { display: inline-flex; align-items: center; gap: 12px; color: var(--g-d4); font-weight: 500; transition: color 0.3s; }
.footer__up-ic { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.footer__up-ic svg { transform: rotate(-90deg); transition: transform 0.5s var(--ease-out); }
.footer__up:hover { color: var(--ink); }
.footer__up:hover .footer__up-ic { background: var(--g-f2); border-color: var(--g-f2); color: var(--bg); }
.footer__up:hover .footer__up-ic svg { transform: rotate(-90deg) translateX(3px); }
/* Logo géant en grille de points lumineux */
.footer__giant { max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding: clamp(34px, 4.5vw, 70px) var(--pad) clamp(30px, 3.5vw, 56px); }
.footer__dots { display: block; width: 100%; aspect-ratio: 968 / 274; }

/* =========================================================
   Pages offre : hero
   ========================================================= */
.chero { --cp: 0; position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
#cat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(110% 80% at 70% 45%, transparent 45%, rgb(var(--bg-rgb) / 0.9) 100%),
    linear-gradient(to top, rgb(var(--bg-rgb) / 0.9) 0%, transparent 45%);
}
.chero__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(110px + env(safe-area-inset-top, 0px)); padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.chero__inner a { pointer-events: auto; }
.chero__title {
  margin: 0 0 32px; max-width: 12ch;
  font: 800 clamp(3.2rem, 9.5vw, 10rem)/0.9 var(--f-display); letter-spacing: -0.06em;
}
.chero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 56px; flex-wrap: wrap; }
.chero__lead { color: var(--g-b0); max-width: 520px; margin: 0; font-size: clamp(1rem, 1.2vw, 1.1rem); }
.chero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.chero__hl { list-style: none; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chero__hl b { display: block; font: 600 clamp(1.1rem, 1.6vw, 1.45rem)/1.2 var(--f-display); letter-spacing: -0.02em; }
.chero__hl span { color: var(--muted); font-size: 13px; }

/* =========================================================
   Pages offre : offres / tarifs
   ========================================================= */
.offers { padding-block: clamp(110px, 14vw, 180px) clamp(60px, 8vw, 100px); }
.toggle { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { position: relative; width: 46px; height: 26px; border-radius: 99px; background: var(--bg-3); border: 1px solid var(--line-2); transition: background 0.3s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform 0.5s var(--ease-out), background 0.3s; }
.toggle input:checked + i { background: var(--fg); }
.toggle input:checked + i::after { transform: translateX(20px); background: var(--on-ink); }
.toggle input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }
.toggle em { font-style: normal; color: var(--fg); margin-left: 4px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-1);
  transition: transform 0.6s var(--ease-out), border-color 0.4s;
}
.plan:hover { transform: translateY(-8px); border-color: var(--line-2); }
.plan--hot { background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, conic-gradient(from var(--ang, 0deg), var(--mark) 0deg, var(--g-33) 70deg, var(--g-33) 290deg, var(--mark) 360deg) border-box; border: 1px solid transparent; animation: ang 5s linear infinite; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ang { to { --ang: 360deg; } }
.plan__top { display: flex; justify-content: space-between; align-items: center; color: var(--dim); margin-bottom: 26px; min-height: 24px; }
.plan__tag { padding: 4px 10px; border-radius: 99px; background: var(--fg); color: var(--on-ink); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px; }
.plan__name { font: 700 1.6rem/1.1 var(--f-display); letter-spacing: -0.03em; margin: 0; }
.plan__desc { color: var(--muted); font-size: 14px; margin: 6px 0 22px; min-height: 2.6em; }
.plan__price { display: flex; align-items: baseline; gap: 4px; }
.plan__price b { font: 700 2.8rem/1 var(--f-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.plan__price span { color: var(--muted); font-size: 14px; }
.plan__billed { color: var(--dim); margin: 8px 0 22px; min-height: 1.4em; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; font-size: 14px; color: var(--g-cf); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; width: 5px; height: 5px; margin-top: 0.62em; border-radius: 50%; background: var(--dim); flex: none; }
.plan .btn { margin-top: auto; }
.offers__note { text-align: center; color: var(--dim); font-size: 14px; margin: 32px 0 0; }

/* =========================================================
   Page jeu (jeu.html?g=…)
   ========================================================= */
.ghero { background: var(--bg); }
.ghero__bg { position: absolute; inset: -2% 0 auto; height: 104%; overflow: hidden; transform: translateY(calc(var(--hp, 0) * 22%)); }
.ghero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.ghero__bg--discord { display: grid; place-items: center; background: radial-gradient(90% 90% at 70% 30%, #5865f2, #23277a 60%, var(--bg)); }
.ghero__bg--mic { display: grid; place-items: center; background: radial-gradient(90% 90% at 70% 30%, var(--g-3c), var(--g-14) 60%, var(--bg)); }
.ghero__bg .gsym { width: min(34vw, 380px); max-height: none; margin: -8vh 0 0 30vw; opacity: 0.9; stroke-width: 1.1; }
.ghero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgb(var(--bg-rgb) / 0.86) 26%, rgb(var(--bg-rgb) / 0.25) 62%, rgb(var(--bg-rgb) / 0.55) 100%),
    linear-gradient(to right, rgb(var(--bg-rgb) / 0.8) 0%, rgb(var(--bg-rgb) / 0) 62%);
}
.ghero__logo { display: block; width: auto; max-width: min(340px, 62vw); max-height: 110px; margin-bottom: 26px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6)); }
.ghero .chero__title { max-width: 16ch; font-size: clamp(2.8rem, 7.2vw, 7.4rem); }
.ghero .chero__lead { color: var(--g-c9); }

.gtools { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.gseg { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--ink-rgb) / 0.03); }
.gseg__pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--fg); transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out); }
.gseg button { position: relative; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color 0.4s; }
.gseg button:hover { color: var(--ink); }
.gseg button.is-active { color: var(--on-ink); }

.gnote { display: flex; gap: 16px; align-items: flex-start; max-width: 880px; margin: 0 auto 44px; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 0% 0%, rgb(var(--ink-rgb) / 0.07), transparent 60%), var(--bg-1); }
.gnote svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gnote p { margin: 0; color: var(--g-c4); font-size: 15px; }
.gvar__desc { max-width: 720px; margin: 0 auto 34px; text-align: center; color: var(--muted); }

.gplans { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.gplans[style*="--n:3"] { --cols: 3; max-width: 1060px; margin-inline: auto; }
.gplans[style*="--n:5"] { --cols: 5; }
.gplan { padding: 24px; }
.gplan__name { font: 700 1.25rem/1.15 var(--f-display); letter-spacing: -0.02em; margin: 0 0 18px; }
/* Pastille posée sur le bord haut de la carte (Best-seller, Populaire) */
.gplan__tag { position: absolute; top: -11px; left: 22px; }
.gplan__desc { min-height: 2.8em; margin: -12px 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.gplan .plan__price b { font-size: 2.5rem; }
.gplan .plan__billed { margin: 8px 0 20px; }
.gplan ul { gap: 10px; margin: 0; padding: 18px 0 0; }
.gplan li::before { display: none; }
.gplan li { align-items: flex-start; gap: 11px; line-height: 1.4; }
.gplan li svg { flex: none; width: 17px; height: 17px; margin-top: 1px; fill: none; stroke: var(--g-8a); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gplan .gplan__specs { margin-bottom: 18px; color: var(--g-e4); }
.gplan .gplan__feat { margin-bottom: 24px; color: var(--muted); font-size: 13.5px; }
.gplan__feat .gck { stroke: var(--ink); stroke-width: 2; }
.gplan.plan--hot .gplan__specs svg { stroke: var(--ink); }
.gplans[style*="--n:5"] .gplan { padding: 22px 20px; }
.gplans[style*="--n:5"] .plan__price b { font-size: 2.15rem; }

/* Gammes VPS et solutions réseau : 4 cartes par ligne (3 pour les solutions), la dernière ligne centrée */
.rplans { --cols: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.rplans > .plan { flex: 0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols)); min-width: 0; }
.rplans--3 { --cols: 3; max-width: 1180px; margin-inline: auto; }
.sol__ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(var(--ink-rgb) / 0.03); }
.sol__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sol .gplan__name { margin-bottom: 10px; }
.sol__desc { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }

/* Options payantes (hébergement web) */
.addons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; }
.addons__t { margin-right: 6px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.addon { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; }
.addon b { font-weight: 600; }
.addon em { font-style: normal; color: var(--muted); }

.gmore { padding-bottom: clamp(100px, 13vw, 170px); }
.gmore__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }

/* Vignettes en grand (catalogue, autres jeux) */
.gcat__grid .gc, .gmore__grid .gc { gap: 12px; }
.gcat__grid .gc__img, .gmore__grid .gc__img { border-radius: 16px; }
.gcat__grid .gc__icon, .gmore__grid .gc__icon { left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 9px; padding: 3px; }
.gcat__grid .gc__row b, .gmore__grid .gc__row b { font-size: 16px; }
.gcat__grid .gc__row em, .gmore__grid .gc__row em { font-size: 13.5px; }
.gcat__grid .gsym, .gmore__grid .gsym { width: 30%; }

/* Catalogue de la page Serveurs de jeu */
.gcat__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 34px; }
.gcat__tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.gcat__tabs::-webkit-scrollbar { display: none; }
.gcat__search { width: min(250px, 100%); }
.gcat__search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.gcat__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; }
.gcat__tabs button { padding: 10px 16px; }

@media (max-width: 1180px) {
  .gplans, .gplans[style*="--n:5"] { --cols: 2; }
  .gplans[style*="--n:3"] { --cols: 3; }
  .rplans, .rplans--3 { --cols: 2; }
  .gcat__grid, .gmore__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gplans[style*="--n:3"] { --cols: 1; max-width: 520px; }
  .gcat__grid, .gmore__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .gcat__search { width: 100%; }
}
@media (max-width: 640px) {
  .gplans, .gplans[style*="--n:5"] { --cols: 1; }
  .ghero__logo { max-height: 74px; margin-bottom: 18px; }
  .ghero__bg .gsym { width: 46vw; margin: -30vh 0 0 24vw; }
  .ghero__bg img { object-position: 60% 30%; }
  .gtools { width: 100%; justify-content: space-between; }
  .gseg { width: 100%; }
  .gseg button { flex: 1; padding: 10px 12px; font-size: 13px; }
  .rplans, .rplans--3 { --cols: 1; }
  /* Beaucoup d'onglets (gammes VPS) : ils défilent au lieu de se tasser */
  .gseg--scroll { overflow-x: auto; scrollbar-width: none; }
  .gseg--scroll::-webkit-scrollbar { display: none; }
  .gseg--scroll button { flex: 1 0 auto; }
  .gcat__grid .gc__row b, .gmore__grid .gc__row b { font-size: 14.5px; }
}

/* Domaines */
.dsearch {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 24px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-1);
  max-width: 820px; margin-bottom: 40px; transition: border-color 0.3s, box-shadow 0.4s;
}
.dsearch:focus-within { border-color: rgb(var(--ink-rgb) / 0.5); box-shadow: 0 0 0 6px rgb(var(--ink-rgb) / 0.04); }
.dsearch__pre { color: var(--dim); font-size: 15px; }
.dsearch input { flex: 1; min-width: 0; height: 48px; background: none; border: 0; outline: none; color: var(--fg); font: 600 clamp(1.1rem, 2vw, 1.5rem)/1 var(--f-display); letter-spacing: -0.02em; }
.dsearch input::placeholder { color: var(--g-3d); }
.tlds { border-top: 1px solid var(--line); }
.tld { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 20px 4px; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease-out), background 0.4s; }
.tld:hover { padding-inline: 16px; background: rgb(var(--ink-rgb) / 0.025); }
.tld__name { font: 700 clamp(1.4rem, 2.6vw, 2.2rem)/1 var(--f-display); letter-spacing: -0.04em; word-break: break-all; }
.tld__q { color: var(--muted); }
.tld__price { color: var(--muted); font-size: 14px; white-space: nowrap; }
.tld__price b { color: var(--fg); font-weight: 600; font-size: 16px; }

/* Configurateur */
.config { padding-bottom: clamp(100px, 14vw, 180px); }
.config__box { display: grid; grid-template-columns: 1.35fr 1fr; border-radius: 26px; border: 1px solid var(--line); overflow: hidden; background: var(--bg-1); }
.config__left { padding: clamp(28px, 4vw, 52px); }
.config__right { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 52px); border-left: 1px solid var(--line); background: var(--bg-2); }
.config__label { color: var(--muted); font-size: 14px; }
.config__price { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 26px; }
.config__price b { font: 800 clamp(3.4rem, 6vw, 5rem)/0.95 var(--f-display); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.config__price span { font: 600 1.6rem/1 var(--f-display); margin-top: 6px; }
.config__price small { display: block; font: 400 13px/1.4 var(--f-body); color: var(--muted); margin-top: 6px; }
.config__sum { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.config__sum li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
.config__sum span { color: var(--muted); }
.config__sum b { font-weight: 500; text-align: right; }
.config__right .btn { margin-top: auto; }
.config__eta { text-align: center; color: var(--muted); margin-top: 14px; }
.slider { margin-bottom: 28px; }
.slider__top { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 15px; }
.slider__top span { color: var(--muted); }
.slider__top b { font-weight: 500; font-size: 14px; }
input[type="range"] {
  --fill: 30%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--mark) var(--fill), rgb(var(--ink-rgb) / 0.1) var(--fill));
}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgb(var(--ink-rgb) / 0.1), 0 4px 14px rgb(var(--shadow-rgb) / calc(0.5 * var(--shadow-k))); transition: box-shadow 0.3s; }
input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgb(var(--ink-rgb) / 0.14), 0 4px 14px rgb(var(--shadow-rgb) / calc(0.5 * var(--shadow-k))); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgb(var(--ink-rgb) / 0.1); }
input[type="range"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.chips-group { margin-top: 26px; }
.chips-label { display: block; color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; color: var(--g-c8); transition: all 0.35s var(--ease); }
.chips button:hover { border-color: rgb(var(--ink-rgb) / 0.4); color: var(--ink); }
.chips button.is-active { background: var(--fg); color: var(--on-ink); border-color: var(--fg); }
.chips em { font-style: normal; margin-left: 2px; color: var(--dim); }
.chips button.is-active em { color: var(--g-6a); }
.chips-group--first { margin: 0 0 30px; }
.config__billed { margin: -16px 0 26px; color: var(--muted); font-size: 13px; }
.config__hint { margin: -12px 0 28px; color: var(--dim); font-size: 13px; line-height: 1.5; }
/* Offre pas encore ouverte : bouton inerte */
.btn.is-soon { margin-top: auto; opacity: 0.55; cursor: default; pointer-events: none; }
.chips-group .config__hint { margin: 12px 0 0; }

/* Inclus */
.feats { padding-bottom: clamp(100px, 14vw, 180px); }
.feats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; }
.feat { position: relative; padding-top: 30px; }
.feat__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); transform-origin: left; }
.feat h3 { font: 700 1.4rem/1.15 var(--f-display); letter-spacing: -0.03em; margin: 0 0 10px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; max-width: 340px; }

/* Process */
.steps { padding-bottom: clamp(100px, 14vw, 180px); }
.steps__track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 44px; }
.steps__line { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line); }
.steps__line i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.step { position: relative; }
.step__dot { position: absolute; top: -44px; left: 0; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.step.is-on .step__dot { background: var(--mark); border-color: var(--mark); box-shadow: 0 0 18px rgb(var(--accent-rgb) / 0.6); }
.step h3 { font: 700 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--f-display); letter-spacing: -0.04em; margin: 0 0 10px; }
.step p { margin: 0; color: var(--muted); max-width: 320px; }

/* Grande liste */
.biglist { padding-bottom: clamp(100px, 14vw, 180px); }
.biglist__items { margin: 0; font: 700 clamp(1.8rem, 4.4vw, 4rem)/1.18 var(--f-display); letter-spacing: -0.045em; }
/* --lit (0 à 1) est animé au scroll : le mot s'allume avec la couleur du thème */
.biglist__items span { white-space: nowrap; transition: color 0.3s; color: color-mix(in srgb, var(--fg) calc(var(--lit, 1) * 100%), var(--g-2a)); }
.biglist__items span:hover { color: var(--ink) !important; }
.biglist__items i { display: inline-block; width: 0.16em; height: 0.16em; margin: 0 0.42em; border-radius: 50%; background: var(--g-3a); vertical-align: middle; }

/* Page suivante */
.next { border-top: 1px solid var(--line); }
.next__link {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: clamp(90px, 13vw, 170px) var(--pad); text-align: center;
  transition: color 0.6s var(--ease-out);
}
.next__name { font: 800 clamp(2.8rem, 9vw, 8.5rem)/0.95 var(--f-display); letter-spacing: -0.06em; }
.next__fill { position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform 0.8s var(--ease-io); }
.next__link:hover { color: var(--on-ink); }
.next__link:hover .next__fill { transform: scaleY(1); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1440px) {
  .nav__links a { padding: 10px 13px; font-size: 14px; }
}
@media (max-width: 1320px) {
  .nav__login { display: none; }
  .mpanel--games { grid-template-columns: 190px minmax(0, 1fr); }
  .mpanel--games .mside { display: none; }
  .mg__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mg__search { padding: 0 12px; gap: 8px; }
  .mg__search input { font-size: 13.5px; }
}
@media (max-width: 1180px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__center { display: none; }
  .nav__burger { display: block; }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .story { height: 420vh; }
  .chap__bottom { flex-direction: column; align-items: flex-start; gap: 22px; }
  .chap--intro .chap__bottom { align-items: stretch; gap: 22px; }
  .chap--intro .chap__aside { flex: none; width: 100%; min-width: 0; }
  .chap__title .line { white-space: normal; }
  /* Mobile : forme en haut, texte en bas */
  .story__ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 0; }
  .chap--intro { grid-area: 1 / 1 / -1 / -1; }
  .story__stage { grid-area: 1 / 1 / 2 / 2; }
  .chap--side { grid-area: 2 / 1 / 3 / 2; justify-content: flex-end; max-width: none; padding-bottom: 0; }
  .story__veil { grid-area: 2 / 1 / 3 / 2; margin: -70px calc(var(--pad) * -1) -40px; background: linear-gradient(to top, rgb(var(--bg-rgb) / 0.94) 55%, rgb(var(--bg-rgb) / 0)); }
  .chap__h { font-size: clamp(2rem, min(10.5cqi, 5.4vh), 3.2rem); margin-bottom: 14px; }
  .chap__p { margin-bottom: 20px; font-size: 0.96rem; line-height: 1.55; }
  .chap__specs { margin-bottom: 20px; }
  .spec { padding-top: 12px; gap: 6px; }
  .spec dt { font-size: 10px; letter-spacing: 0.05em; }
  .story__hud { display: none; }
  .ftabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .config__box { grid-template-columns: 1fr; }
  .config__right { border-left: 0; border-top: 1px solid var(--line); }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .faq__grid { grid-template-columns: 1fr; gap: 28px; }
  .faq--home .faq__q { color: var(--g-d6); }
  .fpanel { position: static; min-height: 0; padding: 22px; }
  .fpanel__text { display: none; }
  .fpanel__help { margin-top: 0; padding-top: 0; border-top: 0; }
  .faq .section-head { position: static; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .chero__hl { grid-template-columns: repeat(2, 1fr); }
  .feats__grid { grid-template-columns: 1fr 1fr; }
  .steps__track { grid-template-columns: 1fr; gap: 44px; padding-top: 0; padding-left: 40px; }
  .steps__line { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps__line i { width: 100%; height: 100%; transform-origin: top; transform: scaleY(0); }
  .step__dot { top: 4px; left: -40px; }
}
@media (max-width: 640px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .xbands { height: 240px; }
  .xband--dark { transform: translateY(-50%) rotate(9deg); }
  .xband--light { transform: translateY(-50%) rotate(-8deg); }
  .slogan { height: 200vh; }
  .slogan__text { font-size: 15.5vw; line-height: 1.02; }
  .slogan__line { display: inline; white-space: normal; }
  .nav__login { display: none; }
  .nav { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .nav__logo svg { width: 84px; }
  .nav .theme { display: none; }
  .menu__theme { display: flex; }
  .nav__cta svg { display: none; }
  .chero__ctas .btn { flex: 1 1 auto; }
  .hcta { height: 70px; }
  .hero__scroll { display: none; }
  .plans { grid-template-columns: 1fr; }
  .feats__grid { grid-template-columns: 1fr; gap: 40px; }
  .faq__a p { padding-right: 0; }
  .chero { height: auto; min-height: 100svh; }
  .chero__inner { padding-top: 52svh; }
  .chero__title { font-size: clamp(2.4rem, 11.5vw, 4.4rem); }
  .chero__hl { margin-top: 28px; }
  .dsearch { flex-wrap: wrap; padding: 10px; border-radius: 22px; }
  .dsearch__pre { padding-left: 10px; }
  .dsearch .btn { width: 100%; }
  .tld { grid-template-columns: 1fr auto; }
  .tld .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
