/* Mecanique Celeste : almanach d'observatoire. Fraunces (titres) + Familjen Grotesk (texte et chiffres). */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: oklch(0.965 0.012 85);
  --surface: oklch(0.985 0.008 85);
  --wash: oklch(0.94 0.02 85);
  --ink: oklch(0.21 0.02 265);
  --ink-2: oklch(0.40 0.02 265);
  --ink-3: oklch(0.47 0.02 265);
  --rule: oklch(0.875 0.012 85);
  --rule-2: oklch(0.76 0.014 85);
  --accent: oklch(0.58 0.125 68);
  --accent-ink: oklch(0.46 0.105 62);
  --bench-1: oklch(0.50 0.012 265);
  --bench-2: oklch(0.66 0.012 265);
  --s-etf: #2a78d6;
  --s-crypto: #eb6834;
  --s-actions: #1baf7a;
  --good: #0ca30c;
  --bad: #d03b3b;
  --grain: 0.5;
  --shadow: 0 1px 1px oklch(0.4 0.03 70 / 0.05), 0 2px 4px oklch(0.4 0.03 70 / 0.05), 0 6px 10px oklch(0.4 0.03 70 / 0.05), 0 14px 24px oklch(0.4 0.03 70 / 0.06);
  --sans: "Familjen Grotesk", ui-sans-serif, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.1rem, 4.2vw, 3.25rem);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: oklch(0.17 0.02 265);
    --surface: oklch(0.205 0.022 265);
    --wash: oklch(0.24 0.025 265);
    --ink: oklch(0.94 0.008 85);
    --ink-2: oklch(0.80 0.01 85);
    --ink-3: oklch(0.67 0.012 85);
    --rule: oklch(0.29 0.02 265);
    --rule-2: oklch(0.40 0.02 265);
    --accent: oklch(0.80 0.13 82);
    --accent-ink: oklch(0.82 0.12 82);
    --bench-1: oklch(0.72 0.012 265);
    --bench-2: oklch(0.52 0.012 265);
    --s-etf: #3987e5;
    --s-crypto: #d95926;
    --s-actions: #199e70;
    --grain: 0.28;
    --shadow: 0 1px 1px oklch(0.05 0.02 265 / 0.3), 0 3px 6px oklch(0.05 0.02 265 / 0.3), 0 10px 20px oklch(0.05 0.02 265 / 0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.17 0.02 265);
  --surface: oklch(0.205 0.022 265);
  --wash: oklch(0.24 0.025 265);
  --ink: oklch(0.94 0.008 85);
  --ink-2: oklch(0.80 0.01 85);
  --ink-3: oklch(0.67 0.012 85);
  --rule: oklch(0.29 0.02 265);
  --rule-2: oklch(0.40 0.02 265);
  --accent: oklch(0.80 0.13 82);
  --accent-ink: oklch(0.82 0.12 82);
  --bench-1: oklch(0.72 0.012 265);
  --bench-2: oklch(0.52 0.012 265);
  --s-etf: #3987e5;
  --s-crypto: #d95926;
  --s-actions: #199e70;
  --grain: 0.28;
  --shadow: 0 1px 1px oklch(0.05 0.02 265 / 0.3), 0 3px 6px oklch(0.05 0.02 265 / 0.3), 0 10px 20px oklch(0.05 0.02 265 / 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: clamp(1rem, 0.35vw + 0.92rem, 1.125rem); line-height: 1.55;
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(120% 60% at 85% -10%, color-mix(in oklch, var(--accent) 9%, transparent), transparent 60%),
                    radial-gradient(90% 50% at -10% 0%, color-mix(in oklch, var(--s-etf) 5%, transparent), transparent 55%);
  background-repeat: no-repeat;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: var(--grain); mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: var(--bg); }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -4rem; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; z-index: 20; }
.skip:focus { top: 0.5rem; }
.wrap { max-width: 82rem; margin-inline: auto; padding-inline: var(--pad); }
.num { font-variant-numeric: tabular-nums; }
.i1 { --i: 1; } .i2 { --i: 2; }
.mt { margin-top: 0.6rem; } .mt2 { margin-top: 1.6rem; }

/* ------------------------------------------------------------ en-tete */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 2.1rem; height: 2.1rem; color: var(--accent); flex: none; }
.brand-name { font-family: var(--serif); font-variation-settings: "opsz" 40; font-weight: 420; font-size: clamp(1.12rem, 4.6vw, 1.3rem); letter-spacing: -0.015em; line-height: 1; white-space: nowrap; }
.top-meta { display: flex; align-items: center; gap: 0.9rem; color: var(--ink-2); font-size: 0.875rem; }
.live { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.live svg { width: 0.6rem; height: 0.6rem; color: var(--good); }
.live.stale svg { color: var(--bad); }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--rule-2); border-radius: 50%; background: transparent; cursor: pointer; transition: background 120ms ease-out, border-color 120ms ease-out; }
.icon-btn:hover { background: var(--wash); border-color: var(--ink-3); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
@media (max-width: 40rem) { .live-long { display: none; } .top-meta { gap: 0.7rem; } .brand { gap: 0.55rem; } .brand svg { width: 1.9rem; height: 1.9rem; } }

/* ------------------------------------------------------------ valeur */
.hero { display: grid; gap: clamp(1.75rem, 5vw, 3.5rem); padding-block: clamp(2.25rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem); }
.kicker { color: var(--ink-2); font-size: 0.95rem; max-width: 34ch; }
.hero-label { font-family: var(--serif); font-variation-settings: "opsz" 144; font-weight: 340; font-size: clamp(1.5rem, 3.6vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.05; margin-top: 0.4rem; }
.hero-fig { word-spacing: -0.06em; font-weight: 700; font-size: clamp(2.9rem, 12vw, 7rem); letter-spacing: -0.04em; line-height: 0.95; margin-top: clamp(0.9rem, 2vw, 1.5rem); white-space: nowrap; }
.hero-fig .dec { word-spacing: 0; font-size: 0.46em; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); }
.hero-delta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.25rem; margin-top: 1.1rem; color: var(--ink-2); }
.hero-delta strong { color: var(--ink); font-weight: 600; font-size: 1.15em; }
.delta { display: inline-flex; align-items: baseline; gap: 0.4rem; white-space: nowrap; }
.delta svg { width: 0.62em; height: 0.62em; flex: none; align-self: center; color: var(--ink-3); }
.delta.up svg { color: var(--good); }
.delta.down svg { color: var(--bad); }
@media (min-width: 62rem) { .hero { grid-template-columns: 7fr 5fr; align-items: end; } }

.ledger { display: grid; grid-template-columns: 1fr; }
.ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 0.6rem; border-top: 1px solid var(--rule); }
.ledger > div:last-child { border-bottom: 1px solid var(--rule); }
.ledger dt { color: var(--ink-2); font-size: 0.925rem; }
.ledger dd { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.ledger dd small { display: block; color: var(--ink-3); font-weight: 400; font-size: 0.8125rem; }
.ledger.total > div:last-child dt, .ledger.total > div:last-child dd { font-weight: 700; color: var(--ink); }

/* ------------------------------------------------------------ sections : marge fixe, corps qui defile */
.sec { position: relative; display: grid; gap: 1.5rem 3rem; padding-block: clamp(2.25rem, 6vw, 4.5rem); }
.sec::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule-2); transform-origin: left; }
.sec-head h2 { font-family: var(--serif); font-variation-settings: "opsz" 144; font-weight: 340; font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.025em; line-height: 1; text-wrap: balance; }
.sec-note { margin-top: 0.8rem; color: var(--ink-2); font-size: 0.95rem; max-width: 36ch; }
.sec-body { min-width: 0; }
@media (min-width: 62rem) {
  .sec { grid-template-columns: minmax(13rem, 1fr) 3.1fr; }
  .sec-head { position: sticky; top: 1.75rem; align-self: start; }
}
h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.005em; }
.sub { margin-top: 2.25rem; }
.sub > h3 { margin-bottom: 0.6rem; }
.lead { color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }

/* ------------------------------------------------------------ controles */
.seg { display: inline-flex; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; max-width: 100%; }
.seg button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0.55rem 0.95rem; min-height: 2.75rem; color: var(--ink-2); font-weight: 500; cursor: pointer; transition: color 120ms ease-out, border-color 150ms ease-out; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.more { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 1px solid var(--rule-2); border-radius: 999px; padding: 0.5rem 1.05rem; min-height: 2.75rem; cursor: pointer; color: var(--ink); font-weight: 500; font-size: 0.925rem; transition: background 120ms ease-out, border-color 120ms ease-out; }
.more:hover { background: var(--wash); border-color: var(--ink-3); }
.more svg { width: 0.85rem; height: 0.85rem; transition: transform 200ms var(--ease); }
.more[aria-expanded="true"] svg { transform: rotate(180deg); }
.more[hidden] { display: none; }

/* ------------------------------------------------------------ graphiques */
.viz { position: relative; }
.legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; margin-bottom: 0.6rem; font-size: 0.875rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.key { display: inline-block; width: 1.1rem; height: 2px; border-radius: 1px; background: var(--c); flex: none; }
.key.box { width: 0.7rem; height: 0.7rem; border-radius: 2px; }
.key.tick { width: 0.9rem; height: 2px; }
.plot { position: relative; touch-action: pan-y; outline-offset: 4px; }
.plot svg { width: 100%; height: auto; overflow: visible; }
.plot text { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.plot .ytick { paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.plot .grid { stroke: var(--rule); stroke-width: 1; shape-rendering: crispEdges; }
.plot .axis { stroke: var(--rule-2); stroke-width: 1; shape-rendering: crispEdges; }
.plot .ln { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plot .ln.ctx { stroke-width: 1.5; }
.plot .area { fill: var(--c); opacity: 0.1; stroke: none; }
.plot .dot { fill: var(--c); stroke: var(--bg); stroke-width: 2; }
.plot .endlabel { fill: var(--ink-2); font-size: 11.5px; }
.plot .endlabel.main { fill: var(--ink); font-weight: 600; }
.plot .leader { stroke: var(--rule-2); stroke-width: 1; }
.plot .cross { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
.plot .col { fill: var(--c); transition: opacity 120ms ease-out; }
.plot .col.dim { opacity: 0.55; }
.plot .ref { stroke: var(--bench-1); stroke-width: 2; stroke-linecap: round; }
.plot .collabel { fill: var(--ink-2); font-size: 11px; text-anchor: middle; }
.plot .hit { fill: transparent; cursor: crosshair; }
.c-port { --c: var(--accent); }
.c-b1 { --c: var(--bench-1); }
.c-b2 { --c: var(--bench-2); }
.c-crypto { --c: var(--s-crypto); }
.c-actions { --c: var(--s-actions); }
.c-etf { --c: var(--s-etf); }
.c-portefeuille { --c: var(--accent); }
.tip { position: absolute; z-index: 6; top: 0; left: 0; pointer-events: none; min-width: 11rem; background: var(--surface); border: 1px solid var(--rule-2); border-radius: 6px; box-shadow: var(--shadow); padding: 0.6rem 0.75rem; font-size: 0.8125rem; opacity: 0; transition: opacity 100ms ease-out; }
.tip.on { opacity: 1; }
.tip-t { color: var(--ink-3); margin-bottom: 0.35rem; }
.tip-r { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.tip-r b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tip-r span:last-child { color: var(--ink-2); }
.empty { border: 1px dashed var(--rule-2); border-radius: 6px; padding: 1.5rem 1.25rem; color: var(--ink-2); max-width: 46rem; }
.empty strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.2rem; }

/* ------------------------------------------------------------ tableaux */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.tbl caption { text-align: left; color: var(--ink-3); font-size: 0.8125rem; padding-bottom: 0.4rem; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 0.8125rem; padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
.tbl td { padding: 0.72rem 1rem 0.72rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.tbl tbody th { color: var(--ink); font-size: inherit; font-weight: 400; white-space: normal; padding: 0.72rem 1rem 0.72rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .r { text-align: right; }
.tbl .name { display: flex; align-items: baseline; gap: 0.6rem; min-width: 11rem; }
.tbl .name b { font-weight: 600; }
.tbl .name small { display: block; color: var(--ink-3); font-size: 0.8125rem; font-weight: 400; }
.sw { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--c); flex: none; transform: translateY(-0.05em); }
@media (max-width: 40rem) { .tbl .opt { display: none; } .tbl td, .tbl th { padding-right: 0.6rem; } .tbl .name { min-width: 8.5rem; } }

/* ------------------------------------------------------------ poches */
.split { display: flex; gap: 2px; height: 8px; margin-bottom: 0.25rem; }
.split i { display: block; height: 100%; border-radius: 4px; background: var(--c); min-width: 4px; transition: flex-grow 300ms var(--ease); }
.poche { display: grid; gap: 1.1rem 2.5rem; padding-block: 1.75rem; border-bottom: 1px solid var(--rule); }
.poche:last-child { border-bottom: 0; padding-bottom: 0; }
.poche-id { display: flex; gap: 0.7rem; align-items: baseline; }
.poche-id h3 { font-size: 1.2rem; line-height: 1.2; }
.poche-id p { color: var(--ink-3); font-size: 0.875rem; margin-top: 0.15rem; }
.poche-val { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin-top: 0.9rem; }
.poche-val + p { margin-top: 0.3rem; color: var(--ink-2); font-size: 0.925rem; }
.poche .ledger dt, .poche .ledger dd { font-size: 0.925rem; }
.poche-how { color: var(--ink-2); font-size: 0.95rem; max-width: 60ch; }
.poche-sig { margin-top: 1rem; }
.poche-sig h4 { margin: 0 0 0.5rem; font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
.poche-sig p { font-size: 0.925rem; color: var(--ink-2); margin-top: 0.5rem; }
.meter { display: grid; grid-template-columns: minmax(6.5rem, 9rem) 1fr auto; align-items: center; gap: 0.8rem; padding-block: 0.32rem; font-size: 0.925rem; }
.meter .track { height: 6px; border-radius: 3px; background: color-mix(in oklch, var(--c) 20%, var(--bg)); overflow: hidden; }
.meter .fill { display: block; height: 100%; border-radius: 3px; background: var(--c); transition: width 300ms var(--ease); }
.meter .v { font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 5.5rem; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; }
.chips li { border: 1px solid var(--rule-2); border-radius: 4px; padding: 0.2rem 0.55rem; font-size: 0.875rem; }
@media (min-width: 62rem) { .poche { grid-template-columns: 1fr 1.25fr; } }

/* ------------------------------------------------------------ listes : ordres, journal, echeances */
.rows > li { display: grid; grid-template-columns: 5.6rem 1fr auto; gap: 0.15rem 1rem; padding-block: 0.8rem; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rows > li:first-child { border-top: 1px solid var(--rule-2); }
.rows time { color: var(--ink-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.rows .what { min-width: 0; }
.rows .what b { font-weight: 600; }
.rows .what small { display: block; color: var(--ink-3); font-size: 0.8125rem; }
.rows .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.rows .amt small { display: block; color: var(--ink-3); font-weight: 400; font-size: 0.8125rem; }
.side { display: inline-flex; align-items: center; gap: 0.35rem; }
.side svg { width: 0.95rem; height: 0.95rem; color: var(--ink-3); flex: none; transform: translateY(0.12em); }
.log > li { display: grid; grid-template-columns: 5.6rem 1fr; gap: 0.1rem 1rem; padding-block: 0.7rem; border-bottom: 1px solid var(--rule); }
.log > li:first-child { border-top: 1px solid var(--rule-2); }
.log time { color: var(--ink-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; padding-top: 0.15rem; }
.log p { color: var(--ink); font-size: 0.95rem; }
.log .who { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-3); font-size: 0.8125rem; margin-bottom: 0.1rem; }
@media (max-width: 30rem) { .rows > li { grid-template-columns: 1fr auto; } .rows time { grid-column: 1 / -1; } .log > li { grid-template-columns: 1fr; } }
.two { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 62rem) { .two { grid-template-columns: 1fr 1.35fr; align-items: start; } }

/* ------------------------------------------------------------ notes */
.notes { display: grid; gap: 0.75rem; max-width: 66ch; }
.notes li { position: relative; padding-left: 1.4rem; color: var(--ink-2); }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.7rem; height: 1px; background: var(--accent); }
.notes strong { color: var(--ink); font-weight: 600; }
.banner { display: none; margin-top: 1rem; border: 1px solid var(--bad); border-radius: 6px; padding: 0.7rem 1rem; font-size: 0.925rem; }
.banner.on { display: block; }

/* ------------------------------------------------------------ pied */
.foot { border-top: 1px solid var(--rule-2); margin-top: clamp(2rem, 6vw, 4rem); padding-block: clamp(2.5rem, 7vw, 5rem) 2rem; overflow: hidden; }
.foot-mark { font-family: var(--serif); font-variation-settings: "opsz" 144; font-weight: 250; font-size: clamp(3.2rem, 15.5vw, 13.5rem); line-height: 0.82; letter-spacing: -0.05em; white-space: nowrap; margin-left: -0.04em; color: var(--ink); }
.foot-mark span { color: var(--accent); }
.foot-grid { display: grid; gap: 1.5rem 3rem; margin-top: clamp(2rem, 5vw, 3.5rem); color: var(--ink-2); font-size: 0.925rem; }
.foot-grid p { max-width: 58ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.foot-nav a { display: inline-block; padding-block: 0.6rem; }
@media (min-width: 62rem) { .foot-grid { grid-template-columns: 2fr 1fr; align-items: end; } .foot-nav { justify-content: flex-end; } }

/* ------------------------------------------------------------ pages de texte */
.prose { max-width: 68ch; padding-block: clamp(2rem, 6vw, 4rem); }
.prose h1 { font-family: var(--serif); font-variation-settings: "opsz" 144; font-weight: 340; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.025em; line-height: 1; margin-bottom: 0.6rem; }
.prose h2 { font-size: 1.15rem; font-weight: 600; margin-top: 2.2rem; margin-bottom: 0.5rem; }
.prose p + p { margin-top: 0.8rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.prose ul li { position: relative; padding-left: 1.3rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.65rem; height: 1px; background: var(--accent); }

/* ------------------------------------------------------------ etats d'attente et mouvement */
.sk { display: inline-block; min-width: 4ch; border-radius: 4px; background: var(--wash); color: transparent !important; user-select: none; }
.sk * { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(12px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .sec::before { transform: scaleX(0); transition: transform 500ms var(--ease); }
  .js .sec.in::before { transform: scaleX(1); }
  .plot .ln.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 500ms var(--ease) forwards; }
  .plot .ln.draw.d2 { animation-delay: 90ms; }
  .plot .ln.draw.d3 { animation-delay: 180ms; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .live svg { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.35; } }
  .flash { animation: flash 400ms ease-out; }
  @keyframes flash { from { background: color-mix(in oklch, var(--accent) 22%, transparent); } to { background: transparent; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 0; transition: opacity 300ms ease-out; }
  .js .rv.in { opacity: 1; }
}
@media print { body::before { display: none; } .icon-btn, .seg, .more { display: none; } .js .rv { opacity: 1; transform: none; } }
