/* ===================================================================== */
/* Diaporama : scène fixe 1600 × 900 mise à l'échelle.                    */
/* Fond d'encre éclairé de deux halos lents, surfaces en relief léger.    */
/* Zone utile d'une slide titrée : 1440 × ~650 px.                        */
/* ===================================================================== */
html, body.deck { height: 100%; overflow: hidden; }
body.deck { background: var(--ink); }
#viewport { position: fixed; inset: 0; overflow: hidden; background: var(--ink); }
#stage { position: absolute; left: 50%; top: 50%; width: 1600px; height: 900px; transform-origin: 50% 50%; background: var(--bg); overflow: hidden; isolation: isolate; }
/* halos d'ambiance (mouvement très lent) */
#stage::before { content: ''; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 38% at 12% 8%, var(--glow-warm), transparent 70%), radial-gradient(46% 42% at 92% 96%, var(--glow-cool), transparent 70%);
  animation: drift 38s ease-in-out infinite alternate; }
/* trame de points, effacée vers les bords */
#stage::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1.2px, transparent 1.3px); background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 20%, transparent 85%); mask-image: radial-gradient(80% 70% at 50% 45%, #000 20%, transparent 85%); }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.06); } }

#num { position: absolute; right: 44px; bottom: 18px; z-index: 6; font-family: var(--f-mono); font-size: 18px; color: var(--muted); display: flex; gap: 18px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
#num .num-off { color: var(--danger); }
#prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 6; background: color-mix(in srgb, var(--line) 50%, transparent); }
#progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s cubic-bezier(.2,.7,.2,1); }

/* ---------- slides & transitions ---------- */
#slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; padding: 50px 80px 46px; display: flex; flex-direction: column;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1) .06s, transform .7s cubic-bezier(.2,.7,.2,1) .06s; }
.slide.enter { opacity: 0; }
.slide.enter.from-right { transform: translateX(34px); }
.slide.enter.from-left { transform: translateX(-34px); }
.slide.leave { pointer-events: none; opacity: 0; transition: opacity .22s ease, transform .3s ease; }
.slide.leave.to-left { transform: translateX(-18px); }
.slide.leave.to-right { transform: translateX(18px); }
.slide-head { flex: none; }
.slide-kicker { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 17px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); height: 26px; }
.sk-n { color: var(--accent); font-weight: 600; }
.sk-n::after { content: ''; display: inline-block; width: 28px; height: 1.5px; background: var(--line-3); vertical-align: middle; margin-left: 14px; }
.slide-title { font-family: var(--f-display); font-weight: 800; font-size: 66px; line-height: 1.02; letter-spacing: -0.005em; margin: 8px 0 0; max-width: 1440px; text-wrap: balance; }
.slide-title.long { font-size: 56px; }
.slide.enter .slide-title { transform: translateY(10px); }
.slide-title { transition: transform .8s cubic-bezier(.2,.7,.2,1) .05s; }
.slide-body { flex: 1; position: relative; margin-top: 28px; min-height: 0; display: flex; }
.slide-body > * { flex: 1; min-width: 0; }
.slide.untitled .slide-body { margin-top: 0; }

.caption { font-size: 28px; line-height: 1.3; color: var(--fg-2); margin: 0; max-width: 1200px; }

/* révélation pas à pas */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s, background .4s; }
.rv.on { opacity: 1; transform: none; }

/* surface commune (cartes, nœuds, boîtes) */
.step-box, .loop-node, .layer, .card, .cmp-col, .st-tile, .def-ex, .def-not, .spot-row, .explain .ex-card, .code-block, .mx-grid {
  --c: var(--accent);
}

/* scène fixe mise à l'échelle (boucle, emboîtement, animations) */
.fit-box { position: relative; flex: 1; min-height: 0; min-width: 0; }
.fit-stage { position: absolute; left: 0; top: 0; }

/* ===================================================================== */
/* Panneau d'explication                                                  */
/* ===================================================================== */
.with-explain { display: flex; gap: 34px; min-height: 0; }
.with-explain.at-bottom { flex-direction: column; gap: 18px; }
.wx-main { flex: 1; min-width: 0; min-height: 0; display: flex; }
.wx-main > * { flex: 1; min-width: 0; }
.explain { position: relative; flex: none; display: flex; flex-direction: column; }
.explain.at-right { width: 430px; padding-top: 4px; }
.explain.at-bottom { height: 128px; flex-direction: row; align-items: stretch; gap: 22px; }
.ex-ticks { display: flex; gap: 6px; flex: none; }
.explain.at-right .ex-ticks { margin-bottom: 16px; }
.explain.at-bottom .ex-ticks { flex-direction: column; justify-content: center; gap: 5px; }
.ex-ticks i { display: block; width: 26px; height: 4px; border-radius: 2px; background: var(--surface-3); transition: background .4s, width .4s; }
.explain.at-bottom .ex-ticks i { width: 4px; height: 14px; }
.ex-ticks i.on { background: var(--line-3); }
.ex-ticks i.cur { background: var(--accent); width: 40px; }
.explain.at-bottom .ex-ticks i.cur { width: 4px; height: 26px; }
.ex-slot { position: relative; flex: 1; min-height: 0; }
.ex-card { position: absolute; left: 0; right: 0; top: 0; padding: 26px 28px 28px; border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow);
  border-left: 4px solid var(--c, var(--accent)); opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.ex-card.in { opacity: 1; transform: none; }
.ex-card.out { opacity: 0; transform: translateY(-8px); transition-duration: .25s; }
.explain.at-bottom .ex-card { bottom: 0; display: grid; grid-template-columns: minmax(260px, auto) 1fr auto; grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; padding: 18px 26px; }
.explain.at-bottom .ex-top { grid-column: 1; grid-row: 1; }
.explain.at-bottom .ex-title { grid-column: 1; grid-row: 2; margin: 2px 0 0; }
.explain.at-bottom .ex-text { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; }
.explain.at-bottom .ex-figs { grid-column: 3; grid-row: 1 / span 2; margin: 0; align-self: center; flex-wrap: nowrap; gap: 22px; max-width: 420px; }
.explain.at-bottom .ex-fig b { font-size: 38px; }
.explain.at-bottom .ex-fig span { font-size: 16px; display: block; max-width: 190px; line-height: 1.2; }
.explain.at-bottom .ex-card:not(:has(.ex-title)):not(:has(.ex-top)) { grid-template-columns: 1fr; }
.explain.at-bottom .ex-card:not(:has(.ex-title)):not(:has(.ex-top)) .ex-text { grid-column: 1; }
.ex-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ex-icon { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); color: var(--c, var(--accent)); }
.ex-icon .ic { width: 24px; height: 24px; }
.ex-kicker { font-family: var(--f-mono); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ex-title { font-family: var(--f-display); font-weight: 800; font-size: 38px; line-height: 1.04; margin: 0 0 12px; text-wrap: balance; }
.ex-text { font-size: 25px; line-height: 1.38; color: var(--fg-2); margin: 0; text-wrap: pretty; }
.ex-text.len1 { font-size: 23px; }
.ex-text.len2 { font-size: 21px; }
.explain.at-bottom .ex-title { font-size: 32px; }
.explain.at-bottom .ex-text { font-size: 24px; line-height: 1.32; }
.ex-figs { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.ex-fig b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--c, var(--accent)); font-variant-numeric: tabular-nums; }
.ex-fig span { font-size: 18px; color: var(--muted); }

/* ===================================================================== */
/* Motif d'identité (orbites)                                             */
/* ===================================================================== */
.motif { width: 100%; height: 100%; overflow: visible; }
.mo-ring { fill: none; stroke: var(--line-2); stroke-width: 1.4; }
.mo-ring.r1 { stroke-dasharray: 2 10; stroke-linecap: round; animation: spin 140s linear infinite; transform-origin: 300px 300px; }
.mo-ring.r2 { stroke: color-mix(in srgb, var(--line-2) 70%, transparent); }
.mo-ring.r3 { stroke: color-mix(in srgb, var(--cool) 35%, transparent); }
.mo-arc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: .8; }
.mo-orbit { transform-origin: 300px 300px; animation: spin 26s linear infinite; }
.mo-orbit.o2 { animation-duration: 17s; animation-direction: reverse; }
.mo-orbit.o3 { animation-duration: 11s; }
.mo-dot { fill: var(--fg-2); }
.mo-dot.hot { fill: var(--accent); filter: drop-shadow(0 0 10px var(--accent-glow)); }
.mo-dot.cool { fill: var(--cool); filter: drop-shadow(0 0 8px var(--cool-glow)); }
.mo-core { fill: var(--surface-2); stroke: var(--line-3); stroke-width: 1.5; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- title ---------- */
.b-title { display: flex; align-items: center; gap: 60px; }
.title-main { flex: 1; min-width: 0; }
.title-kicker { font-family: var(--f-mono); font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.title-big { font-family: var(--f-display); font-weight: 800; font-size: 118px; line-height: .98; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.title-big.len1 { font-size: 100px; }
.title-big.len2 { font-size: 82px; }
.title-sub { font-size: 38px; line-height: 1.3; color: var(--fg-2); margin: 34px 0 0; max-width: 900px; text-wrap: balance; }
.title-art { width: 520px; height: 520px; flex: none; opacity: .95; }
.is-join .title-big { font-size: 84px; }
.is-join .title-sub { font-size: 34px; }
.join-box { width: 430px; flex: none; display: flex; flex-direction: column; gap: 18px; }
.join-qr { width: 430px; height: 430px; background: #fff; padding: 14px; border-radius: 22px; box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -30px var(--accent-glow); }
.join-qr svg, .qo-qr svg { width: 100%; height: 100%; display: block; }
.join-url { font-family: var(--f-mono); font-size: 28px; font-weight: 600; color: var(--fg); word-break: break-all; text-align: center; }
.join-count { font-size: 24px; color: var(--muted); text-align: center; }
.join-count span { color: var(--fg); font-weight: 600; }

/* ---------- section ---------- */
.b-section { display: flex; align-items: center; gap: 40px; position: relative; }
.section-num { position: absolute; left: -12px; top: -30px; font-family: var(--f-display); font-weight: 800; font-size: 420px; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--line-2); letter-spacing: -0.04em; z-index: 0; user-select: none; }
.section-main { flex: 1; position: relative; z-index: 1; padding-top: 120px; }
.kicker { font-family: var(--f-mono); font-size: 22px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.section-big { font-family: var(--f-display); font-weight: 800; font-size: 124px; line-height: .96; margin: 16px 0 0; letter-spacing: -0.012em; text-wrap: balance; max-width: 1000px; }
.section-sub { font-size: 38px; line-height: 1.3; color: var(--fg-2); margin: 30px 0 0; max-width: 900px; }
.section-art { width: 440px; height: 440px; flex: none; opacity: .9; }

/* ---------- question posée à la salle ---------- */
.b-question { display: flex; align-items: center; padding: 0 40px 20px; position: relative; }
.q-mark { position: absolute; right: 10px; top: 50%; transform: translateY(-52%); font-family: var(--f-display); font-weight: 800; font-size: 720px; line-height: 1; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 45%, transparent); opacity: .55; user-select: none; }
.q-main { position: relative; max-width: 1220px; }
.q-lead { font-size: 34px; line-height: 1.3; color: var(--fg-2); margin: 0 0 30px; max-width: 1000px; padding-left: 22px; border-left: 4px solid var(--accent); }
.question-big { font-family: var(--f-display); font-weight: 800; font-size: 104px; line-height: 1.02; letter-spacing: -0.008em; margin: 0; text-wrap: balance; }
.question-big.len1 { font-size: 86px; }
.question-big.len2 { font-size: 68px; }
.q-answer { display: flex; align-items: center; gap: 18px; margin: 44px 0 0; font-size: 38px; color: var(--cool); }
.q-answer .ic { width: 38px; height: 38px; flex: none; }

/* ---------- content ---------- */
.b-content { display: flex; flex-direction: column; justify-content: center; gap: 40px; padding-bottom: 40px; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.bullets li { display: flex; align-items: center; gap: 26px; font-size: 50px; line-height: 1.15; padding: 18px 28px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); max-width: 1300px; }
.bl-mark { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 14px var(--accent-glow); }
.bl-mark:has(.ic) { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: none; }
.bl-mark .ic { width: 30px; height: 30px; }
.bullets.dense li { font-size: 42px; }
.aside { font-size: 30px; line-height: 1.3; color: var(--fg-2); margin: 0; max-width: 1100px; }

/* ---------- steps ---------- */
.b-steps { display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.steps-row { display: flex; align-items: stretch; }
.step-box { position: relative; flex: 1; min-width: 0; min-height: 230px; border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); padding: 30px 24px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; border: 1.5px solid transparent; }
.step-num { position: absolute; left: 20px; top: 16px; font-family: var(--f-mono); font-size: 17px; color: var(--muted); letter-spacing: .08em; }
.step-icon { width: 76px; height: 76px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); margin-bottom: 6px; transition: box-shadow .4s, background .4s; }
.step-icon .ic { width: 42px; height: 42px; }
.step-label { font-family: var(--f-display); font-weight: 800; font-size: 46px; line-height: 1.02; text-wrap: balance; }
.step-detail { font-size: 26px; line-height: 1.25; color: var(--fg-2); text-wrap: balance; }
.steps-row.n2 .step-label, .steps-row.n3 .step-label { font-size: 54px; }
.steps-row.n5 .step-label { font-size: 38px; }
.steps-row.n6 .step-label { font-size: 33px; }
.steps-row.n6 .step-detail, .steps-row.n5 .step-detail { font-size: 22px; }
.steps-row.n2 .step-box, .steps-row.n3 .step-box { min-height: 270px; }
.step-box.cur { border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: var(--shadow), 0 0 0 6px color-mix(in srgb, var(--c) 12%, transparent), 0 20px 60px -20px color-mix(in srgb, var(--c) 60%, transparent); }
.step-box.cur .step-num { color: var(--c); }
.step-box.cur .step-icon { background: var(--c); color: var(--bg); box-shadow: 0 0 30px color-mix(in srgb, var(--c) 50%, transparent); }
.step-box.past { opacity: .78; }
.steps-arrow { width: 64px; flex: none; display: flex; align-items: center; justify-content: center; }
.steps-arrow svg { width: 46px; height: 24px; }
.steps-arrow path { stroke: var(--line-3); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset .5s .1s ease; }
.steps-arrow.on path { stroke-dashoffset: 0; }
.b-steps .caption { text-align: center; align-self: center; }

/* ---------- loop ---------- */
.b-loop { display: flex; flex-direction: column; }
.b-loop .caption { text-align: center; align-self: center; margin-top: 8px; opacity: 0; transition: opacity .5s; }
.b-loop .caption.on { opacity: 1; }
.loop-svg { position: absolute; inset: 0; overflow: visible; }
.loop-track { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 12; stroke-linecap: round; }
.loop-arc .k-edge-line { stroke-width: 4; }
.loop-node { position: absolute; min-width: 230px; max-width: 340px; transform: translate(-50%, -50%) scale(.92); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); border-radius: 22px; padding: 22px 30px; text-align: center; opacity: 0; border: 1.5px solid transparent;
  transition: opacity .45s, transform .6s cubic-bezier(.2,.7,.2,1), border-color .4s, box-shadow .4s; }
.loop-node.on { opacity: 1; transform: translate(-50%, -50%); }
.loop-node.cur { border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: var(--shadow), 0 0 0 6px color-mix(in srgb, var(--c) 12%, transparent), 0 20px 60px -24px color-mix(in srgb, var(--c) 70%, transparent); transform: translate(-50%, -50%) scale(1.05); }
.loop-icon { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 17px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.loop-node.cur .loop-icon { background: var(--c); color: var(--bg); }
.loop-icon .ic { width: 32px; height: 32px; }
.loop-label { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1.02; }
.loop-detail { font-size: 24px; color: var(--fg-2); margin-top: 6px; line-height: 1.2; }
.loop-center { position: absolute; transform: translate(-50%, -50%); width: 200px; height: 200px; border-radius: 50%; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; text-align: center;
  font-family: var(--f-display); font-weight: 800; font-size: 46px; line-height: 1; color: var(--accent); padding: 20px; background: radial-gradient(circle, var(--accent-soft), transparent 70%); border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, transparent); }
.loop-center .ic { width: 44px; height: 44px; }

/* ---------- layers ---------- */
.b-layers { display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.layers-stack { display: flex; flex-direction: column; gap: 12px; }
.layer { --c: var(--accent); display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; column-gap: 26px; min-height: 100px; padding: 14px 32px 14px 20px; border-radius: 18px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 10%, var(--surface)), var(--surface) 55%); box-shadow: var(--shadow); border: 1.5px solid transparent; }
.has-detail .layer { grid-template-columns: 70px minmax(260px, .8fr) minmax(0, 1.2fr); }
.layer:has(.layer-chips) { grid-template-columns: 70px minmax(260px, .8fr) minmax(0, 1.2fr) auto; }
.layer-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.layer-icon .ic { width: 32px; height: 32px; }
.layer-n { font-family: var(--f-mono); font-size: 22px; font-weight: 600; }
.layer-label { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1.02; }
.layer-detail { font-size: 27px; color: var(--fg-2); line-height: 1.22; }
.layer-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 18px; padding: 6px 12px; border-radius: 999px; background: var(--surface-3); color: var(--fg-2); white-space: nowrap; }
.b-layers.n5 .layer, .b-layers.n6 .layer { min-height: 80px; }
.b-layers.n5 .layer-label, .b-layers.n6 .layer-label { font-size: 36px; }
.b-layers.n6 .layer-detail { font-size: 23px; }
.layer.rv { transform: translateY(-12px); }
.b-layers.up .layer.rv { transform: translateY(12px); }
.layer.rv.on { transform: none; }
.layer.cur { border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: var(--shadow), 0 0 0 5px color-mix(in srgb, var(--c) 12%, transparent); }
.layer.cur .layer-icon { background: var(--c); color: var(--bg); }

/* ---------- nested ---------- */
.b-nested { display: flex; flex-direction: column; }
.nest-box { --c: var(--s2); border-radius: 28px; border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--bg)), color-mix(in srgb, var(--c) 4%, var(--bg)));
  opacity: 0; transform: scale(.97); transition: opacity .55s, transform .7s cubic-bezier(.2,.7,.2,1), border-color .4s, box-shadow .4s; box-shadow: 0 24px 60px -30px rgba(0,0,0,.8); }
.nest-box.on { opacity: 1; transform: none; }
.nest-box.cur { border-color: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 14%, transparent), 0 30px 80px -30px color-mix(in srgb, var(--c) 60%, transparent); }
.nest-head { position: absolute; left: 26px; top: 16px; right: 26px; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.nest-icon { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); flex: none; }
.nest-icon .ic { width: 28px; height: 28px; }
.nest-label { font-family: var(--f-display); font-weight: 800; font-size: 38px; color: var(--fg); }
.nest-detail { font-size: 22px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; }
.nest-chips { position: absolute; right: 22px; top: 20px; display: flex; gap: 8px; }
.nest-box.core { display: flex; align-items: center; justify-content: center; }
.nest-box.core .nest-head { position: static; flex-direction: column; gap: 10px; text-align: center; }
.nest-box.core .nest-icon { width: 72px; height: 72px; border-radius: 20px; }
.nest-box.core .nest-icon .ic { width: 42px; height: 42px; }
.nest-box.core .nest-label { font-size: 52px; }
.nest-box.core .nest-chips { position: static; justify-content: center; margin-top: 12px; }
.nest-box.core:has(.nest-chips) { flex-direction: column; }
.nest-box.cur .nest-icon { background: var(--c); color: var(--bg); }

/* ---------- compare ---------- */
.b-compare { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: stretch; padding: 10px 0 20px; }
.cmp-col { padding: 34px 40px 38px; border-radius: 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); border-top: 4px solid var(--c); }
.cmp-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.cmp-icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.cmp-icon .ic { width: 36px; height: 36px; }
.cmp-title { font-family: var(--f-display); font-weight: 800; font-size: 58px; line-height: 1; margin: 0; }
.cmp-text { font-size: 27px; color: var(--fg-2); line-height: 1.32; margin: 0 0 22px; }
.cmp-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.cmp-points li { display: flex; align-items: flex-start; gap: 16px; font-size: 36px; line-height: 1.18; }
.cmp-pi { color: var(--c); flex: none; margin-top: 6px; }
.cmp-pi .ic { width: 28px; height: 28px; }
.cmp-vs { display: flex; align-items: center; justify-content: center; }
.cmp-vs span { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 20px; color: var(--muted); border: 1.5px solid var(--line-2); background: var(--bg); }

/* ---------- table ---------- */
.b-table { display: flex; align-items: center; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 32px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.tbl th { text-align: left; font-family: var(--f-mono); font-size: 18px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: 22px 28px 16px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.tbl td { padding: 20px 28px; border-bottom: 1px solid var(--line); line-height: 1.22; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.first { font-weight: 600; }
.tbl.dense { font-size: 27px; }
.tbl.dense td { padding: 14px 24px; }
.tbl tr.rv { transform: none; }

/* ---------- cards ---------- */
.b-cards { display: flex; flex-direction: column; justify-content: center; }
.cards-grid { display: grid; gap: 26px; }
.card { --c: var(--accent); position: relative; border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%); box-shadow: var(--shadow); padding: 30px 32px 32px; display: flex; flex-direction: column; gap: 14px; min-height: 160px; border: 1.5px solid transparent; overflow: hidden; }
.card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c), transparent 70%); opacity: .9; }
.card.bare { align-items: center; justify-content: center; text-align: center; min-height: 210px; }
.card.bare .card-head { flex-direction: column; }
.card-head { display: flex; align-items: center; gap: 18px; }
.card-icon { width: 62px; height: 62px; flex: none; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 17%, transparent); color: var(--c); transition: background .4s, color .4s, box-shadow .4s; }
.card-icon .ic { width: 34px; height: 34px; }
.card-tag { font-family: var(--f-mono); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; }
.card-title { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1.02; margin: 0; text-wrap: balance; }
.card-text { font-size: 25px; line-height: 1.36; color: var(--fg-2); margin: 0; text-wrap: pretty; }
.card-figs { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 4px; }
.fig b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 46px; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; }
.fig span { font-size: 18px; color: var(--muted); }
.card-specs { margin: 0; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.card-specs div { display: flex; gap: 14px; font-size: 21px; line-height: 1.3; }
.card-specs dt { font-family: var(--f-mono); font-size: 17px; color: var(--muted); min-width: 120px; padding-top: 2px; text-transform: uppercase; letter-spacing: .06em; }
.card-specs dd { margin: 0; color: var(--fg); }
.card-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2px; }
.pc-k { font-family: var(--f-mono); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.pros .pc-k { color: var(--ok); } .cons .pc-k { color: var(--warn); }
.pc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pc li { display: flex; gap: 10px; font-size: 21px; line-height: 1.28; color: var(--fg-2); }
.pc li .ic { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.pros li .ic { color: var(--ok); } .cons li .ic { color: var(--warn); }
.b-cards.cols3 .card-title { font-size: 40px; }
.b-cards.cols4 .card-title { font-size: 36px; }
.b-cards.rich.cols3 .card-text { font-size: 22px; }
.b-cards.rich .card { padding: 24px 26px 26px; gap: 12px; }
.b-cards.rich .card-pc { grid-template-columns: 1fr; gap: 10px; }
.b-cards.rich.cols2 .card-pc { grid-template-columns: 1fr 1fr; }
.b-cards.focus .card.cur { border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: var(--shadow), 0 0 0 6px color-mix(in srgb, var(--c) 12%, transparent), 0 24px 70px -26px color-mix(in srgb, var(--c) 70%, transparent); transform: translateY(-6px) scale(1.015); }
.b-cards.focus .card.cur .card-icon { background: var(--c); color: var(--bg); }
.b-cards.focus .card.past { opacity: .62; }
/* spotlight : liste + fiche détaillée de l'élément courant */
.b-cards.spotlight { flex-direction: row; gap: 30px; align-items: stretch; justify-content: flex-start; }
.spot-list { width: 360px; flex: none; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.spot-row { --c: var(--accent); display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; border: 1.5px solid transparent; color: var(--fg-2); transition: background .4s, border-color .4s, color .4s, transform .4s; }
.spot-ic { width: 46px; height: 46px; flex: none; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.spot-ic .ic { width: 26px; height: 26px; }
.spot-ic b { font-family: var(--f-mono); font-size: 20px; }
.spot-t { font-family: var(--f-display); font-weight: 600; font-size: 30px; line-height: 1.05; flex: 1; }
.spot-tag { font-family: var(--f-mono); font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.spot-row.cur { background: var(--surface-2); border-color: color-mix(in srgb, var(--c) 60%, transparent); color: var(--fg); transform: translateX(8px); box-shadow: var(--shadow); }
.spot-row.cur .spot-ic { background: var(--c); color: var(--bg); }
.spot-row.past { color: var(--muted); }
.spot-detail { position: relative; flex: 1; min-width: 0; }
.spot-detail .card { position: absolute; inset: 0; opacity: 0; transform: translateX(26px); transition: opacity .45s, transform .6s cubic-bezier(.2,.7,.2,1); padding: 40px 46px; gap: 20px; justify-content: flex-start; }
.spot-detail .card.on { opacity: 1; transform: none; }
.spot-detail .card-icon { width: 92px; height: 92px; border-radius: 26px; background: var(--c); color: var(--bg); box-shadow: 0 0 50px color-mix(in srgb, var(--c) 40%, transparent); }
.spot-detail .card-icon .ic { width: 52px; height: 52px; }
.spot-detail .card-title { font-size: 66px; }
.spot-detail .card-text { font-size: 30px; line-height: 1.38; max-width: 900px; }
.spot-detail .fig b { font-size: 60px; }
.spot-detail .fig span { font-size: 20px; }
.spot-detail .card-specs div { font-size: 25px; }
.spot-detail .card-specs dt { font-size: 19px; min-width: 170px; }
.spot-detail .pc li { font-size: 25px; }
.spot-detail .pc-k { font-size: 18px; }
.spot-intro { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 34px; color: var(--muted); padding: 40px; border: 1.5px dashed var(--line-2); border-radius: 24px; opacity: 0; transition: opacity .4s; }
.spot-intro.on { opacity: 1; }
.spot-intro:empty::before { content: '→'; font-size: 60px; color: var(--line-3); }

/* ---------- matrix ---------- */
.b-matrix { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.mx-grid { display: grid; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 10px 14px 14px; align-items: stretch; }
.mx-corner { padding: 14px 16px; }
.mx-ch { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 10px 14px; font-family: var(--f-mono); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line-2); line-height: 1.2; transition: color .3s; }
.mx-ch .ic { width: 30px; height: 30px; color: var(--fg-2); }
.mx-ch.cur { color: var(--accent); } .mx-ch.cur .ic { color: var(--accent); }
.mx-corner { border-bottom: 1px solid var(--line-2); }
.mx-rh { --c: var(--accent); display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); border-radius: 14px 0 0 14px; }
.mx-ri { width: 46px; height: 46px; flex: none; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.mx-ri .ic { width: 26px; height: 26px; }
.mx-sw { width: 14px; height: 40px; border-radius: 4px; background: var(--c); flex: none; }
.mx-rl { display: flex; flex-direction: column; }
.mx-rt { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1.02; }
.mx-tag { font-family: var(--f-mono); font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.mx-c { --c: var(--accent); display: flex; align-items: center; justify-content: center; padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.mx-rh.rv, .mx-c.rv { transform: none; }
.mx-rh.cur, .mx-c.cur { background: color-mix(in srgb, var(--c) 9%, transparent); }
.mx-rh.cur { box-shadow: inset 4px 0 0 var(--c); }
.mx-c.cur:last-child { border-radius: 0 14px 14px 0; }
.mx-cell { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.mx-dots { display: inline-flex; gap: 7px; }
.mx-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-3); }
.mx-dots i.f { background: var(--c); border-color: var(--c); }
.mx-dots i.h { background: linear-gradient(90deg, var(--c) 50%, transparent 50%); border-color: var(--c); }
.mx-ck { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.mx-ck .ic { width: 26px; height: 26px; stroke-width: 2.6; }
.mx-ck.yes { background: var(--ok-soft); color: var(--ok); }
.mx-ck.no { background: var(--danger-soft); color: var(--danger); }
.mx-ck.mid { background: var(--warn-soft); }
.mx-ck.mid i { width: 16px; height: 4px; border-radius: 2px; background: var(--warn); }
.mx-txt { font-size: 22px; line-height: 1.2; color: var(--fg); }
.mx-cell.tone-good .mx-txt { color: var(--ok); } .mx-cell.tone-bad .mx-txt { color: var(--danger); } .mx-cell.tone-mid .mx-txt { color: var(--warn); }
.mx-none { color: var(--faint); font-size: 26px; }
.b-matrix.dense .mx-rt { font-size: 28px; }
.b-matrix.dense .mx-rh, .b-matrix.dense .mx-c { padding-top: 8px; padding-bottom: 8px; }
.b-matrix.wide .mx-ch { font-size: 16px; }
.mx-legend { font-size: 20px; color: var(--muted); margin: 0; }

/* ---------- definition ---------- */
.b-definition { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 60px; align-items: center; padding-bottom: 10px; }
.def-kicker { font-family: var(--f-mono); font-size: 20px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.def-term { font-family: var(--f-display); font-weight: 800; font-size: 150px; line-height: .92; letter-spacing: -0.015em; margin: 14px 0 0; text-wrap: balance; }
.def-term.len1 { font-size: 112px; }
.def-term.len2 { font-size: 84px; }
.def-aka { font-family: var(--f-mono); font-size: 24px; color: var(--muted); margin-top: 14px; }
.def-text { font-size: 42px; line-height: 1.28; margin: 34px 0 0; color: var(--fg); text-wrap: pretty; padding-left: 26px; border-left: 4px solid var(--accent); }
.def-text.len1 { font-size: 36px; }
.def-text.len2 { font-size: 30px; }
.def-side { display: flex; flex-direction: column; gap: 22px; align-items: stretch; }
.def-art { position: relative; align-self: center; width: 190px; height: 190px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 8px; }
.def-art .ic { width: 110px; height: 110px; position: relative; stroke-width: 1.4; }
.def-halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent); animation: pulse 4.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.07); opacity: .6; } }
.def-ex, .def-not { padding: 26px 30px; border-radius: 20px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.def-ex { border-left: 4px solid var(--cool); }
.def-not { border-left: 4px solid var(--warn); }
.def-k { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: var(--cool); margin-bottom: 10px; }
.def-not .def-k { color: var(--warn); }
.def-k .ic { width: 24px; height: 24px; }
.def-ex p, .def-not p { margin: 0; font-size: 28px; line-height: 1.34; color: var(--fg-2); }

/* ---------- timeline ---------- */
.b-timeline { display: flex; align-items: center; }
.tl-wrap { position: relative; width: 100%; }
.tl-axis { position: absolute; left: 0; right: 0; top: 96px; height: 3px; background: var(--line); border-radius: 2px; }
.tl-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 2px; transition: width .8s cubic-bezier(.65,0,.25,1); box-shadow: 0 0 16px var(--accent-glow); }
.tl-events { display: grid; position: relative; }
.tl-ev { --c: var(--accent); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; }
.tl-date { font-family: var(--f-mono); font-size: 30px; font-weight: 600; color: var(--c); height: 60px; line-height: 60px; font-variant-numeric: tabular-nums; }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 4px solid var(--c); margin: 22px 0 26px; display: flex; align-items: center; justify-content: center; transition: transform .4s, box-shadow .4s; }
.tl-dot:has(.ic) { width: 52px; height: 52px; margin: 11px 0 15px; border-width: 3px; }
.tl-dot .ic { width: 26px; height: 26px; color: var(--c); }
.tl-ev.cur .tl-dot { transform: scale(1.2); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 18%, transparent); background: var(--c); }
.tl-ev.cur .tl-dot .ic { color: var(--bg); }
.tl-label { font-family: var(--f-display); font-weight: 800; font-size: 38px; line-height: 1.04; text-wrap: balance; }
.tl-detail { font-size: 24px; color: var(--fg-2); line-height: 1.22; margin-top: 10px; text-wrap: balance; }
.b-timeline.n6 .tl-label, .b-timeline.n7 .tl-label, .b-timeline.n8 .tl-label { font-size: 31px; }
.b-timeline.n6 .tl-date, .b-timeline.n7 .tl-date, .b-timeline.n8 .tl-date { font-size: 24px; }
.b-timeline.n6 .tl-detail, .b-timeline.n7 .tl-detail, .b-timeline.n8 .tl-detail { font-size: 21px; }

/* ---------- bigfact ---------- */
.b-bigfact { --c: var(--accent); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-bottom: 30px; }
.big-icon { width: 96px; height: 96px; border-radius: 28px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); margin-bottom: 26px; }
.big-icon .ic { width: 54px; height: 54px; }
.big-value { font-family: var(--f-display); font-weight: 800; font-size: 250px; line-height: .9; letter-spacing: -0.02em; color: var(--c); font-variant-numeric: tabular-nums; text-shadow: 0 0 80px color-mix(in srgb, var(--c) 35%, transparent); }
.big-value.len1 { font-size: 190px; }
.big-value.len2 { font-size: 136px; }
.big-label { font-size: 48px; line-height: 1.2; margin-top: 30px; max-width: 1200px; text-wrap: balance; }
.big-text { font-size: 28px; line-height: 1.35; color: var(--fg-2); max-width: 1000px; margin: 20px 0 0; }
.big-source { font-family: var(--f-mono); font-size: 18px; color: var(--muted); margin-top: 30px; max-width: 1000px; }

/* ---------- stats ---------- */
.b-stats { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.st-row { display: flex; gap: 26px; }
.st-tile { --c: var(--accent); flex: 1; min-width: 0; padding: 36px 34px 34px; border-radius: 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); border: 1.5px solid transparent; display: flex; flex-direction: column; gap: 10px; }
.st-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 17%, transparent); color: var(--c); margin-bottom: 8px; }
.st-icon .ic { width: 30px; height: 30px; }
.st-value { font-family: var(--f-display); font-weight: 800; font-size: 112px; line-height: .92; color: var(--c); font-variant-numeric: tabular-nums; }
.st-value.len1 { font-size: 88px; } .st-value.len2 { font-size: 66px; }
.b-stats.n4 .st-value { font-size: 86px; } .b-stats.n4 .st-value.len1 { font-size: 70px; } .b-stats.n4 .st-value.len2 { font-size: 54px; }
.st-label { font-size: 30px; line-height: 1.18; font-weight: 600; }
.st-text { font-size: 22px; line-height: 1.35; color: var(--fg-2); margin: 4px 0 0; }
.st-source { font-family: var(--f-mono); font-size: 15px; color: var(--muted); margin-top: auto; padding-top: 10px; }
.st-tile.cur { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: var(--shadow), 0 0 0 6px color-mix(in srgb, var(--c) 10%, transparent); }
.st-foot { margin-top: 0; text-align: left; }

/* ---------- quote ---------- */
.b-quote { display: flex; flex-direction: column; justify-content: center; padding: 0 60px 40px; position: relative; }
.q-glyph { font-family: var(--f-display); font-weight: 800; font-size: 280px; line-height: .6; color: var(--accent); opacity: .9; height: 130px; }
.q-text { font-family: var(--f-display); font-weight: 600; font-size: 72px; line-height: 1.12; margin: 0; text-wrap: balance; max-width: 1300px; }
.q-text.len1 { font-size: 58px; }
.q-text.len2 { font-size: 46px; }
.q-source { font-family: var(--f-mono); font-size: 22px; color: var(--muted); margin-top: 40px; letter-spacing: .04em; }
.q-source::before { content: '— '; color: var(--accent); }

/* ---------- code ---------- */
.b-code { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.code-block { background: color-mix(in srgb, var(--surface) 80%, var(--ink)); border-radius: 18px; max-width: 1440px; flex: none; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.code-bar, .k-pane-bar { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.k-dots { display: inline-flex; gap: 8px; }
.k-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); }
.k-dots i:first-child { background: color-mix(in srgb, var(--danger) 70%, var(--line-2)); }
.code-file, .k-pane-title { font-family: var(--f-mono); font-size: 17px; color: var(--muted); }
.code-pre { margin: 0; padding: 22px 0 26px; font-family: var(--f-mono); font-size: 29px; line-height: 1.5; overflow: hidden; }
.code-block.dense .code-pre { font-size: 23px; }
.code-line { white-space: pre; opacity: 0; animation: lineIn .4s ease forwards; min-height: 1.5em; padding: 0 30px 0 0; display: flex; transition: background .35s, opacity .35s; }
.code-ln { width: 64px; flex: none; text-align: right; padding-right: 22px; color: var(--faint); user-select: none; }
.code-prompt { color: var(--accent); }
.code-block.has-hl .code-line:not(.hl) { opacity: .34 !important; }
.code-line.hl { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 4px 0 0 var(--accent); }
.code-block.term .code-line.cmd .code-txt { color: var(--fg); }
.code-block.term .code-line:not(.cmd) .code-txt { color: var(--fg-2); }
@keyframes lineIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.tk-key { color: var(--cool); } .tk-str { color: var(--s3-hi); } .tk-num { color: var(--s4-hi); } .tk-kw { color: var(--accent-2); } .tk-com { color: var(--muted); font-style: italic; }
.b-code.annotated .code-block { max-width: none; }

/* ===================================================================== */
/* Graphiques                                                             */
/* ===================================================================== */
.b-chart { display: flex; flex-direction: column; min-height: 0; gap: 6px; }
.ch-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; min-height: 34px; padding-left: 4px; }
.ch-ytitle { font-family: var(--f-mono); font-size: 17px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-right: 18px; }
.ch-li { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; color: var(--fg-2); opacity: .28; transition: opacity .4s, color .3s; }
.ch-li i { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
.ck-scatter .ch-li i, .ck-bar .ch-li i { width: 14px; height: 14px; border-radius: 4px; }
.ch-li.dashed i { background: transparent !important; border-top: 4px dashed; height: 0; }
.ch-li.on { opacity: 1; }
.ch-li.cur { color: var(--fg); font-weight: 600; }
.ch-box { flex: 1; min-height: 0; position: relative; }
.ch-svg { position: absolute; inset: 0; overflow: visible; font-family: var(--f-text); }
.ch-foot { display: flex; gap: 30px; font-family: var(--f-mono); font-size: 15px; color: var(--muted); min-height: 20px; }
.ch-gl { stroke: var(--line); stroke-width: 1; }
.ch-gl.zero { stroke: var(--line-2); }
.ch-gl.v { stroke-dasharray: 2 6; }
.ch-axis { stroke: var(--line-3); stroke-width: 1.5; }
.ch-tickmark { stroke: var(--line-3); stroke-width: 1.5; }
.ch-tick { fill: var(--muted); font-size: 21px; font-variant-numeric: tabular-nums; }
.ch-tick.cat { fill: var(--fg-2); font-size: 22px; }
.ch-atitle { fill: var(--muted); font-family: var(--f-mono); font-size: 17px; letter-spacing: .05em; text-transform: uppercase; }
.ch-band rect { opacity: .09; }
.ch-band { opacity: 0; transition: opacity .6s; }
.ch-band.on { opacity: 1; }
.ch-band.cur rect { opacity: .18; }
.ch-band-l { font-family: var(--f-mono); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.ch-ref line { stroke: var(--fg-2); stroke-width: 1.5; stroke-dasharray: 8 7; opacity: .6; }
.ch-ref text { fill: var(--fg-2); font-size: 19px; font-style: italic; }
.ch-ev { opacity: 0; transition: opacity .5s; }
.ch-ev.on { opacity: 1; }
.ch-ev-line { stroke: var(--line-3); stroke-width: 1.5; stroke-dasharray: 4 6; }
.ch-ev-dia { fill: var(--bg); stroke: var(--fg-2); stroke-width: 2; }
.ch-ev-l { fill: var(--fg-2); font-size: 20px; font-weight: 600; }
.ch-ev.cur .ch-ev-line { stroke: var(--accent); stroke-dasharray: none; stroke-width: 2.5; }
.ch-ev.cur .ch-ev-dia { fill: var(--accent); stroke: var(--accent); }
.ch-ev.cur .ch-ev-l { fill: var(--accent); }
.ch-ev.on:not(.cur) { opacity: .75; }
.ch-s { transition: opacity .5s; }
.ch-s.dim { opacity: .3; }
.ch-line { fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.45,.05,.3,1), stroke-width .3s; }
.ch-line.dashed { stroke-dasharray: none; }
.ch-s.on .ch-line { stroke-dashoffset: 0; }
.ch-s:not(.on) .ch-line.dashed { opacity: 0; }
.ch-line.dashed { transition: opacity .8s; stroke-dasharray: 10 8; }
.ch-s.cur .ch-line { stroke-width: 5; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 45%, transparent)); }
.ch-area { fill: var(--c); opacity: 0; transition: opacity .8s .4s; }
.ch-s.on .ch-area { opacity: .1; }
.ch-pt { fill: var(--c); stroke: var(--bg); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); transition: opacity .3s var(--d, 0ms), transform .45s cubic-bezier(.3,1.5,.5,1) var(--d, 0ms); }
.ch-pt.on { opacity: 1; transform: none; }
.ch-pt.hl { stroke: var(--fg); }
.ch-pt.cur { transform: scale(1.5); filter: drop-shadow(0 0 10px var(--c)); }
.ck-scatter .ch-pt { fill-opacity: .9; }
.ch-plabel { fill: var(--fg-2); font-size: 19px; opacity: 0; transition: opacity .4s var(--d, 0ms); }
.ch-plabel.on { opacity: 1; }
.ch-s.cur ~ * .ch-plabel { fill: var(--fg); }
.ch-direct { fill: var(--chi, var(--fg)); font-size: 22px; font-weight: 600; opacity: 0; transition: opacity .5s .9s; }
.ch-s.on .ch-direct, .ch-direct.on { opacity: 1; }
.ch-labels .ch-direct { fill: var(--fg); }
.ch-trend { fill: none; stroke: var(--c, var(--fg-2)); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .55; transition: stroke-dashoffset 1.2s ease .3s; }
.ch-trend.all { stroke: var(--fg-2); }
.ch-trend.on { stroke-dashoffset: 0; }
.ch-bar { fill: var(--c); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .7s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), filter .3s; }
.ch-bar.h { transform-origin: 0 50%; transform: scaleX(0); }
.ch-bar.on { transform: none; }
.ch-bar.cur { filter: brightness(1.25) drop-shadow(0 0 12px var(--c)); }
.ch-val { fill: var(--fg); font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .4s var(--d, 0ms); }
.ch-val.on { opacity: 1; }
.ch-hitbox { fill: transparent; stroke: none; cursor: crosshair; }
.ch-hit { pointer-events: all; }
.b-chart.instant *, .b-chart.instant { transition: none !important; }
.slide.thumb .b-chart *, .slide.thumb .anim * { transition: none !important; animation: none !important; }

/* ===================================================================== */
/* Boîte à outils des animations (kit.js)                                 */
/* ===================================================================== */
.b-anim { display: flex; flex-direction: column; gap: 14px; }
.anim-box { flex: 1; }
.anim { position: absolute; left: 0; top: 0; font-family: var(--f-text); }
.anim > * { position: absolute; }
.b-anim .caption { text-align: center; align-self: center; }
.k-layer { left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.k-head { fill: var(--line-3); }
.k-head.hot { fill: var(--accent); }
.k-head.cool { fill: var(--cool); }
.k-edge { opacity: 0; transition: opacity .4s; }
.k-edge.on { opacity: 1; }
.k-edge-line { fill: none; stroke: var(--line-3); stroke-width: 3; stroke-linecap: round; transition: stroke .3s; }
.k-edge-flow { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 3 14; opacity: 0; transition: opacity .3s; }
.k-edge.hot .k-edge-line { stroke: color-mix(in srgb, var(--accent) 55%, transparent); }
.k-edge.hot .k-edge-flow { opacity: 1; animation: flow .9s linear infinite; }
.k-edge.done .k-edge-line { stroke: color-mix(in srgb, var(--accent) 35%, var(--line-3)); }
.k-edge.cool .k-edge-flow { stroke: var(--cool); }
.k-edge.cool.hot .k-edge-line { stroke: color-mix(in srgb, var(--cool) 55%, transparent); }
.k-edge.dashed .k-edge-line { stroke-dasharray: 8 8 !important; }
.k-edge-label { fill: var(--fg-2); font-family: var(--f-mono); font-size: 17px; }
@keyframes flow { to { stroke-dashoffset: -17; } }
.k-node { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); border: 1.5px solid var(--line);
  --c: var(--fg-2); transition: opacity .45s, transform .55s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s, background .35s; z-index: 1; }
.k-node.center { flex-direction: column; justify-content: center; text-align: center; }
.k-node-icon { width: 52px; height: 52px; flex: none; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); transition: background .35s, color .35s, box-shadow .35s; }
.k-node-icon .ic { width: 30px; height: 30px; }
.k-node-body { min-width: 0; }
.k-node-kicker { font-family: var(--f-mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.k-node-title { font-family: var(--f-display); font-weight: 800; font-size: 32px; line-height: 1.04; }
.k-node-text { font-size: 21px; line-height: 1.3; color: var(--fg-2); margin-top: 4px; }
.k-node.hide { opacity: 0; transform: translateY(12px); }
.k-node.dim { opacity: .4; }
.k-node.active { border-color: color-mix(in srgb, var(--c) 75%, transparent); box-shadow: var(--shadow), 0 0 0 5px color-mix(in srgb, var(--c) 13%, transparent), 0 18px 50px -20px color-mix(in srgb, var(--c) 70%, transparent); }
.k-node.active .k-node-icon { background: var(--c); color: var(--bg); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 50%, transparent); }
.k-node.done { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.k-node.danger { --c: var(--danger); border-color: color-mix(in srgb, var(--danger) 70%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--danger) 14%, var(--surface-2)), var(--surface)); }
.k-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-family: var(--f-mono); font-size: 18px; white-space: nowrap; background: var(--surface-3); color: var(--fg-2); border: 1px solid var(--line-2); --c: var(--fg-2); transition: opacity .4s, transform .6s cubic-bezier(.2,.7,.2,1), background .3s, color .3s, border-color .3s; }
.k-chip .ic { width: 18px; height: 18px; color: var(--c); }
.k-chip.hot { background: var(--accent-soft); color: var(--fg); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.k-chip.cool { background: var(--cool-soft); color: var(--fg); border-color: color-mix(in srgb, var(--cool) 60%, transparent); }
.k-chip.ok { background: var(--ok-soft); color: var(--fg); border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.k-pkt { position: absolute; left: 0; top: 0; z-index: 8; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-family: var(--f-mono); font-size: 19px; font-weight: 600; white-space: nowrap; pointer-events: none;
  background: var(--fg); color: var(--bg); box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.k-pkt .ic { width: 20px; height: 20px; }
.k-pkt.hot { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 26px var(--accent-glow); }
.k-pkt.cool { background: var(--cool); color: #04121c; box-shadow: 0 0 26px var(--cool-glow); }
.k-pkt.ok { background: var(--ok); color: #04170c; }
.k-pkt.danger { background: var(--danger); color: #1c0404; }
.k-callout { padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s cubic-bezier(.2,.7,.2,1); z-index: 6; }
.k-callout.on { opacity: 1; transform: none; }
.k-callout-title { font-weight: 600; font-size: 22px; color: var(--fg); margin-bottom: 4px; }
.k-callout-text { font-size: 19px; line-height: 1.32; color: var(--fg-2); }
.k-callout-lead { overflow: visible; opacity: 0; transition: opacity .4s; z-index: 5; pointer-events: none; }
.k-callout-lead.on { opacity: 1; }
.k-callout-lead path { stroke: var(--line-3); stroke-width: 1.5; fill: none; }
.k-callout-lead circle { fill: var(--accent); }
.k-callout.hot { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.k-tip { position: fixed; z-index: 100; transform: translate(-50%, -100%); padding: 8px 12px; border-radius: 10px; background: var(--surface-3); color: var(--fg); font-size: 15px; border: 1px solid var(--line-2); box-shadow: 0 8px 26px rgba(0,0,0,.5); pointer-events: none; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.k-tip.on { opacity: 1; }
.k-bar { border-radius: 999px; background: var(--surface-3); overflow: hidden; --c: var(--cool); }
.k-bar-fill { height: 100%; width: 0; background: var(--c); border-radius: 999px; box-shadow: 0 0 14px color-mix(in srgb, var(--c) 50%, transparent); }
.k-pane { border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--surface) 70%, var(--ink)); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; z-index: 1; transition: opacity .45s, transform .55s, border-color .35s; }
.k-pane-bar { height: 40px; flex: none; }
.k-code-body, .k-term-body { flex: 1; min-height: 0; overflow: hidden; padding: 14px 0 16px; font-family: var(--f-mono); font-size: 21px; line-height: 1.5; }
.k-code-line { display: flex; white-space: pre; padding-right: 20px; opacity: 0; transition: opacity .3s, background .3s; }
.k-code-line.on { opacity: 1; }
.k-ln { width: 50px; flex: none; text-align: right; padding-right: 16px; color: var(--faint); }
.k-code.has-hl .k-code-line.on:not(.hl) { opacity: .35; }
.k-code-line.hl { background: color-mix(in srgb, var(--accent) 11%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.k-term-body { padding: 12px 18px 14px; display: flex; flex-direction: column; justify-content: flex-end; }
.k-term-line { display: none; white-space: pre-wrap; word-break: break-word; color: var(--fg-2); }
.k-term-line.on { display: block; }
.k-term-line.k-in { animation: lineIn .35s ease; }
.k-prompt { color: var(--accent); }
.k-cmd .k-term-text { color: var(--fg); }
.k-ok { color: var(--ok); } .k-err { color: var(--danger); } .k-warn { color: var(--warn); } .k-dim { color: var(--muted); }
.k-agent { color: var(--cool); }
.k-agent .k-prompt { color: var(--cool); }
.k-typing::after { content: ''; display: inline-block; width: .55em; height: 1.05em; vertical-align: -.15em; margin-left: 2px; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.flash { animation: flash .9s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 8px var(--accent-soft), 0 0 40px var(--accent-glow); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ===================================================================== */
/* Activités (quiz sur téléphone ; poll, wordcloud, open, scale gardés)   */
/* ===================================================================== */
.t-poll .slide-title, .t-quiz .slide-title, .t-wordcloud .slide-title, .t-open .slide-title, .t-scale .slide-title { font-size: 30px; color: var(--muted); font-family: var(--f-mono); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.t-poll .slide-body, .t-quiz .slide-body, .t-wordcloud .slide-body, .t-open .slide-body, .t-scale .slide-body { margin-top: 12px; }
.b-act { display: flex; flex-direction: column; position: relative; }
.act-q { font-family: var(--f-display); font-weight: 800; font-size: 64px; line-height: 1.04; margin-bottom: 34px; text-wrap: balance; max-width: 1400px; }
.act-q.long { font-size: 52px; }
.act-body { flex: 1; position: relative; min-height: 0; }
.act-foot { display: flex; align-items: center; gap: 26px; padding-top: 16px; font-size: 22px; color: var(--fg-2); position: relative; height: 62px; }
.act-status { font-weight: 600; color: var(--fg); }
[data-status='open'] .act-status { color: var(--ok); }
.act-timer { font-family: var(--f-mono); font-size: 28px; font-weight: 600; color: var(--warn); font-variant-numeric: tabular-nums; }
.urgent .act-timer { color: var(--danger); }
.act-hint { color: var(--muted); }
.act-reopen { font: inherit; font-size: 20px; font-weight: 600; padding: 7px 20px; border-radius: 999px; border: 1.5px solid var(--line-3); background: var(--surface); color: var(--fg); cursor: pointer; }
.act-reopen:hover { border-color: var(--accent); color: var(--accent); }
.act-join { margin-left: auto; color: var(--muted); font-size: 20px; }
.act-join strong { color: var(--fg-2); font-weight: 600; font-family: var(--f-mono); }
.act-tbar { position: absolute; left: 0; right: 0; top: 0; height: 4px; display: none; border-radius: 2px; overflow: hidden; background: var(--surface-3); }
.timed .act-tbar { display: block; }
.act-tfill { height: 100%; background: var(--warn); width: 100%; transition: width .25s linear; }
.urgent .act-tfill { background: var(--danger); }
.act-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: 18px; }
[data-status='ready'] .act-empty { opacity: .6; }
.opt-list { display: flex; flex-direction: column; gap: 14px; }
.opt-row { display: grid; grid-template-columns: 78px minmax(300px, 1fr) 1fr 160px; align-items: center; gap: 22px; min-height: 88px; padding: 8px 22px 8px 0; border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); position: relative; transition: opacity .4s, background .4s, box-shadow .4s; }
.opt-list.n5 .opt-row { min-height: 72px; }
.opt-letter { display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 28px; font-weight: 600; color: var(--muted); }
.opt-text { font-size: 38px; line-height: 1.15; }
.opt-list.n5 .opt-text { font-size: 32px; }
.opt-track { height: 36px; background: var(--surface-3); border-radius: 8px; position: relative; overflow: hidden; }
.opt-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--line-3); border-radius: 8px; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.opt-num { font-family: var(--f-mono); font-size: 22px; text-align: right; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.act-poll .opt-fill { background: var(--cool); }
.opt-row.correct { background: var(--ok-soft); box-shadow: inset 0 0 0 2px var(--ok), 0 0 40px -10px var(--ok); }
.opt-row.correct .opt-fill { background: var(--ok); }
.opt-row.correct .opt-letter { color: var(--ok); }
.opt-row.wrong { opacity: .42; }
[data-status='ready'] .opt-track, [data-status='ready'] .opt-num { display: none; }
.act-quiz:not(.revealed) .opt-track, .act-quiz:not(.revealed) .opt-num { display: none; }
[data-status='ready'] .opt-row, .act-quiz:not(.revealed) .opt-row { grid-template-columns: 78px 1fr; }
.act-quiz.revealed .opt-row { grid-template-columns: 78px 1fr 0.8fr 150px; }
.quiz-count { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; }
.qc-n { font-family: var(--f-display); font-weight: 800; font-size: 130px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.qc-l { font-size: 24px; color: var(--muted); }
[data-status='open'].act-quiz .opt-list { margin-right: 300px; }
[data-status='closed'] .quiz-count, [data-status='ready'] .quiz-count, .act-quiz.revealed .quiz-count { display: none; }
.act-quiz.revealed .opt-list { margin-right: 0; }
.quiz-explain { display: none; margin-top: 24px; font-size: 30px; line-height: 1.3; color: var(--fg-2); padding-left: 20px; border-left: 4px solid var(--ok); }
.act-quiz.revealed .quiz-explain { display: block; animation: lineIn .5s .6s ease both; }
.leader { position: absolute; inset: 0 0 70px 0; background: var(--bg); display: none; flex-direction: column; gap: 18px; z-index: 3; }
.show-leader .leader { display: flex; }
.show-leader .act-body, .show-leader .act-q { visibility: hidden; }
.leader-k { font-family: var(--f-display); font-weight: 800; font-size: 64px; }
.leader-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.leader-list li { display: grid; grid-template-columns: 80px 380px 1fr 160px; align-items: center; gap: 24px; font-size: 42px; padding: 10px 0; }
.leader-list li:first-child { font-size: 54px; }
.ld-rank { font-family: var(--f-mono); font-size: 30px; color: var(--muted); font-weight: 600; }
.ld-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-bar { height: 24px; border-radius: 12px; background: var(--accent); width: 0; animation: grow .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d); box-shadow: 0 0 20px var(--accent-glow); }
.leader-list li:not(:first-child) .ld-bar { background: var(--line-3); box-shadow: none; }
@keyframes grow { to { width: var(--w); } }
.ld-score { font-family: var(--f-mono); font-size: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.leader-list li.leader-empty { display: block; font-size: 30px; color: var(--muted); }
.act-timer:empty { display: none; }
.cloud { position: absolute; left: 0; top: 0; }
.cw { position: absolute; transform: translate(-50%, -50%) scale(.4); opacity: 0; font-family: var(--f-cond); font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: left .6s cubic-bezier(.3,.7,.2,1), top .6s cubic-bezier(.3,.7,.2,1), font-size .6s, opacity .4s, transform .5s; }
.cw.in { opacity: 1; transform: translate(-50%, -50%); }
.cw:hover { text-decoration: line-through; text-decoration-color: var(--accent); }
.cw.c1 { color: var(--fg); } .cw.c2 { color: var(--accent); } .cw.c3 { color: var(--fg-2); } .cw.c4 { color: var(--cool); }
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-content: start; height: 100%; overflow: hidden; }
.wcard { font-size: 28px; line-height: 1.25; padding: 20px 22px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; overflow-wrap: anywhere; animation: cardIn .5s cubic-bezier(.2,.7,.2,1); }
.wcard:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.wall.dense { grid-template-columns: repeat(4, 1fr); }
.wall.dense .wcard { font-size: 23px; padding: 14px 16px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.wall-more { position: absolute; right: 0; bottom: -30px; font-size: 18px; color: var(--muted); }
.act-scale .act-body { display: flex; gap: 70px; align-items: stretch; }
.scale-wrap { flex: 1; display: flex; flex-direction: column; }
.scale-hist { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; min-height: 0; }
.sc-col { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
.sc-n { text-align: center; font-size: 28px; font-weight: 600; height: 40px; }
.sc-track { flex: 1; position: relative; background: var(--surface); border-radius: 10px 10px 0 0; }
.sc-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--cool); border-radius: 10px 10px 0 0; transition: height .9s cubic-bezier(.2,.7,.2,1); }
.sc-v { text-align: center; font-size: 28px; padding-top: 8px; border-top: 2px solid var(--line-3); }
.sc-axis { position: relative; display: flex; justify-content: space-between; font-size: 26px; color: var(--fg-2); margin-top: 10px; height: 50px; }
.sc-mean-mark { position: absolute; top: 2px; width: 0; height: 40px; opacity: 0; transition: left .9s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.sc-mean-mark.on { opacity: 1; }
.sc-mean-mark::before { content: ''; position: absolute; left: -11px; top: 0; border: 11px solid transparent; border-top: 0; border-bottom: 16px solid var(--accent); }
.sc-mean-mark span { position: absolute; left: 50%; transform: translateX(-50%); top: 18px; font-size: 18px; color: var(--accent); white-space: nowrap; }
.sc-mean { width: 300px; flex: none; display: flex; flex-direction: column; justify-content: center; padding-left: 40px; }
.sc-mean span { font-size: 24px; color: var(--muted); }
.sc-mean strong { font-family: var(--f-display); font-weight: 800; font-size: 150px; line-height: 1; color: var(--accent); }

/* ===================================================================== */
/* Surcouches                                                            */
/* ===================================================================== */
#qr-overlay { position: absolute; inset: 0; z-index: 20; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.qo-inner { display: flex; gap: 80px; align-items: center; }
.qo-qr { width: 580px; height: 580px; background: #fff; padding: 14px; border-radius: 24px; box-shadow: 0 30px 90px -30px var(--accent-glow); }
.qo-side { width: 640px; display: flex; flex-direction: column; gap: 24px; }
.qo-k { font-size: 40px; line-height: 1.2; margin: 0; }
.qo-url { font-family: var(--f-mono); font-size: 40px; font-weight: 600; word-break: break-all; color: var(--accent); }
.qo-count { font-size: 28px; color: var(--muted); margin: 0; }
.qo-n { color: var(--fg); font-weight: 600; }
#jump { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 30; background: var(--surface-3); color: var(--fg); font-family: var(--f-mono); font-size: 40px; padding: 20px 34px; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }

#blank { position: fixed; inset: 0; background: #000; z-index: 50; cursor: none; }
#lock { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lk-box { max-width: 720px; border: 1px solid var(--line-2); border-radius: 18px; padding: 40px; background: var(--surface); box-shadow: var(--shadow); }
.lk-k { color: var(--muted); font-size: 16px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em; }
.lk-msg { font-size: 28px; line-height: 1.3; }
.lk-alt { color: var(--fg-2); font-size: 20px; }
.lk-alt a { color: var(--accent); }

#overview { position: fixed; inset: 0; z-index: 40; background: var(--ink); overflow-y: auto; padding: 24px 32px 60px; }
.ov-head { font-family: var(--f-mono); font-size: 14px; color: var(--muted); margin-bottom: 18px; letter-spacing: .04em; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px 16px; }
.ov-mod { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding-top: 14px; }
.ov-cell { display: block; padding: 0; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); cursor: pointer; text-align: left; }
.ov-cell.cur { border-color: var(--accent); }
.ov-cell.sel, .ov-cell:hover, .ov-cell:focus-visible { border-color: var(--fg); outline: none; }
.ov-mini { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; pointer-events: none; container-type: inline-size; background: var(--bg); }
.ov-mini .slide { width: 1600px; height: 900px; transform-origin: 0 0; transform: scale(calc(100cqw / 1600px)); transition: none; }
.ov-mini .slide * { animation-duration: 0s !important; transition: none !important; }
.ov-cap { font-size: 13px; color: var(--muted); padding: 6px 10px; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#modpanel { position: fixed; right: 0; top: 0; bottom: 0; width: min(460px, 100%); z-index: 45; background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto; padding: 18px; font-size: 18px; }
.mp-head { font-size: 14px; color: var(--muted); margin: 10px 0; font-family: var(--f-mono); }
.mp-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mp-row.off { opacity: .55; }
.mp-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-score { color: var(--fg-2); font-size: 15px; }
.mp-btn { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 15px; }
.mp-btn:hover { border-color: var(--fg); }
.mp-btn.danger { color: var(--danger); border-color: var(--danger); }
.mp-empty { color: var(--muted); padding: 10px 0; }

/* icônes : trait, couleur héritée */
