:root {
  --teal-50: #e1f5ee;
  --teal-100: #9fe1cb;
  --teal-400: #1d9e75;
  --teal-600: #0f6e56;
  --teal-800: #085041;
  --teal-900: #04342c;
  --ink: #1b2a2e;
  --ink-soft: #5b6a6e;
  --ink-mute: #8b9a9e;
  --paper: #f7f8f7;
  --card: #ffffff;
  --line: #e3e6e4;
  --amber: #ba7517;
  --amber-bg: #faeeda;
  --red: #a32d2d;
  --red-bg: #fcebeb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--ink);
}

a {
  color: inherit;
}

.topbar {
  background: var(--teal-900);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .logo {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
}

.h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 2px;
  color: var(--ink);
}

.muted {
  color: var(--ink-mute);
  font-size: 13.5px;
}

.chiprow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.chip {
  display: inline-block;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--teal-50);
  color: var(--teal-800);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}

.chip.off {
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.thumb {
  height: 120px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-800);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  overflow: hidden;
  padding: 0;
}

.thumb.has-image {
  height: auto;
  aspect-ratio: 16 / 9;
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.link {
  color: var(--teal-600);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.btn {
  display: inline-block;
  text-align: center;
  background: var(--teal-600);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn.block {
  display: block;
  width: 100%;
}

.btn:disabled,
.btn.disabled {
  background: var(--line);
  color: var(--ink-mute);
  cursor: not-allowed;
}

table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.plain th {
  text-align: left;
  color: var(--ink-mute);
  font-weight: 600;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}

table.plain td {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  margin-top: 4px;
}

.quiz-opt {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.quiz-opt input {
  width: auto;
  margin: 0;
}

.badge-amber {
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
}

/* --- Backoffice --- */

.admin-shell {
  display: flex;
  min-height: calc(100vh - 52px);
}

.admin-side {
  width: 220px;
  flex-shrink: 0;
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-side .grp {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  font-weight: 700;
  margin: 16px 8px 6px;
}

.admin-side .item {
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  display: block;
}

.admin-side a.item:hover {
  background: var(--card);
}

.admin-side .item.active {
  background: var(--teal-50);
  color: var(--teal-800);
  font-weight: 700;
}

.admin-main {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.kpi-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.kpi {
  flex: 1;
  min-width: 160px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.kpi .val {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.kpi .lbl {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin-top: 2px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title h3 {
  font-size: 19px;
  margin: 0;
  color: var(--ink);
}

table.admin {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

table.admin th {
  text-align: left;
  color: var(--ink-mute);
  font-weight: 600;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

table.admin td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.pill {
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}

.pill.wait {
  background: var(--amber-bg);
  color: var(--amber);
}

.pill.ok {
  background: var(--teal-50);
  color: var(--teal-800);
}

.pill.new {
  background: #efe9fe;
  color: #534ab7;
}

.btn.sm {
  padding: 7px 12px;
  font-size: 14px;
}

.tabbar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.tabbar .tab {
  font-size: 14.5px;
  padding: 10px 14px;
  color: var(--ink-mute);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.tabbar .tab.active {
  color: var(--teal-600);
  border-color: var(--teal-600);
  font-weight: 600;
}

.upload-zone {
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  gap: 10px;
  flex-wrap: wrap;
}

.upload-zone.done {
  border-style: solid;
  border-color: var(--teal-100);
  background: var(--teal-50);
}

.file-chip {
  font-size: 14px;
  color: var(--teal-800);
  font-weight: 600;
}

.chapter-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qbank-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.qbank-item .qtxt {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.qopt {
  font-size: 14.5px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.qopt.correct {
  border-color: var(--teal-400);
  background: var(--teal-50);
  color: var(--teal-800);
  font-weight: 600;
}

.check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid var(--ink-mute);
  flex-shrink: 0;
}

.qopt.correct .check {
  border-color: var(--teal-600);
  background: var(--teal-600);
}

textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  margin-top: 4px;
  font-family: inherit;
}

select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  margin-top: 4px;
  background: #fff;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  margin-bottom: 12px;
}

.alert.success {
  background: var(--teal-50);
  color: var(--teal-800);
}

.alert.error {
  background: var(--red-bg);
  color: var(--red);
}

.table-scroll {
  overflow-x: auto;
}

/* --- Connexion (écran scindé) --- */

.auth-split {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.auth-messages {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 90%;
  max-width: 420px;
}

.auth-brand {
  flex: 1 1 50%;
  background: linear-gradient(160deg, var(--teal-900), var(--teal-600));
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  display: flex;
  align-items: center;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.auth-brand-decor {
  position: absolute;
  border-radius: 50%;
}

.auth-decor-1 {
  width: 320px;
  height: 320px;
  background: var(--amber);
  top: -90px;
  right: -90px;
  opacity: 0.25;
}

.auth-decor-2 {
  width: 260px;
  height: 260px;
  background: var(--teal-400);
  bottom: -110px;
  left: -70px;
  opacity: 0.3;
}

.auth-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.auth-logo {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-logo-accent {
  color: var(--amber);
}

.auth-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.auth-security-badge i {
  color: var(--teal-100);
  font-size: 15px;
}

.auth-headline {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 18px;
}

.auth-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 40px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.auth-feature-title {
  font-weight: 700;
  font-size: 16px;
}

.auth-feature-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.auth-footer {
  margin-top: 48px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.auth-formside {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--paper);
}

.auth-formbox {
  width: 100%;
  max-width: 440px;
}

.auth-lock-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
}

.auth-form-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 6px;
}

.auth-form-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 28px;
}

.auth-field-box {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  background: #fff;
}

.auth-field-box:focus-within {
  border-color: var(--teal-600);
}

.auth-field-icon-plain {
  color: var(--ink-mute);
  font-size: 20px;
  flex-shrink: 0;
  display: flex;
}

.auth-field-box:focus-within .auth-field-icon-plain {
  color: var(--teal-600);
}

.auth-field-content {
  flex: 1;
  min-width: 0;
}

.auth-field-content label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.auth-field-content .form-control {
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  font-size: 15px;
}

.auth-field-eye {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink-mute);
  display: flex;
  flex-shrink: 0;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.auth-row .form-check {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.auth-submit {
  font-size: 16px;
  padding: 14px 18px;
}

.auth-note {
  margin-top: 20px;
  background: var(--teal-50);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--teal-800);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.auth-note-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

@media (max-width: 860px) {
  .auth-split {
    flex-direction: column;
    min-height: 0;
  }

  .auth-brand {
    padding: 32px 24px;
  }

  .auth-headline {
    font-size: 26px;
  }

  .auth-formside {
    padding: 32px 24px;
  }
}

/* --- Responsive : backoffice --- */

@media (max-width: 860px) {
  .admin-shell {
    flex-direction: column;
    min-height: 0;
  }

  .admin-side {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 10px;
    gap: 4px;
  }

  .admin-side .grp {
    display: none;
  }

  .admin-side .item {
    white-space: nowrap;
    margin: 0;
  }

  .admin-main {
    padding: 16px;
  }

  .kpi-row {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 16px 12px 48px;
  }

  .topbar {
    padding: 12px;
  }

  .row {
    flex-wrap: wrap;
  }
}

[x-cloak] {
  display: none !important;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tour-clickcatcher {
  position: fixed;
  inset: 0;
  z-index: 999;
  cursor: default;
}

.tour-target-active {
  position: relative;
  z-index: 1000;
  border-radius: 10px;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 6px var(--teal-400),
    0 0 0 9999px rgba(9, 30, 27, 0.55);
}

.tour-tooltip {
  position: fixed;
  z-index: 1001;
  width: min(300px, calc(100vw - 24px));
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(9, 30, 27, 0.28);
}

.tour-tooltip-step {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.tour-tooltip-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.tour-tooltip-text {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.tour-tooltip-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tour-skip {
  background: none;
  border: none;
  color: var(--ink-mute);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

/* --- Formulaire public d'enrôlement --- */

.enrol-page {
  min-height: 100vh;
  background: var(--paper);
}

.enrol-page [hidden] {
  display: none !important;
}

.enrol-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--teal-900), var(--teal-600));
  color: #fff;
  padding: 44px 24px 120px;
}

.enrol-hero-compact {
  padding-bottom: 110px;
}

.enrol-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.enrol-hero .auth-logo-row {
  margin-bottom: 24px;
}

.enrol-headline {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 12px;
}

.enrol-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin-bottom: 26px;
}

.enrol-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.enrol-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 6px 14px 6px 6px;
  font-size: 14px;
  font-weight: 600;
}

.enrol-steps li span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.enrol-main {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: -80px auto 0;
  padding: 0 16px 48px;
}

.enrol-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(4, 52, 44, 0.12);
  padding: 32px 36px;
}

.enrol-section + .enrol-section {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 28px;
}

.enrol-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px;
}

.enrol-section-title small {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
}

.enrol-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.enrol-hint {
  color: var(--ink-soft);
  font-size: 14px;
  margin: -8px 0 16px;
}

.enrol-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.enrol-type {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.enrol-type:hover {
  border-color: var(--teal-100);
}

.enrol-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.enrol-type:has(input:focus-visible) {
  outline: 3px solid var(--teal-100);
  outline-offset: 2px;
}

.enrol-type.selected {
  border-color: var(--teal-600);
  background: var(--teal-50);
}

.enrol-type-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.enrol-type.selected .enrol-type-icon {
  background: var(--teal-600);
  color: #fff;
}

.enrol-type-title {
  display: block;
  font-weight: 700;
  font-size: 16px;
}

.enrol-type-text {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 2px;
}

.enrol-type-check {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--teal-600);
  font-size: 18px;
  opacity: 0;
}

.enrol-type.selected .enrol-type-check {
  opacity: 1;
}

.enrol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.enrol-span-2 {
  grid-column: 1 / -1;
}

.enrol-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.enrol-req {
  color: var(--red);
}

.enrol-optional {
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 13px;
}

.enrol-hint {
  color: var(--ink-mute);
  font-size: 13px;
  margin: 0;
}

.enrol-field .form-control,
.enrol-field .form-select {
  border-radius: 10px;
  padding: 10px 14px;
  border-color: var(--line);
}

.enrol-field .form-control:focus,
.enrol-field .form-select:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.12);
}

.enrol-field.has-error .form-control,
.enrol-field.has-error .form-select {
  border-color: var(--red);
}

.enrol-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 4px;
}

.enrol-person {
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-400);
  border-radius: 12px;
  padding: 16px 18px 18px;
  margin-bottom: 14px;
  background: #fcfdfc;
  animation: enrol-in 0.2s ease-out;
}

@keyframes enrol-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.enrol-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.enrol-person-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--teal-800);
}

.enrol-person-remove {
  background: none;
  border: none;
  color: var(--ink-mute);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.enrol-person-remove:hover {
  color: var(--red);
  background: var(--red-bg);
}

.enrol-add {
  width: 100%;
  border: 2px dashed var(--teal-100);
  background: var(--teal-50);
  color: var(--teal-600);
  font-weight: 700;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.15s;
}

.enrol-add:hover {
  border-color: var(--teal-600);
}

.enrol-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}

.enrol-legal {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.enrol-legal i {
  color: var(--teal-600);
}

.enrol-submit {
  padding: 13px 26px;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
}

.enrol-footer {
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
  margin-top: 24px;
}

.enrol-done {
  text-align: center;
}

.enrol-done-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--teal-600);
  color: #fff;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.enrol-done-title {
  font-size: 28px;
  font-weight: 800;
}

.enrol-done-text {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.enrol-done-list {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 520px;
  margin: 0 auto;
}

.enrol-done-list-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.enrol-done-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.enrol-done-profile {
  color: var(--teal-800);
  font-weight: 600;
  text-align: right;
}

@media (max-width: 640px) {
  .enrol-hero {
    padding: 28px 16px 100px;
  }

  .enrol-headline {
    font-size: 26px;
  }

  .enrol-card {
    padding: 22px 16px;
    border-radius: 14px;
  }

  .enrol-type-grid,
  .enrol-grid {
    grid-template-columns: 1fr;
  }

  .enrol-submit-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.enrol-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--teal-50);
  color: var(--teal-800);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  margin: -4px 0 18px;
}

.enrol-note i {
  font-size: 18px;
  flex-shrink: 0;
}

.lock-icon {
  vertical-align: -1px;
  margin-right: 2px;
}

/* Repris des maquettes (docs/maquettes) : barre de progression et
   pastilles de statut, utilisées dans les espaces apprenant et entreprise. */
.progressbar {
  height: 6px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.progressbar > div {
  height: 100%;
  background: var(--teal-600);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.status-dot.done {
  background: var(--teal-600);
}

.status-dot.progress {
  background: var(--amber);
}

.status-dot.notstarted {
  background: var(--ink-mute);
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
