/* ============================================================
   VRAIFAUX.CSS — Styles spécifiques au jeu Vrai/Faux éclair
   ------------------------------------------------------------
   Ce fichier définit :
   - L'écran de démarrage (icône verte + bouton)
   - La carte de l'affirmation (fond vert clair)
   - Les boutons VRAI et FAUX très colorés
   - La correction détaillée en fin de partie

   Note : les classes de progression sont réutilisées de quiz.css.
   Il faut charger quiz.css sur cette page.

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

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

.vraifaux-start-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(22, 163, 74, .4);
  animation: bounceIn .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

.vraifaux-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; }
}

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

.vraifaux-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 DE L'AFFIRMATION (fond vert)
   ------------------------------------------------------------ */
.vf-affirmation {
  background: linear-gradient(160deg, #dcfce7, #f0fdf4);
  border: 2px solid #16a34a;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  animation: fadeUp .45s cubic-bezier(.4, 0, .2, 1) both;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.dark .vf-affirmation {
  background: linear-gradient(160deg, #052e16, #14532d);
  border-color: #22c55e;
}

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

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

/* ------------------------------------------------------------
   3. BOUTONS VRAI / FAUX (très colorés)
   ------------------------------------------------------------ */
.vf-boutons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.vf-btn {
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 900;
  padding: 1.75rem 1rem;
  border-radius: var(--radius);
  border: 3px solid;
  cursor: pointer;
  transition: all .2s cubic-bezier(.34, 1.56, .64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  outline: none;
}

.vf-btn .material-symbols-outlined {
  font-size: 2rem;
  font-variation-settings: 'FILL' 1;
}

/* --- Bouton VRAI --- */
.vf-btn.vrai {
  background: linear-gradient(135deg, #22c55e, #15803d);
  border-color: #166534;
  color: #fff;
  box-shadow: 0 8px 20px rgba(34, 197, 94, .4);
}

.vf-btn.vrai:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(34, 197, 94, .5);
}

/* --- Bouton FAUX --- */
.vf-btn.faux {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-color: #991b1b;
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 68, 68, .4);
}

.vf-btn.faux:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(239, 68, 68, .5);
}

.vf-btn:active:not(:disabled) {
  transform: scale(.96);
}

.vf-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
}

/* ------------------------------------------------------------
   4. FEEDBACK APRÈS RÉPONSE
   ------------------------------------------------------------ */
.vf-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  animation: fadeUp .3s ease both;
  margin-bottom: 1rem;
}

.vf-feedback.bon {
  background: #dcfce7;
  color: #15803d;
  border: 2px solid #22c55e;
}

body.dark .vf-feedback.bon {
  background: #052e16;
  color: #86efac;
}

.vf-feedback.mauvais {
  background: var(--danger-soft);
  color: var(--danger-dark);
  border: 2px solid var(--danger);
}

.vf-feedback .material-symbols-outlined {
  font-size: 1.35rem;
  flex-shrink: 0;
  font-variation-settings: 'FILL' 1;
}

.vf-feedback .explication {
  display: block;
  font-weight: 500;
  font-size: .88rem;
  margin-top: .35rem;
  opacity: .9;
}

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

.vraifaux-fin-medaille-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1rem;
  animation: bounceIn .6s cubic-bezier(.34, 1.56, .64, 1) both;
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 8px 24px rgba(22, 163, 74, .4);
}

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

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

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

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

.vraifaux-fin-titre {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .35rem;
  color: var(--text);
}

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

body.dark .vraifaux-fin-score {
  color: #86efac;
}

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

/* ------------------------------------------------------------
   6. CORRECTION DÉTAILLÉE (liste des erreurs)
   ------------------------------------------------------------ */
.vf-correction {
  text-align: left;
  margin: 1rem 0 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.vf-correction-ligne {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .85rem 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  border-left: 4px solid transparent;
}

.vf-correction-ligne.ok {
  border-left-color: #16a34a;
}

.vf-correction-ligne.ko {
  border-left-color: var(--danger);
}

.vf-correction-ligne .icone {
  font-size: 1.2rem;
  flex-shrink: 0;
  font-variation-settings: 'FILL' 1;
}

.vf-correction-ligne.ok .icone {
  color: #16a34a;
}

.vf-correction-ligne.ko .icone {
  color: var(--danger);
}

.vf-correction-contenu {
  flex: 1;
  min-width: 0;
}

.vf-correction-texte {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: .15rem;
}

.vf-correction-detail {
  font-size: .78rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.vf-correction-detail strong {
  color: var(--text);
}

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

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

/* ------------------------------------------------------------
   8. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 400px) {
  .vf-btn {
    font-size: 1.1rem;
    padding: 1.5rem .75rem;
  }

  .vf-btn .material-symbols-outlined {
    font-size: 1.7rem;
  }
}