.bandeau-classement {
  background: linear-gradient(135deg, #1a0533 0%, #2d1060 60%, #3d1a80 100%);
  padding: 36px 60px;
}

.bandeau-classement .bandeau-contenu h1 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: white;
  margin-bottom: 6px;
}

.bandeau-classement .bandeau-contenu p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.zone-classement {
  padding: 32px 60px;
  background: #f9f4ff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── PODIUM ── */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 0;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.avatar.grand {
  width: 64px;
  height: 64px;
  font-size: 20px;
}

.avatar.petit {
  width: 40px;
  height: 40px;
  font-size: 13px;
}

.couronne {
  font-size: 22px;
  line-height: 1;
}

.podium-nom {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1a1025;
  margin: 0;
}

.podium-xp {
  font-size: 11px;
  color: #6b5b7b;
  margin: 0;
}

.podium-bloc {
  width: 70px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: white;
}

.podium-bloc.or {
  background: #f5a623;
  height: 60px;
}
.podium-bloc.argent {
  background: #9b9b9b;
  height: 44px;
}
.podium-bloc.bronze {
  background: #8b4513;
  height: 36px;
}

/* ── CARTE POSITION ACTUELLE ── */
.carte-position {
  background: #f0e4ff;
  border: 1.5px solid #d8c0f0;
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.position-gauche {
  display: flex;
  align-items: center;
  gap: 14px;
}

.position-rang {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #9b59d4;
  min-width: 40px;
}

.position-info strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 13px;
  color: #1a1025;
}

.position-info span {
  font-size: 12px;
  color: #6b5b7b;
}

.position-xp {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #9b59d4;
}

/* ── TABLEAU CLASSEMENT ── */
.tableau-classement {
  background: white;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(155, 89, 212, 0.08);
}

.tableau-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tableau-header h2 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #1a1025;
  margin: 0;
}

.filtres-tableau {
  display: flex;
  gap: 8px;
}

.filtre-tab {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #d8c0f0;
  background: transparent;
  color: #6b5b7b;
  cursor: pointer;
  transition: all 0.2s;
}

.filtre-tab.actif {
  background: #9b59d4;
  color: white;
  border-color: #9b59d4;
}

.filtre-tab:hover {
  background: #f0e4ff;
  color: #9b59d4;
}

.ligne-classement {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-radius: 10px;
  transition: background 0.15s;
}

.ligne-classement:hover {
  background: #f9f4ff;
}

.ligne-moi {
  background: #f0e4ff;
}

.ligne-rang {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #6b5b7b;
  min-width: 28px;
  text-align: center;
}

.ligne-infos {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ligne-infos strong {
  font-family: "Syne", sans-serif;
  font-size: 13px;
  color: #1a1025;
}

.ligne-infos span {
  font-size: 11px;
  color: #6b5b7b;
}

.ligne-xp {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1a1025;
}

.ligne-evolution {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 12px;
  min-width: 28px;
  text-align: right;
}

.ligne-evolution.hausse {
  color: #2e7d32;
}
.ligne-evolution.stable {
  color: #6b5b7b;
}
.ligne-evolution.baisse {
  color: #c62828;
}
/* =====================================================
   PAGE TABLEAU DE BORD (partie Jawed)
   ===================================================== */

.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

/* ── SIDEBAR GAUCHE ── */
.sidebar-etudiant {
  width: 180px;
  background: white;
  border-right: 1.5px solid #f0e4ff;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex-shrink: 0;
}

.sidebar-bonjour {
  font-size: 20px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  color: #1a1025;
  margin: 0;
  line-height: 1.3;
}

.sidebar-niveau {
  font-size: 11px;
  color: #6b5b7b;
  margin: 6px 0 8px;
}

.barre-xp {
  width: 100%;
  height: 6px;
  background: #e0d0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}

.barre-remplissage {
  height: 100%;
  background: #9b59d4;
  border-radius: 10px;
  transition: width 0.4s;
}

.sidebar-prochain {
  font-size: 10px;
  color: #6b5b7b;
  margin: 0;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #6b5b7b;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-item:hover {
  background: #f0e4ff;
  color: #9b59d4;
}

.menu-item.actif {
  background: #9b59d4;
  color: white;
}

.menu-item i {
  font-size: 16px;
}

/* ── CONTENU PRINCIPAL ── */
.dashboard-contenu {
  flex: 1;
  padding: 32px 40px;
  background: #f9f4ff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-contenu h1 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #1a1025;
  margin: 0;
}

/* ── CARTES DU HAUT ── */
.dashboard-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dash-carte {
  background: white;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(155, 89, 212, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-label {
  font-family: "Syne", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #6b5b7b;
  margin: 0;
  text-transform: uppercase;
}

.dash-carte h2 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #1a1025;
  margin: 0;
}

.dash-sous {
  font-size: 12px;
  color: #6b5b7b;
  margin: 0;
}

.badge-defi {
  background: #ff6b6b;
  color: white;
  font-size: 11px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

.bouton-defi {
  background: #9b59d4;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
  align-self: flex-start;
}

.bouton-defi:hover {
  background: #7d3db8;
}

.liste-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.liste-badges li {
  font-size: 13px;
  color: #1a1025;
  display: flex;
  align-items: center;
  gap: 8px;
}

.point-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.point-badge.jaune {
  background: #ffd93d;
}
.point-badge.violet {
  background: #9b59d4;
}
.point-badge.vert {
  background: #2ecc71;
}

.bouton-voir-tous {
  background: transparent;
  border: 1.5px solid #d8c0f0;
  color: #9b59d4;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s;
}

.bouton-voir-tous:hover {
  background: #f0e4ff;
}

/* ── CARTE CONTINUER ── */
.dash-carte.continuer {
  gap: 10px;
}

.continuer-titre {
  font-size: 14px;
  color: #1a1025;
  margin: 0;
}

.continuer-titre a {
  color: #9b59d4;
  text-decoration: none;
  font-weight: 600;
}

.bouton-reprendre {
  background: #9b59d4;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}

.bouton-reprendre:hover {
  background: #7d3db8;
}

/* ── MES COURS EN COURS ── */
.dash-section-titre {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #6b5b7b;
  text-transform: uppercase;
}

.cours-en-cours {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cours-item {
  background: white;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(155, 89, 212, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cours-nom {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #1a1025;
  margin: 0;
}

.barre-cours {
  width: 100%;
  height: 6px;
  background: #e0d0f0;
  border-radius: 10px;
  overflow: hidden;
}

.barre-cours-remplissage {
  height: 100%;
  border-radius: 10px;
}

.barre-cours-remplissage.vert {
  background: #2ecc71;
}
.barre-cours-remplissage.violet {
  background: #9b59d4;
}
.barre-cours-remplissage.rouge {
  background: #e74c3c;
}

.cours-statut {
  font-size: 11px;
  color: #6b5b7b;
  margin: 0;
}
