/* ============================================================
📄 PAGE JEUX — QUIZ ARCHITECTURE
============================================================ */

/* Conteneur global du quiz */
.page-jeux .container-global {
  max-width: 600px; /* Réduit pour centrer le contenu */
  margin: 0 auto;
  padding: 40px 20px;
}

/* Conteneur du quiz */
.quiz-container {
  background: #fff;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre tout horizontalement */
}

/* Image du projet */
.quiz-image-wrapper {
  width: 100%;
  max-width: 400px; /* Taille réduite */
  margin: 0 auto 30px; /* Centré horizontalement */
}

.quiz-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 400px; /* Hauteur réduite */
  object-fit: cover;
  display: block;
}

/* Question */
.quiz-question {
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  text-align: center;
  margin-bottom: 30px;
  width: 100%;
  max-width: 500px; /* Largeur max pour la question */
}

/* ============================================================
   OPTIONS DE RÉPONSE (Rectangles blancs distincts)
============================================================ */
.quiz-options {
  /* Conteneur des options */
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 500px; /* Largeur max pour les options */
}

.quiz-option {
  /* Rectangle blanc individuel avec ombre */
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  padding: 15px 20px;
  width: 100%;
  
  /* Texte gris */
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  color: #878787;
  text-align: center;
  
  /* Interaction */
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}

.quiz-option:hover:not(:disabled) {
  color: #AA6615;
  background: white !important;
  border-color: #AA6615;
}

.quiz-option:active:not(:disabled) {
  transform: scale(0.98);
}

/* États des réponses */
.quiz-option.correct {
  background: #28a745 !important;
  color: #fff !important;
  border-color: #28a745 !important;
  font-weight: bold;
}

.quiz-option.wrong {
  background: #d63638 !important;
  color: #fff !important;
  border-color: #d63638 !important;
  font-weight: bold;
}

.quiz-option:disabled {
  cursor: not-allowed;
}

/* ============================================================
   PROGRESSION
============================================================ */
.quiz-progress {
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 20px;
}

/* ============================================================
   SCORE FINAL
============================================================ */
.quiz-score {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.score-value {
  margin-bottom: 40px;
}

.score-number {
  font-family: "The Bigmouth Regular", sans-serif;
  font-size: 80px;
  color: #000;
  line-height: 1;
  margin-bottom: 10px;
}

.score-text {
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #666;
  margin-bottom: 5px;
}

.score-percentage {
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  color: #999;
}

/* Bouton recommencer */
.restart-button {
  background: #000;
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s ease;
  border-radius: 0;
}

.restart-button:hover {
  background: #AA6615;
}

/* Message si pas de questions */
.no-questions {
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  color: #666;
  text-align: center;
  padding: 40px 20px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .page-jeux .container-global {
    padding: 30px 40px;
  }
  
  .quiz-image-wrapper {
    margin-bottom: 25px;
  }
  
  .quiz-question {
    font-size: 13px;
    margin-bottom: 25px;
  }
  
  .quiz-option {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .score-number {
    font-size: 60px;
  }
}

@media (max-width: 600px) {
  .page-jeux .container-global {
    padding: 20px 20px;
  }
  
  .quiz-image-wrapper img {
    max-height: 300px;
  }
  
  .quiz-question {
    font-size: 12px;
    margin-bottom: 20px;
  }
  
  .quiz-options {
    gap: 12px;
  }
  
  .quiz-option {
    padding: 10px 14px;
    font-size: 12px;
  }
  
  .score-number {
    font-size: 50px;
  }
  
  .score-text {
    font-size: 14px;
  }
  
  .restart-button {
    padding: 12px 30px;
    font-size: 12px;
  }
}
