/* ==========================================================================
   JALIEN UNIVERSE — DESIGN SYSTEM & STYLESHEET
   Aesthetics: Deep Space / Cyber-Futuristic / Awwwards-Level HUD
   ========================================================================== */

:root {
  /* Palette de couleurs */
  --bg-deep: #05070e;
  --bg-surface: rgba(11, 16, 33, 0.75);
  --bg-surface-elevated: rgba(18, 26, 52, 0.85);
  --bg-glass: rgba(13, 20, 42, 0.55);

  --cyan-core: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.45);
  --blue-neon: #0077fe;
  --purple-plasma: #9d4edd;
  --purple-glow: rgba(157, 78, 221, 0.35);
  --gold-rune: #ffd166;
  --gold-glow: rgba(255, 209, 102, 0.4);
  --orange-volt: #ff9f1c;
  --red-yt: #ff2a4b;
  --red-glow: rgba(255, 42, 75, 0.45);
  --green-online: #00ff88;

  --text-main: #f0f4fc;
  --text-muted: #8d9bb5;
  --text-dim: #6a7894;

  --border-subtle: rgba(0, 240, 255, 0.15);
  --border-active: rgba(0, 240, 255, 0.6);
  --border-gold: rgba(255, 209, 102, 0.35);

  /* Typographie */
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-hud: 'Rajdhani', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rayons et ombres */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-neon-cyan: 0 0 25px rgba(0, 240, 255, 0.3), inset 0 0 15px rgba(0, 240, 255, 0.1);
  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.6);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-smooth: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  /* Transparent : un fond opaque ici masquerait la toile d'étoiles (z-index négatif) */
  background-color: transparent;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--cyan-core);
  color: #030712;
}

/* Barre de défilement sur-mesure */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #03050b; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan-core), var(--purple-plasma));
  border-radius: 10px;
  border: 2px solid #03050b;
}
html { scrollbar-color: var(--cyan-core) #03050b; scrollbar-width: thin; }

/* Focus clavier bien visible */
:focus-visible {
  outline: 2px solid var(--cyan-core);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 10001;
  background: var(--cyan-core);
  color: #030712;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-hud);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Séquence de démarrage
   -------------------------------------------------------------------------- */
.boot-screen {
  display: none;
}

.js .boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: radial-gradient(circle at 50% 45%, #0b1430 0%, var(--bg-deep) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease, clip-path 0.8s var(--ease-out);
  clip-path: inset(0 0 0 0);
}

.booted .boot-screen {
  display: none;
}

.boot-screen.done {
  opacity: 0;
  visibility: hidden;
  clip-path: inset(50% 0 50% 0);
  pointer-events: none;
}

.boot-inner {
  width: min(420px, 86vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.boot-logo {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 22px var(--cyan-core));
  animation: corePulse 2s ease-in-out infinite alternate;
}

.boot-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.25em;
}

.boot-log {
  width: 100%;
  height: 4.8em;
  overflow: hidden;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.boot-log div::before {
  content: '> ';
  color: var(--cyan-core);
}

.boot-bar {
  width: 100%;
  height: 3px;
  background: rgba(0, 240, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.boot-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan-core), var(--purple-plasma));
  box-shadow: 0 0 12px var(--cyan-core);
  transition: width 0.15s linear;
}

.boot-percent {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--cyan-core);
  letter-spacing: 0.2em;
}

/* --------------------------------------------------------------------------
   Canvas Spatial & Overlays
   -------------------------------------------------------------------------- */
#spaceCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.scanlines-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 998;
  pointer-events: none;
  opacity: 0.18;
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(3, 4, 10, 0.8) 100%);
  z-index: -1;
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan-core), var(--purple-plasma), var(--gold-rune));
  box-shadow: 0 0 10px var(--cyan-core);
  z-index: 1001;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Curseur Viseur Personnalisé
   (actif uniquement avec une souris : le curseur système est alors masqué)
   -------------------------------------------------------------------------- */
.custom-cursor,
.cursor-dot {
  display: none;
}

html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}

html.has-cursor .custom-cursor,
html.has-cursor .cursor-dot {
  display: block;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out), opacity 0.2s ease;
}

/* Anneau */
.custom-cursor::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(0, 240, 255, 0.55);
  border-radius: 50%;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out), opacity 0.25s ease;
}

/* Crochets du viseur */
.cursor-bracket {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--cyan-core);
  border-style: solid;
  border-width: 0;
  filter: drop-shadow(0 0 4px var(--cyan-core));
  transition: all 0.3s var(--ease-out);
}
.cursor-bracket.tl { top: -4px; left: -4px; border-top-width: 2px; border-left-width: 2px; }
.cursor-bracket.tr { top: -4px; right: -4px; border-top-width: 2px; border-right-width: 2px; }
.cursor-bracket.bl { bottom: -4px; left: -4px; border-bottom-width: 2px; border-left-width: 2px; }
.cursor-bracket.br { bottom: -4px; right: -4px; border-bottom-width: 2px; border-right-width: 2px; }

.cursor-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  font-family: var(--font-hud);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-rune);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--cyan-core);
  box-shadow: 0 0 10px var(--cyan-core);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  will-change: transform;
  transition: opacity 0.2s ease, background 0.2s ease;
}

/* Survol d'un élément cliquable : le viseur se verrouille */
.custom-cursor.active {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
}
.custom-cursor.active::before {
  border-color: rgba(255, 209, 102, 0.7);
  border-style: dashed;
  animation: ringRotate 6s linear infinite;
}
.custom-cursor.active .cursor-bracket {
  border-color: var(--gold-rune);
  filter: drop-shadow(0 0 5px var(--gold-rune));
}
.custom-cursor.active .cursor-bracket.tl { top: -8px; left: -8px; }
.custom-cursor.active .cursor-bracket.tr { top: -8px; right: -8px; }
.custom-cursor.active .cursor-bracket.bl { bottom: -8px; left: -8px; }
.custom-cursor.active .cursor-bracket.br { bottom: -8px; right: -8px; }
.custom-cursor.active .cursor-label { opacity: 1; }
.cursor-dot.active { background: var(--gold-rune); box-shadow: 0 0 12px var(--gold-rune); }

/* Survol d'un texte : fine barre */
.custom-cursor.text {
  width: 4px;
  height: 30px;
  margin: -15px 0 0 -2px;
}
.custom-cursor.text::before {
  border-radius: 2px;
  border-color: rgba(0, 240, 255, 0.35);
}
.custom-cursor.text .cursor-bracket { opacity: 0; }

/* Clic : impulsion */
.custom-cursor.pressed::before {
  transform: scale(0.7);
  border-color: #fff;
}

.custom-cursor.hidden,
.cursor-dot.hidden {
  opacity: 0;
}

.click-ripple {
  position: fixed;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 1.5px solid var(--cyan-core);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: clickRipple 0.6s var(--ease-out) forwards;
}

@keyframes clickRipple {
  to { transform: scale(7); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Apparitions au défilement
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  translate: 0 36px;
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* --------------------------------------------------------------------------
   Typographie & Éléments Réutilisables
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.accent-text {
  color: var(--cyan-core);
  text-shadow: 0 0 10px var(--cyan-glow);
}

kbd {
  font-family: var(--font-display);
  font-size: 0.75em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--border-active);
  border-radius: 4px;
  color: var(--cyan-core);
  background: rgba(0, 240, 255, 0.08);
}

/* Effet glitch du titre principal */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  opacity: 0;
}

.glitch::before {
  background-image: linear-gradient(90deg, #ff2a4b, #ff2a4b);
  animation: glitchA 5s infinite steps(1);
}

.glitch::after {
  background-image: linear-gradient(90deg, var(--cyan-core), var(--cyan-core));
  animation: glitchB 5s infinite steps(1);
}

@keyframes glitchA {
  0%, 89%, 100% { opacity: 0; transform: none; clip-path: none; }
  90% { opacity: 0.8; transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); }
  92% { opacity: 0.8; transform: translate(3px, -1px); clip-path: inset(60% 0 8% 0); }
  94% { opacity: 0.8; transform: translate(-2px, 0); clip-path: inset(35% 0 40% 0); }
  96% { opacity: 0; }
}

@keyframes glitchB {
  0%, 89%, 100% { opacity: 0; transform: none; clip-path: none; }
  91% { opacity: 0.8; transform: translate(4px, -1px); clip-path: inset(45% 0 30% 0); }
  93% { opacity: 0.8; transform: translate(-3px, 2px); clip-path: inset(5% 0 70% 0); }
  95% { opacity: 0.8; transform: translate(2px, 0); clip-path: inset(75% 0 2% 0); }
  97% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Barre Supérieure Orbitale (Header)
   -------------------------------------------------------------------------- */
.orbital-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 7, 14, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-smooth), border-color var(--transition-smooth), transform 0.45s var(--ease-out);
}

.orbital-header.scrolled {
  background: rgba(5, 7, 14, 0.88);
  border-bottom-color: var(--border-subtle);
}

.orbital-header.hide-up {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: padding var(--transition-smooth);
}

.orbital-header.scrolled .header-container {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand-id {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-sigil {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-spin {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--cyan-core));
  animation: corePulse 4s ease-in-out infinite alternate;
}

@keyframes corePulse {
  0% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 6px var(--cyan-core)); }
  100% { transform: scale(1.08) rotate(360deg); filter: drop-shadow(0 0 16px var(--cyan-core)); }
}

.beacon-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--cyan-core);
  animation: ripple 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes ripple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: #fff;
}

.telemetry-tag {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--cyan-core);
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-hud);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.nav-num {
  color: var(--cyan-core);
  font-size: 0.75rem;
  margin-right: 0.3rem;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  text-shadow: 0 0 10px var(--cyan-glow);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan-core);
  box-shadow: 0 0 8px var(--cyan-core);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav-item:hover::after,
.nav-item.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Boutons HUD */
.hud-btn {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.hud-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan-core);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  color: #fff;
}

/* Sélecteur de langue FR / EN */
.lang-toggle {
  gap: 0.3rem;
  padding: 0.55rem 0.75rem;
}

.lang-toggle span {
  opacity: 0.45;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.lang-toggle .lang-sep {
  opacity: 0.25;
}

.lang-toggle span.on {
  opacity: 1;
  color: var(--cyan-core);
  text-shadow: 0 0 10px var(--cyan-glow);
}

/* Égaliseur animé du bouton son */
.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.sound-bars i {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 1px;
  transition: height 0.2s ease;
}

.sound-toggle.sound-active {
  border-color: var(--green-online);
  color: var(--green-online);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.sound-toggle.sound-active .sound-bars i {
  animation: eq 0.9s ease-in-out infinite alternate;
}
.sound-toggle.sound-active .sound-bars i:nth-child(2) { animation-delay: -0.3s; }
.sound-toggle.sound-active .sound-bars i:nth-child(3) { animation-delay: -0.6s; }
.sound-toggle.sound-active .sound-bars i:nth-child(4) { animation-delay: -0.15s; }

@keyframes eq {
  0% { height: 3px; }
  100% { height: 14px; }
}

.hyperspace-btn.active {
  border-color: var(--gold-rune);
  color: var(--gold-rune);
  animation: hyperFlash 0.5s infinite alternate;
}

@keyframes hyperFlash {
  0% { box-shadow: 0 0 5px var(--gold-rune); }
  100% { box-shadow: 0 0 25px var(--gold-rune); }
}

/* Bouton menu mobile */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 240, 255, 0.06);
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--cyan-core);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease, top 0.35s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Bouton Primaire */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.85), rgba(0, 119, 254, 0.9));
  color: #030814;
  font-family: var(--font-hud);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  white-space: nowrap;
}

/* Reflet balayant au survol */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out);
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-primary:hover {
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.7);
}

.btn-primary .arrow {
  transition: transform var(--transition-fast);
}
.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-primary.glow-cyan {
  background: linear-gradient(135deg, #00f0ff, #0077fe);
  color: #030712;
}

.btn-primary.glow-gold {
  background: linear-gradient(135deg, #ffd166, #f77f00);
  color: #120900;
  box-shadow: 0 0 20px var(--gold-glow);
}
.btn-primary.glow-gold:hover {
  box-shadow: 0 0 35px var(--gold-glow);
}

.btn-primary.glow-red {
  background: linear-gradient(135deg, #ff2a4b, #b5179e);
  color: #fff;
  box-shadow: 0 0 20px var(--red-glow);
}
.btn-primary.glow-red:hover {
  box-shadow: 0 0 35px var(--red-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-family: var(--font-hud);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-primary:not(.magnetic):hover,
.btn-secondary:not(.magnetic):hover {
  transform: translateY(-2px);
}

.subscribe-btn {
  background: linear-gradient(135deg, #ff1a3c, #c9002b);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 26, 60, 0.4);
}
.subscribe-btn:hover {
  background: linear-gradient(135deg, #ff3352, #e60032);
  box-shadow: 0 0 35px rgba(255, 26, 60, 0.7);
}

.yt-icon {
  width: 18px;
  height: 18px;
}

.yt-icon-inline {
  width: 20px;
  height: 20px;
  fill: #ff2a4b;
}

/* --------------------------------------------------------------------------
   Hero Section Spatiale
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  padding: 8rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan-core);
  margin-bottom: 1.5rem;
}

.status-light {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-online);
  box-shadow: 0 0 10px var(--green-online);
  animation: blink 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.title-sub {
  font-family: var(--font-hud);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  --reveal-delay: 0.1s;
}

.title-main {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan-core) 75%, var(--purple-plasma) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.35));
  animation: titleShine 8s ease-in-out infinite alternate;
  --reveal-delay: 0.2s;
}

@keyframes titleShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-role {
  font-family: var(--font-hud);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 1.2rem;
  min-height: 2.1rem;
  --reveal-delay: 0.3s;
}

.role-prefix {
  color: var(--cyan-core);
}

.caret {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: var(--cyan-core);
  box-shadow: 0 0 8px var(--cyan-core);
  animation: caretBlink 1s steps(1) infinite;
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2.2rem;
  --reveal-delay: 0.4s;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 2.5rem;
  padding: 1.1rem 1.6rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  width: fit-content;
  max-width: 100%;
  --reveal-delay: 0.5s;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 12px var(--cyan-glow);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  --reveal-delay: 0.6s;
}

.hero-cta-group.centered {
  justify-content: center;
}

/* Scène Hologramme Avatar */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  --reveal-delay: 0.35s;
}

.hologram-stage {
  position: relative;
  width: 380px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}

.holo-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.holo-ring-1 {
  width: 360px;
  height: 360px;
  border: 1px dashed rgba(0, 240, 255, 0.35);
  animation: ringRotate 24s linear infinite;
}

.holo-ring-2 {
  width: 420px;
  height: 420px;
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-top-color: var(--cyan-core);
  animation: ringRotateReverse 18s linear infinite;
}

.holo-ring-3 {
  width: 300px;
  height: 300px;
  border: 1px dotted rgba(255, 209, 102, 0.3);
  animation: ringRotate 30s linear infinite;
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ringRotateReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.avatar-card {
  position: relative;
  width: 280px;
  height: 360px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.18), rgba(7, 10, 25, 0.95));
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.25), inset 0 0 30px rgba(0, 240, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: box-shadow var(--transition-smooth);
}

.avatar-card:hover {
  box-shadow: 0 0 70px rgba(0, 240, 255, 0.45);
}

.avatar-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  pointer-events: none;
}

.avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% top;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

.avatar-glow {
  position: absolute;
  top: 10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--cyan-core) 0%, transparent 70%);
  opacity: 0.25;
  filter: blur(40px);
  pointer-events: none;
}

.avatar-hud-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(5, 7, 14, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan-core);
}

.hud-dot {
  width: 6px;
  height: 6px;
  background: var(--green-online);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-online);
}

.floating-pill {
  position: absolute;
  background: rgba(11, 16, 33, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: floatPill 5s ease-in-out infinite alternate;
  white-space: nowrap;
}

.pill-top {
  top: 20px;
  left: -20px;
}

.pill-bottom {
  bottom: -8px;
  right: -10px;
  animation-delay: -2.5s;
}

@keyframes floatPill {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.65;
  transition: opacity var(--transition-fast);
  text-decoration: none;
}
.scroll-indicator:hover {
  opacity: 1;
}

.scroll-text {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--cyan-core);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cyan-core);
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Bandeau défilant
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 7, 14, 0.7);
  backdrop-filter: blur(8px);
  padding: 1.1rem 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin: 1rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 240, 255, 0.7);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.marquee span:nth-of-type(3n+1) {
  color: #fff;
  -webkit-text-stroke: 0;
}

.marquee i {
  font-style: normal;
  color: var(--gold-rune);
  font-size: 1.1rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Sections Communes
   -------------------------------------------------------------------------- */
.section {
  padding: 7rem 2rem;
  position: relative;
}

.section-container {
  max-width: 1380px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  font-family: var(--font-hud);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--cyan-core);
  margin-bottom: 0.6rem;
  text-shadow: 0 0 12px var(--cyan-glow);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Filtres de catégorie */
.filter-bar {
  position: relative;
  display: inline-flex;
  gap: 0.3rem;
  margin-top: 2rem;
  padding: 0.4rem;
  background: rgba(11, 16, 33, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  max-width: 100%;
}

.filter-indicator {
  position: absolute;
  top: 0.4rem;
  left: 0;
  height: calc(100% - 0.8rem);
  width: 0;
  background: var(--cyan-core);
  box-shadow: 0 0 15px var(--cyan-glow);
  border-radius: var(--radius-sm);
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out);
  z-index: 0;
}

.filter-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.filter-btn:hover {
  color: #fff;
}

.filter-btn.active {
  color: #030712;
}

/* Sans JavaScript, l'onglet actif garde son fond */
html:not(.js) .filter-btn.active {
  background: var(--cyan-core);
}

/* --------------------------------------------------------------------------
   Grille des Jeux (Hangar)
   -------------------------------------------------------------------------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.game-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out), border-color var(--transition-smooth), box-shadow var(--transition-smooth), opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Pendant l'inclinaison, la carte suit la souris sans retard */
.game-card.tilting {
  transition: transform 0.12s ease-out, border-color var(--transition-smooth), box-shadow var(--transition-smooth), opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
}

.game-card:nth-child(2) { --reveal-delay: 0.12s; }
.game-card:nth-child(3) { --reveal-delay: 0.24s; }

.game-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--cyan-glow);
}

.game-card.featured-game {
  border-color: rgba(0, 240, 255, 0.4);
}

.game-card.filtered-out {
  display: none;
}

.game-card.filter-in {
  animation: filterIn 0.5s var(--ease-out);
}

@keyframes filterIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* Reflet lumineux qui suit la souris */
.card-glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.game-card:hover .card-glare {
  opacity: 1;
}

.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}

.glow-cyan-soft { background: var(--cyan-core); }
.glow-blue-soft { background: var(--blue-neon); }
.glow-gold-soft { background: var(--gold-rune); }

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
}

.badge-live {
  background: rgba(0, 40, 22, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.45);
  color: var(--green-online);
}

.badge-testing {
  background: rgba(0, 30, 40, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--cyan-core);
}

.badge-forge {
  background: rgba(40, 30, 0, 0.6);
  border: 1px solid rgba(255, 209, 102, 0.45);
  color: var(--gold-rune);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: blink 1.8s ease-in-out infinite;
}

.game-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.game-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.game-card:hover .game-banner {
  transform: scale(1.06);
}

.game-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 16, 33, 0.95) 100%);
}

.game-icon-frame {
  position: absolute;
  bottom: 12px;
  right: 18px;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  background: #000;
  transition: transform var(--transition-smooth);
}

.game-card:hover .game-icon-frame {
  transform: translateY(-4px) rotate(-4deg);
}

.game-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pulse-glow {
  animation: glowPulse 2.5s infinite alternate;
}

@keyframes glowPulse {
  0% { filter: drop-shadow(0 0 4px var(--cyan-core)); }
  100% { filter: drop-shadow(0 0 15px var(--cyan-core)); }
}

.game-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.4rem;
}

.game-title {
  font-size: 1.35rem;
  color: #fff;
}

.game-rating {
  font-family: var(--font-hud);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-online);
}

.rune-accent {
  color: var(--gold-rune);
}

.game-tagline {
  font-family: var(--font-hud);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cyan-core);
  margin-bottom: 1rem;
}

.game-tagline.gold {
  color: var(--gold-rune);
  font-style: italic;
}

.game-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.game-text strong {
  color: #fff;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.8rem;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.game-card:hover .tag {
  border-color: rgba(0, 240, 255, 0.2);
  color: #c9d6ee;
}

.game-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Bouton Google Play Store Spécifique */
.btn-playstore {
  background: #000;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-playstore:hover {
  background: #080d1e;
  border-color: var(--cyan-core);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.45);
}

.play-svg {
  width: 24px;
  height: 24px;
}

.btn-playstore-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn-playstore-text .sub {
  font-size: 0.62rem;
  font-family: var(--font-hud);
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.btn-playstore-text .main {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Section Dossier Protocole AGI
   -------------------------------------------------------------------------- */
.agi-section {
  background:
    radial-gradient(ellipse at 20% 40%, rgba(0, 119, 254, 0.08), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(157, 78, 221, 0.07), transparent 60%);
}

.agi-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.agi-dossier {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.agi-dossier::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--cyan-core) 0 18px, transparent 18px 26px);
  opacity: 0.6;
}

.dossier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.dossier-stamp {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--red-yt);
  border: 2px solid var(--red-yt);
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  transform: rotate(-4deg);
  opacity: 0.9;
  box-shadow: 0 0 14px rgba(255, 42, 75, 0.25), inset 0 0 8px rgba(255, 42, 75, 0.2);
}

.dossier-id {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.dossier-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: #e2e8f0;
  border-left: 3px solid var(--cyan-core);
  padding: 0.4rem 0 0.4rem 1rem;
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

.gauge-list {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.gauge-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--g-color);
  margin-bottom: 0.35rem;
}

.gauge-track {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.gauge-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: var(--g-color);
  box-shadow: 0 0 10px var(--g-color);
  transition: width 1.6s var(--ease-out);
}

.is-visible .gauge-track span,
html:not(.js) .gauge-track span {
  width: var(--g-fill);
}

.gauge-blood .gauge-track span {
  animation: bloodPulse 1.6s ease-in-out infinite alternate;
}

@keyframes bloodPulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.dossier-features {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
}

.dossier-features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.dossier-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan-core);
}

.dossier-features strong {
  font-family: var(--font-display);
  color: #fff;
}

.dossier-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.dossier-note {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* Galerie de captures */
.agi-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  --reveal-delay: 0.15s;
}

.gallery-item {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
  aspect-ratio: 16 / 9;
  padding: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-smooth);
}

/* 8 captures : une grande (2×2) + 7 petites, la dernière en double largeur */
.gallery-main {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item:last-child {
  grid-column: span 2;
  aspect-ratio: 32 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.4s ease;
  filter: saturate(0.85) brightness(0.85);
}

.gallery-item:hover {
  border-color: var(--cyan-core);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
  transform: translateY(-3px);
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: saturate(1.1) brightness(1);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem 0.8rem 0.5rem;
  background: linear-gradient(transparent, rgba(3, 5, 12, 0.9));
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan-core);
  text-align: left;
}

.gallery-main .gallery-caption {
  font-size: 0.85rem;
}

.agi-warning {
  margin-top: 2.5rem;
  text-align: center;
  font-family: var(--font-hud);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Section YouTube (Station de Transmission)
   -------------------------------------------------------------------------- */
.youtube-section {
  background: radial-gradient(circle at 50% 50%, rgba(255, 42, 75, 0.05) 0%, transparent 70%);
}

.youtube-hub {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: start;
}

.video-terminal {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 42, 75, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 42, 75, 0.15);
}

.terminal-bar {
  background: #090c19;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.terminal-buttons {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-dot.red { background: #ff5f56; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red-yt);
  background: rgba(255, 42, 75, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 42, 75, 0.3);
  flex-shrink: 0;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-yt);
  animation: blink 1.2s ease-in-out infinite;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.terminal-caption {
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(7, 10, 22, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.caption-info h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.caption-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Panneau de chaîne */
.channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  --reveal-delay: 0.15s;
}

.channel-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.channel-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--red-yt);
  box-shadow: 0 0 20px rgba(255, 42, 75, 0.4);
  object-fit: cover;
  object-position: 45% top;
  background: radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.25), #070a19);
}

.channel-name {
  font-size: 1.4rem;
  color: #fff;
}

.channel-handle {
  font-family: var(--font-hud);
  font-size: 0.92rem;
  color: var(--cyan-core);
  font-weight: 600;
  display: block;
}

.channel-niche {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.channel-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.channel-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.highlight-item:hover {
  border-color: rgba(255, 42, 75, 0.3);
  background: rgba(255, 42, 75, 0.05);
  transform: translateX(4px);
}

.hi-icon {
  font-size: 1.3rem;
}

.hi-text {
  display: flex;
  flex-direction: column;
  font-size: 0.86rem;
}

.hi-text strong {
  color: #fff;
  font-family: var(--font-hud);
  font-size: 0.95rem;
}

.hi-text span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.btn-youtube-subscribe {
  width: 100%;
  background: linear-gradient(135deg, #ff0033, #c20027);
  color: #fff;
  font-family: var(--font-hud);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.8rem;
  box-shadow: 0 0 25px rgba(255, 0, 51, 0.45);
  transition: all var(--transition-fast);
}

.btn-youtube-subscribe:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff1a47, #d9002c);
  box-shadow: 0 0 40px rgba(255, 0, 51, 0.7);
}

.yt-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Feuille de route (timeline)
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(var(--green-online), var(--cyan-core) 40%, var(--gold-rune) 70%, rgba(157, 78, 221, 0.2));
  opacity: 0.6;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding-right: 3rem;
  --node: var(--cyan-core);
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 3rem;
}

.timeline-item.done { --node: var(--green-online); }
.timeline-item.active { --node: var(--cyan-core); }
.timeline-item.forge { --node: var(--gold-rune); }
.timeline-item.next { --node: var(--purple-plasma); }

.timeline-node {
  position: absolute;
  top: 1.6rem;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--node);
  box-shadow: 0 0 14px var(--node);
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-node {
  right: auto;
  left: -9px;
}

.timeline-item.active .timeline-node::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--node);
  animation: ripple 2s ease-out infinite;
}

.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--node);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  backdrop-filter: blur(12px);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px color-mix(in srgb, var(--node) 30%, transparent);
}

.timeline-status {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--node);
}

.timeline-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin: 0.3rem 0 0.5rem;
}

.timeline-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Section À Propos (Bio Créateur)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.hud-frame {
  position: relative;
  width: 320px;
  height: 400px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(rgba(0, 240, 255, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(0, 240, 255, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.18), rgba(11, 16, 33, 0.9));
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.about-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% top;
}

.laser-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--cyan-core);
  box-shadow: 0 0 15px var(--cyan-core), 0 0 30px var(--cyan-core);
  animation: scanLaser 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hud-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--cyan-core);
}
.hud-corner.top-left { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.hud-corner.top-right { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.hud-corner.btm-left { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.hud-corner.btm-right { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.hud-coordinates {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 7, 14, 0.9);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--cyan-core);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.about-info {
  --reveal-delay: 0.15s;
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.about-p {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.8rem 0 2.2rem;
}

.chip {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #fff;
  font-family: var(--font-hud);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.chip:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--cyan-core);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

.about-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Appel final
   -------------------------------------------------------------------------- */
.final-cta {
  padding-top: 3rem;
}

.final-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(0, 240, 255, 0.22), transparent 60%),
    var(--bg-surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.final-orbit {
  position: absolute;
  left: 50%;
  bottom: -420px;
  width: 760px;
  height: 760px;
  margin-left: -380px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.25);
  animation: ringRotate 60s linear infinite;
  pointer-events: none;
}

.final-title {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.final-card .section-desc {
  max-width: 560px;
  margin: 0 auto 2.2rem;
}

/* --------------------------------------------------------------------------
   Modal Interactif de Démo
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 12, 0.85);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  background: #090e21;
  border: 1.5px solid var(--cyan-core);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(0.96);
  transition: transform var(--transition-smooth);
}

.modal-window.theme-gold {
  border-color: var(--gold-rune);
  box-shadow: 0 0 60px var(--gold-glow);
}

.modal-backdrop.open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header {
  background: #060917;
  padding: 1.1rem 1.6rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-sys-tag {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cyan-core);
}

.theme-gold .modal-sys-tag { color: var(--gold-rune); }

.modal-title-group h3 {
  font-size: 1.15rem;
  color: #fff;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 42, 75, 0.2);
  border-color: var(--red-yt);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.6rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Éléments internes de démo */
.demo-teaser-box {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.demo-banner-preview {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.demo-chapter {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-hud);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.demo-chapter strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}

.demo-chapter span {
  color: var(--cyan-core);
  font-size: 0.85rem;
}

.demo-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.demo-stat {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  font-family: var(--font-hud);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.demo-stat .label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--s-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-stat .value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.demo-stat.up { border-color: var(--green-online); box-shadow: 0 0 14px rgba(0, 255, 136, 0.35); }
.demo-stat.down { border-color: var(--red-yt); box-shadow: 0 0 14px rgba(255, 42, 75, 0.35); }

.demo-prompt {
  font-size: 1.02rem;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--cyan-core);
  border-radius: var(--radius-sm);
  line-height: 1.7;
  min-height: 5.5em;
}

.theme-gold .demo-prompt { border-left-color: var(--gold-rune); }

.demo-prompt .type-caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.1em;
  background: var(--cyan-core);
  animation: caretBlink 0.8s steps(1) infinite;
}

.demo-choices {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.demo-choice-btn {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  opacity: 0;
  transform: translateY(8px);
  animation: choiceIn 0.45s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes choiceIn {
  to { opacity: 1; transform: translateY(0); }
}

.demo-choice-btn .choice-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-hud);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.demo-choice-btn .choice-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.choice-fx {
  display: inline-flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.fx {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.18rem 0.4rem;
  border-radius: 4px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.fx.pc { color: var(--cyan-core); }
.fx.ce { color: var(--orange-volt); }
.fx.fh { color: var(--green-online); }
.fx.neg { color: var(--red-yt); }
.fx.go { color: #030712; background: var(--cyan-core); border-color: var(--cyan-core); }

.demo-choice-btn:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.13);
  border-color: var(--cyan-core);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  transform: translateX(4px);
}

.theme-gold .demo-choice-btn { background: rgba(255, 209, 102, 0.05); border-color: var(--border-gold); }
.theme-gold .demo-choice-btn:hover:not(:disabled) {
  background: rgba(255, 209, 102, 0.12);
  border-color: var(--gold-rune);
  box-shadow: 0 0 15px var(--gold-glow);
}

.demo-choice-btn:disabled {
  cursor: default;
  opacity: 0.35;
}

.demo-choice-btn.chosen {
  opacity: 1;
  border-color: var(--green-online);
  background: rgba(0, 255, 136, 0.08);
}

.demo-feedback {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.5);
  color: #c8ffe4;
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
  animation: choiceIn 0.45s var(--ease-out) forwards;
}

.demo-feedback.show {
  display: block;
}

.demo-feedback strong {
  font-family: var(--font-hud);
  letter-spacing: 0.1em;
  color: var(--green-online);
}

.demo-feedback .feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.demo-feedback .btn-primary,
.demo-feedback .btn-secondary {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

/* --------------------------------------------------------------------------
   Section « Démos gratuites » : accès direct aux deux démos
   -------------------------------------------------------------------------- */
.demos-section { padding-top: 5rem; }

.demo-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.demo-card {
  display: flex;
  flex-direction: column;
  background: rgba(9, 14, 33, 0.78);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.demo-card-sang {
  border-color: rgba(255, 209, 102, 0.4);
  box-shadow: 0 0 40px rgba(255, 209, 102, 0.1);
}

.demo-card:hover { transform: translateY(-4px); box-shadow: 0 0 55px rgba(0, 240, 255, 0.22); }
.demo-card-sang:hover { box-shadow: 0 0 55px rgba(255, 209, 102, 0.22); }

.demo-card-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.demo-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem 1.6rem 1.7rem;
  flex: 1;
}

.demo-card-kicker {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--cyan-core);
}

.demo-card-sang .demo-card-kicker { color: var(--gold-rune); }

.demo-card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 0.04em;
}

.demo-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.demo-card-list li { position: relative; padding-left: 1.5rem; }

.demo-card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-online);
  font-weight: 700;
}

.demo-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.demo-card-actions .btn-primary,
.demo-card-actions .btn-secondary { font-size: 0.9rem; }

@media (max-width: 900px) {
  .demo-cards { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Démos complètes (Protocole AGI : lecteur de chapitres, Sang-Serment : iframe)
   -------------------------------------------------------------------------- */
.modal-window.agi-reader { max-width: 860px; }
.modal-window.sang-reader { max-width: 1040px; }

.agi-chapter {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.agi-story {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agi-p {
  margin: 0;
  font-size: calc(1.02rem * var(--agi-scale, 1));
  line-height: 1.75;
  color: #dbe4f0;
  opacity: 0;
  animation: choiceIn 0.5s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.agi-term {
  font-family: var(--font-hud);
  font-size: calc(0.85rem * var(--agi-scale, 1));
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--green-online);
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}

.agi-fig {
  margin: 0.2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #05070e;
}

.agi-fig img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.agi-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.agi-markers:empty { display: none; }

.agi-marker {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--gold-rune);
  color: var(--gold-rune);
  background: rgba(255, 209, 102, 0.07);
}

.agi-choices { margin-top: 0.4rem; }

.agi-progress {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-hud);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.agi-end .feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.demo-loading {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-hud);
  letter-spacing: 0.15em;
}

.sang-reader .modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sang-frame {
  display: block;
  width: 100%;
  height: min(72vh, 780px);
  height: min(72dvh, 780px);
  border: 0;
  background: #0b0a08;
}

.sang-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.sang-actions .btn-primary,
.sang-actions .btn-secondary {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

@media (max-width: 600px) {
  .modal-backdrop { padding: 0.6rem; }
  .modal-body { padding: 1.1rem; }
  .sang-reader .modal-body { padding: 0; }
  .agi-p { font-size: 0.98rem; }
}

@media (prefers-reduced-motion: reduce) {
  .agi-p { opacity: 1; animation: none; }
}


/* Options de lecture, fond du texte, thème Matrix, éclairages et code de reprise de la démo AGI */
.agi-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: #060917;
  border-bottom: 1px solid var(--border-subtle);
}

.agi-options[hidden] { display: none; }

.agi-options button {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.agi-options button:hover { color: #fff; border-color: var(--cyan-core); }
.agi-options button[aria-pressed="true"] { color: var(--cyan-core); border-color: var(--cyan-core); background: rgba(0, 240, 255, 0.12); }
.agi-options button[aria-pressed="false"] { opacity: 0.55; }

.agi-story {
  background: rgba(0, 0, 0, var(--agi-bd, 0.35));
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  transition: background 0.3s ease;
}

.agi-halo { transition: box-shadow 1.2s ease, padding 0.6s ease; padding-left: 0.8rem; border-radius: 4px; }
.halo-red { box-shadow: inset 3px 0 0 #ff2a4b, 0 0 30px rgba(255, 42, 75, 0.16); }
.halo-blue { box-shadow: inset 3px 0 0 #3b9bff, 0 0 30px rgba(59, 155, 255, 0.16); }
.halo-amber { box-shadow: inset 3px 0 0 #ffb020, 0 0 30px rgba(255, 176, 32, 0.16); }
.halo-yellow { box-shadow: inset 3px 0 0 #ffe14d, 0 0 30px rgba(255, 225, 77, 0.14); }
.halo-green { box-shadow: inset 3px 0 0 #00ff88, 0 0 30px rgba(0, 255, 136, 0.14); }
.halo-white { box-shadow: inset 3px 0 0 #e8f0ff, 0 0 30px rgba(232, 240, 255, 0.14); }

.modal-window.agi-matrix .agi-p,
.modal-window.agi-matrix .demo-choice-btn,
.modal-window.agi-matrix .choice-desc {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color: #39ff88;
}

.modal-window.agi-matrix .agi-story { background: rgba(0, 14, 5, calc(var(--agi-bd, 0.35) + 0.25)); }
.modal-window.agi-matrix { border-color: #39ff88; box-shadow: 0 0 60px rgba(57, 255, 136, 0.35); }

.agi-code {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--cyan-core);
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.05);
}

.agi-code[hidden] { display: none; }

.agi-code-title {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--cyan-core);
}

.agi-code-value {
  width: 100%;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  text-align: center;
  color: #fff;
  background: #02040a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
}

.agi-code p { margin: 0; font-size: 0.92rem; color: #cbd5e1; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Visionneuse (lightbox)
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(2, 3, 8, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  max-width: min(1400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transform: scale(0.96);
  transition: transform var(--transition-smooth);
}

.lightbox.open .lightbox-figure {
  transform: scale(1);
}

.lightbox-figure img {
  max-height: calc(100vh - 8rem);
  max-height: calc(100dvh - 8rem);
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-active);
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.25);
  transition: opacity 0.25s ease;
}

.lightbox-figure img.loading {
  opacity: 0.2;
}

.lightbox-figure figcaption {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-hud);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan-core);
  font-size: 0.9rem;
}

.lightbox-counter {
  color: var(--text-muted);
}

.lightbox-close,
.lightbox-nav {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.lightbox-nav {
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan-core);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
}

/* --------------------------------------------------------------------------
   Notifications & retour en haut
   -------------------------------------------------------------------------- */
.toast-zone {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 2rem);
}

.toast {
  background: rgba(9, 14, 33, 0.95);
  border: 1px solid var(--cyan-core);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
  color: #fff;
  font-family: var(--font-hud);
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius-full);
  animation: toastIn 0.45s var(--ease-out);
  text-align: center;
}

.toast.out {
  animation: toastOut 0.4s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(10px); }
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  /* Au-dessus du badge « Powered by Netlify » de l'offre gratuite */
  bottom: 5.5rem;
  width: 52px;
  height: 52px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(9, 14, 33, 0.85);
  backdrop-filter: blur(10px);
  color: var(--cyan-core);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-fast);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.45);
}

.back-to-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.btt-ring,
.btt-progress {
  fill: none;
  stroke-width: 2;
}

.btt-ring { stroke: rgba(0, 240, 255, 0.15); }

.btt-progress {
  stroke: var(--cyan-core);
  stroke-dasharray: 100.53;
  stroke-dashoffset: 100.53;
  stroke-linecap: round;
}

/* --------------------------------------------------------------------------
   Pied de page (Footer)
   -------------------------------------------------------------------------- */
.orbital-footer {
  background: #03040a;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem 5.5rem;
  margin-top: 1rem;
}

.footer-container {
  max-width: 1380px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  display: block;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 380px;
  font-size: 0.92rem;
}

.footer-brand .footer-hint {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-links h4,
.footer-socials h4 {
  font-family: var(--font-hud);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: var(--cyan-core);
  margin-bottom: 1.2rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast), padding var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 6px;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.social-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan-core);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-hud);
  font-weight: 700;
  color: var(--green-online);
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   Mode « Légendaire » (code secret)
   -------------------------------------------------------------------------- */
/* Couleurs d'accent animables : tout ce qui utilise --cyan-core / --gold-rune
   défile dans l'arc-en-ciel (bordures, textes, lueurs, viseur…) */
@property --cyan-core {
  syntax: '<color>';
  inherits: true;
  initial-value: #00f0ff;
}

@property --gold-rune {
  syntax: '<color>';
  inherits: true;
  initial-value: #ffd166;
}

@property --legend-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

html.legendary {
  animation: legendaryAccent 6s linear infinite;
}

@keyframes legendaryAccent {
  0%, 100% { --cyan-core: #00f0ff; --gold-rune: #ffd166; }
  20% { --cyan-core: #9d4edd; --gold-rune: #00ff88; }
  40% { --cyan-core: #ff2a4b; --gold-rune: #00f0ff; }
  60% { --cyan-core: #ffd166; --gold-rune: #9d4edd; }
  80% { --cyan-core: #00ff88; --gold-rune: #ff2a4b; }
}

html.legendary .title-main {
  background: linear-gradient(90deg, #ff2a4b, #ffd166, #00ff88, #00f0ff, #9d4edd, #ff2a4b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleShine 3s linear infinite;
  filter: drop-shadow(0 0 30px rgba(255, 209, 102, 0.55));
}

/* Cadre arc-en-ciel tournant autour de l'écran */
html.legendary body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  padding: 3px;
  background: conic-gradient(from var(--legend-angle), #ff2a4b, #ffd166, #00ff88, #00f0ff, #9d4edd, #ff2a4b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: legendSpin 3s linear infinite;
}

@keyframes legendSpin {
  to { --legend-angle: 360deg; }
}

/* Badge dans l'en-tête */
.legendary-tag {
  display: none;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #ff2a4b, #ffd166, #00ff88, #00f0ff, #9d4edd, #ff2a4b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 2s linear infinite;
}

html.legendary .telemetry-tag { display: none; }
html.legendary .legendary-tag { display: block; }

/* Lueurs arc-en-ciel sur l'avatar et les panneaux */
html.legendary .avatar-card,
html.legendary .hud-frame {
  border-color: var(--cyan-core);
  box-shadow: 0 0 60px var(--cyan-core), inset 0 0 30px var(--gold-rune);
}

html.legendary .game-card,
html.legendary .agi-dossier,
html.legendary .channel-card,
html.legendary .timeline-card,
html.legendary .final-card {
  border-color: var(--cyan-core);
  box-shadow: var(--shadow-card), 0 0 30px color-mix(in srgb, var(--cyan-core) 45%, transparent);
}

html.legendary .holo-ring-1,
html.legendary .holo-ring-3 {
  border-color: var(--gold-rune);
}

/* Flash d'activation */
.legend-flash {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95), rgba(255, 209, 102, 0.6) 30%, rgba(157, 78, 221, 0.25) 60%, transparent 80%);
  animation: legendFlash 1s ease-out forwards;
}

@keyframes legendFlash {
  0% { opacity: 0; transform: scale(0.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.6); }
}

/* Étincelles (explosion + traînée du curseur) */
.legend-spark {
  position: fixed;
  z-index: 9998;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  pointer-events: none;
  background: hsl(var(--h), 100%, 62%);
  box-shadow: 0 0 10px hsl(var(--h), 100%, 60%), 0 0 20px hsl(var(--h), 100%, 55%);
  animation: legendSpark 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes legendSpark {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(0.1); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1620px) {
  .nav-links { gap: 1.2rem; }
  .hyperspace-btn .hud-btn-text,
  .sound-toggle .hud-btn-text { display: none; }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-title { align-items: center; }

  .hero-desc {
    margin: 0 auto 2.2rem;
  }

  .hero-stats {
    margin: 0 auto 2.5rem;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .agi-grid,
  .youtube-hub {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .skills-chips, .about-actions {
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1480px) {
  :root { --header-h: 64px; }

  .menu-toggle { display: block; }

  /* Un backdrop-filter piégerait le menu « fixed » à l'intérieur du header */
  .orbital-header,
  .orbital-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5, 7, 14, 0.94);
  }

  .sound-toggle .hud-btn-text,
  .subscribe-btn span { display: none; }

  .subscribe-btn { padding: 0.65rem 0.8rem; }

  /* Menu plein écran */
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(3, 5, 12, 0.97);
    backdrop-filter: blur(20px);
    clip-path: circle(0 at calc(100% - 40px) 36px);
    transition: clip-path 0.7s var(--ease-out);
    visibility: hidden;
  }

  .nav-links.open {
    clip-path: circle(150% at calc(100% - 40px) 36px);
    visibility: visible;
  }

  .nav-item {
    font-family: var(--font-display);
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.5s var(--ease-out), color 0.2s ease;
  }

  .nav-links.open .nav-item {
    opacity: 1;
    transform: none;
  }

  .nav-links.open .nav-item:nth-child(2) { transition-delay: 0.08s; }
  .nav-links.open .nav-item:nth-child(3) { transition-delay: 0.16s; }
  .nav-links.open .nav-item:nth-child(4) { transition-delay: 0.24s; }
  .nav-links.open .nav-item:nth-child(5) { transition-delay: 0.32s; }

  .nav-cta {
    display: block;
    margin-top: 1rem;
    font-size: 1rem !important;
    color: #fff;
    background: linear-gradient(135deg, #ff1a3c, #c9002b);
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 25px rgba(255, 26, 60, 0.45);
  }

  .nav-cta::after { display: none; }
}

@media (max-width: 960px) {
  .timeline::before { left: 9px; }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 0 2.6rem;
  }

  .timeline-node,
  .timeline-item:nth-child(even) .timeline-node {
    left: 0;
    right: auto;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.6rem 1rem;
  }

  .telemetry-tag { display: none; }

  .hero-section {
    padding: 6.5rem 1rem 6rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.6rem;
    width: 100%;
  }

  .stat-divider { display: none; }

  .hero-role { font-size: 1.1rem; }

  .hologram-stage {
    width: 300px;
    height: 360px;
  }
  .avatar-card {
    width: 220px;
    height: 280px;
  }
  .holo-ring-1 { width: 280px; height: 280px; }
  .holo-ring-2 { width: 330px; height: 330px; }
  .holo-ring-3 { width: 240px; height: 240px; }
  .pill-top { left: 0; }
  .pill-bottom { right: 0; }

  .section {
    padding: 5rem 1rem;
  }

  .filter-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-indicator { display: none; }

  .filter-btn.active {
    background: var(--cyan-core);
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .agi-dossier { padding: 1.4rem; }

  .agi-gallery { grid-template-columns: 1fr 1fr; }

  .gallery-main {
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  .gallery-item:last-child {
    aspect-ratio: 16 / 9;
  }

  .terminal-title { display: none; }

  .terminal-caption {
    flex-direction: column;
    align-items: flex-start;
  }

  .channel-card { padding: 1.4rem; }

  .demo-hud { grid-template-columns: 1fr 1fr; }

  .demo-choice-btn .choice-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox { padding: 1rem 0.5rem; }

  .lightbox-nav {
    position: absolute;
    bottom: 1.2rem;
    width: 46px;
    height: 46px;
  }

  .lightbox-nav.prev { left: calc(50% - 56px); }
  .lightbox-nav.next { right: calc(50% - 56px); }

  .footer-top { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top { right: 1rem; bottom: 5rem; }
}

@media (max-width: 480px) {
  .header-actions { gap: 0.4rem; }
  .lang-toggle { padding: 0.55rem 0.55rem; font-size: 0.78rem; }
  .header-actions .subscribe-btn { display: none; }
  .status-badge { font-size: 0.68rem; letter-spacing: 0.08em; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 0.82rem; letter-spacing: 0.04em; }
  .brand-id { gap: 0.5rem; }
  .brand-sigil { width: 34px; height: 34px; }
  .header-container { gap: 0.6rem; }
  .hyperspace-btn { display: none; }
  .btn-primary, .btn-secondary { white-space: normal; }
}

/* Mouvement réduit : on coupe les animations décoratives */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }
}


/* Feuille de route : les projets sortis renvoient vers leur présentation */
.timeline-link { cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast); }
.timeline-link:hover,
.timeline-link:focus-visible { transform: translateY(-3px); box-shadow: 0 0 26px rgba(0, 255, 136, 0.18); border-color: var(--green-online); outline: none; }
.timeline-more {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--green-online);
  opacity: 0.75;
}
.timeline-link:hover .timeline-more { opacity: 1; }

.game-card.flash-card { animation: flashCard 1.8s ease; }
@keyframes flashCard {
  0%, 100% { box-shadow: none; }
  25%, 70% { box-shadow: 0 0 0 2px var(--green-online), 0 0 50px rgba(0, 255, 136, 0.45); }
}


/* Bloc « jouer ici » et plateformes (itch.io, Google Play) des cartes de démo */
.demo-play {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.demo-play .btn-primary { font-size: 1rem; padding: 0.95rem 1.8rem; }

.demo-play-note {
  font-family: var(--font-hud);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--green-online);
}

.demo-platforms {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-subtle);
}

.demo-platforms-title {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.platform-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.platform-tile:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.06); }

.platform-logo { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; }
.platform-logo svg { width: 100%; height: 100%; }

.platform-body { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.platform-body strong { font-family: var(--font-display); font-size: 0.95rem; color: #fff; letter-spacing: 0.03em; }
.platform-links { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.plat-link {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 136, 0.55);
  color: var(--green-online);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.plat-link.plat-full { border-color: rgba(255, 255, 255, 0.35); color: #e2e8f0; }
.plat-link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

@media (max-width: 520px) { .platform-grid { grid-template-columns: 1fr; } }

.launch-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  margin-top: 1.6rem;
  padding: 1.1rem 1.6rem;
  border: 1.5px solid #fa5c5c;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(250, 92, 92, 0.12), rgba(255, 176, 32, 0.1));
  text-decoration: none;
  color: #fff;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.launch-banner:hover { transform: translateY(-3px); box-shadow: 0 0 40px rgba(250, 92, 92, 0.3); }
.launch-tag { font-family: var(--font-hud); font-weight: 700; letter-spacing: 0.16em; color: #ffb020; }
.launch-text { font-size: 0.98rem; }
.launch-cta { font-family: var(--font-hud); font-weight: 700; letter-spacing: 0.1em; color: #fa5c5c; }


/* Cartes des jeux et dossier AGI : même bloc « jouer ici / plateformes » que la section des livres */
.game-cta { display: flex; flex-direction: column; gap: 0.9rem; margin-top: auto; }
.game-cta .demo-play { margin-top: 0; }
.dossier-actions.game-cta { align-items: stretch; max-width: 520px; }

.platform-body strong { white-space: nowrap; }
.game-cta .platform-tile { padding: 0.6rem 0.65rem; gap: 0.6rem; }
.game-cta .platform-logo { flex-basis: 32px; width: 32px; height: 32px; }
