/* Figures of the lessons of parcours 1 (SVG diagrams, photos, screenshots).
   The SVG only carries classes; every colour comes from the --f-* variables below, so the figures follow the
   light/dark theme. The static lesson pages (formation/outils/gen_p1.py) reuse the rules from "Figure rules"
   on, with their own variable mapping. Not part of the Tailwind build: no rebuild needed. */
.fig {
  --f-ink: var(--ink); --f-soft: var(--ink-soft); --f-line: var(--line-strong);
  --f-surface: var(--surface-2); --f-acc: var(--brand); --f-accsoft: var(--brand-soft); --f-onacc: var(--on-brand);
}
/* Figure rules */
.fig { margin: 1.25rem 0; min-width: 0; }
.fig svg.fsvg { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; font-family: inherit; }
.fig .box { fill: var(--f-surface); stroke: var(--f-line); stroke-width: 1.3; }
.fig .acc { fill: var(--f-accsoft); stroke: var(--f-acc); stroke-width: 1.5; }
.fig .dash { stroke-dasharray: 5 4; }
.fig .t, .fig .tb, .fig .tbs, .fig .tn, .fig .ts, .fig .bt { stroke: none; }
.fig .t { fill: var(--f-ink); font-size: 15px; }
.fig .tb { fill: var(--f-ink); font-size: 15px; font-weight: 600; }
.fig .tbs { fill: var(--f-ink); font-size: 13px; font-weight: 600; }
.fig .tn { fill: var(--f-ink); font-size: 13px; }
.fig .ts { fill: var(--f-soft); font-size: 13px; }
.fig .bt { fill: var(--f-onacc); font-size: 14px; font-weight: 600; }
.fig .bd { fill: var(--f-acc); stroke: none; }
.fig .bn { fill: var(--f-onacc); font-size: 13px; font-weight: 700; stroke: none; }
.fig .ln { stroke: var(--f-soft); stroke-width: 1.7; fill: none; }
.fig .ah { fill: var(--f-soft); stroke: none; }
.fig .bar { fill: var(--f-surface); stroke: var(--f-line); stroke-width: 1; }
.fig .barfill { fill: var(--f-acc); stroke: none; }
.fig .barfill.soft { fill: var(--f-accsoft); stroke: var(--f-acc); stroke-width: 1.2; }
.fig figcaption { margin-top: 0.55rem; font-size: 0.88rem; line-height: 1.5; color: var(--f-soft); text-align: center; }
.fig .credit { display: block; margin-top: 0.15rem; font-size: 0.76rem; opacity: 0.85; }
.fig.photo img, .fig.capture img { display: block; width: auto; height: auto; max-width: 100%; max-height: 22rem; margin-inline: auto; border-radius: 8px; border: 1px solid var(--f-line); }
.fig.capture.todo .ph { display: grid; gap: 0.3rem; place-items: center; padding: 2.4rem 1rem; text-align: center; border: 2px dashed var(--f-line); border-radius: 8px; background: var(--f-surface); color: var(--f-soft); }
.fig.capture.todo .ph span { font-weight: 600; color: var(--f-ink); }
.fig.capture.todo .ph em { font-style: normal; font-size: 0.9rem; }
