/* ---------- RESET + BODY ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', monospace;
  background: black;
  color: #00ff00;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  position: relative;
  text-shadow: 0 0 6px #00ff00;
}

/* ---------- FOND ANIMÉ MATRIX ---------- */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: black;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://media.giphy.com/media/WoD6JZnwap6s8/giphy.gif');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

/* ---------- CONTAINER ---------- */
#quiz-container {
  background-color: rgba(0, 0, 0, 0.75);
  padding: 30px;
  border-radius: 15px;
  border: 2px solid #00ff00;
  box-shadow: 0 0 25px #00ff00;
  width: 90%;
  max-width: 600px;
  text-align: center;
}

/* ---------- QUESTION ---------- */
#question-text {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* ---------- SCORE & TIMER TEXT ---------- */
#affiche-score,
#affiche-timer {
  font-weight: bold;
  margin: 10px 0;
}

/* ---------- BARRES ---------- */
#progress {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin: 0 auto 10px auto;
  width: 100%;
  max-width: 300px;
}

#progress span {
  flex: 1;
  height: 8px;
  border-color: #0ac13e;
  border: 1px solid #00ff00;
  border-radius: 5px;
  opacity: 1;
  transition: opacity 0.3s ease;
}
#progress span.active {
  opacity: 1;
}

#timer-bar-container {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 10px auto;
  background-color: rgba(0, 255, 0, 0.1);
  height: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px #00ff00;
}

#timer-bar {
  height: 100%;
  width: 100%;
  background-color: #00ff00;
  transition: width 1s linear, background-color 0.3s ease;
  border-radius: 10px;
}

/* ---------- OPTIONS ---------- */
#options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.options {
  /*background-color: transparent;*/
  border: 1px solid #00ff00f4;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  color: #00ff00;
  cursor: pointer;
  transition: all 0.2s ease;
}

.options:hover:not(:disabled) {
  background-color: #00ff00;
  color: black;
  text-shadow: none;
}

.options:disabled,
.options:disabled:hover {
  background-color: transparent;
  cursor: not-allowed;
  opacity: 0.5;
}

.options.correct {
  border-color: #00ff00;
  /*border-color:#ffd500;*/
}

.options.incorrect {
  border-color: #ff0033;
}

/* ---------- BOUTONS ---------- */
.button-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

button {
  background-color: transparent;
  border: 1px solid #00ff00;
  color: #00ff00;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover:not(:disabled) {
  background-color: #00ff00;
  color: black;
  text-shadow: none;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- EXPLICATION ---------- */
#explanation {
  margin-top: 20px;
  font-style: italic;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  #quiz-container {
    padding: 20px;
  }

  #question-text {
    font-size: 1.2rem;
  }

  .options, button {
    font-size: 0.95rem;
  }

  #progress,
  #timer-bar-container {
    max-width: 100%;
  }
}
.message-fin {
  text-align: center;
  margin-top: 30px;
  font-size: 2em;
  color: #ffffff;
  background-color: #222;
  padding: 20px;
  border-radius: 10px;
}

