/* ─────────────────────────────────────────────
   COURSE-BUTTONS.CSS — Style amélioré des boutons de cours
   ───────────────────────────────────────────── */

/* ─── NAVIGATION COURS — items de liste ─── */
.cours-item {
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .18s ease;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.cours-item:hover {
  transform: translateX(3px);
  box-shadow: 0 3px 10px rgba(0,0,0,.09);
}
.cours-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all .18s;
}

/* ─── BOUTONS NAVIGATION COURS (Précédent / Suivant) ─── */
.btn {
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  transition: all .18s ease;
  letter-spacing: 0.3px;
}
.btn-outline {
  background: #F5F6FA;
  border: 1.5px solid #E2E5F0;
  color: #374151;
}
.btn-outline:hover:not(:disabled) {
  background: #E8EAEF;
  border-color: #C8CBE0;
  transform: translateX(-2px);
}
.btn-outline:disabled {
  color: #C8CBE0;
  cursor: default;
  background: #fafaf8;
}
.btn-primary {
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.btn-primary:hover {
  opacity: .88;
  transform: translateX(2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}

/* ─── BADGE CHAPITRE ─── */
.chap-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* ─── ONGLETS MODULE ─── */
#tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
  background: #F5F6FA;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid #E2E5F0;
}
.tab-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  color: #6B7280;
  transition: all .2s;
  font-family: inherit;
  letter-spacing: 0.2px;
}
.tab-btn:not(.active):hover {
  background: rgba(0,0,0,.05);
  color: #374151;
}
.tab-btn.active {
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

/* ─── SECTION-TITLE dans le contenu ─── */
.cours-content .section-title {
  font-weight: 800;
  margin-top: 16px;
  margin-bottom: 5px;
  font-size: 13px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cours-content .section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.7;
}

/* ─── SÉLECTEUR DPE Sans/Avec mention ─── */
.dpe-selector-btn {
  flex: 1;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: all .18s;
  font-weight: 600;
}
.dpe-selector-btn.active {
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

/* ─── MODE SOMBRE ─── */
body.dark .cours-item {
  background: #252A3A;
  border-color: transparent;
}
body.dark .cours-item:hover {
  background: #2F3549;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
body.dark .btn-outline {
  background: #252A3A;
  border-color: #374151;
  color: #e2e8f0;
}
body.dark .btn-outline:hover:not(:disabled) {
  background: #2F3549;
}
body.dark #tabs {
  background: #1E2235;
  border-color: #374151;
}
body.dark .tab-btn:not(.active) {
  color: #9ca3af;
}
body.dark .tab-btn:not(.active):hover {
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
}
