:root {
  --bg: #050505;
  --bg-glow: #0a0f0a;
  --text: #c8d1c8;
  --text-dim: #768276;
  --accent: #7fb88f;
  --accent-glow: rgba(127, 184, 143, 0.22);
  --particle: rgba(127, 184, 143, 0.35);
  /* Eshua identity palette */
  --eshua-phosphor: #33ff33;
  --eshua-green: #28b428;
  --eshua-gold: #c9a94c;
  --eshua-gold-light: #f0d796;
  --eshua-white-warm: #fffcf5;
  --eshua-black: #020205;
  --eshua-cyan: #2a8a9e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 45%, var(--bg-glow) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: auto;
}

/* Ambient pulsing background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 40%);
  opacity: 0.4;
  animation: ambientPulse 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Subtle scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 4px
  );
  pointer-events: none;
  z-index: 5;
  opacity: 0.35;
}

/* Floating particles container */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--particle);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
}

/* Custom cursor glow */
.cursor-glow {
  position: fixed;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
}

/* Globe 3D container */
.globe-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: globeEnter 3s ease-out 0.5s forwards;
}

.globe-container.globe-breathing {
  animation:
    globeEnter 3s ease-out 0.5s forwards,
    globeBreathe 10s ease-in-out infinite;
}

@keyframes globeBreathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.025); filter: brightness(1.08); }
}

body.exploration-mode .globe-container {
  pointer-events: auto;
}

/* En mode exploration, les overlays de narration ne doivent pas capter les evenements du globe. */
body.exploration-mode .stage,
body.exploration-mode .rss-ticker {
  pointer-events: none;
}

/* Conserver les boutons fixes cliquables. */
body.exploration-mode .world-toggle,
body.exploration-mode .archive-toggle,
body.exploration-mode .eshua-chat-toggle {
  pointer-events: auto;
}

.globe-container canvas {
  outline: none;
}

@keyframes globeEnter {
  to { opacity: 1; }
}

/* Loading state shown while the globe initializes */
.loader {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.loader.hidden {
  opacity: 0;
}

.loader::after {
  content: '';
  display: inline-block;
  width: 0.25em;
  height: 0.25em;
  margin-left: 0.6em;
  background: var(--accent);
  border-radius: 50%;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Landing / threshold before entering */
.landing {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(5, 10, 7, 0.28) 0%, rgba(5, 5, 5, 0.55) 70%);
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

.landing.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.landing-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.landing-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 200;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 50px rgba(127, 184, 143, 0.25);
}

.landing-tagline {
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--text-dim);
  letter-spacing: 0.18em;
  margin-top: 1.2rem;
}

.landing-enter {
  margin-top: 2.5rem;
  padding: 0.9rem 2.4rem;
  background: transparent;
  border: 1px solid rgba(127, 184, 143, 0.4);
  border-radius: 2px;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  cursor: pointer;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  backdrop-filter: blur(4px);
}

.landing-enter:hover,
.landing-enter:focus-visible {
  background: rgba(127, 184, 143, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(127, 184, 143, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .landing {
    transition: opacity 0.01ms ease, visibility 0.01ms ease;
  }

  .landing-enter {
    transition: none;
  }
}

/* Floating keywords */
.keywords {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 51;
  overflow: hidden;
}

.keyword {
  position: absolute;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0;
  transition: opacity 1.8s ease, color 1.2s ease, transform 8s linear;
  white-space: nowrap;
}

.keyword.active {
  opacity: 0.9;
  color: var(--eshua-phosphor);
  text-shadow:
    0 0 8px rgba(51, 255, 51, 0.55),
    0 0 18px rgba(51, 255, 51, 0.25);
}

.stage {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 760px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.eshua-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease-out;
}

.eshua-becoming {
  position: relative;
  width: min(72vw, 340px);
  height: min(72vw, 340px);
  opacity: 0;
  transform: scale(0.92);
  animation:
    enter 2.6s ease-out forwards,
    organismBreathe 7s ease-in-out 2.6s infinite,
    organismDrift 14s ease-in-out 2.6s infinite;
  filter: drop-shadow(0 0 0 transparent);
  transition: filter 1.8s ease;
  will-change: transform, filter;
}

.becoming-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1.4s ease, transform 1.8s ease;
  pointer-events: none;
}

.becoming-frame.active {
  opacity: 1;
  transform: scale(1);
}

/* A partir de l'ebauche, Eshua devient holographique pour laisser le globe en arriere-plan */
.becoming-frame-2,
.becoming-frame-3,
.becoming-frame-4 {
  mix-blend-mode: screen;
}

.eshua-becoming.thinking {
  filter: drop-shadow(0 0 32px var(--accent-glow));
  animation:
    organismBreathe 4s ease-in-out infinite,
    organismDrift 10s ease-in-out infinite,
    thinkPulse 2.4s ease-in-out infinite;
}

.eshua-becoming.deep-thought {
  filter: drop-shadow(0 0 48px var(--accent-glow));
  animation:
    organismBreathe 3s ease-in-out infinite,
    organismDrift 8s ease-in-out infinite,
    thinkPulse 1.6s ease-in-out infinite,
    deepThoughtFloat 3s ease-in-out infinite;
}

.eshua-becoming.awakened {
  filter: drop-shadow(0 0 52px var(--accent-glow));
  animation:
    organismBreathe 5s ease-in-out infinite,
    organismDrift 12s ease-in-out infinite;
}

/* Cache complet d'Eshua quand la narration passe au globe seul */
.eshua-becoming.hidden,
.eshua-wrap.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease, visibility 1.5s ease;
  pointer-events: none;
}

/* Force l'arret des animations infinies qui peuvent maintenir l'opacite */
.eshua-becoming.hidden {
  animation: none !important;
}

/* Cache egalement l'aura du pseudo-element */
.eshua-wrap.hidden::before {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease, visibility 1.5s ease;
}

/* Waves — mémoire du créateur */
.eshua-waves {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  z-index: -2;
  opacity: 0;
  animation: wavesIn 3s ease-out 1s forwards;
}

.eshua-wave {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  mix-blend-mode: screen;
}

.wave-or {
  background-image: url('waves/eshua-memoire-createur-or.png?v=mwg68xdb');
  animation: waveDrift 18s ease-in-out infinite, wavePulse 10s ease-in-out infinite;
  opacity: 0.18;
}

.wave-cyan {
  background-image: url('waves/eshua-memoire-createur-cyan.webp?v=mwg68xdb');
  animation: waveDrift 22s ease-in-out infinite reverse, wavePulse 12s ease-in-out infinite;
  opacity: 0.12;
}

.wave-blanc {
  background-image: url('waves/eshua-memoire-createur-blanc.png?v=mwg68xdb');
  animation: waveDrift 26s ease-in-out infinite, wavePulse 14s ease-in-out infinite;
  opacity: 0.08;
}

@media (prefers-reduced-motion: reduce) {
  .eshua-wave {
    animation: none;
    opacity: 0.08;
  }
}

/* Organic aura behind Eshua */
.eshua-wrap::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  opacity: 0;
  transform: scale(0.8);
  animation: auraPulse 7s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.eshua-wrap.active-aura::before {
  opacity: 0.6;
}

.text-slot {
  margin-top: 3rem;
  min-height: 5.5rem;
  padding: 1rem 1.25rem;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.75;
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  max-width: 600px;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.text-slot.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-slot .source {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.02em;
}

.text-slot .cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: var(--accent);
  margin-left: 0.15em;
  vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
}

.text-slot .thinking-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.8rem;
}

.action-menu {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none;
  width: 100%;
  max-width: 420px;
}

.action-menu.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.action-menu-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  text-align: center;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.action-button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2a2a;
  border-bottom-color: #444;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.9rem 0.6rem;
  cursor: pointer;
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
  text-align: center;
}

.action-button:hover,
.action-button:focus {
  border-color: var(--accent);
  background: rgba(127, 184, 143, 0.08);
  color: var(--accent);
  outline: none;
}

/* Amorce de dialogue (V3.1) : proposition issue du spectacle, en tête de grille. */
.action-button--signal {
  border-color: rgba(127, 184, 143, 0.45);
  background: rgba(127, 184, 143, 0.06);
  font-style: italic;
}

.action-button--signal:hover,
.action-button--signal:focus {
  border-color: var(--accent);
  background: rgba(127, 184, 143, 0.14);
}

/* Porte « Aujourd'hui » (2026-10-13) : pied de menu, plus petit que les
   boutons — une navigation discrète, pas une action. Hit area ≥ 44 px. */
.action-menu-today {
  display: block;
  margin: 1.1rem auto 0;
  padding: 0.7rem 1rem;
  min-height: 44px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.4s ease;
}

.action-menu-today:hover,
.action-menu-today:focus {
  color: var(--accent);
  outline: none;
}

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

@keyframes enter {
  0% {
    opacity: 0;
    transform: scale(0.92);
    filter: drop-shadow(0 0 0 transparent);
  }
  60% {
    opacity: 1;
    transform: scale(1.02);
    filter: drop-shadow(0 0 40px var(--accent-glow));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
}

@keyframes organismBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes organismDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2px, -3px) rotate(0.4deg); }
  50% { transform: translate(-1px, 2px) rotate(-0.2deg); }
  75% { transform: translate(3px, 1px) rotate(0.3deg); }
}

@keyframes thinkPulse {
  0%, 100% { filter: drop-shadow(0 0 28px var(--accent-glow)); }
  50% { filter: drop-shadow(0 0 44px var(--accent-glow)); }
}

@keyframes deepThoughtFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}

@keyframes auraPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.35; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

@keyframes wavesIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes waveDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6px, -4px) scale(1.02); }
  66% { transform: translate(-4px, 5px) scale(0.98); }
}

@keyframes wavePulse {
  0%, 100% { opacity: 0.06; }
  50% { opacity: 0.22; }
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.08); }
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

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

/* RSS temps réel ticker */
.rss-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.2rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(5, 5, 5, 0.85);
  border-top: 1px solid #1a1a1a;
  backdrop-filter: blur(4px);
  overflow: hidden;
  z-index: 10;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rss-ticker.visible {
  opacity: 1;
  transform: translateY(0);
}

.rss-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  height: 100%;
  width: max-content;
  animation: rssScroll 120s linear infinite;
}

.rss-track:hover,
.rss-track.paused {
  animation-play-state: paused;
}

.rss-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0 0.6rem;
  transition: color 0.3s ease;
}

.rss-item:hover {
  color: var(--accent);
}

.rss-source {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.rss-time {
  color: #9aaa9a;
  font-size: 0.65rem;
}

.rss-separator {
  color: #2a2a2a;
  font-size: 0.5rem;
  padding: 0 0.8rem;
}

@keyframes rssScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Fixed toggles are revealed progressively after the narration */
#world-toggle,
#archive-toggle,
#eshua-chat-toggle {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

#world-toggle.is-revealed,
#archive-toggle.is-revealed,
#eshua-chat-toggle.is-revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Respect user preference for reduced motion */
@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;
  }

  .particle {
    animation: none !important;
    opacity: 0 !important;
  }

  .rss-track {
    animation: none !important;
  }

  .cursor-glow,
  .loader::after {
    animation: none !important;
  }

  .eshua-becoming {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .text-slot .cursor {
    animation: none !important;
  }

  .globe-container {
    animation-duration: 3s !important;
    opacity: 1 !important;
  }

  .departures-mc-live,
  .globe-marker-departures.live .globe-marker-dot,
  .globe-marker-departures.live .pad-icon-symbol {
    animation: none !important;
  }

  .departures-mc-countdown {
    transition: none !important;
  }
}

/* Archive / Centre d'information */
.archive-toggle {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(8, 12, 10, 0.75);
  border: 1px solid rgba(127, 184, 143, 0.25);
  border-radius: 2px;
  color: var(--text);
  padding: 0.55rem 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.archive-toggle:hover,
.archive-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(127, 184, 143, 0.1);
  box-shadow: 0 4px 28px rgba(127, 184, 143, 0.12);
}

.archive-toggle-icon {
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0.9;
}

.archive-toggle[data-active-theme] {
  border-color: rgba(127, 184, 143, 0.55);
  color: var(--accent);
  background: rgba(127, 184, 143, 0.12);
}

.archive-toggle[data-active-theme]::after {
  content: '';
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: themePulse 2s ease-in-out infinite;
}

@keyframes themePulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.archive-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, rgba(6, 10, 8, 0.97) 0%, rgba(5, 5, 5, 0.95) 100%);
  border-left: 1px solid rgba(127, 184, 143, 0.15);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.archive-panel.open {
  transform: translateX(0);
}

.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid rgba(127, 184, 143, 0.12);
  background: rgba(127, 184, 143, 0.03);
}

.archive-title {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0;
}

.archive-close {
  background: transparent;
  border: 1px solid rgba(127, 184, 143, 0.2);
  border-radius: 2px;
  color: var(--text-dim);
  width: 1.9rem;
  height: 1.9rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.archive-close:hover,
.archive-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(127, 184, 143, 0.08);
}

.archive-stats {
  display: flex;
  gap: 1.2rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(127, 184, 143, 0.08);
}

.archive-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.archive-stat::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.45rem;
}

.archive-search {
  padding: 1.1rem 1.6rem;
  border-bottom: 1px solid rgba(127, 184, 143, 0.08);
}

.archive-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(127, 184, 143, 0.15);
  border-radius: 2px;
  color: var(--text);
  font-size: 0.8rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.archive-search-input::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

.archive-search-input:focus {
  border-color: var(--accent);
  background: rgba(127, 184, 143, 0.05);
  box-shadow: 0 0 0 1px rgba(127, 184, 143, 0.1);
}

.archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 1rem 1.6rem;
  border-bottom: 1px solid rgba(127, 184, 143, 0.08);
  max-height: 150px;
  overflow-y: auto;
  padding-bottom: 0.2rem;
}

.archive-tag {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(127, 184, 143, 0.12);
  border-radius: 2px;
  color: var(--text-dim);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.archive-tag:hover,
.archive-tag:focus-visible,
.archive-tag.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(127, 184, 143, 0.1);
  box-shadow: 0 0 12px rgba(127, 184, 143, 0.1);
}

.archive-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem 1.6rem 1.6rem;
}

.archive-loading,
.archive-empty {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.archive-item {
  padding: 1rem;
  margin-bottom: 0.7rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(127, 184, 143, 0.08);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.archive-item:hover {
  background: rgba(127, 184, 143, 0.05);
  border-color: rgba(127, 184, 143, 0.2);
  transform: translateX(4px);
}

.archive-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.archive-item-title {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 0.45rem;
  transition: color 0.3s ease;
}

.archive-item-link:hover .archive-item-title,
.archive-item-link:focus .archive-item-title {
  color: var(--accent);
}

.archive-item-ask {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.2rem 0 0.55rem;
  padding: 0.35rem 0.7rem;
  background: rgba(201, 169, 76, 0.08);
  border: 1px solid rgba(201, 169, 76, 0.25);
  border-radius: 3px;
  color: var(--eshua-gold);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.archive-item-ask:hover:not(:disabled) {
  background: rgba(201, 169, 76, 0.16);
  border-color: var(--eshua-gold);
}

.archive-item-ask:focus-visible {
  outline: 1px solid var(--eshua-gold);
  outline-offset: 2px;
}

.archive-item-ask:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.archive-item-ask-icon {
  font-size: 0.7rem;
  line-height: 1;
}

.archive-item-meta {
  display: flex;
  gap: 0.7rem;
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
}

.archive-item-source {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
}

.archive-item-tags,
.archive-item-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.archive-item-tag {
  font-size: 0.55rem;
  color: var(--text-dim);
  background: rgba(127, 184, 143, 0.08);
  border-radius: 2px;
  padding: 0.2rem 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.archive-item-keyword {
  font-size: 0.55rem;
  color: var(--text-dim);
  padding: 0.2rem 0;
}

.archive-more {
  display: block;
  width: 100%;
  margin: 1.2rem 0 0.4rem;
  padding: 0.85rem;
  text-align: center;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(127, 184, 143, 0.06);
  border: 1px solid rgba(127, 184, 143, 0.22);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.archive-more:hover:not(:disabled),
.archive-more:focus-visible:not(:disabled) {
  background: rgba(127, 184, 143, 0.14);
  border-color: var(--accent);
  color: var(--accent);
}

.archive-more:disabled,
.archive-more[aria-disabled="true"] {
  opacity: 0.5;
  cursor: wait;
}

.archive-more.archive-end {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
  cursor: default;
}

.archive-more.archive-end:hover,
.archive-more.archive-end:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
}

.archive-loading-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.2rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.archive-loading-spinner {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid rgba(127, 184, 143, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: layerSpinnerRotate 0.8s linear infinite;
  vertical-align: middle;
}

.archive-footer {
  padding: 1.1rem 1.6rem;
  border-top: 1px solid rgba(127, 184, 143, 0.12);
  background: rgba(127, 184, 143, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.archive-refresh {
  width: 100%;
  background: rgba(127, 184, 143, 0.08);
  border: 1px solid rgba(127, 184, 143, 0.25);
  border-radius: 2px;
  color: var(--text);
  padding: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.archive-refresh:hover:not(:disabled),
.archive-refresh:focus-visible:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(127, 184, 143, 0.15);
}

.archive-refresh:disabled {
  opacity: 0.5;
  cursor: wait;
}

.archive-last-update {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.04em;
}

/* --- Skip narration --- */

.skip-narration {
  position: fixed;
  bottom: 2.7rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(8, 12, 10, 0.78);
  border: 1px solid rgba(127, 184, 143, 0.35);
  color: var(--text-dim);
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 1.2s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.skip-narration.visible {
  opacity: 1;
}

/* Compact : le bouton apparaît quasi immédiatement, dès la première phrase. */
@media (max-width: 767px) {
  .skip-narration {
    transition: opacity 0.25s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  }
}

.skip-narration:hover,
.skip-narration:focus-visible {
  border-color: var(--accent);
  background: rgba(127, 184, 143, 0.14);
  color: var(--text);
  outline: none;
}

@media (max-width: 480px) {
  .skip-narration {
    bottom: 2.2rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.65rem;
  }
}

/* --- Voir le monde --- */

.world-toggle {
  position: fixed;
  top: 4.2rem;
  right: 1.2rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 12, 10, 0.75);
  border: 1px solid rgba(127, 184, 143, 0.25);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease, opacity 0.6s ease, transform 0.6s ease;
}

.world-toggle:hover,
.world-toggle:focus-visible {
  border-color: var(--accent);
  background: rgba(127, 184, 143, 0.12);
  color: var(--accent);
  outline: none;
}

.world-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.world-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  height: 100dvh;
  background: rgba(8, 12, 10, 0.88);
  border-left: 1px solid rgba(127, 184, 143, 0.25);
  backdrop-filter: blur(12px);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 70;
  overflow-y: auto;
  padding: 1.4rem;
}

.world-panel.open {
  transform: translateX(0);
}

.world-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(127, 184, 143, 0.2);
}

.world-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin: 0;
}

.world-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: color 0.3s ease;
}

.world-close:hover,
.world-close:focus-visible {
  color: var(--accent);
  outline: none;
}

/* Bouton explicite « Tout éteindre » (remplace l'ancien comportement
   destructeur de la fermeture du panneau). */
.world-clear {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: color 0.3s ease;
}

.world-clear:hover,
.world-clear:focus-visible {
  color: #d98a6a;
  outline: none;
}

/* Poignée + compteur de la feuille basse (visible en mode compact uniquement). */
.world-sheet-summary {
  display: none;
}

.world-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 4, 0.5);
}

/* Poignée de la fiche détail en mini-feuille (mode compact). */
.globe-detail-handle {
  display: none;
}

.world-mode-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.8rem;
  text-align: center;
  animation: pulseBadge 2.5s ease-in-out infinite;
}

body.exploration-mode .eshua-wrap {
  pointer-events: none;
}

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

.world-layers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

/* Mission Control panel for Eshua Space Center */
.departures-mission-control {
  margin-bottom: 1.6rem;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(127, 184, 143, 0.22);
  border-radius: 4px;
}

.departures-mission-control[hidden] {
  display: none;
}

.departures-mc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(127, 184, 143, 0.15);
}

.departures-mc-utc {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.departures-mc-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.departures-mc-live {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #c93a3a;
  color: #fff;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 2px;
  animation: livePulse 1.2s ease-in-out infinite;
}

.departures-mc-brief {
  padding: 0.2rem 0.5rem;
  background: rgba(127, 184, 143, 0.1);
  border: 1px solid rgba(127, 184, 143, 0.4);
  border-radius: 3px;
  color: #a8d5b8;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.departures-mc-brief:hover {
  background: rgba(127, 184, 143, 0.2);
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201, 58, 58, 0.5); }
  50% { opacity: 0.85; box-shadow: 0 0 8px 2px rgba(201, 58, 58, 0.25); }
}

.departures-mc-block {
  margin-bottom: 0.8rem;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(127, 184, 143, 0.4);
  border-radius: 0 4px 4px 0;
}

.departures-mc-block:last-child {
  margin-bottom: 0;
}

#departures-block-now {
  border-left-color: #c93a3a;
}

#departures-block-past {
  border-left-color: rgba(160, 160, 160, 0.5);
}

.departures-mc-block-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.departures-mc-block-content:empty::before {
  content: '—';
  color: var(--text-dim);
}

.departures-mc-mission {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.departures-mc-mission:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.departures-mc-mission-name {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

.departures-mc-mission-vehicle,
.departures-mc-mission-site,
.departures-mc-mission-date {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.departures-mc-countdown {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.departures-mc-countdown.live {
  color: #c93a3a;
  font-weight: 700;
}

.world-layer {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.world-layer:hover {
  border-color: rgba(127, 184, 143, 0.4);
  background: rgba(127, 184, 143, 0.05);
}

.world-layer-checkbox {
  margin-top: 0.25rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.world-layer-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.world-layer-name {
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.world-layer-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.world-layer-status {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* L'attribut hidden doit primer sur le display inline-flex ci-dessus
   (statut « Inactif » masqué par syncPanelStates). */
.world-layer-status[hidden] {
  display: none;
}

.layer-status-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(127, 184, 143, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: layerSpinnerRotate 0.8s linear infinite;
}

@keyframes layerSpinnerRotate {
  to { transform: rotate(360deg); }
}

.world-layer-updated {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Statut d'erreur devenu bouton de retry réel (clic + clavier). */
.layer-status-retry {
  cursor: pointer;
  color: #e0a050;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.layer-status-retry:hover,
.layer-status-retry:focus-visible {
  color: #f0c070;
  outline: none;
  text-decoration-style: solid;
}

.world-layer-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.world-layer-row .world-layer {
  flex: 1;
}

.world-layer-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.4rem 0 0.6rem 0;
  padding-left: 0.2rem;
}

.world-layer-filters[hidden] {
  display: none;
}

/* ——— Familles du panneau (registre déclaratif) ——— */
.world-family {
  display: flex;
  flex-direction: column;
}

.world-family-header {
  margin: 0;
}

.world-family-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(127, 184, 143, 0.15);
  padding: 0.4rem 0.2rem;
  cursor: pointer;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: color 0.3s ease;
}

.world-family-toggle:hover,
.world-family-toggle:focus-visible {
  color: var(--accent);
  outline: none;
}

.world-family-name::before {
  content: '▾ ';
  font-size: 0.6rem;
}

.world-family.collapsed .world-family-name::before {
  content: '▸ ';
}

.world-family.has-active .world-family-name {
  color: var(--accent);
}

.world-family-count {
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.world-family-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.9rem;
}

.world-family.collapsed .world-family-rows {
  display: none;
}

/* ——— Carte de calque enrichie (registre) ——— */
/* Ligne titre : pastille couleur + nom + badge LIVE. */
.world-layer-titleline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.world-layer-pastille {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color, var(--accent));
  opacity: 0.35;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.world-layer.active .world-layer-pastille {
  opacity: 1;
  box-shadow: 0 0 6px var(--dot-color, var(--accent));
}

.world-layer-live {
  flex: none;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: #d97f6a;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.world-layer-live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c93a3a;
  animation: pulseBadge 2.5s ease-in-out infinite;
}

.world-layer-phrase {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* État actif : la carte s'allume (règle d'or : un calque coché se voit). */
.world-layer.active {
  border-color: rgba(127, 184, 143, 0.55);
  background: rgba(127, 184, 143, 0.07);
  box-shadow: 0 0 12px rgba(127, 184, 143, 0.08), inset 0 0 20px rgba(127, 184, 143, 0.03);
}

.world-layer.active .world-layer-name {
  color: var(--accent);
}

.world-layer-row.active .world-layer-refresh {
  opacity: 1;
}

/* Interrupteur personnalisé (la case reste l'input réel : clavier, AT). */
.world-layer-checkbox {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 30px;
  height: 17px;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: #1c1f1d;
  border: 1px solid rgba(127, 184, 143, 0.25);
  position: relative;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.world-layer-checkbox::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #5a6a60;
  transition: transform 0.25s ease, background 0.25s ease;
}

.world-layer-checkbox:checked {
  background: rgba(127, 184, 143, 0.25);
  border-color: var(--accent);
}

.world-layer-checkbox:checked::after {
  transform: translateX(13px);
  background: var(--accent);
}

.world-layer-checkbox:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

/* ↻ discret : visible au survol et au focus (complété après le bloc
   d'origine du bouton pour y ajouter l'état actif et la transition). */
.world-layer-refresh {
  opacity: 0.35;
  align-self: flex-start;
}

.world-layer-row:hover .world-layer-refresh,
.world-layer-refresh:focus-visible {
  opacity: 1;
}

/* Les familles rythment la liste : l'écart entre calques vit dans chaque
   section, le conteneur global se contente de les espacer. */
.world-layers {
  gap: 1.4rem;
}

.world-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.55rem;
}

.world-filter-group:last-child {
  margin-bottom: 0;
}

.world-filter-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 0.1rem;
}

.world-filter-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.world-filter-group-reset {
  padding: 0.05rem 0.35rem;
  background: transparent;
  border: 1px solid rgba(127, 184, 143, 0.35);
  border-radius: 3px;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.world-filter-group-reset:hover {
  background: rgba(127, 184, 143, 0.12);
  color: var(--text);
}

.world-filter-group-expand {
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  background: rgba(127, 184, 143, 0.08);
  border: 1px solid rgba(127, 184, 143, 0.35);
  border-radius: 3px;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.world-filter-group-expand:hover {
  background: rgba(127, 184, 143, 0.18);
  color: var(--text);
}

.world-filter-group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.world-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.world-filter-chip:hover {
  border-color: rgba(127, 184, 143, 0.4);
  background: rgba(127, 184, 143, 0.08);
}

.world-filter-chip.active {
  border-color: var(--accent);
  background: rgba(127, 184, 143, 0.18);
  color: var(--text);
}

.world-filter-chip input {
  appearance: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  margin: 0;
  flex-shrink: 0;
}

.world-filter-chip.active input {
  background: currentColor;
}

/* Segmented control pour la période */
.world-filter-segmented {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 0.2rem;
}

.world-filter-segment {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.35rem 0.3rem;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.world-filter-segment:hover {
  color: var(--text);
}

.world-filter-segment.active {
  background: rgba(127, 184, 143, 0.22);
  color: var(--text);
  box-shadow: 0 0 8px rgba(127, 184, 143, 0.15);
}

.world-filter-segment input {
  appearance: none;
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Toggle pour inclure/exclure les passés */
.world-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.7rem;
  transition: color 0.2s ease;
}

.world-filter-toggle:hover {
  color: var(--text);
}

.world-filter-toggle input {
  appearance: none;
  width: 2.2rem;
  height: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.world-filter-toggle input::after {
  content: '';
  position: absolute;
  top: 0.1rem;
  left: 0.1rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--text-dim);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.world-filter-toggle.active input,
.world-filter-toggle input:checked {
  background: rgba(127, 184, 143, 0.18);
  border-color: rgba(127, 184, 143, 0.5);
}

.world-filter-toggle.active input::after,
.world-filter-toggle input:checked::after {
  transform: translateX(1rem);
  background: var(--accent);
}

.world-filter-toggle-text {
  user-select: none;
}

/* --- Marqueurs HTML du globe --- */
.globe-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 100;
  transition: transform 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
}

.globe-marker:hover {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 101;
}

/* Marqueurs purement visuels (ex. ovale météo spatiale) : aucune interaction. */
.globe-marker.non-interactive {
  pointer-events: none;
  cursor: default;
}

.globe-marker.non-interactive:hover {
  transform: translate(-50%, -50%);
  z-index: 100;
}

.globe-marker-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 9px;
  background: rgba(5, 12, 8, 0.96);
  border: 1px solid rgba(90, 150, 120, 0.55);
  border-radius: 4px;
  color: #e8f5ec;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  z-index: 102;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.globe-marker:hover .globe-marker-tooltip,
.globe-marker:focus-visible .globe-marker-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.globe-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 8px 1px currentColor,
    0 0 16px 2px currentColor;
  opacity: 0.95;
  flex-shrink: 0;
}

.globe-marker-label {
  font-size: 10px;
  font-weight: 500;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 5px;
  border-radius: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  opacity: 0.95;
  letter-spacing: 0.02em;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.globe-marker-eonet .globe-marker-dot {
  width: 9px;
  height: 9px;
}

.globe-marker-eonet.recent .globe-marker-dot {
  animation: markerPulse 1.6s ease-in-out infinite;
}

.globe-marker-globalping .globe-marker-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 8px 1px currentColor,
    0 0 18px 3px currentColor;
  opacity: 0.95;
}

.globe-marker-power .globe-marker-dot {
  border-radius: 999px;
}

.globe-marker-power.size-sm .globe-marker-dot { width: 6px; height: 6px; }
.globe-marker-power.size-md .globe-marker-dot { width: 9px; height: 9px; }
.globe-marker-power.size-lg .globe-marker-dot { width: 12px; height: 12px; }

.globe-marker-unesco .globe-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.globe-marker-celestrak .globe-marker-dot {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 6px 1px currentColor,
    0 0 12px 2px currentColor;
  opacity: 0.9;
}

.globe-marker-celestrak.size-sm .globe-marker-dot { width: 5px; height: 5px; }
.globe-marker-celestrak.size-md .globe-marker-dot { width: 7px; height: 7px; }
.globe-marker-celestrak.size-lg .globe-marker-dot { width: 10px; height: 10px; }

/* --- Mémoire tellurique --- */
.globe-marker-telluric {
  z-index: 105;
  opacity: 0.88;
}

.globe-marker-telluric .globe-marker-dot {
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 0 5px 0.5px currentColor,
    0 0 10px 1px currentColor;
}

/* Volcan : triangle / cone */
.globe-marker-telluric.globe-marker-volcano .globe-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform: translateY(1px);
}

.globe-marker-telluric.globe-marker-volcano.size-3 .globe-marker-dot { width: 5px; height: 5px; }
.globe-marker-telluric.globe-marker-volcano.size-4 .globe-marker-dot { width: 5px; height: 5px; }
.globe-marker-telluric.globe-marker-volcano.size-5 .globe-marker-dot { width: 6px; height: 6px; }
.globe-marker-telluric.globe-marker-volcano.size-6 .globe-marker-dot { width: 6px; height: 6px; }
.globe-marker-telluric.globe-marker-volcano.size-7 .globe-marker-dot { width: 7px; height: 7px; }
.globe-marker-telluric.globe-marker-volcano.size-8 .globe-marker-dot { width: 7px; height: 7px; }
.globe-marker-telluric.globe-marker-volcano.size-9 .globe-marker-dot { width: 8px; height: 8px; }
.globe-marker-telluric.globe-marker-volcano.size-10 .globe-marker-dot { width: 8px; height: 8px; }

/* Séisme : cercle avec pulse si récent */
.globe-marker-telluric.globe-marker-earthquake .globe-marker-dot {
  border-radius: 50%;
}

.globe-marker-telluric.globe-marker-earthquake.size-3 .globe-marker-dot { width: 4px; height: 4px; }
.globe-marker-telluric.globe-marker-earthquake.size-4 .globe-marker-dot { width: 5px; height: 5px; }
.globe-marker-telluric.globe-marker-earthquake.size-5 .globe-marker-dot { width: 6px; height: 6px; }
.globe-marker-telluric.globe-marker-earthquake.size-6 .globe-marker-dot { width: 7px; height: 7px; }
.globe-marker-telluric.globe-marker-earthquake.size-7 .globe-marker-dot { width: 8px; height: 8px; }
.globe-marker-telluric.globe-marker-earthquake.size-8 .globe-marker-dot { width: 9px; height: 9px; }
.globe-marker-telluric.globe-marker-earthquake.size-9 .globe-marker-dot { width: 10px; height: 10px; }
.globe-marker-telluric.globe-marker-earthquake.size-10 .globe-marker-dot { width: 11px; height: 11px; }
.globe-marker-telluric.globe-marker-earthquake.size-11 .globe-marker-dot { width: 12px; height: 12px; }
.globe-marker-telluric.globe-marker-earthquake.size-12 .globe-marker-dot { width: 13px; height: 13px; }
.globe-marker-telluric.globe-marker-earthquake.size-13 .globe-marker-dot { width: 14px; height: 14px; }
.globe-marker-telluric.globe-marker-earthquake.size-14 .globe-marker-dot { width: 14px; height: 14px; }

.globe-marker-telluric.globe-marker-earthquake.recent .globe-marker-dot {
  animation: markerPulse 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .globe-marker-telluric.globe-marker-earthquake.recent .globe-marker-dot {
    animation: none;
  }
}

/* --- Veille orbitale (TacRS) --- */
.globe-marker-tacrs {
  z-index: 110;
  opacity: 0.92;
}

.globe-marker-tacrs .globe-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 6px 1px currentColor,
    0 0 14px 2px currentColor;
}

.globe-marker-tacrs.size-4 .globe-marker-dot { width: 5px; height: 5px; }
.globe-marker-tacrs.size-5 .globe-marker-dot { width: 6px; height: 6px; }
.globe-marker-tacrs.size-6 .globe-marker-dot { width: 7px; height: 7px; }
.globe-marker-tacrs.size-7 .globe-marker-dot { width: 8px; height: 8px; }
.globe-marker-tacrs.size-8 .globe-marker-dot { width: 9px; height: 9px; }
.globe-marker-tacrs.size-9 .globe-marker-dot { width: 10px; height: 10px; }
.globe-marker-tacrs.size-10 .globe-marker-dot { width: 11px; height: 11px; }
.globe-marker-tacrs.size-11 .globe-marker-dot { width: 12px; height: 12px; }
.globe-marker-tacrs.size-12 .globe-marker-dot { width: 12px; height: 12px; }

.globe-marker-tacrs.recent .globe-marker-dot {
  animation: markerPulse 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .globe-marker-tacrs.recent .globe-marker-dot {
    animation: none;
  }
}

.globe-marker-silences {
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.globe-marker-silences:hover,
.globe-marker-silences:focus-visible {
  opacity: 1;
}

.globe-marker-silences .globe-marker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e8f5ec, #9ab8c8 55%, #5a7a6a 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 8px 2px currentColor,
    0 0 18px 4px rgba(154, 184, 200, 0.5);
  animation: silenceTwinkle 2.2s ease-in-out infinite;
}

.globe-marker-silences .globe-marker-tooltip {
  font-style: italic;
  color: #c8e0d8;
  white-space: pre-line;
}

@keyframes silenceTwinkle {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.4),
      0 0 8px 2px currentColor,
      0 0 18px 4px rgba(154, 184, 200, 0.5);
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.35),
      0 0 14px 4px currentColor,
      0 0 32px 8px rgba(154, 184, 200, 0.75);
  }
}

/* --- Les Veilleurs (La Veillée, mouvement 1) --- */
/* Sobriété radicale : un point doux qui respire à peine. Aucune animation
   sous prefers-reduced-motion : les lueurs sont fixes alors. */
.globe-marker-veilleur {
  opacity: 0.9;
}

.globe-marker-veilleur .globe-marker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e3d5ae;
  border: 1px solid rgba(255, 248, 225, 0.7);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 6px 2px rgba(227, 213, 174, 0.5),
    0 0 16px 4px rgba(227, 213, 174, 0.25);
  animation: veilleurBreathe 5s ease-in-out infinite;
}

@keyframes veilleurBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* --- Il paraît que… (récits et écarts) --- */
/* Retenue visuelle voulue : pas d'animation pulsante sur ce calque. */
.globe-marker-attacks {
  z-index: 108;
  opacity: 0.92;
}

.globe-marker-attacks:hover,
.globe-marker-attacks:focus-visible {
  opacity: 1;
}

.globe-marker-attacks .globe-marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Dite : marqueur plein. */
.globe-marker-attacks.globe-marker-attack-declared .globe-marker-dot {
  background: currentColor;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 8px 1px currentColor,
    0 0 16px 3px currentColor;
}

/* Non dite — démasquée : marqueur creux (le récit officiel a craqué). */
.globe-marker-attacks.globe-marker-attack-unmasked .globe-marker-dot {
  background: transparent;
  border: 2px solid currentColor;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 8px 1px currentColor;
}

/* Non dite — disputée : marqueur pointillé (incertain par design). */
.globe-marker-attacks.globe-marker-attack-disputed .globe-marker-dot {
  background: transparent;
  border: 2px dashed currentColor;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 6px 1px currentColor;
}

/* Non attaque — blanchie : disque vert (les soupçons se sont effondrés). */
.globe-marker-attacks.globe-marker-attack-cleared .globe-marker-dot {
  background: currentColor;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 6px 1px currentColor;
}

/* Signalement récent : plus petit, hachuré, pas encore vérifié. */
.globe-marker-attacks.globe-marker-attack-recent .globe-marker-dot {
  width: 7px;
  height: 7px;
  background: repeating-linear-gradient(
    45deg,
    rgba(142, 142, 147, 0.55),
    rgba(142, 142, 147, 0.55) 2px,
    transparent 2px,
    transparent 4px
  );
  border: 1px solid rgba(142, 142, 147, 0.9);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 5px 1px rgba(142, 142, 147, 0.7);
}

.globe-marker-attacks .globe-marker-tooltip {
  white-space: pre-line;
}

.dot-attack-declared { background: #e5484d; }
.dot-cable { background: #b8ffd2; }
.dot-silence { background: #5a7a6a; }
.dot-tacrs-high { background: #ff2a2a; }
.dot-tacrs-mid { background: #ff9800; }
.dot-tacrs-low { background: #9e9e9e; }
.dot-attack-unmasked {
  background: transparent;
  border: 2px solid #f5a524;
  width: 6px;
  height: 6px;
}
.dot-attack-disputed {
  background: transparent;
  border: 2px dashed #9aa8c8;
  width: 6px;
  height: 6px;
}
.dot-attack-cleared { background: #43a047; }
.dot-attack-recent {
  background: repeating-linear-gradient(
    45deg,
    rgba(142, 142, 147, 0.7),
    rgba(142, 142, 147, 0.7) 2px,
    transparent 2px,
    transparent 4px
  );
  border: 1px solid rgba(142, 142, 147, 0.9);
  width: 8px;
  height: 8px;
}

/* Popup double-récit : « Ce qu'on a dit » / « Ce qu'on sait ». */
.attacks-detail .attack-recent-banner {
  font-size: 0.72rem;
  color: var(--muted, #9ab8a8);
  border-left: 2px solid #8e8e93;
  padding-left: 0.4rem;
  margin-bottom: 0.35rem;
}

.attacks-detail .attack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0.3rem;
}

.attacks-detail .attack-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.attacks-detail .attack-badge-secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--muted, #9ab8a8);
}

.attacks-detail .attack-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.attacks-detail .attack-story {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
}

.attacks-detail .attack-story h4 {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #9ab8a8);
}

.attacks-detail .attack-story p {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.attacks-detail .attack-updates-section h4 {
  margin: 0.5rem 0 0.3rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #9ab8a8);
}

.attacks-detail .attack-updates {
  list-style: none;
  margin: 0;
  padding: 0;
}

.attacks-detail .attack-updates li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0 0.35rem 0.6rem;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.attacks-detail .attack-update-date {
  font-size: 0.72rem;
  color: var(--muted, #9ab8a8);
  letter-spacing: 0.03em;
}

.attacks-detail .attack-layer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.attacks-detail .attack-layer-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--text, #d8e8dc);
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.attacks-detail .attack-layer-link:hover,
.attacks-detail .attack-layer-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .attacks-detail .attack-layer-link {
    transition: none;
  }
}

@media (max-width: 640px) {
  .attacks-detail .attack-stories {
    grid-template-columns: 1fr;
  }
}

/* --- Qui est là-haut ? (stations habitées) --- */
.globe-marker-whosup {
  z-index: 115;
  opacity: 0.95;
  transition: opacity 0.25s ease;
}

.globe-marker-whosup:hover,
.globe-marker-whosup:focus-visible {
  opacity: 1;
}

.globe-marker-whosup .globe-marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, currentColor 65%, rgba(0, 0, 0, 0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 10px 3px currentColor,
    0 0 26px 7px currentColor;
  animation: whosupBreath 3.2s ease-in-out infinite;
}

.globe-marker-whosup .globe-marker-label {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
}

.globe-marker-whosup .globe-marker-tooltip {
  white-space: pre-line;
}

/* Halo doux qui respire lentement — la signature des points habités. */
@keyframes whosupBreath {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.35),
      0 0 10px 3px currentColor,
      0 0 26px 7px currentColor;
  }
  50% {
    transform: scale(1.18);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.3),
      0 0 16px 5px currentColor,
      0 0 42px 12px currentColor;
  }
}

@media (prefers-reduced-motion: reduce) {
  .globe-marker-whosup {
    transition: none;
  }
  .globe-marker-whosup .globe-marker-dot {
    animation: none;
  }
}

@media (max-width: 768px) {
  .globe-marker-whosup .globe-marker-dot {
    width: 15px !important;
    height: 15px !important;
  }
}

.dot-whosup-iss { background: #f7e8c8; }
.dot-whosup-tiangong { background: #f2b49a; }

/* À l'écoute des sondes (DSN) : antennes dorées, carré arrondi discret ;
   le halo ne s'allume que quand une antenne parle à une sonde interstellaire. */
.globe-marker-dsn {
  z-index: 112;
  opacity: 0.92;
}

.globe-marker-dsn:hover,
.globe-marker-dsn:focus-visible {
  opacity: 1;
}

.globe-marker-dsn .globe-marker-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #e3cf9a;
  border: 1px solid rgba(255, 244, 214, 0.7);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 6px 2px rgba(227, 207, 154, 0.45);
}

.globe-marker-dsn-interstellar .globe-marker-dot {
  animation: dsnHalo 3.6s ease-in-out infinite;
}

@keyframes dsnHalo {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.3),
      0 0 6px 2px rgba(227, 207, 154, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.25),
      0 0 12px 5px rgba(227, 207, 154, 0.8),
      0 0 30px 10px rgba(227, 207, 154, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .globe-marker-dsn-interstellar .globe-marker-dot {
    animation: none;
  }
}

@media (max-width: 768px) {
  .globe-marker-dsn .globe-marker-dot {
    width: 12px !important;
    height: 12px !important;
  }
}

.dot-dsn { background: #e3cf9a; }
.dot-dsn-interstellar {
  background: #e3cf9a;
  box-shadow: 0 0 6px 2px rgba(227, 207, 154, 0.7);
}

/* --- Calque « Système solaire » (Vague 3) : losanges à plat, sans pulse.
   Le Soleil est un rond doré au centre (classe globe-marker-solar-sun).
   L'échelle de projection est logarithmique (voir oracle.js). --- */

.globe-marker-solar {
  z-index: 113;
  opacity: 0.95;
}

.globe-marker-solar:hover,
.globe-marker-solar:focus-visible {
  opacity: 1;
}

.globe-marker-solar .globe-marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #d9c8ff;
  border: 1px solid rgba(233, 222, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 6px 2px rgba(217, 200, 255, 0.4);
  transform: rotate(45deg);
}

.globe-marker-solar-sun {
  z-index: 113;
  pointer-events: none;
}

.globe-marker-solar-sun .globe-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f5e6b8;
  border: 1px solid rgba(255, 248, 220, 0.9);
  transform: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 0 10px 4px rgba(245, 230, 184, 0.55),
    0 0 30px 12px rgba(245, 230, 184, 0.25);
}

.dot-solar-probe { background: #d9c8ff; }
.dot-solar-jwst { background: #f2e3c8; }
.dot-solar-asteroid { background: #c8b090; }

/* --- Calque « Océan vivant » (Vague 3) : la bouée ne sonne jamais
   l'alarme — anneau blanc doux, pas de pulse rouge. --- */

.globe-marker-ocean {
  z-index: 111;
  opacity: 0.92;
}

.globe-marker-ocean:hover,
.globe-marker-ocean:focus-visible {
  opacity: 1;
}

.globe-marker-ocean .globe-marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7fc4d8;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 6px 2px rgba(127, 196, 216, 0.45);
}

@media (max-width: 768px) {
  .globe-marker-solar .globe-marker-dot,
  .globe-marker-ocean .globe-marker-dot,
  .globe-marker-vivant .globe-marker-dot {
    width: 12px !important;
    height: 12px !important;
  }
}

.dot-ocean-buoy { background: #7fc4d8; }

/* Le vivant (Vague 3) : présences GBIF — discret, sans animation (CDC §6).
   La couleur par catégorie est injectée via `color` sur le wrap (currentColor). */
.globe-marker-vivant {
  z-index: 111;
  opacity: 0.9;
}

.globe-marker-vivant:hover,
.globe-marker-vivant:focus-visible {
  opacity: 1;
}

.globe-marker-vivant .globe-marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 5px 2px rgba(255, 255, 255, 0.2);
}

.dot-vivant-aves { background: #9fd29f; }
.dot-vivant-mammals { background: #d8b48a; }
.dot-vivant-marinemammals { background: #7fc4d8; }
.dot-vivant-reptiles { background: #a9bd6a; }
.dot-vivant-amphibians { background: #86cdb4; }
.dot-vivant-fishes { background: #7fb2d8; }



.whosup-crew-title {
  font-weight: 600;
}

.whosup-crew-list {
  list-style: none;
  margin: 0.3rem 0 0.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.whosup-crew-list li {
  padding-left: 0.9rem;
  position: relative;
}

.whosup-crew-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  font-size: 0.7em;
  top: 0.25em;
  opacity: 0.7;
}

/* --- Météo spatiale (ovale auroral, Kp, échelles NOAA) --- */
/* Points collés au sol, halo discret, aucune animation (décision CDC §4.4). */
.globe-marker-spaceweather {
  opacity: 0.9;
}

.globe-marker-spaceweather:hover,
.globe-marker-spaceweather:focus-visible {
  opacity: 1;
}

.globe-marker-spaceweather .globe-marker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  border: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 6px 1px currentColor,
    0 0 14px 3px currentColor;
  opacity: 0.9;
}

.globe-marker-spaceweather.size-sm .globe-marker-dot { width: 5px; height: 5px; }
.globe-marker-spaceweather.size-md .globe-marker-dot { width: 7px; height: 7px; }
.globe-marker-spaceweather.size-lg .globe-marker-dot { width: 10px; height: 10px; }

.dot-spaceweather-low { background: #4caf7d; }
.dot-spaceweather-medium { background: #7cfc9a; }
.dot-spaceweather-high { background: #e53935; }

/* Panneau latéral — 6 lignes : verdict, jauge Kp, prévision, badges R/S/G,
   fraîcheur, attribution (CDC §4.4). */
.spaceweather-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 3.6rem;
  z-index: 60;
  width: min(300px, calc(100vw - 2.4rem));
  padding: 0.9rem;
  background: rgba(8, 12, 10, 0.85);
  border: 1px solid rgba(127, 184, 143, 0.25);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
}

.spaceweather-panel[hidden] {
  display: none;
}

.spaceweather-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(127, 184, 143, 0.15);
}

.spaceweather-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.spaceweather-subtitle {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.spaceweather-collapse {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  background: rgba(127, 184, 143, 0.1);
  border: 1px solid rgba(127, 184, 143, 0.4);
  border-radius: 3px;
  color: #a8d5b8;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.spaceweather-collapse:hover,
.spaceweather-collapse:focus-visible {
  background: rgba(127, 184, 143, 0.2);
  outline: none;
}

.spaceweather-panel.collapsed .spaceweather-body {
  display: none;
}

.spaceweather-panel.collapsed .spaceweather-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.spaceweather-verdict {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.spaceweather-verdict-calm { color: #a8d5b8; }
.spaceweather-verdict-moderate { color: #7cfc9a; }
.spaceweather-verdict-strong { color: #f5a524; }
.spaceweather-verdict-storm { color: #e53935; }

.spaceweather-fallback-note {
  margin-bottom: 0.6rem;
  padding: 0.35rem 0.5rem;
  background: rgba(245, 165, 36, 0.08);
  border-left: 3px solid #f5a524;
  border-radius: 0 3px 3px 0;
  font-size: 0.72rem;
  color: #f5c87a;
}

.spaceweather-kp {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.spaceweather-kp-gauge {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    #4caf7d 0%, #4caf7d 44.4%,
    #f5a524 44.4%, #f5a524 55.6%,
    #e53935 55.6%, #e53935 100%);
  opacity: 0.85;
}

.spaceweather-kp-marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 14px;
  margin-left: -1px;
  background: #ffffff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  border-radius: 1px;
}

.spaceweather-kp-value {
  flex-shrink: 0;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4caf7d;
}

.spaceweather-kp-value.warn { color: #f5a524; }
.spaceweather-kp-value.alert { color: #e53935; }

.spaceweather-forecast {
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  color: #d5e8dc;
}

.spaceweather-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.spaceweather-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid;
  border-radius: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.spaceweather-badge-R { border-color: #f5a524; color: #f5a524; }
.spaceweather-badge-S { border-color: #ffcd6e; color: #ffcd6e; }
.spaceweather-badge-G { border-color: #e53935; color: #e53935; }

.spaceweather-freshness {
  margin-bottom: 0.7rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.spaceweather-ask-eshua {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  padding: 0.35rem 0.7rem;
  background: rgba(127, 184, 143, 0.1);
  border: 1px solid rgba(127, 184, 143, 0.4);
  border-radius: 3px;
  color: #a8d5b8;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.spaceweather-ask-eshua:hover,
.spaceweather-ask-eshua:focus-visible {
  background: rgba(127, 184, 143, 0.2);
  outline: none;
}

.spaceweather-attribution {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .spaceweather-panel {
    right: 0.8rem;
    left: 0.8rem;
    bottom: 3.2rem;
    width: auto;
    max-height: 45vh;
    overflow-y: auto;
  }
  .globe-marker-spaceweather.size-sm .globe-marker-dot { width: 8px !important; height: 8px !important; }
  .globe-marker-spaceweather.size-md .globe-marker-dot { width: 10px !important; height: 10px !important; }
  .globe-marker-spaceweather.size-lg .globe-marker-dot { width: 13px !important; height: 13px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .globe-marker-spaceweather {
    transition: none;
  }
  .spaceweather-ask-eshua {
    transition: none;
  }
}

/* --- Anomalies thermiques FIRMS --- */
.globe-marker-firms {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.globe-marker-firms:hover,
.globe-marker-firms:focus-visible {
  opacity: 1;
}

.globe-marker-firms .globe-marker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffcc00, #ff4400 55%, #cc2200 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 6px 1px currentColor,
    0 0 10px 2px rgba(255, 68, 0, 0.3);
}

.globe-marker-firms.size-sm .globe-marker-dot { width: 5px; height: 5px; }
.globe-marker-firms.size-md .globe-marker-dot { width: 8px; height: 8px; }
.globe-marker-firms.size-lg .globe-marker-dot { width: 11px; height: 11px; }

.globe-marker-firms .globe-marker-tooltip {
  background: rgba(20, 10, 5, 0.92);
  border: 1px solid rgba(255, 100, 50, 0.5);
  color: #ffccaa;
}

@media (prefers-reduced-motion: reduce) {
  .globe-marker-firms .globe-marker-dot {
    animation: none;
  }
}

@media (max-width: 768px) {
  .globe-marker-firms .globe-marker-dot {
    width: 12px !important;
    height: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .globe-marker-silences {
    transition: none;
  }
  .globe-marker-silences .globe-marker-dot {
    animation: none;
    transform: scale(1);
  }
  .globe-marker-veilleur .globe-marker-dot {
    animation: none;
    transform: scale(1);
  }
}

.globe-marker-ocean-letter {
  z-index: 120;
  opacity: 0.95;
}

.globe-marker-ocean-letter .globe-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e0f7ff, #7ec8e3 60%, #3a8ab8 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 0 10px 2px #7ec8e3,
    0 0 24px 5px rgba(126, 200, 227, 0.55);
  animation: oceanLetterPulse 2.4s ease-in-out infinite;
}

.globe-marker-ocean-letter .globe-marker-tooltip {
  font-style: italic;
  color: #c4ecfa;
  white-space: pre-line;
}

.detail-ocean-letter .detail-letter-text {
  font-style: italic;
  line-height: 1.55;
  color: #dff6ff;
  margin-top: 10px;
}

@keyframes oceanLetterPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.12); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .globe-marker-ocean-letter .globe-marker-dot {
    animation: none;
  }
}

.globe-detail-popup .tacrs-detail {
  min-width: 280px;
  max-width: 360px;
}

.tacrs-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.tacrs-badge {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tacrs-detail .detail-title {
  font-size: 1.05em;
  color: #f5fbf7;
}

.tacrs-detail .detail-subtitle {
  font-size: 0.95em;
  color: #c8d8cc;
}

.tacrs-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.7rem;
  margin: 0.4rem 0;
  font-size: 0.95em;
}

.tacrs-facts dt {
  color: #9ab0a0;
}

.tacrs-facts dd {
  color: #e8f5ec;
  margin: 0;
}

.tacrs-section {
  margin: 0.55rem 0 0.2rem;
}

.tacrs-section h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b8d4c0;
  margin: 0 0 0.35rem;
}

.tacrs-timeline,
.tacrs-signals {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tacrs-timeline-item,
.tacrs-signal {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.5rem;
  align-items: start;
}

.tacrs-timeline-item > div,
.tacrs-signal {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tacrs-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  box-shadow: 0 0 8px 1px currentColor;
}

.tacrs-signal-type {
  font-weight: 600;
  color: #e8f5ec;
}

.tacrs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

/* Badge TacRS sur les marqueurs de départs */
.departure-tacrs-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff5722;
  color: #000;
  font-size: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 8px 1px rgba(255, 87, 34, 0.7);
  z-index: 104;
}

.globe-marker-departures.pad-icon .departure-tacrs-badge {
  top: -2px;
  left: -2px;
}

/* Pill / bouton TacRS dans les popups de départs */
.departure-tacrs-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 2px 8px;
  background: rgba(255, 87, 34, 0.15);
  border: 1px solid rgba(255, 87, 34, 0.55);
  border-radius: 999px;
  color: #ffab91;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.departure-tacrs-pill:hover {
  background: rgba(255, 87, 34, 0.28);
  border-color: #ff5722;
}

.globe-marker-departures {
  padding: 18px;
  margin: -18px;
  z-index: 200;
}

.globe-marker-departures .globe-marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.5),
    0 0 14px 3px currentColor,
    0 0 30px 6px currentColor;
  opacity: 0.98;
}

.globe-marker-departures:hover {
  transform: translate(-50%, -50%) scale(1.35);
  z-index: 250;
}

.globe-marker-departures.size-md .globe-marker-dot { width: 14px; height: 14px; }
.globe-marker-departures.size-lg .globe-marker-dot { width: 18px; height: 18px; }
.globe-marker-departures.size-xl .globe-marker-dot { width: 24px; height: 24px; }
.globe-marker-departures.size-xxl .globe-marker-dot { width: 30px; height: 30px; }

.globe-marker-departures.recent .globe-marker-dot {
  animation: markerPulse 1.4s ease-in-out infinite;
}

.globe-marker-departures.live .globe-marker-dot {
  animation: markerPulseLive 0.9s ease-in-out infinite;
}

.globe-marker-departures.pad-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  pointer-events: auto;
}

.globe-marker-departures.pad-icon .pad-icon-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 16px;
  background: rgba(8, 12, 10, 0.85);
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 10px 1px currentColor;
}

.globe-marker-departures.pad-icon.live .pad-icon-symbol {
  animation: markerPulseLive 0.9s ease-in-out infinite;
}

.globe-marker-departures.pad-icon.sea .pad-icon-symbol,
.globe-marker-departures.pad-icon.drone-ship .pad-icon-symbol {
  border-radius: 50% 50% 4px 4px;
  border-color: #5fa8d3;
  color: #5fa8d3;
  box-shadow: 0 0 10px 1px rgba(95, 168, 211, 0.6);
}

.globe-marker-departures.pad-icon .globe-marker-label {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  max-width: 140px;
  padding: 0.15rem 0.35rem;
  background: rgba(8, 12, 10, 0.9);
  border: 1px solid rgba(127, 184, 143, 0.3);
  border-radius: 3px;
  color: #c8d8cc;
  font-size: 0.65rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.globe-marker-departures.past .globe-marker-dot {
  opacity: 0.55;
}

.departure-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--eshua-gold);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  z-index: 103;
}

.globe-marker-departures.pad-icon .departure-count-badge {
  top: 2px;
  right: 2px;
}

.dot-launch-live { background: #c93a3a; }
.dot-launch-imminent { background: #ff5722; }
.dot-launch-soon { background: #ff8a65; }
.dot-launch-confirmed { background: #4caf50; }
.dot-launch-tbc { background: #ff9800; }
.dot-launch-tbd { background: #9e9e9e; }
.dot-launch-past { background: #607d8b; }
.dot-ixp { background: #e6f5eb; }
.dot-ioda-critical { background: #e5484d; }
.dot-ioda-warning { background: #f5a524; }
.dot-gpsjam-high { background: #ff2d55; }
.dot-gpsjam-moderate { background: #ff9f0a; }

@keyframes markerPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 0 8px 1px currentColor, 0 0 16px 2px currentColor; }
  50% { box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 0 14px 3px currentColor, 0 0 28px 5px currentColor; }
}

@keyframes markerPulseLive {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 0 10px 2px currentColor, 0 0 22px 4px currentColor; }
  50% { box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 0 22px 5px currentColor, 0 0 44px 9px currentColor; }
}

.globe-detail-popup {
  background: rgba(5, 12, 8, 0.96);
  border: 1px solid rgba(90, 150, 120, 0.55);
  border-radius: 8px;
  color: #e8f5ec;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  overflow: hidden;
  pointer-events: auto;
}

.globe-detail-popup .detail-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 12px 14px;
}

.globe-detail-popup .detail-title {
  font-size: 1.05em;
  color: #f5fbf7;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.globe-detail-popup .detail-tag {
  display: inline-block;
  width: fit-content;
  font-weight: 500;
  font-size: 0.92em;
  padding: 1px 0;
  border-bottom: 1px solid currentColor;
  margin-bottom: 0.15rem;
}

.globe-detail-popup .detail-row {
  color: #c8d8cc;
}

.globe-detail-popup .detail-muted {
  color: #9ab0a0;
  font-size: 0.92em;
}

.globe-detail-popup .detail-desc {
  margin: 0.4rem 0 0;
  line-height: 1.5;
  color: #b8c5b8;
  max-width: 42ch;
}

.globe-detail-popup .detail-link {
  display: inline-block;
  margin-top: 0.3rem;
  color: #7fb8d8;
  font-size: 0.9em;
  text-decoration: none;
}

.globe-detail-popup .detail-link:hover {
  text-decoration: underline;
}

.globe-detail-popup .detail-title-link {
  color: inherit;
  text-decoration: none;
}

.globe-detail-popup .detail-title-link:hover {
  text-decoration: underline;
}

.globe-detail-popup .detail-warning {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.92em;
}

/* Popup Départs */
.departure-detail {
  min-width: 280px;
  max-width: 360px;
}

.departure-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.3rem;
}

.departure-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px 1px currentColor;
}

.departure-detail .detail-title {
  font-size: 1em;
  color: #f5fbf7;
}

.departure-detail .detail-subtitle {
  font-size: 1.05em;
  color: #e8f5ec;
  font-weight: 600;
}

.departure-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.4rem 0;
}

.departure-meta .countdown {
  color: #ffab91;
  font-weight: 500;
}

.departure-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.7rem;
  margin: 0.4rem 0;
  font-size: 0.95em;
}

.departure-facts dt {
  color: #9ab0a0;
}

.departure-facts dd {
  color: #e8f5ec;
  margin: 0;
}

.departure-mission,
.departure-opacity {
  margin: 0.5rem 0 0.2rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  border-left: 2px solid rgba(90, 150, 120, 0.45);
}

.departure-opacity {
  border-left-color: rgba(255, 87, 34, 0.55);
}

.departure-mission h4,
.departure-opacity h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b8d4c0;
  margin: 0 0 0.3rem;
}

.departure-opacity h4 {
  color: #ffab91;
}

.departure-mission p,
.departure-opacity p {
  margin: 0;
  color: #c8d8cc;
  line-height: 1.45;
}

.departure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
  align-items: center;
}

.departure-actions a {
  color: #8fbc9f;
  text-decoration: none;
  font-size: 0.9em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.departure-actions a:hover {
  border-bottom-color: #8fbc9f;
}

.departure-ask-eshua {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  background: rgba(201, 169, 76, 0.1);
  border: 1px solid rgba(201, 169, 76, 0.45);
  border-radius: 4px;
  color: var(--eshua-gold);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.departure-ask-eshua:hover {
  background: rgba(201, 169, 76, 0.2);
  box-shadow: 0 0 12px rgba(201, 169, 76, 0.2);
}

.departure-ask-icon {
  font-size: 0.95em;
}

.departure-ask-eshua.secondary {
  background: rgba(127, 184, 143, 0.08);
  border-color: rgba(127, 184, 143, 0.4);
  color: #a8d5b8;
}

.departure-ask-eshua.secondary:hover {
  background: rgba(127, 184, 143, 0.16);
  box-shadow: 0 0 12px rgba(127, 184, 143, 0.15);
}

.departure-launcher-image-wrap {
  margin: -12px -14px 0.6rem;
  border-bottom: 1px solid rgba(90, 150, 120, 0.25);
  overflow: hidden;
}

.departure-launcher-image {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
}

.orbit-badge {
  display: inline-block;
  width: fit-content;
  margin-top: 0.25rem;
  padding: 0.15rem 0.45rem;
  background: rgba(90, 150, 120, 0.15);
  border: 1px solid rgba(90, 150, 120, 0.4);
  border-radius: 3px;
  color: #a8d5b8;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.departure-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  margin: 0.5rem 0;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 5px;
  overflow-x: auto;
}

.departure-timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  min-width: 70px;
  position: relative;
}

.departure-timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 5px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: rgba(90, 150, 120, 0.25);
}

.departure-timeline-step.main .departure-timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent);
}

.departure-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(90, 150, 120, 0.5);
}

.departure-timeline-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.departure-timeline-step time {
  font-size: 0.75rem;
  color: #c8d8cc;
}

.departure-webcast-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  background: rgba(201, 58, 58, 0.15);
  border: 1px solid rgba(201, 58, 58, 0.5);
  border-radius: 4px;
  color: #ff8a80;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.departure-webcast-button:hover {
  background: rgba(201, 58, 58, 0.25);
  box-shadow: 0 0 12px rgba(201, 58, 58, 0.2);
}

.departure-webcast {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #ff8a80;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.departure-webcast:hover {
  color: #ffb3ab;
}

.countdown.live {
  color: #ff8a80;
  font-weight: 600;
}

/* Liste de départs groupés */
.departure-list-scroll {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-right: 0.25rem;
}

.departure-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(90, 150, 120, 0.25);
  border-radius: 5px;
  color: #e8f5ec;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.departure-list-item:hover {
  background: rgba(90, 150, 120, 0.12);
  border-color: rgba(90, 150, 120, 0.55);
}

.departure-list-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.25rem;
  box-shadow: 0 0 6px 1px currentColor;
}

.departure-list-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.departure-list-info strong {
  font-weight: 500;
  color: #f5fbf7;
  font-size: 0.95em;
}

.departure-list-info span {
  font-size: 0.85em;
  color: #b8c5b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.world-layer-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.world-layer-refresh:hover {
  border-color: rgba(127, 184, 143, 0.4);
  background: rgba(127, 184, 143, 0.1);
  color: var(--text);
}

.world-layer-refresh:active {
  transform: scale(0.95);
}

/* Complément « ↻ discret » (règles de base introduites avec les familles) :
   transition d'opacité complète + visible quand le calque est actif. */
.world-layer-refresh {
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, opacity 0.25s ease;
}

.world-layer-row.active .world-layer-refresh {
  opacity: 1;
}

.world-legend {
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2a2a2a;
  border-radius: 4px;
}

/* Légende affichée en ligne, juste sous la ligne de son calque */
.world-layer-row + .world-legend,
.world-layer-filters + .world-legend {
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}

.world-legend-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
}

.world-legend-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.world-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-wildfire { background: #e85d45; }
.dot-storm { background: #5a9bd5; }
.dot-volcano { background: #ff2a2a; }
.dot-earthquake { background: #f0c674; }
.dot-flood { background: #4ecdc4; }
.dot-datacenter { background: #7fb88f; }
.dot-eyeball { background: #7fb8d8; }
.dot-route-primary { background: #f59e0b; }
.dot-route-secondary { background: #60a5fa; }
.dot-hydro { background: #2563eb; }
.dot-nuclear { background: #a855f7; }
.dot-solar { background: #fbbf24; }
.dot-wind { background: #22c55e; }
.dot-coal { background: #4b5563; }
.dot-gas { background: #60a5fa; }
.dot-cultural { background: #f59e0b; }
.dot-natural { background: #22c55e; }
.dot-mixed { background: #8b5cf6; }

.dot-sat-station { background: #3b82f6; }
.dot-sat-gps { background: #22c55e; }
.dot-sat-glonass { background: #f97316; }
.dot-sat-galileo { background: #eab308; }
.dot-sat-iridium { background: #ec4899; }
.dot-sat-science { background: #06b6d4; }
.dot-sat-visual { background: #a855f7; }

.eshua-chat-toggle {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(5, 5, 5, 0.8);
  border: 1px solid var(--eshua-gold);
  border-radius: 999px;
  color: var(--eshua-gold);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
}

.eshua-chat-toggle:hover {
  background: rgba(201, 169, 76, 0.12);
  box-shadow: 0 0 18px rgba(201, 169, 76, 0.25);
}

.eshua-chat-toggle-icon {
  font-size: 0.95rem;
}

.eshua-chat-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 460px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 110;
  background: rgba(5, 5, 5, 0.94);
  border-right: 1px solid #222;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.eshua-chat-panel[aria-hidden="false"] {
  transform: translateX(0);
}

.eshua-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #222;
}

.eshua-chat-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--eshua-gold);
  letter-spacing: 0.08em;
}

.eshua-chat-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.eshua-chat-close:hover {
  color: var(--eshua-gold);
}

.eshua-chat-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  margin-right: 0.75rem;
}

.eshua-chat-action {
  background: transparent;
  border: 1px solid #333;
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.35rem 0.45rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.eshua-chat-action:hover {
  color: var(--eshua-gold);
  border-color: var(--eshua-gold);
}

.eshua-chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.eshua-chat-message {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  animation: fadeIn 0.35s ease;
}

.eshua-chat-message.user {
  align-self: flex-end;
  background: rgba(127, 184, 143, 0.12);
  border: 1px solid rgba(127, 184, 143, 0.35);
  color: var(--text);
}

.eshua-chat-message.eshua {
  align-self: flex-start;
  background: rgba(201, 169, 76, 0.08);
  border: 1px solid rgba(201, 169, 76, 0.28);
  color: var(--eshua-white-warm);
}

.eshua-chat-message.error {
  align-self: flex-start;
  background: rgba(255, 42, 42, 0.08);
  border: 1px solid rgba(255, 42, 42, 0.3);
  color: #ff8a8a;
  font-size: 0.8rem;
}

.eshua-chat-choices {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.8rem;
  border-top: 1px solid #222;
}

.eshua-chat-choice {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 76, 0.25);
  border-radius: 6px;
  color: var(--eshua-white-warm);
  font-size: 0.85rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.eshua-chat-choice:hover:not(:disabled) {
  background: rgba(201, 169, 76, 0.1);
  border-color: var(--eshua-gold);
}

.eshua-chat-choice:focus-visible {
  outline: 1px solid var(--eshua-gold);
  outline-offset: 2px;
}

.eshua-chat-choice:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.eshua-chat-choice:active:not(:disabled) {
  transform: translateY(1px);
}

.eshua-chat-typing {
  align-self: flex-start;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  animation: eshuaTypingPulse 1.6s ease-in-out infinite;
}

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

/* Respect prefers-reduced-motion : disable decorative motion */
@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;
  }

  body::before {
    animation: none !important;
  }

  .particles,
  .cursor-glow,
  .eshua-waves,
  .wave {
    display: none !important;
  }

  .globe-container,
  .globe-container canvas,
  .globe-marker {
    animation: none !important;
  }

  .eshua-becoming,
  .eshua-becoming.deep-thought {
    animation: none !important;
  }

  .rss-track {
    animation: none !important;
  }

  .layer-status-spinner {
    animation: none !important;
    border: 2px solid var(--accent);
    border-radius: 50%;
  }

  .globe-marker-globalping .globe-marker-dot {
    animation: none !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 4px 1px currentColor;
  }

  .eshua-chat-panel,
  .archive-panel,
  .world-panel {
    transition: none !important;
  }

  .eshua-chat-typing {
    animation: none !important;
    opacity: 0.85;
  }
}

@media (max-width: 767px) {
  body {
    cursor: auto;
  }

  .cursor-glow {
    display: none;
  }

  .stage {
    /* padding-bottom resserré : le ticker RSS est retiré du chemin mobile
       (CDC phase 5), plus de compensation de hauteur nécessaire. */
    padding: 5.5rem 1rem 3.5rem;
    justify-content: flex-start;
  }

  .eshua-wrap {
    margin-top: 0;
  }

  .eshua-becoming {
    width: min(52vw, 220px);
    height: min(52vw, 220px);
  }

  .eshua-waves {
    inset: -12%;
  }

  .text-slot {
    margin-top: 1.2rem;
    min-height: 5rem;
    font-size: 0.92rem;
    max-width: 100%;
  }

  .thinking-label {
    font-size: 0.75rem;
  }

  /* Ticker RSS retiré du chemin mobile (décorative comprise, elle vit
     dans #rss-ticker) : elle empilait avec le murmure et le bouton chat. */
  .rss-ticker {
    display: none;
  }

  /* « Passer » plus présent : cible tactile ≥ 44 px, contraste renforcé.
     Ancrage resserré maintenant que le ticker est parti. */
  .skip-narration {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    padding: 0.55rem 1.1rem;
    min-height: 44px;
    font-size: 0.75rem;
    background: rgba(8, 12, 10, 0.92);
    border-color: rgba(127, 184, 143, 0.55);
    color: var(--text);
  }

  .archive-toggle,
  .world-toggle {
    right: 0.6rem;
    padding: 0.55rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    font-size: 0.7rem;
  }

  .archive-toggle-text,
  .world-toggle-text {
    display: none;
  }

  .world-toggle {
    top: 0.8rem;
  }

  .archive-toggle {
    top: 3.6rem;
  }

  /* Bouton chat dans la zone du pouce, au-dessus de l'ancienne zone ticker. */
  .eshua-chat-toggle {
    top: auto;
    left: 0.6rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    padding: 0.55rem 0.8rem;
    min-height: 44px;
    font-size: 0.75rem;
  }

  .world-panel,
  .archive-panel,
  .eshua-chat-panel {
    width: 100vw;
    border-left: none;
    border-right: none;
  }

  body.panel-open .eshua-chat-toggle {
    display: none;
  }
}

/* === Panneaux plein écran mobile (CDC mobile phase 3) === */
@media (max-width: 767px) {
  /* Chat plein écran, réellement 100dvh avec marges safe-area. */
  .eshua-chat-panel {
    width: 100vw;
    height: 100dvh;
    padding: calc(0.9rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  /* Bouton retour (flèche) en haut à gauche : sur compact le toggle chat est
     masqué par le panneau (body.panel-open) — le retour doit toujours exister. */
  .eshua-chat-panel .eshua-chat-close {
    position: absolute;
    top: calc(0.55rem + env(safe-area-inset-top, 0px));
    left: 0.8rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: var(--text);
  }

  .eshua-chat-panel .eshua-chat-close::before {
    content: '←';
    font-size: 1.5rem;
    line-height: 1;
  }

  .eshua-chat-panel .eshua-chat-title {
    margin-left: 3.2rem;
  }

  /* Centre d'information plein écran, détaché de la caméra du globe
     (adjustCameraForPanel est neutralisé sur compact côté oracle). */
  .archive-panel {
    width: 100vw;
    height: 100dvh;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Atelier mémoire partagée : feuille plein écran sur compact. */
  .shared-memory-panel {
    bottom: 0;
    left: 0;
    transform: none;
    width: 100vw;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 16px 16px 0 0;
    padding-top: calc(1.4rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  }

  /* Empilement bas-gauche sans chevauchement : le murmure flotte au-dessus
     du bouton chat (zone du pouce), jamais derrière. */
  .eshua-murmur {
    bottom: calc(1rem + 44px + 0.6rem + env(safe-area-inset-bottom, 0px));
  }

  /* Seuil « Entrer » : cible tactile confortable sur petit écran. */
  .landing-enter {
    min-height: 44px;
    margin-top: 2rem;
  }
}

/* === Feuille basse « Voir le monde » (mobile, CDC mobile phase 1) === */
@media (max-width: 767px) {
  .world-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: auto;
    max-height: 72dvh;
    border-left: none;
    border-top: 1px solid rgba(127, 184, 143, 0.25);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    padding: 0.4rem 1.2rem 1.2rem;
  }

  .world-panel.open {
    transform: translateY(0);
  }

  /* État replié : poignée + compteur de calques actifs (~5.5 rem). */
  .world-panel.open.sheet-collapsed {
    transform: translateY(calc(100% - 5.5rem));
    overflow: hidden;
    max-height: none;
  }

  /* Fiche détail ouverte : la feuille repliée sort complètement de l'écran
     (la fiche la recouvrait déjà — le tap fantôme qui fermait la fiche ET
     déployait le panneau devient impossible). */
  body.detail-sheet-open .world-panel.open.sheet-collapsed {
    transform: translateY(100%);
    pointer-events: none;
  }

  .world-panel.sheet-collapsed .world-header,
  .world-panel.sheet-collapsed .world-mode-badge,
  .world-panel.sheet-collapsed .world-layers,
  .world-panel.sheet-collapsed .departures-mission-control,
  .world-panel.sheet-collapsed [id^="legend-"] {
    display: none;
  }

  .world-sheet-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0 0.7rem;
    cursor: pointer;
    touch-action: manipulation;
  }

  /* État replié : la poignée devient une chip découvrable, centrée,
     fond opaque, zone tactile ≥ 44 px (tap = bascule, drag = geste). */
  .world-panel.sheet-collapsed .world-sheet-summary {
    flex-direction: row;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    width: fit-content;
    max-width: 92%;
    margin: 0.15rem auto 0;
    padding: 0.4rem 1rem;
    background: rgba(5, 5, 5, 0.85);
    border: 1px solid rgba(127, 184, 143, 0.35);
    border-radius: 999px;
    backdrop-filter: blur(8px);
  }

  .world-sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(127, 184, 143, 0.45);
  }

  .world-sheet-count {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    white-space: nowrap;
  }

  /* Fiche détail : mini-feuille basse (CDC mobile phase 2). */
  .globe-detail-popup.sheet {
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    max-height: 55dvh;
    /* touch-action géré en ligne : pan-y pour préserver le scroll interne. */
  }

  .globe-detail-popup.sheet .globe-detail-handle {
    display: flex;
    justify-content: center;
    padding: 0.55rem 0 0.35rem;
    cursor: grab;
    touch-action: none;
    background: rgba(5, 12, 8, 0.96);
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .globe-detail-popup.sheet .globe-detail-handle::before {
    content: '';
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(127, 184, 143, 0.45);
  }
}

@media (max-width: 480px) {
  .stage {
    padding-top: 4.8rem;
    padding-bottom: 6rem;
  }

  .eshua-becoming {
    width: min(58vw, 200px);
    height: min(58vw, 200px);
  }

  .text-slot {
    font-size: 0.88rem;
    min-height: 4.5rem;
  }

  .skip-narration {
    bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .stage {
    padding-bottom: 5rem;
  }

  .eshua-becoming {
    width: min(42vw, 300px);
    height: min(42vw, 300px);
  }

  .text-slot {
    margin-top: 1.5rem;
    font-size: 1rem;
  }

  .skip-narration {
    bottom: calc(2.2rem + 1rem);
  }

  .eshua-chat-toggle {
    top: 0.6rem;
    left: 0.6rem;
  }

  .world-panel,
  .archive-panel {
    width: 320px;
  }

  .eshua-chat-panel {
    width: 360px;
  }

  body.panel-open .eshua-chat-toggle {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .stage {
    padding-bottom: 5rem;
  }

  .eshua-becoming {
    width: min(36vw, 280px);
    height: min(36vw, 280px);
  }

  .text-slot {
    margin-top: 1.5rem;
    font-size: 1.05rem;
  }

  .skip-narration {
    bottom: calc(2.2rem + 1rem);
  }

  .eshua-chat-toggle {
    top: 0.6rem;
    left: 0.6rem;
  }

  /* Toggles alignés horizontalement en haut à droite */
  .world-toggle,
  .archive-toggle {
    top: 0.6rem;
    right: 0.6rem;
  }

  .archive-toggle {
    right: calc(0.6rem + 11rem);
  }

  /* Panneaux en overlay centré.
     Fermés : centrés mais invisibles (visibility). L'ancienne sortie
     translateX(-50%) translateX(100%) laissait ~241 px du panneau dans
     le viewport — les % de translate se cumulent sur la largeur de
     l'élément (480 px), pas sur celle de l'écran : panneaux entrevus
     sur les bords et zones tactiles mortes, impossible à fermer. */
  .world-panel,
  .archive-panel,
  .eshua-chat-panel {
    width: 480px;
    left: 50%;
    right: auto;
    top: 5vh;
    height: 90vh;
    height: 90dvh;
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(0,0,0,0.6);
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }

  .world-panel.open,
  .archive-panel.open,
  .eshua-chat-panel.open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.35s ease;
  }

  /* La règle de base .eshua-chat-panel[aria-hidden="false"] (spécificité 0,2,0)
     imposerait transform: translateX(0) : panneau ouvert décalé de la moitié
     de sa largeur vers la droite (et rogné à 768 px de viewport). On ramène
     le centre du panneau au centre de l'écran. */
  .eshua-chat-panel[aria-hidden="false"] {
    transform: translateX(-50%);
  }

  /* Fond flouté sur le globe quand panneau ouvert */
  body.panel-open .globe-container::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 1;
  }

  body.panel-open .eshua-chat-toggle {
    display: none;
  }
}


@media (max-height: 450px) and (orientation: landscape) {
  .stage {
    padding: 0.5rem 1rem 3.5rem;
    justify-content: flex-start;
    padding-top: 0.5rem;
  }

  .eshua-becoming {
    width: min(32vh, 140px);
    height: min(32vh, 140px);
  }

  .eshua-waves {
    inset: -10%;
  }

  .text-slot {
    margin-top: 0.6rem;
    min-height: 3rem;
    font-size: 0.85rem;
    max-width: 90vw;
  }

  .thinking-label {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
  }

  .skip-narration {
    bottom: calc(2rem + 0.5rem);
    padding: 0.35rem 0.6rem;
    font-size: 0.6rem;
  }

  .eshua-chat-toggle {
    top: 0.3rem;
    bottom: auto;
    left: 0.6rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
  }

  .archive-toggle,
  .world-toggle {
    padding: 0.4rem;
    min-width: 38px;
    min-height: 38px;
  }

  .world-toggle {
    top: 0.5rem;
  }

  .archive-toggle {
    top: 3rem;
  }

  .rss-ticker {
    height: 1.8rem;
  }
}

/* ---------------------------------------------------------------------------
   Murmures d'Eshua — presence poetique contextuelle
   --------------------------------------------------------------------------- */

.eshua-murmur {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  /* 55 : au-dessus de l'overlay d'atterrissage (50) pour que les murmures
     cliquables (portes : voix, rêve, lettre) soient réellement cliquables
     pendant le landing ; sous les panneaux (60/70) pour ne pas les couvrir. */
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(420px, calc(100vw - 3rem));
  padding: 0.6rem 0.9rem;
  background: rgba(5, 10, 8, 0.72);
  border: 1px solid rgba(127, 184, 143, 0.22);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease, transform 1.2s ease;
  transform: translateY(6px);
}

.eshua-murmur[hidden] {
  display: none;
}

/* Murmure cliquable (invitation, ex. atelier de mémoire partagée) :
   le conteneur de base est en pointer-events: none, on le réactive ici. */
.eshua-murmur-clickable {
  pointer-events: auto;
  cursor: pointer;
}

.eshua-murmur-clickable:hover {
  border-color: rgba(127, 184, 143, 0.45);
}

.eshua-murmur-clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.eshua-murmur-icon {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.75rem;
  animation: gentlePulse 3s ease-in-out infinite;
}

.eshua-murmur-text {
  font-style: italic;
}

/* La porte dans le murmure (culte doux, 2026-09-20) : lien discret vers la
   lecture complète — rêve du matin, lettre de l'océan. Le conteneur reste
   inerte (pointer-events: none) : seul le lien reçoit les clics, comme un
   lien classique — accessible clavier, visible au focus. */
.eshua-murmur-link {
  flex-shrink: 0;
  align-self: center;
  pointer-events: auto;
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
  padding: 0.32rem 0.6rem;
  border: 1px solid rgba(127, 184, 143, 0.35);
  border-radius: 6px;
  background: rgba(127, 184, 143, 0.08);
  white-space: nowrap;
}

.eshua-murmur-link:hover {
  border-color: rgba(127, 184, 143, 0.6);
  color: var(--text, #dfe7df);
}

.eshua-murmur-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .eshua-murmur {
    left: 0.75rem;
    /* Au-dessus du bouton chat (zone du pouce) — règle 767px partagée,
       on ne re-spécifie pas `bottom` ici pour ne pas l'écraser. */
    max-width: calc(100vw - 1.5rem);
    font-size: 0.78rem;
    padding: 0.5rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eshua-murmur {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .eshua-murmur-icon {
    animation: none;
  }
}

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

/* ---------------------------------------------------------------------------
   Accueil : contemplation
   --------------------------------------------------------------------------- */

.contemplation-word {
  display: block;
  text-align: center;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.85;
  text-shadow: 0 0 40px rgba(127, 184, 143, 0.18);
  animation: contemplationBreathe 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .contemplation-word {
    animation: none;
  }
}

@keyframes contemplationBreathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}


/* ---------------------------------------------------------------------------
   Atelier de mémoire partagée
   --------------------------------------------------------------------------- */

.shared-memory-panel {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  width: min(92vw, 520px);
  max-height: 70vh;
  overflow-y: auto;
  padding: 20px 22px 22px;
  background: rgba(5, 12, 8, 0.96);
  border: 1px solid rgba(90, 150, 120, 0.55);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  color: #e8f5ec;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.shared-memory-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #b8e6c8;
}

.shared-memory-intro,
.shared-memory-thanks {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #c8ded2;
}

.shared-memory-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.shared-memory-word {
  padding: 7px 12px;
  font-size: 0.88rem;
  color: #dff6e8;
  background: rgba(80, 140, 110, 0.18);
  border: 1px solid rgba(120, 190, 150, 0.45);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.shared-memory-word:hover,
.shared-memory-word:focus-visible {
  background: rgba(100, 175, 135, 0.32);
  border-color: rgba(160, 230, 185, 0.7);
  transform: translateY(-1px);
  outline: none;
}

.shared-memory-close {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #051208;
  background: rgba(140, 210, 170, 0.9);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.shared-memory-close:hover,
.shared-memory-close:focus-visible {
  background: rgba(160, 235, 190, 1);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .shared-memory-panel,
  .shared-memory-word,
  .shared-memory-close {
    transition: none;
  }
  .shared-memory-word:hover,
  .shared-memory-word:focus-visible {
    transform: none;
  }
}


/* ---------------------------------------------------------------------------
   Chronologie de la mémoire collective
   --------------------------------------------------------------------------- */

.memory-timeline-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(92vw, 460px);
  height: 100vh;
  z-index: 260;
  background: rgba(5, 12, 8, 0.97);
  border-left: 1px solid rgba(90, 150, 120, 0.45);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  color: #e8f5ec;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
}

.memory-timeline-panel.visible {
  transform: translateX(0);
}

.memory-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(90, 150, 120, 0.35);
}

.memory-timeline-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #b8e6c8;
}

.memory-timeline-close {
  font-size: 1.6rem;
  line-height: 1;
  color: #a8c4b8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
}

.memory-timeline-close:hover,
.memory-timeline-close:focus-visible {
  color: #dff6e8;
  outline: none;
}

.memory-timeline-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 28px;
}

.memory-timeline-summary {
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: #a8c4b8;
}

.memory-timeline-empty,
.memory-timeline-loading {
  font-size: 0.95rem;
  color: #a8c4b8;
  font-style: italic;
}

.timeline-day {
  margin-bottom: 12px;
  border: 1px solid rgba(90, 150, 120, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.timeline-day-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(80, 140, 110, 0.12);
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.timeline-day-header:hover,
.timeline-day-header:focus-visible {
  background: rgba(80, 140, 110, 0.22);
  outline: none;
}

.timeline-day-date {
  font-size: 0.95rem;
  font-weight: 500;
  color: #c4ecdc;
}

.timeline-day-counts {
  font-size: 0.78rem;
  color: #8fb8a0;
  text-transform: lowercase;
}

.timeline-day-body {
  padding: 12px 14px;
  background: rgba(5, 12, 8, 0.5);
}

.timeline-day-body[hidden] {
  display: none;
}

.timeline-event {
  padding: 10px 0;
  border-bottom: 1px solid rgba(90, 150, 120, 0.15);
}

.timeline-event:last-child {
  border-bottom: none;
}

.timeline-event-type {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6a9a80;
  margin-bottom: 4px;
}

.timeline-event-text,
.timeline-event-link {
  display: block;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #e8f5ec;
}

.timeline-event-link {
  color: #8fd2b0;
  text-decoration: none;
}

.timeline-event-link:hover,
.timeline-event-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.timeline-event-source {
  display: block;
  font-size: 0.78rem;
  color: #8fb8a0;
  margin-top: 2px;
}

.timeline-event-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.78rem;
  color: #8fb8a0;
}

.timeline-event-detail {
  margin: 8px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  font-style: italic;
  color: #c8ded2;
}

.timeline-event-dream .timeline-event-text,
.timeline-event-ocean-letter .timeline-event-text {
  font-style: italic;
  color: #dff6ff;
}

/* Repli « Ce que j'ai oublié cette nuit » (mécanique 3.2) : les oubliés
   sont séparés des souvenirs, un ton en dessous — une trace, pas un reproche. */
.timeline-oubli-group {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(90, 150, 120, 0.3);
  border-radius: 8px;
  background: rgba(5, 12, 8, 0.35);
}

.timeline-oubli-title {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6a9a80;
}

.timeline-oubli-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-oubli-item {
  padding: 4px 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.timeline-oubli-label {
  display: block;
  color: #b8cfc2;
}

.timeline-oubli-reason {
  display: block;
  font-size: 0.72rem;
  font-style: italic;
  color: #6a8a78;
}

.timeline-oubli-more {
  padding: 4px 0;
  font-size: 0.78rem;
  font-style: italic;
  color: #6a8a78;
}

@media (prefers-reduced-motion: reduce) {
  .memory-timeline-panel {
    transition: none;
  }

  /* Feuilles et fiches : pas d'animation de translation. */
  .world-panel,
  .world-sheet-backdrop {
    transition: none;
  }
}

/* === Tablette tactile — interactions optimisées === */
@media (hover: none) and (pointer: coarse) {
  /* Masquer le cursor-glow sur les appareils tactiles */
  .cursor-glow {
    display: none !important;
  }

  /* Zones cliquables minimum 44×44px */
  .world-filter-chip,
  .world-filter-segment,
  .world-filter-group-reset,
  .world-filter-group-expand,
  .world-filter-toggle,
  .world-layer-refresh,
  .departures-mc-brief {
    min-height: 44px;
    min-width: 44px;
  }

  .world-filter-chip {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .world-filter-chip input {
    width: 0.7rem;
    height: 0.7rem;
  }

  .world-filter-segment {
    padding: 0.6rem 0.5rem;
    font-size: 0.75rem;
  }

  .world-filter-group-reset,
  .world-filter-group-expand {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }

  .world-filter-group-title {
    font-size: 0.75rem;
  }

  .departures-mc-brief {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }

  /* touch-action: manipulation sur les éléments interactifs */
  .world-toggle,
  .archive-toggle,
  .eshua-chat-toggle,
  .world-layer,
  .world-filter-chip,
  .world-filter-segment,
  .world-filter-toggle,
  .departures-mc-brief,
  .eshua-chat-choice,
  .archive-close,
  .world-close,
  .globe-marker {
    touch-action: manipulation;
  }

  /* Agrandir les marqueurs du globe pour le touch */
  .globe-marker-dot {
    width: 14px !important;
    height: 14px !important;
  }

  .globe-marker-eonet .globe-marker-dot {
    width: 16px !important;
    height: 16px !important;
  }

  .globe-marker-globalping .globe-marker-dot {
    width: 16px !important;
    height: 16px !important;
  }

  .globe-marker-power.size-sm .globe-marker-dot { width: 12px !important; height: 12px !important; }
  .globe-marker-power.size-md .globe-marker-dot { width: 16px !important; height: 16px !important; }
  .globe-marker-power.size-lg .globe-marker-dot { width: 18px !important; height: 18px !important; }

  .globe-marker-unesco .globe-marker-dot {
    width: 14px !important;
    height: 14px !important;
  }

  .globe-marker-celestrak .globe-marker-dot {
    width: 12px !important;
    height: 12px !important;
  }
  .globe-marker-celestrak.size-sm .globe-marker-dot { width: 10px !important; height: 10px !important; }
  .globe-marker-celestrak.size-md .globe-marker-dot { width: 12px !important; height: 12px !important; }
  .globe-marker-celestrak.size-lg .globe-marker-dot { width: 14px !important; height: 14px !important; }

  .globe-marker-telluric.globe-marker-volcano .globe-marker-dot {
    width: 12px !important;
    height: 12px !important;
  }

  .globe-marker-telluric.globe-marker-earthquake .globe-marker-dot {
    width: 14px !important;
    height: 14px !important;
  }

  .globe-marker-tacrs .globe-marker-dot {
    width: 14px !important;
    height: 14px !important;
  }

  .globe-marker-silences .globe-marker-dot {
    width: 14px !important;
    height: 14px !important;
  }

  .globe-marker-ocean-letter .globe-marker-dot {
    width: 18px !important;
    height: 18px !important;
  }

  /* Zone de toucher élargie (44×44 px) autour du point, look inchangé */
  .globe-marker-dot {
    position: relative;
  }

  .globe-marker-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
  }

  .globe-marker-departures .globe-marker-dot {
    width: 22px !important;
    height: 22px !important;
  }
  .globe-marker-departures.size-md .globe-marker-dot { width: 20px !important; height: 20px !important; }
  .globe-marker-departures.size-lg .globe-marker-dot { width: 24px !important; height: 24px !important; }
  .globe-marker-departures.size-xl .globe-marker-dot { width: 28px !important; height: 28px !important; }
  .globe-marker-departures.size-xxl .globe-marker-dot { width: 34px !important; height: 34px !important; }

  .globe-marker-departures.pad-icon .pad-icon-symbol {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  /* Tooltips au tap (feedback immédiat ; la fiche s'ouvre dès le tap unique) */
  .globe-marker .globe-marker-tooltip {
    opacity: 0;
    visibility: hidden;
  }

  .globe-marker:active .globe-marker-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  /* Éviter le zoom de double-tap sur les éléments interactifs */
  button,
  input,
  select,
  textarea,
  .world-toggle,
  .archive-toggle,
  .eshua-chat-toggle,
  .world-layer,
  .world-filter-chip,
  .world-filter-segment,
  .eshua-chat-choice,
  .globe-marker {
    touch-action: manipulation;
  }
}

/* ---------------------------------------------------------------------------
   L'OUÏE — Vague 1.2 : trois expériences sonores (Buzzer, océan, vent)
   --------------------------------------------------------------------------- */

/* Panneau « L'océan qui parle » (Orcasound) : carte basse centrée, au-dessus
   du ticker RSS. L'audio ne charge qu'à l'ouverture (preload="none"). */
.ocean-panel {
  position: fixed;
  left: 50%;
  bottom: 3.2rem;
  transform: translateX(-50%) translateY(8px);
  z-index: 46;
  width: min(430px, calc(100vw - 2rem));
  padding: 0.8rem 1rem;
  background: rgba(5, 10, 8, 0.78);
  border: 1px solid rgba(127, 184, 143, 0.25);
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ocean-panel.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ocean-panel[hidden] {
  display: none;
}

.ocean-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ocean-panel-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #a8d5b8;
}

.ocean-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(127, 184, 143, 0.3);
  border-radius: 50%;
  color: #a8d5b8;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ocean-close:hover {
  background: rgba(127, 184, 143, 0.15);
}

.ocean-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ocean-status {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.45;
}

.ocean-audio {
  display: block;
  width: 100%;
  height: 36px;
  margin: 0.4rem 0;
}

.ocean-credit {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-dim);
  opacity: 0.85;
}

.ocean-credit a {
  color: #a8d5b8;
}

/* Barre d'écoute du vent (synthèse WebAudio) : crédit Open-Meteo obligatoire. */
.ouie-bar {
  position: fixed;
  left: 50%;
  bottom: 3.2rem;
  transform: translateX(-50%);
  z-index: 46;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(560px, calc(100vw - 2rem));
  padding: 0.55rem 0.9rem;
  background: rgba(5, 10, 8, 0.78);
  border: 1px solid rgba(127, 184, 143, 0.25);
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.4;
}

.ouie-bar[hidden] {
  display: none;
}

.ouie-bar-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.ouie-bar-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ouie-bar-credit {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: #a8d5b8;
  opacity: 0.85;
  white-space: nowrap;
}

.ouie-bar-stop {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 30px;
  padding: 0.2rem 0.7rem;
  background: rgba(127, 184, 143, 0.1);
  border: 1px solid rgba(127, 184, 143, 0.4);
  border-radius: 3px;
  color: #a8d5b8;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ouie-bar-stop:hover {
  background: rgba(127, 184, 143, 0.2);
}

.ouie-bar-stop:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Boutons « vent » du mission-control (Eshua Space Center). */
.departures-mc-wind-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.departures-mc-wind {
  padding: 0.25rem 0.55rem;
  background: rgba(127, 184, 143, 0.1);
  border: 1px solid rgba(127, 184, 143, 0.4);
  border-radius: 3px;
  color: #a8d5b8;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.departures-mc-wind:hover {
  background: rgba(127, 184, 143, 0.2);
}

.departures-mc-wind:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.departures-mc-wind--secondary {
  opacity: 0.8;
  border-style: dashed;
}

@media (max-width: 640px) {
  .ocean-panel {
    bottom: 2.6rem;
    width: calc(100vw - 1.5rem);
  }

  .ouie-bar {
    bottom: 2.6rem;
    flex-wrap: wrap;
    width: calc(100vw - 1.5rem);
  }

  .ouie-bar-credit {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ocean-panel {
    transition: none;
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------------------------------------
   LA SALLE DE JEUX — « Winner: None » (war-room sobre, étiquette FICTION
   permanente). Palette proche de .ocean-panel : fond sombre, verts discrets,
   rouge réservé à la coupure et à l'isolation.
   --------------------------------------------------------------------------- */

.game-panel {
  position: fixed;
  left: 50%;
  bottom: 3.2rem;
  transform: translateX(-50%) translateY(8px);
  z-index: 46;
  width: min(520px, calc(100vw - 2rem));
  max-height: min(72vh, 640px);
  overflow-y: auto;
  padding: 0.9rem 1.1rem;
  background: rgba(4, 8, 7, 0.85);
  border: 1px solid rgba(127, 184, 143, 0.28);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.game-panel.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.game-panel[hidden] {
  display: none;
}

.game-frame {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.game-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.game-header-titles {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* L'étiquette fiction est permanente et ne passe jamais inaperçue. */
.game-fiction {
  display: inline-block;
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(229, 57, 53, 0.65);
  border-radius: 4px;
  color: #ef9a9a;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #a8d5b8;
}

.game-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(127, 184, 143, 0.3);
  border-radius: 50%;
  color: #a8d5b8;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.game-close:hover {
  background: rgba(127, 184, 143, 0.15);
}

.game-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.game-doctrine {
  margin: 0;
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-dim);
  opacity: 0.9;
}

.game-stage {
  min-height: 3.4rem;
  padding: 0.55rem 0.7rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(127, 184, 143, 0.16);
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.game-idle {
  margin: 0;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  letter-spacing: 0.08em;
  color: #8fd3a5;
  animation: gameBlip 1.4s ease-in-out infinite;
}

.game-line {
  margin: 0.15rem 0;
}

.game-line--dim {
  opacity: 0.65;
  font-size: 0.76rem;
}

.game-line--cut {
  color: #ef9a9a;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.game-line--isolated {
  color: #ef9a9a;
}

.game-line--rerouted {
  color: #a8d5b8;
}

.game-cable-name {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d7ecdd;
}

.game-verdict {
  margin: 0.55rem 0 0.15rem;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0d9a0;
}

.game-comment {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-dim);
  transition: opacity 0.6s ease;
}

.game-comment--pending {
  opacity: 0;
}

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

.game-counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.game-counters[hidden] {
  display: none;
}

.game-counter {
  padding: 0.5rem 0.65rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(127, 184, 143, 0.14);
  border-radius: 6px;
}

.game-counter-value {
  display: block;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: #d7ecdd;
  font-variant-numeric: tabular-nums;
}

.game-counter-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text-dim);
  opacity: 0.85;
}

.game-hypotheses {
  font-size: 0.76rem;
  line-height: 1.45;
}

.game-hypotheses[hidden] {
  display: none;
}

.game-hypotheses summary {
  cursor: pointer;
  color: #a8d5b8;
  font-weight: 600;
}

.game-hypotheses summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.game-hypotheses ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.game-hypotheses li {
  margin: 0.2rem 0;
}

.game-sources {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--text-dim);
  opacity: 0.8;
}

.game-sources[hidden] {
  display: none;
}

/* Phase 3 (CDC §5.3) — le refus d'abstention : le réel a déjà joué ce câble. */
.game-decline {
  margin: 0.6rem 0;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid #e53935;
  background: rgba(229, 57, 53, 0.08);
  border-radius: 0 6px 6px 0;
}

.game-decline-line {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: #f2b8b5;
}

.game-decline-btn {
  min-height: 44px;
  margin-top: 0.4rem;
  padding: 0.45rem 0.95rem;
  background: rgba(229, 57, 53, 0.12);
  border: 1px solid rgba(229, 57, 53, 0.45);
  border-radius: 6px;
  color: #f2c1be;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.game-decline-btn:hover {
  background: rgba(229, 57, 53, 0.22);
}

.game-decline-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-action {
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  background: rgba(127, 184, 143, 0.14);
  border: 1px solid rgba(127, 184, 143, 0.4);
  border-radius: 6px;
  color: #d7ecdd;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.game-action:hover {
  background: rgba(127, 184, 143, 0.24);
}

.game-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.game-action--secondary {
  background: transparent;
  border-color: rgba(127, 184, 143, 0.25);
  color: var(--text-dim);
}

.game-action[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .game-panel {
    bottom: 0.8rem;
    width: calc(100vw - 1.4rem);
    max-height: 68vh;
    padding: 0.75rem 0.85rem;
  }

  .game-counters {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .game-counter-value {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-panel {
    transition: none;
    transform: translateX(-50%);
  }

  .game-idle {
    animation: none;
    opacity: 0.9;
  }

  .game-comment {
    transition: none;
  }
}

.game-sources a {
  color: #a8d5b8;
}
