/* ============================================================
   REFERENCE.CSS — Styles spécifiques au jeu Référence
   ------------------------------------------------------------
   Ce fichier définit :
   - L'écran de démarrage (avec icône violette)
   - La carte du verset (fond doré + tag violet)
   - La médaille de fin (variantes de couleur)
   - Les boutons de fin

   Note : les classes de progression, réponses et feedback
   sont définies dans quiz.css et réutilisées ici.

   Doit être chargé APRÈS base.css, composants.css et nav.css.
   ============================================================ */

/* ------------------------------------------------------------
   1. ÉCRAN DE DÉMARRAGE
   ------------------------------------------------------------ */
.reference-start {
  text-align: center;
  padding: 2rem 1rem;
}

.reference-start-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(124, 58, 237, .4);
  animation: bounceIn .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

.reference-start-icon .material-symbols-outlined {
  font-size: 2.75rem;
  font-variation-settings: 'FILL' 1;
}

@keyframes bounceIn {
  0%   { transform: scale(.3); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.reference-start h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
  color: var(--text);
}

.reference-start p {
  color: var(--text-soft);
  font-size: .95rem;
  margin-bottom: 1.75rem;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   2. CARTE DU VERSET À IDENTIFIER
   ------------------------------------------------------------ */
.reference-verset {
  background: linear-gradient(160deg, var(--gold-soft), var(--bg-soft));
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
  animation: fadeUp .5s ease both .1s;
}

.reference-verset-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.reference-verset-texte {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}

/* ------------------------------------------------------------
   3. MÉDAILLE DE FIN
   ------------------------------------------------------------ */
.reference-fin {
  text-align: center;
  padding: 1.5rem 0;
  animation: fadeUp .5s ease both;
}

.reference-fin-medaille-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-gold);
  animation: bounceIn .6s cubic-bezier(.34, 1.56, .64, 1) both;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.reference-fin-medaille-wrap .material-symbols-outlined {
  font-size: 3rem;
  font-variation-settings: 'FILL' 1;
}

/* Variantes de couleur selon la performance */
.reference-fin-medaille-wrap.argent {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  box-shadow: 0 12px 32px rgba(148, 163, 184, .4);
}

.reference-fin-medaille-wrap.bronze {
  background: linear-gradient(135deg, #d4a373, #a16207);
  box-shadow: 0 12px 32px rgba(162, 98, 7, .4);
}

.reference-fin-medaille-wrap.gris {
  background: linear-gradient(135deg, #64748b, #475569);
  box-shadow: 0 12px 32px rgba(100, 116, 139, .4);
}

/* ------------------------------------------------------------
   4. TEXTE DE FIN
   ------------------------------------------------------------ */
.reference-fin-titre {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .35rem;
  color: var(--text);
}

.reference-fin-score {
  font-size: 2.75rem;
  font-weight: 900;
  color: #7c3aed;
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: .35rem;
  font-variant-numeric: tabular-nums;
}

body.dark .reference-fin-score {
  color: #c4b5fd;
}

.reference-fin-detail {
  font-size: .92rem;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
  font-weight: 500;
}

/* ------------------------------------------------------------
   5. BOUTONS DE FIN
   ------------------------------------------------------------ */
.reference-fin-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 320px;
  margin: 0 auto;
}

.reference-fin-actions .btn {
  text-decoration: none;
}

/* ------------------------------------------------------------
   6. RÉUTILISATION DES CLASSES DU QUIZ
   ------------------------------------------------------------
   Les classes .quiz-progression, .quiz-progress-bar,
   .quiz-progress-fill, .quiz-reponses, .quiz-reponse
   et .quiz-feedback sont définies dans quiz.css.
   Elles sont utilisées ici pour garder une cohérence visuelle.
   ------------------------------------------------------------ */