/* WPMalter — LMS layer ("Mes formations" + /cours/).
   Built strictly on the design tokens (colors_and_type.css) and the website
   base vocabulary (styles.css). Reuses: .btn, .pill, .section, .eyebrow,
   .hero-halo, .footer, .nav. Net-new here: the logged-in account header,
   course cards + progress, the in-course module list, the module player
   (16:9 + sidebar), the downloads grid, the gating card and the end/upsell.
   Same sober Stripe + 10 % Prisme halos as the rest of the kit. */

/* ============================================================
   ACCOUNT HEADER (logged-in) — reuses .nav shell from styles.css
   ============================================================ */
.lms-links { display: flex; align-items: center; gap: 2px; }
.lms-link {
  font-family: var(--wpm-font-body);
  font-size: 14px; font-weight: 500;
  color: var(--wpm-text-secondary);
  padding: 9px 14px; border-radius: var(--wpm-radius-sm);
  transition: color var(--wpm-dur-fast) var(--wpm-ease), background var(--wpm-dur-fast) var(--wpm-ease);
}
.lms-link:hover { color: var(--wpm-text-primary); }
.lms-link.active { color: var(--wpm-text-primary); background: var(--wpm-surface-2); }

.lms-account { position: relative; }
.lms-account-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 10px 5px 6px; border-radius: var(--wpm-radius-pill);
  border: 1px solid var(--wpm-border); background: var(--wpm-surface-1);
  color: var(--wpm-text-primary); cursor: pointer; font-family: var(--wpm-font-body);
  transition: var(--wpm-transition);
}
.lms-account-btn:hover { border-color: var(--wpm-border-strong); }
.lms-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--wpm-brand-500), var(--wpm-brand-700));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--wpm-font-display); font-weight: 600; font-size: 12.5px; letter-spacing: -0.02em;
}
.lms-account-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.lms-account-btn .chev { font-size: 14px; opacity: .6; display: inline-flex; transition: transform var(--wpm-dur-base) var(--wpm-ease); }
.lms-account.open .lms-account-btn .chev { transform: rotate(180deg); }
.lms-menu {
  position: absolute; top: calc(100% + 9px); right: 0; min-width: 248px;
  background: var(--wpm-surface-1); border: 1px solid var(--wpm-border-subtle);
  border-radius: var(--wpm-radius-md); box-shadow: var(--wpm-shadow-lg);
  padding: 8px; opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 150ms var(--wpm-ease), transform 150ms var(--wpm-ease); z-index: 100;
}
.lms-account.open .lms-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lms-menu-id { padding: 8px 12px 12px; border-bottom: 1px solid var(--wpm-border-subtle); margin-bottom: 6px; }
.lms-menu-id .n { font-family: var(--wpm-font-display); font-weight: 600; font-size: 14.5px; color: var(--wpm-text-primary); }
.lms-menu-id .e { font-size: 12.5px; color: var(--wpm-text-muted); margin-top: 2px; }
.lms-menu a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: var(--wpm-radius-sm); font-size: 14px; color: var(--wpm-text-secondary);
  transition: background var(--wpm-dur-fast) var(--wpm-ease), color var(--wpm-dur-fast) var(--wpm-ease);
}
.lms-menu a:hover { background: var(--wpm-surface-2); color: var(--wpm-text-primary); }
.lms-menu a svg { width: 16px; height: 16px; color: var(--wpm-text-muted); }
.lms-menu a.danger { color: var(--wpm-error-text); }
.lms-menu a.danger svg { color: var(--wpm-error-text); }
.lms-menu .sep { height: 1px; background: var(--wpm-border-subtle); margin: 6px 0; }

/* ============================================================
   PAGE HEAD — short greeting hero (dashboard / course / archive)
   ============================================================ */
.lms-page { min-height: 100vh; }
.lms-head { position: relative; overflow: hidden; padding-top: 64px; padding-bottom: 8px; }
.lms-head .hero-halo::before { top: -440px; opacity: .7; }
.lms-head-inner { position: relative; z-index: 1; }
.lms-eyebrow { color: var(--wpm-brand-text); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.lms-head h1 {
  font-family: var(--wpm-font-display); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.035em;
  margin: 16px 0 14px; color: var(--wpm-text-primary);
}
.lms-head h1 .grad { background: linear-gradient(120deg, var(--wpm-brand-300), var(--wpm-brand-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lms-head .sub { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: var(--wpm-text-secondary); max-width: 640px; margin: 0; }
.lms-section { padding-top: 40px; padding-bottom: 56px; }
.lms-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.lms-row-head h2 { font-family: var(--wpm-font-display); font-size: 24px; letter-spacing: -0.02em; color: var(--wpm-text-primary); margin: 0; }
.lms-row-head .count { font-family: var(--wpm-font-mono); font-size: 13px; color: var(--wpm-text-muted); }

/* ============================================================
   COVER placeholder (striped, brand-tinted) + progress bar
   ============================================================ */
.cover-ph {
  position: relative; overflow: hidden;
  background-color: var(--wpm-surface-2);
  background-image:
    radial-gradient(120% 140% at 78% 12%, rgba(83,58,253,0.30), transparent 56%),
    repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--wpm-brand-400) 16%, transparent) 9px 10px);
  display: flex; align-items: flex-end;
}
.cover-ph .cover-tag {
  font-family: var(--wpm-font-mono); font-size: 11px; letter-spacing: 0.02em;
  color: var(--wpm-text-secondary); background: color-mix(in srgb, var(--wpm-bg) 70%, transparent);
  backdrop-filter: blur(6px); border: 1px solid var(--wpm-border-subtle);
  border-radius: var(--wpm-radius-pill); padding: 5px 11px; margin: 12px;
}
.cover-ph .cover-glyph {
  position: absolute; top: 14px; left: 16px;
  width: 38px; height: 38px; border-radius: var(--wpm-radius-sm);
  background: color-mix(in srgb, var(--wpm-bg) 55%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--wpm-border-subtle);
  display: flex; align-items: center; justify-content: center; color: var(--wpm-brand-300);
}
.cover-ph .cover-glyph svg { width: 20px; height: 20px; }

.progress { display: block; height: 8px; border-radius: var(--wpm-radius-pill); background: var(--wpm-surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: var(--wpm-radius-pill); background: linear-gradient(90deg, var(--wpm-brand-400), var(--wpm-brand-600)); transition: width var(--wpm-dur-slow) var(--wpm-ease); }
.progress.done > i { background: linear-gradient(90deg, var(--wpm-success-500), var(--wpm-success-400)); }
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.progress-meta .lbl { font-size: 13px; color: var(--wpm-text-secondary); font-weight: 500; }
.progress-meta .pct { font-family: var(--wpm-font-mono); font-size: 13px; color: var(--wpm-brand-300); }
.progress.done ~ .progress-meta .pct, .progress-meta .pct.done { color: var(--wpm-success-text); }

/* ============================================================
   COURSE CARD GRID (dashboard + archive)
   ============================================================ */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.course-card {
  display: flex; flex-direction: column;
  background: var(--wpm-surface-1); border: 1px solid var(--wpm-border);
  border-radius: var(--wpm-radius-lg); overflow: hidden; transition: var(--wpm-transition);
}
.course-card:hover { transform: var(--wpm-lift); box-shadow: var(--wpm-shadow-lg); border-color: var(--wpm-border-strong); }
.course-card .cover-ph { aspect-ratio: 16 / 9; }
.course-card.soon { opacity: .92; }
.course-card.soon:hover { transform: none; box-shadow: none; border-color: var(--wpm-border); }
.course-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.course-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.course-card h3 { font-family: var(--wpm-font-display); font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; color: var(--wpm-text-primary); margin: 0; }
.course-card .course-sub { font-size: 14px; line-height: 1.6; color: var(--wpm-text-secondary); margin: 0; }
.course-progress { margin-top: 4px; }
.course-card .btn { margin-top: auto; }
.course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.course-foot .price { font-family: var(--wpm-font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; color: var(--wpm-text-primary); white-space: nowrap; }
.course-foot .price small { font-size: 13px; font-weight: 500; color: var(--wpm-text-muted); }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--wpm-font-mono); font-size: 12px; color: var(--wpm-text-muted); }
.meta-chip svg { width: 13px; height: 13px; }
.meta-chip + .meta-chip::before { content: "·"; margin-right: 8px; opacity: .5; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.lms-empty {
  position: relative; overflow: hidden; text-align: center;
  border: 1px dashed var(--wpm-border-strong); border-radius: var(--wpm-radius-lg);
  background: var(--wpm-surface-1); padding: 64px 40px;
}
.lms-empty::before {
  content: ""; position: absolute; width: 520px; height: 420px; left: 50%; top: -260px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(83,58,253,0.22), transparent 62%); filter: blur(100px);
}
.lms-empty-inner { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; }
.lms-empty-ico { width: 60px; height: 60px; border-radius: var(--wpm-radius-md); background: var(--wpm-brand-surface); color: var(--wpm-brand-text); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.lms-empty-ico svg { width: 28px; height: 28px; }
.lms-empty h3 { font-family: var(--wpm-font-display); font-size: 24px; letter-spacing: -0.02em; color: var(--wpm-text-primary); margin: 0 0 10px; }
.lms-empty p { font-size: 15px; line-height: 1.65; color: var(--wpm-text-secondary); margin: 0 0 26px; }

/* Formulaire de connexion SureCart embarque dans l'ecran "espace formation" */
.lms-login-form { max-width: 360px; margin: 0 auto 14px; text-align: left; }
.lms-login-form sc-login-form {
  display: block;
  --sc-color-primary-500: var(--wpm-brand);
  --sc-color-primary-600: var(--wpm-brand);
  --sc-input-border-radius: var(--wpm-radius-md);
  --sc-border-radius-medium: var(--wpm-radius-md);
}
.lms-login-form sc-login-form span[slot="title"] {
  font-family: var(--wpm-font-display); font-size: 17px; letter-spacing: -0.01em;
  color: var(--wpm-text-primary);
}

/* ============================================================
   IN-COURSE MODULE LIST
   ============================================================ */
.mod-list { display: flex; flex-direction: column; gap: 12px; }
.mod-item {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 20px;
  padding: 18px 22px; border-radius: var(--wpm-radius-md);
  background: var(--wpm-surface-1); border: 1px solid var(--wpm-border);
  transition: var(--wpm-transition);
}
.mod-item:hover { border-color: var(--wpm-border-strong); box-shadow: var(--wpm-shadow-sm); transform: translateX(2px); }
.mod-item.is-current { border-color: var(--wpm-brand); box-shadow: var(--wpm-glow-brand); }
.mod-index {
  width: 44px; height: 44px; border-radius: var(--wpm-radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--wpm-font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  background: var(--wpm-surface-2); color: var(--wpm-text-muted); border: 1px solid var(--wpm-border-subtle);
}
.mod-item.done .mod-index { background: var(--wpm-success-bg); color: var(--wpm-success-text); border-color: transparent; }
.mod-item.is-current .mod-index { background: var(--wpm-brand); color: #fff; border-color: transparent; }
.mod-index svg { width: 20px; height: 20px; }
.mod-main { min-width: 0; }
.mod-main .t { font-family: var(--wpm-font-display); font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; color: var(--wpm-text-primary); line-height: 1.3; }
.mod-main .m { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.mod-dur { display: inline-flex; align-items: center; gap: 6px; font-family: var(--wpm-font-mono); font-size: 12px; color: var(--wpm-text-muted); }
.mod-dur svg { width: 13px; height: 13px; }
.mod-cta { display: flex; align-items: center; gap: 14px; }

/* status pastille */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: var(--wpm-radius-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status.done { background: var(--wpm-success-bg); color: var(--wpm-success-text); }
.status.done .dot { background: var(--wpm-success-500); }
.status.current { background: var(--wpm-brand-surface); color: var(--wpm-brand-text); }
.status.current .dot { background: var(--wpm-brand-400); box-shadow: 0 0 0 3px var(--wpm-brand-surface); }
.status.todo { background: var(--wpm-surface-2); color: var(--wpm-text-muted); }
.status.todo .dot { background: var(--wpm-text-muted); }
.status svg { width: 13px; height: 13px; }

/* bonus divider */
.bonus-divider { display: flex; align-items: center; gap: 16px; margin: 40px 0 22px; }
.bonus-divider .ln { flex: 1; height: 1px; background: var(--wpm-border-subtle); }
.bonus-divider .lab { display: inline-flex; align-items: center; gap: 8px; font-family: var(--wpm-font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wpm-accent-text); }
.bonus-divider .lab svg { width: 14px; height: 14px; }
.mod-item.bonus .mod-index { background: var(--wpm-accent-bg); color: var(--wpm-accent-text); border-color: transparent; }

/* in-course summary band */
.course-summary {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px;
  padding: 28px 32px; border-radius: var(--wpm-radius-lg);
  background: var(--wpm-surface-1); border: 1px solid var(--wpm-border); margin-bottom: 36px;
}
.course-summary .cs-bar { max-width: 520px; }
.course-summary .cs-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.course-summary .btn { white-space: nowrap; }
@media (max-width: 720px) { .course-summary { grid-template-columns: 1fr; } }

/* ============================================================
   MODULE PLAYER PAGE (sidebar + main)
   ============================================================ */
.player-layout { display: grid; grid-template-columns: 332px 1fr; gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 80px; }
.course-sidebar { position: sticky; top: 88px; background: var(--wpm-surface-1); border: 1px solid var(--wpm-border); border-radius: var(--wpm-radius-lg); overflow: hidden; }
.sidebar-head { padding: 20px 20px 18px; border-bottom: 1px solid var(--wpm-border-subtle); }
.sidebar-head .back { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--wpm-text-secondary); margin-bottom: 14px; transition: color var(--wpm-dur-fast) var(--wpm-ease); }
.sidebar-head .back:hover { color: var(--wpm-text-primary); }
.sidebar-head .back svg { width: 15px; height: 15px; }
.sidebar-head .t { font-family: var(--wpm-font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.015em; color: var(--wpm-text-primary); margin-bottom: 14px; }
.sidebar-list { padding: 8px; max-height: calc(100vh - 280px); overflow-y: auto; }
.sb-item { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 11px 12px; border-radius: var(--wpm-radius-sm); transition: background var(--wpm-dur-fast) var(--wpm-ease); }
.sb-item:hover { background: var(--wpm-surface-2); }
.sb-item.active { background: var(--wpm-brand-surface); }
.sb-tick { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; border: 1.5px solid var(--wpm-border-strong); color: var(--wpm-text-muted); font-family: var(--wpm-font-mono); font-size: 11px; }
.sb-item.done .sb-tick { background: var(--wpm-success-500); border-color: transparent; color: #fff; }
.sb-item.active .sb-tick { border-color: var(--wpm-brand); color: var(--wpm-brand-300); }
.sb-tick svg { width: 13px; height: 13px; }
.sb-main .t { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--wpm-text-secondary); }
.sb-item.active .sb-main .t { color: var(--wpm-text-primary); font-weight: 600; }
.sb-item.done .sb-main .t { color: var(--wpm-text-muted); }
.sb-main .d { font-family: var(--wpm-font-mono); font-size: 11px; color: var(--wpm-text-muted); margin-top: 3px; }
.sb-group { font-family: var(--wpm-font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--wpm-text-muted); padding: 14px 12px 7px; }
.sb-group:first-child { padding-top: 6px; }

/* player main */
.player-main { min-width: 0; }
.player {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--wpm-radius-lg); overflow: hidden;
  background: var(--wpm-dk-950); border: 1px solid var(--wpm-border);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(83,58,253,0.07) 11px 12px);
  display: flex; align-items: center; justify-content: center;
}
.player-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.player-play { width: 76px; height: 76px; border-radius: 50%; background: var(--wpm-brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--wpm-glow-brand); cursor: pointer; transition: var(--wpm-transition); border: none; }
.player-play:hover { transform: scale(1.06); }
.player-play svg { width: 30px; height: 30px; margin-left: 3px; }
.player-vimeo { position: absolute; top: 16px; left: 18px; font-family: var(--wpm-font-mono); font-size: 11px; color: var(--wpm-text-muted); display: flex; align-items: center; gap: 7px; }
.player-vimeo svg { width: 14px; height: 14px; }
.player-poster .cap { font-family: var(--wpm-font-mono); font-size: 12px; color: var(--wpm-text-muted); }

.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 0 8px; flex-wrap: wrap; }
.player-bar h1 { font-family: var(--wpm-font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.12; color: var(--wpm-text-primary); margin: 0; }
.player-bar .meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.player-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-done { background: var(--wpm-surface-1); color: var(--wpm-text-primary); border: 1px solid var(--wpm-border-strong); }
.btn-done:hover { border-color: var(--wpm-success-text); color: var(--wpm-success-text); background: var(--wpm-success-bg); }
.btn-done.is-done { background: var(--wpm-success-bg); color: var(--wpm-success-text); border-color: transparent; }
.btn-done svg { width: 16px; height: 16px; }

/* content blocks under the player */
.player-block { margin-top: 40px; }
.player-block h2 { font-family: var(--wpm-font-display); font-size: 20px; letter-spacing: -0.018em; color: var(--wpm-text-primary); margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.player-block h2 svg { width: 18px; height: 18px; color: var(--wpm-brand-300); }
.learn-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.learn-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--wpm-text-secondary); }
.learn-list li strong { color: var(--wpm-text-primary); font-weight: 600; }
.learn-list .ck { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--wpm-brand-surface); color: var(--wpm-brand-text); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.learn-list .ck svg { width: 13px; height: 13px; }

.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.download-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--wpm-radius-md); background: var(--wpm-surface-1); border: 1px solid var(--wpm-border); transition: var(--wpm-transition); }
.download-card:hover { border-color: var(--wpm-border-strong); box-shadow: var(--wpm-shadow-sm); transform: translateY(-2px); }
.dl-ico { width: 42px; height: 42px; border-radius: var(--wpm-radius-sm); flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--wpm-brand-surface); color: var(--wpm-brand-text); }
.dl-ico svg { width: 20px; height: 20px; }
.dl-meta { flex: 1; min-width: 0; }
.dl-meta .t { font-family: var(--wpm-font-display); font-weight: 600; font-size: 14.5px; color: var(--wpm-text-primary); line-height: 1.25; }
.dl-meta .d { font-family: var(--wpm-font-mono); font-size: 11.5px; color: var(--wpm-text-muted); margin-top: 3px; }
.dl-go { color: var(--wpm-text-muted); flex-shrink: 0; transition: color var(--wpm-dur-fast) var(--wpm-ease); }
.download-card:hover .dl-go { color: var(--wpm-brand-300); }
.dl-go svg { width: 18px; height: 18px; }

.player-next { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--wpm-border-subtle); flex-wrap: wrap; }
.player-next .next-label { font-family: var(--wpm-font-mono); font-size: 12px; color: var(--wpm-text-muted); }
.player-next .next-title { font-family: var(--wpm-font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.015em; color: var(--wpm-text-primary); margin-top: 4px; }

/* sticky mobile CTA */
.module-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--wpm-surface-1) 94%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--wpm-border); }
.module-sticky .btn { width: 100%; justify-content: center; }

/* ============================================================
   GATING PAGE
   ============================================================ */
.gate-wrap { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 68px); padding: 64px 24px; position: relative; overflow: hidden; }
.gate-wrap::before { content: ""; position: absolute; width: 720px; height: 600px; left: 50%; top: -200px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(83,58,253,0.26), transparent 62%); filter: blur(120px); }
.gate-card { position: relative; z-index: 1; width: 100%; max-width: 520px; text-align: center; background: var(--wpm-surface-1); border: 1px solid var(--wpm-border); border-radius: var(--wpm-radius-lg); padding: 48px 44px; box-shadow: var(--wpm-shadow-lg); }
.gate-lock { width: 64px; height: 64px; border-radius: var(--wpm-radius-md); background: var(--wpm-brand-surface); color: var(--wpm-brand-text); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.gate-lock svg { width: 30px; height: 30px; }
.gate-card .eyebrow { display: block; margin-bottom: 14px; }
.gate-card h1 { font-family: var(--wpm-font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.025em; line-height: 1.15; color: var(--wpm-text-primary); margin: 0 0 14px; }
.gate-card p { font-size: 15.5px; line-height: 1.65; color: var(--wpm-text-secondary); margin: 0 auto 28px; max-width: 400px; }
.gate-actions { display: flex; flex-direction: column; gap: 12px; }
.gate-foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--wpm-border-subtle); display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap; font-family: var(--wpm-font-mono); font-size: 12px; color: var(--wpm-text-muted); }
.gate-foot .it { display: inline-flex; align-items: center; gap: 6px; }
.gate-foot .it svg { width: 13px; height: 13px; color: var(--wpm-success-text); }

/* ============================================================
   END / UPSELL PAGE
   ============================================================ */
.end-hero { position: relative; overflow: hidden; text-align: center; padding-top: 80px; padding-bottom: 24px; }
.end-hero .hero-halo::before { background: radial-gradient(circle, rgba(31,157,95,0.34), transparent 62%); }
.end-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.end-badge { width: 72px; height: 72px; border-radius: 50%; background: var(--wpm-success-bg); color: var(--wpm-success-text); display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; }
.end-badge svg { width: 34px; height: 34px; }
.end-hero h1 { font-family: var(--wpm-font-display); font-weight: 700; font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.04; color: var(--wpm-text-primary); margin: 0 0 16px; }
.end-hero h1 .grad { background: linear-gradient(120deg, var(--wpm-brand-300), var(--wpm-brand-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.end-hero .sub { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--wpm-text-secondary); margin: 0 auto; max-width: 560px; }

.upsell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.upsell-card { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--wpm-radius-lg); background: var(--wpm-surface-1); border: 1px solid var(--wpm-border); transition: var(--wpm-transition); }
.upsell-card:hover { transform: var(--wpm-lift); box-shadow: var(--wpm-shadow-lg); }
.upsell-card.featured { border-color: var(--wpm-brand); box-shadow: var(--wpm-glow-brand); }
.upsell-card.featured::after { content: "Le plus impactant"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--wpm-brand); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: var(--wpm-radius-pill); white-space: nowrap; }
.upsell-card .kicker { font-family: var(--wpm-font-mono); font-size: 12px; color: var(--wpm-text-muted); margin-bottom: 14px; }
.upsell-card h3 { font-family: var(--wpm-font-display); font-size: 21px; letter-spacing: -0.02em; color: var(--wpm-text-primary); margin: 0 0 8px; }
.upsell-card .us-sub { font-size: 14px; line-height: 1.6; color: var(--wpm-text-secondary); margin: 0 0 22px; flex: 1; }
.upsell-card .us-price { font-family: var(--wpm-font-display); font-weight: 700; font-size: 40px; letter-spacing: -0.03em; color: var(--wpm-text-primary); margin-bottom: 4px; }
.upsell-card .us-price small { font-size: 14px; font-weight: 500; color: var(--wpm-text-muted); }
.upsell-card .us-note { font-size: 12.5px; color: var(--wpm-text-muted); margin-bottom: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .player-layout { grid-template-columns: 1fr; }
  .course-sidebar { position: static; order: 2; }
  .player-main { order: 1; }
  .learn-list { grid-template-columns: 1fr; }
  .upsell-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .lms-links { display: none; }
  .lms-account-name { display: none; }
}
@media (max-width: 680px) {
  .mod-item { grid-template-columns: 44px 1fr; gap: 14px; }
  .mod-cta { grid-column: 1 / -1; just-content: space-between; padding-top: 6px; border-top: 1px solid var(--wpm-border-subtle); margin-top: 4px; }
  .module-sticky { display: block; }
  .player-next .btn { width: 100%; justify-content: center; }
}
