/* ============================================================
   DESIGN SYSTEM — GinovSchool ("Lumière d'Afrique")
   Direction: ivoire chaud + indigo profond + or solaire + teal
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Poppins:wght@400;500;600;700&family=STIX+Two+Text:ital@0;1&display=swap');

:root {
  /* Canvas (Fonds) */
  --canvas:     #FAFAF7;
  --canvas-warm:#F5F3EE;
  --surface:    #FFFFFF;
  
  /* Bordures */
  --line:       rgba(60,45,20,0.10);

  /* Primaire — indigo dense */
  --p:          #3D3A8C;
  --p-mid:      #5552B0;
  --p-light:    #7B78D4;

  /* Accent — or solaire & Teal */
  --gold:       #E8A020;
  --gold-light: #F5C050;
  --teal:       #0C9E8A;
  --teal-light: #12C4AD;

  /* Texte */
  --t1:   #1A1710;
  --t2:   #4A4535;
  --t3:   #8C856E;

  /* Typo */
  --font-body: 'Nunito', sans-serif;
  --font-ui:   'Poppins', sans-serif;

  /* Radius (Arrondis) */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-full:9999px;

  /* Shadows (Ombres) */
  --sh-sm: 0 2px 12px rgba(30,20,5,0.09);
  --sh-md: 0 6px 28px rgba(30,20,5,0.11);
}

/* ============================================================
   BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--t1);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   PAGE D'ACCUEIL (HERO)
============================================================ */
.hero {
  position: relative;
  background: var(--p);
  overflow: hidden;
  padding: 72px 28px 88px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 24px);
  pointer-events: none;
}
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(90px); }
.orb-gold { width: 520px; height: 520px; background: rgba(232,160,32,0.22); top: -120px; right: -80px; }
.orb-teal { width: 380px; height: 380px; background: rgba(12,158,138,0.18); bottom: -100px; left: 10%; }
.hero-inner { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 14px; border-radius: var(--r-full);
  margin-bottom: 20px;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }
.hero-title {
  font-family: var(--font-body); font-size: clamp(32px, 8.5vw, 44px);
  font-weight: 900; color: #fff; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold-light), var(--teal-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 15px; color: rgba(255,255,255,0.7);
  line-height: 1.65; margin-bottom: 32px;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #3D2800;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  padding: 16px 32px; border-radius: var(--r-full);
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 8px 32px rgba(232,160,32,0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(232,160,32,0.3); }

/* ============================================================
   FORMULAIRES & AUTHENTIFICATION (Connexion & Inscription)
============================================================ */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background-color: var(--canvas-warm);
  position: relative;
  overflow: hidden;
}

/* WATERMARK MATIÈRES & FORMULES ARRIÈRE-PLAN */
.auth-bg-watermark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  user-select: none;
}

.watermark-item {
  position: absolute;
  font-family: var(--font-ui), sans-serif;
  font-weight: 700;
  color: #94A3B8;
  opacity: 0.10;
  white-space: nowrap;
  letter-spacing: 0.5px;
  animation: watermarkFloat 8s ease-in-out infinite alternate;
}

@media (min-width: 992px) {
  .watermark-item {
    font-size: 22px !important;
    opacity: 0.12;
  }
}

@keyframes watermarkFloat {
  0% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  100% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

.auth-card {
  background: var(--surface);
  width: 100%;
  max-width: 400px;
  border-radius: var(--r-lg);
  padding: 40px 30px;
  box-shadow: var(--sh-md);
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-card h2 {
  font-family: var(--font-ui);
  color: var(--p);
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 24px;
}

.auth-card p {
  color: var(--t2);
  font-size: 14px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--t1);
  background: var(--canvas);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(12, 158, 138, 0.1);
}

.btn-full {
  width: 100%;
  display: block;
  text-align: center;
}

.auth-footer {
  margin-top: 24px;
  font-size: 14px;
  color: var(--t2);
}

.auth-footer a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer a:hover {
  text-decoration: underline;
  color: var(--teal-light);
}

/* ============================================================
   ALERTES & FEEDBACKS (Messages d'erreur, succès...)
============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  animation: slideDown 0.3s ease-out; /* Petite animation d'apparition premium */
}

.alert-error {
  background-color: rgba(220, 38, 38, 0.08); /* Fond rouge très léger */
  color: #DC2626; /* Rouge vif pour le texte */
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.alert-success {
  background-color: rgba(12, 158, 138, 0.08); /* Fond teal (turquoise) très léger */
  color: var(--teal);
  border: 1px solid rgba(12, 158, 138, 0.2);
}

/* L'animation fluide */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LE DOJO (TABLEAU DE BORD MODERNE)
============================================================ */
body.dojo-body {
  background-color: var(--canvas-warm);
  padding-bottom: 80px; /* Espace pour la barre de navigation basse */
}

/* Navbar Haut */
.navbar {
    background: var(--surface);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--sh-sm);
    position: sticky; 
    top: 0; 
    z-index: 1000;
}
.navbar-brand { 
  font-family: var(--font-ui); font-weight: 800; 
  color: var(--p); font-size: 20px; text-decoration: none; 
}
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 700; font-size: 16px;
  box-shadow: 0 0 0 4px rgba(12, 158, 138, 0.15);
}

/* Conteneur */
.dojo-container { 
  max-width: 900px; margin: 24px auto; padding: 0 20px; 
}

/* Carte de Bienvenue & XP */
.welcome-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  margin-bottom: 30px;
  border: 1px solid var(--line);
}
.welcome-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px;
}
.welcome-section h1 { 
  font-family: var(--font-body); font-weight: 900; 
  color: var(--t1); font-size: 24px; margin-bottom: 4px;
}
.welcome-section p { color: var(--t2); font-size: 14px; }

.league-badge {
  background: rgba(232,160,32,0.1); color: var(--gold);
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: var(--r-full);
}

.xp-bar-container {
  background: var(--canvas);
  height: 12px; border-radius: var(--r-full);
  position: relative; overflow: hidden;
}
.xp-bar-fill {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  height: 100%; width: 35%; /* À dynamiser en PHP plus tard */
  border-radius: var(--r-full);
}
.xp-label {
  font-size: 11px; color: var(--t3); font-family: var(--font-ui);
  text-align: right; margin-top: 6px; font-weight: 600;
}

/* Grille de Matières */
.section-title {
  font-family: var(--font-ui); font-weight: 700; color: var(--p);
  font-size: 16px; margin-bottom: 16px; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.premium-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px 15px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 155px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Effet de survol : la carte se soulève et l'ombre grandit */
.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}

/* Cercle autour de l'icône */
.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.icon-inner {
    font-size: 30px;
}

/* Nom de la matière */
.subject-name-premium {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--p);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    line-height: 1.25;
}

/* Petit indicateur de statut ou bouton fléché */
.subject-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subject-card { 
  background: var(--surface); padding: 20px; 
  border-radius: var(--r-md); box-shadow: var(--sh-sm); 
  text-decoration: none; border: 1.5px solid var(--line);
  transition: all 0.2s ease-in-out;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.subject-card:hover { 
  transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--sh-md);
}
.subject-icon { font-size: 32px; margin-bottom: 12px; }
.subject-name { 
  font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--t1);
}

/* BARRE DE NAVIGATION BASSE (Mobile) */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  height: 68px; display: flex;
  justify-content: space-around; align-items: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.05);
  border-top: 1px solid var(--line);
  z-index: 1000;
}
.quiz-footer {
    /* On remonte le footer pour laisser de la place au menu bottom-nav */
    bottom: 68px !important; 
}
.nav-item {
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center;
  color: var(--t3); transition: color 0.2s;
}
.nav-icon { font-size: 20px; margin-bottom: 4px; }
.nav-label { font-family: var(--font-ui); font-size: 10px; font-weight: 600; text-transform: uppercase; }

.nav-item.active { color: var(--teal); }
.nav-item.active .nav-label { font-weight: 700; }

/************** Parcours de Chapitres *********************/
.chapter-path {
  position: relative;
  padding-left: 40px; /* Espace pour la ligne */
  margin-top: 20px;
}
/* Nouveau style pour le titre du chapitre sous la barre de navigation */
.hub-header-info {
    background: var(--surface);
    padding: 15px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* La ligne verticale */
.chapter-path::before {
  content: '';
  position: absolute;
  left: 15px; top: 0; bottom: 0;
  width: 3px;
  background: var(--line);
  border-radius: var(--r-full);
}

.chapter-step {
  position: relative;
  margin-bottom: 30px;
}

/* Le point sur la ligne */
.step-dot {
  position: absolute;
  left: -33px; top: 15px;
  width: 18px; height: 18px;
  background: var(--surface);
  border: 3px solid var(--teal);
  border-radius: 50%;
  z-index: 2;
}

.chapter-card {
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  text-decoration: none;
  display: block;
  transition: all 0.2s;
}

.chapter-card:hover {
  border-color: var(--teal);
  transform: translateX(5px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--t3);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}


/* HUB DE CHAPITRE (ONGLETS) */
.hub-nav {
    display: flex;
    justify-content: space-between;
    background: var(--surface);
    padding: 10px 5px;
    margin-bottom: 20px;
    overflow-x: auto; /* Pour le scroll mobile si trop d'onglets */
    white-space: nowrap;
}

.hub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    color: var(--t3);
    text-decoration: none;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s;
}

.hub-item.active {
    color: var(--p);
    background: rgba(61, 58, 140, 0.05);
    border-radius: var(--r-md);
}

.hub-item i { font-size: 18px; }
.hub-item span { font-size: 11px; font-weight: 700; text-transform: uppercase; }

/* La barre de progression grise sous le menu */
.hub-progress-track {
    width: 100%; height: 4px;
    background: #E2E8F0;
    border-radius: var(--r-full);
    margin-bottom: 30px;
    position: relative;
}

.hub-content-area {
    animation: fadeIn 0.4s ease-out;
}

.btn-download {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; background: var(--canvas);
    border: 1.5px solid var(--line); border-radius: var(--r-sm);
    color: var(--t2); font-size: 12px; font-weight: 600;
    text-decoration: none; margin-top: 20px;
}

/* ============================================================
   INTERFACE QUIZ (BOUTONS DE RÉPONSE)
============================================================ */
.option-btn {
    display: block;         /* Force le bouton à prendre sa propre ligne */
    width: 100%;            /* Prend toute la largeur disponible */
    padding: 16px 20px;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 12px;    /* Espace entre les boutons */
    text-align: left;       /* Aligne le texte à gauche */
    font-family: var(--font-body);
    font-size: 15px; 
    font-weight: 600; 
    color: var(--t1);
    cursor: pointer; 
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: var(--teal);
    background: rgba(12, 158, 138, 0.05);
}

/* ============================================================
   INTERFACE QUIZ (DRAG & DROP)
============================================================ */
.sortable-list { list-style: none; padding: 0; margin: 0; }

.sortable-item {
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 15px;
    font-family: var(--font-body); font-weight: 600; color: var(--t1);
    cursor: grab; /* Icône de la main */
    transition: box-shadow 0.2s, border-color 0.2s;
}

.sortable-item:active { cursor: grabbing; }

/* L'icône pour attraper */
.drag-handle { color: var(--t3); font-size: 18px; }

/* L'ombre de l'élément quand on le soulève */
.sortable-ghost { opacity: 0.4; background: var(--canvas-warm); }
.sortable-drag { box-shadow: var(--sh-md); border-color: var(--teal); }

/* ============================================================
   INTERFACE QUIZ (TEXTE À TROUS)
============================================================ */
.blank-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--canvas);
    border: 2px dashed var(--line);
    border-radius: var(--r-sm);
    padding: 4px 30px 4px 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--teal);
    cursor: pointer;
    outline: none;
    text-align: center;
    display: inline-block;
    margin: 0 5px;
    /* Petite flèche personnalisée pour le menu déroulant */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23cbd5e1" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 4px center;
    transition: all 0.2s;
}

.blank-select:focus {
    border-color: var(--teal);
    border-style: solid;
}

/* ============================================================
   MODALE DE VICTOIRE (POP-UP)
============================================================ */
.success-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.success-modal {
    background: var(--surface); width: 90%; max-width: 350px;
    border-radius: var(--r-lg); padding: 30px 20px;
    text-align: center; box-shadow: var(--sh-lg);
    transform: translateY(20px); 
    animation: slideUpModal 0.4s ease forwards;
}

@keyframes slideUpModal { to { transform: translateY(0); } }

.modal-icon { 
    font-size: 50px; margin-bottom: 15px; display: inline-block; 
    animation: bounce 1s ease infinite; 
}

.btn-outline {
    display: block; width: 100%; padding: 14px; margin-top: 12px;
    border: 2px solid var(--p); color: var(--p); border-radius: var(--r-md);
    font-size: 15px; font-weight: 700; text-decoration: none; 
    cursor: pointer; background: transparent; transition: 0.2s;
}

.btn-outline:hover { background: rgba(61, 58, 140, 0.05); }

/* ============================================================
   INTERFACE FLASHCARDS (EFFET FLIP 3D)
============================================================ */
.flashcard-container {
    perspective: 1000px; /* C'est ce qui crée l'effet de profondeur 3D */
    margin-bottom: 20px;
    width: 100%;
    height: 240px; /* Hauteur de la carte */
}

.flashcard {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1); /* Animation fluide */
    transform-style: preserve-3d;
    cursor: pointer;
}

/* La classe magique qu'on ajoutera en JS pour la retourner */
.flashcard.is-flipped {
    transform: rotateY(180deg);
}

.flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Cache le dos de la carte quand on regarde la face avant */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    text-align: center;
}

/* --- FACE AVANT (Question) --- */
.flashcard-front {
    background: var(--surface);
    border: 2px solid var(--line);
}

.flashcard-front .fc-title {
    font-size: 13px; color: var(--teal); text-transform: uppercase; font-weight: 800; margin-bottom: 15px; letter-spacing: 1px;
}

.flashcard-front .fc-content {
    font-size: 20px; font-weight: 800; color: var(--p);
}

/* --- FACE ARRIÈRE (Réponse) --- */
.flashcard-back {
    background: var(--teal); /* Fond coloré pour bien marquer la différence */
    color: white;
    transform: rotateY(180deg); /* Elle est retournée dès le départ */
}

.flashcard-back .fc-content {
    font-size: 17px; font-weight: 600; line-height: 1.5;
}

/* Le petit texte en bas pour indiquer de cliquer */
.tap-indicator {
    margin-top: auto; font-size: 13px; color: var(--t3); font-weight: 700;
}
.flashcard-back .tap-indicator { color: rgba(255,255,255,0.8); }


/* ============================================================
   INTERFACE L'ESSENTIEL (BLOCS DE COURS)
============================================================ */

/* Conteneur global pour forcer la police de la charte graphique */
.cours-content {
    font-family: inherit; 
    font-size: 15px;
    line-height: 1.7; /* Texte plus aéré pour faciliter la lecture */
    color: var(--t1); /* Couleur de texte principale */
}

/* Titre principal du cours */
.cours-content h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--p);
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Retirer les marges par défaut et forcer une indentation standard pour les listes à puces */
.cours-content ul, .cours-content ol {
    padding-left: 24px;
    margin-top: 12px;
    margin-bottom: 12px;
}
.cours-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Les petits titres à l'intérieur des blocs (ex: Définition, Exemple) */
.cours-titre { 
    display: flex; 
    align-items: center; 
    gap: 10px; /* Plus d'espace entre l'icône et le mot */
    font-weight: 800; 
    margin-bottom: 12px; /* Dégage l'espace SOUS le titre */
    font-style: normal; 
    font-size: 16px; /* Titre légèrement plus grand */
    font-family: inherit;
}

/* Objectif : Gris clair centré */
.cours-objectif { 
    background: var(--canvas-warm); 
    padding: 20px 25px; /* Plus d'espace à l'intérieur */
    border-radius: var(--r-md); 
    text-align: center; 
    margin-bottom: 15px; /* MODIFIÉ : 25px -> 15px */
    color: var(--p);
    border: 1px solid var(--line);
}
.cours-objectif .cours-titre { 
    justify-content: center; 
    margin-bottom: 10px; 
    color: var(--p);
}

/* Définition : Bordure Turquoise */
.cours-definition { 
    border-left: 5px solid var(--teal); /* Bordure légèrement plus épaisse */
    background: rgba(12, 158, 138, 0.05); 
    padding: 20px 25px; /* Éloigne le texte de la bordure gauche */
    margin-bottom: 15px; /* MODIFIÉ : 25px -> 15px */
    border-radius: 0 var(--r-md) var(--r-md) 0; 
}

/* Exemple : Vert doux et italique */
.cours-exemple { 
    background: #F0FDF4; 
    border-left: 5px solid #22C55E; /* On ajoute aussi une bordure pour la cohérence */
    padding: 20px 25px; 
    border-radius: 0 var(--r-md) var(--r-md) 0; 
    margin-bottom: 15px; /* MODIFIÉ : 25px -> 15px */
    color: #166534; 
    font-style: italic; 
}

/* Méthode : Bordure en pointillés */
.cours-methode { 
    background: var(--surface); 
    border: 2px dashed var(--line); 
    padding: 20px 25px; 
    border-radius: var(--r-md); 
    margin-bottom: 15px; /* MODIFIÉ : 25px -> 15px */
}

/* Astuce : Jaune éclatant */
.cours-astuce { 
    background: #FEF9C3; 
    border-left: 5px solid #FACC15; 
    padding: 20px 25px; 
    margin-bottom: 15px; /* MODIFIÉ : 25px -> 15px */
    border-radius: 0 var(--r-md) var(--r-md) 0; 
    color: #854D0E; 
}

/* Texte normal (hors des blocs) */
.cours-normal { 
    margin-bottom: 15px; /* MODIFIÉ : 25px -> 15px */
    line-height: 1.7; 
    color: var(--t1); 
    padding: 0 5px; /* Un tout petit décalage naturel */
}

/* Bouton PDF */
.pdf-download-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(61, 58, 140, 0.1); color: var(--p);
    padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 800;
    text-decoration: none; transition: all 0.2s;
}
.pdf-download-btn:hover { background: var(--p); color: white; }


/* ============================================================
   INTERFACE TYPE BAC (GRILLE ET CARTES)
============================================================ */

.bac-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes parfaitement égales */
    gap: 15px; /* Espace entre les cartes */
    margin-top: 15px;
}

/* Design de la carte standard (À faire) */
.bac-card {
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--r-md);
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bac-card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(12, 158, 138, 0.1);
}

/* L'icône au centre de la carte */
.bac-card .bac-icon {
    font-size: 26px;
    color: var(--p);
    background: var(--canvas-warm);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

/* Le titre de l'exercice */
.bac-card .bac-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--t1);
    line-height: 1.3;
}

/* Design de la carte validée (Terminée) */
.bac-card.done {
    background: #DCFCE7; /* Fond vert très clair */
    border-color: #22C55E; /* Bordure verte */
}

.bac-card.done .bac-icon {
    background: white;
    color: #166534; /* Vert foncé */
}

.bac-card.done .bac-title {
    color: #166534;
}

/* Le petit macaron de validation (Check) */
.bac-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #22C55E;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* --- CORRECTION POUR LE MODE PAYSAGE ET LES GRANDS ÉCRANS --- */

/* On force le menu à s'afficher même si l'écran est large */
.bottom-nav {
    display: flex !important; 
}

/* Ajustements spécifiques quand le téléphone est à l'horizontale */
@media (orientation: landscape) and (max-height: 600px) {
    .bottom-nav {
        height: 60px; /* On le rend un peu moins haut pour gagner de la place */
        padding-bottom: 5px; /* Moins de marge en bas */
    }
    
    .bottom-nav .nav-icon {
        font-size: 18px; /* Icônes légèrement plus petites */
    }
    
    .bottom-nav .nav-label {
        font-size: 10px;
    }

    /* On s'assure que le contenu de la page ne passe pas sous le menu */
    .dojo-body {
        padding-bottom: 75px !important; 
    }
}

/* Styles des blocs pédagogiques GinovSchool */
.bloc-definition { background: #eff6ff; border-left: 5px solid #3b82f6; padding: 15px; margin: 15px 0; border-radius: 0 8px 8px 0; }
.bloc-definition::before { content: "📖 Définition"; font-weight: 900; color: #3b82f6; display: block; margin-bottom: 5px; font-size: 0.8rem; }

.bloc-retenir { background: #fef2f2; border-left: 5px solid #ef4444; padding: 15px; margin: 15px 0; border-radius: 0 8px 8px 0; }
.bloc-retenir::before { content: "📝 À Retenir"; font-weight: 900; color: #ef4444; display: block; margin-bottom: 5px; font-size: 0.8rem; }

.bloc-methode { background: #f0fdf4; border-left: 5px solid #10b981; padding: 15px; margin: 15px 0; border-radius: 0 8px 8px 0; }
.bloc-methode::before { content: "🧠 Méthode"; font-weight: 900; color: #10b981; display: block; margin-bottom: 5px; font-size: 0.8rem; }

.bloc-attention { background: #fffbeb; border-left: 5px solid #f59e0b; padding: 15px; margin: 15px 0; border-radius: 0 8px 8px 0; }
.bloc-attention::before { content: "⚠️ Attention"; font-weight: 900; color: #f59e0b; display: block; margin-bottom: 5px; font-size: 0.8rem; }


/* --- STYLES UNIFIÉS HUB & ADMIN --- */

/* Base commune des blocs */
.cours-definition, .cours-methode, .cours-astuce, .cours-exemple, .cours-objectif {
    padding: 20px;
    margin: 25px 0;
    border-radius: 12px;
    border-left: 6px solid;
    position: relative;
}

/* Injection des icônes et titres via CSS pseudo-elements */
.cours-definition::before, .cours-methode::before, .cours-astuce::before, 
.cours-exemple::before, .cours-objectif::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- MENU PROFIL DÉROULANT --- */
.user-menu-container {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 220px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
    display: none; /* Caché par défaut */
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    animation: slideUp 0.2s ease-out;
}

.user-dropdown.active {
    display: flex; /* Affiché quand actif */
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    padding: 15px;
    background: var(--canvas-warm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-header strong { color: var(--p); font-size: 15px; }
.role-badge { 
    font-size: 10px; text-transform: uppercase; font-weight: 800; 
    color: var(--teal); letter-spacing: 0.5px; 
}

.dropdown-divider { height: 1px; background: var(--line); }

.user-dropdown a {
    padding: 12px 15px;
    text-decoration: none;
    color: var(--t2);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.user-dropdown a i { color: var(--t3); width: 16px; text-align: center; }

.user-dropdown a:hover {
    background: rgba(12, 158, 138, 0.05);
    color: var(--teal);
}

.user-dropdown a:hover i { color: var(--teal); }

.logout-item { color: #DC2626 !important; }
.logout-item:hover { background: #FEF2F2 !important; }
.logout-item i { color: #DC2626 !important; }



/* --- Menu Déroulant Global --- */
.user-menu-container { position: relative; }
.user-dropdown {
    position: absolute; top: calc(100% + 15px); right: 0;
    width: 220px; background: white; border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: var(--sh-md);
    display: none; flex-direction: column; z-index: 2000;
    overflow: hidden; animation: slideUp 0.2s ease-out;
}
.user-dropdown.active { display: flex; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-header { padding: 15px; background: var(--canvas-warm); border-bottom: 1px solid var(--line); }
.dropdown-header strong { display: block; color: var(--p); font-size: 14px; }
.dropdown-header span { font-size: 10px; color: var(--teal); font-weight: 800; text-transform: uppercase; }
.user-dropdown a {
    padding: 12px 15px; text-decoration: none; color: var(--t2);
    font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--line); transition: 0.2s;
}
.user-dropdown a:hover { background: rgba(12, 158, 138, 0.05); color: var(--teal); }
.logout-item { color: #DC2626 !important; background: #FFF5F5; }

/* --- État Actif de la Bottom Nav --- */
.bottom-nav .nav-item.active .nav-icon {
    color: #0C9E8A !important; /* Ton Jaune Premium */
    transform: translateY(-3px); /* Petit effet de levée */
    transition: all 0.3s ease;
}

.bottom-nav .nav-item.active .nav-label {
    color: #0C9E8A !important;
    font-weight: 800;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* --- DESIGN DU TOAST GINOVSCHOOL --- */
#toast-notification {
    position: fixed;
    top: -100px; /* Caché par défaut en haut */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    padding: 12px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 999999; /* Toujours au premier plan */
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2.5px solid var(--line);
    transition: top 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#toast-notification.active { top: 20px; } /* Position d'affichage */

.toast-icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.toast-body { flex: 1; }
.toast-title { font-size: 13px; font-weight: 800; color: var(--t1); margin: 0; line-height: 1.2; }
.toast-sub { font-size: 11px; color: var(--t3); font-weight: 600; margin: 2px 0 0 0; }

.toast-action-btn {
    background: var(--p);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

/* --- STYLE DE LA MODALE PROFIL --- */
.modal-profile {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px); align-items: center; justify-content: center;
}
.modal-content-profile {
    background: white; width: 90%; max-width: 400px; border-radius: 30px;
    padding: 30px; position: relative; text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 20px; color: var(--t3); cursor: pointer; }
.modal-avatar { width: 100px; height: 100px; border-radius: 30px; margin-bottom: 15px; border: 4px solid #f5f3ff; }
.modal-pseudo { font-size: 22px; font-weight: 900; color: var(--t1); margin-bottom: 5px; }
.modal-school { font-size: 13px; font-weight: 700; color: var(--p); margin-bottom: 20px; text-transform: uppercase; }
.modal-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.modal-stat-card { background: #f8fafc; padding: 15px 5px; border-radius: 20px; border: 1.5px solid var(--line); }
.modal-stat-val { display: block; font-size: 16px; font-weight: 900; }
.modal-stat-label { font-size: 9px; font-weight: 700; color: var(--t3); }

/* --- INTERACTIVITÉ DES CARTES --- */
.rank-card {
    cursor: pointer; /* Change le curseur en main */
    transition: all 0.2s ease;
}
.rank-card:hover {
    background-color: #f8fafc;
    transform: translateY(-2px); /* Soulève légèrement la carte */
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* --- STYLE DE LA MODALE PROFIL (GLASSMORPHISM) --- */
.profile-modal {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px); /* Effet de flou arrière-plan */
    z-index: 2000;
    align-items: center; justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%; max-width: 400px;
    border-radius: 30px;
    padding: 30px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-btn {
    position: absolute; top: 20px; right: 20px;
    font-size: 22px; color: var(--t3); cursor: pointer;
}

.m-avatar {
    width: 100px; height: 100px;
    border-radius: 30px; margin-bottom: 15px;
    border: 4px solid #f5f3ff;
    object-fit: cover;
}

.m-pseudo { font-size: 24px; font-weight: 900; color: var(--t1); margin-bottom: 5px; }

.m-league-badge {
    display: inline-block; padding: 6px 15px;
    border-radius: 12px; font-size: 10px; font-weight: 800;
    margin-bottom: 20px; text-transform: uppercase;
}

.m-info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
    margin-bottom: 25px; text-align: left;
}

.m-info-item label { display: block; font-size: 9px; color: var(--t3); font-weight: 700; text-transform: uppercase; }
.m-info-item span { font-size: 13px; font-weight: 800; color: var(--t2); }

.m-stats-row {
    display: flex; gap: 10px; justify-content: center;
    background: #f8fafc; padding: 15px; border-radius: 20px;
}

/* Ajustement de la grille pour la Boutique Premium */
.subjects-grid {
    display: grid;
    /* Force l'affichage en 2 colonnes parfaitement égales */
    grid-template-columns: repeat(2, 1fr); 
    /* Espace entre les cartes pour une respiration visuelle */
    gap: 15px; 
    margin-top: 15px;
}

/* Optimisation des cartes pour le format 2 colonnes */
.subject-card {
    padding: 16px 12px; /* Réduction légère du padding pour gagner de l'espace[cite: 1] */
    min-height: 220px;  /* Assure une hauteur cohérente pour toutes les cartes[cite: 1] */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Style de la Modale Premium */
.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(15, 23, 42, 0.7); z-index: 10000; 
    display: flex; align-items: center; justify-content: center; 
    backdrop-filter: blur(8px); padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    background: white; width: 100%; max-width: 380px; border-radius: 32px; 
    padding: 35px 25px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { transform: scale(0.8) translateY(40px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

/* --- BOUTONS DE LA MODALE PREMIUM --- */

.modal-btn-orange {
    background: #f1b34c; /* Ta couleur Or Premium[cite: 16] */
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 25px; /* Coins très arrondis pour l'aspect moderne[cite: 16] */
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 8px 15px rgba(241, 179, 76, 0.3); /* Ombre portée douce */
    transition: all 0.3s ease;
}

.modal-btn-orange:hover {
    transform: translateY(-2px); /* Petit saut au survol */
    box-shadow: 0 12px 20px rgba(241, 179, 76, 0.4);
    background: #e5a53d; /* Un peu plus sombre au survol */
}

.modal-btn-outline {
    background: white;
    color: var(--p); /* Ta couleur Indigo */
    border: 2px solid var(--p); /* Bordure colorée[cite: 16] */
    padding: 14px 20px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.modal-btn-outline:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* Espacement entre les boutons dans le footer de la modale */
#modal-footer {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Espace vertical entre les deux boutons[cite: 1, 16] */
}
/* Responsive Desktop */
@media (min-width: 768px) {
  .dojo-container { margin: 40px auto; }
  .bottom-nav { /* On cache la barre basse sur desktop */
    display: none;
  }
}


/* ===========================================================
   COMPOSANT : Navbar Admin & Dropdown Profil
=========================================================== */
.user-menu-container {
    position: relative;
}

.user-avatar {
    background: white; 
    color: #1e293b; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    font-weight: 800;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 220px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    animation: slideUp 0.2s ease-out;
    color: #1e293b;
    text-align: left;
}

.user-dropdown.active { 
    display: flex; 
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    padding: 15px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-header strong { 
    display: block; 
    font-size: 14px; 
    color: #1e293b; 
}

.dropdown-header span { 
    font-size: 10px; 
    color: #ef4444; 
    font-weight: 800; 
    text-transform: uppercase; 
}

.user-dropdown a {
    padding: 12px 15px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.user-dropdown a:hover { 
    background: #f8fafc; 
    color: #1e293b; 
}

.user-dropdown a i { 
    width: 20px; 
    text-align: center; 
    color: #94a3b8; 
}

.premium-modal-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 41, 59, 0.5); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; z-index: 3000;
}
.premium-modal {
    background: white; width: 90%; max-width: 450px; border-radius: 24px;
    padding: 30px; position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.premium-input:focus { border-color: #3f3e91; outline: none; background: #f8fafc; }
.premium-btn-primary {
    padding: 15px; border-radius: 15px; border: none; color: white;
    font-weight: 800; font-size: 16px; cursor: pointer; transition: 0.3s;
}
.premium-input {
    width: 100%; padding: 12px 15px; border-radius: 12px; border: 1.5px solid #e2e8f0;
    font-size: 15px; font-weight: 600; color: #1e293b; transition: 0.3s;
}
.premium-label {
    display: block; font-size: 13px; font-weight: 800; color: #475569;
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
@keyframes modalPop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.close-modal {
    position: absolute; top: 20px; right: 20px; background: #f1f5f9;
    border: none; width: 35px; height: 35px; border-radius: 50%;
    font-size: 20px; cursor: pointer; color: #64748b;
}

/* Système de notification Premium GinovSchool */
#ginov-notification-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
}

.ginov-toast {
    background: white;
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #e8a020; /* Par défaut Gold */
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ginov-toast.show { transform: translateX(0); }

.ginov-toast-success { border-left-color: #10b981; }
.ginov-toast-error { border-left-color: #ef4444; }

.ginov-toast i { font-size: 20px; }
.ginov-toast-text {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}

/* Stats grid dans la vue profil */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.stat-item { text-align: center; padding: 10px; border-radius: 12px; background: #f8fafc; }
.stat-item b { display: block; font-size: 18px; }
.stat-win { color: #10b981; } .stat-loss { color: #ef4444; } .stat-draw { color: #64748b; }

.logout-item { color: #ef4444 !important; }
.logout-item i { color: #ef4444 !important; }

/* Modales avec rotation paysage manuelle sur mobile */
@media (max-width: 768px) {
    .force-landscape-modal.modal-rotated {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        width: 100vh !important;
        height: 100vw !important;
        max-width: none !important;
        max-height: none !important;
        transform: translate(-50%, -50%) rotate(90deg) !important;
        transform-origin: center center !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

/* --- BLOCS ÉDUCATIFS NUNITO (EDU-BLOCKS) --- */
.edu-block {
    font-family: 'Nunito', sans-serif !important;
    padding: 20px;
    margin: 20px 0;
    border-radius: 16px;
    border-left: 6px solid;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
/* Sécurité : masquer la croix de suppression dans les vues publiques / élèves */
body:not(.cke_editable) .edu-block-delete-btn {
    display: none !important;
}
.edu-block-header {
    font-weight: 800;
    font-size: 14.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.edu-block-content {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}
.edu-block-content p {
    margin: 0;
}

.edu-objectifs { background-color: #f5f3ff; border-left-color: #6d28d9; color: #4c1d95; }
.edu-objectifs .edu-block-header { color: #6d28d9; }

.edu-definition { background-color: #f0fdf4; border-left-color: #15803d; color: #14532d; }
.edu-definition .edu-block-header { color: #15803d; }

.edu-exemple { background-color: #eff6ff; border-left-color: #1d4ed8; color: #1e3a8a; }
.edu-exemple .edu-block-header { color: #1d4ed8; }

.edu-attention { background-color: #fff7ed; border-left-color: #c2410c; color: #7c2d12; }
.edu-attention .edu-block-header { color: #c2410c; }

.edu-propriete { background-color: #f0fdfa; border-left-color: #0f766e; color: #115e59; }
.edu-propriete .edu-block-header { color: #0f766e; }

.edu-methodologie { background-color: #faf5ff; border-left-color: #7e22ce; color: #581c87; }
.edu-methodologie .edu-block-header { color: #7e22ce; }

.edu-astuce { background-color: #fefce8; border-left-color: #a16207; color: #713f12; }
.edu-astuce .edu-block-header { color: #a16207; }

.edu-theoreme { background-color: #f0fdfa; border-left-color: #0f766e; color: #115e59; }
.edu-theoreme .edu-block-header { color: #0f766e; }

.edu-regle { background-color: #fffbeb; border-left-color: #b45309; color: #78350f; }
.edu-regle .edu-block-header { color: #b45309; }

.edu-repere { background-color: #fef2f2; border-left-color: #b91c1c; color: #7f1d1d; }
.edu-repere .edu-block-header { color: #b91c1c; }

.edu-observation { background-color: #ecfdf5; border-left-color: #047857; color: #064e3b; }
.edu-observation .edu-block-header { color: #047857; }

.edu-citation { background-color: #eef2ff; border-left-color: #4338ca; color: #312e81; }
.edu-citation .edu-block-header { color: #4338ca; }

/* Illustrations et schémas insérés */
.cours-illustration {
    margin: 20px 0;
    padding: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    text-align: center;
}
.cours-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto 8px auto;
}
.cours-illustration figcaption {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

/* ============================================================
   DESIGN SYSTEM GAMIFIÉ DUOLINGO-STYLE (FOND BLANC PUR 3D)
   GinovSchool 2026 : Boutons Poussoirs, Cartes Tactiles, Modales
============================================================ */

/* --- BOUTONS POUSSOIRS 3D TACTILES --- */
.btn-3d-gold, .modal-btn-orange {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    font-family: var(--font-ui), 'Poppins', sans-serif !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    letter-spacing: 0.3px;
    padding: 14px 28px !important;
    border-radius: 16px !important;
    border: none !important;
    border-bottom: 4px solid #b45309 !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28) !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.1s ease, border-bottom 0.1s ease, box-shadow 0.1s ease, filter 0.2s !important;
    user-select: none;
    box-sizing: border-box;
    text-align: center;
}

.btn-3d-gold:hover, .modal-btn-orange:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    border-bottom-width: 6px !important;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35) !important;
}

.btn-3d-gold:active, .modal-btn-orange:active {
    transform: translateY(2px) !important;
    border-bottom-width: 2px !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2) !important;
}

/* Bouton 3D Émeraude (Succès / Validation) */
.btn-3d-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-family: var(--font-ui), 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 16px;
    border: none;
    border-bottom: 4px solid #047857;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, border-bottom 0.1s ease, box-shadow 0.1s ease;
    user-select: none;
}

.btn-3d-green:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    border-bottom-width: 6px;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.btn-3d-green:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

/* Bouton 3D Indigo (Primaire Brand) */
.btn-3d-indigo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #3d3a8c 100%);
    color: #ffffff;
    font-family: var(--font-ui), 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 16px;
    border: none;
    border-bottom: 4px solid #312e81;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, border-bottom 0.1s ease, box-shadow 0.1s ease;
    user-select: none;
}

.btn-3d-indigo:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    border-bottom-width: 6px;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-3d-indigo:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

/* Bouton 3D Discret / Secondaire (Contour Blanc Fond Propre) */
.btn-3d-outline, .modal-btn-outline {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff !important;
    color: #334155 !important;
    font-family: var(--font-ui), 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    padding: 13px 24px !important;
    border-radius: 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-bottom: 4px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.1s ease, border-bottom 0.1s ease, background 0.15s, color 0.15s !important;
    user-select: none;
    box-sizing: border-box;
    text-align: center;
}

.btn-3d-outline:hover, .modal-btn-outline:hover {
    background: #f8fafc !important;
    color: #1e1b4b !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px);
    border-bottom-width: 5px !important;
}

.btn-3d-outline:active, .modal-btn-outline:active {
    transform: translateY(2px) !important;
    border-bottom-width: 2px !important;
}

/* --- CARTES DE QUESTIONS ET DE RÉPONSES TACTILES 3D --- */
.quiz-choice-card-3d {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-bottom: 4px solid #cbd5e1;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-ui), 'Poppins', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-sizing: border-box;
}

.quiz-choice-card-3d:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    border-bottom-width: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.quiz-choice-card-3d:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.quiz-choice-card-3d.selected {
    background: #fffbeb !important;
    border-color: #f59e0b !important;
    border-bottom: 4px solid #d97706 !important;
    color: #78350f !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.18) !important;
}

.quiz-choice-card-3d .choice-letter {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 800;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.quiz-choice-card-3d.selected .choice-letter {
    background: #f59e0b;
    color: #ffffff;
    transform: scale(1.08);
}

/* --- MODALES MODERNISÉES SUR FOND BLANC PUR --- */
.custom-modal-overlay {
    backdrop-filter: blur(10px) !important;
    background: rgba(15, 23, 42, 0.65) !important;
}

.modal-card {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 420px !important;
    border-radius: 24px !important;
    padding: 34px 26px !important;
    text-align: center !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    border: 1px solid #f1f5f9 !important;
    animation: modalSpring 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes modalSpring {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Halo lumineux autour des trophées et icônes */
.reward-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.reward-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0) 70%);
    animation: pulseGlow 2.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

.xp-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #fde68a;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 800;
    margin: 10px 0 20px 0;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

/* --- FLASHCARDS 3D SUR FOND BLANC --- */
.theme-duolingo-white .flashcard-front {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-bottom: 5px solid #cbd5e1 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05) !important;
}

.theme-duolingo-white .flashcard-back {
    background: linear-gradient(135deg, #0c9e8a 0%, #065f46 100%) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px -5px rgba(12, 158, 138, 0.25) !important;
}

/* ============================================================
   THÈME 2 : SLEEK GLASSMORPHISM (THÈME SOMBRE HAUTE FIDÉLITÉ)
============================================================ */
.theme-glassmorphism-dark, 
body.theme-glassmorphism-dark {
    background: #0b0f19 !important;
    color: #f1f5f9 !important;
}

.theme-glassmorphism-dark .quiz-question,
.theme-glassmorphism-dark h2,
.theme-glassmorphism-dark h3,
.theme-glassmorphism-dark h4 {
    color: #f8fafc !important;
}

.theme-glassmorphism-dark .quiz-choice-card-3d {
    background: rgba(30, 41, 59, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: 4px solid rgba(255, 255, 255, 0.2) !important;
    color: #f1f5f9 !important;
}

.theme-glassmorphism-dark .quiz-choice-card-3d:hover {
    background: rgba(51, 65, 85, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.theme-glassmorphism-dark .quiz-choice-card-3d.selected {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: #f59e0b !important;
    border-bottom: 4px solid #d97706 !important;
    color: #fbbf24 !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.35) !important;
}

.theme-glassmorphism-dark .quiz-choice-card-3d .choice-letter {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

.theme-glassmorphism-dark .quiz-choice-card-3d.selected .choice-letter {
    background: #f59e0b !important;
    color: #0f172a !important;
    font-weight: 900 !important;
}

.theme-glassmorphism-dark .quiz-floating-footer {
    background: rgba(11, 15, 25, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5) !important;
}

.theme-glassmorphism-dark .modal-card {
    background: #1e293b !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
}

.theme-glassmorphism-dark .modal-card h2 {
    color: #ffffff !important;
}

.theme-glassmorphism-dark .modal-card p {
    color: #94a3b8 !important;
}

.theme-glassmorphism-dark .flashcard-front {
    background: #1e293b !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-bottom: 5px solid #334155 !important;
    border-radius: 20px !important;
    color: #ffffff !important;
}

.theme-glassmorphism-dark .flashcard-front .fc-title {
    color: #38bdf8 !important;
}

.theme-glassmorphism-dark .flashcard-front .fc-content {
    color: #f8fafc !important;
}

.theme-glassmorphism-dark .flashcard-back {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4) !important;
}

/* ============================================================
   THÈME 3 : MINIMALIST PRO (ÉPURÉ HAUTE LISIBILITÉ & CONCENTRATION)
============================================================ */
.theme-minimalist-pro,
body.theme-minimalist-pro {
    background: #ffffff !important;
    color: #0f172a !important;
}

.theme-minimalist-pro .quiz-choice-card-3d {
    background: #ffffff !important;
    border: 2px solid #0f172a !important;
    border-bottom: 2px solid #0f172a !important;
    border-radius: 12px !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    transform: none !important;
}

.theme-minimalist-pro .quiz-choice-card-3d:hover {
    background: #f8fafc !important;
    border-color: #000000 !important;
}

.theme-minimalist-pro .quiz-choice-card-3d.selected {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

.theme-minimalist-pro .quiz-choice-card-3d .choice-letter {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-radius: 8px !important;
}

.theme-minimalist-pro .quiz-choice-card-3d.selected .choice-letter {
    background: #334155 !important;
    color: #ffffff !important;
}

.theme-minimalist-pro .btn-3d-gold {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
    border-bottom: none !important;
}

.theme-minimalist-pro .btn-3d-gold:hover {
    background: #1e293b !important;
    transform: translateY(-2px) !important;
}

.theme-minimalist-pro .flashcard-front {
    background: #ffffff !important;
    border: 2px solid #0f172a !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.theme-minimalist-pro .flashcard-front .fc-title {
    color: #475569 !important;
}

.theme-minimalist-pro .flashcard-front .fc-content {
    color: #0f172a !important;
}

.theme-minimalist-pro .flashcard-back {
    background: #0f172a !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

/* ============================================================
   THÈME 4 : DUOLINGO PLUS (OFFICIEL VERT LIME & BLEU CIEL 3D)
============================================================ */
.theme-duolingo-plus,
body.theme-duolingo-plus {
    background: #ffffff !important;
    color: #4b4b4b !important;
}

.theme-duolingo-plus .quiz-question {
    color: #3c3c3c !important;
    font-weight: 800 !important;
}

.theme-duolingo-plus .btn-3d-gold,
.theme-duolingo-plus .modal-btn-orange {
    background: #58cc02 !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: 4px solid #46a302 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(88, 204, 2, 0.35) !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
}

.theme-duolingo-plus .btn-3d-gold:hover,
.theme-duolingo-plus .modal-btn-orange:hover {
    filter: brightness(1.06) !important;
    transform: translateY(-2px) !important;
    border-bottom-width: 6px !important;
    box-shadow: 0 6px 20px rgba(88, 204, 2, 0.45) !important;
}

.theme-duolingo-plus .btn-3d-gold:active,
.theme-duolingo-plus .modal-btn-orange:active {
    transform: translateY(2px) !important;
    border-bottom-width: 2px !important;
}

.theme-duolingo-plus .btn-3d-indigo {
    background: #1cb0f6 !important;
    border-bottom: 4px solid #1899d6 !important;
    color: #ffffff !important;
}

.theme-duolingo-plus .btn-3d-outline,
.theme-duolingo-plus .modal-btn-outline {
    background: #ffffff !important;
    border: 2px solid #e5e5e5 !important;
    border-bottom: 4px solid #cecece !important;
    color: #afafaf !important;
    border-radius: 16px !important;
}

.theme-duolingo-plus .btn-3d-outline:hover,
.theme-duolingo-plus .modal-btn-outline:hover {
    background: #f7f7f7 !important;
    color: #4b4b4b !important;
}

.theme-duolingo-plus .quiz-choice-card-3d {
    background: #ffffff !important;
    border: 2px solid #e5e5e5 !important;
    border-bottom: 4px solid #cecece !important;
    border-radius: 16px !important;
    color: #4b4b4b !important;
    font-weight: 700 !important;
}

.theme-duolingo-plus .quiz-choice-card-3d:hover {
    background: #f7f7f7 !important;
    border-color: #84d8ff !important;
    transform: translateY(-2px);
    border-bottom-width: 6px !important;
}

.theme-duolingo-plus .quiz-choice-card-3d.selected {
    background: #ddf4ff !important;
    border-color: #84d8ff !important;
    border-bottom: 4px solid #1899d6 !important;
    color: #1899d6 !important;
    box-shadow: 0 4px 14px rgba(28, 176, 246, 0.2) !important;
}

.theme-duolingo-plus .quiz-choice-card-3d .choice-letter {
    background: #f0f0f0 !important;
    color: #afafaf !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
}

.theme-duolingo-plus .quiz-choice-card-3d.selected .choice-letter {
    background: #1cb0f6 !important;
    color: #ffffff !important;
}

.theme-duolingo-plus #quiz-progress {
    background: #58cc02 !important;
}

.theme-duolingo-plus .feedback-banner {
    border-radius: 16px !important;
}

.theme-duolingo-plus .flashcard-front {
    background: #ffffff !important;
    border: 2px solid #e5e5e5 !important;
    border-bottom: 5px solid #cecece !important;
    border-radius: 20px !important;
}

.theme-duolingo-plus .flashcard-front .fc-title {
    color: #1cb0f6 !important;
    font-weight: 800 !important;
}

.theme-duolingo-plus .flashcard-front .fc-content {
    color: #4b4b4b !important;
    font-weight: 800 !important;
}

.theme-duolingo-plus .flashcard-back {
    background: #58cc02 !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(88, 204, 2, 0.3) !important;
}

/* ==========================================================================
   DYNAMIC THEME (CUSTOM THEMES FROM STUDIO)
   ========================================================================== */
.theme-custom-active {
    background: var(--quiz-bg, #ffffff) !important;
    font-family: var(--quiz-font, 'Outfit, sans-serif') !important;
    color: var(--quiz-text, #4b4b4b) !important;
}

.theme-custom-active .btn-3d-gold,
.theme-custom-active .modal-btn-primary,
.theme-custom-active .btn-3d-lime {
    background: var(--quiz-primary, #58cc02) !important;
    border-bottom: var(--quiz-button-depth, 4px) solid var(--quiz-primary-shadow, #58a700) !important;
    color: #ffffff !important;
    border-radius: var(--quiz-radius, 16px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}

.theme-custom-active .btn-3d-gold:active,
.theme-custom-active .modal-btn-primary:active,
.theme-custom-active .btn-3d-lime:active {
    transform: translateY(2px) !important;
    border-bottom-width: 1px !important;
}

.theme-custom-active .quiz-choice-card-3d {
    background: var(--quiz-card-bg, #ffffff) !important;
    border: 2px solid var(--quiz-card-border, #e5e5e5) !important;
    border-bottom: var(--quiz-button-depth, 4px) solid var(--quiz-card-shadow, #cecece) !important;
    border-radius: var(--quiz-radius, 16px) !important;
    color: var(--quiz-text, #4b4b4b) !important;
    font-weight: 700 !important;
}

.theme-custom-active .quiz-choice-card-3d:hover {
    border-color: var(--quiz-secondary, #1cb0f6) !important;
    transform: translateY(-2px);
}

.theme-custom-active .quiz-choice-card-3d.selected {
    background: var(--quiz-card-selected-bg, #ddf4ff) !important;
    border-color: var(--quiz-card-selected-border, #84d8ff) !important;
    border-bottom: var(--quiz-button-depth, 4px) solid var(--quiz-card-selected-shadow, #1899d6) !important;
    color: var(--quiz-secondary-shadow, #1899d6) !important;
}

.theme-custom-active .quiz-choice-card-3d .choice-letter {
    background: #f0f0f0 !important;
    color: #94a3b8 !important;
    border-radius: 10px !important;
}

.theme-custom-active .quiz-choice-card-3d.selected .choice-letter {
    background: var(--quiz-secondary, #1cb0f6) !important;
    color: #ffffff !important;
}

.theme-custom-active #quiz-progress {
    background: var(--quiz-primary, #58cc02) !important;
}

.theme-custom-active .flashcard-front {
    background: var(--quiz-card-bg, #ffffff) !important;
    border: 2px solid var(--quiz-card-border, #e5e5e5) !important;
    border-bottom: 5px solid var(--quiz-card-shadow, #cecece) !important;
    border-radius: var(--quiz-radius, 20px) !important;
}

.theme-custom-active .flashcard-back {
    background: var(--quiz-primary, #58cc02) !important;
    color: #ffffff !important;
    border-radius: var(--quiz-radius, 20px) !important;
}





