:root {
  --white: #ffffff;
}

/* ===== Bulle Quiz flottante ===== */
#quizBubble {
  position: fixed;
  bottom: 30px;
  left: 30px;
  /* bas gauche */
  width: 60px;
  height: 60px;
  background: #0d1b2a;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

#quizBubble.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.quiz-logo-bubble {
  width: 28px;
  height: auto;
}

/* ===== FenÃªtre Quiz ===== */
#quizWindow {
  position: fixed;
  bottom: 100px;
  left: 30px;
  /* alignÃ© avec la bulle */
  width: 340px;
  max-width: 90vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  font-family: Arial, sans-serif;
}

/* Header */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #0d1b2a, #1b263b);
  color: #fff;
  padding: 12px 16px;
}

.quiz-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-logo {
  width: 32px;
}

/* Contenu quiz */
.quiz-body {
  padding: 16px;
}

#quizQuestion {
  font-weight: 600;
  margin-bottom: 12px;
}

#quizOptions button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  cursor: pointer;
}

#quizOptions button:hover {
  background: #e9ecef;
}

#quizOptions button.selected {
  background: #00e5ff;
  color: #fff;
  border-color: #00e5ff;
}

#nextQuestion,
#restartQuiz {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #0d1b2a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

#nextQuestion:hover,
#restartQuiz:hover {
  background: #1b263b;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  #quizWindow {
    width: 90vw;
    left: 5vw;
    bottom: 100px;
  }
}

@media (max-width: 480px) {
  #quizWindow {
    width: 95vw;
    left: 2.5vw;
    bottom: 90px;
  }
}