/* ============================================================
   ACADÉMIE ISLAMIQUE — academie.css
   Parcours progressif Ma'rifat Allah
   Couleurs: #2D5F4F (primary) | #C9A661 (or) | #4A8B73 (light)
   ============================================================ */

/* ══════════════════════════════════════
   HERO ACADÉMIE
   ══════════════════════════════════════ */
.acad-hero {
  position: relative;
  text-align: center;
  padding: 60px 24px 48px;
  overflow: hidden;
}
.acad-hero-orb1 {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: 400px; height: 400px; top: -120px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(45,95,79,0.08) 0%, transparent 70%);
}
.acad-hero-orb2 {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: 200px; height: 200px; top: 30px; right: 5%;
  background: radial-gradient(circle, rgba(201,166,97,0.12) 0%, transparent 70%);
  animation: acad-float 7s ease-in-out infinite;
}
.acad-hero-orb3 {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: 150px; height: 150px; bottom: 0; left: 8%;
  background: radial-gradient(circle, rgba(74,139,115,0.1) 0%, transparent 70%);
  animation: acad-float 9s ease-in-out infinite reverse;
}
@keyframes acad-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.acad-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(45,95,79,0.07);
  border: 1.5px solid rgba(45,95,79,0.2);
  border-radius: 50px;
  font-size: 0.75rem; font-weight: 700; color: #2D5F4F;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.2rem; font-family: 'Outfit', sans-serif;
}
[data-theme="dark"] .acad-hero-eyebrow { color: #C9A661; border-color: rgba(201,166,97,0.25); background: rgba(201,166,97,0.07); }

.acad-hero-ar {
  font-family: 'Amiri', serif;
  font-size: clamp(18px, 3vw, 30px);
  color: #4A8B73; direction: rtl; margin-bottom: 6px;
}

.acad-hero-title {
  font-family: 'Amiri', serif;
  font-size: clamp(28px, 5.5vw, 52px);
  font-weight: 700; color: #1F2937;
  margin: 0 0 12px; line-height: 1.15;
}
.acad-hero-title .acad-accent {
  background: linear-gradient(135deg, #2D5F4F, #4A8B73);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .acad-hero-title { color: #e2e8f0; }

.acad-hero-desc {
  color: #6B7280; font-size: 1rem; max-width: 560px;
  margin: 0 auto 28px; line-height: 1.75;
  font-family: 'Outfit', sans-serif;
}

/* Stats rapides */
.acad-stats {
  display: flex; justify-content: center; gap: 2rem;
  flex-wrap: wrap; margin-bottom: 0;
}
.acad-stat {
  text-align: center;
}
.acad-stat-num {
  font-family: 'Amiri', serif;
  font-size: 2rem; font-weight: 700; color: #2D5F4F;
  line-height: 1;
}
[data-theme="dark"] .acad-stat-num { color: #C9A661; }
.acad-stat-lbl {
  font-size: 0.75rem; color: #9CA3AF;
  font-weight: 600; font-family: 'Outfit', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ══════════════════════════════════════
   BARRE DE PROGRESSION GLOBALE
   ══════════════════════════════════════ */
.acad-progress-bar-section {
  max-width: 800px; margin: 0 auto 48px;
  padding: 0 24px;
}
.acad-progress-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.acad-progress-title {
  font-size: 0.85rem; font-weight: 700; color: #374151;
  font-family: 'Outfit', sans-serif;
}
[data-theme="dark"] .acad-progress-title { color: #c8b88a; }
.acad-progress-pct {
  font-size: 0.85rem; font-weight: 800; color: #2D5F4F;
  font-family: 'Outfit', sans-serif;
}
[data-theme="dark"] .acad-progress-pct { color: #C9A661; }
.acad-progress-track {
  height: 10px;
  background: rgba(45,95,79,0.1);
  border-radius: 99px; overflow: hidden;
}
[data-theme="dark"] .acad-progress-track { background: rgba(201,166,97,0.1); }
.acad-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2D5F4F, #4A8B73, #C9A661);
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.acad-progress-steps {
  display: flex; justify-content: space-between;
  margin-top: 8px;
}
.acad-progress-step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(45,95,79,0.15);
  transition: all 0.3s;
}
.acad-progress-step-dot.done { background: #2D5F4F; }
.acad-progress-step-dot.current { background: #C9A661; transform: scale(1.4); }
[data-theme="dark"] .acad-progress-step-dot.done { background: #C9A661; }

/* ══════════════════════════════════════
   GRILLE DES MODULES (PARCOURS)
   ══════════════════════════════════════ */
.acad-parcours {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; gap: 20px;
}

/* Connexion entre modules (ligne verticale) */
.acad-connector {
  display: flex; justify-content: center; align-items: center;
  height: 32px; position: relative;
}
.acad-connector-line {
  width: 2px; height: 100%;
  background: linear-gradient(180deg, rgba(45,95,79,0.3), rgba(45,95,79,0.1));
}
.acad-connector-arrow {
  position: absolute;
  font-size: 12px; color: #4A8B73;
  animation: acad-bounce-down 1.5s ease-in-out infinite;
}
@keyframes acad-bounce-down {
  0%,100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* Carte module */
.acad-module-card {
  background: white;
  border-radius: 24px;
  border: 2px solid rgba(45,95,79,0.1);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(45,95,79,0.07);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
[data-theme="dark"] .acad-module-card { background: #0e1c14; border-color: rgba(201,166,97,0.1); }

.acad-module-card.locked {
  opacity: 0.65;
  filter: grayscale(0.3);
}
.acad-module-card.unlocked:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(45,95,79,0.14);
  border-color: rgba(45,95,79,0.25);
}
.acad-module-card.completed {
  border-color: rgba(45,95,79,0.3);
}

/* Barre couleur top */
.acad-module-topbar {
  height: 4px;
}

/* Layout intérieur */
.acad-module-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  padding: 24px 28px;
  align-items: center;
}
@media (max-width: 700px) {
  .acad-module-inner { grid-template-columns: auto 1fr; gap: 14px; }
  .acad-module-right { grid-column: 1 / -1; }
}

/* Gauche — numéro + icône */
.acad-module-left {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.acad-module-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  font-family: 'Outfit', sans-serif;
  border: 2px solid;
}
.acad-module-emoji-big { font-size: 44px; }

/* Centre — texte */
.acad-module-center { flex: 1; }
.acad-module-category {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 5px;
  font-family: 'Outfit', sans-serif;
}
.acad-module-title-ar {
  font-family: 'Amiri', serif;
  font-size: 20px; direction: rtl; margin-bottom: 3px;
}
.acad-module-title-fr {
  font-family: 'Amiri', serif;
  font-size: 22px; font-weight: 700; color: #1F2937;
  margin: 0 0 6px;
}
[data-theme="dark"] .acad-module-title-fr { color: #e2e8f0; }
.acad-module-desc {
  font-size: 13.5px; color: #6B7280; line-height: 1.6;
  margin-bottom: 12px; font-family: 'Outfit', sans-serif;
}
.acad-module-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.acad-module-chip {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px; font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border: 1.5px solid;
}

/* Droite — statut + bouton */
.acad-module-right {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px; min-width: 120px;
}

.acad-module-status {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.acad-status-icon { font-size: 28px; }
.acad-status-text {
  font-size: 11px; font-weight: 700; font-family: 'Outfit', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Mini progress bar par module */
.acad-module-mini-progress {
  width: 100%;
}
.acad-mini-prog-header {
  display: flex; justify-content: space-between;
  font-size: 10px; color: #9CA3AF; margin-bottom: 4px;
  font-family: 'Outfit', sans-serif; font-weight: 600;
}
.acad-mini-prog-track {
  height: 5px; background: rgba(45,95,79,0.1);
  border-radius: 99px; overflow: hidden;
}
[data-theme="dark"] .acad-mini-prog-track { background: rgba(201,166,97,0.1); }
.acad-mini-prog-fill {
  height: 100%; border-radius: 99px;
  transition: width 0.6s ease;
}

/* Bouton action */
.acad-module-btn {
  width: 100%; padding: 10px 16px;
  border-radius: 50px; border: none;
  font-size: 12.5px; font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.acad-module-btn.btn-start {
  background: linear-gradient(135deg, #2D5F4F, #4A8B73);
  color: white;
  box-shadow: 0 4px 14px rgba(45,95,79,0.3);
}
.acad-module-btn.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(45,95,79,0.4);
}
.acad-module-btn.btn-continue {
  background: linear-gradient(135deg, #C9A661, #E8D5A3);
  color: #78350F;
  box-shadow: 0 4px 14px rgba(201,166,97,0.3);
}
.acad-module-btn.btn-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(201,166,97,0.4);
}
.acad-module-btn.btn-completed {
  background: rgba(45,95,79,0.08);
  color: #2D5F4F; border: 2px solid rgba(45,95,79,0.2);
}
.acad-module-btn.btn-locked {
  background: rgba(156,163,175,0.1);
  color: #9CA3AF; cursor: not-allowed;
  border: 2px solid rgba(156,163,175,0.2);
}
[data-theme="dark"] .acad-module-btn.btn-completed { background: rgba(201,166,97,0.08); color: #C9A661; border-color: rgba(201,166,97,0.2); }

/* Badge "Complété" */
.acad-completed-badge {
  position: absolute; top: 16px; right: 16px;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #2D5F4F, #4A8B73);
  color: white; border-radius: 50px;
  font-size: 11px; font-weight: 700; font-family: 'Outfit', sans-serif;
}

/* Badge "Verrouillé" */
.acad-locked-badge {
  position: absolute; top: 16px; right: 16px;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  background: rgba(156,163,175,0.15);
  color: #9CA3AF; border-radius: 50px;
  border: 1.5px solid rgba(156,163,175,0.25);
  font-size: 11px; font-weight: 700; font-family: 'Outfit', sans-serif;
}

/* ══════════════════════════════════════
   OVERLAY CONTENU MODULE
   ══════════════════════════════════════ */
.acad-content-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px 16px; overflow-y: auto;
  backdrop-filter: blur(8px);
  animation: acad-fade-in 0.2s ease;
}
@keyframes acad-fade-in { from { opacity: 0; } to { opacity: 1; } }

.acad-content-modal {
  background: white;
  border-radius: 28px; width: 100%; max-width: 860px;
  position: relative; overflow: hidden;
  animation: acad-slide-up 0.35s cubic-bezier(0.34,1.4,0.64,1);
  margin-bottom: 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.25);
}
@keyframes acad-slide-up {
  from { transform: translateY(60px) scale(0.92); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
[data-theme="dark"] .acad-content-modal { background: #0a1a10; }

.acad-content-topbar { height: 5px; }

/* Header du contenu */
.acad-content-head {
  padding: 30px 32px 22px;
  position: relative;
}
.acad-content-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; background: rgba(0,0,0,0.05);
  border: none; border-radius: 50%; color: #6B7280;
  cursor: pointer; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 5;
}
.acad-content-close:hover { background: #ef4444; color: white; transform: rotate(90deg) scale(1.1); }

.acad-content-head-inner {
  display: flex; gap: 16px; align-items: center;
}
.acad-content-emoji { font-size: 52px; }
.acad-content-head-text {}
.acad-content-module-num {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}
.acad-content-title-ar { font-family: 'Amiri', serif; font-size: 24px; direction: rtl; margin-bottom: 3px; }
.acad-content-title-fr { font-family: 'Amiri', serif; font-size: 26px; font-weight: 700; color: #1F2937; margin: 0; }
[data-theme="dark"] .acad-content-title-fr { color: #e2e8f0; }

/* Tabs contenu */
.acad-content-tabs {
  display: flex; border-bottom: 2px solid rgba(45,95,79,0.08);
  padding: 0 32px; overflow-x: auto; scrollbar-width: none;
}
.acad-content-tabs::-webkit-scrollbar { display: none; }
[data-theme="dark"] .acad-content-tabs { border-bottom-color: rgba(201,166,97,0.1); }

.acad-ctab {
  padding: 13px 16px; background: none; border: none;
  border-bottom: 3px solid transparent;
  color: #9CA3AF; cursor: pointer;
  font-size: 12.5px; font-weight: 700;
  white-space: nowrap; font-family: 'Outfit', sans-serif;
  transition: all 0.2s; margin-bottom: -2px;
}
.acad-ctab:hover { color: #2D5F4F; }
.acad-ctab.actif { color: #2D5F4F; border-bottom-color: #2D5F4F; }
[data-theme="dark"] .acad-ctab.actif { color: #C9A661; border-bottom-color: #C9A661; }
[data-theme="dark"] .acad-ctab:hover { color: #C9A661; }

/* Corps contenu */
.acad-content-body { padding: 28px 32px; }

/* Fiches / cartes de contenu */
.acad-fiche-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.acad-fiche-card {
  background: rgba(45,95,79,0.03);
  border: 1.5px solid rgba(45,95,79,0.1);
  border-radius: 16px; padding: 18px;
  transition: all 0.25s; cursor: default;
}
.acad-fiche-card:hover {
  background: rgba(45,95,79,0.07);
  border-color: rgba(45,95,79,0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45,95,79,0.1);
}
[data-theme="dark"] .acad-fiche-card { background: rgba(201,166,97,0.04); border-color: rgba(201,166,97,0.1); }

.acad-fiche-emoji { font-size: 32px; margin-bottom: 10px; display: block; }
.acad-fiche-ar { font-family: 'Amiri', serif; font-size: 18px; direction: rtl; margin-bottom: 4px; }
.acad-fiche-nom { font-size: 15px; font-weight: 800; color: #1F2937; margin-bottom: 4px; font-family: 'Outfit', sans-serif; }
[data-theme="dark"] .acad-fiche-nom { color: #e2e8f0; }
.acad-fiche-titre { font-size: 11.5px; color: #6B7280; margin-bottom: 10px; line-height: 1.4; }
.acad-fiche-desc { font-size: 13px; color: #4B5563; line-height: 1.7; }
[data-theme="dark"] .acad-fiche-desc { color: #b0a880; }

/* Timeline (batailles, califes) */
.acad-timeline { position: relative; padding-left: 24px; }
.acad-timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, #2D5F4F, #C9A661);
  border-radius: 2px;
}
.acad-tl-item {
  position: relative; margin-bottom: 28px; padding-left: 20px;
}
.acad-tl-dot {
  position: absolute; left: -28px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--tc, #2D5F4F);
  background: var(--tc, #2D5F4F);
}
.acad-tl-year {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}
.acad-tl-title { font-size: 16px; font-weight: 700; color: #1F2937; margin-bottom: 6px; font-family: 'Amiri', serif; }
[data-theme="dark"] .acad-tl-title { color: #e2e8f0; }
.acad-tl-desc { font-size: 13.5px; color: #4B5563; line-height: 1.7; }
[data-theme="dark"] .acad-tl-desc { color: #b0a880; }

/* Arbre généalogique */
.acad-tree-container { overflow-x: auto; padding-bottom: 12px; }
.acad-tree {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  min-width: 600px; padding: 20px 10px;
}
.acad-tree-level { display: flex; justify-content: center; gap: 16px; position: relative; }
.acad-tree-node {
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.acad-tree-card {
  padding: 10px 14px; border-radius: 12px; text-align: center;
  border: 2px solid; min-width: 90px;
  transition: all 0.2s; cursor: default;
  background: white; box-shadow: 0 2px 10px rgba(45,95,79,0.08);
}
[data-theme="dark"] .acad-tree-card { background: #1a2a22; }
.acad-tree-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(45,95,79,0.15); }
.acad-tree-emoji { font-size: 22px; display: block; margin-bottom: 4px; }
.acad-tree-name { font-size: 12px; font-weight: 700; color: #1F2937; font-family: 'Outfit', sans-serif; }
[data-theme="dark"] .acad-tree-name { color: #e2e8f0; }
.acad-tree-ar { font-family: 'Amiri', serif; font-size: 13px; direction: rtl; }
.acad-tree-branch-down {
  width: 2px; height: 20px;
  background: rgba(45,95,79,0.3);
  margin: 0 auto;
}
.acad-tree-branch-h {
  height: 2px; background: rgba(45,95,79,0.3);
  flex: 1; margin-top: 10px;
}

/* ══════════════════════════════════════
   QUIZ
   ══════════════════════════════════════ */
.acad-quiz-section { padding: 28px 32px; }

.acad-quiz-header { text-align: center; margin-bottom: 28px; }
.acad-quiz-module-name {
  font-family: 'Amiri', serif; font-size: 22px; color: #2D5F4F; margin-bottom: 6px;
}
[data-theme="dark"] .acad-quiz-module-name { color: #C9A661; }
.acad-quiz-title { font-size: 18px; font-weight: 800; color: #1F2937; margin-bottom: 8px; font-family: 'Outfit', sans-serif; }
[data-theme="dark"] .acad-quiz-title { color: #e2e8f0; }
.acad-quiz-subtitle { font-size: 13px; color: #6B7280; }

/* Progression quiz */
.acad-quiz-progress {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.acad-quiz-prog-text { font-size: 12px; font-weight: 700; color: #6B7280; white-space: nowrap; font-family: 'Outfit', sans-serif; }
.acad-quiz-prog-track {
  flex: 1; height: 6px; background: rgba(45,95,79,0.1); border-radius: 99px; overflow: hidden;
}
.acad-quiz-prog-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #2D5F4F, #4A8B73);
  transition: width 0.4s ease;
}
.acad-quiz-score-live {
  font-size: 12px; font-weight: 700; color: #2D5F4F; white-space: nowrap; font-family: 'Outfit', sans-serif;
}
[data-theme="dark"] .acad-quiz-score-live { color: #C9A661; }

/* Question */
.acad-question-card {
  background: rgba(45,95,79,0.03);
  border: 2px solid rgba(45,95,79,0.1);
  border-radius: 20px; padding: 24px;
  margin-bottom: 20px;
  animation: acad-q-in 0.3s ease;
}
@keyframes acad-q-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-theme="dark"] .acad-question-card { background: rgba(201,166,97,0.04); border-color: rgba(201,166,97,0.1); }

.acad-question-num {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #9CA3AF; margin-bottom: 10px;
  font-family: 'Outfit', sans-serif;
}
.acad-question-text {
  font-size: 17px; font-weight: 700; color: #1F2937;
  line-height: 1.5; margin-bottom: 0; font-family: 'Amiri', serif;
}
[data-theme="dark"] .acad-question-text { color: #e2e8f0; }

/* Options */
.acad-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.acad-option {
  padding: 14px 18px;
  background: white; border: 2px solid rgba(45,95,79,0.12);
  border-radius: 14px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #374151;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s; text-align: left; width: 100%;
  display: flex; align-items: center; gap: 12px;
}
[data-theme="dark"] .acad-option { background: #1a2a22; border-color: rgba(201,166,97,0.1); color: #c8b88a; }
.acad-option:hover:not(:disabled) {
  border-color: #2D5F4F; background: rgba(45,95,79,0.05);
  transform: translateX(4px);
}
.acad-option.correct {
  background: rgba(45,95,79,0.08); border-color: #2D5F4F; color: #2D5F4F;
}
.acad-option.wrong {
  background: rgba(239,68,68,0.06); border-color: #ef4444; color: #dc2626;
}
.acad-option-letter {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(45,95,79,0.08); color: #2D5F4F;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
  transition: all 0.2s;
}
.acad-option.correct .acad-option-letter { background: #2D5F4F; color: white; }
.acad-option.wrong .acad-option-letter { background: #ef4444; color: white; }

/* Feedback */
.acad-feedback {
  padding: 14px 18px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.6;
  margin-bottom: 16px; font-family: 'Outfit', sans-serif;
  animation: acad-q-in 0.2s ease;
}
.acad-feedback.correct {
  background: rgba(45,95,79,0.07); border-left: 4px solid #2D5F4F;
  color: #1a4a30; border-radius: 0 14px 14px 0;
}
.acad-feedback.wrong {
  background: rgba(239,68,68,0.05); border-left: 4px solid #ef4444;
  color: #991b1b; border-radius: 0 14px 14px 0;
}
[data-theme="dark"] .acad-feedback.correct { color: #a7f3d0; }
[data-theme="dark"] .acad-feedback.wrong { color: #fca5a5; }

.acad-quiz-next-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #2D5F4F, #4A8B73);
  color: white; border: none; border-radius: 14px;
  font-size: 15px; font-weight: 700;
  font-family: 'Outfit', sans-serif; cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(45,95,79,0.3);
}
.acad-quiz-next-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(45,95,79,0.4); }

/* Résultats quiz */
.acad-quiz-results {
  text-align: center; padding: 20px;
  animation: acad-q-in 0.4s ease;
}
.acad-results-icon { font-size: 64px; margin-bottom: 12px; display: block; }
.acad-results-title {
  font-family: 'Amiri', serif; font-size: 28px; color: #1F2937; margin-bottom: 8px;
}
[data-theme="dark"] .acad-results-title { color: #e2e8f0; }
.acad-results-score-big {
  font-family: 'Amiri', serif;
  font-size: 72px; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, #2D5F4F, #C9A661);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 4px;
}
.acad-results-score-sub { font-size: 13px; color: #9CA3AF; margin-bottom: 16px; font-family: 'Outfit', sans-serif; }
.acad-results-msg { font-size: 15px; color: #4B5563; line-height: 1.6; margin-bottom: 24px; font-family: 'Outfit', sans-serif; }
[data-theme="dark"] .acad-results-msg { color: #b0a880; }

.acad-results-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 700; margin-bottom: 28px;
  font-family: 'Outfit', sans-serif;
}
.acad-results-badge.success {
  background: linear-gradient(135deg, #2D5F4F, #4A8B73);
  color: white; box-shadow: 0 4px 16px rgba(45,95,79,0.3);
}
.acad-results-badge.fail {
  background: rgba(239,68,68,0.08); color: #dc2626;
  border: 2px solid rgba(239,68,68,0.2);
}

.acad-results-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.acad-btn-retry {
  padding: 12px 24px; border-radius: 50px;
  background: rgba(45,95,79,0.08); border: 2px solid rgba(45,95,79,0.2);
  color: #2D5F4F; font-size: 13px; font-weight: 700;
  font-family: 'Outfit', sans-serif; cursor: pointer; transition: all 0.25s;
}
.acad-btn-retry:hover { background: #2D5F4F; color: white; border-color: #2D5F4F; }
.acad-btn-unlock {
  padding: 12px 28px; border-radius: 50px;
  background: linear-gradient(135deg, #C9A661, #E8D5A3);
  border: none; color: #78350F;
  font-size: 13px; font-weight: 700;
  font-family: 'Outfit', sans-serif; cursor: pointer;
  box-shadow: 0 4px 14px rgba(201,166,97,0.3); transition: all 0.25s;
}
.acad-btn-unlock:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(201,166,97,0.4); }

/* ══════════════════════════════════════
   BADGES SECTION
   ══════════════════════════════════════ */
.acad-badges-section {
  max-width: 1200px; margin: 48px auto 0; padding: 0 20px;
}
.acad-section-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.acad-section-head-line { flex: 1; height: 1px; background: rgba(45,95,79,0.12); }
[data-theme="dark"] .acad-section-head-line { background: rgba(201,166,97,0.1); }
.acad-section-head-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #9CA3AF; white-space: nowrap;
  font-family: 'Outfit', sans-serif;
}

.acad-badges-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.acad-badge-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 14px; border-radius: 16px; min-width: 90px;
  transition: all 0.25s;
}
.acad-badge-item.earned {
  background: linear-gradient(135deg, rgba(201,166,97,0.12), rgba(201,166,97,0.04));
  border: 2px solid rgba(201,166,97,0.35);
}
.acad-badge-item.earned:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(201,166,97,0.2); }
.acad-badge-item.locked-badge {
  background: rgba(156,163,175,0.06);
  border: 2px solid rgba(156,163,175,0.15);
  opacity: 0.6; filter: grayscale(1);
}
.acad-badge-emoji { font-size: 32px; }
.acad-badge-name { font-size: 11px; font-weight: 700; color: #374151; text-align: center; font-family: 'Outfit', sans-serif; }
[data-theme="dark"] .acad-badge-name { color: #c8b88a; }
.acad-badge-desc { font-size: 10px; color: #9CA3AF; text-align: center; font-family: 'Outfit', sans-serif; }

/* Responsive */
@media (max-width: 640px) {
  .acad-module-inner { padding: 18px 16px; }
  .acad-content-head { padding: 22px 18px 16px; }
  .acad-content-body, .acad-quiz-section { padding: 18px 18px; }
  .acad-content-tabs { padding: 0 18px; }
  .acad-fiche-grid { grid-template-columns: 1fr; }
  .acad-results-score-big { font-size: 56px; }
}