/* RGAA Checklist, Kokomo. Style léger : fond clair, bordures fines, touches jaune et vert Kokomo. */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f3f2ee;
  --line: #e6e3db;
  --line-strong: #8a877f;
  --ink: #111111;
  --muted: #5c5b57;
  --faint: #6b6a65;
  --green: #0e5a45;
  --green-soft: #e6f0eb;
  --red: #b42318;
  --red-soft: #fbeae7;
  --amber: #7a4e00;
  --yellow: #fcbe10;
  --yellow-hover: #f2b000;

  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-s: 0.875rem;
  --text-m: 1rem;
  --text-l: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --text-h1: clamp(2.5rem, 1.5rem + 3.5vw, 4.25rem);
  --text-h2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --text-score: clamp(3rem, 2.5rem + 2vw, 4.5rem);

  --gutter: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  --wrap: 1120px;
  --space-section: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);

  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 150ms;
  --normal: 280ms;
  --shadow-pop: 0 24px 60px -24px rgb(17 17 17 / 0.28), 0 2px 6px rgb(17 17 17 / 0.05);
}

*, *::before, *::after { box-sizing: border-box; }

[hidden]:not([hidden="until-found"]) { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-m);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; outline: none; }

h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; }
fieldset { padding: 0; border: 0; min-inline-size: 0; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* Titres ciblés par programme (changement de vue, lien d'évitement) : pas de cadre, ce ne sont pas des contrôles. */
main:focus, h1[tabindex="-1"]:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1rem; height: 1rem; flex: none; }

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--fast) ease, box-shadow var(--fast) ease, transform var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-hover); box-shadow: 0 6px 18px -8px rgb(122 78 0 / 0.55); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-danger-solid { background: var(--red); color: #fff; }
.btn-danger-solid:hover { background: #971d13; }

.btn-text {
  padding: 0.25rem 0.125rem;
  border: 0;
  background: none;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Barre du haut ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-inner { display: flex; align-items: center; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.875rem; text-decoration: none; border-radius: var(--radius-s); }
.brand img { width: 108px; height: auto; }
.brand-product { padding-left: 0.875rem; border-left: 1px solid var(--line); font-size: var(--text-s); font-weight: 600; color: var(--muted); }

/* ---------- Titres ---------- */
.hero { padding-top: clamp(2rem, 1rem + 3vw, 4rem); padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.hero h1, .folder-title h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hl { background: linear-gradient(transparent 70%, var(--yellow) 70%, var(--yellow) 88%, transparent 88%); padding-inline: 0.04em; }
.lede { max-width: 52ch; margin-top: 1rem; font-size: var(--text-l); color: var(--muted); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
}
.section-head h2, .summary h2 { font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }

/* ---------- Cartes et formulaires ---------- */
.card { padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }

.form-card { margin-bottom: 1.5rem; animation: pop-in var(--normal) var(--ease); }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.field { display: grid; gap: 0.375rem; align-content: start; }
.field label { font-size: var(--text-s); font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="url"], input[type="search"], textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.9375rem;
}
textarea { resize: vertical; line-height: 1.5; }
input::placeholder { color: var(--faint); opacity: 1; }
input:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, textarea:focus-visible { outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.field-error { margin-top: 0.75rem; font-size: var(--text-s); font-weight: 600; color: var(--red); }
.field-error::before { content: "× "; }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Accueil : dossiers ---------- */
.load-state:empty { display: none; }
.load-state { color: var(--muted); }

.folder-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.folder-card {
  display: grid;
  gap: 0.25rem;
  height: 100%;
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  text-decoration: none;
  transition: border-color var(--fast) ease, box-shadow var(--normal) var(--ease), transform var(--normal) var(--ease);
}
.folder-card:hover { border-color: var(--line-strong); box-shadow: 0 16px 36px -24px rgb(17 17 17 / 0.35); transform: translateY(-2px); }
.folder-card:focus-visible { outline-offset: 2px; }
.folder-card-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.folder-card-url { font-size: var(--text-s); color: var(--muted); overflow-wrap: anywhere; }
.folder-card-progress { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.folder-card-progress .bar { flex: 1; margin: 0; }
.folder-card-pct { font-weight: 600; font-variant-numeric: tabular-nums; }
.folder-card-meta { font-size: var(--text-s); color: var(--muted); }
.folder-card-fails { color: var(--red); font-weight: 600; }

.empty {
  display: grid;
  gap: 0.25rem;
  padding: 2rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-l);
  color: var(--muted);
}
.empty strong { color: var(--ink); }

/* ---------- Dossier : en-tête ---------- */
.folder-head { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.back-link {
  display: inline-flex;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: 4px;
}
.back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.folder-title-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.folder-title { min-width: 0; }
.folder-url { margin-top: 0.5rem; color: var(--muted); overflow-wrap: anywhere; }
.folder-url a { color: var(--ink); text-underline-offset: 3px; }
.print-date { display: none; }
.folder-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.save-state { min-height: 1.5em; margin: 1rem 0 1.5rem; font-size: var(--text-s); color: var(--muted); }
.save-state[data-state="saved"]::before { content: "✓ "; color: var(--green); font-weight: 700; }
.save-state[data-state="error"] { color: var(--red); font-weight: 600; }

/* ---------- Test d'une page ---------- */
.test-section { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.test-card h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.test-help { max-width: 72ch; margin-top: 0.25rem; font-size: var(--text-s); color: var(--muted); }
.test-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.75rem; margin-top: 1.25rem; }
.test-form .btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
.test-status:empty { display: none; }
.test-status { margin-top: 0.875rem; font-size: var(--text-s); font-weight: 600; }
.test-details { margin-top: 1rem; padding-top: 0.875rem; border-top: 1px solid var(--line); font-size: var(--text-s); }
.test-details summary { width: fit-content; font-weight: 600; cursor: pointer; border-radius: 4px; }
.check-results { list-style: none; margin-top: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); }
.check-result { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.125rem 0.5rem; padding: 0.625rem 0.875rem; }
.check-result + .check-result { border-top: 1px solid var(--line); }
.check-glyph { font-weight: 700; color: var(--faint); }
.check-result[data-outcome="fail"] .check-glyph { color: var(--red); }
.check-result[data-outcome="pass"] .check-glyph { color: var(--green); }
.check-result[data-outcome="warn"] .check-glyph { color: var(--amber); }
.check-label { font-weight: 600; }
.check-outcome { color: var(--muted); }
.check-message, .check-samples { grid-column: 2; color: var(--muted); overflow-wrap: anywhere; }
.check-samples { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: var(--text-xs); }

/* ---------- État des lieux ---------- */
.summary h2 { margin-bottom: 1rem; }
.summary-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem 2.5rem; align-items: center; }
.card-label { font-size: var(--text-s); font-weight: 600; color: var(--muted); }
.score { margin-top: 0.5rem; font-size: var(--text-score); font-weight: 600; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.score-unit { margin-left: 0.08em; font-size: 0.45em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card-foot { margin-top: 0.75rem; font-size: var(--text-s); color: var(--muted); }

.bar { position: relative; display: block; height: 8px; margin-top: 1rem; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.bar-seg { position: absolute; inset: 0; transform-origin: left center; transition: transform 520ms var(--ease); }
.bar-pass { background: var(--green); transform: scaleX(var(--pass, 0)); }
.bar-fail { background: var(--red); transform: translateX(calc(var(--pass, 0) * 100%)) scaleX(var(--fail, 0)); }

.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.count { padding: 0.875rem 1rem; border-radius: var(--radius); background: var(--surface-2); }
.count dt { display: flex; align-items: center; gap: 0.375rem; font-size: var(--text-s); color: var(--muted); }
.count dd { margin-top: 0.125rem; font-size: 1.75rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.count-glyph { font-weight: 700; }
.count-pass .count-glyph { color: var(--green); }
.count-fail .count-glyph { color: var(--red); font-size: 1.2em; line-height: 1; }
.count-pending .count-glyph { color: var(--ink); }

.issues-block { margin-top: 1.75rem; }
.issues-block h3 { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 1.125rem; font-weight: 700; }
.issues-count { font-size: var(--text-s); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.issues { list-style: none; display: grid; gap: 0.5rem; }
.issue { padding: 0.875rem 1.125rem; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); background: var(--surface); break-inside: avoid; }
.issue-title { font-weight: 600; }
.issue-meta { font-size: var(--text-s); color: var(--muted); }
.issue-note { margin-top: 0.375rem; font-size: var(--text-s); white-space: pre-line; }
.issue-auto { margin-top: 0.25rem; font-size: var(--text-s); color: var(--muted); overflow-wrap: anywhere; }
.empty-note { color: var(--muted); }
.disclaimer { margin-top: 1.25rem; font-size: var(--text-xs); color: var(--faint); }

/* ---------- Checklist ---------- */
.checklist { margin-top: var(--space-section); }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--text-s); color: var(--muted); }
.g-pass { color: var(--green); font-weight: 700; }
.g-fail { color: var(--red); font-weight: 700; }
.g-pending { color: var(--ink); font-weight: 700; }
.g-na { color: var(--faint); font-weight: 700; }

.search { display: grid; gap: 0.375rem; max-width: 420px; }
.search label { font-size: var(--text-s); font-weight: 600; }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 2.25rem; }
.results-count { min-height: 1.5em; margin: 0.5rem 0 0.75rem; font-size: var(--text-s); color: var(--muted); }

.categories { display: grid; gap: 0.5rem; }
.cat { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: clip; }
.cat-heading { font-size: inherit; font-weight: inherit; }
.cat-toggle {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 60px;
  padding: 0.75rem 1.25rem;
  border: 0;
  background: none;
  text-align: left;
  transition: background-color var(--fast) ease;
}
.cat-toggle:hover { background: var(--surface-2); }
.cat-toggle:focus-visible { outline-offset: -3px; border-radius: 14px; }
.cat-toggle .icon { color: var(--muted); transition: transform var(--fast) var(--ease); }
.cat-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.cat-num { font-size: var(--text-s); font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.cat-title { font-size: 1.0625rem; font-weight: 600; }
.cat-summary { display: inline-flex; align-items: center; gap: 0.625rem; font-size: var(--text-s); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat-count b { font-weight: 600; color: var(--ink); }
.cat-fails { padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: var(--text-xs); font-weight: 700; }

.cat-panel:not([hidden]) .crit-list { animation: pop-in var(--normal) var(--ease); }
.crit-list { list-style: none; border-top: 1px solid var(--line); }

.crit {
  --stripe: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "title status note" "panel panel panel";
  align-items: center;
  column-gap: 1rem;
  padding: 0.625rem 1.25rem 0.625rem 1.5rem;
  box-shadow: inset 3px 0 0 var(--stripe);
}
.crit + .crit { border-top: 1px solid var(--line); }
.crit[data-status="pass"] { --stripe: var(--green); }
.crit[data-status="fail"] { --stripe: var(--red); }
.crit[data-status="na"] { --stripe: var(--line); }
.crit[data-status="na"] .crit-title { color: var(--muted); }
.crit-main { grid-area: title; min-width: 0; }
.crit-title { font-size: 0.96875rem; font-weight: 500; line-height: 1.4; }
.crit-auto { margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.crit-auto b { font-weight: 600; }
.crit-auto[data-outcome="fail"] b { color: var(--red); }
.crit-auto[data-outcome="pass"] b { color: var(--green); }
.crit-auto[data-outcome="warn"] b { color: var(--amber); }

.status { grid-area: status; display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.status label { position: relative; display: flex; }
.status input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.status-glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--faint);
  transition: background-color var(--fast) ease, color var(--fast) ease, transform var(--fast) var(--ease);
}
.status-fail .status-glyph { font-size: 1.45rem; line-height: 1; }
.status label:hover .status-glyph { background: var(--surface-2); color: var(--ink); }
.status input:active + .status-glyph { transform: scale(0.92); }
.status input:focus-visible + .status-glyph { outline: 2px solid var(--ink); outline-offset: 1px; }
.status-pending input:checked + .status-glyph { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.status-pass input:checked + .status-glyph { background: var(--green); color: #fff; }
.status-fail input:checked + .status-glyph { background: var(--red); color: #fff; }
.status-na input:checked + .status-glyph { background: var(--muted); color: #fff; }

.note-toggle {
  grid-area: note;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 36px;
  padding: 0 0.625rem;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.note-toggle:hover, .note-toggle[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.note-toggle[data-has-note] { color: var(--ink); font-weight: 600; }
.note-toggle[data-has-note]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px var(--amber); }
.note { grid-area: panel; display: grid; gap: 0.3rem; padding: 0.5rem 0 0.25rem; }
.note label { font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
.note textarea { min-height: 64px; font-size: var(--text-s); }

/* ---------- Pied de page, toast, modale ---------- */
.footer { margin-top: var(--space-section); border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.5rem; padding-block: 1.5rem; font-size: var(--text-s); color: var(--muted); }
.footer-brand { color: var(--ink); margin-right: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 60;
  max-width: min(520px, calc(100vw - 2rem));
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: var(--text-s);
  font-weight: 500;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity var(--normal) var(--ease), transform var(--normal) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast[data-tone="error"] { background: var(--red); }

.dialog {
  width: min(460px, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}
.dialog[open] { animation: pop-in var(--normal) var(--ease); }
.dialog::backdrop { background: rgb(17 17 17 / 0.36); }
.dialog form { padding: 1.5rem; }
.dialog h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.dialog p { margin-top: 0.5rem; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .summary-card { grid-template-columns: 1fr; }
  .form-fields { grid-template-columns: 1fr; }
  .test-form { grid-template-columns: 1fr; }
  .test-form .btn { justify-self: start; }
}

@media (max-width: 640px) {
  .brand-product { display: none; }
  .folder-title-row { align-items: flex-start; }
  .cat-toggle { grid-template-columns: 2rem minmax(0, 1fr) 16px; padding-inline: 1rem; }
  .cat-summary { grid-column: 2; grid-row: 2; }
  .cat-toggle .icon { grid-column: 3; grid-row: 1; }
  .crit {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title title" "status note" "panel panel";
    row-gap: 0.5rem;
    padding: 0.875rem 1rem 0.875rem 1.125rem;
  }
  .status-glyph { width: 44px; height: 40px; }
  .note-toggle { min-width: 44px; min-height: 44px; justify-content: center; }
  .note-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .note-toggle .icon { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .status input:checked + .status-glyph { outline: 2px solid CanvasText; }
  .bar { border: 1px solid CanvasText; }
}

/* ---------- Impression : l'état des lieux du dossier ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { display: block; background: #fff; font-size: 10pt; }
  .skip-link, .footer, .toast, dialog, .back-link, .folder-actions, .save-state, .form-card, .test-section, .checklist { display: none !important; }
  .topbar { border: 0; margin-bottom: 1.5rem; }
  .topbar-inner { min-height: 0; padding: 0; }
  .wrap { padding-inline: 0; max-width: none; }
  .folder-head { padding-top: 0; }
  .folder-title h1 { font-size: 24pt; }
  .print-date { display: block; margin-top: 0.25rem; color: var(--muted); }
  .folder-url a::after { content: " (" attr(href) ")"; }
  .folder-url a span { display: none; }
  .summary { margin-top: 1rem; }
  .summary-card { grid-template-columns: 1fr 1.2fr; }
  .issue { padding: 0.5rem 0.75rem; }
}
