/* EKEM Academy · composants (piste D, style sobre). Source : maquettes du canevas Claude Design.
   Préfixe ek-. Points de rupture : tablette ≤ 1024 px, mobile ≤ 767 px. */

:root {
	--ek-ink: #0A1433; --ek-muted: #56607A; --ek-blue: #2E5BFF; --ek-blue-d: #1F44D6;
	--ek-amber: #FFB938; --ek-amber-t: #FFF4DC; --ek-tint: #EEF2FF; --ek-bg: #F7F9FE;
	--ek-line: #DDE4F7; --ek-line2: #E6EAF5; --ek-field: #8E97AE; --ek-ph: #6B7490;
	--ek-ok: #0F7553; --ek-ok-t: #E7F5EF; --ek-err: #C2362B; --ek-err-t: #FDECEA;
	--ek-r: 8px; --ek-font: 'Manrope', 'Segoe UI', system-ui, sans-serif;
	--ek-shadow: 0 16px 32px rgba(10, 20, 51, .08); --ek-shadow-lg: 0 24px 48px rgba(10, 20, 51, .14);
}

/* ---------- base ---------- */
.ek, .ek * { box-sizing: border-box; }
.ek { font-family: var(--ek-font); color: var(--ek-ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.ek a { color: var(--ek-blue); }
.ek a:hover { color: var(--ek-blue-d); }
.ek :focus-visible { outline: 2px solid var(--ek-blue); outline-offset: 2px; }
.ek img { max-width: 100%; height: auto; }
.ek h1, .ek h2, .ek h3, .ek h4 { font-family: var(--ek-font); color: var(--ek-ink); margin: 0; font-weight: 700; letter-spacing: -.02em; }
.ek p { margin: 0; }
.ek ul, .ek ol { margin: 0; padding: 0; list-style: none; }
.ek-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ek-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 12px; border-radius: 6px; }
.ek-skip:focus { left: 8px; }

.ek-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ek-section { padding: 72px 0; background: #fff; }
.ek-section--bg { background: var(--ek-bg); border-top: 1px solid var(--ek-line2); }
.ek-section--tint { background: var(--ek-tint); }
.ek-section--amber { background: var(--ek-amber-t); }
.ek-section--tight { padding: 56px 0; }
.ek-stack { display: flex; flex-direction: column; }
.ek-row { display: flex; align-items: center; }
.ek-gap-6 { gap: 6px; } .ek-gap-8 { gap: 8px; } .ek-gap-10 { gap: 10px; } .ek-gap-12 { gap: 12px; } .ek-gap-14 { gap: 14px; } .ek-gap-16 { gap: 16px; } .ek-gap-20 { gap: 20px; } .ek-gap-24 { gap: 24px; } .ek-gap-32 { gap: 32px; }
.ek-wrap { flex-wrap: wrap; }
.ek-grid { display: grid; gap: 24px; }
.ek-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ek-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ek-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ek-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ek-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }

/* ---------- typographie ---------- */
.ek-h1 { font-size: 48px; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
.ek-h1--44 { font-size: 44px; } .ek-h1--40 { font-size: 40px; line-height: 1.15; } .ek-h1--36 { font-size: 36px; line-height: 1.2; } .ek-h1--30 { font-size: 30px; line-height: 1.2; }
.ek-h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.ek-h3 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.ek-h4 { font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: 0; }
.ek-lead { font-size: 18px; line-height: 1.6; color: var(--ek-muted); }
.ek-sub { font-size: 17px; color: var(--ek-muted); margin-top: 8px; max-width: 720px; }
.ek-muted { color: var(--ek-muted); }
.ek-small { font-size: 14px; } .ek-xs { font-size: 13px; } .ek-xxs { font-size: 12px; }
.ek-strong { font-weight: 700; } .ek-semi { font-weight: 600; }
.ek-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }

/* ---------- boutons ---------- */
.ek-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--ek-r); font: 600 16px/1 var(--ek-font); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.ek .ek-btn--primary, .ek-btn--primary { background: var(--ek-blue); color: #fff; }
.ek .ek-btn--primary:hover { background: var(--ek-blue-d); color: #fff; }
.ek .ek-btn--dark { background: var(--ek-ink); color: #fff; }
.ek .ek-btn--dark:hover { background: #1E2A4F; color: #fff; }
.ek .ek-btn--outline { background: #fff; color: var(--ek-blue); border: 1.5px solid var(--ek-blue); }
.ek .ek-btn--outline:hover { background: var(--ek-tint); color: var(--ek-blue-d); }
.ek .ek-btn--ghost { background: #fff; color: var(--ek-ink); border: 1px solid var(--ek-line); }
.ek .ek-btn--ghost:hover { border-color: var(--ek-field); color: var(--ek-ink); }
.ek .ek-btn--white { background: #fff; color: var(--ek-ink); }
.ek-btn--lg { height: 52px; } .ek-btn--xl { height: 54px; font-size: 17px; }
.ek-btn--sm { height: 40px; padding: 0 14px; font-size: 14px; } .ek-btn--md { height: 44px; font-size: 15px; }
.ek-btn--block { display: flex; width: 100%; }
.ek-btn[aria-disabled="true"] { background: #fff; color: var(--ek-muted); border: 1px solid var(--ek-line); cursor: not-allowed; }
.ek-link { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ek-icon { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- puces et étiquettes ---------- */
.ek-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ek-blue-d); background: var(--ek-tint); padding: 4px 10px; border-radius: 4px; white-space: nowrap; }
.ek-chip--neutral { background: var(--ek-bg); color: var(--ek-ink); font-size: 14px; }
.ek-chip--white { background: #fff; color: var(--ek-ink); }
.ek-chip--ok { background: var(--ek-ok-t); color: var(--ek-ok); }
.ek-chip--amber { background: var(--ek-amber-t); color: var(--ek-ink); }
.ek-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid var(--ek-line); background: #fff; color: var(--ek-ink); }
.ek-pill--active { background: var(--ek-tint); color: var(--ek-blue-d); border-color: transparent; }
.ek-badge { position: absolute; top: -13px; left: 24px; font-size: 12px; font-weight: 700; color: #fff; background: var(--ek-blue); padding: 4px 10px; border-radius: 4px; }
.ek-ico-box { flex: none; width: 40px; height: 40px; border-radius: var(--ek-r); background: var(--ek-tint); display: grid; place-items: center; }
.ek-ico-box--amber { background: var(--ek-amber-t); } .ek-ico-box--white { background: #fff; } .ek-ico-box--ok { background: var(--ek-ok-t); }
.ek-ico-box--44 { width: 44px; height: 44px; } .ek-ico-box--36 { width: 36px; height: 36px; }

/* ---------- cartes ---------- */
.ek-card { border: 1px solid var(--ek-line); border-radius: var(--ek-r); background: #fff; }
.ek-card--pad { padding: 22px; } .ek-card--pad-lg { padding: 26px; } .ek-card--pad-sm { padding: 18px; }
.ek-card--bg { background: var(--ek-bg); }
.ek-card--shadow { box-shadow: var(--ek-shadow); }
.ek-panel { border-radius: var(--ek-r); padding: 26px; }
.ek-panel--tint { background: var(--ek-tint); } .ek-panel--amber { background: var(--ek-amber-t); } .ek-panel--bg { background: var(--ek-bg); }
.ek-dashed { border: 1.5px dashed var(--ek-line); border-radius: var(--ek-r); }
.ek-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ek-muted); }
.ek-disclaim { font-size: 12px; color: var(--ek-muted); margin-top: 14px; }
.ek-divider { height: 1px; background: var(--ek-line2); }

/* ---------- listes ---------- */
.ek-checks { display: flex; flex-direction: column; gap: 10px; }
.ek-checks--row { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
.ek-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.ek-checks--sm li { font-size: 14px; }
.ek-tools { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.ek-tool { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ek-muted); }

/* ---------- couverture de formation (gabarit unique, mis à l'échelle par container queries) ---------- */
.ek-cover { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; background: var(--ek-blue); color: #fff; font-family: var(--ek-font); }
.ek-cover--ink { background: var(--ek-ink); }
.ek-cover--amber { background: var(--ek-amber); color: var(--ek-ink); }
.ek-cover--light { background: #DCE4FF; color: var(--ek-ink); }
.ek-cover__wm { position: absolute; right: -11.25cqw; top: -13.75cqw; width: 65.6cqw; height: 65.6cqw; opacity: .13; }
.ek-cover__wm circle { display: none; } /* le point du filigrane tombait sous le bouton « Voir l'aperçu » */
/* Logo des couvertures : mêmes proportions que le logo du site (symbole 1,5 × le texte, écart 0,45 ×, espace normal entre « ekem » et « academy »). */
.ek-cover__brand { position: absolute; left: 5cqw; top: 4.4cqw; display: flex; align-items: center; gap: 1.49cqw; white-space: nowrap; }
.ek-cover__brand svg { width: 4.95cqw; height: 4.95cqw; flex: none; }
.ek-cover__brand b { font-size: 3.3cqw; font-weight: 700; letter-spacing: -.03em; }
.ek-cover__brand b span { font-weight: 500; }
.ek-cover__title { position: absolute; left: 5cqw; top: 12.5cqw; width: 61cqw; font-size: 6.56cqw; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.ek-cover__domain { position: absolute; left: 5cqw; bottom: 15.6cqw; font-size: 3.45cqw; font-weight: 600; }
.ek-cover--blue .ek-cover__domain { color: #F2F5FF; } .ek-cover--ink .ek-cover__domain { color: #C9D6FF; } .ek-cover--light .ek-cover__domain { color: #3D4763; }
.ek-cover__tools { position: absolute; left: 5cqw; bottom: 4.4cqw; display: flex; gap: 1.9cqw; }
.ek-cover__tools span { width: 8.1cqw; height: 8.1cqw; border-radius: 1.9cqw; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(10, 20, 51, .15); }
.ek-cover__tools svg { width: 4.7cqw; height: 4.7cqw; }
.ek-cover__face { position: absolute; right: 5cqw; bottom: 5cqw; width: 23cqw; height: 23cqw; border-radius: 50%; border: .94cqw solid #fff; overflow: hidden; box-shadow: 0 6px 16px rgba(10, 20, 51, .25); background: linear-gradient(160deg, #DCE4FF, #FFF4DC); display: grid; place-items: center; font-size: 6.9cqw; font-weight: 700; color: var(--ek-blue-d); }
.ek-cover__face--brand { background: #fff; }
.ek-cover__face img { width: 100%; height: 100%; object-fit: cover; }
.ek-cover__face svg { width: 11.9cqw; height: 11.9cqw; }

/* vidéo d'aperçu : couverture + bouton lecture */
.ek-video { position: relative; border-radius: var(--ek-r); overflow: hidden; display: block; container-type: inline-size; cursor: pointer; }
.ek-video::after { content: ""; position: absolute; inset: 0; background: rgba(10, 20, 51, 0); transition: background .15s; pointer-events: none; }
.ek-video:hover::after { background: rgba(10, 20, 51, .08); }
/* Bouton « Voir l'aperçu » en haut à droite : le titre de la couverture reste entièrement visible ; toute l'image est cliquable. */
.ek-video__play { position: absolute; right: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 0; height: 32px; padding: 0 11px 0 10px; border-radius: 8px; background: rgba(10, 20, 51, .8); color: #fff; font: 600 13px/1 var(--ek-font); border: 0; cursor: pointer; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .15s, transform .15s; }
.ek-video__ico { flex: none; display: grid; place-items: center; margin-right: 7px; }
.ek-video--static { cursor: default; } .ek-video--static::after { display: none; }
.ek .ek-video:hover .ek-video__play { transform: translateY(-1px); background: rgba(10, 20, 51, .94); }
@container (max-width: 420px) { .ek-video__txt { display: none; } .ek .ek-video .ek-video__play { height: 28px; padding: 0 9px 0 8px; font-size: 12px; } .ek-video__ico { margin-right: 6px; } }
.ek-video iframe, .ek-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: #000; }

/* carte de formation */
.ek-course { display: flex; flex-direction: column; border: 1px solid var(--ek-line); border-radius: var(--ek-r); overflow: hidden; background: #fff; text-decoration: none; color: var(--ek-ink); transition: box-shadow .15s, transform .15s; }
.ek .ek-course { color: var(--ek-ink); }
.ek-course:hover { box-shadow: var(--ek-shadow); }
.ek-course__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ek-course__who { font-size: 12px; color: var(--ek-muted); }
.ek-course__title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.ek-course__skills { font-size: 13px; line-height: 1.45; color: var(--ek-muted); }
.ek-course__skills b { color: var(--ek-ink); font-weight: 600; }
.ek-course__meta { font-size: 12px; color: var(--ek-muted); }
.ek-course__price { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; margin-top: auto; border-top: 1px solid var(--ek-line2); font-size: 13px; }
.ek-course__price span:first-child { font-weight: 600; }
.ek-course__price span:last-child { color: var(--ek-muted); }
.ek-course--soon { border: 1.5px dashed var(--ek-line); background: var(--ek-bg); padding: 22px; justify-content: center; gap: 10px; }

/* portrait de formateur (photo à fournir) */
.ek-portrait { position: relative; width: 100%; border-radius: var(--ek-r); overflow: hidden; background: linear-gradient(160deg, #DCE4FF 0%, #EEF2FF 55%, #FFF4DC 100%); }
.ek-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ek-portrait__ph { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 28px; color: var(--ek-blue-d); }
.ek-portrait__ph::before { content: ""; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgba(46, 91, 255, .12); }
.ek-portrait__tag { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 600; color: var(--ek-muted); background: rgba(255, 255, 255, .85); padding: 3px 7px; border-radius: 4px; }
.ek-avatar { flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--ek-ink); color: var(--ek-amber); overflow: hidden; }
.ek-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ek-avatar--soft { background: #DCE4FF; color: var(--ek-blue-d); }

/* ---------- formulaires ---------- */
.ek-field { display: flex; flex-direction: column; gap: 6px; }
.ek-field > span:first-child, .ek-label { font-size: 14px; font-weight: 600; }
.ek-input, .ek select, .ek textarea, .ek input[type="text"], .ek input[type="email"], .ek input[type="password"], .ek input[type="tel"], .ek input[type="search"], .ek input[type="url"], .ek input[type="number"], .ek input:not([type]) { width: 100%; height: 48px; border: 1px solid var(--ek-field); border-radius: 6px; padding: 0 14px; font: 400 15px var(--ek-font); color: var(--ek-ink); background: #fff; }
.ek textarea, .ek .ek-input--area { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.ek input::placeholder, .ek textarea::placeholder { color: var(--ek-ph); opacity: 1; }
.ek input:focus, .ek textarea:focus, .ek select:focus { outline: 0; border: 2px solid var(--ek-blue); padding: 0 13px; }
.ek textarea:focus { padding: 11px 13px; }
.ek-help { font-size: 13px; color: var(--ek-muted); }
.ek-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.ek-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ek-blue); }
.ek-check--muted { font-size: 13px; color: var(--ek-muted); }
.ek-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ek-muted); }
.ek-or::before, .ek-or::after { content: ""; flex: 1; height: 1px; background: var(--ek-line); }
.ek-notice { border-radius: var(--ek-r); padding: 14px 16px; font-size: 15px; }
.ek-notice--ok { background: var(--ek-ok-t); border: 1px solid #B9E0CD; color: var(--ek-ink); }
.ek-notice--err { background: var(--ek-err-t); border: 1px solid #F1C4BF; }

/* ---------- FAQ (details) ---------- */
.ek-faq { border-top: 1px solid var(--ek-line); }
.ek-faq details { border-bottom: 1px solid var(--ek-line); padding: 18px 0; }
.ek-faq summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.ek-faq details p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ek-muted); max-width: 680px; }

/* ---------- barres de progression ---------- */
.ek-bar { height: 6px; border-radius: 999px; background: var(--ek-line2); overflow: hidden; flex: 1; }
.ek-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--ek-blue); }
.ek-bar--amber > span { background: var(--ek-amber); } .ek-bar--ok > span { background: var(--ek-ok); }
.ek-bar--8 { height: 8px; }

/* ---------- en-tête ---------- */
.ek-topbar { background: var(--ek-bg); border-bottom: 1px solid var(--ek-line2); font-size: 13px; }
.ek-topbar .ek-container { height: 36px; display: flex; align-items: center; gap: 20px; }
.ek-topbar a { color: var(--ek-muted); text-decoration: none; height: 36px; display: flex; align-items: center; }
.ek-topbar a[aria-current="page"] { color: var(--ek-ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ek-blue); }
.ek-topbar__aside { margin-left: auto; color: var(--ek-muted); }
.ek-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--ek-line2); background: #fff; }
.ek-header__in { height: 72px; display: flex; align-items: center; gap: 20px; }
.ek-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; }
.ek .ek-logo { color: var(--ek-ink); }
.ek-logo b { font-weight: 700; font-size: 20px; letter-spacing: -.03em; color: var(--ek-ink); }
.ek-logo b span { font-weight: 500; color: var(--ek-blue); }
.ek-explore-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 6px; background: var(--ek-blue); color: #fff; font: 600 15px var(--ek-font); border: 0; cursor: pointer; white-space: nowrap; }
.ek-explore-btn[aria-expanded="true"] { background: var(--ek-blue-d); }
.ek-explore-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ek-search { position: relative; flex: 1; max-width: 440px; }
.ek-search form { display: flex; align-items: center; height: 44px; border: 1px solid var(--ek-line); border-radius: 999px; padding: 0 4px 0 18px; background: #fff; }
.ek-search form:focus-within { border: 2px solid var(--ek-blue); padding: 0 3px 0 17px; }
.ek .ek-search input[type="search"] { flex: 1; border: 0; height: 40px; padding: 0; font-size: 15px; background: transparent; }
.ek .ek-search input[type="search"]:focus { border: 0; padding: 0; }
.ek-search button { width: 36px; height: 36px; border-radius: 50%; background: var(--ek-blue); border: 0; display: grid; place-items: center; cursor: pointer; }
.ek-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.ek-nav a { text-decoration: none; }
.ek .ek-nav__link { color: var(--ek-ink); }
.ek-user { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; background: none; border: 0; cursor: pointer; color: var(--ek-ink); font-family: var(--ek-font); }

/* panneau Explorer */
.ek-explore { position: absolute; left: 24px; right: 24px; top: 100%; z-index: 60; display: none; }
.ek-explore.is-open { display: block; }
.ek-explore__panel { background: #fff; border: 1px solid var(--ek-line); border-top: 0; border-radius: 0 0 10px 10px; box-shadow: 0 24px 48px rgba(10, 20, 51, .18); display: grid; grid-template-columns: 280px 1fr 300px; }
.ek-explore__col { padding: 20px 14px; }
.ek-explore__col--mid { padding: 20px 18px; }
.ek-explore__col--side { padding: 20px 22px; border-left: 1px solid var(--ek-line2); background: var(--ek-bg); border-radius: 0 0 10px 0; }
.ek-explore__col + .ek-explore__col--mid { border-left: 1px solid var(--ek-line2); }
.ek-explore__lbl { font-size: 13px; font-weight: 600; color: var(--ek-muted); padding: 0 14px 8px; display: block; }
.ek-explore__dom { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 6px; color: var(--ek-ink); text-decoration: none; font: 600 16px var(--ek-font); background: none; border: 0; cursor: pointer; text-align: left; }
.ek-explore__dom[aria-selected="true"] { background: var(--ek-tint); font-weight: 700; }
.ek-explore__dom small { margin-left: auto; font-size: 13px; color: var(--ek-muted); font-weight: 500; }
.ek-explore__item { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: var(--ek-r); text-decoration: none; }
.ek .ek-explore__item { color: var(--ek-ink); }
.ek-explore__item:hover { background: var(--ek-bg); }
.ek-explore__item .ek-cover { border-radius: 6px; }
.ek-explore__pane { display: none; } .ek-explore__pane.is-active { display: block; }
.ek-explore__met { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; text-decoration: none; }
.ek .ek-explore__met { color: var(--ek-ink); }
.ek-overlay { position: fixed; inset: 0; background: rgba(10, 20, 51, .35); z-index: 40; display: none; }
.ek-overlay.is-open { display: block; }

/* suggestions de recherche */
.ek-suggest { position: absolute; left: 0; top: calc(100% + 6px); width: 540px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--ek-line); border-radius: 10px; box-shadow: 0 24px 48px rgba(10, 20, 51, .18); padding: 10px; z-index: 70; display: none; }
.ek-suggest.is-open { display: block; }
.ek-suggest__lbl { display: block; font-size: 12px; font-weight: 600; color: var(--ek-muted); padding: 6px 12px; }
.ek-suggest__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; text-decoration: none; }
.ek .ek-suggest__item { color: var(--ek-ink); }
.ek-suggest__item:hover, .ek-suggest__item[aria-selected="true"] { background: var(--ek-tint); }
.ek-suggest__item .ek-cover { width: 96px; flex: none; border-radius: 4px; }
.ek-suggest mark { background: var(--ek-amber-t); color: inherit; font-weight: 700; }
.ek-suggest__foot { border-top: 1px solid var(--ek-line2); margin-top: 6px; padding: 12px 12px 4px; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }

/* menu du compte */
.ek-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: #fff; border: 1px solid var(--ek-line); border-radius: 10px; box-shadow: 0 24px 48px rgba(10, 20, 51, .18); padding: 8px 0; z-index: 70; display: none; }
.ek-menu.is-open { display: block; }
.ek-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--ek-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.ek-menu a:hover { background: var(--ek-bg); }
.ek-menu__group { padding: 6px 0; border-bottom: 1px solid var(--ek-line2); }
.ek-menu__group:last-child { border-bottom: 0; }

/* en-tête de l'espace apprenant */
.ek-appnav { display: flex; gap: 24px; font-size: 15px; white-space: nowrap; }
.ek-appnav a { color: var(--ek-muted); text-decoration: none; height: 64px; display: flex; align-items: center; font-weight: 600; }
.ek-appnav a[aria-current="page"] { color: var(--ek-ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ek-blue); }
.ek-iconbtn { position: relative; width: 40px; height: 40px; border-radius: var(--ek-r); border: 1px solid var(--ek-line); display: grid; place-items: center; background: #fff; cursor: pointer; }
.ek-iconbtn__dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--ek-err); border: 2px solid #fff; }

/* en-tête mobile et menu */
.ek-mheader { display: none; }
.ek-mmenu { position: fixed; inset: 0; z-index: 100; background: #fff; overflow-y: auto; display: none; }
.ek-mmenu.is-open { display: block; }
.ek-mmenu__head { height: 56px; border-bottom: 1px solid var(--ek-line2); display: flex; align-items: center; padding: 0 8px 0 16px; }
.ek-mmenu nav { padding: 14px 16px 24px; display: flex; flex-direction: column; }
.ek-mmenu__lbl { font-size: 13px; font-weight: 600; color: var(--ek-muted); padding: 18px 0 6px; }
.ek-mmenu__link { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ek-ink); text-decoration: none; font-size: 16px; font-weight: 600; }
.ek .ek-mmenu__link { color: var(--ek-ink); }
.ek-mmenu__link span { flex: 1; }

/* ---------- pied de page ---------- */
.ek-footer { background: var(--ek-bg); border-top: 1px solid var(--ek-line2); color: var(--ek-ink); }
.ek-footer__in { padding: 56px 24px 32px; display: flex; flex-direction: column; gap: 40px; }
.ek-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.ek-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ek-footer__col b { font-size: 15px; }
.ek .ek-footer__col a { color: var(--ek-muted); text-decoration: none; }
.ek .ek-footer__col a:hover { color: var(--ek-ink); }
.ek-footer__legal { border-top: 1px solid var(--ek-line); padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 13px; color: var(--ek-muted); }
.ek .ek-footer__legal a { color: var(--ek-muted); }
.ek-footer__social { margin-left: auto; display: flex; gap: 14px; }

/* ---------- onglets ---------- */
.ek-tabs { display: flex; gap: 28px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--ek-line); }
.ek-tabs a, .ek-tabs button { color: var(--ek-muted); text-decoration: none; padding: 14px 0; background: none; border: 0; font: inherit; cursor: pointer; }
.ek-tabs [aria-current="true"], .ek-tabs [aria-selected="true"] { color: var(--ek-ink); box-shadow: inset 0 -2px 0 var(--ek-blue); }

/* ---------- tableaux ---------- */
.ek-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ek-table th, .ek-table td { padding: 15px 20px; text-align: left; }
.ek-table thead { background: var(--ek-bg); }
.ek-table tbody tr { border-top: 1px solid var(--ek-line2); }
.ek-table th[scope="row"] { font-weight: 600; }
.ek-tablewrap { border: 1px solid var(--ek-line); border-radius: var(--ek-r); overflow: auto; }

/* ---------- sticky mobile ---------- */
.ek-sticky { display: none; }

/* ---------- WordPress / UiCore : neutralisation autour des gabarits EKEM ---------- */
body.ek-page .uicore-page-title, body.ek-page .uicore-pagination { display: none; }
body.ek-page #uicore-page, body.ek-page .uicore-body-content { background: #fff; }
body.ek-page .content-area, body.ek-page .uicore-content { padding: 0 !important; }

/* ---------- tablette ---------- */
@media (max-width: 1024px) {
	.ek-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ek-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ek-split { grid-template-columns: 1fr; gap: 36px; }
	.ek-search { max-width: none; }
	.ek-nav .ek-nav__link--hide-t { display: none; }
	.ek-explore__panel { grid-template-columns: 240px 1fr; }
	.ek-explore__col--side { display: none; }
	.ek-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
	.ek-container { padding: 0 16px; }
	.ek-section { padding: 36px 0; }
	.ek-section--tight { padding: 28px 0; }
	.ek-grid-2, .ek-grid-3, .ek-grid-4 { grid-template-columns: 1fr; }
	.ek-grid-5 { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ek-h1 { font-size: 31px; line-height: 1.15; }
	.ek-h1--44, .ek-h1--40, .ek-h1--36 { font-size: 28px; }
	.ek-h1--30 { font-size: 25px; }
	.ek-h2 { font-size: 23px; line-height: 1.25; }
	.ek-lead { font-size: 16px; line-height: 1.55; }
	.ek-sub { font-size: 15px; }
	.ek-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
	.ek-topbar, .ek-header { display: none; }
	.ek-mheader { display: flex; position: sticky; top: 0; z-index: 50; height: 56px; border-bottom: 1px solid var(--ek-line2); background: #fff; align-items: center; gap: 8px; padding: 0 8px 0 16px; }
	.ek-mheader__btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
	.ek-mheader__btn:first-of-type { margin-left: auto; }
	.ek-mheader .ek-logo b { font-size: 17px; }
	.ek-btn--mfull { display: flex; width: 100%; }
	.ek-footer__in { padding: 28px 16px 32px; gap: 20px; }
	.ek-footer__cols { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
	.ek-footer__col a:nth-child(n + 5) { display: none; }
	.ek-footer__social { margin-left: 0; }
	.ek-sticky { display: flex; position: sticky; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--ek-line); padding: 12px 16px; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -6px 16px rgba(10, 20, 51, .06); }
	.ek-hide-m { display: none !important; }
	.ek-scroll-m { display: flex; overflow-x: auto; gap: 12px; margin-right: -16px; padding-right: 16px; scroll-snap-type: x mandatory; }
	.ek-scroll-m > * { flex: none; width: 292px; scroll-snap-align: start; }
	.ek-table th, .ek-table td { padding: 12px 14px; }
}
@media (min-width: 768px) { .ek-show-m { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ek * { transition: none !important; } }

/* ---------- boutons des composants : UiCore applique son style à tous les <button> ---------- */
.ek .ek-search button, .ek .ek-video__play, .ek .ek-explore__dom, .ek .ek-explore-btn, .ek .ek-user, .ek .ek-mheader__btn, .ek .ek-iconbtn, .ek .ek-tabs button, .ek [data-ek-vote] { padding: 0; min-height: 0; line-height: 1.2; box-shadow: none; text-transform: none; letter-spacing: normal; }
.ek .ek-search button { border-radius: 50%; width: 36px; height: 36px; background: var(--ek-blue); }
.ek .ek-video__play { border-radius: 8px; width: auto; height: 32px; padding: 0 11px 0 10px; background: rgba(10, 20, 51, .8); color: #fff; font-size: 13px; font-weight: 600; }
.ek .ek-explore__dom { padding: 12px 14px; border-radius: 6px; background: none; color: var(--ek-ink); }
.ek .ek-explore__dom[aria-selected="true"] { background: var(--ek-tint); }
.ek .ek-explore-btn { padding: 0 14px; border-radius: 6px; height: 40px; }
.ek .ek-user { background: none; color: var(--ek-ink); }
.ek .ek-mheader__btn { background: none; border-radius: 8px; }
.ek .ek-iconbtn { background: #fff; border-radius: var(--ek-r); }
.ek .ek-tabs button { padding: 14px 0; background: none; color: var(--ek-muted); border-radius: 0; }
.ek .ek-btn { line-height: 1; text-transform: none; letter-spacing: normal; }
.ek button.ek-btn--primary { background: var(--ek-blue); color: #fff; }
.ek button.ek-btn--ghost { background: #fff; color: var(--ek-ink); border: 1px solid var(--ek-line); }
.ek button.ek-btn--dark { background: var(--ek-ink); color: #fff; }
.ek button.ek-btn--sm { padding: 0 14px; } .ek button.ek-btn { padding: 0 20px; border-radius: var(--ek-r); }
.ek button.ek-btn.ek-btn--sm { padding: 0 14px; }
/* Message hors connexion de l'application installable : caché tant qu'il n'est pas déclenché */
.snackbar:not(.show) { visibility: hidden; }

/* ---------- accueil ---------- */
.ek-hero { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; } /* marges horizontales : celles du conteneur (grille du logo) */
.ek-shot { width: 100%; border-radius: 10px; border: 1px solid var(--ek-line); background: #fff; overflow: hidden; box-shadow: var(--ek-shadow-lg); }
.ek-shot__bar { height: 34px; background: var(--ek-bg); border-bottom: 1px solid var(--ek-line2); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.ek-shot__bar > span:not(.ek-shot__url) { width: 9px; height: 9px; border-radius: 50%; background: var(--ek-line); }
.ek-shot__url { margin-left: 10px; flex: 1; height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--ek-line2); font-size: 11px; color: var(--ek-muted); display: flex; align-items: center; padding: 0 8px; }
.ek-shot__in { display: grid; grid-template-columns: 1fr 170px; }
.ek-shot__main { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ek-shot__video { position: relative; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #16224A 0%, #0A1433 70%); height: 202px; padding: 20px 0 0 20px; }
.ek-shot__video .ek-screen { border-radius: 6px; overflow: hidden; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.ek-shot__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(10, 20, 51, .3); }
.ek-shot__side { border-left: 1px solid var(--ek-line2); padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; font-size: 11px; }
.ek-toolband { background: var(--ek-bg); border-top: 1px solid var(--ek-line2); border-bottom: 1px solid var(--ek-line2); }
.ek-toolband .ek-container { padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; gap: 32px; }
.ek-toolband__lbl { flex: none; font-size: 14px; font-weight: 600; max-width: 170px; line-height: 1.4; }
.ek-cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ek-cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ek-teasers { display: grid; grid-template-columns: 640px minmax(0, 1fr); gap: 40px; align-items: start; }
.ek-teaser-row { display: grid; grid-template-columns: 168px 1fr; gap: 14px; align-items: center; text-decoration: none; }
.ek .ek-teaser-row { color: var(--ek-ink); }
.ek-teaser-row__thumb { position: relative; border-radius: 6px; overflow: hidden; }
.ek-teaser-row__thumb > span:last-child { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 6px; background: rgba(10, 20, 51, .8); display: grid; place-items: center; }
.ek-trainer { border: 1px solid var(--ek-line); border-radius: var(--ek-r); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.ek-trainer__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.ek-tile { display: flex; align-items: center; gap: 14px; height: 76px; padding: 0 18px; border: 1px solid var(--ek-line); border-radius: var(--ek-r); background: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
.ek .ek-tile { color: var(--ek-ink); }
.ek-tile:hover { border-color: var(--ek-field); }
.ek-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.ek-step { display: flex; flex-direction: column; gap: 10px; }
.ek-step__n { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ek-blue); color: var(--ek-blue); display: grid; place-items: center; font-weight: 700; }
.ek-magnet { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; border: 1px solid var(--ek-line); border-radius: var(--ek-r); padding: 36px 40px; }
.ek-doc { justify-self: end; width: 380px; max-width: 100%; border: 1px solid var(--ek-line); border-radius: 6px; background: #fff; box-shadow: var(--ek-shadow); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ek-band { border-radius: var(--ek-r); background: var(--ek-tint); padding: 36px 40px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.ek-faq-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; }
@media (max-width: 1024px) {
	.ek-hero { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; }
	.ek-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ek-teasers { grid-template-columns: 1fr; }
	.ek-steps { grid-template-columns: repeat(2, 1fr); }
	.ek-magnet { grid-template-columns: 1fr; }
	.ek-doc { justify-self: start; }
	.ek-band { flex-direction: column; align-items: flex-start; }
	.ek-faq-grid { grid-template-columns: 1fr; gap: 20px; }
	.ek-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.ek-hero { padding-top: 28px; padding-bottom: 32px; gap: 28px; }
	.ek-hero .ek-shot { display: none; }
	.ek-toolband .ek-container { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
	.ek-toolband .ek-tool { font-size: 0; gap: 0; }
	.ek-cards-4, .ek-cards-3 { display: flex; overflow-x: auto; gap: 12px; margin-right: -16px; padding-right: 16px; scroll-snap-type: x mandatory; }
	.ek-cards-4 > *, .ek-cards-3 > * { flex: none; width: 292px; scroll-snap-align: start; }
	.ek-teaser-list { display: none; }
	.ek-steps { grid-template-columns: 1fr; gap: 16px; }
	.ek-step { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; row-gap: 2px; }
	.ek-step__n { width: 32px; height: 32px; font-size: 14px; grid-row: span 2; }
	.ek-magnet { padding: 20px; gap: 20px; }
	.ek-doc { display: none; }
	.ek-band { padding: 22px; gap: 14px; }
	.ek-tile { height: 60px; padding: 0 12px; gap: 10px; font-size: 14px; line-height: 1.25; }
	.ek-tile .ek-ico-box { display: none; }
}

/* ---------- catalogue ---------- */
.ek-catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 72px; }
.ek-filters fieldset { border: 0; margin: 0; padding: 18px 0; border-top: 1px solid var(--ek-line2); }
.ek-filters legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 12px; }
.ek-filters__toggle > summary { list-style: none; cursor: default; }
.ek-filters__toggle > summary::-webkit-details-marker { display: none; }
.ek-filter { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; text-decoration: none; }
.ek .ek-filter { color: var(--ek-ink); }
.ek-filter.is-static { color: var(--ek-muted); }
.ek-cbox { flex: none; width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--ek-field); background: #fff; display: grid; place-items: center; }
.ek-cbox.is-on { border-color: var(--ek-blue); background: var(--ek-blue); }
.ek-ideas { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 48px; align-items: start; }
.ek .ek-vote { flex: none; width: 52px; height: 52px; border: 1px solid var(--ek-line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 13px var(--ek-font); background: #fff; color: var(--ek-ink); cursor: pointer; padding: 0; }
.ek .ek-vote[aria-pressed="true"] { border-color: var(--ek-blue); background: var(--ek-tint); }
.ek-chip--blue { background: var(--ek-tint); color: var(--ek-blue-d); }
.ek-chip--neutral { background: var(--ek-bg); color: var(--ek-muted); font-size: 12px; }
.ek-gap-4 { gap: 4px; }
@media (max-width: 1024px) {
	.ek-catalog { grid-template-columns: 1fr; gap: 16px; }
	.ek-filters__toggle:not([open]) > summary::after { content: " +"; }
	.ek-filters__toggle > summary { cursor: pointer; }
	.ek-ideas { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.ek-catalog { padding-top: 18px; padding-bottom: 32px; }
	.ek-catalog .ek-cards-3 { display: flex; flex-direction: column; overflow: visible; margin: 0; padding: 0; }
	.ek-catalog .ek-cards-3 > * { width: 100%; }
}

/* ---------- fiche formation ---------- */
.ek-course-hero { background: linear-gradient(180deg, var(--ek-tint) 0%, #fff 100%); }
.ek-course-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 540px; gap: 48px; align-items: center; padding: 28px 0 40px; }
.ek-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ek-line); border-radius: var(--ek-r); background: #fff; box-shadow: 0 8px 24px rgba(10, 20, 51, .06); margin-bottom: -40px; position: relative; z-index: 2; }
.ek-stats > div { padding: 18px 22px; display: flex; flex-direction: column; gap: 2px; }
.ek-stats > div + div { border-left: 1px solid var(--ek-line2); }
.ek-stats b { font-size: 16px; } .ek-stats span { font-size: 14px; color: var(--ek-muted); }
.ek-coursetabs { border-bottom: 1px solid var(--ek-line); padding-top: 64px; background: #fff; position: sticky; top: 72px; z-index: 20; }
.ek-coursetabs .ek-tabs a { padding: 14px 0; }
.ek-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.ek-prog { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.ek-mod { border-top: 1px solid var(--ek-line2); }
.ek-mod:first-child { border-top: 0; }
.ek-mod summary, .ek-mod--final { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.ek-mod summary::-webkit-details-marker { display: none; }
.ek-mod[open] summary svg:last-child { transform: rotate(180deg); }
.ek-mod__n { width: 24px; font-weight: 700; color: var(--ek-blue-d); }
.ek-mod__t { flex: 1; font-weight: 700; font-size: 16px; }
.ek-mod__m { font-size: 14px; color: var(--ek-muted); }
.ek-mod ul { padding: 4px 22px 18px 62px; display: flex; flex-direction: column; gap: 10px; }
.ek-mod li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.ek-mod--final { background: var(--ek-ink); color: #fff; cursor: default; border-top: 1px solid var(--ek-line2); }
.ek-eval { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; align-items: start; }
.ek-certprev { width: 100%; max-width: 832px; border: 1px solid var(--ek-line); border-radius: 6px; overflow: hidden; box-shadow: 0 16px 32px rgba(10, 20, 51, .10); }
.ek-certprev > div { zoom: .3; } /* mis à l'échelle exacte du conteneur par ekem.js : le certificat entier, jamais coupé */
.ek-trainerbox { display: grid; grid-template-columns: 260px minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 1024px) {
	.ek-course-hero__grid, .ek-prog, .ek-eval { grid-template-columns: 1fr; }
	.ek-stats { grid-template-columns: repeat(2, 1fr); }
	.ek-stats > div:nth-child(3) { border-left: 0; }
	.ek-stats > div:nth-child(n + 3) { border-top: 1px solid var(--ek-line2); }
	.ek-trainerbox { grid-template-columns: 200px 1fr; }
	.ek-trainerbox > .ek-card { grid-column: 1 / -1; }
	.ek-coursetabs { top: 0; }
}
@media (max-width: 767px) {
	.ek-course-hero__grid { padding: 16px 0 24px; gap: 20px; }
	.ek-stats { margin-bottom: 0; box-shadow: none; }
	.ek-stats > div { padding: 12px; }
	.ek-coursetabs { display: none; }
	.ek-outcomes { grid-template-columns: 1fr; }
	.ek-mod summary { padding: 14px 16px; gap: 12px; }
	.ek-mod__m { display: none; }
	.ek-mod ul { padding: 0 16px 14px 46px; }
	.ek-trainerbox { grid-template-columns: 1fr; }
	.ek-trainerbox .ek-portrait { height: 240px !important; --ek-ph: 240px !important; }
}
.ek-level { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ek-ink); }
.ek-course__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ek-coursetabs { z-index: 5; }
.ek-stats { z-index: 6; }

/* ---------- métier, abonnement ---------- */
.ek-hero--metier { grid-template-columns: minmax(0, 1fr) 520px; padding-top: 56px; padding-bottom: 64px; }
.ek-gdoc { border: 1px solid var(--ek-line); border-radius: var(--ek-r); background: #fff; overflow: hidden; box-shadow: var(--ek-shadow-lg); }
.ek-gdoc__bar { height: 40px; border-bottom: 1px solid var(--ek-line2); display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--ek-bg); }
.ek-gdoc__in { display: grid; grid-template-columns: 1fr 170px; }
.ek-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ek-plan { position: relative; border: 1px solid var(--ek-line); border-radius: var(--ek-r); background: #fff; padding: 26px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 120px; }
.ek-plan.is-hl { border: 2px solid var(--ek-blue); padding: 25px; }
@media (max-width: 1024px) { .ek-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ek-hero--metier { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
	.ek-plans { grid-template-columns: 1fr; gap: 18px; }
	.ek-plan.is-hl { order: -1; }
	.ek-hero--metier .ek-gdoc { display: none; }
	.ek-hero--metier h1 { font-size: 29px !important; }
}
/* Portrait : cercle de taille fixe (74 % de la hauteur), centré verticalement et horizontalement. */
.ek-portrait--photo { display: flex; align-items: center; justify-content: center; }
.ek .ek-portrait--photo img { flex: none; width: min(calc(var(--ek-ph, 300px) * .74), 84%); height: auto; max-width: none; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 12px 28px rgba(10, 20, 51, .18); }

/* ---------- avatars des formateurs : un seul style (cercle, liseré blanc, contour fin) ---------- */
.ek-avatar { box-shadow: 0 0 0 1px var(--ek-line); }
.ek-avatar img { display: block; border-radius: 50%; }
.ek-avatar--photo { background: #DCE4FF; border: 2px solid #fff; }
.ek-cover__face img { object-position: 50% 40%; }

/* ---------- pages génériques, inscription, connexion ---------- */
.ek-page-wrap { padding: 48px 0 72px; }
.ek-content > * + * { margin-top: 16px; }
.ek-wc-step { background: var(--ek-bg); padding: 40px 0 72px; min-height: 60vh; }
.ek-auth { background: var(--ek-bg); padding: 56px 16px 72px; display: flex; flex-direction: column; align-items: center; }
.ek-wc-step .ek-auth { padding: 16px 0 0; }
.ek-auth__card { width: 460px; max-width: 100%; padding: 36px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 16px 40px rgba(10, 20, 51, .08); }

/* ---------- paiement ---------- */
.ek-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.ek-step { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ek-step__done { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ek-ok); display: grid; place-items: center; }
.ek-billing-details:not([open]) { display: none; }
.ek .woocommerce form .form-row, .ek .woocommerce-billing-fields .form-row, .ek-fields .form-row { margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ek .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.ek .woocommerce-billing-fields__field-wrapper .form-row-wide, .ek .woocommerce-billing-fields__field-wrapper #billing_email_field, .ek .woocommerce-billing-fields__field-wrapper #billing_company_field, .ek .woocommerce-billing-fields__field-wrapper #billing_ice_field { grid-column: span 1; }
.ek .woocommerce-billing-fields__field-wrapper #billing_email_field { grid-column: 1 / -1; }
.ek .form-row label { font-size: 14px; font-weight: 600; margin: 0; }
.ek .form-row .required { color: var(--ek-err); text-decoration: none; }
.ek .form-row .optional { color: var(--ek-muted); font-weight: 400; }
.ek .woocommerce-input-wrapper { display: block; }
.ek #payment { background: none; border-radius: 0; }
.ek #payment ul.payment_methods { padding: 0; margin: 0; border: 0; display: flex; flex-direction: column; gap: 12px; list-style: none; }
.ek-paymethod { border: 1px solid var(--ek-line); border-radius: var(--ek-r); padding: 0; position: relative; }
.ek-paymethod:has(input:checked) { border: 2px solid var(--ek-blue); margin: -1px; }
.ek-paymethod > input { position: absolute; left: 18px; top: 22px; width: 20px; height: 20px; margin: 0; accent-color: var(--ek-blue); }
.ek-paymethod > label { display: flex; align-items: center; gap: 14px; padding: 16px 18px 16px 52px; cursor: pointer; margin: 0; }
.ek-payicon { display: inline-flex; gap: 8px; align-items: center; flex: none; }
.ek #payment .payment_box { background: none; margin: 0; padding: 0 18px 18px; font-size: 15px; color: var(--ek-ink); }
.ek #payment .payment_box::before { display: none; }
.ek-bankbox { border-radius: var(--ek-r); background: var(--ek-bg); padding: 4px 18px 6px; }
.ek-bankrow { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ek-line2); font-size: 15px; }
.ek-bankrow:first-child { border-top: 0; }
.ek-bankrow span { color: var(--ek-muted); font-size: 14px; }
.ek #payment .place-order { padding: 16px 0 0; margin: 0; }
.ek #place_order { width: 100%; height: 54px; border-radius: var(--ek-r); background: var(--ek-blue); color: #fff; font: 600 17px var(--ek-font); border: 0; cursor: pointer; padding: 0 20px; }
.ek #place_order:hover { background: var(--ek-blue-d); }
.ek .woocommerce-privacy-policy-text p { font-size: 13px; color: var(--ek-muted); margin: 0 0 12px; }
.ek-summary { overflow: hidden; }
.ek-sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.ek-sumrow--ok { color: var(--ek-ok); font-weight: 600; background: var(--ek-ok-t); border-radius: 6px; padding: 10px 12px; }
.ek-sumrow--total { font-weight: 700; font-size: 17px; }
.ek-sumrow .woocommerce-remove-coupon { font-size: 12px; margin-left: 6px; }
.ek .woocommerce-error, .ek .woocommerce-info, .ek .woocommerce-message { list-style: none; border-radius: var(--ek-r); padding: 14px 16px; margin: 0 0 16px; border: 1px solid var(--ek-line); background: #fff; font-size: 15px; }
.ek .woocommerce-error { border-color: #F1C4BF; background: var(--ek-err-t); }
.ek .woocommerce-error::before, .ek .woocommerce-info::before, .ek .woocommerce-message::before { display: none; }
.ek .woocommerce-form-login-toggle { display: none; }
/* commande reçue */
.ek .woocommerce-order { background: #fff; border: 1px solid var(--ek-line); border-radius: var(--ek-r); padding: 28px; max-width: 820px; margin: 0 auto; }
.ek .woocommerce-order-overview { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 24px; }
.ek .woocommerce-order-overview li { font-size: 13px; color: var(--ek-muted); }
.ek .woocommerce-order-overview li strong { display: block; font-size: 15px; color: var(--ek-ink); }
.ek .wc-bacs-bank-details { list-style: none; padding: 16px 18px; background: var(--ek-bg); border-radius: var(--ek-r); display: grid; gap: 8px; }
.ek .woocommerce-order-details table, .ek .woocommerce-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ek .woocommerce-table th, .ek .woocommerce-table td { padding: 10px 0; border-top: 1px solid var(--ek-line2); text-align: left; }
/* mon compte */
.ek .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ek .woocommerce-MyAccount-navigation a { display: inline-flex; height: 40px; align-items: center; padding: 0 14px; border-radius: var(--ek-r); border: 1px solid var(--ek-line); text-decoration: none; color: var(--ek-ink); font-weight: 600; font-size: 14px; }
.ek .woocommerce-MyAccount-navigation .is-active a { background: var(--ek-tint); border-color: transparent; color: var(--ek-blue-d); }
@media (max-width: 1024px) { .ek-checkout { grid-template-columns: 1fr; } .ek-checkout > aside { order: -1; } }
@media (max-width: 767px) {
	.ek-auth { padding: 20px 16px 32px; }
	.ek-auth__card { padding: 22px; box-shadow: none; }
	.ek-wc-step { padding: 16px 0 32px; }
	.ek .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
	.ek-bankrow { grid-template-columns: 1fr; gap: 2px; }
	.ek-summary .ek-cover { display: none; }
	.ek .woocommerce-order-overview { grid-template-columns: 1fr 1fr; }
}
/* UiCore met le formulaire de paiement en grille à 2 colonnes : la mise en page est celle d'EKEM. */
.ek form.checkout.woocommerce-checkout { display: block !important; grid-template-columns: none !important; }
.ek .woocommerce form .form-row input.input-text { height: 48px; }
.ek .woocommerce-billing-fields__field-wrapper .form-row { width: auto !important; float: none !important; }
.ek .woocommerce-billing-fields__field-wrapper .form-row .woocommerce-input-wrapper, .ek .woocommerce-billing-fields__field-wrapper .form-row input { width: 100%; }
.ek #payment div.payment_box { background: transparent !important; color: var(--ek-ink) !important; padding: 4px 18px 18px !important; }
.ek #payment div.payment_box p { color: var(--ek-muted); font-size: 14px; margin: 0 0 12px; }
.ek .woocommerce form.login, .ek .woocommerce form.register { border: 0; padding: 0; margin: 0; border-radius: 0; }
.ek .ek-coupon input { min-width: 0; flex: 1; }

/* ---------- espace apprenant ---------- */
.ek-app { background: var(--ek-bg); }
.ek-dash { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.ek-resume { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: center; }
.ek-resume .ek-video { border-radius: var(--ek-r); }
.ek-mylist li { padding: 18px 22px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 190px 150px; gap: 16px; align-items: center; border-top: 1px solid var(--ek-line2); }
.ek-mylist li:first-child { border-top: 0; }
.ek-mylist li > a { justify-self: end; text-decoration: none; }
.ek-mylist__ico { width: 48px; height: 48px; border-radius: var(--ek-r); display: grid; place-items: center; font-weight: 700; background: var(--ek-tint); color: var(--ek-blue-d); }
.ek-mylist__ico[data-variant="amber"] { background: var(--ek-amber-t); color: var(--ek-ink); }
.ek-mylist__ico[data-variant="ink"] { background: #E3E6F0; color: var(--ek-ink); }
.ek-mylist__ico[data-variant="none"] { background: var(--ek-bg); color: var(--ek-muted); border: 1px solid var(--ek-line2); }
.ek-todo { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ek-line2); text-decoration: none; }
.ek .ek-todo { color: var(--ek-ink); }
.ek-recommend { padding: 20px 22px; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.ek-week { height: 84px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; }
.ek-week > span { border-radius: 4px; display: block; }
.ek-week--lbl { height: auto; font-size: 12px; color: var(--ek-muted); text-align: center; }
.ek-week--lbl b { color: var(--ek-ink); }
.ek-certthumb { flex: none; width: 84px; height: 60px; border-radius: 4px; overflow: hidden; border: 1px solid var(--ek-line); background: #fff; }
@media (max-width: 1024px) { .ek-dash { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
	.ek-resume { grid-template-columns: 1fr; padding: 16px; }
	.ek-mylist li { grid-template-columns: 40px minmax(0, 1fr); padding: 14px 16px; gap: 6px 12px; }
	.ek-mylist li > span:nth-child(3) { grid-column: 2; }
	.ek-mylist li > a { grid-column: 2; justify-self: start; }
	.ek-mylist__ico { width: 40px; height: 40px; font-size: 13px; }
	.ek-recommend { grid-template-columns: 1fr; padding: 16px; }
}

/* Séries de formations (niveaux à suivre dans l'ordre) */
.ek-course__series { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #1F44D6; }
.ek-series { margin-top: 40px; padding: 24px; border: 1px solid var(--ek-line); border-radius: var(--ek-r); background: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.ek .ek-series__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ek .ek-series__step { margin: 0; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--ek-line); border-radius: 8px; background: #F7F9FE; }
.ek-series__step.is-current { border-color: var(--ek-blue); background: #EEF2FF; box-shadow: inset 0 0 0 1px var(--ek-blue); }
.ek-series__num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--ek-line); font-weight: 700; font-size: 14px; color: var(--ek-ink); }
.ek-series__step.is-current .ek-series__num { background: var(--ek-blue); border-color: var(--ek-blue); color: #fff; }
.ek .ek-series__title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ek-ink); text-decoration: none; }
.ek a.ek-series__title:hover { color: var(--ek-blue); text-decoration: underline; }
@media (max-width: 900px) { .ek-series { grid-template-columns: 1fr; } .ek .ek-series__steps { grid-template-columns: 1fr; } }

/* Accueil : bandeau d'accompagnement sous les formateurs */
.ek-trainer-help { margin-top: 24px; padding: 24px 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ek-trainer-help__text { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 6px; }
.ek-trainer-help__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.ek-trainer__body { flex: 1; }

/* Espace d'apprentissage (Tutor) : police du site, en-tête de leçon, affiche, transcription, ressources */
html[data-tutor-theme] { --tutor-font-family-body: var(--ek-font); --tutor-font-family-heading: var(--ek-font); }
.tutor-learning-page { font-family: var(--ek-font); }
.ek-lesson-poster { position: relative; }
.ek-lesson-poster .ek-cover { border-radius: 0; }
.ek-lesson-poster__msg { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px 0 10px; border-radius: 8px; background: rgba(10, 20, 51, .8); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ek-lesson-head { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 4px; }
.ek-lesson-head__eyebrow { font-size: 13px; font-weight: 700; color: var(--ek-blue-d); }
.ek-lesson-head__title { margin: 0; font-family: var(--ek-font); font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--ek-ink); }
.ek-lesson-head__by { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ek-muted); }
.ek-lesson-head__by b { color: var(--ek-ink); font-weight: 600; }
.ek-lesson-head__by a { color: var(--ek-blue-d); font-weight: 600; }
.ek-transcript { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ek-transcript li { display: flex; gap: 14px; align-items: baseline; margin: 0; }
.ek-transcript__time { flex: none; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: var(--ek-blue-d); background: #EEF2FF; padding: 2px 8px; border-radius: 4px; }
.ek-transcript p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ek-ink); }
.ek-transcript__note { margin: 20px 0 0; font-size: 13px; color: var(--ek-muted); }
.ek-resources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ek-resources__item { margin: 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--ek-line); border-radius: 8px; background: #fff; }
@media (max-width: 600px) { .ek-lesson-head { padding: 18px 16px 0; } .ek-lesson-head__title { font-size: 22px; } .ek-lesson-poster__msg { font-size: 12px; height: 28px; padding: 0 9px 0 8px; gap: 6px; } body .tutor-learning-area-footer .tutor-mark-as-complete-button { white-space: nowrap; font-size: 13px; padding-left: 12px; padding-right: 12px; gap: 6px; } body .tutor-learning-area-footer[data-lesson] a.tutor-btn.tutor-btn-ghost:not([class*="tutor-btn-link"]) { padding-left: 6px; padding-right: 6px; gap: 4px; } }

/* Page d'une série */
.ek-series-stack { position: relative; aspect-ratio: 16 / 11; }
.ek-series-stack__item { position: absolute; width: 78%; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 32px rgba(10, 20, 51, .16); }
.ek-series-stack__item--1 { left: 0; top: 0; }
.ek-series-stack__item--2 { left: 11%; top: 15%; }
.ek-series-stack__item--3 { left: 22%; top: 30%; }
.ek .ek-series-levels { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ek .ek-series-level { margin: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr) 200px; gap: 24px; align-items: center; padding: 16px; border: 1px solid var(--ek-line); border-radius: var(--ek-r); background: #fff; }
.ek-series-level__cover { display: block; border-radius: 6px; overflow: hidden; }
.ek .ek-series-level__title { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ek-ink); text-decoration: none; }
.ek .ek-series-level__title:hover { color: var(--ek-blue); text-decoration: underline; }
.ek-series-level__buy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-left: 24px; border-left: 1px solid var(--ek-line2); }
.ek-series__more { margin-top: 4px; font-size: 14px; font-weight: 600; }
@media (max-width: 1000px) {
	.ek .ek-series-level { grid-template-columns: 200px minmax(0, 1fr); }
	.ek-series-level__buy { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--ek-line2); }
}
@media (max-width: 640px) {
	.ek .ek-series-level { grid-template-columns: 1fr; }
	.ek-series-stack { max-width: 420px; }
}

.ek-table-wrap { overflow-x: auto; }

/* Vérification d'un certificat */
.ek .ek-verify { margin: 0; }
.ek-verify > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 20px; }
.ek-verify > div + div { border-top: 1px solid var(--ek-line2); }
.ek .ek-verify dt { font-size: 14px; color: var(--ek-muted); font-weight: 500; margin: 0; }
.ek .ek-verify dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ek-ink); }
@media (max-width: 640px) { .ek-verify > div { grid-template-columns: 1fr; gap: 4px; } }

/* Mes certificats */
.ek-certgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; margin-top: 28px; }
.ek-certcard { display: flex; flex-direction: column; overflow: hidden; }
.ek-certcard__prev { display: flex; justify-content: center; padding: 18px; background: var(--ek-bg); border-bottom: 1px solid var(--ek-line2); }
.ek-certcard__prev > span { box-shadow: 0 8px 20px rgba(10, 20, 51, .10); }
@media (max-width: 640px) { .ek-certgrid { grid-template-columns: 1fr; } .ek-certcard__prev > span { zoom: .26 !important; } }

/* Paiement : « C'est un cadeau » */
.ek-gift__fields { display: none; }
.ek-gift.is-on .ek-gift__fields { display: flex; }

/* Confirmation de commande */
.ek-thanks { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.ek-thanks__icon { width: 48px; height: 48px; border-radius: 50%; background: #0F7553; display: grid; place-items: center; }
.ek-thanks__icon.is-wait { background: #B7791F; } .ek-thanks__icon.is-err { background: #C0362C; }
.ek .ek-thanks__meta { margin: 4px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ek-line2); border-radius: 8px; }
.ek-thanks__meta > div { padding: 12px 16px; } .ek-thanks__meta > div + div { border-left: 1px solid var(--ek-line2); }
.ek .ek-thanks__meta dt { font-size: 13px; color: var(--ek-muted); margin: 0; } .ek .ek-thanks__meta dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.ek .ek-thanks__items { list-style: none; margin: 0; padding: 0; }
.ek .ek-thanks__items li { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--ek-line2); }
@media (max-width: 640px) { .ek .ek-thanks__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ek-thanks__meta > div:nth-child(3) { border-left: 0; } .ek-thanks__meta > div:nth-child(n+3) { border-top: 1px solid var(--ek-line2); } }

.ek-payicon--cash { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ek-payicon--cash img { display: block; width: auto; }

/* Moyens de paiement : pas de flèche WooCommerce au-dessus du détail ; sur mobile, logos sous le texte */
body.ek #payment div.payment_box::before { display: none !important; }
@media (max-width: 600px) { .ek-paymethod > label { flex-wrap: wrap; } .ek-paymethod > label > .ek-payicon { flex-basis: 100%; justify-content: flex-start; } }

/* Avis */
.ek-rating { display: flex; gap: 28px; align-items: center; padding: 20px; border: 1px solid var(--ek-line); border-radius: var(--ek-r); background: #fff; }
.ek-rating__avg { font-size: 44px; line-height: 1; letter-spacing: -.02em; }
.ek-rating__bars { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ek-rating__row { display: flex; align-items: center; gap: 10px; }
.ek .ek-stars-input { border: 0; margin: 0; padding: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.ek .ek-stars-input legend { width: 100%; margin-bottom: 4px; }
.ek-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ek-stars-input label { color: #DDE4F7; cursor: pointer; line-height: 0; }
.ek-stars-input label svg path { fill: currentColor; }
.ek-stars-input input:checked ~ label, .ek-stars-input label:hover, .ek-stars-input label:hover ~ label { color: #FFB938; }
.ek-stars-input input:focus-visible + label { outline: 2px solid var(--ek-blue); outline-offset: 2px; border-radius: 4px; }
.ek-course__rating { display: inline-flex; align-items: center; gap: 4px; }
.ek-course__rating b { color: var(--ek-ink); }
@media (max-width: 640px) { .ek-rating { flex-direction: column; align-items: stretch; gap: 16px; } }

/* Notes de leçon */
.ek-notes { display: flex; flex-direction: column; gap: 10px; }
.ek-notes__label { font-size: 14px; color: var(--ek-muted); }
.ek-notes__area { width: 100%; min-height: 180px; padding: 12px 14px; border: 1px solid var(--ek-field); border-radius: 8px; font: 15px/1.6 var(--ek-font); color: var(--ek-ink); background: #fff; resize: vertical; }
.ek-notes__area:focus { outline: 0; border: 2px solid var(--ek-blue); padding: 11px 13px; }
.ek-notes__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ek-notes__review { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--ek-line); border-radius: 8px; background: #fff; color: var(--ek-ink); font: 600 14px var(--ek-font); cursor: pointer; }
.ek-notes__review[aria-pressed="true"] { border-color: var(--ek-amber); background: #FFF4DC; }
.ek-notes__review[aria-pressed="true"] svg { fill: #B7791F; stroke: #B7791F; }
.ek-notes__status { font-size: 13px; color: var(--ek-muted); }
.ek-notes__all { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ek-blue-d); }

/* Assistant de cours */
.ek-ai { display: flex; flex-direction: column; gap: 12px; }
.ek-ai__intro, .ek-ai__note { margin: 0; font-size: 14px; color: var(--ek-muted); line-height: 1.55; }
.ek-ai__note { font-size: 12.5px; }
.ek-ai__log { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.ek-ai__log:empty { display: none; }
.ek-ai__msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.ek-ai__msg--user { align-self: flex-end; background: var(--ek-blue); color: #fff; border-bottom-right-radius: 4px; }
.ek-ai__msg--assistant { align-self: flex-start; background: var(--ek-bg); color: var(--ek-ink); border-bottom-left-radius: 4px; }
.ek-ai__msg.is-error { background: #FDECEA; color: #8A1F17; }
.ek-ai__form { display: flex; gap: 8px; align-items: flex-end; }
.ek-ai__form textarea { flex: 1; min-height: 46px; padding: 10px 12px; border: 1px solid var(--ek-field); border-radius: 8px; font: 15px/1.5 var(--ek-font); resize: vertical; }
.ek-ai__form textarea:focus { outline: 0; border: 2px solid var(--ek-blue); padding: 9px 11px; }

/* Onglets de la leçon : pas de majuscule forcée (« Vue d’ensemble », « Mes notes »). */
.tutor-learning-area .tutor-tabs-nav button, .tutor-learning-area .tutor-tabs-nav button span { text-transform: none !important; }

/* Paiement : champs d'entreprise masqués pour les particuliers */
.ek .woocommerce-billing-fields .form-row.ek-company-field { display: none; }
.ek .woocommerce-billing-fields.is-company .form-row.ek-company-field { display: flex; }

/* Licences : paliers de prix (le palier en cours est mis en avant) */
.ek-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ek-tiers li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--ek-muted, #56607A); }
.ek-tiers li b { color: var(--ek-ink); font-weight: 600; }
.ek-tiers li.is-on { background: var(--ek-tint, #EEF2FF); color: var(--ek-ink); }
.ek-tiers li.is-on b { color: var(--ek-blue-d, #1F44D6); font-weight: 700; }

/* Audit du 16/10 : liens repérables dans le texte (pas seulement par la couleur) */
main.ek p a:not(.ek-btn), main.ek .ek-muted a:not(.ek-btn), main.ek .ek-small a:not(.ek-btn), main.ek .ek-xs a:not(.ek-btn) { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
/* Paiement : cases à cocher alignées avec leur texte, sur toute la largeur */
.ek .woocommerce form .form-row label.checkbox, .ek .woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.ek .woocommerce form .form-row input.input-checkbox, .ek .woocommerce-form__input-checkbox { width: 18px; height: 18px; min-height: 0; flex: none; margin: 2px 0 0; padding: 0; display: inline-block; }
.ek .woocommerce-terms-and-conditions-wrapper, .ek .woocommerce-terms-and-conditions-wrapper .form-row { display: block; width: 100%; }

/* ---------- Illustrations (répliques d'interfaces, dessinées à taille fixe puis mises à l'échelle) ---------- */
.ek-ill { display: flex; justify-content: center; }
.ek-ill__canvas { position: relative; flex: none; font-family: var(--ek-font); color: var(--ek-ink); line-height: 1.35; }
.ek-ill--hero .ek-ill__canvas { width: 560px; }
.ek-ill--hero .ek-ill-win { position: relative; zoom: 1.386; } /* une seule fenêtre, agrandie (404 px → 560 px) */
.ek-ill-muted { color: var(--ek-muted); }
.ek-ill-row { display: flex; align-items: center; gap: 6px; }
.ek-ill-stars { display: inline-flex; gap: 1px; vertical-align: -1px; }
.ek-ill-btn { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--ek-line); font-size: 10.5px; font-weight: 600; color: var(--ek-ink); background: #fff; }
.ek-ill-btn.is-primary { background: var(--ek-blue); border-color: var(--ek-blue); color: #fff; }
.ek-ill-chip { margin-left: auto; font-size: 10px; font-weight: 600; color: var(--ek-blue-d); background: var(--ek-tint); border-radius: 4px; padding: 2px 6px; }
.ek-ill-ava { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.ek-ill-win { position: absolute; left: 0; top: 0; width: 404px; border: 1px solid var(--ek-line); border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 24px 48px -16px rgba(10, 20, 51, .22); }
.ek-ill-win__bar { height: 30px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: var(--ek-bg); border-bottom: 1px solid var(--ek-line2); }
.ek-ill-win__bar > span:not(.ek-ill-win__url) { width: 8px; height: 8px; border-radius: 50%; background: var(--ek-line); }
.ek-ill-win__url { margin-left: 8px; flex: 1; min-width: 0; height: 19px; border-radius: 5px; background: #fff; border: 1px solid var(--ek-line2); font-size: 9.5px; color: var(--ek-muted); display: flex; align-items: center; gap: 4px; padding: 0 7px; white-space: nowrap; overflow: hidden; }
.ek-ill-video { position: relative; height: 228px; background: #0F1A3D; overflow: hidden; }
.ek-ill-gbp { position: absolute; left: 16px; top: 14px; width: 262px; height: 180px; background: #fff; border-radius: 8px; padding: 11px 13px; display: flex; flex-direction: column; gap: 7px; font-size: 10.5px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ek-ill-gbp__top { display: flex; align-items: center; gap: 5px; font-size: 10.5px; } .ek-ill-gbp__top b { font-size: 13px; margin-right: 2px; }
.ek-ill-gbp__tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--ek-line2); font-size: 10px; color: var(--ek-muted); }
.ek-ill-gbp__tabs span { padding-bottom: 5px; } .ek-ill-gbp__tabs .is-on { color: var(--ek-blue-d); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ek-blue); }
.ek-ill-gbp__rev { display: flex; gap: 8px; align-items: flex-start; } .ek-ill-gbp__rev b { font-size: 10.5px; } .ek-ill-gbp__rev p { margin: 3px 0 0; color: #2B3550; }
.ek-ill-gbp__reply { border: 1px solid #C9D6FF; background: #F7F9FE; border-radius: 6px; padding: 7px 9px; display: flex; flex-direction: column; gap: 4px; }
.ek-ill-gbp__reply p { margin: 0; color: var(--ek-ink); }
.ek-ill-caret { display: inline-block; width: 1px; height: 11px; background: var(--ek-blue); margin-left: 1px; vertical-align: -2px; }
.ek-ill-video__ctrl { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 84px 0 12px; background: linear-gradient(transparent, rgba(5, 10, 30, .85)); color: #fff; font-size: 9.5px; font-weight: 600; }
.ek-ill-play { width: 18px; height: 18px; display: grid; place-items: center; }
.ek-ill-track { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); } .ek-ill-track > span { display: block; height: 100%; border-radius: 2px; background: var(--ek-amber); }
.ek-ill-face { position: absolute; right: 14px; top: 14px; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; overflow: hidden; background: #DCE4FF; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.ek-ill-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ek-ill-lesson { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.ek-ill-eyebrow { font-size: 10px; font-weight: 600; color: var(--ek-blue-d); } .ek-ill-lesson > b { font-size: 15px; letter-spacing: -.01em; }
.ek-ill-tabs { display: flex; gap: 4px; margin-top: 6px; font-size: 10.5px; font-weight: 600; color: var(--ek-muted); }
.ek-ill-tabs span { padding: 5px 9px; border-radius: 6px; } .ek-ill-tabs .is-on { background: var(--ek-tint); color: var(--ek-blue-d); }
.ek-ill-float { position: absolute; background: #fff; border: 1px solid var(--ek-line); border-radius: 10px; box-shadow: 0 20px 40px -14px rgba(10, 20, 51, .28); }
.ek-ill-float--ai { left: 340px; bottom: 0; width: 220px; height: 252px; overflow: hidden; }
.ek-ill-float--cert { left: 28px; bottom: 0; width: 288px; }
.ek-ill-ai { display: flex; flex-direction: column; gap: 9px; padding: 11px 12px; height: 100%; font-size: 10.5px; }
.ek-ill-ai__head { display: flex; align-items: center; gap: 6px; } .ek-ill-ai__head b { font-size: 11.5px; }
.ek-ill-ai__ico { width: 22px; height: 22px; border-radius: 6px; background: var(--ek-tint); display: grid; place-items: center; }
.ek-ill-ai__msgs { display: flex; flex-direction: column; gap: 7px; flex: 1; min-height: 0; }
.ek-ill-msg { margin: 0; padding: 7px 9px; border-radius: 8px; background: var(--ek-bg); border: 1px solid var(--ek-line2); color: #2B3550; display: flex; flex-direction: column; gap: 5px; }
.ek-ill-msg p { margin: 0; }
.ek-ill-msg.is-me { align-self: flex-end; max-width: 88%; background: var(--ek-blue); border-color: var(--ek-blue); color: #fff; font-weight: 600; }
.ek-ill-cite { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 9.5px; font-weight: 700; color: var(--ek-blue-d); background: #fff; border: 1px solid #C9D6FF; border-radius: 4px; padding: 2px 6px; }
.ek-ill-ai__input { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 5px 0 9px; border: 1px solid var(--ek-line); border-radius: 7px; color: var(--ek-muted); } .ek-ill-ai__input > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ek-ill-cert { display: flex; align-items: center; gap: 10px; padding: 11px 13px; font-size: 10.5px; }
.ek-ill-cert__ok { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ek-ok, #0F7553); display: grid; place-items: center; }
.ek-ill-cert div { display: flex; flex-direction: column; gap: 1px; } .ek-ill-cert b { font-size: 12px; }
/* Assistant en grand (accueil, page Méthode) */
.ek-ill-ai:not(.is-compact) { font-size: 13.5px; gap: 12px; padding: 18px; }
.ek-ill-ai:not(.is-compact) .ek-ill-ai__head b { font-size: 15px; } .ek-ill-ai:not(.is-compact) .ek-ill-ai__ico { width: 30px; height: 30px; }
.ek-ill-ai:not(.is-compact) .ek-ill-msg { padding: 10px 12px; gap: 8px; } .ek-ill-ai:not(.is-compact) .ek-ill-cite { font-size: 12px; padding: 3px 8px; }
.ek-ill-ai:not(.is-compact) .ek-ill-ai__input { height: 44px; } .ek-ill-ai:not(.is-compact) .ek-ill-btn { height: 32px; font-size: 13px; padding: 0 14px; }
.ek-ill-ai:not(.is-compact) .ek-ill-chip { font-size: 12px; padding: 3px 8px; }
.ek-ill-panel { border: 1px solid var(--ek-line); border-radius: 10px; background: #fff; box-shadow: 0 24px 48px -16px rgba(10, 20, 51, .18); overflow: hidden; }
@media (max-width: 1199px) { .ek-ill--hero .ek-ill__canvas { zoom: .86; } }
@media (max-width: 1024px) { .ek-ill--hero .ek-ill__canvas { zoom: 1; } }
@media (max-width: 640px) { .ek-ill--hero .ek-ill__canvas { zoom: .63; } }
@media (max-width: 380px) { .ek-ill--hero .ek-ill__canvas { zoom: .58; } }

/* ---------- Pages de contenu (à propos, formateurs, méthode, aide, contact, paiement, métiers) ---------- */
.ek-intro { padding: 48px 0 56px; border-bottom: 1px solid var(--ek-line2); }
.ek-intro--bg { background: var(--ek-bg); } .ek-intro--tint { background: var(--ek-tint); } .ek-intro--amber { background: var(--ek-amber-t); }
.ek-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: center; }
.ek-intro .ek-lead { max-width: 680px; margin: 0; }
.ek-intro--amber .ek-lead { color: var(--ek-ink); }
.ek-facts { display: flex; flex-direction: column; gap: 0; }
.ek-facts .ek-h4 { margin-bottom: 8px; }
.ek-facts__row { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ek-line2); }
.ek-facts__row b { flex: none; min-width: 64px; font-size: 24px; letter-spacing: -.02em; color: var(--ek-blue-d); }
.ek-facts__row span { color: var(--ek-muted); font-size: 15px; }
.ek-prose { max-width: 720px; font-size: 17px; line-height: 1.7; color: #2B3550; }
.ek-prose p { margin: 0 0 16px; }
.ek-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ek .ek-topic { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--ek-line); border-radius: var(--ek-r); background: #fff; text-decoration: none; color: var(--ek-ink); font-weight: 600; }
.ek .ek-topic:hover { border-color: var(--ek-blue); }
.ek-topic small { display: block; font-weight: 400; color: var(--ek-muted); font-size: 13px; }
.ek-help-sec { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding: 40px 0; border-top: 1px solid var(--ek-line2); scroll-margin-top: 90px; }
.ek-help-sec:first-child { border-top: 0; }
.ek-person { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding: 48px 0; border-top: 1px solid var(--ek-line2); scroll-margin-top: 90px; }
.ek-person:first-child { border-top: 0; padding-top: 0; }
.ek-person__courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ek-mini-course { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--ek-line); border-radius: var(--ek-r); text-decoration: none; color: var(--ek-ink); background: #fff; }
.ek-mini-course:hover { border-color: var(--ek-blue); }
.ek-mini-course .ek-cover { width: 112px; flex: none; border-radius: 6px; }
.ek-mini-course b { font-size: 14px; line-height: 1.35; }
.ek-paysteps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ek-paysteps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 15px; line-height: 1.55; color: #2B3550; }
.ek-paysteps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ek-blue); color: var(--ek-blue-d); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.ek-twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) {
	.ek-intro__grid, .ek-help-sec, .ek-person { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.ek-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.ek-intro { padding: 32px 0 40px; }
	.ek-intro .ek-h1--44 { font-size: 32px; }
	.ek-topics, .ek-person__courses, .ek-twocol { grid-template-columns: minmax(0, 1fr); }
	.ek-help-sec { padding: 28px 0; }
	.ek-person { padding: 32px 0; }
}

.ek-ill-agent { position: absolute; left: 16px; top: 14px; width: 312px; height: 180px; background: #fff; border-radius: 8px; padding: 11px 12px; display: flex; flex-direction: column; gap: 9px; font-size: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ek-ill-agent__top { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--ek-line2); } .ek-ill-agent__top b { font-size: 11.5px; }
.ek-ill-agent__logo { width: 20px; height: 20px; border-radius: 5px; background: #EAF3F8; display: grid; place-items: center; }
.ek-ill-agent__live { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 600; color: var(--ek-ok); }
.ek-ill-agent__live i { width: 6px; height: 6px; border-radius: 50%; background: #1DB36B; box-shadow: 0 0 0 3px #DDF5E9; }
.ek-ill-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ek-ill-steps li { display: flex; align-items: center; gap: 7px; color: #2B3550; }
.ek-ill-steps li > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ek-ill-steps em { font-style: normal; color: var(--ek-muted); font-size: 9.5px; }
.ek-ill-step__ico { flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; }
.ek-ill-step__ico.is-ok { background: var(--ek-ok); } .ek-ill-step__ico.is-wait { background: var(--ek-amber-t); box-shadow: inset 0 0 0 1px #F2D49B; }
.ek-ill-steps li.is-wait { margin-top: 2px; padding: 6px 7px; border-radius: 6px; background: #FFF9EC; border: 1px solid #F2D49B; }
.ek-ill-steps li.is-wait .ek-ill-btn { height: 20px; padding: 0 7px; font-size: 9.5px; }
.ek-ill--hero .ek-ill-agent { width: auto; right: 16px; }

/* Atouts du hero : 2 × 2, colonnes alignées */
.ek-checks--grid2 { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 32px; row-gap: 10px; }
@media (max-width: 600px) { .ek-checks--grid2 { grid-template-columns: minmax(0, 1fr); } }

@media (min-width: 1200px) { .ek-split .ek-ill--hero .ek-ill__canvas { zoom: .97; } } /* colonne de 548 px */

/* Hero : titre court sur deux lignes, un seul badge posé sur la photo (résultat promis) */
.ek-hero__title { font-size: 52px; max-width: 560px; }
.ek-hero-badge { position: absolute; left: -28px; bottom: 32px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: #fff; border: 1px solid var(--ek-line); border-radius: var(--ek-r); box-shadow: 0 20px 40px -14px rgba(10, 20, 51, .28); }
.ek-hero-badge > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ek-muted); }
.ek-hero-badge b { font-size: 15px; color: var(--ek-ink); }
.ek-hero-badge__ok { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ek-ok); display: grid; place-items: center; }

@media (max-width: 600px) { .ek-hero__title { font-size: 36px; } .ek-hero-badge { padding: 9px 12px 9px 9px; } .ek-hero-badge b { font-size: 14px; } .ek-hero-badge > span:last-child { font-size: 12px; } }

/* ---------- Hero : photo fondue dans le fond (le mur clair de la photo prolonge la section) ---------- */
.ek-heroD { position: relative; overflow: hidden; background: #F3F2F3; min-height: 660px; display: flex; align-items: center; } /* assez haut pour les cheveux et le haut de l'ordinateur */
.ek-heroD__img { position: absolute; top: 0; right: 0; bottom: 0; width: min(46%, 700px); }
.ek-heroD__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; /* cheveux entiers en haut, ordinateur visible en bas */ -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.ek-heroD__img .ek-hero-badge { left: 0; bottom: 150px; }
.ek-heroD .ek-container { position: relative; width: 100%; }
.ek-heroD__text { max-width: 560px; padding: 64px 0; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1024px) {
	.ek-heroD { display: flex; flex-direction: column-reverse; min-height: 0; } .ek-heroD__img { position: relative; width: 100%; aspect-ratio: 16 / 10; } .ek-heroD__img img { -webkit-mask-image: none; mask-image: none; object-position: 50% 0; } .ek-heroD__img .ek-hero-badge { left: 16px; bottom: 16px; } .ek-heroD__text { padding: 32px 0 40px; }
}
@media (max-width: 600px) { .ek-heroD__img { aspect-ratio: 1 / 1; } }
@media (max-width: 1024px) { .ek-heroD__img { min-height: 0; overflow: hidden; flex: none; } }

/* Bande d'outils : libellé au-dessus, grille alignée de 7 colonnes */
.ek-toolband .ek-container { display: block; }
.ek-toolband__lbl { display: block; max-width: none; margin-bottom: 16px; color: var(--ek-muted); font-weight: 600; }
.ek-toolgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px 24px; }
.ek-toolgrid .ek-tool { white-space: nowrap; color: var(--ek-ink); }
@media (max-width: 1024px) { .ek-toolgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ek-toolgrid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px 8px; } .ek-toolgrid .ek-tool > span { display: none; } .ek-toolgrid .ek-tool { justify-content: center; } }

/* Miniature de couverture (image) et menu Explorer borné à la hauteur de l'écran */
.ek-cover-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--ek-tint); }
.ek-cover-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ek-mini-course .ek-cover-thumb { width: 112px; flex: none; }
.ek-explore__panel { max-height: calc(100vh - 130px); }
.ek-explore__col--mid { overflow-y: auto; }

/* Photos des pages : cadre 4:3, rayon 8 px ; deux colonnes égales pour les listes déplacées sous la photo */
.ek-intro-photo { margin: 0; border-radius: var(--ek-r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ek-tint); }
.ek-intro-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ek-course-hero .ek-intro-photo, .ek-hero--metier .ek-intro-photo { align-self: center; }
.ek-checks--cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
@media (max-width: 1024px) { .ek-intro-photo { aspect-ratio: 16 / 10; } }
@media (max-width: 600px) { .ek-checks--cols2 { grid-template-columns: minmax(0, 1fr); } }

/* Portraits des formateurs : carré arrondi, fond de la photo, taille modérée */
.ek-portrait-sq { display: block; flex: none; width: var(--ek-ps, 160px); aspect-ratio: 1; border-radius: var(--ek-r); overflow: hidden; background: var(--ek-tint); }
.ek-portrait-sq img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ek-portrait-sq--ph { display: grid; place-items: center; font-weight: 700; font-size: 24px; color: var(--ek-blue-d); }
.ek-trainer__head { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 6px; }
.ek-trainer__body { padding: 24px; gap: 10px; }
.ek-person .ek-portrait-sq { width: min(var(--ek-ps), 100%); }
@media (max-width: 600px) { .ek-person .ek-portrait-sq { --ek-ps: 120px !important; } }
/* Pages légales : information à renseigner (visible des administrateurs seulement). */
.ek-legal-todo { background: #FFF4DC; color: #7A4B00; padding: 2px 6px; border-radius: 4px; font-size: .92em; }
/* Cartes formateurs de l'accueil : la ligne « Formations » occupe toujours deux lignes, pour aligner les séparateurs d'une carte à l'autre. */
.ek-trainer__courses { margin-top: auto; padding-top: 8px; border-top: 1px solid #E6EAF5; line-height: 1.5; }
@media (min-width: 1025px) { .ek-trainer__courses { min-height: calc(3em + 9px); } }
/* Boutons principaux de Tutor (ex. « Voir le cours » sur une leçon verrouillée) : texte blanc, la couleur des liens EKEM le rendait invisible. */
body a.tutor-btn.tutor-btn-primary, body a.tutor-btn.tutor-btn-primary:hover, body a.tutor-btn.tutor-btn-primary:focus { color: #fff; }
/* Tutor : contrastes AA dans la salle de cours (sous-titre de l'élément actif, onglet actif). */
body .tutor-learning-nav-item .tutor-tiny, body .tutor-learning-nav-item .tutor-tiny-2, body .tutor-learning-nav-item .tutor-text-subdued { color: #56607A !important; } /* « Vidéo · 8 min » sous chaque élément du programme, actif ou non */
body .tutor-tabs-tab-active span[x-text] { color: #1F44D6; }

/* ==========================================================================
   Style premium (plan UX et croissance, octobre 2026) : neutres chauds (ivoire, sable) au lieu du gris bleuté,
   sections bleu nuit pour rythmer, ambre réservé aux accents, titres plus grands, cadres remplacés par le fond
   et l'ombre. Le body porte la classe .ek-v2 (inc/engagement.php). Aucun script.
   ========================================================================== */

body.ek-v2 {
	--ek-bg: #F3EEE5;          /* sable : sections alternées */
	--ek-line: #E5DDCF;
	--ek-line2: #ECE5D9;
	--ek-ivory: #FAF8F4;       /* fond principal */
	--ek-night: #0A1433;
	--ek-night-2: #121D45;
	--ek-night-fg: #C9D2EE;
	--ek-blue: #2652EE;        /* liens et boutons : AA sur ivoire et sable */
	--ek-soft-shadow: 0 1px 2px rgba(10, 20, 51, .04), 0 10px 28px -8px rgba(10, 20, 51, .10);
	background: var(--ek-ivory);
}
body.ek-v2 #uicore-page, body.ek-v2 .uicore-body-content, body.ek-v2.ek-page #uicore-page, body.ek-v2.ek-page .uicore-body-content { background: var(--ek-ivory); }

/* ---------- surfaces ---------- */
.ek-v2 .ek-section { background: var(--ek-ivory); padding: 88px 0; }
.ek-v2 .ek-section--tight { padding: 64px 0; }
.ek-v2 .ek-section--bg { background: var(--ek-bg); border-top: 0; }
.ek-v2 .ek-header, .ek-v2 .ek-mheader { background: rgba(250, 248, 244, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.ek-v2 .ek-topbar, .ek-v2 .ek-toolband, .ek-v2 .ek-footer { background: var(--ek-bg); }
.ek-v2 .ek-heroD { background: #F3F1EE; }
.ek-v2 .ek-course-hero { background: linear-gradient(180deg, #EFEADF 0%, var(--ek-ivory) 100%); }
.ek-v2 .ek-coursetabs { background: var(--ek-ivory); }

/* Cartes : l'ombre et le fond remplacent la bordure. */
.ek-v2 .ek-card, .ek-v2 .ek-trainer, .ek-v2 .ek-course, .ek-v2 .ek-tile, .ek-v2 .ek-stats, .ek-v2 .ek-series, .ek-v2 .ek-magnet { border-color: transparent; background: #fff; box-shadow: var(--ek-soft-shadow); }
.ek-v2 .ek-course:hover, .ek-v2 .ek-tile:hover { box-shadow: 0 2px 4px rgba(10, 20, 51, .05), 0 18px 36px -10px rgba(10, 20, 51, .16); }
.ek-v2 .ek .ek-btn--ghost { background: transparent; border-color: #D8CFBF; }
.ek-v2 .ek-panel--tint { background: #EFEAE0; }

/* ---------- typographie ---------- */
.ek-v2 .ek-hero__title { font-size: 58px; line-height: 1.05; letter-spacing: -.035em; max-width: none; }
@media (min-width: 1025px) { .ek-v2 .ek-heroD__text { max-width: 640px; } .ek-v2 .ek-heroD__text .ek-lead { max-width: 540px; } } /* titre sur deux lignes à côté de la photo */
.ek-v2 .ek-h1 { letter-spacing: -.03em; }
.ek-v2 .ek-h2 { font-size: 42px; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.ek-v2 .ek-sub, .ek-v2 .ek-lead { font-size: 18px; line-height: 1.65; }
.ek-v2 .ek-head { margin-bottom: 36px; }

/* ---------- sections bleu nuit (rythme) ---------- */
.ek-v2 #assistant, .ek-v2 .ek-v2-night { background: var(--ek-night); color: #fff; }
.ek-v2 #assistant .ek-h2, .ek-v2 #assistant b { color: #fff; }
.ek-v2 #assistant .ek-lead, .ek-v2 #assistant .ek-checks li, .ek-v2 #assistant .ek-muted, .ek-v2 #assistant .ek-small { color: var(--ek-night-fg); }
.ek-v2 #assistant h3, .ek-v2 #assistant h4, .ek-v2 #assistant .ek-h3, .ek-v2 #assistant .ek-h4 { color: #fff; }
.ek-v2 #assistant .ek-checks svg { stroke: #FFB938; }
.ek-v2 #assistant .ek-chip { background: rgba(255, 185, 56, .14); color: #FFB938; }
.ek-v2 #assistant .ek-link { color: #A9BBFF; }
.ek-v2 #assistant .ek-link svg { stroke: #A9BBFF; }
.ek-v2 #assistant .ek-ill-panel { border-color: rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }

.ek-v2 #assistant + .ek-section { padding-top: 88px !important; } /* la section suivante a un padding-top: 0 en ligne */

/* Bandeau abonnement : carte bleu nuit, boutons côte à côte. */
.ek-v2 .ek-band { background: var(--ek-night); color: #fff; padding: 44px 48px; }
.ek-v2 .ek-band .ek-h2 { color: #fff; }
@media (min-width: 768px) { .ek-v2 .ek-band > .ek-row { flex-wrap: nowrap; flex: none; } }
.ek-v2 .ek-band .ek-muted { color: var(--ek-night-fg); }
.ek-v2 .ek-band .ek-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.ek-v2 .ek-band .ek-btn--ghost:hover { border-color: #fff; color: #fff; }

/* Étapes « Comment ça marche » : le numéro en ambre. */
.ek-v2 .ek-step__n { background: #FFF1D2; color: #8A5300; }

/* ---------- fiche formation ---------- */
.ek-v2-buyline { display: block; color: var(--ek-ink); }
.ek-v2-buyline:first-of-type { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--ek-line); }
.ek-v2-buyline .ek-v2-save { margin-right: 6px; }
.ek-v2-buyline--muted { color: var(--ek-muted); }
.ek-v2-buyline--gift { color: #0B4D37; font-weight: 600; }
.ek-v2-buyline--gift svg { vertical-align: -3px; }
.ek-v2-buyline a { font-weight: 600; }
.ek-v2-save { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; color: #0F7553; background: #E3F4EC; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

.ek-v2-pack { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 4px; padding: 22px 24px; border-radius: var(--ek-r); background: linear-gradient(120deg, #FFF6E2 0%, #FFFBF3 100%); border: 1px solid #F3DDAE; }
.ek-v2-pack__tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8A5300; }
.ek-v2-pack__title { font-size: 19px; line-height: 1.35; }
.ek-v2-pack__price { display: grid; justify-items: end; gap: 6px; text-align: right; }
.ek-v2-pack__price b { font-size: 30px; letter-spacing: -.02em; line-height: 1; }

.ek-v2-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.ek-v2-step { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border-radius: var(--ek-r); box-shadow: var(--ek-soft-shadow); }
.ek-v2-step__ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--ek-tint); }
.ek-v2-step__n { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1F44D6; }
.ek-v2-step b { font-size: 17px; }

/* ---------- tableau de bord apprenant ---------- */
.ek-v2-weeks { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--ek-line2); font-size: 14px; }
.ek-v2-weeks b { font-size: 18px; }
.ek-v2-joker { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #8A5300; background: #FFF1D2; padding: 4px 6px 4px 10px; border-radius: 999px; }
.ek-v2-weeks { position: relative; flex-direction: column; align-items: flex-start; } /* le joker sous le compteur : même place sur ordinateur et mobile, la bulle pointe toujours au même endroit */
/* Bulle d'info du joker : cachée par défaut, ouverte au toucher ou au clic (details/summary, sans script ; Échap et clic à côté la referment). */
.ek-v2-tip > summary { list-style: none; cursor: pointer; min-height: 28px; }
.ek-v2-tip > summary::-webkit-details-marker { display: none; }
.ek-v2-tip > summary:hover { background: #FFE7B3; }
.ek-v2-tip > summary:focus-visible { outline: 2px solid #2E5BFF; outline-offset: 2px; }
.ek-v2-tip__i { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; background: #8A5300; color: #FFF1D2; font: 800 11px/1 'Manrope', system-ui, sans-serif; }
.ek-v2-tip[open] .ek-v2-tip__i { background: #0A1433; color: #fff; }
.ek-v2-joker.is-used { color: #56607A; background: #EEEAE2; }
.ek-v2-joker.is-used .ek-v2-tip__i { background: #56607A; color: #fff; }
.ek-v2-tip__bubble { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 5; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 10px; background: #0A1433; color: #C9D2EE; font-size: 13.5px; line-height: 1.5; box-shadow: 0 16px 32px -8px rgba(10, 20, 51, .35); }
.ek-v2-tip__bubble b { color: #fff; font-size: 14px; }
.ek-v2-tip__bubble::before { content: ""; position: absolute; top: -6px; left: 188px; /* sous le « i » de la pastille */ width: 12px; height: 12px; background: #0A1433; transform: rotate(45deg); border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) { .ek-v2-tip[open] .ek-v2-tip__bubble { animation: ek-tip-in .16s ease-out; } }
@keyframes ek-tip-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ek-v2-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ek-v2-slots span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--ek-r); background: var(--ek-ivory); font-size: 14px; color: var(--ek-muted); }
.ek-v2-slots b { color: var(--ek-ink); font-size: 15px; }
.ek-v2-slotform { display: flex; flex-direction: column; gap: 12px; }
.ek-v2-slotrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; border: 0; }
.ek-v2-slotrow label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ek-v2-slotrow select, .ek-v2-slotrow input { width: 100%; height: 44px; padding: 0 10px; border: 1px solid #8E97AE; border-radius: 6px; background: #fff; font: 500 15px/1 var(--ek-font); color: var(--ek-ink); }
.ek-v2-slotform .ek-btn { align-self: flex-start; }
.ek-v2-slotedit > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ek-blue); padding: 6px 0; }
.ek-v2-slotedit[open] > summary { margin-bottom: 10px; }
.ek-v2-friend { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--ek-r); background: #E3F4EC; color: #0B4D37; font-size: 14px; line-height: 1.5; }
.ek-v2-friend svg { flex: none; margin-top: 2px; }
/* ---------- leçon : fin du module 1 ---------- */
.ek-v2-m1end { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: radial-gradient(120% 140% at 100% 0%, #1B2A66 0%, var(--ek-night, #0A1433) 55%); color: #fff; }
.ek-v2-m1end__head { display: flex; gap: 14px; align-items: center; }
.ek-v2-m1end__ok { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #0F7553; box-shadow: 0 0 0 6px rgba(15, 117, 83, .25); }
.ek-v2-m1end__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #FFB938; }
.ek-v2-m1end__title { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.ek-v2-m1end .ek-bar { background: rgba(255, 255, 255, .14); }
.ek-v2-m1end .ek-bar > span { background: #FFB938; }
.ek-v2-m1end__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 14.5px; color: #E6EAF7; }
.ek-v2-m1end__list li { display: flex; gap: 10px; align-items: center; }
.ek-v2-m1end__n { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 800; }
.ek-v2-m1end__cta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding-top: 6px; }

/* ---------- mobile : barre d'onglets façon app ---------- */
.ek-tabbar { display: none; }
@media (max-width: 767px) {
	.ek-v2 .ek-section { padding: 48px 0; }
	.ek-v2 .ek-section--tight { padding: 40px 0; }
	.ek-v2 .ek-hero__title { font-size: 38px; }
	.ek-v2 #assistant + .ek-section { padding-top: 48px !important; }
	.ek-v2 .ek-sub, .ek-v2 .ek-lead { font-size: 17px; }
	.ek-v2 .ek-h2 { font-size: 28px; }
	.ek-v2 .ek-band { padding: 26px 22px; }
	.ek-v2-steps { grid-template-columns: minmax(0, 1fr); }
	.ek-v2-pack { grid-template-columns: minmax(0, 1fr); }
	.ek-v2-pack__price { justify-items: start; text-align: left; }
	.ek-v2-m1end { padding: 24px 18px; }
	.ek-v2-m1end__title { font-size: 22px; }
	.ek-v2-m1end__list { grid-template-columns: minmax(0, 1fr); }
	.ek-v2-m1end__cta .ek-btn { width: 100%; }

	.ek-tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); background: rgba(250, 248, 244, .94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid #E5DDCF; }
	.ek-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px; font: 600 11.5px/1.1 'Manrope', system-ui, sans-serif; color: #56607A; text-decoration: none; -webkit-tap-highlight-color: transparent; }
	.ek-tabbar a svg { width: 24px; height: 24px; }
	.ek-tabbar a[aria-current="page"] { color: #1F44D6; }
	.ek-tabbar a[aria-current="page"] svg { stroke-width: 2.2; }
	.ek-tabbar a:active { background: rgba(46, 91, 255, .08); }
	.ek-tabbar a:focus-visible { outline: 2px solid #2E5BFF; outline-offset: -2px; }
	body.ek-v2.logged-in { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
	body.ek-v2.logged-in .ek-sticky { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}

/* Transitions douces entre pages (navigateurs récents), coupées si l'appareil demande moins d'animations. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
}

/* ---------- Pages légales ---------- */
.ek-legal-head { background: var(--ek-bg); padding: 44px 0 0; border-bottom: 1px solid var(--ek-line2); }
.ek-legal-head .ek-lead { max-width: 680px; margin: 0; }
.ek-legal-tabs { display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.ek-legal-tabs::-webkit-scrollbar { display: none; }
.ek .ek-legal-tabs a { padding: 12px 14px 13px; font-size: 15px; font-weight: 600; color: var(--ek-muted); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.ek .ek-legal-tabs a:hover { color: var(--ek-ink); }
.ek .ek-legal-tabs a[aria-current] { color: var(--ek-ink); border-bottom-color: var(--ek-blue); }
.ek-legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 88px; }
.ek-legal-aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.ek-legal-toc > summary { list-style: none; cursor: pointer; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ek-muted); }
.ek-legal-toc > summary::-webkit-details-marker { display: none; }
.ek .ek-legal-toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; border-left: 2px solid var(--ek-line); }
.ek .ek-legal-toc a { display: block; margin-left: -2px; padding: 6px 12px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--ek-ink); text-decoration: none; }
.ek .ek-legal-toc a:hover { color: var(--ek-blue); border-left-color: var(--ek-blue); }
.ek-legal-help { display: grid; gap: 6px; padding: 18px; border-radius: var(--ek-r); background: #fff; box-shadow: 0 1px 2px rgba(10, 20, 51, .04), 0 10px 28px -8px rgba(10, 20, 51, .10); }
.ek-legal-help--m { display: none; }
.ek-legal-main { min-width: 0; max-width: 760px; display: grid; gap: 36px; }
.ek-legal-key { display: grid; gap: 14px; padding: 24px 26px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(10, 20, 51, .04), 0 10px 28px -8px rgba(10, 20, 51, .10); }
.ek-legal-body { font-size: 16.5px; line-height: 1.75; color: #2B3550; }
.ek .ek-legal-body h2 { margin: 36px 0 12px; padding-top: 28px; border-top: 1px solid var(--ek-line); font-size: 22px; line-height: 1.3; letter-spacing: -.015em; scroll-margin-top: 100px; }
.ek .ek-legal-body > h2:first-child, .ek .ek-legal-body > p:first-child + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.ek .ek-legal-body p { margin: 0 0 14px; }
.ek .ek-legal-body ul { list-style: disc; margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.ek .ek-legal-body li::marker { color: var(--ek-blue); }
.ek .ek-legal-body strong { color: var(--ek-ink); }
.ek .ek-legal-body a { text-decoration: underline; text-underline-offset: 3px; }
.ek-legal-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 28px; border-top: 1px solid var(--ek-line); }
.ek .ek-legal-next a { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: var(--ek-r); background: #fff; box-shadow: 0 1px 2px rgba(10, 20, 51, .04), 0 8px 22px -10px rgba(10, 20, 51, .12); color: var(--ek-ink); text-decoration: none; }
.ek .ek-legal-next a:hover { box-shadow: 0 2px 4px rgba(10, 20, 51, .05), 0 16px 32px -12px rgba(10, 20, 51, .18); }
.ek-legal-next span { font-size: 13.5px; line-height: 1.45; color: var(--ek-muted); }
@media (max-width: 960px) {
	.ek-legal { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; padding-bottom: 56px; }
	.ek-legal-aside { position: static; }
	.ek-legal-aside .ek-legal-help { display: none; }
	.ek-legal-help--m { display: grid; }
	.ek-legal-toc { padding: 14px 16px; border-radius: var(--ek-r); background: #fff; box-shadow: 0 1px 2px rgba(10, 20, 51, .04), 0 8px 22px -10px rgba(10, 20, 51, .12); }
	.ek-legal-toc > summary { display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
	.ek-legal-toc > summary::after { content: "+"; font-size: 20px; font-weight: 500; color: var(--ek-blue); }
	.ek-legal-toc[open] > summary::after { content: "−"; }
	.ek-legal-next { grid-template-columns: minmax(0, 1fr); }
	.ek-legal-head { padding-top: 28px; }
	.ek-legal-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; overflow: visible; }
	.ek .ek-legal-tabs a { text-align: center; padding: 12px 8px; font-size: 14px; }
	.ek .ek-legal-body h2 { font-size: 20px; }
}
@media print {
	.ek-topbar, .ek-header, .ek-mheader, .ek-footer, .ek-tabbar, .ek-legal-tabs, .ek-legal-aside, .ek-legal-next, .ek-legal-help--m, .ek-consent { display: none !important; }
	body, .ek-legal-head { background: #fff !important; }
	.ek-legal { display: block; padding: 0; }
	.ek-legal-key { box-shadow: none; border: 1px solid #ccc; }
	.ek-legal-body { font-size: 11pt; color: #000; }
}

/* ---------- Fiche formation : bloc d'achat rangé ---------- */
#acheter > .ek-acheter__info { flex: 1 1 100%; }
.ek-offer { display: grid; gap: 12px; max-width: 470px; }
.ek .ek-offer__lead { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ek-muted); }
.ek-offer__lead svg, .ek-offer__gift svg, .ek-offer__guarantee svg { flex: none; margin-top: 3px; }
.ek-offer__lead b { color: var(--ek-ink); }
.ek .ek-offer__gift { margin: 0; display: flex; gap: 8px; padding: 9px 12px; border-radius: var(--ek-r); background: #E3F4EC; color: #0B4D37; font-size: 14px; font-weight: 600; line-height: 1.45; }
.ek .ek-offer__ladder { list-style: none; margin: 0; padding: 0; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(10, 20, 51, .04), 0 10px 28px -10px rgba(10, 20, 51, .12); overflow: hidden; }
.ek-offer__ladder li + li { border-top: 1px solid var(--ek-line2); }
.ek .ek-offer__ladder a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; color: var(--ek-ink); text-decoration: none; }
.ek .ek-offer__ladder a:hover { background: #FAF8F4; }
.ek .ek-offer__ladder a:focus-visible { outline-offset: -2px; }
.ek-offer__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.ek-offer__price { display: grid; justify-items: end; margin-left: auto; text-align: right; white-space: nowrap; }
.ek .ek-offer__ladder a > svg { flex: none; margin-right: -4px; }
.ek .ek-offer__ladder a:hover > svg { stroke: var(--ek-blue); }
.ek-offer__price b { font-size: 16px; }
.ek-offer__price small { font-size: 12px; color: var(--ek-muted); }
.ek .ek-offer__guarantee { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 14px; font-weight: 600; color: #0F7553; }

/* Assistant de cours : mise en forme des réponses. */
.ek-ai__msg p { margin: 0 0 8px; }
.ek-ai__msg p:last-child { margin-bottom: 0; }
.ek .ek-ai__msg ul { list-style: disc; margin: 4px 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.ek-ai__left { margin: 6px 0 0; min-height: 1em; }


/* Salle de cours : la barre fixe du bas (Précédent, Terminée, Suivant) ne doit jamais recouvrir le champ actif ni le bouton visé. */
html:has(.tutor-learning-area-footer) { scroll-padding-bottom: 104px; }
.ek-ai__form { scroll-margin-bottom: 104px; }

/* Menu « Proposer à mon entreprise » (details/summary, refermé par Échap ou un clic à côté). */
.ek-pop { position: relative; }
.ek-pop > summary { list-style: none; cursor: pointer; color: var(--ek-blue); }
.ek-pop > summary::-webkit-details-marker { display: none; }
.ek-pop__panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 70; width: 290px; display: grid; gap: 4px; padding: 14px; border-radius: 10px; background: #fff; box-shadow: 0 2px 4px rgba(10, 20, 51, .06), 0 18px 40px -12px rgba(10, 20, 51, .25); font-weight: 500; }
.ek-pop__panel b { font-size: 15px; color: var(--ek-ink); }
.ek-pop__panel > span { margin-bottom: 6px; line-height: 1.45; }
.ek .ek-pop__panel a, .ek-pop__panel button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: 600 14px/1.2 var(--ek-font); color: var(--ek-ink); text-decoration: none; text-align: left; cursor: pointer; }
.ek .ek-pop__panel a:hover, .ek-pop__panel button:hover { background: #FAF8F4; }
@media (max-width: 600px) { .ek-pop__panel { position: fixed; left: 16px; right: 16px; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: auto; } }

/* Espace apprenant : rubrique « Enregistrées ». */
.ek-mylist__sep { display: flex !important; align-items: center; gap: 8px; padding-top: 14px !important; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ek-muted); }

/* Paiement : carte « bientôt disponible » (même gabarit qu'un moyen de paiement, grisé). */
.ek-paysoon { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 14px 16px; border: 1px dashed var(--ek-line); border-radius: var(--ek-r); background: #FAF8F4; cursor: not-allowed; }
.ek-paysoon__radio { width: 18px; height: 18px; flex: none; border: 2px solid #C5CBD8; border-radius: 50%; background: #F1F2F5; }
.ek-paysoon b { color: #56607A; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ek-paysoon__tag { font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: #8A5300; background: #FFF1D2; padding: 2px 8px; border-radius: 999px; }
.ek-paysoon .ek-row { opacity: .6; }


/* ---------- Panier ---------- */
.ek-cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.ek-cart__main { display: grid; gap: 18px; min-width: 0; }
.ek .ek-cart__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ek-cart__item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(10, 20, 51, .04), 0 10px 28px -10px rgba(10, 20, 51, .12); }
.ek-cart__thumb { display: block; width: 120px; aspect-ratio: 1.91 / 1; border-radius: 6px; overflow: hidden; }
.ek-cart__thumb img, .ek-cart__thumb .ek-cover-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.ek-cart__thumb .ek-ico-box { width: 100%; height: 100%; border-radius: 6px; }
.ek .ek-cart__name a { color: var(--ek-ink); text-decoration: none; }
.ek .ek-cart__name a:hover { color: var(--ek-blue); }
.ek-cart__price { font-size: 17px; white-space: nowrap; }
.ek .ek-cart__remove { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 8px; font-size: 13.5px; font-weight: 600; color: var(--ek-muted); text-decoration: none; border-radius: 6px; }
.ek .ek-cart__remove:hover { color: #C2362B; background: #FDECEA; }
.ek .ek-cart__remove:hover svg { stroke: #C2362B; }
.ek-cart__coupon { display: flex; gap: 10px; max-width: 460px; }
.ek-cart__coupon input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #8E97AE; border-radius: var(--ek-r); font: 500 15px/1 var(--ek-font); background: #fff; }
.ek-cart__totals { position: sticky; top: 100px; display: grid; gap: 16px; padding: 22px 22px 26px; }
.ek-cart__totals .ek-sumrow--total { padding-top: 14px; border-top: 1px solid var(--ek-line2); }
.ek .ek-cart__guarantee { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; font-weight: 600; color: #0F7553; }
.ek-cart__guarantee svg { flex: none; margin-top: 2px; }
.ek-cart__totals .ek-note { margin-top: 0 !important; }
.woocommerce-cart .woocommerce-message .button.wc-forward { display: none; } /* « Voir le panier » sur la page du panier */
@media (max-width: 900px) {
	.ek-cart { grid-template-columns: minmax(0, 1fr); }
	.ek-cart__totals { position: static; }
}
@media (max-width: 600px) {
	.ek-cart__item { grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; }
	.ek-cart__thumb { width: 84px; }
	.ek-cart__price { grid-column: 2; }
	.ek-cart__remove { grid-column: 1 / -1; justify-self: end; }
}
.woocommerce-cart .ek-content > .woocommerce { display: block; } /* la grille d'UiCore pour le panier est remplacée par celle d'EKEM */
.woocommerce-cart .ek-content > .woocommerce > .woocommerce-notices-wrapper { margin-bottom: 16px; }
.woocommerce-cart .cart-empty { margin-bottom: 16px; }

/* Bandeau du haut : « Vérifier un certificat » à droite. */
.ek .ek-topbar a.ek-topbar__right, .ek-topbar a.ek-topbar__right { margin-left: auto; gap: 6px; }

/* Panier dans l'en-tête (visible seulement s'il contient un article). */
.ek .ek-cartlink, .ek-cartlink { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: #0A1433; text-decoration: none; }
.ek-cartlink:hover { background: rgba(10, 20, 51, .06); }
.ek-cartlink__n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #2652EE; color: #fff; font: 700 11px/18px var(--ek-font, system-ui); text-align: center; }

/* Bouton « Terminer la formation » de Tutor : inutile, la formation se termine d'elle-même au dernier contenu validé.
   Masqué tant qu'il est désactivé ; il reste visible en secours s'il devient cliquable. */
.tutor-tooltip-wrap:has(> .tutor-btn.disabled[\@click*="tutor-course-complete"]) { display: none !important; }

/* Programme : projet final après le dernier module. */
.tutor-learning-nav-item.ek-navproject { border-top: 1px dashed #D6DCEB; margin-top: 6px; padding-top: 12px; }
.ek-navproject__ico { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.tutor-learning-nav-item.ek-navproject--due { background: #EEF2FF; }
.tutor-learning-nav-item.ek-navproject--due .tutor-text-subdued { color: #2652EE !important; font-weight: 600; }

/* Dernier contenu d'une formation terminée : prochaine étape (projet final ou certificat). */
.ek-endbanner { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; padding: 18px 20px; border: 1px solid #C9D6FF; border-radius: 14px; background: #F2F5FF; color: #0A1433; font-size: 15px; line-height: 1.5; }
.ek-endbanner b { font-size: 16px; }
.ek-endbanner__ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff; }
.ek-endbanner .ek-btn { margin-left: auto; flex: none; }
@media (max-width: 640px) { .ek-endbanner { flex-wrap: wrap; } .ek-endbanner .ek-btn { margin-left: 0; width: 100%; justify-content: center; } }

.ek-endbanner-wrap { max-width: 1080px; margin: 24px auto 0; padding: 0 24px; }
@media (max-width: 640px) { .ek-endbanner-wrap { padding: 0 16px; margin-top: 16px; } }

/* Mes certificats : partage en deux boutons, le reste en liens discrets. */
.ek-certcard__links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 4px; font-size: 14px; }
.ek .ek-certcard__links a, .ek .ek-certcard__links button { padding: 0; min-height: 0; border: 0; background: none; color: #2652EE; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal; line-height: 1.6; }
.ek .ek-certcard__links a:hover, .ek .ek-certcard__links button:hover { text-decoration: underline; }
.ek-v2-tip__bubble i { margin-top: 4px; color: #9AA6CC; font-style: normal; }

