/* Pap’pote V2 — language status (v2/langues-statut.html, SPEC V3 B.16), restyled « Liquid Glass » (refonte v5,
   sub-lot D). Loaded after ds/fonts.css, ds/tokens.css and v2/tokens.css (--pp-*). Self-contained: the
   « Autocollants » layers (fresque/*, learn/learn.css) are no longer loaded by this page. Same ids and classes
   (content/langues-statut.js unchanged). Tokens --pp-* only: no literal colour, no forced priority, no inline style
   (the bars' width is the --value custom property the script sets through the CSSOM), no text in the CSS.
   Apple principles: clarity (one honest figure — complete languages out of all — is the focal point; then a grouped
   list, one row per language), deference (matte paper, hairlines, plain figures in tabular nums; no decoration, no
   mascot: a public, factual page), depth (glass only on the floating top bar, opaque without blur when transparency
   is reduced, in large text and in forced colours). Colour only carries meaning and never alone: « Complète » is a
   green pill with a check, « Bêta » a dashed pill (not a fault), the bars green with their figure beside them.
   States: loading (#ls-list aria-busy: skeleton rows and the visible « on compte les mots » line), error (the system
   card with « Réessayer », inserted by the script; the empty list and the legend give way), success (the figure, the
   yardsticks, the rows), empty (no language at all: a calm card with a neutral mark, the figure stays hidden).
   The loading line leaves the DOM once the request settles.
   Page width (chantier « largeur de page », 16/10/2026): the container is --pp-container-max-width (v2/tokens.css) with
   --pp-container-pad; below 1024 px the page is exactly as before (today's measures and top bar). Title | figure stay
   side by side from 900 px; the one-line table (name | A1 | A2 | Origins | exams under the shared header) stays from 900
   to 1279 px; from 1280 px the languages become a grid of self-labelled cards (3 columns, 4 from 1920 px, one fewer
   in large text) — each card names its own bars (A1, A2, Origins) and says « Examens préparés : n », so the shared
   header gives way. The card keeps the row's type sizes (name in Headline, figures in Footnote, the same 6 px bars) so
   the switch at 1280 px reads as the same ledger folded into cards. */

/* ---------- 1. frame ---------- */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
body.ls { position: relative; isolation: isolate; margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: clip; background: var(--pp-bg); color: var(--pp-text); font-family: var(--pp-font-body); font-size: var(--pp-t-body); line-height: var(--pp-lh-body); letter-spacing: var(--pp-track-body); -webkit-font-smoothing: antialiased; }
.ls *, .ls *::before, .ls *::after { box-sizing: border-box; }
.ls p, .ls h1, .ls h2, .ls ul { margin: 0; }
.ls img { max-width: 100%; }
:where(.ls) button { font: inherit; letter-spacing: inherit; }
.ls :focus-visible { outline: none; box-shadow: var(--pp-focus-ring); }
.ls h1, .ls h2 { hyphens: manual; overflow-wrap: break-word; text-wrap: balance; }
.ls .fq-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ls .fq-ic { display: inline-block; width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ls .fq-skip:focus { position: fixed; top: calc(var(--pp-s-3) + var(--pp-safe-top)); inset-inline-start: var(--pp-s-3); z-index: 60; width: auto; height: auto; margin: 0; clip: auto; display: inline-flex; align-items: center; min-height: var(--pp-target); padding: 0 var(--pp-s-5); border-radius: var(--pp-radius-ctl); background: var(--pp-action-bg); color: var(--pp-action-text); font-weight: 600; text-decoration: none; box-shadow: var(--pp-focus-ring); }

/* ---------- 2. the floating top bar (glass): wordmark + the theme switch ---------- */
.ls .lr-bar { position: sticky; top: calc(var(--pp-s-2) + var(--pp-safe-top)); z-index: 20; display: flex; align-items: center; gap: var(--pp-s-2); width: min(calc(100% - 2 * var(--pp-s-3)), 48rem); min-height: calc(var(--pp-target) + var(--pp-s-2)); margin: calc(var(--pp-s-2) + var(--pp-safe-top)) auto 0; padding: var(--pp-s-1) var(--pp-s-1) var(--pp-s-1) var(--pp-s-3); border: 1px solid var(--pp-glass-border); border-radius: var(--pp-r-pill); background: var(--pp-glass-solid); box-shadow: var(--pp-glass-rim), var(--pp-shadow-float); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .ls .lr-bar { background: var(--pp-glass-bg); -webkit-backdrop-filter: blur(var(--pp-blur-bar)) saturate(var(--pp-glass-saturate)); backdrop-filter: blur(var(--pp-blur-bar)) saturate(var(--pp-glass-saturate)); }
}
@media (min-width: 900px) { .ls .lr-bar { width: min(calc(100% - 2 * var(--pp-s-6)), 64rem); } }
/* from 1024 px: its outer edges on the content's edges (inside the container padding), capped or not */
@media (min-width: 1024px) { .ls .lr-bar { width: min(calc(100% - 2 * var(--pp-container-pad)), calc(var(--pp-container-max-width) - 2 * var(--pp-container-pad))); } }
.ls .fq-appbar-logo { display: inline-flex; align-items: center; min-height: var(--pp-target); padding: 0 var(--pp-s-2); border-radius: var(--pp-r-pill); }
.ls .fq-appbar-logo img { display: block; width: 88px; height: auto; }
.ls .fq-appbar-tools { display: flex; margin-inline-start: auto; }
.ls .lr-theme { display: grid; place-items: center; width: var(--pp-target); height: var(--pp-target); padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pp-text); cursor: var(--pp-cursor-pointer, var(--ds-cursor-pointer, pointer)); }
.ls .lr-theme:hover { background: var(--pp-hover); }
.ls .lr-theme .lr-ic-sun, .ls .lr-theme[aria-pressed="true"] .lr-ic-moon { display: none; }
.ls .lr-theme[aria-pressed="true"] .lr-ic-sun { display: inline-block; }

/* ---------- 3. the page container: one calm column below 900 px (today's measure), the full container from 900 ---------- */
.ls-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pp-s-6); width: min(100%, var(--pp-container-max-width)); max-width: 44rem; margin: 0 auto; padding: var(--pp-s-7) calc(var(--pp-container-pad) + var(--pp-safe-right)) calc(var(--pp-s-9) + var(--pp-safe-bottom)) calc(var(--pp-container-pad) + var(--pp-safe-left)); }
@media (min-width: 768px) { .ls-main { max-width: 48rem; padding-top: var(--pp-s-8); } }
@media (min-width: 900px) { .ls-main { max-width: none; } }
.ls-main > * { min-width: 0; }

/* ---------- 4. title and the one figure ---------- */
.ls-top { display: grid; gap: var(--pp-s-6); align-items: end; }
@media (min-width: 900px) { .ls-top { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--pp-s-8); } }
.ls-title { display: grid; gap: var(--pp-s-2); min-width: 0; }
.ls .lr-kicker { color: var(--pp-text-2); font-size: var(--pp-t-subhead); font-weight: 600; line-height: var(--pp-lh-small); letter-spacing: var(--pp-track-small); }
.ls .lr-h1 { font-family: var(--pp-font-title); font-weight: var(--pp-title-weight); font-size: calc(var(--pp-t-large) * var(--pp-title-boost)); line-height: var(--pp-lh-large); letter-spacing: var(--pp-track-large); }
@media (min-width: 768px) { .ls .lr-h1 { font-size: calc(var(--pp-t-large) * 1.25 * var(--pp-title-boost)); line-height: 1.12; } }
.ls .lr-h1 em { font: inherit; font-style: normal; color: var(--pp-accent); }
.ls .lr-lead { max-width: 46ch; margin-top: var(--pp-s-2); color: var(--pp-text-2); font-size: var(--pp-t-title3); line-height: var(--pp-lh-title); }
.ls-board { min-width: 0; }
.ls-board:not(:has(> :not([hidden]))) { display: none; }
.ls-count { display: grid; justify-items: start; gap: var(--pp-s-1); padding: var(--pp-s-5); border: 1px solid var(--pp-line); border-radius: var(--pp-r-xl); background: var(--pp-surface); box-shadow: var(--pp-shadow-float); }
.ls-count-n { font-family: var(--pp-font-title); font-weight: var(--pp-title-weight); font-size: calc(var(--pp-t-large) * 2 * var(--pp-title-boost)); line-height: 1; letter-spacing: var(--pp-track-large); font-variant-numeric: tabular-nums; }
.ls-count-l { color: var(--pp-text-2); font-size: var(--pp-t-subhead); font-weight: 600; line-height: var(--pp-lh-small); }
/* the yardsticks: a footnote on a sunk plate */
.ls-how { max-width: 72ch; padding: var(--pp-s-3) var(--pp-s-4); border-radius: var(--pp-r-md); background: var(--pp-surface-sunk); color: var(--pp-text-2); font-size: var(--pp-t-footnote); line-height: var(--pp-lh-small); }
.ls-how:empty { display: none; }

/* ---------- 5. the languages: a grouped list ---------- */
.ls-ledger { display: grid; gap: var(--pp-s-2); min-width: 0; }
.ls-list { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden; border: 1px solid var(--pp-line); border-radius: var(--pp-radius-card); background: var(--pp-surface); list-style: none; }
.ls-list:empty { display: none; }
.ls-list > li + li { box-shadow: inset 0 1px 0 var(--pp-line); }
.ls-legend { display: none; }
/* loading: skeleton rows, and the line said aloud is shown too */
.ls-skel { display: grid; gap: var(--pp-s-3); padding: var(--pp-s-4); }
.ls .fq-skel { display: block; height: .9em; border-radius: var(--pp-r-xs); background: linear-gradient(90deg, var(--pp-press), var(--pp-hover) 50%, var(--pp-press)); background-size: 200% 100%; }
.ls .fq-skel--title { width: 50%; height: 1.4em; }
.ls .fq-skel--line { width: 90%; }
.ls .fq-skel--short { width: 40%; }
.ls-ledger:has(#ls-list[aria-busy="true"]) #ls-loading { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; order: -1; padding-inline: var(--pp-s-1); color: var(--pp-text-2); font-size: var(--pp-t-subhead); font-weight: 600; line-height: var(--pp-lh-small); }

/* one language: code, name, state; three bars; the exams; what is missing */
.ls-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pp-s-3) var(--pp-s-4); align-items: center; min-width: 0; padding: var(--pp-s-4); }
.ls-name { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: var(--pp-s-3); color: var(--pp-text); font-family: var(--pp-font-title); font-weight: 600; font-size: var(--pp-t-title3); line-height: var(--pp-lh-title); letter-spacing: var(--pp-track-title); overflow-wrap: anywhere; }
.ls-name .fq-flag { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--pp-surface-sunk); color: var(--pp-text); font-family: var(--pp-font-mono); font-size: var(--pp-t-footnote); font-weight: 600; letter-spacing: .02em; }
/* the state (« Complète », « Bêta »): secondary text at the end of the name's row, outside the heading, a tick for a
   complete language; no pill glued to the name (vibe-code audit, 16/10/2026, C3). Same grid row as the name, which
   keeps room for it on its end side. */
.ls-name { grid-row: 1; padding-inline-end: calc(var(--pp-t-footnote) * 7); }
.ls-state { grid-column: 1 / -1; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; gap: var(--pp-s-1); margin: 0; color: var(--pp-text-2); font-family: var(--pp-font-body); font-size: var(--pp-t-footnote); font-weight: 600; line-height: var(--pp-lh-small); letter-spacing: 0; white-space: nowrap; }
.ls-card[data-state="complete"] .ls-state { color: var(--pp-ok); }
.ls-card[data-state="complete"] .ls-state::before { content: ""; width: 9px; height: 5px; border-inline-start: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.ls-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l n" "p p"; gap: var(--pp-s-1) var(--pp-s-2); align-items: baseline; min-width: 0; font-size: var(--pp-t-footnote); line-height: var(--pp-lh-small); }
.ls-bar-l { grid-area: l; color: var(--pp-text-2); font-weight: 600; overflow-wrap: anywhere; }
.ls-bar .ds-num { grid-area: n; color: var(--pp-text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ls-bar .ds-progress { grid-area: p; position: relative; height: 6px; overflow: hidden; border-radius: var(--pp-r-pill); background: var(--pp-press); }
.ls-bar .ds-progress > span { display: block; width: var(--value, 0%); height: 100%; border-radius: inherit; background: var(--pp-ok); }
.ls-exams { grid-column: 1 / -1; color: var(--pp-text-2); font-size: var(--pp-t-subhead); font-weight: 600; line-height: var(--pp-lh-small); }
.ls-exams-n { display: none; }
.ls-missing { grid-column: 1 / -1; max-width: 70ch; color: var(--pp-text-2); font-size: var(--pp-t-footnote); line-height: var(--pp-lh-small); }
/* error: the script's system card, one action */
.ls .fq-state { display: grid; justify-items: start; gap: var(--pp-s-3); padding: var(--pp-s-6) var(--pp-s-5); border: 1px solid var(--pp-line); border-radius: var(--pp-r-xl); background: var(--pp-surface); }
.ls .fq-state-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--pp-err-bg); color: var(--pp-err); }
.ls .fq-state-mark .fq-ic { width: 24px; height: 24px; }
.ls .fq-state-title { font-family: var(--pp-font-title); font-size: var(--pp-t-title3); font-weight: 600; line-height: var(--pp-lh-title); letter-spacing: var(--pp-track-title); }
.ls .fq-state-title em { font: inherit; font-style: normal; }
.ls .fq-state-text { max-width: 48ch; color: var(--pp-text-2); }
.ls .fq-state .fq-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--pp-s-2); min-height: var(--pp-target); margin-top: var(--pp-s-2); padding: 0 var(--pp-s-5); border: 0; border-radius: var(--pp-radius-ctl); background: var(--pp-action-bg); color: var(--pp-action-text); box-shadow: var(--pp-gloss); font-weight: 600; cursor: var(--pp-cursor-pointer, var(--ds-cursor-pointer, pointer)); }
.ls .fq-state .fq-btn:hover { background: var(--pp-action-hover); }
.ls .fq-state .fq-btn:focus-visible { box-shadow: var(--pp-gloss), var(--pp-focus-ring); }
.ls-ledger:has(#ls-list:empty) .ls-legend { display: none; }
/* from 1024 px the state card keeps a reading measure instead of the container's width */
@media (min-width: 1024px) { .ls .fq-state { max-width: var(--pp-measure); } }
/* empty (no language at all): the same card, calm — a neutral mark, no action (product fixes, 16/10/2026) */
.ls .ls-empty .fq-state-mark { background: var(--pp-surface-sunk); color: var(--pp-text-2); }

/* wide (900 to 1279 px): name | A1 | A2 | Origins | exams, the missing line under; the legend names the columns */
@media (min-width: 900px) and (max-width: 1279.98px) {
  .ls-legend, .ls-card { grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr)) minmax(0, .7fr); column-gap: var(--pp-s-6); }
  .ls-legend { display: grid; padding: 0 var(--pp-s-5); color: var(--pp-text-2); font-size: var(--pp-t-footnote); font-weight: 600; line-height: var(--pp-lh-small); }
  .ls-legend > :last-child { text-align: end; }
  .ls-card { row-gap: var(--pp-s-1); padding: var(--pp-s-3) var(--pp-s-5); min-height: 64px; }
  .ls-name { grid-column: 1; grid-row: 1; font-size: var(--pp-t-headline); }
  .ls-state { grid-column: 1; }
  .ls-bar { grid-row: 1; grid-template-areas: "p n"; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .ls-bar-l, .ls-exams-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ls-exams { grid-column: 5; grid-row: 1; color: var(--pp-text); font-size: var(--pp-t-headline); text-align: end; font-variant-numeric: tabular-nums; }
  .ls-exams-n { display: inline; }
  .ls-missing { grid-column: 1 / -1; grid-row: 2; padding-inline-start: calc(40px + var(--pp-s-3)); }
}
/* from 1280 px: a grid of self-labelled cards (3 columns, 4 from 1920 px). Each card is the phone's card — name and
   state, three labelled bars, « Examens préparés : n », what is missing — on its own surface; the shared header (the
   legend) stays hidden (base rule). Same type sizes as the one-line row (name in Headline, figures in Footnote). */
@media (min-width: 1280px) {
  .ls-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pp-s-4); overflow: visible; border: 0; border-radius: 0; background: none; }
  .ls-list > li + li { box-shadow: none; }
  .ls-list > li { min-width: 0; border: 1px solid var(--pp-line); border-radius: var(--pp-radius-card); background: var(--pp-surface); }
  .ls-card { align-content: start; padding: var(--pp-s-4) var(--pp-s-5) var(--pp-s-5); }
  .ls-skel { padding-inline: var(--pp-s-5); }
  .ls-name { font-size: var(--pp-t-headline); }
}
@media (min-width: 1920px) { .ls-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* large text: one column fewer (2, then 3 from 1920 px), so « Origins » and its figure keep one line in each card */
@media (min-width: 1280px) { [data-a11y="large"] .ls-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1920px) { [data-a11y="large"] .ls-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 6. motion: the skeleton sweep only ---------- */
@keyframes ls-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: no-preference) { :root:not([data-a11y="large"]) .ls .fq-skel { animation: ls-shimmer 1.4s linear infinite; } }

/* ---------- 7. reduced transparency, large text, forced colours ---------- */
@media (prefers-reduced-transparency: reduce) { .ls .lr-bar { background: var(--pp-glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
[data-a11y="large"] .ls .lr-bar { background: var(--pp-glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (forced-colors: active) {
  .ls .lr-bar { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ls :focus-visible { outline: 2px solid CanvasText; outline-offset: 2px; }
  .ls-count, .ls-list, .ls-how, .ls .fq-state, .ls-name .fq-flag, .ls-bar .ds-progress { border: 1px solid CanvasText; }
  .ls-bar .ds-progress > span { background: Highlight; forced-color-adjust: none; }
  .ls .fq-state .fq-btn { border: 2px solid ButtonText; }
}
@media (forced-colors: active) and (min-width: 1280px) { .ls-list { border: 0; } } /* the cards carry their own border */
@media print { .ls .lr-bar { display: none; } }

/* the hidden attribute always wins (keep this last) */
.ls [hidden]:not(#pp-none) { display: none; } /* :not(#…) lifts it above every class rule of the page */
