/* ==========================================================================
   PLUTONH — COLD SPATIAL TELEMETRY × KAWAII PLANETS
   Vanilla CSS — Mobile-First, 60fps Scroll-Driven Waypoints
   ========================================================================== */

:root {
  --void-bg: #05070a;
  --void-deep: #020305;
  --panel-bg: rgba(7, 11, 17, 0.78);
  --panel-bg-hover: rgba(12, 18, 28, 0.88);
  --line-subtle: rgba(255, 255, 255, 0.10);
  --line-mid: rgba(255, 255, 255, 0.22);
  --line-strong: rgba(255, 255, 255, 0.55);
  --text-main: #f8fafc;
  --text-dim: rgba(248, 250, 252, 0.62);
  --text-muted: rgba(248, 250, 252, 0.36);
  --ice: #99ccff;
  --ice-soft: rgba(153, 204, 255, 0.14);
  --coral: #ff595e;
  --coral-soft: rgba(255, 89, 94, 0.16);
  --amber: #ffcc00;
  --ok: #4ade80;

  --font-display: 'Rajdhani', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-card: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--void-bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-image: radial-gradient(circle at 50% 38%, rgba(22, 34, 52, 0.28) 0%, rgba(5, 7, 10, 0.96) 68%, #020305 100%);
  transition: background-color 0.4s ease;
}

body.universe-destroyed {
  background-image: none !important;
  background-color: #000000 !important;
}

/* ==========================================================================
   CANVAS SPATIAL & OVERLAYS (ARRIÈRE-PLAN INTERACTIF)
   ========================================================================== */

#space-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

#singularity-veil {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.92) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 1.4s ease;
}

body.singularity-active #singularity-veil {
  opacity: 1;
}

#flash-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   BANDEAU WEBVIEW TIKTOK
   ========================================================================== */

#webview-banner {
  display: none;
  position: fixed;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 440px;
  background: rgba(8, 12, 18, 0.94);
  border: 1px solid rgba(153, 204, 255, 0.35);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-main);
  text-align: center;
  z-index: 60;
}

#webview-banner strong {
  color: var(--ice);
}

/* ==========================================================================
   HUD FIXE DE TÉLÉMÉTRIE (STYLE WAITING STREAM V6)
   ========================================================================== */

.hud-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.85) 0%, rgba(5, 7, 10, 0) 100%);
}

.hud-terminal-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100vw - 115px);
}

.hud-terminal-prefix {
  color: var(--ice);
  margin-right: 4px;
}

.hud-sector-readout {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Rail latéral droit de navigation rapide */
.hud-rail {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 45;
}

.rail-node {
  appearance: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  transition: color 0.25s ease;
}

.rail-label {
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  display: none;
}

@media (min-width: 768px) {
  .hud-topbar {
    height: 52px;
    padding: 0 32px;
  }
  .hud-terminal-line {
    font-size: 0.8rem;
    max-width: 65vw;
  }
  .hud-rail {
    right: 24px;
    gap: 12px;
  }
  .rail-label {
    display: inline-block;
  }
  .rail-node:hover .rail-label,
  .rail-node.active .rail-label {
    opacity: 1;
    transform: translateX(0);
  }
}

.rail-tick {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  transition: all 0.25s ease;
}

.rail-node.active {
  color: var(--text-main);
}

.rail-node.active .rail-tick {
  height: 18px;
  background: var(--ice);
  border-color: var(--ice);
  box-shadow: 0 0 10px rgba(153, 204, 255, 0.55);
}

/* Indicateur discret en bas à gauche (télémétrie d'altitude + interaction planètes) */
.hud-bottombar {
  position: fixed;
  bottom: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 40;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (min-width: 480px) {
  .hud-bottombar {
    left: 18px;
    right: 18px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }
}

.hud-hint {
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.5s ease;
}

.hud-hint.hidden {
  opacity: 0;
}

#reboot-universe-btn {
  display: none;
  pointer-events: auto;
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(153, 204, 255, 0.45);
  border-radius: var(--radius-sm);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#reboot-universe-btn:hover {
  background: var(--ice);
  color: #05070a;
}

body.universe-destroyed #reboot-universe-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.universe-destroyed #planet-hint {
  display: none;
}

/* Curseurs lors du survol / capture d'une planète */
body.planet-hover,
body.planet-hover #scroll-stage,
body.planet-hover .telemetry-card {
  cursor: grab;
}

body.planet-grabbing,
body.planet-grabbing * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* ==========================================================================
   SCÈNE DE SCROLL HYBRIDE AIMANTÉ & TRANSITIONS FLUIDES
   ========================================================================== */

#scroll-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  touch-action: pan-x pinch-zoom;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease;
}

#scroll-stage.is-slid-left {
  transform: translate3d(-100vw, 0, 0);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

#scroll-stage.enter-from-left {
  transition: none !important;
  transform: translate3d(-100vw, 0, 0);
  opacity: 0;
  will-change: transform;
}

#scroll-stage::-webkit-scrollbar {
  display: none;
}

.sector {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 26px 38px 18px;
  pointer-events: none; /* Laisse passer les interactions vers les planètes dans l'espace vide */
}

.sector.sector-edge {
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 768px) {
  .sector {
    min-height: 85vh;
    padding: 48px 40px;
  }
  .sector.sector-edge {
    min-height: 100vh;
  }
}

/* Carte télémétrique légèrement adoucie avec crochets d'angle progressifs */
.telemetry-card {
  --p: 0;
  --abs-p: 0;
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--panel-bg);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-card);
  backdrop-filter: blur(24px) saturate(115%);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
  padding: 22px 20px;
  pointer-events: auto;
  will-change: transform;
  transform: perspective(900px)
    translate3d(0, calc(var(--p) * -14px), 0)
    scale(calc(1 - var(--abs-p) * 0.06));
  opacity: calc(1 - var(--abs-p) * 0.62);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

@media (min-width: 768px) {
  .telemetry-card {
    max-width: 470px;
    padding: 28px 28px;
  }
}

/* Crochets d'angle courbés (épousent l'arrondi et se verrouillent quand --abs-p -> 0) */
.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--line-strong);
  border-style: solid;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.telemetry-card:hover .hud-corner {
  border-color: var(--ice);
}

.hud-corner.tl {
  top: calc(-1px - var(--abs-p) * 14px);
  left: calc(-1px - var(--abs-p) * 14px);
  border-width: 1.5px 0 0 1.5px;
  border-top-left-radius: var(--radius-card);
}
.hud-corner.tr {
  top: calc(-1px - var(--abs-p) * 14px);
  right: calc(-1px - var(--abs-p) * 14px);
  border-width: 1.5px 1.5px 0 0;
  border-top-right-radius: var(--radius-card);
}
.hud-corner.bl {
  bottom: calc(-1px - var(--abs-p) * 14px);
  left: calc(-1px - var(--abs-p) * 14px);
  border-width: 0 0 1.5px 1.5px;
  border-bottom-left-radius: var(--radius-card);
}
.hud-corner.br {
  bottom: calc(-1px - var(--abs-p) * 14px);
  right: calc(-1px - var(--abs-p) * 14px);
  border-width: 0 1.5px 1.5px 0;
  border-bottom-right-radius: var(--radius-card);
}

/* En-tête de télémétrie commun à chaque module */
.card-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.card-meta-code {
  color: var(--ice);
  font-weight: 500;
}

/* ==========================================================================
   SECTEUR 00 — BALISE PRINCIPALE PLUTONH
   ========================================================================== */

.hero-card {
  text-align: center;
}

.core-wrapper {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 2px auto 14px;
  cursor: pointer;
  user-select: none;
}

.core-orbit-svg {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  animation: slowSpin 26s linear infinite;
  pointer-events: none;
}

.core-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  display: block;
  transition: transform 0.12s ease, border-color 0.25s ease;
}

.core-wrapper:hover .core-logo {
  border-color: var(--ice);
}

.core-wrapper:active .core-logo {
  transform: scale(0.93);
}

.gravity-meter {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--coral);
  min-height: 14px;
  margin-bottom: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gravity-meter.visible {
  opacity: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.55rem;
  letter-spacing: 0.12em;
  margin: 0;
  line-height: 1;
  color: var(--text-main);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin: 6px 0 18px;
  text-transform: uppercase;
}

/* Bloc Signal Live / Prochain Stream sur l'accueil */
.signal-banner {
  text-align: left;
  background: rgba(153, 204, 255, 0.032);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.signal-banner.is-live {
  background: var(--coral-soft);
  border-color: rgba(255, 89, 94, 0.45);
}

.signal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ice);
  font-weight: 700;
}

.signal-banner.is-live .signal-badge {
  color: var(--coral);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  display: inline-block;
}

.signal-banner.is-live .status-dot {
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
  animation: pulseDot 1.3s ease-in-out infinite;
}

.signal-countdown-mini {
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}

.signal-main-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1.2;
}

.signal-sub-line {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Accès rapides en bas de la carte d'accueil */
.quick-jumps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-subtle);
}

.quick-jump-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-jump-btn:hover {
  border-color: var(--ice);
  color: var(--text-main);
  background: var(--ice-soft);
}

.scroll-cue {
  pointer-events: auto;
  cursor: pointer;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  background: none;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  animation: gentleBob 2.4s ease-in-out infinite;
  transition: color 0.2s ease;
}

.scroll-cue:hover {
  color: var(--ice);
}

/* ==========================================================================
   BOUTONS D'ACTION TÉLÉMÉTRIQUES
   ========================================================================== */

.action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.18s ease, color 0.22s ease;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: var(--ice);
  transform: scaleY(0.35);
  transition: transform 0.22s ease, background 0.22s ease;
}

.action-btn:hover {
  background: rgba(153, 204, 255, 0.12);
  border-color: var(--ice);
  transform: translateY(-1px);
}

.action-btn:hover::before {
  transform: scaleY(1);
}

.action-btn:active {
  transform: translateY(0);
}

.action-btn.live-priority {
  background: rgba(255, 89, 94, 0.16);
  border-color: rgba(255, 89, 94, 0.65);
}

.action-btn.live-priority::before {
  background: var(--coral);
  transform: scaleY(1);
}

.action-btn.live-priority:hover {
  background: rgba(255, 89, 94, 0.26);
  border-color: var(--coral);
}

.action-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.action-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.action-arrow {
  color: var(--ice);
  font-size: 0.9rem;
  transition: transform 0.22s ease;
}

.action-btn.live-priority .action-arrow {
  color: var(--coral);
}

.action-btn:hover .action-arrow {
  transform: translate(3px, -2px);
}

.secondary-btn {
  margin-top: 8px;
  padding: 10px 16px;
  font-size: 0.72rem;
  background: transparent;
  border-color: var(--line-subtle);
  color: var(--text-dim);
}

/* ==========================================================================
   SECTEUR 01 — PROGRAMME DES PROCHAINS LIVES / SEMAINE
   ========================================================================== */

.clock-strip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-subtle);
}

.clock-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.clock-digits {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.95rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.clock-digits.live-now {
  color: var(--coral);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.schedule-item.is-next {
  background: rgba(153, 204, 255, 0.07);
  border-color: rgba(153, 204, 255, 0.38);
}

.schedule-cover {
  width: 34px;
  height: 46px;
  border-radius: 5px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.schedule-cover-placeholder {
  width: 34px;
  height: 46px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-subtle);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ice);
  flex-shrink: 0;
}

.schedule-info {
  min-width: 0;
  flex: 1;
}

.schedule-when {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.schedule-tag {
  color: var(--ice);
  font-weight: 700;
}

.schedule-game {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  color: var(--text-main);
  line-height: 1.15;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-title {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SECTEURS RÉSEAUX (YOUTUBE, TIKTOK, DISCORD, CONTACT)
   ========================================================================== */

.node-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.node-icon-box {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-mid);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-main);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.telemetry-card:hover .node-icon-box {
  border-color: var(--ice);
  color: var(--ice);
}

.node-icon-box svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.node-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0;
}

.node-handle {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ice);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.node-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.node-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
}

.spec-k {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-v {
  display: block;
  font-size: 0.74rem;
  color: var(--text-main);
  margin-top: 2px;
}

/* ==========================================================================
   TOAST DE CONFIRMATION TÉLÉMÉTRIQUE
   ========================================================================== */

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: rgba(8, 14, 22, 0.95);
  border: 1px solid var(--ok);
  border-radius: var(--radius-md);
  color: var(--ok);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 11px 18px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .core-orbit-svg,
  .scroll-cue {
    animation: none;
  }
}

/* ==========================================================================
   LIENS DE NAVIGATION INTER-PAGES (ACCUEIL <-> CONTACT & KIT MÉDIA)
   ========================================================================== */

.hud-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  flex-shrink: 0;
}

.hud-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-topbar-right [hidden],
.hud-rail[hidden],
.hud-bottombar [hidden] {
  display: none !important;
}

.hud-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-subtle);
  background: rgba(8, 12, 18, 0.72);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hud-nav-link:hover {
  border-color: var(--ice);
  color: var(--text-main);
  background: var(--ice-soft);
}

.hud-nav-link.active {
  border-color: rgba(153, 204, 255, 0.5);
  color: var(--ice);
  background: var(--ice-soft);
}

@media (max-width: 520px) {
  .hud-nav-link .hide-xs {
    display: none;
  }
}

a.rail-node,
a.quick-jump-btn {
  text-decoration: none;
}

.hud-bottom-link {
  pointer-events: auto;
  color: var(--ice);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.hud-bottom-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

