/* --- SECTION & CONTENEUR GLOBAL --- */
.quiz-section {
  background-color: #121214; /* Ambiance sombre */
  color: #e2e8f0;
  padding: 3rem 1.5rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.quiz-container {
  max-width: 1200px;
  margin: 0 auto;
}

.quiz-header {
  text-align: center;
  margin-bottom: 3rem;
}

.quiz-title {
  font-size: 2.5rem;
  color: #f1c40f; /* Jaune mystère / lumière dans le noir */
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quiz-intro {
  color: #94a3b8;
  font-size: 1.1rem;
}

/* --- GRILLE DES QUESTIONS --- */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* --- BLOC QUESTION --- */
.quiz-block {
  background: #1e1e24;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.quiz-block:hover {
  transform: translateY(-2px);
  border-color: #f1c40f;
}

.q-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #334155;
}

.quiz-block h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #f8fafc;
  padding-right: 2rem; /* Évite de chevaucher le numéro */
}

.question-text {
  color: #cbd5e1;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* --- OPTIONS (RADIO BUTTONS) --- */
.options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  background: #272731;
  border-radius: 4px;
  transition: background 0.2s;
}

.options label:hover {
  background: #32323f;
}

.options input[type="radio"] {
  accent-color: #f1c40f; /* Change la couleur du bouton radio */
  cursor: pointer;
}

/* --- BOUTON VALIDER --- */
.btn-quiz {
  background-color: #f1c40f;
  color: #121214;
  border: none;
  padding: 0.75rem 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
}

.btn-quiz:hover {
  background-color: #d4ac0d;
}

/* --- ZONE DE RÉSULTAT --- */
.quiz-result {
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  min-height: 24px; /* Évite les sauts de mise en page */
}

.quiz-result.correct {
  background-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid #22c55e;
}

.quiz-result.wrong {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid #ef4444;
}

.quiz-result.alert {
  background-color: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid #eab308;
}




/* --- SECTION & CONTENEUR UNIQUE --- */
.fleur-quiz-section {
  background-color: #0b1311; /* Teinte vert/noir profond */
  color: #e2e8f0;
  padding: 3rem 1.5rem;
  font-family: 'Courier New', Courier, monospace; /* Style typographie dossier scientifique */
}

.fleur-quiz-container {
  max-width: 1200px;
  margin: 0 auto;
}

.fleur-quiz-header {
  text-align: center;
  margin-bottom: 3rem;
}

.fleur-quiz-title {
  font-size: 2.3rem;
  color: #9b59b6; /* Violet néon / Fleur nocturne */
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}

.fleur-quiz-intro {
  color: #7f8c8d;
  font-size: 1rem;
}

/* --- GRILLE DES QUESTIONS --- */
.fleur-quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* --- BLOC QUESTION --- */
.fleur-quiz-block {
  background: #111e1a; /* Teinte laboratoire */
  border: 1px dashed #9b59b6; /* Ligne pointillée violette */
  border-radius: 0px; /* Style dossier brut */
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.fleur-quiz-block:hover {
  border-style: solid;
  box-shadow: 0 0 15px rgba(155, 89, 182, 0.2);
}

.fleur-q-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
  color: #274039;
}

.fleur-quiz-block h3 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #2ecc71; /* Vert toxique */
  padding-right: 2rem;
}

.fleur-question-text {
  color: #bdc3c7;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* --- OPTIONS (RADIO BUTTONS) --- */
.fleur-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.fleur-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.6rem;
  background: #162a24;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.fleur-options label:hover {
  background: #1b362e;
  border-left: 3px solid #2ecc71;
}

.fleur-options input[type="radio"] {
  accent-color: #2ecc71; 
  cursor: pointer;
}

/* --- BOUTON VALIDER --- */
.fleur-btn-quiz {
  background-color: transparent;
  color: #2ecc71;
  border: 1px solid #2ecc71;
  padding: 0.75rem 1rem;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.fleur-btn-quiz:hover {
  background-color: #2ecc71;
  color: #0b1311;
}

/* --- ZONE DE RÉSULTAT --- */
.fleur-quiz-result {
  margin-top: 1rem;
  padding: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 24px;
}

.fleur-quiz-result.f-correct {
  color: #2ecc71;
  border: 1px solid #2ecc71;
  background: rgba(46, 204, 113, 0.1);
}

.fleur-quiz-result.f-wrong {
  color: #e74c3c;
  border: 1px solid #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

.fleur-quiz-result.f-alert {
  color: #f1c40f;
  border: 1px solid #f1c40f;
  background: rgba(241, 196, 15, 0.1);
}

/* --- SECTION & ARRIÈRE-PLAN --- */
.village-quiz-section {
  background-color: #1a1613; /* Couleur terre/cendre sombre */
  color: #dfd5cd;
  padding: 3rem 1.5rem;
  font-family: 'Georgia', serif; /* Style littéraire / roman */
}

.village-quiz-container {
  max-width: 1200px;
  margin: 0 auto;
}

.village-quiz-header {
  text-align: center;
  margin-bottom: 3rem;
}

.village-quiz-title {
  font-size: 2.4rem;
  color: #d98345; /* Orange brûlé / Ambiance automnale et mystérieuse */
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.village-quiz-intro {
  color: #a0938a;
  font-size: 1.05rem;
  font-style: italic;
}

/* --- STRUCTURE EN GRILLE --- */
.village-quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* --- LES BLOCS QUESTIONS --- */
.village-quiz-block {
  background: #241e1a;
  border: 2px solid #3a312a;
  border-radius: 4px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.village-quiz-block:hover {
  border-color: #d98345;
  box-shadow: 0 4px 20px rgba(217, 131, 69, 0.15);
}

.village-q-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  font-weight: bold;
  color: #473c34;
}

.village-quiz-block h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #f3eae1;
  padding-right: 2rem;
}

.village-question-text {
  color: #c5b9b0;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* --- BOUTONS RADIO / SÉLECTION --- */
.village-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.village-options label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.6rem;
  background: #2d2520;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.village-options label:hover {
  background: #382e28;
  border-color: #615146;
}

.village-options input[type="radio"] {
  accent-color: #d98345;
  cursor: pointer;
}

/* --- BOUTONS DE VALIDATION --- */
.village-btn-quiz {
  background-color: #d98345;
  color: #1a1613;
  border: none;
  padding: 0.8rem 1rem;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.village-btn-quiz:hover {
  background-color: #bf6f33;
}

/* --- RÉSULTATS --- */
.village-quiz-result {
  margin-top: 1.2rem;
  padding: 0.6rem;
  border-radius: 2px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 24px;
}

.village-quiz-result.v-correct {
  background-color: rgba(46, 117, 89, 0.15);
  color: #52b788;
  border: 1px solid #469d75;
}

.village-quiz-result.v-wrong {
  background-color: rgba(186, 45, 45, 0.15);
  color: #ff6b6b;
  border: 1px solid #ba2d2d;
}

.village-quiz-result.v-alert {
  background-color: rgba(217, 131, 69, 0.15);
  color: #f4a261;
  border: 1px solid #d98345;
}