/* L'Atelier (/academy/atelier/): module pages, catalogue, controls shared by the diagrams. Prefix .atl-. Site tokens, dark mode follows. */
.atl { --atl-ink: var(--text); --atl-mute: var(--text-muted); --atl-line: var(--border); --atl-soft: var(--bg-soft); --atl-acc: var(--accent); --atl-ok: #1F9D6B; --atl-warn: #C2570C; --atl-bad: #C7352B; --atl-sky: #DCE9FB; --atl-ground: #D9D2C3; --atl-metal: #8A94A6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .atl { --atl-sky: #16243C; --atl-ground: #2A2822; --atl-metal: #6F7A8E; --atl-ok: #34D399; --atl-warn: #F2A24A; --atl-bad: #FF7A70; } }
:root[data-theme="dark"] .atl { --atl-sky: #16243C; --atl-ground: #2A2822; --atl-metal: #6F7A8E; --atl-ok: #34D399; --atl-warn: #F2A24A; --atl-bad: #FF7A70; }

.atl-head { padding: clamp(40px, 6vw, 80px) 0 28px; max-width: 820px; }
.atl-crumbs { margin: 0 0 14px; font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--atl-mute); }
.atl-crumbs a { color: var(--atl-acc); text-decoration: none; }
.atl-head h1 { margin: 0 0 14px; font: 800 clamp(32px, 5.4vw, 56px)/1.06 'Sora', sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.atl-sum { margin: 0 0 16px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--atl-mute); text-wrap: pretty; }
.atl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.atl-meta span { padding: 5px 12px; border-radius: 100px; border: 1px solid var(--atl-line); background: var(--atl-soft); font-size: 13px; font-weight: 600; }
.atl-obj { margin: 0; padding: 20px 24px; list-style: none; border: 1px solid var(--atl-line); border-radius: 18px; background: var(--atl-soft); }
.atl-obj li { position: relative; padding: 4px 0 4px 26px; font-size: 15.5px; line-height: 1.5; }
.atl-obj li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px; border-left: 2px solid var(--atl-acc); border-bottom: 2px solid var(--atl-acc); transform: rotate(-45deg); }
.atl-obj-t { margin: 0 0 6px; font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--atl-mute); }

.atl-body { max-width: 860px; margin: 0 auto 64px; padding-top: 12px; }
.atl-block { margin: 0 0 28px; }
.atl small { display: block; margin-bottom: 8px; font: 600 11.5px 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--atl-mute); }
.atl-intro p { margin: 0; font: 600 clamp(20px, 2.6vw, 26px)/1.4 'Sora', sans-serif; letter-spacing: -.02em; text-wrap: pretty; }
.atl-text h2 { margin: 0 0 10px; font: 700 clamp(22px, 3vw, 30px)/1.15 'Sora', sans-serif; letter-spacing: -.025em; }
.atl-text p, .atl-callout p, .atl-keep li, .atl-calc li, .atl-quiz p, .atl-book p { margin: 0 0 10px; font-size: 17px; line-height: 1.65; }
.atl-callout { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--atl-line); border-left-width: 4px; background: var(--atl-soft); }
.atl-callout h3 { margin: 0 0 6px; font: 700 18px 'Sora', sans-serif; }
.atl-trap { border-left-color: var(--atl-warn); }
.atl-rule { border-left-color: var(--atl-acc); }
.atl-src { font-size: 13px !important; color: var(--atl-mute); margin: 0 !important; }
.atl-keep { padding: 22px 24px; border-radius: 18px; background: #0E1A3A; color: #fff; }
.atl-keep small { color: #8FB0FF; }
.atl-keep ul { margin: 0; padding-left: 20px; }
.atl-keep li { margin-bottom: 6px; color: #E6ECFA; }
.atl-calc ol { margin: 0 0 12px; padding-left: 22px; }
.atl-calc li { margin-bottom: 6px; }
.atl-result { padding: 12px 16px; border-radius: 12px; background: var(--atl-soft); border: 1px dashed var(--atl-line); font-weight: 600; }
.atl-quiz { padding: 24px; border: 1px solid var(--atl-line); border-radius: 20px; }
.atl-quiz h3 { margin: 0 0 8px; font: 700 22px 'Sora', sans-serif; }
.atl-book { padding: 16px 20px; border-radius: 14px; background: var(--atl-soft); }
.atl-book p { margin-bottom: 6px; }
.atl-review { padding: 10px 14px; border-radius: 12px; background: #FFF4E0; color: #7A3E00; border: 1px solid #F1D9B0; font-size: 14px; font-weight: 600; }

/* predict */
.atl-predict { padding: 22px; border: 1px solid var(--atl-line); border-radius: 20px; }
.atl-predict h3 { margin: 0 0 14px; font: 700 clamp(18px, 2.2vw, 22px)/1.3 'Sora', sans-serif; }
.atl-choices { display: grid; gap: 8px; }
.atl-choice { text-align: left; min-height: 44px; padding: 11px 16px; border: 1px solid var(--atl-line); border-radius: 12px; background: var(--bg); color: var(--atl-ink); font: 500 16px/1.35 'Work Sans', sans-serif; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.atl-choice:hover:not(:disabled) { border-color: var(--atl-acc); }
.atl-choice:disabled { cursor: default; opacity: .75; }
.atl-choice.is-right { border-color: var(--atl-ok); background: color-mix(in srgb, var(--atl-ok) 14%, transparent); opacity: 1; }
.atl-choice.is-wrong { border-color: var(--atl-bad); background: color-mix(in srgb, var(--atl-bad) 12%, transparent); opacity: 1; }
.atl-choice:focus-visible, .atl-btn:focus-visible, .atl-seg button:focus-visible, .atl-ctl input:focus-visible { outline: 2px solid var(--atl-acc); outline-offset: 2px; }
.atl-why { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--atl-soft); font-size: 16px; line-height: 1.6; }

/* diagram frame and controls */
.atl-fig { margin: 0 0 32px; padding: 18px; border: 1px solid var(--atl-line); border-radius: 22px; background: var(--bg); }
.atl-fig-title { margin: 0 0 12px; font: 700 18px 'Sora', sans-serif; letter-spacing: -.015em; }
.atl-mount { min-height: 120px; }
.atl-loading, .atl-note { margin: 8px 0 0; font-size: 14px; color: var(--atl-mute); }
.atl-stage { border-radius: 16px; overflow: hidden; background: var(--atl-sky); }
.atl-stage svg { display: block; width: 100%; height: auto; }
.atl-stage text { font-family: 'Work Sans', sans-serif; }
.atl-mono { font-family: 'IBM Plex Mono', monospace; }
.atl-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; margin-top: 14px; }
.atl-ctl { display: grid; gap: 6px; }
.atl-ctl-label { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; font-weight: 600; }
.atl-ctl-val { font: 600 14px 'IBM Plex Mono', monospace; color: var(--atl-acc); white-space: nowrap; }
.atl-ctl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; cursor: pointer; }
.atl-ctl input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--atl-acc) var(--p, 50%), var(--atl-line) var(--p, 50%)); }
.atl-ctl input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--atl-line); }
.atl-ctl input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--atl-acc); }
.atl-ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--atl-acc); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.atl-ctl input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--atl-acc); }
.atl-reads { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.atl-read { padding: 10px 14px; border-radius: 14px; background: var(--atl-soft); border: 1px solid var(--atl-line); }
.atl-read small { margin-bottom: 2px; font-size: 10.5px; }
.atl-read strong { font: 700 22px 'Sora', sans-serif; letter-spacing: -.02em; }
.atl-read span { margin-left: 4px; font-size: 13px; color: var(--atl-mute); }
.atl-read[data-tone="ok"] strong { color: var(--atl-ok); }
.atl-read[data-tone="warn"] strong { color: var(--atl-warn); }
.atl-read[data-tone="bad"] strong { color: var(--atl-bad); }
.atl-seg { display: inline-flex; padding: 3px; border-radius: 100px; background: var(--atl-soft); border: 1px solid var(--atl-line); flex-wrap: wrap; }
.atl-seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 100px; background: transparent; color: var(--atl-mute); font: 600 14px 'Work Sans', sans-serif; cursor: pointer; }
.atl-seg button[aria-pressed="true"] { background: var(--atl-acc); color: #fff; }
.atl-btn { min-height: 40px; padding: 0 18px; border: 1px solid var(--atl-line); border-radius: 100px; background: var(--bg); color: var(--atl-ink); font: 600 14px 'Work Sans', sans-serif; cursor: pointer; }
.atl-btn:hover { border-color: var(--atl-acc); }
.atl-alt { margin-top: 12px; font-size: 14px; color: var(--atl-mute); }
.atl-alt summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.atl-alt p { margin: 6px 0 0; line-height: 1.6; }
.atl-tag { font: 600 11px 'IBM Plex Mono', monospace; }

/* paywall + status */
.atl-wall { max-width: 720px; margin: 24px auto 72px; padding: clamp(24px, 4vw, 40px); text-align: center; border: 1px solid var(--atl-line); border-radius: 26px; background: var(--atl-soft); }
.atl-wall h2 { margin: 6px 0 10px; font: 800 clamp(26px, 4vw, 36px)/1.1 'Sora', sans-serif; letter-spacing: -.03em; }
.atl-wall p { margin: 0 auto 18px; max-width: 52ch; font-size: 16.5px; line-height: 1.6; color: var(--atl-mute); }
.atl-wall ul { margin: 0 auto 22px; padding: 0; list-style: none; max-width: 460px; text-align: left; }
.atl-wall li { position: relative; padding: 6px 0 6px 26px; font-size: 15.5px; }
.atl-wall li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--atl-acc); border-bottom: 2px solid var(--atl-acc); transform: rotate(-45deg); }
.atl-wall .atl-ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* catalogue */
.atl-cat-subject { margin: 44px 0 14px; display: flex; align-items: baseline; gap: 12px; }
.atl-cat-subject h2 { margin: 0; font: 700 clamp(22px, 3vw, 30px) 'Sora', sans-serif; letter-spacing: -.025em; }
.atl-cat-subject b { font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: .08em; color: var(--atl-acc); }
.atl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.atl-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--atl-line); border-radius: 20px; background: var(--bg); color: var(--atl-ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.atl-card:hover { transform: translateY(-2px); border-color: var(--atl-acc); }
.atl-card small { margin-bottom: 10px; }
.atl-card h3 { margin: 0 0 8px; font: 700 20px/1.2 'Sora', sans-serif; letter-spacing: -.02em; }
.atl-card p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--atl-mute); }
.atl-card span { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--atl-acc); }
.atl-soon { padding: 14px 18px; border: 1px dashed var(--atl-line); border-radius: 14px; color: var(--atl-mute); font-size: 14.5px; }
@media (max-width: 900px) { .atl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .atl-cards { grid-template-columns: minmax(0, 1fr); } .atl-fig { padding: 12px; border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { .atl-card, .atl-choice { transition: none; } }
.atl-panel > .atl-btn { justify-self: start; }
.atl-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }

/* ===== v2: professional chrome (toolbar, dark instrument canvas, LCD readouts) ===== */
.atl-fig { padding: 0; overflow: hidden; border-radius: 22px; background: var(--bg-soft); border: 1px solid var(--atl-line); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 16px 40px -28px rgba(10, 20, 50, .35); }
.atl-fig-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--atl-line); background: var(--bg); }
.atl-fig-tag { flex: none; padding: 4px 10px; border-radius: 100px; font: 700 10.5px 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: linear-gradient(120deg, #2252CC, #12A8D6); }
.atl-fig-title { flex: 1; min-width: 0; margin: 0; font: 700 16px/1.25 'Sora', sans-serif; letter-spacing: -.01em; }
.atl-fig-tools { display: flex; gap: 8px; flex: none; }
.atl-tool { min-height: 34px; padding: 0 14px; border: 1px solid var(--atl-line); border-radius: 100px; background: var(--bg); color: var(--atl-ink); font: 600 12.5px 'Work Sans', sans-serif; cursor: pointer; }
.atl-tool:hover { border-color: var(--atl-acc); color: var(--atl-acc); }
.atl-tool:focus-visible { outline: 2px solid var(--atl-acc); outline-offset: 2px; }
.atl-mount { min-height: 160px; padding: 14px; }
.atl-fig .atl-stage { border-radius: 16px; background: #070D1B; box-shadow: 0 0 0 1px #1B2A47, 0 18px 50px -24px rgba(8, 18, 45, .9); }
.atl-fig .atl-stage svg text { font-family: 'IBM Plex Mono', 'Work Sans', monospace; }
.atl-panel { padding: 16px; border: 1px solid var(--atl-line); border-radius: 16px; background: var(--bg); margin-top: 14px; }
.atl-row { padding: 0; }
.atl-reads { gap: 10px; }
.atl-read { border: 1px solid #1B2A47; background: linear-gradient(180deg, #0C1730, #070D1B); border-radius: 14px; padding: 11px 14px; }
.atl-read small { color: #8FA0BF; }
.atl-read strong { font: 700 24px 'IBM Plex Mono', monospace; letter-spacing: -.02em; color: #4EE1FF; text-shadow: 0 0 14px rgba(78, 225, 255, .35); }
.atl-read span { color: #8FA0BF; }
.atl-read[data-tone="ok"] strong { color: #34D399; text-shadow: 0 0 14px rgba(52, 211, 153, .35); }
.atl-read[data-tone="warn"] strong { color: #F5A524; text-shadow: 0 0 14px rgba(245, 165, 36, .35); }
.atl-read[data-tone="bad"] strong { color: #FF6B7A; text-shadow: 0 0 14px rgba(255, 107, 122, .35); }
.atl-ctl-label { font-size: 13px; }
.atl-ctl-val { padding: 2px 8px; border-radius: 6px; background: #0C1730; color: #4EE1FF; }
.atl-ctl input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(34, 82, 204, .22), 0 3px 10px rgba(0, 0, 0, .35); }
.atl-btn, .atl-seg button { font-size: 13.5px; }
.atl-note { padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--atl-line); margin-top: 12px; color: var(--atl-mute); }
.atl-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.atl-presets > small { margin: 0 4px 0 0; }
.atl-fig.is-full { position: fixed; inset: 0; z-index: 400; margin: 0; border-radius: 0; overflow: auto; background: var(--bg); }
.atl-fig.is-full .atl-mount { max-width: 1200px; margin: 0 auto; }
.atl-lock { overflow: hidden; }
@media (max-width: 600px) { .atl-fig-bar { flex-wrap: wrap; } .atl-fig-title { order: 3; flex-basis: 100%; } .atl-mount { padding: 10px; } .atl-panel { padding: 12px; } }

/* buttons: same height and baseline whatever the variant (the site's .btn-primary and .btn-outline differ) */
.ac-ctas .btn, .atl-ctas .btn, .atl-wall .btn, .atl-quiz .btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 0 28px; border: 1.5px solid var(--accent); border-radius: 100px; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; text-align: center; }
.ac-ctas .btn-primary, .atl-ctas .btn-primary, .atl-wall .btn-primary, .atl-quiz .btn-primary { background: var(--accent); color: #fff; }
.ac-ctas .btn-outline, .atl-ctas .btn-outline, .atl-wall .btn-outline { background: transparent; color: var(--accent); }
.ac-ctas, .atl-ctas { align-items: center; }
.atl-head .atl-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
