/* MonLMS : bloc de la page de présentation d'une formation. S'adapte à la police du thème. */
.monlms-course {
	--mc-accent: #2D5BFF;
	--mc-ink: #141B2D;
	--mc-muted: #5B6478;
	--mc-line: #E6E8EE;
	max-width: 880px;
	margin: 2.5em auto;
	color: var(--mc-ink);
	line-height: 1.55;
}
.monlms-course *, .monlms-course *::before, .monlms-course *::after { box-sizing: border-box; }
.monlms-course h2 { margin: 0 0 4px; font-size: 1.5em; line-height: 1.2; letter-spacing: -0.02em; color: var(--mc-ink); }
.monlms-course .mc-small { margin: 10px 0 0; color: var(--mc-muted); font-size: 14px; }
.monlms-course .mc-small a { color: var(--mc-accent); font-weight: 700; }

.mc-notice { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: #FFF4E5; color: #7A3A00; font-weight: 600; }

/* Connexion */
.mc-login { margin-bottom: 28px; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--mc-line); box-shadow: 0 12px 32px -14px rgba(20, 27, 45, .18); max-width: 520px; }
.mc-login p { margin: 6px 0 16px; color: #3C4458; }
.mc-login form p { margin: 0 0 12px; }
.mc-login label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.mc-login input[type="text"], .mc-login input[type="password"] { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #D5DAE3; border-radius: 10px; font: inherit; background: #fff; color: var(--mc-ink); }
.mc-login input[type="text"]:focus, .mc-login input[type="password"]:focus { outline: none; border-color: var(--mc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc-accent) 22%, transparent); }
.mc-login .login-remember label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.mc-login input[type="submit"] { width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: var(--mc-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* Progression et reprise */
.mc-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 22px 24px; border-radius: 22px; background: color-mix(in srgb, var(--mc-accent) 8%, #fff); border: 1px solid color-mix(in srgb, var(--mc-accent) 18%, transparent); margin-bottom: 28px; }
.mc-hero-main { flex: 1 1 260px; min-width: 0; }
.mc-hero-title { font-weight: 800; font-size: 17px; }
.mc-bar { height: 8px; border-radius: 999px; background: #fff; overflow: hidden; margin: 10px 0 6px; }
.mc-bar span { display: block; height: 100%; border-radius: 999px; background: var(--mc-accent); }
.mc-hero-sub { color: #3C4458; font-size: 14px; }
.monlms-course a.mc-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; padding: 10px 26px; border-radius: 14px; background: var(--mc-accent); color: #fff !important; text-decoration: none !important; font-weight: 800; font-size: 16px; text-align: center; box-shadow: 0 12px 26px color-mix(in srgb, var(--mc-accent) 30%, transparent); transition: transform .12s ease, box-shadow .2s ease; max-width: 100%; }
.monlms-course a.mc-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px color-mix(in srgb, var(--mc-accent) 40%, transparent); }
.mc-btn small { font-size: 12.5px; font-weight: 600; opacity: .85; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-wait { color: var(--mc-muted); font-weight: 600; }

.mc-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; align-items: start; margin-bottom: 10px; }
.mc-offers .monlms-offer { margin: 0; max-width: none; }

/* Programme */
.mc-program { margin-top: 32px; }
.mc-lesson { margin-top: 18px; border: 1px solid var(--mc-line); border-radius: 18px; background: #fff; overflow: hidden; }
.mc-lesson-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #FAFBFC; border-bottom: 1px solid var(--mc-line); }
.mc-lesson-head strong { flex: 1; min-width: 0; font-size: 16px; }
.mc-num { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--mc-accent) 12%, transparent); color: var(--mc-accent); font-weight: 800; font-size: 14px; flex: none; }
.mc-tag { padding: 3px 10px; border-radius: 999px; background: #EEF0F4; color: #3C4458; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.mc-tag.is-amber { background: #FFF4E5; color: #8A4100; }
.monlms-course ul { list-style: none; margin: 0; padding: 6px 0; }
.mc-ch { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 18px; }
.mc-ch > a, .mc-ch > span:not(.mc-dot):not(.mc-meta) { flex: 1; min-width: 0; font-weight: 600; }
.monlms-course .mc-ch > a { color: var(--mc-ink); text-decoration: none; }
.monlms-course .mc-ch > a:hover { color: var(--mc-accent); text-decoration: underline; }
.mc-ch.is-denied > span, .mc-ch.is-locked > span:not(.mc-meta) { color: var(--mc-muted); }
.mc-meta { color: var(--mc-muted); font-size: 13px; white-space: nowrap; }
.mc-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #D5DAE3; flex: none; position: relative; }
.mc-ch.is-open .mc-dot { border-color: var(--mc-accent); }
.mc-ch.is-done .mc-dot { background: var(--mc-accent); border-color: var(--mc-accent); }
.mc-ch.is-done .mc-dot::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mc-ch.is-denied .mc-dot, .mc-ch.is-locked .mc-dot { border-style: dashed; }

@media (max-width: 600px) {
	.mc-hero { padding: 18px; }
	.monlms-course a.mc-btn { width: 100%; }
	.mc-ch { flex-wrap: wrap; padding: 10px 14px; }
	.mc-meta { width: 100%; padding-left: 30px; white-space: normal; }
}

/* Mot de passe oublié */
.mc-ok { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #E9F9EF; color: #166534; font-weight: 600; }
.mc-lost { margin-top: 12px; }
.mc-lost summary { cursor: pointer; color: var(--mc-accent); font-weight: 700; font-size: 14px; }
.mc-lost form { margin-top: 12px; }
.mc-lost input[type="text"] { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #D5DAE3; border-radius: 10px; font: inherit; }
.mc-lost button { min-height: 44px; padding: 0 18px; border: 1.5px solid #D5DAE3; border-radius: 10px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--mc-ink); }
.mc-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Tailles maîtrisées : certains thèmes agrandissent fortement les paragraphes et les listes. */
.monlms-course .mc-ch { font-size: 16px; line-height: 1.4; }
.monlms-course .mc-login h2 { font-size: 24px; }
.monlms-course .mc-login p, .monlms-course .mc-login label, .monlms-course .mc-notice { font-size: 15px; line-height: 1.5; }
.monlms-course .mc-lesson-head strong { font-size: 16px; }
.monlms-course .mc-program > h2 { font-size: 26px; }

/* Connexion par lien */
.mc-magic { margin: 6px 0 0; }
.mc-magic p { margin: 0 0 12px; }
.mc-magic input[type="email"] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #D5DAE3; border-radius: 10px; font: inherit; background: #fff; color: var(--mc-ink); }
.mc-magic input[type="email"]:focus { outline: none; border-color: var(--mc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc-accent) 22%, transparent); }
.mc-magic button { width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: var(--mc-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.monlms-course .mc-help { margin: 8px 0 0; color: var(--mc-muted); font-size: 13.5px; text-align: center; }
.mc-password { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--mc-line); }
.mc-password > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: #3C4458; }
.mc-password form { margin-top: 12px; }
.mc-password input[type="submit"] { background: var(--mc-ink); }
.monlms-course button, .monlms-course input[type="submit"] { font-size: 16px; line-height: 1.2; }
.monlms-course .mc-lost button { font-size: 15px; }
