/* --- ARCHIVE 3D VIEWPORT --- */
.archive-viewport {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  perspective: 1000px; /* Profondeur de champ */
  overflow: hidden;
  background: radial-gradient(circle at center, #05070a 0%, #000 100%);
  cursor: grab;
  z-index: 1; /* Derrière le HUD */
}
.archive-viewport:active { cursor: grabbing; }

/* Le conteneur qui tourne */
.helix-container {
  position: absolute; top: 50%; left: 50%;
  transform-style: preserve-3d;
}

/* --- MEMORY NODE (LA CARTE) --- */
.memory-node {
  position: absolute;
  width: 320px; padding: 25px;
  background: rgba(0, 10, 15, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-left: 3px solid var(--hud-primary);
  color: #889; 
  font-family: var(--font-data); font-size: 14px; line-height: 1.6;
  backface-visibility: hidden; /* Masque le dos pour perf */
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s, color 0.4s;
  pointer-events: auto;
  user-select: none;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 92% 100%, 0 100%);
}

/* État Focus (Quand proche de l'écran) */
.memory-node.focused {
  border-color: var(--hud-primary);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
  background: rgba(0, 15, 25, 0.98);
  color: #fff;
  z-index: 100;
}

/* Header de la carte */
.mn-header {
  display: flex; justify-content: space-between; margin-bottom: 15px;
  border-bottom: 1px dashed #334; padding-bottom: 8px;
}
.mn-id { color: var(--hud-secondary); font-weight: 800; letter-spacing: 1px; }
.mn-date { opacity: 0.6; font-size: 11px; }

/* Texte Cipher / Glitch */
.cipher-text { min-height: 80px; }
.cipher-text span { display: inline-block; min-width: 6px; transition: color 0.1s; }
.corrupted { color: var(--hud-alert); opacity: 0.9; text-shadow: 0 0 5px red; }
.decoded { color: #fff; text-shadow: 0 0 5px var(--hud-primary); }

/* --- HUD BAS (ARCHIVE SPECIFIC) --- */
.archive-hud {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
  text-align: center; pointer-events: none; z-index: 200;
  width: 300px;
}

.scroll-hint {
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 3px; 
  opacity: 0.6; animation: pulseHint 2s infinite; color: var(--hud-primary);
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%; height: 2px; background: rgba(255,255,255,0.1); 
  position: relative; overflow: hidden;
}
.progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0; 
  background: var(--hud-primary); width: 0%;
  box-shadow: 0 0 10px var(--hud-primary);
}

.loop-counter {
  font-family: var(--font-data); font-size: 10px; 
  color: var(--hud-alert); margin-top: 8px; opacity: 0.8;
}

@keyframes pulseHint { 0%,100%{opacity:0.3} 50%{opacity:1} }
