/* === style.css === */
/* Thème : Escape Game - Palette Judge Anderson / Mega-City One */
/* Fond : béton mort, asphalte brûlé — Accents : spirales psychédéliques d'Anderson */

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

/* Effet de fond animé — asphalte + néon qui saignent */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(217,22,111,.12), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(42,191,160,.10), transparent 50%),
    repeating-linear-gradient(
      45deg,
      rgba(232,115,42,.025),
      rgba(232,115,42,.025) 2px,
      transparent 4px,
      transparent 8px
    );
  animation: sandDrift 30s linear infinite;
  z-index: 0;
}

@keyframes sandDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to   { background-position: 200px 100px, 0 0, 0 0; }
}

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

/* Panels */
.panel {
  background: rgba(28,26,24,.95);
  padding: 20px;
  border-right: 1px solid #E8732A44;
  overflow-y: auto;
  backdrop-filter: blur(3px);
}
.sidebar {
  background: rgba(22,20,18,0.97);
  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 {
  color: #D9166F;
  font-size: 22px;
  text-shadow: 0 0 8px #FF3FA0, 0 0 20px rgba(217,22,111,.4);
  font-weight: bold;
}
.title {
  font-weight: bold;
  color: #2ABFA0;
}
.meta {
  font-size: 12px;
  color: #E8732A;
}

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

/* Buttons */
.btn {
  background: #201E1C;
  color: #2ABFA0;
  border: 1px solid #E8732A;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
  box-shadow: 
    0 0 6px rgba(232,115,42,.4),
    inset 0 0 4px rgba(0,0,0,.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: glowPulse 2.5s infinite ease-in-out;
}
.btn:hover {
  background: #2C1A10;
  box-shadow:
    0 0 14px rgba(217,22,111,.7),
    inset 0 0 8px rgba(0,0,0,.8);
  color: #D9166F;
  transform: translateY(-1px);
}
@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 0 6px rgba(232,115,42,.4),
      inset 0 0 4px rgba(0,0,0,.6);
  }
  50% {
    box-shadow:
      0 0 14px rgba(217,22,111,.65),
      inset 0 0 6px rgba(0,0,0,.8);
  }
}

/* Links */
a {
  color: #E8732A;
  text-decoration: none;
  transition: 0.2s;
}
a:hover {
  color: #D9166F;
  text-shadow: 0 0 8px rgba(217,22,111,.6);
}

/* Card */
.card {
  background: rgba(24,22,20,.88);
  border: 1px solid #E8732A44;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: box-shadow 0.3s ease;
}
.card:hover { 
  box-shadow: 0 0 16px rgba(217,22,111,.4), 0 0 4px rgba(232,115,42,.3);
}
.card img {
  display: block;
  width: 50%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

/* Titles */
.neon {
  color: #2ABFA0;
  text-shadow:
    0 0 4px rgba(42,191,160,.6),
    0 0 12px rgba(42,191,160,.25);
}

/* Terminal */
.terminal {
  background: radial-gradient(circle at top, #120E0A, #0E0E14);
  border: 1px solid #2ABFA0;
  color: #C8B97A;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  height: 150px;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(42,191,160,.2);
}
.term-line {
  margin: 2px 0;
}

/* Input */
.cmd {
  background: #131210;
  border: 1px solid #E8732A;
  color: #C8B97A;
  padding: 8px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  width: 100%;
  box-shadow: inset 0 0 6px rgba(0,0,0,.6);
  caret-color: #D9166F;
}
.cmd:focus { 
  outline: none; 
  box-shadow: 0 0 8px rgba(217,22,111,.5);
}

/* Consigne pour le temps */
.note {
  font-size: 12px;
  color: #E8732A;
}

/* Timer */
#timer {
  color: #D9166F;
  font-family: monospace;
  font-size: 1em;
  transition: color 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .wrap { grid-template-columns: 1fr; }
  .sidebar { 
    border-right: none; 
    border-bottom: 1px solid rgba(232,115,42,.35); 
  }
}

::selection {
  background: rgba(217,22,111,.3);
  color: #F0EDE5;
}
::-moz-selection {
  background: rgba(217,22,111,.3);
  color: #F0EDE5;
}
