/* === style.css === */
/* Thème : Escape Game - Hack / Néon bleu avec fond animé */

body {
  background-color: #030303;
  color: #d0f0ff;
  font-family: 'Courier New', monospace;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Effet de fond animé */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      rgba(0, 255, 255, 0.04) 0px,
      rgba(0, 255, 255, 0.04) 1px,
      transparent 2px,
      transparent 4px
    ),
    radial-gradient(circle at center, rgba(0, 40, 50, 0.6), #000 90%);
  animation: scanlines 6s linear infinite;
  z-index: 0;
}

@keyframes scanlines {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 100%, 0 0; }
}

.wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* Panels */
.panel {
  background: rgba(10, 10, 10, 0.9);
  padding: 20px;
  border-right: 1px solid #0ff3;
  overflow-y: auto;
  backdrop-filter: blur(3px);
}
.sidebar {
  background: rgba(4, 12, 16, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Header / Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 10px;
}
.logo {
  font-weight: bold;
  color: #0ff;
  font-size: 22px;
  text-shadow: 0 0 8px #0ff;
}
.title {
  font-weight: bold;
  color: #7ef;
}
.meta {
  font-size: 12px;
  color: #6ac;
}

/* Status */
.status {
  border-top: 1px solid #0ff2;
  border-bottom: 1px solid #0ff2;
  padding: 8px 0;
  margin-bottom: 8px;
}
.stat {
  color: #8df;
  font-size: 13px;
  margin: 4px 0;
}

/* Buttons */
.btn {
  background: #001820;
  color: #0ff;
  border: 1px solid #0ff4;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
  box-shadow: 0 0 8px #0ff3, inset 0 0 6px #0ff1;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: glowPulse 2.5s infinite ease-in-out;
}
.btn:hover {
  background: #033;
  color: #6ff;
  box-shadow: 0 0 14px #0ff8, inset 0 0 8px #0ff4;
  transform: translateY(-1px);
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px #0ff3, inset 0 0 6px #0ff1; }
  50% { box-shadow: 0 0 16px #0ff8, inset 0 0 10px #0ff4; }
}

/* Links */
a {
  color: #0ff;
  text-decoration: none;
  transition: 0.2s;
}
a:hover {
  color: #6ff;
  text-shadow: 0 0 8px #0ff;
}

/* Card */
.card {
  background: rgba(11, 27, 32, 0.85);
  border: 1px solid #0ff3;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #0ff2;
  transition: box-shadow 0.3s ease;
}
.card:hover { box-shadow: 0 0 16px #0ff6; }

/* Titles */
.neon {
  color: #0ff;
  text-shadow: 0 0 8px #0ff, 0 0 12px #0ff;
}

/* Terminal */
.terminal {
  background: #001015;
  border: 1px solid #0ff2;
  color: #0f8;
  font-family: monospace;
  font-size: 13px;
  height: 150px;
  padding: 10px;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: inset 0 0 8px #0ff1;
}
.term-line {
  margin: 2px 0;
}

/* Input */
.cmd {
  background: #000;
  border: 1px solid #0ff3;
  color: #0ff;
  padding: 8px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  width: 100%;
  box-shadow: 0 0 6px #0ff1;
}
.cmd:focus { outline: none; box-shadow: 0 0 12px #0ff6; }

/* Règle du jeu - Temps pour les énigmes */
.note {
  font-size: 12px;
  color: #9fb;
}

/* Timer */
#timer {
  color: #0ff; /* couleur normale */
  font-family: monospace;
  font-size: 1em;
  transition: color 0.5s ease; /* transition douce */
}

/* Responsive */
@media (max-width: 768px) {
  .wrap { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid #0ff2; }
}
