/* Concept : un pupitre de cockpit sur fond de nuit — MCDU, ND, et la fiche d'exercice de l'instructeur côte à côte */
:root {
  color-scheme: dark;
  --bg: #111417;
  --panel: #1a1f24;
  --panel-2: #222830;
  --line: #2e363f;
  --ink: #e8ebed;
  --muted: #9aa4ad;
  --amber: #ffb000;
  --green: #3fe07a;
  --cyan: #3fd4e8;
  --magenta: #ff5cf0;
  --yellow: #ffe14a;
  --body: #3d434a;
  --body-hi: #4b525a;
  --body-lo: #2b3035;
  --key: #23272b;
  --key-hi: #343a40;
  --key-ink: #f1f1ec;
  --fd: "B612", "Segoe UI", system-ui, sans-serif;
  --fm: "B612 Mono", ui-monospace, Menlo, Consolas, monospace;
  --cw: clamp(10px, calc((100vw - 150px) / 24), 15px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--fd); font-size: 14px; line-height: 1.45; }
button { font-family: inherit; }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- En-tête ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 14px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  border-bottom: 1px solid var(--line); background: var(--panel);
}
.brand h1 { margin: 0; font-size: 20px; letter-spacing: 0.06em; font-weight: 700; }
.brand h1 span { color: var(--amber); font-weight: 400; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.clock { font-family: var(--fm); font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.clock b { color: var(--green); font-size: 18px; font-weight: 400; }

/* ---------- Grille principale ---------- */
.layout {
  display: grid; gap: 20px; align-items: start;
  grid-template-columns: auto minmax(340px, 1fr) minmax(320px, 420px);
  padding-block: 20px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  max-width: 1600px; margin: 0 auto;
}
@media (max-width: 1280px) {
  .layout { grid-template-columns: auto minmax(320px, 1fr); }
  .side { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .mcdu { justify-self: center; }
}

/* ---------- MCDU ---------- */
.mcdu {
  --rh: calc(var(--cw) * 1.62);
  background: linear-gradient(180deg, var(--body-hi), var(--body) 30%, var(--body-lo));
  border-radius: 10px; padding: calc(var(--cw) * 0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.45);
  width: max-content; max-width: 100%;
  user-select: none; -webkit-user-select: none;
}
.mcdu-head { display: flex; align-items: stretch; gap: calc(var(--cw) * 0.45); }
.lsk-col { display: grid; grid-template-rows: repeat(14, var(--rh)); padding-block: calc(var(--cw) * 0.5); }
.lsk-col button {
  width: calc(var(--cw) * 2.3); height: calc(var(--rh) * 0.95); align-self: center;
  border: 0; border-radius: 3px; background: var(--key); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 0 #15181b;
  position: relative;
}
.lsk-col button::after { content: ""; position: absolute; left: 25%; right: 25%; top: 50%; height: 2px; background: #c9ccc8; transform: translateY(-50%); }
.lsk-col button:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.screen-bezel { background: #0b0d0e; padding: calc(var(--cw) * 0.5) calc(var(--cw) * 0.6); border-radius: 4px; box-shadow: inset 0 0 0 2px #050606, inset 0 0 18px rgba(0,0,0,.9); }
.screen { font-family: var(--fm); background: #000; filter: brightness(var(--brt, 1)); }
.mrow { display: flex; height: var(--rh); align-items: center; }
.mc { display: inline-block; width: var(--cw); text-align: center; font-size: calc(var(--cw) * 1.38); line-height: 1; white-space: pre; }
.mc.sm { font-size: calc(var(--cw) * 1.05); }
.mc.green { color: #3fe07a; } .mc.cyan { color: #3fd4e8; } .mc.white { color: #f4f4f0; } .mc.amber { color: #ffb000; }
.mc.magenta { color: #ff5cf0; } .mc.yellow { color: #ffe14a; } .mc.inop { color: #8b95a1; }

.annun { display: flex; justify-content: space-between; gap: 6px; padding: calc(var(--cw) * 0.5) calc(var(--cw) * 2.9) calc(var(--cw) * 0.3); }
.lamp { font-family: var(--fm); font-size: calc(var(--cw) * 0.62); letter-spacing: .06em; color: #9aa3ac; border: 1px solid #2a2e33; padding: 1px 4px; border-radius: 2px; background: #2f343a; }

.key {
  font-family: var(--fd); font-weight: 700; color: var(--key-ink); background: var(--key); border: 0; border-radius: 4px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 2px 0 #121417; line-height: 1.05; padding: 0 2px;
  font-size: calc(var(--cw) * 0.66); letter-spacing: .02em;
}
.key:hover { background: var(--key-hi); }
.key:active, .key.down { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.key.blank { visibility: hidden; }
.fkeys { display: grid; grid-template-columns: repeat(6, 1fr) calc(var(--cw) * 2.4); gap: calc(var(--cw) * 0.4); padding: calc(var(--cw) * 0.4) calc(var(--cw) * 0.3); }
.fkeys .key { height: calc(var(--cw) * 2.5); }
.pad { display: grid; grid-template-columns: auto 1fr; gap: calc(var(--cw) * 1.2); padding: calc(var(--cw) * 0.6) calc(var(--cw) * 0.3) calc(var(--cw) * 0.2); }
.pad-left { display: grid; grid-template-columns: repeat(3, calc(var(--cw) * 2.7)); gap: calc(var(--cw) * 0.45); align-content: start; }
.pad-right { display: grid; grid-template-columns: repeat(5, calc(var(--cw) * 2.5)); gap: calc(var(--cw) * 0.45); justify-content: end; align-content: start; }
.pad .key { height: calc(var(--cw) * 2.5); }
.pad .key.round { border-radius: 50%; width: calc(var(--cw) * 2.5); justify-self: center; font-size: calc(var(--cw) * 1.0); }
.pad .key.alpha { font-size: calc(var(--cw) * 1.0); }
.pad .key.slew { font-size: calc(var(--cw) * 1.1); }
.pad .key.small { font-size: calc(var(--cw) * 0.62); }
.kbd-tip { margin: calc(var(--cw) * 0.6) 0 0; font-size: 11px; color: #b9bfc4; max-width: calc(var(--cw) * 33); line-height: 1.4; }

/* ---------- ND ---------- */
.center { display: grid; gap: 12px; min-width: 0; }
.nd-bezel { background: #2b3035; border-radius: 10px; padding: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.4); }
#nd { display: block; width: 100%; aspect-ratio: 1 / 1; max-width: 100%; background: #000; border-radius: 4px; }
.nd-ctl { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { background: var(--panel); color: var(--muted); border: 0; border-right: 1px solid var(--line); padding: 6px 10px; font-family: var(--fm); font-size: 12px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--panel-2); color: var(--cyan); }
.seg button:hover { color: var(--ink); }

.flight { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 10px; }
.flight-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flight-row > button { border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); border-radius: 6px; padding: 7px 14px; cursor: pointer; font-weight: 700; font-size: 13px; }
.flight-row > button.go { background: var(--green); color: #07210f; border-color: transparent; }
.flight-row > button:disabled { opacity: .45; cursor: default; }
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin: 0; }
.readouts div { min-width: 0; }
.readouts dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.readouts dd { margin: 0; font-family: var(--fm); color: var(--green); font-size: 15px; font-variant-numeric: tabular-nums; }
.notice { margin: 0; min-height: 1.4em; color: var(--amber); font-size: 13px; }
.link { justify-self: start; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; font-size: 12.5px; }
.link:hover { color: var(--ink); }

/* ---------- Formation ---------- */
.side { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; display: flex; flex-direction: column; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); padding: 12px 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; letter-spacing: .02em; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--amber); }
.pane { padding: 16px; display: grid; gap: 14px; }

.sc-list { display: grid; gap: 8px; }
.sc { text-align: left; display: grid; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.sc:hover { border-color: #46515c; }
.sc h4 { margin: 0; font-size: 14.5px; text-wrap: balance; }
.sc p { margin: 0; color: var(--muted); font-size: 12.5px; }
.sc .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); }
.chip { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; }
.chip.l1 { color: var(--cyan); } .chip.l2 { color: var(--green); } .chip.l3 { color: var(--amber); }
.free { font-size: 12.5px; color: var(--muted); margin: 0; }

.ex-head { display: grid; gap: 6px; }
.ex-head h3 { margin: 0; font-size: 16px; text-wrap: balance; }
.ex-head p { margin: 0; color: var(--muted); font-size: 13px; }
.ex-bar { display: flex; align-items: center; gap: 10px; font-family: var(--fm); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { flex: 1; height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); transition: width .3s; }
.ex-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ex-actions button { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; }

.brief { border: 1px dashed #4a545e; border-radius: 6px; padding: 10px 12px; background: #161a1e; }
.brief h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.brief dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 12px; font-size: 12.5px; }
.brief dt { color: var(--muted); }
.brief dd { margin: 0; font-family: var(--fm); font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: st; }
.steps li { counter-increment: st; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px 8px 38px; position: relative; background: #181d22; }
.steps li::before {
  content: counter(st); position: absolute; left: 9px; top: 8px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid #4a545e; color: var(--muted); font-size: 11px; display: grid; place-items: center; font-family: var(--fm);
}
.steps li.done { border-color: #24452f; background: #142019; }
.steps li.done::before { content: "✓"; background: var(--green); border-color: var(--green); color: #07210f; font-weight: 700; }
.steps li.cur { border-color: var(--amber); }
.steps li.cur::before { border-color: var(--amber); color: var(--amber); }
.steps .st-t { font-weight: 700; font-size: 13px; }
.steps .st-d { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.steps li.done .hint-btn { display: none; }
.steps li.done .st-d { opacity: .7; font-size: 12px; }
.hint-btn { margin-top: 5px; background: none; border: 0; color: var(--cyan); padding: 0; font-size: 12px; cursor: pointer; text-decoration: underline; }
.hint { margin: 5px 0 0; font-size: 12.5px; color: var(--cyan); }
.finish { border: 1px solid var(--green); color: var(--green); border-radius: 6px; padding: 10px 12px; font-size: 13px; }

.help h3 { margin: 4px 0 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.help ol, .help ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13px; }
.difsrip b { color: var(--amber); font-family: var(--fm); }
.colors { list-style: none; padding-left: 0 !important; }
.colors li { display: flex; gap: 8px; align-items: baseline; }
.sw { flex: none; width: 10px; height: 10px; border-radius: 2px; display: inline-block; transform: translateY(1px); }
.sw.amber { background: var(--amber); } .sw.cyan { background: var(--cyan); } .sw.green { background: var(--green); }
.sw.yellow { background: var(--yellow); } .sw.magenta { background: var(--magenta); } .sw.white { background: #f4f4f0; }
.tablewrap { overflow-x: auto; }
.fmt { border-collapse: collapse; font-size: 12.5px; width: 100%; }
.fmt td { border-bottom: 1px solid var(--line); padding: 5px 6px; vertical-align: top; }
.fmt td:first-child { color: var(--muted); }
code { font-family: var(--fm); color: var(--cyan); font-size: 12px; }
.msgs { margin: 0; display: grid; gap: 2px; font-size: 12.5px; }
.msgs dt { font-family: var(--fm); color: #f4f4f0; font-size: 12px; margin-top: 4px; }
.msgs dd { margin: 0; color: var(--muted); }
.disclaimer { margin: 0; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }

/* =====================================================================
   Vues et cours — le cours est un manuel imprimé posé sur le pupitre
   ===================================================================== */
:root {
  --paper: #eef0eb;
  --paper-2: #e3e6df;
  --paper-3: #d6dad2;
  --p-ink: #1c2125;
  --p-muted: #545d64;
  --p-rule: #c3c8bf;
  --p-amber: #8c5800;
  --p-blue: #0d5a70;
  --p-mag: #a1258f;
  --p-green: #1f6b3a;
  --fs: "Source Serif 4", Georgia, "Times New Roman", serif;
}
.views { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.views button { background: var(--panel); color: var(--muted); border: 0; padding: 8px 18px; font-weight: 700; font-size: 13.5px; cursor: pointer; letter-spacing: .03em; }
.views button + button { border-left: 1px solid var(--line); }
.views button[aria-selected="true"] { background: var(--amber); color: #1a1200; }

.course {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start;
  max-width: 1240px; margin: 0 auto;
  padding-block: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; display: grid; gap: 12px; align-content: start; }
.toc-title { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.toc-prog { display: flex; align-items: center; gap: 8px; font-family: var(--fm); font-size: 11.5px; color: var(--muted); }
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.toc-list li.sep { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.toc-list a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; align-items: baseline; color: var(--muted); text-decoration: none; padding: 5px 8px; border-radius: 5px; font-size: 13px; }
.toc-list a:hover { color: var(--ink); background: var(--panel); }
.toc-list a.active { color: var(--ink); background: var(--panel-2); }
.toc-list .n { font-family: var(--fm); font-size: 11.5px; color: #8e99a4; }
.toc-list li.done .n { color: var(--green); }
.toc-list li.done .n::after { content: " ✓"; }
.toc-go { background: var(--green); color: #07210f; border: 0; border-radius: 6px; padding: 9px 12px; font-weight: 700; cursor: pointer; font-size: 13px; }

.paper {
  color-scheme: light;
  background: var(--paper); color: var(--p-ink); border-radius: 4px; min-width: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 40px rgba(0,0,0,.45);
  padding: clamp(20px, 4vw, 56px) clamp(16px, 5vw, 72px);
  font-family: var(--fs); font-size: 17px; line-height: 1.62;
}
.paper :where(p, li, dd, td) { max-width: 72ch; }
.paper a { color: var(--p-blue); }
.chap { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--p-rule); scroll-margin-top: 16px; }
.chap:last-child { border-bottom: 0; margin-bottom: 0; }
.eyebrow { margin: 0 0 4px; font-family: var(--fd); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--p-amber); }
.course-title { font-family: var(--fd); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 16px; text-wrap: balance; letter-spacing: -.01em; }
.paper h2 { font-family: var(--fd); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 18px; text-wrap: balance; }
.paper h3 { font-family: var(--fd); font-size: 18px; margin: 30px 0 8px; text-wrap: balance; }
.paper h3 + p { margin-top: 0; }
.lead { font-size: 19.5px; line-height: 1.55; color: #2b3237; }
.paper ul, .paper ol { padding-left: 1.3em; }
.paper li + li { margin-top: 4px; }
.paper kbd {
  font-family: var(--fd); font-weight: 700; font-size: .72em; letter-spacing: .03em; white-space: nowrap;
  background: #2a2f34; color: #f1f1ec; border-radius: 3px; padding: 2px 6px; box-shadow: 0 2px 0 #11151a; vertical-align: .08em;
}
.lsk { font-family: var(--fm); font-size: .78em; white-space: nowrap; border: 1px solid var(--p-ink); border-radius: 3px; padding: 0 5px; vertical-align: .08em; }
code.scr { font-family: var(--fm); font-size: .8em; background: #0b0d0e; color: #f4f4f0; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
code.scr.a { color: #ffb000; } code.scr.c { color: #3fd4e8; } code.scr.g { color: #3fe07a; } code.scr.y { color: #ffe14a; } code.scr.m { color: #ff5cf0; } code.scr.w { color: #f4f4f0; }
code.in { font-family: var(--fm); font-size: .82em; color: var(--p-blue); background: #dfe8e9; padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.c-mag { color: var(--p-mag); font-weight: 600; } .c-cyan { color: var(--p-blue); font-weight: 600; } .c-yel { color: #8a6d00; font-weight: 600; } .c-amb { color: var(--p-amber); font-weight: 600; }

.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 32px; }
.obj-list li::marker { font-family: var(--fd); color: var(--p-amber); }
.note-h { margin: 0 0 6px; font-family: var(--fd); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.objectifs { border: 1px solid var(--p-rule); background: var(--paper-2); padding: 12px 18px; margin: 0 0 22px; border-radius: 3px; }
.objectifs .note-h { color: var(--p-blue); }
.objectifs ul { margin: 0; }
.retenir { border: 2px solid var(--p-ink); padding: 14px 20px; margin: 28px 0 18px; position: relative; background: #f6f7f3; }
.retenir .note-h { position: absolute; top: -10px; left: 14px; background: var(--paper); padding: 0 8px; color: var(--p-ink); }
.retenir ul { margin: 4px 0 0; }
.note { padding: 12px 18px; margin: 22px 0; border-radius: 3px; }
.note p:last-child { margin-bottom: 0; }
.note.warn { background: #f3e6cc; border: 1px solid #d9b96f; }
.note.warn .note-h { color: var(--p-amber); }
.note.sim { background: #dfe6ea; border: 1px solid #b4c3cb; }
.note.sim .note-h { color: var(--p-blue); }
.example { border-left: 3px double var(--p-blue); padding: 6px 0 6px 16px; margin: 18px 0; }
.example .note-h { color: var(--p-blue); }
.example ol, .example p { margin: 4px 0; }
.formula { font-family: var(--fd); font-size: 15px; text-align: center; padding: 12px; border-top: 1px solid var(--p-rule); border-bottom: 1px solid var(--p-rule); margin: 16px auto; max-width: 64ch; }
.formula span { color: var(--p-muted); }
.cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--p-rule); margin: 14px 0; }
.cmp > div { padding: 12px 16px; }
.cmp > div + div { border-left: 1px solid var(--p-rule); }
.cmp-h { margin: 0 0 4px; font-family: var(--fd); font-weight: 700; }
.cmp .ex { font-size: 15px; color: var(--p-muted); margin-bottom: 0; }

.tablewrap { overflow-x: auto; margin: 14px 0; }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.4; }
.tbl th { font-family: var(--fd); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; text-align: left; border-bottom: 2px solid var(--p-ink); padding: 6px 10px 6px 0; color: var(--p-muted); }
.tbl td { border-bottom: 1px solid var(--p-rule); padding: 7px 10px 7px 0; vertical-align: top; }
.tbl.compact td, .tbl.compact th { padding-right: 16px; }
.tbl td.num { font-family: var(--fm); font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.tot td { border-top: 2px solid var(--p-ink); font-weight: 600; }
.sw2 { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.25); }
.sw2.amber { background: #ffb000; } .sw2.cyan { background: #3fd4e8; } .sw2.green { background: #3fe07a; } .sw2.yellow { background: #ffe14a; } .sw2.magenta { background: #ff5cf0; } .sw2.white { background: #fff; }
.defs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 14px 0; }
.defs dt { font-family: var(--fd); font-weight: 700; font-size: 14.5px; }
.defs dd { margin: 0; }
.conv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; }
.conv dd { margin: 0; }
@media (max-width: 620px) { .defs, .conv { grid-template-columns: 1fr; } .defs dd, .conv dd { margin-bottom: 8px; } }
.try-inline { background: none; border: 0; padding: 0; color: var(--p-blue); text-decoration: underline; cursor: pointer; font: inherit; font-size: 15px; text-align: left; }

/* figures d'écran MCDU */
.mfigure { margin: 20px 0; }
.mfigure.narrow { max-width: 420px; }
.mfig { --cw: clamp(9px, 1.05vw, 13px); --rh: calc(var(--cw) * 1.62); background: #2a2f34; padding: 10px; border-radius: 6px; display: inline-block; max-width: 100%; overflow-x: auto; }
.fig-screen { padding: 6px 8px; border-radius: 2px; }
.paper figcaption { font-family: var(--fd); font-size: 13px; line-height: 1.45; color: var(--p-muted); margin-top: 8px; max-width: 62ch; }
.paper figcaption b { color: var(--p-ink); }
.fig-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 28px; align-items: start; }
.reading { font-size: 15.5px; }
.diagram { margin: 22px 0; }
.diagram svg { width: 100%; height: auto; max-width: 100%; display: block; }
.diagram.small svg { max-width: 560px; }
.d-box { fill: #f8f9f6; stroke: var(--p-ink); stroke-width: 1.2; }
.d-box.strong { fill: #e5ebee; stroke-width: 2; }
.d-box.hi { fill: #2a2f34; }
.d-box.hi + text { fill: #f1f1ec; }
.d-sub { fill: #f8f9f6; stroke: var(--p-muted); stroke-dasharray: 4 3; }
.d-t { font-family: var(--fd); font-size: 13px; fill: var(--p-ink); text-anchor: middle; }
.d-t.b { font-weight: 700; }
.d-t.s { font-size: 11.5px; fill: var(--p-muted); }
.d-t.l { text-anchor: start; } .d-t.r { text-anchor: end; }
.d-t.c-m { fill: var(--p-mag); }
.d-cap { font-family: var(--fd); font-size: 11px; letter-spacing: .14em; fill: var(--p-amber); font-weight: 700; }
.d-ln { stroke: var(--p-ink); stroke-width: 1.4; fill: none; }
.d-ln.dash { stroke-dasharray: 5 5; stroke: var(--p-muted); }
.d-ln.light { stroke: #ffffff; }
.d-head { fill: var(--p-ink); }
.d-axis { stroke: var(--p-ink); stroke-width: 1.5; }
.d-route { fill: none; stroke: var(--p-green); stroke-width: 3; stroke-linejoin: round; }
.d-fix { fill: var(--paper); stroke: var(--p-ink); stroke-width: 2; }
.d-cstr { fill: none; stroke: var(--p-mag); stroke-width: 2; }
.d-rwy { fill: #3b4248; }
.d-tick { stroke: var(--p-ink); stroke-width: 1.5; }
.d-tick.dash { stroke-dasharray: 4 4; }

/* méthode et pas à pas */
.difsrip-flow, .flow { list-style: none; padding: 0 !important; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; counter-reset: f; }
.difsrip-flow li, .flow li { border: 1px solid var(--p-ink); padding: 8px 10px; font-family: var(--fd); font-size: 14px; background: #f8f9f6; margin: 0 !important; position: relative; }
.difsrip-flow li b { color: var(--p-amber); font-size: 18px; }
.difsrip-flow li span, .flow li span { display: block; font-family: var(--fs); font-size: 13px; color: var(--p-muted); line-height: 1.3; margin-top: 2px; }
.flow { counter-reset: fl; }
.flow li { counter-increment: fl; }
.flow li::before { content: counter(fl); font-family: var(--fm); font-size: 11px; color: var(--p-muted); margin-right: 6px; }
.ofp { border: 1px solid var(--p-ink); background: #fbfbf8; font-family: var(--fm); font-size: 13px; padding: 12px 16px; margin: 16px 0; }
.ofp-h { margin: 0 0 8px; font-family: var(--fd); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--p-amber); }
.ofp dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 16px; }
.ofp dt { color: var(--p-muted); } .ofp dd { margin: 0; overflow-wrap: anywhere; }
.step-card { border-top: 1px solid var(--p-ink); padding: 12px 0 4px; margin-top: 14px; }
.step-h { margin: 0 0 6px; font-family: var(--fd); font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.step-h span { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--p-ink); color: #ffb000; font-family: var(--fm); font-size: 15px; border-radius: 3px; }
.pitfall { font-size: 15px; color: #5b3a00; background: #f3e6cc; padding: 6px 12px; border-radius: 3px; }
.keys { border-collapse: collapse; font-size: 15px; width: 100%; margin: 6px 0 10px; }
.keys td { border-bottom: 1px dotted var(--p-rule); padding: 5px 12px 5px 0; vertical-align: top; }
.keys td:first-child, .keys td:nth-child(2) { white-space: nowrap; }
.check { list-style: none; padding-left: 0 !important; }
.check li { padding-left: 26px; position: relative; }
.check li::before { content: "☐"; position: absolute; left: 0; font-family: var(--fd); color: var(--p-blue); }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 14px 0; }
.rule { border: 1px solid var(--p-rule); background: #f8f9f6; padding: 12px 14px; }
.rule-h { margin: 0 0 4px; font-family: var(--fd); font-weight: 700; font-size: 14.5px; }
.rule p { font-size: 15px; margin: 0 0 8px; }
.seq { margin: 0; background: #0b0d0e; color: #3fe07a; font-family: var(--fm); font-size: 12px; padding: 8px 10px; border-radius: 3px; overflow-x: auto; line-height: 1.6; white-space: pre; }
.seq b { color: #ffe14a; font-weight: 400; } .seq i { color: #f4f4f0; font-style: normal; }
.timeline { list-style: none; padding-left: 0 !important; border-left: 2px solid var(--p-ink); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 14px 22px; margin: 0 !important; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--p-ink); }
.timeline p { margin: 0 0 3px; font-size: 15.5px; }
.tl-h { font-family: var(--fd); font-weight: 700; font-size: 15.5px !important; }
.practices li { margin-bottom: 6px; }

/* études de cas */
.uc { border: 1px solid var(--p-ink); background: #f8f9f6; padding: 16px 20px; margin: 22px 0; scroll-margin-top: 16px; }
.uc-id { margin: 0; font-family: var(--fm); font-size: 12px; color: var(--p-amber); letter-spacing: .06em; }
.uc h3 { margin: 2px 0 10px; }
.uc-grid { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 18px; margin: 0 0 12px; font-size: 15.5px; }
.uc-grid dt { font-family: var(--fd); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); padding-top: 3px; }
.uc-grid dd { margin: 0; }
.uc-grid ol { margin: 0; }
@media (max-width: 620px) { .uc-grid { grid-template-columns: 1fr; } .uc-grid dt { padding-top: 6px; } }

/* pied de chapitre */
.chap-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; font-family: var(--fd); }
.paper button.try, .uc .try { background: var(--p-ink); color: #f1f1ec; border: 0; border-radius: 4px; padding: 8px 14px; font-family: var(--fd); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.paper button.try::after { content: " →"; color: #ffb000; }
.paper button.mark { background: none; border: 1px solid var(--p-ink); color: var(--p-ink); border-radius: 4px; padding: 7px 12px; font-family: var(--fd); font-size: 13px; cursor: pointer; }
.paper button.mark.on { background: var(--p-green); border-color: var(--p-green); color: #fff; }
.chap-foot .next { margin-left: auto; font-size: 14px; }
.paper button:focus-visible, .paper a:focus-visible { outline: 2px solid var(--p-blue); outline-offset: 2px; }

/* carburant */
.fuelbar { display: flex; height: 54px; border: 1px solid var(--p-ink); margin: 14px 0 6px; font-family: var(--fd); }
.fseg { display: flex; flex-direction: column; justify-content: center; padding: 0 6px; min-width: 0; overflow: hidden; border-right: 1px solid var(--p-ink); font-size: 11px; line-height: 1.2; }
.fseg:last-child { border-right: 0; }
.fseg span { white-space: nowrap; letter-spacing: .04em; }
@media (max-width: 480px) { .fuelbar { height: auto; flex-wrap: wrap; } .fseg { flex: 1 1 30%; padding: 4px 6px; border-bottom: 1px solid var(--p-ink); } }
.fseg b { font-family: var(--fm); font-size: 13px; font-weight: 400; }
.fseg.taxi { background: #d6dad2; } .fseg.trip { background: #9fc7ad; } .fseg.rsv { background: #c9dccf; }
.fseg.altn { background: #a9cbd6; } .fseg.final { background: #e3c48a; } .fseg.extra { background: #f3ead6; }

/* quiz */
.q { border: 1px solid var(--p-rule); margin: 0 0 14px; padding: 12px 16px 10px; background: #f8f9f6; }
.q legend { font-family: var(--fs); font-weight: 600; font-size: 16.5px; padding: 0 6px; }
.qn { font-family: var(--fm); font-size: 12px; color: var(--p-amber); font-weight: 400; }
.opt { display: flex; gap: 8px; align-items: baseline; padding: 4px 6px; border-radius: 3px; cursor: pointer; font-size: 15.5px; }
.opt:hover { background: var(--paper-2); }
.opt input { accent-color: var(--p-blue); }
.opt.right { background: #d4e8da; }
.opt.wrong { background: #f2d4cf; text-decoration: line-through; }
.fb { font-size: 15px; margin: 8px 0 2px; padding: 6px 10px; border-radius: 3px; }
.fb.ok { background: #e2efe5; } .fb.ko { background: #f6e2de; }
.qres { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-family: var(--fd); }
.qres p { margin: 0; }
.qres .pass { color: var(--p-green); } .qres .fail { color: #8f2a1d; }
.gloss { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 20px; font-size: 15.5px; }
.gloss dt { font-family: var(--fm); font-size: 13.5px; font-weight: 700; }
.gloss dd { margin: 0; }
@media (max-width: 620px) { .gloss { grid-template-columns: 1fr; } .gloss dd { margin-bottom: 6px; } }

@media (max-width: 980px) {
  .course { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .toc-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

/* panneau d'exercices : compléments pédagogiques */
.grp-h { margin: 4px 0 -8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.chip.l4 { color: var(--magenta); }
.objs { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.objs h4 { margin: 0 0 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.objs ul, .finish ul { margin: 0; padding-left: 18px; font-size: 12.5px; display: grid; gap: 3px; }
.st-why { margin: 4px 0 0; font-size: 12px; color: #9fd8b0; }
.finish { display: grid; gap: 6px; }
.fin-h { margin: 0; font-weight: 700; }
.fin-sub { margin: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.finish ul { color: var(--ink); }
@media (max-width: 620px) {
  .keys, .keys tbody, .keys tr, .keys td { display: block; }
  .keys tr { border-bottom: 1px dotted var(--p-rule); padding: 6px 0; }
  .keys td { border: 0; padding: 1px 0; }
  .keys td:first-child, .keys td:nth-child(2) { display: inline-block; margin-right: 8px; }
}

/* =====================================================================
   FCU (auvent) et FMA (haut du PFD)
   ===================================================================== */
.fcu {
  background: linear-gradient(180deg, var(--body-hi), var(--body) 45%, var(--body-lo));
  border-radius: 8px; padding: 10px; display: grid; gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 20px rgba(0,0,0,.4);
}
.fcu-mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .fcu-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fcu-mod { display: grid; gap: 5px; justify-items: center; background: rgba(0,0,0,.12); border-radius: 6px; padding: 6px 4px 7px; position: relative; min-width: 0; }
.fcu-lbl { font-family: var(--fd); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: #e9ebe6; }
.fcu-lbl span { font-weight: 400; color: #b7bdc2; margin-left: 4px; letter-spacing: .04em; font-size: 10px; }
.fcu-win { display: flex; align-items: center; gap: 6px; background: #0a0b0b; border-radius: 3px; padding: 3px 8px; box-shadow: inset 0 0 6px #000; }
.fcu-win .v { font-family: var(--fm); font-size: 19px; color: #ff9d2e; letter-spacing: .06em; min-width: 3.4ch; text-align: right; font-variant-numeric: tabular-nums; }
.fcu-win .dot { width: 8px; height: 8px; border-radius: 50%; background: #2a2d2f; display: inline-block; }
.fcu-win .dot.on { background: #f4f4f0; box-shadow: 0 0 5px rgba(255,255,255,.7); }
.fcu-ctl { display: flex; align-items: center; gap: 6px; }
.fcu-ctl .rot { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--key); color: var(--key-ink); font-weight: 700; cursor: pointer; box-shadow: 0 2px 0 #121417; line-height: 1; }
.fcu-ctl .knob {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 40% 35%, #5c636a, #24282c 70%);
  box-shadow: 0 3px 0 #121417, inset 0 0 0 3px #1b1e21;
  position: relative;
}
.fcu-ctl .knob::after { content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 10px; background: #e9ebe6; transform: translateX(-50%); }
.fcu-ctl .knob:active { transform: translateY(1px); }
.fcu-pp { display: flex; gap: 4px; }
.fcu-pp button { font-family: var(--fd); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 7px; border-radius: 4px; border: 1px solid #1d2023; cursor: pointer; }
.fcu-pp .push { background: #2f5a3e; color: #e6f5ea; }
.fcu-pp .pull { background: #2a4a5e; color: #e4f1f8; }
.fcu-pp button:hover { filter: brightness(1.15); }
.fcu-mod .inc { position: absolute; top: 5px; right: 5px; font-family: var(--fm); font-size: 9.5px; background: var(--key); color: #cfd3d6; border: 0; border-radius: 3px; padding: 1px 4px; cursor: pointer; }
.fcu-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fcu-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 54px; background: var(--key); color: var(--key-ink); border: 0; border-radius: 4px; padding: 4px 8px 5px; font-family: var(--fd); font-weight: 700; font-size: 11px; cursor: pointer; box-shadow: 0 2px 0 #121417; }
.fcu-btn i { width: 26px; height: 3px; border-radius: 2px; background: #31363b; }
.fcu-btn.on i { background: #3fe07a; box-shadow: 0 0 6px rgba(63,224,122,.8); }

.fma { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr .8fr 1fr; background: #000; border-radius: 4px; border: 2px solid #2b3035; min-height: 58px; }
.fma-col { padding: 4px 6px; border-right: 1px solid #5a6470; font-family: var(--fm); font-size: 13px; line-height: 1.35; text-align: center; min-width: 0; }
.fma-col:last-child { border-right: 0; }
.fma .fl { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.fma .g { color: #3fe07a; } .fma .c { color: #3fd4e8; } .fma .w { color: #f4f4f0; } .fma .m { color: #ff5cf0; }
.fma .g { border: 1px solid transparent; }

/* FCU illustré dans le cours */
.fcu-demo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: #3d434a; padding: 10px; border-radius: 6px; max-width: 560px; }
.fcu-demo .fcu-mod { background: rgba(0,0,0,.15); }
@media (max-width: 520px) { .fcu-demo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fma-demo { margin-top: 10px; max-width: 560px; }
.c-gr { color: var(--p-green); font-weight: 600; }

/* =====================================================================
   PFD + ND, deux MCDU, remise des gaz, onglet instructeur
   ===================================================================== */
.displays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.displays.big { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .displays { grid-template-columns: minmax(0, 1fr); } }
.disp-bezel { background: #2b3035; border-radius: 10px; padding: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.4); min-width: 0; }
#pfd, #nd { display: block; width: 100%; aspect-ratio: 1 / 1; max-width: 100%; background: #000; border-radius: 4px; }
.flight-row > button.toga { background: #5a2a24; color: #ffd7cf; border-color: #7a3a32; }
.mcdu-name { margin: 0 0 6px; font-family: var(--fd); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c9ced2; }
#viewSim.two .mcdu.active { box-shadow: 0 0 0 2px var(--amber), 0 12px 32px rgba(0,0,0,.45); }
#viewSim.two { grid-template-columns: auto minmax(340px, 1fr) auto; }
#viewSim.two .side { grid-column: 1 / -1; }
@media (max-width: 1500px) {
  #viewSim.two { grid-template-columns: auto auto; }
  #viewSim.two .center { grid-column: 1 / -1; grid-row: 2; }
  #viewSim.two #mcdu2 { grid-row: 1; }
}
@media (max-width: 1080px) { #viewSim.two { grid-template-columns: minmax(0, 1fr); } #viewSim.two .mcdu { justify-self: center; } #viewSim.two .center { grid-row: auto; } #viewSim.two #mcdu2 { grid-row: auto; } }
.chip.l5 { color: var(--yellow); }
.chip.ac { color: var(--muted); }

.inst { gap: 18px; }
.inst-sec { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.inst-sec:first-of-type { border-top: 0; padding-top: 0; }
.irow { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.ifield { display: grid; gap: 3px; font-size: 12px; color: var(--muted); flex: 1 1 140px; min-width: 0; }
.ifield input, .ifield textarea, .inst textarea {
  width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: 6px 8px;
  font-family: var(--fm); font-size: 12px;
}
.inst textarea { resize: vertical; }
.ifield input[type="file"] { font-family: var(--fd); padding: 4px; }
.ibtn { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 6px 10px; font-size: 12.5px; cursor: pointer; }
.ibtn:hover { border-color: #46515c; }
.ibtn.warn { border-color: #6a4a12; color: var(--amber); }
.ilist { display: grid; gap: 4px; }
.iname { flex: 1; font-size: 13px; }
.itbl { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.itbl th, .itbl td { border-bottom: 1px solid var(--line); padding: 5px 6px; text-align: left; white-space: nowrap; }
.itbl th { color: var(--muted); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* figures PFD, grille de relecture, questionnaire */
canvas.pfd-fig { display: block; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; background: #000; border-radius: 6px; border: 8px solid #2a2f34; }
.review { display: grid; gap: 8px; margin: 12px 0; }
.rv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: start; font-size: 15px; border-bottom: 1px solid var(--p-rule); padding-bottom: 8px; }
.rv input[type="checkbox"] { margin-top: 5px; accent-color: var(--p-green); }
.rv input[type="text"] { grid-column: 2; width: 100%; font-family: var(--fd); font-size: 13px; padding: 5px 8px; border: 1px solid var(--p-rule); border-radius: 3px; background: #fbfbf8; color: var(--p-ink); }
.feedback { display: grid; gap: 10px; }
.likert { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fbtext { font-family: var(--fd); font-size: 13px; color: var(--p-muted); }
.feedback textarea { width: 100%; font-family: var(--fs); font-size: 15px; padding: 8px; border: 1px solid var(--p-rule); border-radius: 3px; background: #fbfbf8; color: var(--p-ink); }
.feedback button { justify-self: start; }
.fbmsg { margin: 0; font-family: var(--fd); font-size: 13px; color: var(--p-green); }

/* solutions des études de cas, repliées par défaut */
.sol { margin: 0 0 12px; border-top: 1px dashed var(--p-rule); padding-top: 8px; }
.sol summary { cursor: pointer; font-family: var(--fd); font-size: 13.5px; font-weight: 700; color: var(--p-blue); }
.sol[open] summary { margin-bottom: 8px; }

/* manche latéral */
.stick-wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stick { display: grid; grid-template-columns: repeat(3, 58px); gap: 4px; }
.stick .sk { height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--ink); font-size: 11.5px; cursor: pointer; touch-action: none; }
.stick .sk.down { background: var(--green); color: #07210f; }
.stick .sk.blank { visibility: hidden; }
.stick-tip { margin: 0; font-size: 12px; color: var(--muted); flex: 1 1 180px; min-width: 0; }

/* ---------- compléments : aide clavier, journal, erreurs, impression ---------- */
.ex-err { margin: 4px 0 0; font-size: 12px; color: var(--amber); }
.strict-note { color: var(--amber); }
.ibtn.on { border-color: var(--amber); color: var(--amber); }
.journal { font-size: 12px; color: var(--ink); }
.journal summary { cursor: pointer; color: var(--cyan); }
.journal ol { margin: 6px 0 0; padding-left: 18px; max-height: 220px; overflow: auto; font-family: var(--fm); font-size: 11.5px; display: grid; gap: 2px; }
.journal li.err { color: var(--amber); }
.keyhelp { position: fixed; inset: auto 16px 16px auto; z-index: 50; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 16px 40px rgba(0,0,0,.5); font-size: 12.5px; max-height: calc(100vh - 32px); overflow: auto; }
.keyhelp h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.keyhelp dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 10px; }
.keyhelp dt { font-family: var(--fm); color: var(--cyan); }
.keyhelp dd { margin: 0; color: var(--muted); }
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; }
  .top, .toc, nav, .chap-foot, .try, .mark, .hint-btn, .ex-actions, #btnReset, #btnKeys, .keyhelp, .kbd-tip { display: none !important; }
  main.course { display: block; }
  .paper { box-shadow: none; border: 0; max-width: none; padding: 0; }
  .chap { break-before: page; }
  .chap:first-of-type { break-before: auto; }
  details.sol > summary { display: none; }
  .mfig, .fig-screen, .pfd-fig { break-inside: avoid; }
  a[href^="#"] { text-decoration: none; color: inherit; }
  .paper kbd, .paper code { border-color: #999; background: #f2f2f2; color: #000; }
  #viewSim { display: none !important; }
  body.print-ex #viewCourse { display: none !important; }
  body.print-ex #viewSim { display: block !important; }
  body.print-ex #viewSim > :not(.side), body.print-ex .tabs, body.print-ex #paneHelp, body.print-ex #paneInst { display: none !important; }
  body.print-ex .side, body.print-ex #paneEx { display: block !important; color: #000; background: #fff; border: 0; }
  body.print-ex .steps li { break-inside: avoid; color: #000; }
  body.print-ex .steps .st-d, body.print-ex .sc p, body.print-ex .brief dd { color: #222; }
  body.print-ex .finish, body.print-ex .journal { color: #000; border-color: #000; }
}

/* ---------- volets, ECAM, annonces, classe en ligne, check-lists ---------- */
.flaps-row { gap: 10px; }
.flaps-lbl { font-family: var(--fm); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.flaps-tip { font-family: var(--fm); font-size: 12px; color: var(--cyan); }
#acType { font-family: var(--fm); font-size: 12px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); cursor: pointer; }
#acType:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
#flaps button.on { color: var(--green); background: var(--panel-2); }
#flaps button.transit { color: var(--amber); }
#btnVoice { background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
#btnVoice[aria-pressed="true"] { color: var(--green); border-color: var(--green); }
.ecam-wrap { margin-top: 10px; }
.ecam-wrap .disp-bezel { aspect-ratio: 3 / 1; }
.ecam-wrap canvas { width: 100%; height: 100%; display: block; }
.checklists { display: grid; gap: 10px; margin-top: 14px; }
.checklists h3 { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.checklists ol { margin: 0; padding-left: 20px; font-size: 12.5px; display: grid; gap: 3px; }
.checklists ol li::marker { color: var(--muted); font-family: var(--fm); }
.online-status { font-size: 12px; color: var(--muted); }
.online-status.ok { color: var(--green); }
.online-status.ko { color: var(--amber); }
.lamp.on { background: var(--amber); color: #111; border-color: var(--amber); }
.atc-row { font-family: var(--fm); font-size: 11.5px; color: var(--muted); }
.atc-row.open { color: var(--amber); }

/* =====================================================================
   737 : CDU Boeing (corps clair, touches sombres), MCP horizontal, touche EXEC
   ===================================================================== */
body.boeing .mcdu { background: linear-gradient(180deg, #8f949a, #7d8389 30%, #6c7278); }
body.boeing .mcdu-name, body.boeing .kbd-tip { color: #1d2126; }
body.boeing .key { background: #2b2f34; color: #f1f1ec; }
body.boeing .key:hover { background: #3a4047; }
body.boeing .key.exec { background: #1d1f22; box-shadow: inset 0 0 0 2px #c9ccc8, 0 2px 0 #121417; }
body.boeing .lamp { background: #3a3f45; border-color: #2a2e33; color: #c9ccc8; }
body.boeing .lsk-col button { background: #2b2f34; }
body.boeing .mc.magenta { color: #ff5cf0; }
body.boeing .mcp .fcu-mods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.boeing .fcu-win .v { color: #ffb14a; }
body.boeing .fcu-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 5px; }
body.boeing .fcu-btn { min-width: 0; font-size: 10.5px; padding: 5px 3px; }
body.boeing .fcu-btn[data-btn="DISENGAGE"] { grid-column: span 2; background: #4a2a28; color: #ffd7cf; }
body.boeing .fcu-btn[data-btn="DISENGAGE"] i { background: #7a3a32; }
body.boeing .mrow.lbl .mc { color: #d6d8d4; }

@media (max-width: 640px) { body.boeing .mcp .fcu-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
