/* ============================================
   ASHTAG TERMINAL - STYLESHEET
   ============================================
   
   @description  Styles principaux du terminal Ashtag
   @author       Horace @ PEAKS
   @version      1.0.0
   
   SOMMAIRE:
   1. VARIABLES & RESET
   2. LAYOUT
   3. COMPOSANTS - Landing & Matrix
   4. COMPOSANTS - Welcome
   5. COMPOSANTS - Formulaires
   6. COMPOSANTS - Terminal
   7. COMPOSANTS - Tutoriels
   8. ANIMATIONS
   9. RESPONSIVE
   ============================================ */


/* ============================================
   VARIABLES & RESET
   ============================================ */

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

body {
  background: #0a0a0f;
  font-family: 'JetBrains Mono', monospace;
  color: #e0e0e0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}


/* ============================================
   LAYOUT
   ============================================ */

/* Ecrans principaux */
.screen {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

.screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#landing-screen.active {
  display: block;
}

#terminal-screen.active {
  display: flex;
  flex-direction: column;
  width: 100vw !important;
  height: 100vh !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

/* Canvas Matrix */
.bg-matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
}

#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

#bg-matrix-canvas {
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  opacity: 0.15;
  display: none;
}


/* ============================================
   COMPOSANTS - Landing & Matrix
   ============================================ */

/* Container logo central */
.matrix-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
}

/* Effet de lueur */
.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.25) 0%, rgba(255, 0, 255, 0.1) 30%, rgba(255, 0, 255, 0) 60%);
  z-index: 2;
  pointer-events: none;
}

/* Texte glitch #TAG */
.glitch {
  font-family: 'Orbitron', sans-serif;
  font-size: 8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #00ffff, 0 0 80px #ff00ff;
  display: flex;
  letter-spacing: 0.05em;
}

.glitch span {
  display: inline-block;
}

.glitch span.glitching {
  animation: letterGlitch 0.2s steps(2) forwards;
}

.glitch span.flicker {
  animation: neonFlicker 0.15s steps(2) infinite;
}

.glitch span.off {
  opacity: 0.3;
  text-shadow: none;
}

/* Lignes de scan CRT */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px);
}

/* Flash de transition */
.flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0f;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}

.flash.active {
  animation: flash-animation 0.8s ease-out;
}

/* Fade out du landing */
#landing-screen.fade-out .matrix-container {
  animation: logoFadeOut 1.2s ease-out forwards;
}

#landing-screen.fade-out .glow {
  animation: glowFadeOut 1.2s ease-out forwards;
}

/* Points de progression Konami */
.progress-dots {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s;
}

.progress-dots.active {
  opacity: 0.7;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,0,255,0.3);
  border: 1px solid rgba(255,0,255,0.5);
  transition: all 0.2s;
}

.progress-dot.filled {
  background: #ff00ff;
  box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
}


/* ============================================
   COMPOSANTS - Welcome
   ============================================ */

#welcome-screen {
  background: transparent;
}

#welcome-screen.active {
  animation: screenFadeIn 0.5s ease-out;
}

.welcome-spotlight {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(255,0,255,0.15) 0%, rgba(0,255,255,0.08) 30%, rgba(0,0,0,0) 70%);
  z-index: 10;
  pointer-events: none;
  animation: spotlightPulse 4s ease-in-out infinite;
}

.welcome-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 500px;
  height: 350px;
}

.welcome-title {
  position: absolute;
  top: 0;
  left: -50px;
  right: -50px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #ff00ff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.welcome-title span {
  display: inline-block;
  transition: all 0.1s;
}

.welcome-title span.neon-flicker {
  animation: neonLetterFlicker 0.15s steps(2) infinite;
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #ff00ff;
}

.welcome-title span.glitch-letter {
  animation: glitchLetter 0.2s steps(2) forwards;
}

.welcome-title.changing {
  animation: titleChange 0.5s ease-out;
}

.welcome-buttons {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 350px;
}

.btn-welcome {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  border: 1px solid #ff00ff;
  color: #ff00ff;
  font-family: "Orbitron", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
  width: 100%;
  box-sizing: border-box;
}

.btn-welcome:hover {
  background: rgba(255,0,255,0.2);
  box-shadow: 0 0 20px rgba(255,0,255,0.5), inset 0 0 20px rgba(255,0,255,0.1);
  transform: translateY(-2px);
}


/* ============================================
   COMPOSANTS - Formulaires
   ============================================ */

.form-container {
  background: linear-gradient(145deg, rgba(18,18,26,0.95), rgba(26,26,46,0.95));
  border: 1px solid #ff00ff;
  border-radius: 10px;
  padding: 40px;
  width: 420px;
  box-shadow: 0 0 30px rgba(255,0,255,0.3), inset 0 0 30px rgba(0,0,0,0.5);
  position: relative;
  z-index: 20;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  color: #ff00ff;
  font-size: 0.8rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0,0,0,0.5);
  border: 1px solid #333;
  border-radius: 5px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  transition: all 0.3s;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0,255,255,0.3);
}

.input-group select {
  cursor: pointer;
}

.input-group select option {
  background: #1a1a2e;
}

/* Boutons */
.btn-cyber {
  width: 100%;
  padding: 15px;
  background: linear-gradient(90deg, #ff00ff, #00ffff);
  border: none;
  border-radius: 5px;
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 2px;
}

.btn-cyber:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255,0,255,0.5);
}

.btn-cyber:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-link {
  background: none;
  border: none;
  color: #00ffff;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-decoration: underline;
  margin-top: 15px;
}

.btn-link:hover {
  color: #ff00ff;
}

/* Messages d'erreur et succes */
.error-msg {
  color: #ff4444;
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  min-height: 20px;
}

.success-msg {
  color: #00ff88;
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
}

.form-links {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ============================================
   COMPOSANTS - Terminal
   ============================================ */

#terminal-screen {
  background: #0a0a0f;
  width: 100vw;
  height: 100vh;
}

/* Header du terminal */
.terminal-header {
  background: linear-gradient(90deg, #1a1a2e, #12121a);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

#terminal-user {
  color: #00ffff;
  font-size: 0.9rem;
}

.btn-small {
  padding: 8px 15px;
  background: transparent;
  border: 1px solid #ff00ff;
  color: #ff00ff;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s;
}

.btn-small:hover {
  background: #ff00ff;
  color: #000;
}

/* Corps du terminal */
#terminal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#terminal-body::-webkit-scrollbar {
  display: none;
}

/* Output terminal */
#terminal-output {
  margin-bottom: 10px;
}

#terminal-output .line {
  margin-bottom: 5px;
  white-space: pre-wrap;
  word-break: break-all;
}

#terminal-output .line.command { color: #00ffff; }
#terminal-output .line.response { color: #e0e0e0; }
#terminal-output .line.error { color: #ff4444; }
#terminal-output .line.success { color: #00ff88; }
#terminal-output .line.html { color: #e0e0e0; }

/* Styles commandes help */
.cmd-title {
  color: #f0c000;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.cmd-item {
  margin-left: 10px;
}

.cmd-name {
  color: #00ffff;
  display: inline-block;
  min-width: 100px;
}

.cmd-desc {
  color: #888;
}

/* Input terminal */
.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompt-line1 { color: #888; }
.prompt-status { color: #f0c000; }
.prompt-userhost { color: #00ff88; }
.prompt-path { color: #00ffff; }
.prompt-line2 { color: #888; }
.prompt-dollar {
  color: #f0c000;
  font-weight: bold;
  margin-right: 8px;
}

#terminal-input {
  flex: 1;
  background: transparent;
  caret-color: #f0c000;
  border: none;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  outline: none;
}

/* Autocompletion */
.autocomplete-suggestions {
  position: fixed;
  background: #0a0a0f;
  border: 1px solid #f0c000;
  border-radius: 4px;
  max-width: 300px;
  width: auto;
  padding: 5px 0;
  z-index: 1000;
  max-height: 150px;
  overflow-y: auto;
  display: none;
}

.autocomplete-suggestions.active {
  display: block;
}

.autocomplete-item {
  padding: 5px 15px;
  color: #0f0;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: rgba(240, 192, 0, 0.2);
  color: #f0c000;
}


/* ============================================
   COMPOSANTS - Tutoriels
   ============================================ */

/* Overlay tutoriel */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay.hidden {
  display: none;
}

/* Container principal */
.tuto-container {
  background: #12121a;
  border: 1px solid #ff00ff;
  border-radius: 10px;
  width: 85%;
  max-width: 1400px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header tutoriel */
.tuto-header {
  padding: 15px 20px;
  background: #1a1a2e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  gap: 15px;
}

.tuto-header h3 {
  color: #00ffff;
  font-family: 'Orbitron', sans-serif;
  flex: 1;
}

.tuto-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tuto-progress {
  font-size: 0.8rem;
  color: #888;
}

.btn-tuto {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #00ffff;
  color: #00ffff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s;
  font-family: 'JetBrains Mono', monospace;
}

.btn-tuto:hover {
  background: #00ffff;
  color: #000;
}

.btn-close {
  background: transparent;
  border: none;
  color: #ff00ff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 5px;
}

/* Contenu tutoriel */
#tuto-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.6;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#tuto-content::-webkit-scrollbar {
  display: none;
}

#tuto-content h1 {
  color: #f0c000;
  border-left: 4px solid #f0c000;
  padding-left: 15px;
  margin-left: 0;
  margin: 25px 0 15px;
  font-size: 1.5rem;
}

#tuto-content h2 {
  color: #00d4ff;
  border-left: 2px solid #00d4ff;
  padding-left: 12px;
  margin-left: 0;
  margin: 20px 0 10px;
  font-size: 1.3rem;
}

#tuto-content h3 {
  color: #aaa;
  padding-left: 10px;
  margin-left: 0;
  margin: 15px 0 10px;
  font-size: 1.1rem;
}

#tuto-content p { margin: 10px 0; }
#tuto-content ul,
#tuto-content ol { margin: 10px 0 10px 25px; }
#tuto-content li { margin: 5px 0; }

/* Blocs de code */
#tuto-content .code-block {
  position: relative;
  margin: 15px 0;
}

#tuto-content pre {
  background: #0a0a0f;
  border: 1px solid #333;
  border-radius: 5px;
  padding: 15px;
  padding-top: 35px;
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-all;
}

#tuto-content code {
  font-family: 'JetBrains Mono', monospace;
  color: #00ff88;
  font-size: 0.9rem;
}

#tuto-content .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent !important;
  border: none !important;
  opacity: 0.4;
  cursor: pointer;
  padding: 5px;
  font-size: 16px;
  transition: opacity 0.2s;
  z-index: 10;
  box-shadow: none !important;
}

#tuto-content .copy-btn:hover {
  opacity: 1;
  transform: none !important;
}

#tuto-content .copy-btn .copy-check {
  color: #00ff88;
}

/* Steps tutoriel */
.tuto-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 15px 0;
  padding: 12px 15px;
  background: rgba(255,0,255,0.05);
  border-radius: 5px;
  border-left: 3px solid #ff00ff;
}

.tuto-step input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  cursor: pointer;
  accent-color: #ff00ff;
  margin-top: 2px;
}

.tuto-step label {
  cursor: pointer;
  flex: 1;
}

.tuto-step.completed {
  background: rgba(0,255,136,0.1);
  border-left-color: #00ff88;
}

.tuto-step.completed label { opacity: 0.7; }
.tuto-step.completed label h3,
.tuto-step.completed label p,
.tuto-step.completed label pre { opacity: 0.6; }
.tuto-step.completed label h3 { text-decoration: line-through; }

/* Navigation tutoriel */
.tuto-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.tuto-nav-bottom {
  border-bottom: none;
  border-top: 1px solid #333;
  margin-top: 30px;
  margin-bottom: 0;
  padding-top: 15px;
}

.tuto-nav-title {
  color: #ff00ff;
  font-weight: bold;
  font-size: 0.9rem;
}

.tuto-nav-btn {
  background: #1a1a2e;
  border: 1px solid #ff00ff;
  color: #ff00ff;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.tuto-nav-btn:hover {
  background: #ff00ff;
  color: #000;
}

.tuto-nav-buttons {
  display: flex;
  gap: 10px;
}

/* Meta et alertes */
.tuto-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
  padding: 10px 15px;
  background: rgba(0,255,255,0.05);
  border-radius: 5px;
  font-size: 0.85rem;
}

.tuto-note {
  background: rgba(0,255,255,0.1);
  border-left: 3px solid #00ffff;
  padding: 8px 12px;
  margin: 10px 0;
  font-size: 0.9rem;
}

.tuto-warning {
  background: rgba(255,136,0,0.1);
  border-left: 3px solid #ff8800;
  padding: 8px 12px;
  margin: 10px 0;
  font-size: 0.9rem;
}

.tuto-check {
  background: rgba(0,255,136,0.1);
  border-left: 3px solid #00ff88;
  padding: 8px 12px;
  margin: 10px 0;
  font-size: 0.9rem;
}

.tuto-coming {
  background: rgba(255,0,255,0.1);
  border: 1px dashed #ff00ff;
  padding: 20px;
  text-align: center;
  border-radius: 5px;
  margin: 20px 0;
}

/* Phases tutoriel */
.tuto-phases {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0;
}

.tuto-phase {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: rgba(255,0,255,0.05);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.tuto-phase:hover {
  border-color: #ff00ff;
  background: rgba(255,0,255,0.1);
}

.phase-num {
  width: 28px;
  height: 28px;
  background: #ff00ff;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}

.phase-title { flex: 1; }
.phase-status { font-size: 1.1rem; }

/* Breadcrumb et progress bar */
.tuto-breadcrumb {
  background: #0a0a0f;
  padding: 15px 20px;
  border-bottom: 1px solid #333;
}

.tuto-breadcrumb-title {
  color: #f0c000;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.tuto-scroll-bar {
  height: 6px;
  background: #1a1a2e;
  border-radius: 3px;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.tuto-scroll-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(180deg, #ffdd44 0%, #f0c000 50%, #c9a000 100%);
  width: 0%;
  transition: width 0.1s;
  box-shadow: 0 0 8px #f0c000, inset 0 2px 3px rgba(255,255,255,0.4), inset 0 -2px 3px rgba(0,0,0,0.3);
  z-index: 1;
  border-radius: 3px;
}

.tuto-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  filter: drop-shadow(0 0 4px #00ffff) drop-shadow(0 0 8px #00ffff);
  z-index: 2;
}

/* Barre des phases */
.tuto-phases-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.tuto-phase-line {
  flex: 1;
  height: 3px;
  background: #333;
  position: relative;
}

.tuto-phase-line.done {
  background: #f0c000;
  box-shadow: 0 0 5px #f0c000;
}

.tuto-phase-node {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

.tuto-phase-node.done {
  background: #f0c000;
  color: #000;
  border: 2px solid #f0c000;
  box-shadow: 0 0 15px #f0c000, 0 0 30px rgba(240,192,0,0.3);
}

.tuto-phase-node.current {
  background: #1a1a2e;
  color: #f0c000;
  border: 2px solid #f0c000;
  animation: pulse-glow 2s infinite;
  box-shadow: 0 0 20px #f0c000, 0 0 40px rgba(240,192,0,0.5);
}

.tuto-phase-node.completed {
  background: #00ffff !important;
  color: #000 !important;
  border-color: #00ffff !important;
  box-shadow: 0 0 20px #00ffff, 0 0 40px rgba(0,255,255,0.7), 0 0 60px rgba(0,255,255,0.4) !important;
  animation: none !important;
}

.tuto-phase-node.todo {
  background: #1a1a2e;
  color: #555;
  border: 2px solid #333;
}

.tuto-phase-node.todo:hover {
  border-color: #555;
  color: #888;
}

.tuto-phase-node:hover {
  transform: scale(1.1);
}

.tuto-phase-node .phase-tooltip {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  border: 1px solid #f0c000;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.75rem;
  color: #f0c000;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.tuto-phase-node:hover .phase-tooltip {
  opacity: 1;
}


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

@keyframes letterGlitch {
  0% { transform: translate(0, 0); color: #fff; }
  25% { transform: translate(-3px, 2px); color: #ff00ff; }
  50% { transform: translate(2px, -2px); color: #00ffff; }
  75% { transform: translate(-2px, -1px); color: #ff00ff; }
  100% { transform: translate(0, 0); color: #fff; }
}

@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; text-shadow: none; }
}

@keyframes flash-animation {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes logoFadeOut {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); filter: blur(10px); }
}

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

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

@keyframes spotlightPulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

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

@keyframes glitchLetter {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); color: #ff00ff; }
  50% { transform: translate(1px, -1px); color: #00ffff; }
  75% { transform: translate(-1px, 0); color: #ff00ff; }
  100% { transform: translate(0, 0); }
}

@keyframes titleChange {
  0% { opacity: 1; }
  50% { opacity: 0; filter: blur(5px); }
  100% { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px #f0c000, 0 0 40px rgba(240,192,0,0.5); }
  50% { box-shadow: 0 0 30px #f0c000, 0 0 60px rgba(240,192,0,0.7); }
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  /* Navigation tutoriel mobile */
  .tuto-nav {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .tuto-nav-btn {
    padding: 8px 12px;
    font-size: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .tuto-nav-btn::before { font-size: 1.2rem; }
  .tuto-nav-btn:first-child::before { content: "←"; }
  .tuto-nav-btn:last-child::before { content: "→"; }
  
  .tuto-nav-title {
    font-size: 0.9rem;
    order: 0;
  }
  
  .tuto-nav-buttons { order: 1; }
  
  /* Landing mobile */
  .glitch { font-size: 4rem; }
  .glow { width: 350px; height: 350px; }
  
  /* Formulaires mobile */
  .form-container {
    width: 85%;
    padding: 30px 20px;
  }
  
  /* Welcome mobile */
  .welcome-spotlight { width: 400px; height: 400px; }
  
  /* Tutoriel mobile */
  .tuto-container {
    width: 95%;
    max-height: 90vh;
  }
}

/* ========== VALIDATION TEXT - SHOW ONLY WHEN CHECKED ========== */
.step-result {
  display: none;
  color: #00c896;
  font-style: italic;
  margin-top: 10px;
}

.tuto-step.completed .step-result {
  display: block;
}
