/*
 * Z Academy 2.0 — thème « registre et modèle » : l'encre et le papier des
 * documents budgétaires, le surligneur de l'analyste, le guillochis des
 * billets. Propriétés logiques (inline/block) pour un affichage correct en arabe.
 */
:root {
	--zt-primary: #1b2b5e;
	--zt-accent: #f2c14e;
	--zt-ink: #0f1a33;
	--zt-muted: #4b5670;
	--zt-line: #d8dee9;
	--zt-line-strong: #b7c0d0;
	--zt-ground: #f3f5f8;
	--zt-surface: #ffffff;
	--zt-soft: #ebeff8;
	--zt-ok: #0d7a6f;
	--zt-ko: #b4382e;
	--zt-night: #0d1630;
	--zt-radius: 14px;
	--zt-wrap: 1180px;
	--zt-font: "Readex Pro", system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", sans-serif;
	--za-ink: var(--zt-ink);
	--za-muted: var(--zt-muted);
	--za-line: var(--zt-line);
	--za-soft: var(--zt-soft);
	--za-ok: var(--zt-ok);
	--za-ko: var(--zt-ko);
	--za-paper: var(--zt-ground);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--zt-ground); color: var(--zt-ink); font-family: var(--zt-font); font-size: 17px; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; }
:lang(ar) body, body:lang(ar) { line-height: 1.75; }
img { max-width: 100%; height: auto; }
a { color: var(--zt-primary); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--zt-accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--zt-font); line-height: 1.15; color: var(--zt-ink); margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.015em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 1.3rem + 0.9vw, 2.05rem); }
h3 { font-size: 1.24rem; }
p { margin: 0 0 1em; }
table { font-variant-numeric: tabular-nums; }

.zt-wrap { width: min(100% - 32px, var(--zt-wrap)); margin-inline: auto; }
.zt-narrow { max-width: 760px; }
.zt-measure { max-width: 62ch; }
.zt-main { display: block; min-height: 60vh; }
.zt-section { padding-block: clamp(48px, 7vw, 88px); }
.zt-section-soft { background: var(--zt-surface); }
.zt-section-head { margin-bottom: 28px; }
.zt-section-head h2 { margin-bottom: 0.3em; }
.zt-section-head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.zt-section-head-row h2 { margin: 0; }
.zt-section-head-row p { margin: 0; }
.zt-kicker { margin: 0 0 0.7em; font-size: 0.95rem; font-weight: 500; color: var(--zt-muted); }
.zt-lead { font-size: 1.15rem; color: var(--zt-muted); max-width: 60ch; font-weight: 300; }
.zt-small { font-size: 0.86rem; color: var(--zt-muted); }
.zt-center { text-align: center; }
.zt-sr, .za-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.zt-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--zt-ink); color: #fff; border-radius: 8px; }
.zt-skip:focus { top: 12px; }

/* Boutons */
.zt-btn, .za-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45em; min-height: 48px; padding: 0 1.35em; border: 1px solid var(--zt-primary); border-radius: 10px; background: var(--zt-primary); color: #fff !important; font: inherit; font-weight: 500; text-decoration: none !important; cursor: pointer; line-height: 1.2; transition: background 0.15s ease; }
.zt-btn:hover, .za-btn:hover { background: var(--zt-ink); filter: none; }
.zt-btn-ghost, .za-btn-light { background: transparent; color: var(--zt-primary) !important; border-color: var(--zt-line-strong); }
.zt-btn-ghost:hover, .za-btn-light:hover { background: var(--zt-surface); border-color: var(--zt-primary); }
.zt-btn-accent { background: var(--zt-accent); border-color: var(--zt-accent); color: var(--zt-ink) !important; }
.zt-btn-accent:hover { background: #f6cf6d; }
.zt-btn-small { min-height: 40px; padding: 0 1em; font-size: 0.93rem; white-space: nowrap; }
@media (max-width: 1260px) { .zt-brand-desc { display: none; } .zt-nav { gap: 14px; } .zt-menu a { padding-inline: 9px; } }
.zt-btn-gold { background: var(--zt-accent); border-color: var(--zt-accent); color: var(--zt-ink) !important; }
.zt-btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, 0.45); }
.zt-actions, .za-demo-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.zt-actions .za-demo-cta { display: contents; }
.zt-actions .za-demo-cta .za-muted { display: none; }
.zt-link-arrow { font-weight: 500; }
.zt-link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* En-tête */
.zt-header { background: var(--zt-surface); border-bottom: 1px solid var(--zt-line); position: relative; z-index: 20; }
.zt-header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.zt-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--zt-ink) !important; margin-inline-end: auto; }
.zt-brand-mark { color: var(--zt-primary); flex: none; }
.zt-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.zt-brand-name { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.zt-brand-desc { font-size: 0.8rem; color: var(--zt-muted); }
.custom-logo-link { margin-inline-end: auto; display: inline-flex; }
.custom-logo { max-height: 48px; width: auto; }
.zt-nav { display: flex; align-items: center; gap: 24px; }
.zt-menu, .zt-footer-menu { list-style: none; margin: 0; padding: 0; }
.zt-menu { display: flex; gap: 4px; }
.zt-menu a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 8px; color: var(--zt-ink); text-decoration: none; font-weight: 500; }
.zt-menu a:hover { background: var(--zt-soft); }
.zt-menu .current-menu-item > a, .zt-menu a[aria-current] { box-shadow: inset 0 -2px 0 var(--zt-primary); border-radius: 0; }
.zt-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.zt-header-tools { display: flex; align-items: center; gap: 10px; }
.zt-lang ul { display: flex; list-style: none; margin: 0; padding: 3px; gap: 2px; background: var(--zt-soft); border-radius: 9px; }
.zt-lang a { display: block; padding: 4px 10px; border-radius: 7px; color: var(--zt-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.zt-lang a.is-active { background: var(--zt-surface); color: var(--zt-ink); box-shadow: 0 1px 2px rgba(15, 26, 51, 0.12); }
.zt-quick { display: none; }
.zt-icon-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--zt-ink); }
.zt-icon-link:hover { background: var(--zt-soft); }
.zt-badge[hidden] { display: none; }
.zt-badge { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--zt-ko); color: #fff; font-size: 0.7rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.zt-menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--zt-line-strong); border-radius: 10px; background: var(--zt-surface); color: var(--zt-ink); font: inherit; font-weight: 500; cursor: pointer; }
.zt-menu-bars, .zt-menu-bars::before, .zt-menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.zt-menu-bars::before, .zt-menu-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.zt-menu-bars::before { top: -6px; }
.zt-menu-bars::after { top: 6px; }

/* Accueil : bandeau */
.zt-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--zt-line); }
.zt-hero::before { content: ""; position: absolute; width: min(760px, 90vw); aspect-ratio: 1; inset-inline-end: -12%; top: 50%; translate: 0 -50%; background: var(--zt-primary); opacity: 0.09; -webkit-mask: url(../img/guilloche.svg) center / contain no-repeat; mask: url(../img/guilloche.svg) center / contain no-repeat; pointer-events: none; }
.zt-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.zt-hero h1 { font-size: clamp(2.2rem, 1.4rem + 2.9vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 0.45em; max-width: 17ch; }
:lang(ar) .zt-hero h1 { line-height: 1.3; letter-spacing: 0; }
.zt-hero .zt-lead { margin-bottom: 1.6em; }
.zt-hero-img { border-radius: var(--zt-radius); display: block; }

/* Registre illustré */
.zt-ledger { margin: 0; background: var(--zt-surface); border: 1px solid var(--zt-line); border-top: 3px solid var(--zt-ink); border-radius: 4px 4px var(--zt-radius) var(--zt-radius); padding: 18px 20px 20px; box-shadow: 0 24px 48px -28px rgba(15, 26, 51, 0.35); font-variant-numeric: tabular-nums; }
.zt-ledger-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; }
.zt-ledger-unit { font-weight: 400; color: var(--zt-muted); font-size: 0.82rem; }
.zt-ledger-table { position: relative; }
.zt-ledger-row { position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 0.8fr)); gap: 8px; padding: 9px 6px; border-bottom: 1px solid var(--zt-line); font-size: 0.93rem; }
.zt-ledger-row > span:not(:first-child) { text-align: end; }
.zt-ledger-head { font-size: 0.78rem; color: var(--zt-muted); font-weight: 500; border-bottom: 1.5px solid var(--zt-ink); }
.zt-ledger-row.is-flag { background-image: linear-gradient(var(--zt-accent), var(--zt-accent)); background-repeat: no-repeat; background-size: 100% 100%; background-position: 0 0; font-weight: 600; border-radius: 3px; }
[dir="rtl"] .zt-ledger-row.is-flag { background-position: 100% 0; }
.zt-ledger-row.is-flag > span:last-child { color: var(--zt-ko); }
.zt-ledger-scan { position: absolute; inset-inline: -6px; top: 0; height: 2px; background: var(--zt-ok); box-shadow: 0 0 0 4px rgba(13, 122, 111, 0.14); opacity: 0; pointer-events: none; }
.zt-ledger-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; font-size: 0.88rem; color: var(--zt-muted); }
.zt-ledger-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--zt-ok) 12%, #fff); color: var(--zt-ok); font-weight: 600; font-size: 0.8rem; }
.zt-ledger-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
	.zt-ledger-scan { animation: zt-scan 2.2s 0.4s cubic-bezier(0.45, 0, 0.3, 1) forwards; }
	.zt-ledger-row.is-flag { animation: zt-mark 0.7s 1.45s ease-out backwards; }
	.zt-ledger-note { animation: zt-rise 0.5s 2.1s ease-out backwards; }
}
@keyframes zt-scan { 0% { opacity: 1; top: 0; } 85% { opacity: 1; top: 100%; } 100% { opacity: 0; top: 100%; } }
@keyframes zt-mark { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
@keyframes zt-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Parcours en quatre étapes */
.zt-journey { background: var(--zt-surface); border-bottom: 1px solid var(--zt-line); }
.zt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--zt-ink); }
.zt-steps li { position: relative; padding: 22px 24px 8px 0; }
.zt-steps li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--zt-line); }
.zt-step-num { display: block; font-size: 2.6rem; line-height: 1; font-weight: 300; color: var(--zt-primary); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.zt-steps h3 { margin-bottom: 0.35em; }
.zt-steps p { color: var(--zt-muted); margin: 0; }
.zt-scorecard { margin-top: 40px; padding: 20px 24px; border-radius: var(--zt-radius); background: var(--zt-ground); }
.zt-scorecard-label { margin: 0 0 10px; font-size: 0.85rem; color: var(--zt-muted); }
.zt-scorecard-row { display: grid; grid-template-columns: auto minmax(120px, 1fr) auto auto; align-items: center; gap: 12px 20px; }
.zt-scorecard-row strong { font-variant-numeric: tabular-nums; }
.zt-scorecard-bar { position: relative; height: 10px; border-radius: 6px; background: var(--zt-line); overflow: hidden; }
.zt-scorecard-bar span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 6px; }
.zt-scorecard-after { width: 80%; background: var(--zt-ok); }
.zt-scorecard-before { width: 35%; background: var(--zt-primary); z-index: 1; }
.zt-scorecard-gain { font-weight: 700; font-size: 1.3rem; color: var(--zt-ok); font-variant-numeric: tabular-nums; }

/* Formations */
.zt-course-grid { display: grid; gap: 20px; }
.zt-course-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: var(--zt-radius); overflow: hidden; }
.zt-course-code { position: relative; background: var(--zt-primary); color: #fff; display: flex; align-items: flex-end; padding: 18px; min-height: 180px; overflow: hidden; }
.zt-course-code::before { content: ""; position: absolute; inset: -40% -60% auto auto; width: 260px; aspect-ratio: 1; background: #fff; opacity: 0.14; -webkit-mask: url(../img/guilloche.svg) center / contain no-repeat; mask: url(../img/guilloche.svg) center / contain no-repeat; }
.zt-course-code span { position: relative; font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }
.zt-course-code img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zt-course-body { padding: 22px 26px 24px; display: flex; flex-direction: column; }
.zt-course-title { font-size: 1.4rem; margin-bottom: 0.4em; }
.zt-course-title a { color: var(--zt-ink); text-decoration: none; }
.zt-course-title a:hover { text-decoration: underline; }
.zt-course-excerpt { color: var(--zt-muted); max-width: 70ch; }
.zt-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 18px; }
.zt-facts > div { display: flex; flex-direction: column; }
.zt-facts dt { font-size: 0.78rem; color: var(--zt-muted); }
.zt-facts dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.zt-course-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; max-width: 420px; }
.zt-course-progress .za-progress { flex: 1; margin: 0; }
.zt-course-cta { margin: auto 0 0; }

/* Chiffres clés */
.zt-stats { background: var(--zt-surface); border-block: 1px solid var(--zt-line); }
.zt-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.zt-stat { margin: 0; padding: 24px 0; display: flex; flex-direction: column; }
.zt-stat strong { font-size: 2.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.zt-stat span { color: var(--zt-muted); }

/* Vérification */
.zt-verify-band { position: relative; background: var(--zt-primary); color: #fff; padding-block: 48px; overflow: hidden; }
.zt-verify-band h2 { color: #fff; }
.zt-verify-band p { color: rgba(255, 255, 255, 0.8); margin: 0; }
.zt-verify-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.zt-verify-form { display: flex; gap: 10px; }
.zt-verify-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; letter-spacing: 0.04em; }
.zt-verify-form input::placeholder { color: rgba(255, 255, 255, 0.55); }

/* Pied de page */
.zt-footer { position: relative; background: var(--zt-night); color: rgba(255, 255, 255, 0.78); padding-block: 64px 28px; font-size: 0.95rem; }
.zt-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 72px; background: var(--zt-accent); opacity: 0.22; -webkit-mask: url(../img/guilloche-band.svg) center / 100% 100% no-repeat; mask: url(../img/guilloche-band.svg) center / 100% 100% no-repeat; pointer-events: none; }
.zt-footer a { color: #fff; }
.zt-footer .zt-brand { color: #fff !important; }
.zt-footer .zt-brand-mark { color: #fff; }
.zt-footer .zt-brand-mark path { stroke: var(--zt-night); }
.zt-footer .zt-brand-desc { color: rgba(255, 255, 255, 0.6); }
.zt-footer-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.zt-footer-widgets .widget-title, .zt-footer-widgets h2 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.zt-footer-widgets ul { list-style: none; margin: 0 0 16px; padding: 0; }
.zt-footer-widgets .widget { margin-bottom: 12px; }
.zt-footer-about p { margin-top: 14px; max-width: 42ch; }
.zt-footer-title { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.zt-footer-menu li, .zt-footer-contact li { margin-bottom: 6px; }
.zt-footer-contact ul { list-style: none; margin: 0; padding: 0; }
.zt-footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.85rem; }
.zt-footer-bottom p { margin: 0; }
.zt-footer .za-pwa-msg { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* En-têtes de pages */
.zt-page-hero { padding-block: clamp(36px, 6vw, 64px) 28px; border-bottom: 1px solid var(--zt-line); background: var(--zt-surface); }
.zt-page-hero h1 { margin-bottom: 0.25em; }
.zt-breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 16px; padding: 0; font-size: 0.88rem; color: var(--zt-muted); }
.zt-breadcrumbs li + li::before { content: "/"; margin-inline: 8px; color: var(--zt-line-strong); }
.zt-breadcrumbs a { color: var(--zt-muted); }

/* Page d'une formation */
.zt-course-hero { position: relative; overflow: hidden; background: var(--zt-surface); border-bottom: 1px solid var(--zt-line); padding-block: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 44px); }
.zt-course-hero::after { content: ""; position: absolute; width: 520px; aspect-ratio: 1; inset-inline-end: -180px; top: -160px; background: var(--zt-primary); opacity: 0.07; -webkit-mask: url(../img/guilloche.svg) center / contain no-repeat; mask: url(../img/guilloche.svg) center / contain no-repeat; pointer-events: none; }
.zt-course-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.zt-course-hero h1 { max-width: 22ch; }
.zt-facts-hero { flex-direction: column; gap: 10px; margin: 0; padding-inline-start: 24px; border-inline-start: 2px solid var(--zt-ink); min-width: 200px; }
.zt-course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; padding-block: 40px 72px; align-items: start; }
.zt-course-aside { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.zt-course-aside .za-enroll, .zt-course-aside .za-cert-box { margin: 0; background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: var(--zt-radius); padding: 20px; }
.zt-course-aside .za-demo-cta { flex-direction: column; align-items: stretch; text-align: center; gap: 4px; }
.zt-course-about { margin-top: 48px; }

/* Pages de cours */
.zt-learning-wrap { max-width: 1000px; }
.zt-learning-head { background: var(--zt-surface); border-bottom: 1px solid var(--zt-line); padding-block: 28px 26px; }
.zt-learning-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); max-width: 30ch; margin: 0; }
.zt-learning-head .zt-kicker { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.zt-kicker-num { color: var(--zt-primary); font-weight: 600; }
.zt-learning-content { padding-block: 28px 32px; }
.zt-learning-nav { padding-bottom: 64px; }
.zt-course-nav { background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: var(--zt-radius); }
.zt-course-nav summary { cursor: pointer; padding: 16px 20px; display: flex; flex-direction: column; list-style: none; }
.zt-course-nav summary::-webkit-details-marker { display: none; }
.zt-course-nav-title { font-weight: 600; }
.zt-course-nav summary::after { content: "+"; position: absolute; inset-inline-end: 20px; font-size: 1.4rem; line-height: 1; color: var(--zt-muted); }
.zt-course-nav { position: relative; }
.zt-course-nav[open] summary::after { content: "−"; }
.zt-course-nav ol { list-style: none; margin: 0; padding: 0 20px 8px; }
.zt-course-nav li a { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--zt-line); color: var(--zt-ink); text-decoration: none; }
.zt-course-nav li a:hover { color: var(--zt-primary); text-decoration: underline; }
.zt-nav-num { color: var(--zt-muted); font-variant-numeric: tabular-nums; min-width: 1.8em; }
.zt-course-nav li.is-done .zt-nav-num { color: var(--zt-ok); font-weight: 600; }
.zt-course-nav li.is-current a { font-weight: 600; }
.zt-course-nav p { margin: 0; padding: 4px 20px 16px; }

/* Contenu rédigé (articles, cours) */
.zt-content { min-width: 0; }
.zt-content > * { max-width: 72ch; }
.zt-content .za-lesson, .zt-content .za-front, .zt-content .za-table-wrap, .zt-content table, .zt-content .alignwide, .zt-content .alignfull, .zt-content figure { max-width: none; }
.zt-content .za-article > *, .zt-content .za-front > p, .zt-content .za-front > ul, .zt-content .za-front > ol, .zt-content .za-front > h2, .zt-content .za-front > h3 { max-width: 72ch; }
.zt-content .za-article .za-table-wrap, .zt-content .za-article .za-activities { max-width: none; }
.zt-content h2 { margin-top: 1.7em; }
.zt-content h3 { margin-top: 1.4em; }
.zt-content ul, .zt-content ol { padding-inline-start: 1.3em; }
.zt-content li { margin-bottom: 0.35em; }
.zt-content blockquote { margin: 1.4em 0; padding-inline-start: 1.2em; border-inline-start: 3px solid var(--zt-accent); color: var(--zt-muted); }
.zt-featured { margin: 0 0 24px; }
.zt-featured img { border-radius: var(--zt-radius); }

/* Blocs pédagogiques de l'extension, aux couleurs du thème */
.za-front .za-definition { background: var(--zt-surface); border: 1px solid var(--zt-line); border-inline-start: 4px solid var(--zt-primary); }
.za-front .za-definition-terme { color: var(--zt-primary); }
.za-front .za-exemple { background: color-mix(in srgb, var(--zt-accent) 16%, #fff); }
.za-front .za-retenir { background: var(--zt-surface); border: 1px solid var(--zt-line); border-top: 3px solid var(--zt-ink); border-radius: 4px 4px 10px 10px; }
.za-front .za-table th { background: transparent; border-bottom: 2px solid var(--zt-ink); }
.za-front .za-glossaire { display: grid; grid-template-columns: minmax(8em, max-content) 1fr; gap: 6px 18px; }
.za-front .za-glossaire dt { margin: 0; }
.za-front .za-glossaire dd { margin: 0; color: var(--zt-muted); }
.za-notice { background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 10px; }
.za-notice-ok { border-color: color-mix(in srgb, var(--zt-ok) 40%, #fff); background: color-mix(in srgb, var(--zt-ok) 8%, #fff); }
.za-badge { background: var(--zt-soft); color: var(--zt-primary); }
.za-qcard, .za-choice { background: var(--zt-surface); }
.za-choice { border-color: var(--zt-line); }
.za-choice:has(input:checked) { border-color: var(--zt-primary); background: var(--zt-soft); }
.za-score { background: var(--zt-surface); font-variant-numeric: tabular-nums; }
.za-progress { background: var(--zt-line); }
.za-progress span { background: var(--zt-ok); }

/* Pages de l'extension (mon espace, inscription, certificats) */
.za-page { padding-block: 32px 64px; }
.za-page .za-container { width: min(100% - 32px, var(--zt-wrap)); max-width: none; }
.za-page .za-narrow { max-width: 640px; }
.za-page-head { margin-bottom: 16px; }
.za-espace .za-card, .za-journey { background: var(--zt-surface); }
.za-journey { border: 1px solid var(--zt-line); border-top: 3px solid var(--zt-primary); border-radius: 4px 4px var(--zt-radius) var(--zt-radius); padding: 22px 24px; box-shadow: none; }
.za-register .za-card { background: var(--zt-surface); border: 1px solid var(--zt-line); border-top: 3px solid var(--zt-primary); }
.za-register .za-demo-cta { margin-bottom: 18px; }
.za-cert-page { background: #e6e9ef; }

/* Commentaires et articles de blog */
.zt-comments { margin-top: 48px; }
.zt-comment-list { list-style: none; padding: 0; }
.zt-post-list { display: grid; gap: 20px; }
.zt-post-card { display: grid; grid-template-columns: 240px 1fr; gap: 20px; background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: var(--zt-radius); overflow: hidden; }
.zt-post-card > div { padding: 18px 20px 4px 0; }
.zt-post-card:not(:has(img)) { grid-template-columns: 1fr; }
.zt-post-card:not(:has(img)) > div { padding-inline-start: 20px; }
.zt-post-card h2 { font-size: 1.3rem; }
.zt-post-card h2 a { color: var(--zt-ink); text-decoration: none; }
.zt-page-links { margin-top: 24px; }
.nav-links { display: flex; gap: 8px; margin-top: 32px; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--zt-line); background: var(--zt-surface); text-decoration: none; }
.nav-links .current { background: var(--zt-primary); color: #fff; border-color: var(--zt-primary); }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { min-height: 46px; padding: 0 12px; border: 1px solid var(--zt-line-strong); border-radius: 10px; font: inherit; }

/* Formulaires génériques */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="search"], select, textarea { font: inherit; color: var(--zt-ink); }

/* Écrans moyens et petits */
@media (max-width: 1100px) {
	.zt-menu-toggle { display: inline-flex; }
	.zt-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; background: var(--zt-surface); border-bottom: 1px solid var(--zt-line); box-shadow: 0 16px 24px -16px rgba(15, 26, 51, 0.3); }
	.zt-nav.is-open { display: flex; }
	.zt-menu { flex-direction: column; }
	.zt-header-tools { flex-wrap: wrap; }
	.zt-quick { display: flex; }
	.zt-header-tools .zt-icon-link { display: none; }
	.zt-hero-grid, .zt-verify-grid { grid-template-columns: 1fr; }
	.zt-hero h1 { max-width: 18ch; }
	.zt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zt-steps li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
	.zt-course-layout { grid-template-columns: 1fr; gap: 28px; }
	.zt-course-aside { position: static; order: -1; }
	.zt-footer-grid { grid-template-columns: 1fr 1fr; }
	.zt-footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.zt-header-inner { min-height: 64px; gap: 12px; }
	.zt-brand-desc { display: none; }
	.zt-steps { grid-template-columns: 1fr; }
	.zt-steps li, .zt-steps li + li { padding: 18px 0 14px; border-inline-start: 0; border-bottom: 1px solid var(--zt-line); }
	.zt-step-num { font-size: 2rem; margin-bottom: 8px; }
	.zt-scorecard-row { grid-template-columns: 1fr auto; }
	.zt-scorecard-bar { grid-column: 1 / -1; grid-row: 2; }
	.zt-course-card { grid-template-columns: 1fr; }
	.zt-course-code { min-height: 96px; }
	.zt-course-hero-grid { grid-template-columns: 1fr; }
	.zt-facts-hero { flex-direction: row; flex-wrap: wrap; gap: 10px 24px; padding-inline-start: 14px; }
	.zt-ledger { padding: 14px 12px 16px; }
	.zt-learning-head .zt-breadcrumbs li:last-child:not(:first-child) { display: none; }
	.zt-learning-head .zt-kicker-chapter { font-size: 0.85rem; }
	.zt-ledger-row { font-size: 0.82rem; gap: 6px; padding-inline: 4px; }
	.zt-verify-form { flex-direction: column; }
	.zt-footer-grid { grid-template-columns: 1fr; }
	.zt-post-card { grid-template-columns: 1fr; }
	.zt-post-card > div { padding: 0 18px 4px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; }
}
@media print {
	.zt-header, .zt-footer, .zt-learning-nav, .za-stepper, .za-views, .za-deck-bar { display: none !important; }
	body { background: #fff; }
}
