.thot-courses {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 12px 0 32px;
  color: var(--text, #172126);
  display: grid;
  gap: 16px;
}

.thot-courses * {
  box-sizing: border-box;
}

.thot-course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(9, 32, 56, .98), rgba(24, 76, 105, .94));
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 42px rgba(15, 47, 79, .16);
}

.thot-course-kicker,
.thot-course-module__eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.thot-course-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
  color: #fff;
}

.thot-course-hero p {
  margin: 10px 0 0;
  max-width: 76ch;
  color: rgba(255,255,255,.80);
  font-size: 16px;
  line-height: 1.55;
}

.thot-course-hero__stats,
.thot-course-module__metrics,
.thot-course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thot-course-hero__stats {
  justify-content: flex-end;
}

.thot-course-hero__stats span,
.thot-course-module__metrics span,
.thot-course-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.16);
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.thot-course-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.thot-course-filter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15,47,79,.12);
  color: var(--text, #172126);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(15,47,79,.06);
}

.thot-course-filter.is-active {
  background: var(--primary, #176b87);
  border-color: var(--primary, #176b87);
  color: #fff;
}

.thot-course-filter--static {
  pointer-events: none;
  color: var(--muted, #5f6f76);
}

.thot-course-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--primary, #176b87);
  border: 1px solid var(--primary, #176b87);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.thot-course-module {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,252,.94));
  border: 1px solid rgba(22,59,95,.10);
  box-shadow: 0 14px 32px rgba(15,47,79,.10);
}

.thot-course-module__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.thot-course-module__eyebrow {
  background: rgba(23,107,135,.08);
  border-color: rgba(23,107,135,.14);
  color: var(--primary, #176b87);
}

.thot-course-module h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  color: var(--text, #172126);
}

.thot-course-module p {
  margin: 8px 0 0;
  color: var(--muted, #5f6f76);
  line-height: 1.55;
}

.thot-course-module__metrics {
  justify-content: flex-end;
}

.thot-course-module__metrics span,
.thot-course-card__meta span {
  background: rgba(23,107,135,.08);
  border-color: rgba(23,107,135,.12);
  color: var(--text, #172126);
}

.thot-course-sequence-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.thot-course-sequence {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: max-content;
  margin: 0;
  padding: 0;
}

.thot-course-sequence li {
  display: flex;
}

.thot-course-node {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 86px;
  min-height: 62px;
  padding: 10px 15px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(12,35,64,.10);
  background: #edf5fb;
  color: #28496a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.thot-course-node::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--course-progress, 0) * 1%);
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  z-index: -1;
}

.thot-course-node strong {
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
  color: inherit;
}

.thot-course-node small {
  font-size: 12px;
  line-height: 1.15;
  color: inherit;
}

.thot-course-node.is-done {
  --course-progress: 100;
  background: #dcfce7;
  color: #fff;
  border-color: rgba(22,163,74,.24);
}

.thot-course-node.is-current,
.thot-course-node.is-open {
  background: #eef7ff;
  color: #123b5c;
}

.thot-course-node.is-locked,
.thot-course-node.is-preview {
  background: #e5ebf2;
  color: #61768b;
}

.thot-course-node--gate {
  background: #2a3950;
  color: #f7fbff;
}

.thot-course-node--gate.is-open {
  background: #f59e0b;
  color: #fff8eb;
}

.thot-course-node--gate.is-done {
  background: #0f8e81;
  color: #f5fffd;
}

.thot-course-node--mission {
  background: #eef2ff;
  color: #3730a3;
  border-color: rgba(99, 102, 241, .26);
}

.thot-course-node--mission::before {
  background: linear-gradient(135deg, #c7d2fe, #818cf8);
}

.thot-course-node--evaluation {
  background: #ecfeff;
  color: #155e75;
  border-color: rgba(8,145,178,.25);
}

.thot-course-node--evaluation::before {
  background: linear-gradient(135deg, #67e8f9, #0891b2);
}

.thot-course-node--controle {
  background: #fff1f2;
  color: #9f1239;
  border-color: rgba(225,29,72,.25);
}

.thot-course-node--controle::before {
  background: linear-gradient(135deg, #fda4af, #e11d48);
}

.thot-course-node--tp {
  background: #ecfdf5;
  color: #166534;
  border-color: rgba(22,163,74,.24);
}

.thot-course-node--tp::before {
  background: linear-gradient(135deg, #86efac, #16a34a);
}

.thot-course-node--projet {
  background: #fef9c3;
  color: #854d0e;
  border-color: rgba(202,138,4,.24);
}

.thot-course-node--projet::before {
  background: linear-gradient(135deg, #fde047, #ca8a04);
}

.thot-course-node--ressource {
  background: #f8fafc;
  color: #334155;
  border-color: rgba(100,116,139,.24);
}

.thot-course-node--ressource::before {
  background: linear-gradient(135deg, #cbd5e1, #64748b);
}

.thot-course-node--synthese {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: rgba(124,58,237,.24);
}

.thot-course-node--synthese::before {
  background: linear-gradient(135deg, #ddd6fe, #7c3aed);
}

.thot-course-node--entrainement {
  background: #fff7ed;
  color: #9a3412;
  border-color: rgba(234,88,12,.24);
}

.thot-course-node--entrainement::before {
  background: linear-gradient(135deg, #fdba74, #ea580c);
}

.thot-course-node--remediation {
  background: #fff4d9;
  color: #7a4b12;
}

.thot-course-node.is-focused {
  outline: 3px solid #facc15;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(250, 204, 21, .22), 0 18px 30px rgba(15,47,79,.18);
}

.thot-course-node em {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: inherit;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.2;
}

.thot-course-card-list {
  display: grid;
  gap: 10px;
}

.thot-course-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(22,59,95,.10);
  box-shadow: 0 10px 22px rgba(15,47,79,.06);
}

.thot-course-card.is-done {
  background: rgba(241,252,245,.98);
  border-color: rgba(34,197,94,.22);
}

.thot-course-card.is-locked {
  background: rgba(248,250,252,.96);
}

.thot-course-card.is-focused {
  border-color: rgba(250, 204, 21, .72);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, .18), 0 18px 34px rgba(15,47,79,.12);
}

.thot-course-card__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.thot-course-card__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(23,107,135,.10);
  color: var(--primary, #176b87);
  font-size: 15px;
  font-weight: 950;
}

.thot-course-card__code.is-mission,
.thot-course-card__code.is-evaluation,
.thot-course-card__code.is-controle,
.thot-course-card__code.is-tp,
.thot-course-card__code.is-projet,
.thot-course-card__code.is-ressource,
.thot-course-card__code.is-synthese,
.thot-course-card__code.is-entrainement,
.thot-course-card__code.is-gate {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid rgba(99, 102, 241, .26);
}

.thot-course-card__code.is-evaluation { background:#ecfeff;color:#155e75;border-color:rgba(8,145,178,.25); }
.thot-course-card__code.is-controle { background:#fff1f2;color:#9f1239;border-color:rgba(225,29,72,.25); }
.thot-course-card__code.is-tp { background:#ecfdf5;color:#166534;border-color:rgba(22,163,74,.24); }
.thot-course-card__code.is-projet { background:#fef9c3;color:#854d0e;border-color:rgba(202,138,4,.24); }
.thot-course-card__code.is-ressource { background:#f8fafc;color:#334155;border-color:rgba(100,116,139,.24); }
.thot-course-card__code.is-synthese { background:#f5f3ff;color:#5b21b6;border-color:rgba(124,58,237,.24); }
.thot-course-card__code.is-entrainement { background:#fff7ed;color:#9a3412;border-color:rgba(234,88,12,.24); }
.thot-course-card__code.is-gate { background:#2a3950;color:#f7fbff;border-color:rgba(42,57,80,.30); }

.thot-course-card h3 {
  margin: 0;
  color: var(--text, #172126);
  font-size: 18px;
  line-height: 1.2;
}

.thot-course-focus-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  margin-top: 7px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1px solid rgba(217,119,6,.22);
  color: #7a4b12;
  font-size: 12px;
  font-weight: 900;
}

.thot-course-card p {
  margin: 6px 0 0;
  color: var(--muted, #5f6f76);
  line-height: 1.45;
  font-size: 14px;
}

.thot-course-card__hint {
  display: block;
  margin-top: 7px;
  color: #805600;
  font-weight: 750;
}

.thot-course-card__side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.thot-course-progress {
  width: 132px;
  height: 8px;
  border-radius: 999px;
  background: rgba(12,35,64,.08);
  overflow: hidden;
}

.thot-course-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #64b4ff, #1f7ed8);
}

.thot-course-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary, #176b87);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.thot-course-button.is-muted {
  background: rgba(15,47,79,.08);
  color: var(--text, #172126);
}

.thot-course-button.is-disabled {
  background: rgba(15,47,79,.08);
  color: var(--muted, #5f6f76);
}

@media (max-width: 820px) {
  .thot-courses {
    padding: 10px 12px 26px;
  }

  .thot-course-hero,
  .thot-course-module__header,
  .thot-course-card,
  .thot-course-card__main {
    grid-template-columns: 1fr;
  }

  .thot-course-hero__stats,
  .thot-course-module__metrics {
    justify-content: flex-start;
  }

  .thot-course-card__side {
    justify-items: stretch;
  }

  .thot-course-progress {
    width: 100%;
  }
}
