/* ============================================================
   SYSTÈME XP + NIVEAUX
   ============================================================ */
.xp-bar {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(255,255,255,.15);
  border-radius: var(--r-md, 12px);
  backdrop-filter: blur(4px);
}
.xp-bar-inner {
  height: 10px;
  background: rgba(255,255,255,.25);
  border-radius: 50px;
  overflow: hidden;
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #e9c46a, #e76f51);
  border-radius: 50px;
  transition: width .6s ease;
}
.xp-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: .82rem;
  color: rgba(255,255,255,.9);
  font-weight: 700;
}
.xp-level-badge {
  background: rgba(255,255,255,.2);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: .78rem;
}
.xp-points {
  font-family: var(--font-title, 'Baloo 2', sans-serif);
  font-size: .9rem;
}

/* ============================================================
   BOUTON TTS (Text-to-Speech)
   ============================================================ */
.tts-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin-bottom: 14px;
  background: var(--c-teal, #1e6f8c);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-title, 'Baloo 2', sans-serif);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: all .15s;
}
.tts-btn:hover {
  background: var(--c-teal-dark, #155263);
  transform: translateY(-1px);
}
.tts-btn i {
  font-size: 1rem;
}

/* ============================================================
   CARTE RÉVISION (dashboard)
   ============================================================ */
#revision-card {
  margin-bottom: 20px;
}
#revision-card .mod-exam-card {
  border-color: var(--c-lilac, #b5a3e0);
  background: linear-gradient(135deg, #f3eeff 0%, #e8e0ff 100%);
}
#revision-card .mod-exam-card:hover {
  border-color: #8b6cc9;
}
