﻿@import url("https://fonts.googleapis.com/css2?family=Michroma&family=Share+Tech+Mono&display=swap");

:root {
  --pv-orange: #ff8200;
  --pv-violet: #ac4fc6;
  --pv-blue: #0047bb;
  --pv-grey: #d9d9d6;
  --pv-black: #000000;
  --pv-white: #ffffff;
  --perf-motion-multiplier: 1.25;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--pv-black);
  color: var(--pv-white);
  font-family: "Share Tech Mono", monospace;
}

#gradient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  --gradient-color-1: #0047bb;
  --gradient-color-2: #ff8200;
  --gradient-color-3: #ac4fc6;
  --gradient-color-4: #000000;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("./assets/noise.gif");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0.72) 86%);
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.09;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(217, 217, 214, 0.1) 0,
    rgba(217, 217, 214, 0.1) 1px,
    transparent 1px,
    transparent 3px
  );
}

body.page-paused .orbiter,
body.page-paused .planet .label,
body.page-paused .perspective-grid,
body.page-paused .center-mini-cluster,
body.page-paused .info-panel-scanline,
body.page-paused .hud-scan,
body.page-paused .hud-blink {
  animation-play-state: paused !important;
}

body.perf-lite .noise {
  opacity: 0.025 !important;
}

body.perf-lite .scanline {
  opacity: 0 !important;
}

body.perf-lite .planet {
  backdrop-filter: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 16px var(--glow);
}

body.perf-lite .ring,
body.perf-lite #ring-main,
body.perf-lite #ring-social,
body.perf-lite #ring-sub,
body.perf-lite #ring-team {
  box-shadow: none !important;
}

body.perf-lite .ring.pulse {
  animation: none;
  border-width: 2px !important;
  box-shadow: none !important;
}

body.perf-lite .center-mini-node-body {
  box-shadow: 0 0 8px rgba(255, 130, 0, 0.22), 0 0 10px rgba(172, 79, 198, 0.16);
}

body.perf-lite .info-panel-scanline {
  animation: none;
  opacity: 0.06;
}

.perspective-grid {
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 40vh;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.08) 65%, rgba(0, 0, 0, 0) 100%),
    repeating-linear-gradient(to right, rgba(0, 71, 187, 0.28) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(to top, rgba(172, 79, 198, 0.24) 0 1px, transparent 1px 56px);
  transform-origin: center bottom;
  transform: perspective(600px) rotateX(71deg);
  animation: gridDrift calc(11s * var(--perf-motion-multiplier)) linear infinite;
}

.layout {
  position: relative;
  z-index: 8;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(10px, 1.2vw, 18px);
  padding: clamp(12px, 2vw, 28px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: opacity 0.5s ease;
}

body.zoom-active .topbar,
body.zoom-active .legend {
  opacity: 0.18;
  pointer-events: none;
}

.title {
  margin: 0;
  font-family: "Michroma", sans-serif;
  font-size: clamp(16px, 2vw, 26px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pv-white);
  text-shadow: 0 0 14px rgba(0, 71, 187, 0.5), 0 0 8px rgba(172, 79, 198, 0.45);
}

.subtitle {
  margin: 5px 0 0;
  color: var(--pv-grey);
  font-size: clamp(12px, 1.1vw, 14px);
}

.hint {
  font-size: clamp(11px, 1vw, 13px);
  border: 1px solid rgba(217, 217, 214, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--pv-grey);
  background: linear-gradient(135deg, rgba(0, 71, 187, 0.28), rgba(172, 79, 198, 0.2));
}

.paris-map-link {
  color: var(--pv-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.paris-map-link:hover,
.paris-map-link:focus-visible {
  color: var(--pv-orange);
}

.system-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.system {
  --size: min(88vh, 88vw);
  position: relative;
  width: var(--size);
  height: var(--size);
  min-width: 290px;
  min-height: 290px;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.72));
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

#ring-main {
  width: 46%;
  height: 46%;
  border: 1px solid rgba(0, 71, 187, 0.65);
  box-shadow: 0 0 18px rgba(0, 71, 187, 0.3);
}

#ring-social {
  width: 70%;
  height: 70%;
  border: 1px dashed rgba(172, 79, 198, 0.62);
  box-shadow: 0 0 16px rgba(172, 79, 198, 0.28);
}

#ring-sub {
  width: 90%;
  height: 90%;
  border: 1px dotted rgba(255, 130, 0, 0.58);
  box-shadow: 0 0 16px rgba(255, 130, 0, 0.24);
}

#ring-team {
  width: 110%;
  height: 110%;
  border: 1px dashed rgba(90, 255, 140, 0.52);
  box-shadow: 0 0 18px rgba(60, 220, 130, 0.22);
}

.orbital-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
}

.orbiter {
  position: absolute;
  inset: 0;
  transform-origin: center;
  animation: spin var(--duration, 42s) linear infinite;
  animation-direction: var(--direction, normal);
  pointer-events: none;
  will-change: transform;
}

.orbiter.paused {
  animation-play-state: paused;
}

.planet {
  --angle: 0deg;
  --radius-px: 120px;
  --bg: rgba(0, 71, 187, 0.24);
  --glow: rgba(0, 71, 187, 0.45);
  --orbit-duration: 42s;
  --counter-direction: reverse;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--radius-px))) rotate(calc(-1 * var(--angle)));
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid rgba(217, 217, 214, 0.45);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 45%), var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 24px var(--glow);
  color: var(--pv-white);
  text-decoration: none;
  display: grid;
  place-items: center;
  pointer-events: auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(7px);
  will-change: transform;
}

.planet::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(0, 71, 187, 0);
  box-shadow: 0 0 0 rgba(172, 79, 198, 0);
  pointer-events: none;
}

.planet .label {
  display: block;
  max-width: 76px;
  text-wrap: balance;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.12;
  font-size: 10px;
  letter-spacing: 0.05em;
  font-weight: 700;
  animation: counterSpin var(--orbit-duration) linear infinite;
  animation-direction: var(--counter-direction);
}

.planet .label svg {
  display: block;
  width: 25px;
  height: 25px;
  margin: 0 auto;
}

.planet.main-item {
  width: 96px;
  height: 96px;
}

/* Expand clickable target without changing visual size. */
.planet.main-item::after {
  content: "";
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.planet.main-item .label {
  max-width: 82px;
  font-size: 11px;
}

.planet.hub-item {
  width: 92px;
  height: 92px;
  border-width: 2px;
}

/* Reduce only the Socials hub planet by 10px. */
#social-layer .planet.hub-item {
  width: 60px;
  height: 60px;
}

/* Reduce only the Tools hub planet by 25px. */
#sub-layer .planet.hub-item {
  width: 58px;
  height: 58px;
}

.planet.team-item {
  width: 40px;
  height: 40px;
  border-color: rgba(120, 255, 160, 0.52);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, rgba(0, 90, 70, 0.55), rgba(35, 190, 120, 0.42));
  box-shadow: 0 0 0 1px rgba(120, 255, 160, 0.16) inset, 0 0 18px rgba(60, 220, 130, 0.28);
}

.planet.team-item .label {
  max-width: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 800;
  line-height: 1;
}

.hub-shell {
  --angle: 0deg;
  --radius-px: 120px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 210px;
  height: 210px;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--radius-px))) rotate(calc(-1 * var(--angle)));
  pointer-events: auto;
}

.hub-shell .planet.hub-item {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hub-shell:hover .planet.hub-item,
.hub-shell:focus-within .planet.hub-item {
  transform: translate(-50%, -50%) scale(1.12);
}

.planet:hover,
.planet:focus-visible {
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--radius-px))) rotate(calc(-1 * var(--angle))) scale(1.12);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.33), rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, rgba(0, 71, 187, 0.45), rgba(172, 79, 198, 0.4));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset, 0 0 24px rgba(0, 71, 187, 0.55), 0 0 28px rgba(172, 79, 198, 0.45);
  outline: none;
  z-index: 12;
}

.planet:hover::before,
.planet:focus-visible::before {
  animation: satellitePulse 1.2s ease-in-out infinite;
}

.orbiter.paused .label {
  animation-play-state: paused;
}

.mini-cluster {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: spin 12s linear infinite;
}

.hub-shell:hover .mini-cluster,
.hub-shell:focus-within .mini-cluster {
  animation-play-state: paused;
}

.mini-node {
  --theta: 0deg;
  --dot-r: 45px; /*Ecartement des sous satellites rétractés*/
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(var(--theta)) translateY(calc(-1 * var(--dot-r)));
  text-decoration: none;
  pointer-events: auto;
}

.mini-node-body {
  position: relative;
  min-width: 12px;
  height: 12px;
  padding: 0;
  width: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(217, 217, 214, 0.08);
  box-shadow: 0 0 10px rgba(0, 71, 187, 0.28), 0 0 14px rgba(172, 79, 198, 0.22);
  transition:
    width 0.34s cubic-bezier(0.2, 0.9, 0.25, 1.15),
    min-width 0.34s cubic-bezier(0.2, 0.9, 0.25, 1.15),
    height 0.34s cubic-bezier(0.2, 0.9, 0.25, 1.15),
    padding 0.34s cubic-bezier(0.2, 0.9, 0.25, 1.15),
    gap 0.34s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.mini-node-point {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pv-blue), var(--pv-violet));
  box-shadow: 0 0 10px rgba(0, 71, 187, 0.58), 0 0 14px rgba(172, 79, 198, 0.5);
}

.mini-node-icon {
  display: none;
  width: 20px;
  height: 20px;
  color: var(--pv-white);
  flex: 0 0 auto;
}

.mini-node-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Social mini-nodes: never show text */
.mini-node.has-icon .mini-node-label {
  display: none !important;
}

.mini-node-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  opacity: 0;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
  color: var(--pv-white);
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

/* Domain mini-nodes: label lives inside the circle */
.mini-node:not(.has-icon) .mini-node-label {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 7px;
  white-space: normal;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.04em;
  width: 100%;
  max-width: none;
}

.hub-shell:hover .mini-node-body,
.hub-shell:focus-within .mini-node-body {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  border-color: rgba(217, 217, 214, 0.34);
  background: linear-gradient(135deg, rgba(0, 71, 187, 0.62), rgba(172, 79, 198, 0.58));
  box-shadow: 0 0 16px rgba(0, 71, 187, 0.44), 0 0 20px rgba(172, 79, 198, 0.34);
}

.hub-shell:hover .mini-node-label,
.hub-shell:focus-within .mini-node-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Domain nodes: show text inside circle on hover, override transform */
.hub-shell:hover .mini-node:not(.has-icon) .mini-node-label,
.hub-shell:focus-within .mini-node:not(.has-icon) .mini-node-label {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Domain nodes: hide the dot when text takes its place */
.hub-shell:hover .mini-node:not(.has-icon) .mini-node-point,
.hub-shell:focus-within .mini-node:not(.has-icon) .mini-node-point {
  display: none;
}
.hub-shell:hover .mini-node,
.hub-shell:focus-within .mini-node {
  /* Réglage de l'écartement des sous satellites */
  animation: miniFloat 1.8s ease-in-out infinite alternate;
  --dot-r:58px;
}

.hub-shell:hover .mini-node.has-icon .mini-node-point,
.hub-shell:focus-within .mini-node.has-icon .mini-node-point {
  display: none;
}

.hub-shell:hover .mini-node.has-icon .mini-node-icon,
.hub-shell:focus-within .mini-node.has-icon .mini-node-icon {
  display: block;
}

.hub-shell:hover .mini-node-body,
.hub-shell:focus-within .mini-node-body,
.mini-node:focus-visible .mini-node-body,
.mini-node:hover .mini-node-body {
  outline: none;
}

.mini-node:hover .mini-node-body,
.mini-node:focus-visible .mini-node-body {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 18px rgba(0, 71, 187, 0.62), 0 0 24px rgba(172, 79, 198, 0.42);
}

.mini-node:hover .mini-node-label,
.mini-node:focus-visible .mini-node-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Domain nodes: text inside on individual hover */
.mini-node:not(.has-icon):hover .mini-node-label,
.mini-node:not(.has-icon):focus-visible .mini-node-label {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.center {
  /* réglage de la taille du coeur */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(15vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  z-index: 20;
  border: 1px solid rgba(217, 217, 214, 0.4);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 74% 70%, rgba(255, 130, 0, 0.27), rgba(0, 0, 0, 0) 56%),
    linear-gradient(150deg, rgba(0, 71, 187, 0.48), rgba(172, 79, 198, 0.38));
  box-shadow: 0 0 48px rgba(0, 71, 187, 0.38), inset 0 0 38px rgba(255, 130, 0, 0.16);
  animation: coreBeat 2.2s ease-in-out infinite;
  pointer-events: none;
}

.center::before,
.center::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.center::before {
  inset: -16px;
  border: 1px dashed rgba(172, 79, 198, 0.45);
  animation: pulse 4.8s ease-in-out infinite;
}

.center::after {
  inset: -8px;
  border: 1px solid rgba(0, 71, 187, 0.45);
  opacity: 0.5;
  animation: coreAura 2.2s ease-in-out infinite;
}

.center:hover,
.center:focus-visible {
  outline: none;
  box-shadow: 0 0 56px rgba(0, 71, 187, 0.5), 0 0 42px rgba(172, 79, 198, 0.4), inset 0 0 44px rgba(255, 130, 0, 0.28);
}

.center-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
}

.center-logo {
  width: min(48%, 136px);
  opacity: 0.97;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 24px rgba(0, 71, 187, 0.52));
  pointer-events: auto;
}

.center-logo {
  filter: brightness(0) invert(1) drop-shadow(0 8px 24px rgba(0, 71, 187, 0.52));
}

/* === CENTER HUB: 3 core satellites === */
.center-hub-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(32vw, 340px);
  height: min(32vw, 340px);
  pointer-events: none;
  z-index: 11;
}

.center-hub-shell.hovering {
  pointer-events: auto;
}

.center-mini-cluster {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: spin calc(16s * var(--perf-motion-multiplier)) linear infinite;
  z-index: 1;
}

.center-mini-node {
  --theta: 0deg;
  --dot-r: 120px; /*Ecartement des sous satellites du noyau central*/
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(var(--theta)) translateY(calc(-1 * var(--dot-r)));
  text-decoration: none;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

.center-mini-node-body {
  position: relative;
  min-width: calc(14px * var(--size-mult, 1));
  width: calc(14px * var(--size-mult, 1));
  height: calc(14px * var(--size-mult, 1));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(217, 217, 214, 0.12);
  box-shadow: 0 0 12px rgba(255, 130, 0, 0.32), 0 0 16px rgba(172, 79, 198, 0.18);
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.15),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.center-mini-point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 130, 0, 0.8), rgba(172, 79, 198, 0.6));
  box-shadow: 0 0 12px rgba(255, 130, 0, 0.58), 0 0 16px rgba(172, 79, 198, 0.42);
}

.center-mini-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  font-family: "Share Tech Mono", monospace;
  font-size: 6px;
  white-space: normal;
  text-align: center;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pv-white);
  pointer-events: none;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  width: 100%;
  max-width: 16px;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

/* Hover on center hub: expand mini-nodes */

.center-hub-shell.hovering .center-mini-node {
  /* Réglage de l'écartement des sous satellites */
  --dot-r: 140px;
  pointer-events: auto;
}
.center-hub-shell.hovering .center-mini-node-body {
  transform: scale(4.86);
  border-color: rgba(255, 130, 0, 0.55);
  background: linear-gradient(135deg, rgba(255, 130, 0, 0.82), rgba(172, 79, 198, 0.72));
  box-shadow: 0 0 32px 8px rgba(255, 130, 0, 0.32), 0 0 36px 8px rgba(172, 79, 198, 0.22);
  z-index: 10;
}

/* Écarter uniquement les orbiteurs racine pour garder chaque hub et ses sous-satellites solidaires */
.orbital-layer.push-others > .orbiter > .planet,
.orbital-layer.push-others > .orbiter > .hub-shell {
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * (var(--radius-px) + 60px))) rotate(calc(-1 * var(--angle)));
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}
.ring.push-others {
  width: calc(100% + 60px) !important;
  height: calc(100% + 60px) !important;
  transition: width 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15), height 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}

.center-hub-shell.hovering .center-mini-label {
  /* réglage de la taille des textes */
  opacity: 1;
  font-size: 3px;
  max-width: 50px;
  color: #fff;
  text-shadow: 0 2px 12px #000, 0 0 8px #ac4fc6;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Pulse/épaisseur sur les rings */
.ring.pulse {
  animation: ringPulse 1.6s cubic-bezier(.4,1.6,.6,1) infinite;
  border-width: 4px !important;
  box-shadow: 0 0 32px 8px rgba(255,130,0,0.18), 0 0 36px 8px rgba(172,79,198,0.14);
}

@keyframes ringPulse {
  0%, 100% { border-width: 4px; opacity: 1; }
  50% { border-width: 10px; opacity: 0.85; }
}

.center-hub-shell.hovering .center-mini-label {
  opacity: 1;
}

/* Pause orbit on hover */
.center-hub-shell.hovering .center-mini-cluster {
  animation-play-state: paused;
}

.center-name {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--pv-white);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-family: "Michroma", sans-serif;
  font-size: clamp(11px, 1vw, 14px);
  text-align: center;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--pv-grey);
  font-size: 12px;
  z-index: 9;
  transition: opacity 0.5s ease;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(217, 217, 214, 0.3);
  background: linear-gradient(135deg, rgba(0, 71, 187, 0.3), rgba(172, 79, 198, 0.22));
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.main {
  background: var(--pv-blue);
}

.dot.social {
  background: var(--pv-violet);
}

.dot.sub {
  background: var(--pv-orange);
}

.dot.team {
  background: #43d97f;
}

.legal-footer {
  position: fixed;
  left: 8px;
  bottom: 8px;
  transform: none;
  z-index: 10;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(217, 217, 214, 0.18);
  backdrop-filter: blur(4px);
  font-size: clamp(8px, 0.65vw, 10px);
  letter-spacing: 0.03em;
  color: rgba(217, 217, 214, 0.72);
  opacity: 0.68;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.legal-footer:hover,
.legal-footer:focus-within {
  opacity: 0.9;
  border-color: rgba(217, 217, 214, 0.32);
}

.legal-copy {
  color: rgba(217, 217, 214, 0.66);
}

.legal-link {
  color: rgba(217, 217, 214, 0.74);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(255, 130, 0, 0.65);
  outline: none;
}

/* === ZOOM BACKDROP (darkens bg layers below layout) === */
#zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

#zoom-backdrop.active {
  opacity: 1;
}

/* === ZOOMED HUB — camera handles centering, class only expands mini-nodes === */
.hub-shell.hub-zoomed .mini-cluster {
  animation-play-state: paused !important;
}

.hub-shell.hub-zoomed .mini-node-body {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  border-color: rgba(217, 217, 214, 0.34);
  background: linear-gradient(135deg, rgba(0, 71, 187, 0.62), rgba(172, 79, 198, 0.58));
  box-shadow: 0 0 16px rgba(0, 71, 187, 0.44), 0 0 20px rgba(172, 79, 198, 0.34);
}

.hub-shell.hub-zoomed .mini-node.has-icon .mini-node-point { display: none; }
.hub-shell.hub-zoomed .mini-node.has-icon .mini-node-icon { display: block; }
.hub-shell.hub-zoomed .mini-node:not(.has-icon) .mini-node-point { display: none; }
.hub-shell.hub-zoomed .mini-node:not(.has-icon) .mini-node-label {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* ===================== HUD ===================== */
.hud-bracket {
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 1s ease 0.2s;
}
.hud-bracket.hud-visible { opacity: 1; }

.hud-bracket::before,
.hud-bracket::after {
  content: '';
  position: absolute;
  background: rgba(0, 71, 187, 0.65);
}
.hud-bracket::before { height: 2px; left: 0; right: 0; }
.hud-bracket::after  { width: 2px; top: 0; bottom: 0; }

.hud-tl { top: 3%; left: 3%; }
.hud-tl::before { top: 0; }
.hud-tl::after  { left: 0; }

.hud-tr { top: 3%; right: 3%; }
.hud-tr::before { top: 0; }
.hud-tr::after  { right: 0; }

.hud-bl { bottom: 3%; left: 3%; }
.hud-bl::before { bottom: 0; }
.hud-bl::after  { left: 0; }

.hud-br { bottom: 3%; right: 3%; }
.hud-br::before { bottom: 0; }
.hud-br::after  { right: 0; }

.hud-scan {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(0, 71, 187, 0.5) 30%, rgba(172, 79, 198, 0.4) 70%, transparent 100%);
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  animation: hudScan 8s linear infinite;
  animation-play-state: paused;
  transition: opacity 1s ease 0.6s;
}

.hud-scan.hud-active {
  animation-play-state: running;
}
.hud-scan.hud-visible {
  opacity: 1;
  animation-play-state: running;
}

.hud-label {
  position: absolute;
  font-family: "Share Tech Mono", monospace;
  font-size: 8px;
  color: rgba(0, 71, 187, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 1s ease 0.4s;
}
.hud-label.hud-visible { opacity: 1; }

.hud-label-tl { top: calc(3% + 12px); left: calc(3% + 6px); }
.hud-label-tr { top: calc(3% + 12px); right: calc(3% + 6px); }
.hud-label-bl { bottom: calc(3% + 12px); left: calc(3% + 6px); }
.hud-label-br { bottom: calc(3% + 12px); right: calc(3% + 6px); }

.hud-blink {
  display: inline-block;
  animation: hudBlink 1.2s step-end infinite;
  animation-play-state: paused;
}

.hud-visible .hud-blink {
  animation-play-state: running;
}

/* ================== BOOT OVERLAY ================== */
#boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
#boot-overlay.boot-out {
  opacity: 0;
  pointer-events: none;
}

.boot-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: min(520px, 88vw);
}

.boot-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: center;
}

.boot-logo-img {
  width: 52px;
  height: 52px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.boot-title {
  font-family: "Michroma", sans-serif;
  font-size: clamp(14px, 2vw, 20px);
  color: var(--pv-white);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
}

.boot-log {
  width: 100%;
  min-height: 132px;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  color: rgba(0, 150, 255, 0.88);
  line-height: 1.9;
  margin: 0;
  overflow: hidden;
}

.boot-line {
  display: block;
  opacity: 0;
  animation: bootLineIn 0.12s forwards;
}

.boot-line.ok::after {
  content: ' [OK]';
  color: rgba(172, 79, 198, 0.85);
}

.boot-bar-wrap {
  width: 100%;
  height: 2px;
  background: rgba(0, 71, 187, 0.2);
  border-radius: 1px;
  overflow: hidden;
}

.boot-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--pv-blue), var(--pv-violet));
  transition: width 0.28s ease;
  border-radius: 1px;
}

.boot-status {
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  color: rgba(172, 79, 198, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  align-self: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.boot-status.visible { opacity: 1; }

/* ===================== KEYFRAMES ===================== */
@keyframes hudScan {
  0%   { top: 0%; }
  100% { top: 100%; }
}

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

@keyframes bootLineIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.035); }
}

@keyframes coreBeat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  14% { transform: translate(-50%, -50%) scale(1.025); }
  28% { transform: translate(-50%, -50%) scale(1); }
  42% { transform: translate(-50%, -50%) scale(1.04); }
  56% { transform: translate(-50%, -50%) scale(1); }
}

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

@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 120px 0, 0 -84px; }
}

@keyframes satellitePulse {
  0% {
    border-color: rgba(0, 71, 187, 0.18);
    box-shadow: 0 0 0 0 rgba(172, 79, 198, 0.35), 0 0 0 0 rgba(0, 71, 187, 0.25);
  }
  70% {
    border-color: rgba(0, 71, 187, 0.92);
    box-shadow: 0 0 0 9px rgba(172, 79, 198, 0), 0 0 24px 4px rgba(0, 71, 187, 0.52);
  }
  100% {
    border-color: rgba(172, 79, 198, 0.26);
    box-shadow: 0 0 0 0 rgba(172, 79, 198, 0), 0 0 0 0 rgba(0, 71, 187, 0);
  }
}

@keyframes miniFloat {
  from { transform: translate(-50%, -50%) rotate(var(--theta)) translateY(calc(-1 * var(--dot-r))) scale(0.95); }
  to { transform: translate(-50%, -50%) rotate(var(--theta)) translateY(calc(-1 * (var(--dot-r) + 4px))) scale(1.05); }
}

/* === INFO PANEL (DESKTOP ONLY, RETROFUTURISTIC STYLE) === */
.info-panel {
  --panel-open-width: 320px;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: var(--panel-open-width);
  max-height: 90vh;
  display: none;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.92) 0%, rgba(10, 10, 20, 0.95) 100%);
  border: 2px solid rgba(0, 71, 187, 0.78);
  border-right: none;
  box-shadow: -12px 0 48px rgba(0, 71, 187, 0.35), inset 1px 1px 12px rgba(255, 130, 0, 0.12);
  font-family: "Share Tech Mono", monospace;
  backdrop-filter: blur(8px);
  overflow: visible;
  animation: panelSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition: width 0.52s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, background 0.4s ease;
}

.info-panel.collapsed {
  width: 2px;
  box-shadow: -6px 0 20px rgba(0, 71, 187, 0.2), inset 1px 1px 8px rgba(255, 130, 0, 0.06);
}

.info-panel.collapsed .info-panel-content {
  opacity: 0;
  transform: translateX(18px);
  filter: blur(2px);
  pointer-events: none;
}

.info-panel-toggle {
  position: absolute;
  left: -16px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 30px;
  background: linear-gradient(180deg, rgba(0, 71, 187, 0.3), rgba(172, 79, 198, 0.25));
  border: 1px solid rgba(0, 71, 187, 0.45);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 0.32s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.25s ease, opacity 0.25s ease;
  z-index: 26;
  box-shadow: -1px 0 6px rgba(0, 71, 187, 0.24);
  padding: 0;
  opacity: 0.52;
}

.info-panel-toggle:hover {
  background: linear-gradient(180deg, rgba(0, 71, 187, 0.5), rgba(172, 79, 198, 0.44));
  box-shadow: -2px 0 10px rgba(0, 71, 187, 0.42), inset 0 0 6px rgba(255, 130, 0, 0.16);
  transform: translateY(-50%) scale(1.03);
  color: rgba(255, 255, 255, 0.84);
  opacity: 0.86;
}

.info-panel-toggle:focus-visible {
  outline: 1px solid rgba(255, 130, 0, 0.88);
  outline-offset: 2px;
}

.toggle-icon {
  display: inline-block;
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.toggle-online-pill {
  position: absolute;
  left: -56px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(120, 255, 120, 0.35);
  background: rgba(2, 16, 6, 0.78);
  color: rgba(160, 255, 160, 0.92);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  box-shadow: 0 0 8px rgba(48, 255, 90, 0.22);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toggle-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35ff6f;
  box-shadow: 0 0 8px rgba(53, 255, 111, 0.86);
  animation: statusPulse 1.2s ease-in-out infinite;
}

.toggle-online-text {
  opacity: 0.9;
}

.info-panel.collapsed .toggle-online-pill {
  opacity: 0.92;
  transform: translateY(-50%) translateX(0);
}

.info-panel:not(.collapsed) .toggle-online-pill {
  opacity: 0;
  transform: translateY(-50%) translateX(6px);
}

.info-panel.collapsed .toggle-icon {
  transform: rotateY(180deg) scale(0.9);
}

.info-panel-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), filter 0.42s ease;
}

.info-panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 71, 187, 0.45);
  background: linear-gradient(to bottom, rgba(0, 71, 187, 0.15), rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.info-panel-title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--pv-white);
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 71, 187, 0.5);
  font-weight: 700;
}

.info-panel-scanline {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 71, 187, 0.5), transparent);
  margin-top: 6px;
  animation: scanlineShift 3s linear infinite;
}

.info-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 71, 187, 0.5) rgba(0, 0, 0, 0.2);
}

.info-map-frame {
  width: 100%;
  min-height: 230px;
  border: 0;
  border-radius: 6px;
}

.info-panel-body::-webkit-scrollbar {
  width: 6px;
}

.info-panel-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.info-panel-body::-webkit-scrollbar-thumb {
  background: rgba(0, 71, 187, 0.5);
  border-radius: 3px;
}

.info-placeholder {
  color: rgba(217, 217, 214, 0.45);
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
  text-align: center;
  padding: 40px 8px;
}

.info-item {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(0, 71, 187, 0.35);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(0, 71, 187, 0.08), rgba(172, 79, 198, 0.05));
  box-shadow: inset 0 0 8px rgba(0, 71, 187, 0.12), 0 0 8px rgba(0, 71, 187, 0.2);
  animation: infoGlitch 0.3s ease-out;
}

.info-item-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: rgba(255, 130, 0, 0.9);
}

.info-item-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.info-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 130, 0, 0.82);
  text-transform: uppercase;
  margin: 0 0 6px 0;
  text-shadow: 0 0 4px rgba(255, 130, 0, 0.4);
}

.info-title {
  font-size: 12px;
  color: var(--pv-white);
  margin: 0 0 6px 0;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.info-description {
  font-size: 10px;
  color: rgba(217, 217, 214, 0.72);
  margin: 0;
  line-height: 1.5;
}

.info-panel-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(0, 71, 187, 0.45);
  background: linear-gradient(to top, rgba(0, 71, 187, 0.15), rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.info-panel-status {
  color: rgba(0, 255, 0, 0.78);
  text-shadow: 0 0 6px rgba(0, 255, 0, 0.5);
  animation: statusPulse 1.2s ease-in-out infinite;
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes scanlineShift {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 0; }
}

@keyframes infoGlitch {
  0% {
    transform: translateX(-2px);
    opacity: 0.8;
  }
  50% {
    transform: translateX(1px);
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Desktop only: show info panel */
@media (min-width: 901px) {
  .info-panel {
    display: flex;
  }
}


/* === Responsive overhaul for perfect mobile/tablet adaptation === */
@media (max-width: 1200px) {
  .system { --size: min(92vw, 92vh); }
  #ring-main { width: 54%; height: 54%; }
  #ring-social { width: 78%; height: 78%; }
  #ring-sub { width: 98%; height: 98%; }
  #ring-team { width: 112%; height: 112%; }
  .planet .label { letter-spacing: 0.03em; font-size: 11px; }
  .center-hub-shell { width: min(38vw, 340px); height: min(38vw, 340px); }
  .planet.team-item { width: 52px; height: 52px; }
  .planet.team-item .label { font-size: 12px; }
}

@media (max-width: 900px) {
  .layout { padding: 6vw 2vw 4vw 2vw; }
  .system { --size: min(99vw, 99vh); min-width: 220px; min-height: 220px; }
  .center-hub-shell { width: min(54vw, 320px); height: min(54vw, 320px); }
  .center { width: min(36vw, 170px); }
  .center-logo { width: min(80%, 110px); }
  .center-mini-node { --dot-r: 105px; }
  /* Réglage de l'écartement des sous satellites */
  .center-hub-shell.hovering .center-mini-node { --dot-r: 120px; }
  .planet { width: 64px; height: 64px; }
  .planet .label { font-size: 9px; max-width: 54px; }
  .planet.main-item { width: 70px; height: 70px; }
  .planet.hub-item { width: 66px; height: 66px; }
  #social-layer .planet.hub-item { width: 52px; height: 52px; }
  #sub-layer .planet.hub-item { width: 50px; height: 50px; }
  .planet.team-item { width: 44px; height: 44px; }
  .planet.team-item .label { font-size: 10px; }
  .mini-node-body { width: 18px; min-width: 18px; height: 18px; }
  .hub-shell { width: 120px; height: 120px; }
  .ring { border-width: 1.5px; }
  .legend { font-size: 11px; gap: 6px; }
  .center-mini-label { font-size: 8px; max-width: 30px; }
}

@media (max-width: 700px) {
  .layout { padding: 2vw 1vw 50px 1vw; grid-template-rows: auto 1fr auto; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .title { font-size: 18px; }
  .subtitle { font-size: 11px; }
  .hint { font-size: 10px; padding: 6px 8px; }
  .system { --size: min(100vw, 80vh); min-width: 160px; min-height: 160px; }
  .center-hub-shell { width: min(80vw, 220px); height: min(80vw, 220px); }
  .center { width: min(48vw, 110px); }
  .center-logo { width: min(90%, 70px); }
  .center-mini-node { --dot-r: 68px; }
  /* Réglage de l'écartement des sous satellites */
  .center-hub-shell.hovering .center-mini-node { --dot-r: 70px; }
  .planet { width: 38px; height: 38px; }
  .planet .label { font-size: 7px; max-width: 32px; }
  .planet.main-item { width: 44px; height: 44px; }
  .planet.hub-item { width: 40px; height: 40px; }
  #social-layer .planet.hub-item { width: 34px; height: 34px; }
  #sub-layer .planet.hub-item { width: 32px; height: 32px; }
  .planet.team-item { width: 34px; height: 34px; }
  .planet.team-item .label { font-size: 8px; }
  .mini-node { --dot-r: 38px; }
  .mini-node-body { width: 10px; min-width: 10px; height: 10px; }
  /* Réglage de l'écartement des sous satellites */
  .hub-shell:hover .mini-node,
  .hub-shell:focus-within .mini-node { --dot-r: 48px; }
  .hub-shell { width: 60px; height: 60px; }
  .legend { font-size: 9px; gap: 4px; }
  .center-mini-label { font-size: 6px; max-width: 16px; }
  .center-hub-shell.hovering .center-mini-node-body { transform: scale(2.29); }
  #social-layer .planet.hub-item .label svg,
  #sub-layer .planet.hub-item .label svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  html, body { font-size: 13px; }
  .layout { padding: 2vw 0.5vw 42px 0.5vw; }
  .system { --size: min(100vw, 70vh); min-width: 120px; min-height: 120px; }
  .center-hub-shell { width: min(98vw, 140px); height: min(98vw, 140px); }
  .center { width: min(80vw, 60px); }
  .center-logo { width: min(100%, 38px); }
  .center-mini-node { --dot-r: 38px; } /*Distances satellites central petits écrans*/
  /* Réglage de l'écartement des sous satellites */
  .center-hub-shell.hovering .center-mini-node { --dot-r: 26px; }
  .planet { width: 18px; height: 18px; }
  .planet .label { font-size: 6px; max-width: 16px; }
  .planet.main-item { width: 22px; height: 22px; }
  .planet.hub-item { width: 20px; height: 20px; }
  #social-layer .planet.hub-item { width: 25px; height: 25px; }
  #sub-layer .planet.hub-item { width: 25px; height: 25px; }
  .planet.team-item { width: 24px; height: 24px; }
  .planet.team-item .label { font-size: 6px; }
  .mini-node { --dot-r: 27px; }
  .mini-node-body { width: 6px; min-width: 6px; height: 6px; }
  /* Réglage de l'écartement des sous satellites en focus */
  .hub-shell:hover .mini-node,
  .hub-shell:focus-within .mini-node { --dot-r: 50px; }
  .hub-shell { width: 24px; height: 24px; }
  .legend { font-size: 8px; gap: 2px; }
  .center-mini-label { font-size: 5px; max-width: 8px; }
  .center-hub-shell.hovering .center-mini-node-body { transform: scale(1.29); }
  .center-name { font-size: 7px; }
  .legal-footer { font-size: 7px; padding: 4px 6px; gap: 4px; }
  #social-layer .planet.hub-item .label svg,
  #sub-layer .planet.hub-item .label svg {
    width: 15px;
    height: 15px;
  }
}

/* Touch-specific improvements */
@media (pointer: coarse) {
  .center-logo, .planet, .mini-node, .center-mini-node {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,71,187,0.18);
  }
  .center-logo:active, .planet:active, .mini-node:active, .center-mini-node:active {
    filter: brightness(1.2) drop-shadow(0 0 8px #ff8200);
  }
  .center-hub-shell.hovering .center-mini-node-body, .hub-shell.hub-zoomed .mini-node-body {
    box-shadow: 0 0 18px 4px #ff8200, 0 0 18px 4px #ac4fc6;
  }
}

/* Accessibility: ensure focus rings are visible on mobile/tablet */
@media (max-width: 700px) {
  .planet:focus-visible, .mini-node:focus-visible, .center-logo:focus-visible {
    outline: 2px solid #ff8200;
    outline-offset: 2px;
    z-index: 99;
  }
}

/* Mobile-specific styles for info panel */
@media (max-width: 768px) {
  .info-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: var(--pv-white);
    padding: 16px;
    transform: translateY(100%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
  }

  .info-panel.active {
    transform: translateY(0);
    opacity: 1;
  }
}
