/* Compléments propres au serveur : formulaires, boutons, pages de connexion. */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth { width: min(400px, 100%); display: grid; gap: 18px; justify-items: center; }
.auth-card { width: 100%; display: grid; gap: 14px; padding: 24px; }
.auth-card h1 { font-size: 22px; }
/* Champs de formulaire : une seule apparence pour tous les écrans (hauteur, bordure, focus, flèche des listes, cases). */
:root {
  --field-border: color-mix(in srgb, var(--line) 55%, var(--muted));
  --field-hover: color-mix(in srgb, var(--line) 25%, var(--muted));
  --field-ring: color-mix(in srgb, var(--brand) 22%, transparent);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235d6676' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238d97a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230a0c10' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=url], select, textarea {
  -webkit-appearance: none; appearance: none;
  font: inherit; font-size: 14px; font-weight: 400; letter-spacing: normal; color: var(--fg);
  background-color: var(--surface); border: 1px solid var(--field-border); border-radius: 10px;
  min-height: 40px; padding: 0 12px; width: 100%; min-width: 0;
  box-shadow: 0 1px 2px rgb(15 29 43 / .05);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--field-hover); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--field-ring); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input:disabled, select:disabled, textarea:disabled { background-color: var(--bg); color: var(--muted); cursor: not-allowed; box-shadow: none; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--fail); }
input:user-invalid:focus-visible, textarea:user-invalid:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--fail) 22%, transparent); }
select {
  cursor: pointer; padding-right: 36px; text-overflow: ellipsis;
  background-image: var(--chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
}
select option { background: var(--surface); color: var(--fg); }
/* Menu ouvert des listes : dessiné par la page là où le navigateur le permet (Chrome 135+, appearance: base-select) ;
   ailleurs, le menu natif du système reste utilisé. Clavier, lecteurs d'écran et formulaires fonctionnent pareil. */
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { display: inline-flex; align-items: center; }
  select::picker-icon { display: none; } /* le chevron reste celui de --chevron */
  select:open { border-color: var(--brand); box-shadow: 0 0 0 3px var(--field-ring); }
  ::picker(select) {
    margin-top: 6px; padding: 4px; min-width: anchor-size(width); max-height: min(320px, 50vh); overflow-y: auto;
    background: var(--surface); color: var(--fg); border: 1px solid var(--field-border); border-radius: 12px;
    box-shadow: 0 12px 32px rgb(15 29 43 / .16), 0 2px 6px rgb(15 29 43 / .08);
    opacity: 0; translate: 0 -4px;
    transition: opacity .12s, translate .12s, overlay .12s allow-discrete, display .12s allow-discrete;
  }
  ::picker(select):popover-open { opacity: 1; translate: 0 0; }
  @starting-style { ::picker(select):popover-open { opacity: 0; translate: 0 -4px; } }
  select option {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
    font-size: 14px; background: transparent; color: var(--fg); cursor: pointer;
  }
  select option:hover, select option:focus-visible { background: var(--bg); outline: none; }
  select option:checked { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
  select option::checkmark { order: 1; margin-left: auto; content: "✓"; color: var(--brand-strong); }
  select option:disabled { color: var(--muted); cursor: default; }
  .filters select option, form.inline select option, select.field-sm option { font-size: 13px; padding: 6px 9px; }
  /* Une liste prend ici la largeur de l'option choisie, plus celle de la plus longue : largeurs minimales stables. */
  .filters label:has(> select) { min-width: 220px; }
  .pg-problemes .filters label:has(> select) { min-width: 0; }
  .pg-problemes .filters select { min-width: 120px; }
  form.inline select { min-width: 110px; }
}
textarea { min-height: 120px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
/* Taille compacte : barres de filtres et formulaires en ligne (tableaux de membres, jetons). */
.filters input, .filters select, form.inline input, form.inline select, .field-sm {
  min-height: 32px; font-size: 13px; border-radius: 8px; padding: 0 10px;
}
.filters select, form.inline select, select.field-sm { padding-right: 30px; background-position: right 9px center; background-size: 12px; }
form.inline select { width: auto; }
/* Cases à cocher */
input[type=checkbox] {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--field-border); border-radius: 5px;
  background: var(--surface) center / 14px no-repeat; cursor: pointer; vertical-align: -3px;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
input[type=checkbox]:hover { border-color: var(--brand); }
input[type=checkbox]:checked { background-color: var(--brand); border-color: var(--brand); background-image: var(--check); }
input[type=checkbox]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--field-ring); }
.prose input[type=checkbox]:checked { background-color: var(--done); border-color: var(--done); }
.btn { font: inherit; font-weight: 600; border: 0; border-radius: 10px; min-height: 40px; padding: 0 16px; background: var(--brand); color: var(--on-strong); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background-color .15s, box-shadow .15s; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--field-ring); }
.btn:hover { background: var(--brand-strong); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.linkbtn { font: inherit; font-size: 12px; background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-align: left; }
.banner.ok-banner { background: var(--done-soft); color: var(--done); }
.side-foot form { margin: 0; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.project-card { display: grid; gap: 4px; color: inherit; text-decoration: none; border-top: 4px solid var(--pc, var(--brand)); }
.project-card:hover { border-color: var(--brand); }
.project-card .dot { display: none; }
.project-card b { font-size: 17px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: 12.5px; color: var(--muted); font-weight: 500; }
form.inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.form .check { display: flex; flex-direction: row; gap: 8px; align-items: center; }
.stages { border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.stages legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.secret { display: grid; gap: 6px; border-color: var(--brand); }
.secret code { font-size: 13px; word-break: break-all; user-select: all; background: var(--bg); padding: 8px; border-radius: 6px; }
.banner { overflow-wrap: anywhere; }
.side-project { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg); text-decoration: none; padding: 0 8px; }
.side-project i { width: 10px; height: 10px; border-radius: 3px; background: var(--pc, var(--brand)); }
.nav-general { border-top: 1px solid var(--line); padding-top: 10px; }
.side nav a { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.project-card .pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.project-card .pc-prog { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 6px 0 2px; }
.project-card .pc-prog small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-card .pc-line { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card .pc-line .mono { font-size: 12px; }
.project-card .pc-line em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--brand-strong); }
.project-card .pc-story.is-live { color: var(--fg); font-weight: 500; }
.project-card .pc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.live-chip { display: none; }
.pc-story .live-chip { margin-right: 4px; }
.reconnect { justify-self: start; }
/* Panneau de lot (repris de BatchPanel.astro) */
.batch-OPEN { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand-soft); }
.batch-PLANNED .b-tag { background: var(--muted); }
.batch-CLOSED .b-tag { background: var(--done); }
.b-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.batch h2 > span { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.b-tag { font: 700 11.5px var(--mono); color: var(--on-strong); background: var(--brand); border-radius: 6px; padding: 2px 7px; }
.b-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 10px; }
.b-big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.b-big small { font-size: 13px; font-weight: 500; color: var(--muted); }
.b-sub { font-size: 13.5px; color: var(--muted); }
.b-sub a { color: var(--brand-strong); font-weight: 600; text-decoration: none; }
.b-times { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 12px; padding: 8px 12px; background: var(--bg); border-radius: 8px; }
.b-times dt { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.b-times dd { margin: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.b-dur dd { font-weight: 700; color: var(--done); }
.b-dur.running dd { color: var(--brand-strong); }
.b-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; }
.bs { position: relative; display: grid; grid-template-columns: 22px auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; text-decoration: none; font-size: 13px; }
.bs:hover { border-color: var(--brand); }
.bs-n { font: 600 11px var(--mono); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.bs-id { font: 600 11.5px var(--mono); }
.bs-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-s { font-size: 11px; font-weight: 700; }
.bs-DONE { background: var(--done-soft); border-color: transparent; }
.bs-DONE .bs-t { color: var(--muted); }
.bs-DONE .bs-s { color: var(--done); }
.bs-IN_PROGRESS { border-color: var(--doing); }
.bs-IN_PROGRESS .bs-s { color: var(--brand-strong); }
.bs.is-next { border-width: 2px; padding: 5px 9px; }
@media (max-width: 640px) { .b-steps { grid-template-columns: minmax(0, 1fr); } }
/* Roadmap (repris de roadmap.astro) */
.epic { display: grid; gap: 10px; scroll-margin-top: 16px; }
.epic:target { border-color: var(--brand); }
.epic-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
pre.mermaid, pre.mermaid-lazy { background: none; margin: 0; overflow-x: auto; font-size: 12px; color: var(--muted); }
.story-graph { margin-top: 10px; font-size: 14px; }
.story-graph summary { cursor: pointer; color: var(--brand); }
.live-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
/* Tickets (repris de tickets/index.astro et TicketCard.astro) */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 12px 16px; }
.filters label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.filters .grow { flex: 1 1 240px; }
.grp { display: grid; gap: 8px; }
.grp + .grp { margin-top: 10px; }
.grp-h { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--brand-strong); border-bottom: 2px solid var(--brand); padding: 2px 2px 5px; }
.grp-h a { color: inherit; text-decoration: none; }
.grp-h a:hover { text-decoration: underline; }
.grp-h.planned { color: var(--fg); border-bottom-color: var(--line); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.column { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.column h2 { font-size: 15px; margin-bottom: 10px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.d-TODO { background: var(--todo); } .d-IN_PROGRESS { background: var(--doing); } .d-DONE { background: var(--done); }
.count { font-variant-numeric: tabular-nums; font-weight: 500; }
.views { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-left: auto; }
.views button { font: inherit; font-size: 13px; font-weight: 500; padding: 7px 12px; border: 0; background: var(--bg); color: var(--muted); cursor: pointer; }
.views button + button { border-left: 1px solid var(--line); }
.views button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-strong); }
.tk-table-wrap { padding: 0; overflow-x: auto; }
.tk-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tk-table th { text-align: left; position: sticky; top: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0; white-space: nowrap; }
.tk-table th button { font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 10px 12px; cursor: pointer; width: 100%; text-align: inherit; }
.tk-table th button:hover { color: var(--fg); }
.tk-table th[aria-sort] button { color: var(--brand-strong); }
.tk-table th[aria-sort="ascending"] button::after { content: " ↑"; }
.tk-table th[aria-sort="descending"] button::after { content: " ↓"; }
.tk-table td { padding: 9px 12px; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-table tbody tr:hover { background: var(--bg); }
.tk-table td.ttl { white-space: normal; min-width: 220px; }
.tk-table td a { color: inherit; text-decoration: none; }
.tk-table td a:hover { color: var(--brand); }
.tk-table td a.mono { font-size: 12px; font-weight: 600; }
.tk-table .num { text-align: right; }
.tk-table .dur { font-weight: 700; }
.tk-table tr[data-status="DONE"] .dur { color: var(--done); }
.tk-table .dur.running { color: var(--brand-strong); }
.sz { font: 700 11px var(--mono); width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 5px; }
.sz-S { background: var(--done-soft); color: var(--done); }
.sz-M { background: var(--brand-soft); color: var(--brand-strong); }
.sz-L { background: var(--decide-soft); color: var(--decide-strong); }
@media (max-width: 1280px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .board { grid-template-columns: minmax(0, 1fr); } }
.tk { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; text-decoration: none; min-width: 0; }
.tk:hover { border-color: var(--brand); }
.tk-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.tk-top .pill { margin-left: auto; }
.tk-id { font: 600 12px var(--mono); color: var(--fg); }
.tk-epic { font: 500 11px var(--mono); color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.tk-size { font-size: 11px; font-weight: 700; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.sz-S { background: var(--done-soft); color: var(--done); }
.sz-M { background: var(--brand-soft); color: var(--brand-strong); }
.sz-L { background: var(--decide-soft); color: var(--decide-strong); }
.tk-iss { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; background: var(--decide-soft); color: var(--decide-strong); border: 1px solid var(--decide); white-space: nowrap; }
.tk-title { font-weight: 600; font-size: 15px; line-height: 1.35; text-wrap: pretty; }
.tk-crit { display: flex; align-items: center; gap: 8px; }
.tk-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tk-bar i { display: block; height: 100%; background: var(--doing); }
.tk-DONE .tk-bar i { background: var(--done); }
.tk-num { font: 500 11.5px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.tk-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; margin: 0; padding: 8px 10px; background: var(--bg); border-radius: 8px; }
.tk-times div { min-width: 0; }
.tk-times dt { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tk-times dd { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-dur dd { font-weight: 700; color: var(--fg); }
.tk-DONE .tk-dur dd { color: var(--done); }
.tk-IN_PROGRESS .tk-dur dd { color: var(--brand-strong); }
.tk-todo { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; color: var(--muted); }
.tk-deps { color: var(--muted); }
.tk-deps.ok { color: var(--done); }
/* Fiche story (repris de tickets/[id].astro) */
.waiting { border: 2px solid var(--decide); background: var(--decide-soft); }
.waiting ul, .provs { margin: 0; padding-left: 16px; display: grid; gap: 6px; font-size: 13.5px; }
.waiting a, .provs a { color: inherit; }
.waiting .mono { font-size: 12px; color: var(--muted); }
.wp { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; }
.wp-BLOCKING { background: var(--fail); color: var(--on-strong); }
.wp-BEFORE_STORY, .wp-LATER { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.wp-decide { background: var(--decide); color: var(--on-strong); }
.issues ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 7px; font-size: 13.5px; }
.issues li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.issues li a { color: inherit; flex: 1 1 180px; }
.issues li.is-RESOLVED a, .issues li.is-WONT_FIX a { color: var(--muted); }
.issues .mono { font-size: 12px; color: var(--muted); }
.issues.hot { border: 2px solid var(--decide); }
.sv, .ist { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.sv-CRITICAL { background: var(--fail); color: var(--on-strong); }
.sv-MAJOR { background: var(--decide); color: var(--on-strong); }
.sv-MINOR { background: var(--warn-soft); color: var(--warn); }
.sv-INFO { background: var(--todo-soft); color: var(--muted); }
.ist-OPEN { background: var(--brand-soft); color: var(--brand-strong); }
.ist-RESOLVED { background: var(--done-soft); color: var(--done); }
.ist-WONT_FIX { background: var(--todo-soft); color: var(--muted); }
.prose h2#rapport-de-livraison { margin-top: 28px; padding: 8px 12px; border-left: 4px solid var(--done); background: var(--done-soft); border-radius: 6px; scroll-margin-top: 16px; }
.crumbs { font-size: 13px; }
.crumbs a { text-decoration: none; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.facts { display: grid; gap: 12px; min-width: 0; }
.facts dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.prog-line { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.prog-line i { display: block; height: 100%; background: var(--done); }
.num { font-variant-numeric: tabular-nums; }
.chrono { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.chrono li { position: relative; display: grid; gap: 1px; font-size: 13.5px; }
.chrono li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--todo); border: 2px solid var(--surface); }
.chrono .c-IN_PROGRESS::before { background: var(--doing); }
.chrono .c-DONE::before { background: var(--done); }
.chrono time { color: var(--fg); font-variant-numeric: tabular-nums; }
.chrono .note, .chrono .span { color: var(--muted); font-size: 12.5px; }
.chrono .span { font-weight: 500; }
.refs { display: grid; gap: 2px; font-size: 13px; margin-bottom: 10px; }
.refs div { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.refs a { text-decoration: none; font-size: 12.5px; }
@media (max-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.criteria { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.crit { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.crit .box { width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 5px; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 3px; }
.crit.done .box { background: var(--done); border-color: var(--done); color: var(--on-strong); }
.crit.done > span:last-child { color: var(--muted); }
.prose a.ref { font-family: var(--mono); font-size: .92em; text-decoration: none; }
/* Repris de pages/lot.astro (limité à .pg-lot) */
.pg-lot .out { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pg-lot .out li { display: grid; gap: 2px; }
.pg-lot .out p { margin: 0; font-size: 13.5px; color: var(--muted); }
.pg-lot .out a.mono { font-size: 12.5px; font-weight: 600; color: var(--brand-strong); text-decoration: none; margin-right: 6px; }
/* Repris de pages/problemes.astro (limité à .pg-problemes) */
.pg-problemes .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pg-problemes .k-CRITICAL.has { border: 2px solid var(--fail); background: var(--fail-soft); }
.pg-problemes .k-CRITICAL.has .big, .pg-problemes .k-CRITICAL.has .label { color: var(--fail); }
.pg-problemes .k-MAJOR.has { border: 2px solid var(--decide); background: var(--decide-soft); }
.pg-problemes .k-MAJOR.has .big, .pg-problemes .k-MAJOR.has .label { color: var(--decide-strong); }
.pg-problemes .filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.pg-problemes .filters label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pg-problemes .filters input[type='search'] { width: 220px; }
.pg-problemes .filters select { width: auto; }
.pg-problemes .list { display: grid; gap: 10px; }
.pg-problemes .list > [hidden] { display: none; }
@media (max-width: 900px) { .pg-problemes .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Repris de components/IssueCard.astro (limité à .pg-problemes) */
.pg-problemes .iss { border: 1px solid var(--line); border-left: 4px solid var(--todo); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; scroll-margin-top: 16px; background: var(--surface); }
.pg-problemes .iss:target { outline: 2px solid var(--brand); }
.pg-problemes .iss.sev-CRITICAL { border-left-color: var(--fail); }
.pg-problemes .iss.sev-MAJOR { border-left-color: var(--decide); }
.pg-problemes .iss.sev-MINOR { border-left-color: var(--warn); }
.pg-problemes .iss.st-RESOLVED, .pg-problemes .iss.st-WONT_FIX { border-left-color: var(--done); opacity: 0.85; }
.pg-problemes .iss.st-OPEN.sev-CRITICAL { background: var(--fail-soft); }
.pg-problemes header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pg-problemes h3 { margin: 0; font-size: 15.5px; font-weight: 600; flex: 1; min-width: 200px; }
.pg-problemes .iid { font-size: 12px; color: var(--muted); }
.pg-problemes .badges { display: flex; gap: 5px; flex-wrap: wrap; }
.pg-problemes .b { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pg-problemes .sev-b-CRITICAL { background: var(--fail); color: var(--on-strong); }
.pg-problemes .sev-b-MAJOR { background: var(--decide); color: var(--on-strong); }
.pg-problemes .sev-b-MINOR { background: var(--warn-soft); color: var(--warn); }
.pg-problemes .sev-b-INFO { background: var(--todo-soft); color: var(--muted); }
.pg-problemes .area { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.pg-problemes .stb-OPEN { background: var(--brand-soft); color: var(--brand-strong); }
.pg-problemes .stb-RESOLVED { background: var(--done-soft); color: var(--done); }
.pg-problemes .stb-WONT_FIX { background: var(--todo-soft); color: var(--muted); }
.pg-problemes p { margin: 0; font-size: 13.5px; }
.pg-problemes .found { color: var(--muted); font-size: 12.5px; }
.pg-problemes .found a { text-decoration: none; }
.pg-problemes .num { font-variant-numeric: tabular-nums; }
.pg-problemes .fixers { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.pg-problemes .fx { font-size: 13px; text-decoration: none; background: var(--brand-soft); border-radius: 6px; padding: 2px 8px; }
.pg-problemes .fx em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.pg-problemes .fx-DONE { background: var(--done-soft); }
.pg-problemes .links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.pg-problemes .ref { font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; text-decoration: none; }
.pg-problemes .ref.act { border-color: var(--decide); }
/* Repris de pages/actions/index.astro (limité à .pg-actions) */
.pg-actions .kpi { color: inherit; text-decoration: none; }
.pg-actions .urgent { border: 2px solid var(--fail); background: var(--fail-soft); }
.pg-actions .urgent .big, .pg-actions .urgent .label { color: var(--fail); }
.pg-actions .decide-n { color: var(--decide); }
.pg-actions .grp .n { font-size: 13px; color: var(--muted); font-weight: 500; }
.pg-actions .g-BLOCKING { border: 2px solid var(--fail); }
.pg-actions .list { display: grid; gap: 10px; }
.pg-actions .act { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; scroll-margin-top: 16px; }
.pg-actions .act:target { outline: 2px solid var(--brand); }
.pg-actions .g-BLOCKING .act { border-color: var(--fail); background: var(--fail-soft); }
.pg-actions header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pg-actions h3 a { color: inherit; text-decoration: none; }
.pg-actions h3 a:hover { color: var(--brand); text-decoration: underline; }
.pg-actions .guide-btn { justify-self: start; display: inline-flex; gap: 6px; align-items: baseline; font-size: 13.5px; font-weight: 600; background: var(--brand); color: var(--on-strong); border-radius: 8px; padding: 6px 12px; text-decoration: none; }
.pg-actions .guide-btn span { font-weight: 400; opacity: 0.9; }
.pg-actions .guide-btn:hover { background: var(--brand-strong); }
.pg-actions h3 { margin: 0; font-size: 15.5px; font-weight: 600; flex: 1; min-width: 200px; }
.pg-actions .aid { font-size: 12px; color: var(--muted); }
.pg-actions .prio { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pg-actions .pr-BLOCKING { background: var(--fail); color: var(--on-strong); }
.pg-actions .pr-BEFORE_STORY { background: var(--brand-soft); color: var(--brand-strong); }
.pg-actions .pr-LATER { background: var(--todo-soft); color: var(--muted); }
.pg-actions .why, .pg-actions .deliver, .pg-actions .blocks { margin: 0; font-size: 13.5px; }
.pg-actions .why { color: var(--muted); }
.pg-actions .steps { margin: 0; padding-left: 20px; font-size: 13.5px; display: grid; gap: 3px; }
.pg-actions .blocks { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.pg-actions .ref { font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; text-decoration: none; }
.pg-actions .done { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
@media (max-width: 900px) { .pg-actions .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Repris de pages/actions/[id].astro (limité à .pg-action) */
.pg-action .crumb { font-size: 13px; }
.pg-action .crumb a { text-decoration: none; }
.pg-action .top { display: grid; gap: 8px; }
.pg-action .line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pg-action h1 { margin: 0; font-size: 22px; }
.pg-action .aid { font-size: 12px; color: var(--muted); }
.pg-action .meta { font-size: 12.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.pg-action .prio { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pg-action .pr-BLOCKING { background: var(--fail); color: var(--on-strong); }
.pg-action .pr-BEFORE_STORY { background: var(--brand-soft); color: var(--brand-strong); }
.pg-action .pr-LATER { background: var(--todo-soft); color: var(--muted); }
.pg-action .pr-DONE { background: var(--done); color: var(--on-strong); }
.pg-action .why { margin: 0; color: var(--muted); font-size: 14px; }
.pg-action .blocks { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.pg-action .ref { font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; text-decoration: none; }

.pg-action .guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
.pg-action .guide-side { position: sticky; top: 14px; display: grid; gap: 10px; }
.pg-action .label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.pg-action .progress .big { font-size: 26px; font-weight: 700; margin: 2px 0 6px; }
.pg-action .bar { height: 8px; border-radius: 999px; background: var(--todo-soft); overflow: hidden; }
.pg-action .bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.2s; }
.pg-action .progress.complete .bar span { background: var(--done); }
.pg-action .progress.complete .big { color: var(--done); }
.pg-action .reset { margin-top: 8px; font-size: 12px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; text-decoration: underline; }
.pg-action .guide-toc { display: grid; gap: 4px; font-size: 13px; }
.pg-action .guide-toc a { text-decoration: none; }
.pg-action .prereq ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; display: grid; gap: 3px; }

.pg-action .guide h2 { margin-top: 22px; }
.pg-action .guide h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.pg-action .guide li:has(> input[type='checkbox']) { cursor: pointer; padding: 3px 6px; border-radius: 6px; }
.pg-action .guide li:has(> input[type='checkbox']):hover { background: var(--bg); }
.pg-action .guide li:has(> input:checked) { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.pg-action .guide input[type='checkbox'] { margin-right: 6px; }
.pg-action .guide blockquote { margin: 10px 0; padding: 8px 12px; border-left: 4px solid var(--warn); background: var(--warn-soft); border-radius: 0 8px 8px 0; }
.pg-action .guide blockquote p { margin: 4px 0; }
.pg-action .guide pre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: 13px; }
.pg-action .guide pre code { border: 0; padding: 0; background: none; }
.pg-action .guide table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 13.5px; }
.pg-action .guide th, .pg-action .guide td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; }

.pg-action .deliver { border: 2px solid var(--brand); }
.pg-action .deliver h2 { margin: 0 0 4px; font-size: 16px; }
.pg-action .deliver p { margin: 0; }
.pg-action .steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pg-action .next { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; text-decoration: none; color: inherit; }
.pg-action .next:hover { border-color: var(--brand); }

@media (max-width: 900px) {
  .pg-action .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .pg-action .guide-side { position: static; }
}
/* Repris de pages/prestataires.astro (limité à .pg-prestataires) */
.pg-prestataires .kpi { color: inherit; text-decoration: none; }
.pg-prestataires .decide-kpi { border: 2px solid var(--decide); background: var(--decide-soft); }
.pg-prestataires .decide-kpi .big, .pg-prestataires .decide-kpi .label { color: var(--decide-strong); }
.pg-prestataires .decide { border: 2px solid var(--decide); background: linear-gradient(var(--decide-soft), var(--surface) 140px); }
.pg-prestataires .dbadge { background: var(--decide); color: var(--on-strong); border-radius: 999px; padding: 1px 10px; font-size: 13px; }
.pg-prestataires .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
@media (max-width: 900px) { .pg-prestataires .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Repris de components/ProviderCard.astro (limité à .pg-prestataires) */
.pg-prestataires .prov { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; align-content: start; background: var(--surface); scroll-margin-top: 16px; }
.pg-prestataires .prov:target { outline: 2px solid var(--brand); }
.pg-prestataires .d-A_DECIDER { border: 2px solid var(--decide); }
.pg-prestataires .d-RETIRE { opacity: 0.6; }
.pg-prestataires header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pg-prestataires h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.pg-prestataires .sub { font-size: 12.5px; color: var(--muted); }
.pg-prestataires .role { margin: 0; font-size: 13.5px; }
.pg-prestataires .dec { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pg-prestataires .dec-A_DECIDER { background: var(--decide); color: var(--on-strong); }
.pg-prestataires .dec-DECIDE { background: var(--brand-soft); color: var(--brand-strong); }
.pg-prestataires .dec-EN_PLACE { background: var(--done-soft); color: var(--done); }
.pg-prestataires .dec-RETIRE { background: var(--todo-soft); color: var(--muted); }
.pg-prestataires dl { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: 13px; }
.pg-prestataires dt { color: var(--muted); }
.pg-prestataires dd { margin: 0; min-width: 0; }
.pg-prestataires .pst { font-weight: 600; }
.pg-prestataires .pst-INTEGRATED { color: var(--done); }
.pg-prestataires .pst-PARTIAL, .pg-prestataires .pst-MOCK { color: var(--warn); }
.pg-prestataires .pst-NOT_STARTED { color: var(--muted); }
.pg-prestataires .opts { margin: 0; padding-left: 16px; }
.pg-prestataires .refs { display: flex; flex-wrap: wrap; gap: 4px; }
.pg-prestataires .ref { font: 500 11.5px var(--mono); text-decoration: none; border-radius: 5px; padding: 1px 6px; }
.pg-prestataires .cfg { display: flex; flex-wrap: wrap; gap: 4px; }
.pg-prestataires .cfg code { font: 11.5px var(--mono); background: var(--bg); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.pg-prestataires .notes { margin: 0; font-size: 12.5px; color: var(--muted); }
.pg-prestataires .acts { margin: 0; font-size: 12.5px; color: var(--decide-strong); font-weight: 500; }
/* Repris de pages/activite.astro (limité à .pg-activite) */
.pg-activite .tw { overflow-x: auto; }
.pg-activite table { border-collapse: collapse; width: 100%; font-size: 14px; }
.pg-activite th, .pg-activite td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.pg-activite th { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.pg-activite td a { color: inherit; text-decoration: none; }
.pg-activite td a:hover { color: var(--brand); }
.pg-activite td .mono { font-size: 12px; color: var(--muted); margin-right: 4px; }
.pg-activite .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-activite .ip { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pg-activite .ip-CRITICAL { background: var(--fail); color: var(--on-strong); }
.pg-activite .ip-MAJOR { background: var(--decide); color: var(--on-strong); }
.pg-activite .ip-MINOR { background: var(--warn-soft); color: var(--warn); }
.pg-activite .ip-INFO { background: var(--todo-soft); color: var(--muted); }
.pg-activite .ip-res { background: var(--done-soft); color: var(--done); }
.pg-activite .durs { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tabs button[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-strong); border-color: var(--brand); }
.iss-md p { margin: 0 0 6px; }
.via { font-size: 11px; font-weight: 700; color: var(--brand-strong); background: var(--brand-soft); border-radius: 999px; padding: 0 6px; }
.gbox { width: 16px; height: 16px; background-size: 12px; }
.pg-actions .done summary { cursor: pointer; font-weight: 600; }
.donelist { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.new-form summary, .resolve summary { cursor: pointer; font-weight: 600; color: var(--brand-strong); }
.new-form[open] summary { margin-bottom: 12px; }
.new-form .form { max-width: 640px; }
.resolve { margin-top: 6px; font-size: 13.5px; }
.resolve .form { margin-top: 8px; max-width: 560px; }
.crit .cbox { margin: 2px 0 0; }
/* Critères et cases de guide cochés : vert « terminé » plutôt que la couleur de marque. */
.cbox:checked, .gbox:checked, .pg-action .guide input[type='checkbox']:checked { background-color: var(--done); border-color: var(--done); }
.edit .form { gap: 8px; }
.done-form { margin-top: 10px; max-width: 520px; }
.git { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.git li { display: grid; gap: 1px; }
.git a { color: inherit; text-decoration: none; }
.git a:hover { color: var(--brand); }
.git .muted { font-size: 12px; }
.gk { font: 700 11px var(--mono); border-radius: 5px; padding: 1px 6px; background: var(--bg); border: 1px solid var(--line); }
.gk-open { color: var(--done); border-color: var(--done); }
.gk-merged { color: var(--live); border-color: var(--live); }
.gk-closed { color: var(--fail); border-color: var(--fail); }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.doc { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.doc:hover { border-color: var(--brand); }
.doc span:not(.mono) { font-size: 13.5px; color: var(--muted); }
.chg { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--decide-strong); background: var(--decide-soft); border-radius: 999px; padding: 1px 8px; justify-self: start; }
.changes { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.tab-link { font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 14px; text-decoration: none; }
.tab-link.on { background: var(--brand-soft); color: var(--brand-strong); border-color: var(--brand); }
.spec .changed { border-left: 4px solid var(--decide); padding-left: 8px; background: var(--decide-soft); border-radius: 4px; }
.spec pre { white-space: pre-wrap; font: 12.5px var(--mono); }
.api { padding: 0; overflow: hidden; min-height: 70vh; }
.api > p { padding: 16px; }
.spec-alert { border: 2px solid var(--decide); }

/* Tests (SC-012) */
.pg-tests .test-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pg-tests .section-title { font-size: 15px; margin: 8px 0 0; }
.pg-tests .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pg-tests .stats div { display: grid; align-content: start; }
.pg-tests .stats b { font-size: 24px; font-variant-numeric: tabular-nums; }
.pg-tests .stats b.ok { color: var(--done); }
.pg-tests .stats b.ko, .pg-tests td.ko { color: var(--fail); }
.pg-tests .stats span { font-size: 12.5px; color: var(--muted); }
.pg-tests .suites { width: 100%; border-collapse: collapse; font-size: 13px; display: block; overflow-x: auto; max-height: 420px; }
.pg-tests .suites th, .pg-tests .suites td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pg-tests .suites td:first-child { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.pg-tests .meter { display: grid; grid-template-columns: 64px minmax(60px, 1fr); align-items: center; gap: 2px 8px; }
.pg-tests .meter b { font-variant-numeric: tabular-nums; }
.pg-tests .meter small { grid-column: 2; font-size: 11.5px; }
.pg-tests .fails pre { white-space: pre-wrap; font: 12px var(--mono); background: var(--bg); padding: 8px; border-radius: 6px; max-height: 240px; overflow: auto; }
.pg-tests .fails summary { cursor: pointer; }
@media (max-width: 1100px) { .pg-tests .test-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .pg-tests .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pg-tests .cov th:nth-child(4), .pg-tests .cov td:nth-child(4) { display: none; } }

/* Specs lues selon le modèle du dépôt (ADR-0009) */
details.banner summary { cursor: pointer; font-weight: 600; }
.problems { max-height: 320px; overflow: auto; font-size: 13px; }
.problems li { margin: 2px 0; }
.problems a { color: inherit; font-weight: 600; }
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.collection { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); text-decoration: none; }
.collection:hover { border-color: var(--brand); background: var(--brand-soft); }
.collection span { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.items-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.items-table td { padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.items-table tr:first-child td { border-top: 0; }
.items-table td:first-child { white-space: nowrap; width: 1%; }
.items-table .cited { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12px; }
.items-table .cited a { color: var(--muted); }
.spec-item { overflow-wrap: anywhere; }
dl.kv { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 6px 16px; margin: 0; }
dl.kv > dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
dl.kv > dd { margin: 0; min-width: 0; }
dl.kv dl.kv { padding: 6px 0 6px 10px; border-left: 2px solid var(--line); }
ol.items { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.vals { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; }
.vals > span, .vals > a { font-size: 13px; }

@media (max-width: 640px) { dl.kv { grid-template-columns: 1fr; gap: 2px; } dl.kv > dd { margin-bottom: 6px; } }

/* Sélecteur d'application (dimension du modèle des specs) */
.dim-pick { display: block; margin: 10px 8px 0; }
.dim-pick select { width: 100%; font-size: 13px; }
.dim-pick select.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.dim-off { display: none !important; }
.dim-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Specs lues selon le modèle : menu des collections, filtres, sections, fiche (STORY-037) */
.spec-cols { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 4px 0 12px; font-size: 13px; }
.spec-cols .g { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; margin-left: 8px; }
.spec-cols .g:first-child { margin-left: 0; }
.spec-cols a { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--fg); text-decoration: none; }
.spec-cols a[aria-current] { border-color: var(--brand); color: var(--brand); }
.spec-cols .n { color: var(--muted); font-size: 11px; }
.spec-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.spec-filters label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.spec-rows h2 .n { color: var(--muted); font-weight: 400; font-size: 13px; }
.item-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; }
.item-nav a { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree > li { margin-bottom: 10px; }
.tree ul { margin: 4px 0 4px 18px; padding: 0; list-style: none; }
.tree .sub { font-size: 12px; }
.vals:has(.sub) { display: block; }
.vals:has(.sub) > span { display: block; margin: 0 0 6px; }
.vals .sub { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 2px 0 0 18px; font-size: 12px; }

/* Cadres de la démo (STORY-038) */
.demo-visuel { margin-top: 12px; }
.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.demo-bar .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-frame { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.demo-frame iframe { display: block; width: 100%; height: 78vh; border: 0; }
.demo-frame.mobile { width: 390px; max-width: 100%; margin: 0 auto; }
.demo-frame.mobile iframe { height: 844px; }
.iso { margin: 8px 0 16px; }
.iso-msg { font-size: 12px; color: var(--muted); margin-bottom: 6px; overflow-wrap: anywhere; }
.iso-stage { overflow: auto; max-width: 100%; border: 1px dashed var(--border); border-radius: 10px; padding: 8px; background: oklch(97.5% 0.004 240); }
.iso-stage.iso-boite { height: 420px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.iso-clip { position: relative; overflow: hidden; }
.iso-clip iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; }
.demo-rendu { position: relative; overflow: hidden; min-height: 60px; }
.demo-rendu iframe { position: absolute; top: 0; left: 0; border: 0; width: 1440px; height: 160px; transform-origin: 0 0; }
body.vd { margin: 0; height: 100vh; overflow: hidden; }
.vd-ecran { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.vd-barre { position: fixed; z-index: 11; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 14px; border-radius: 999px; background: oklch(20% 0.01 260 / 0.92); color: oklch(97% 0 0); font-size: 13px; box-shadow: 0 8px 30px oklch(0% 0 0 / 0.3); white-space: nowrap; max-width: calc(100vw - 32px); }
.vd-retour { color: inherit; text-decoration: none; opacity: .85; }
.vd-titre { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.vd-etat { opacity: .75; }
.vd-etat:empty { display: none; }
.vd-bascule { font: inherit; color: inherit; background: oklch(100% 0 0 / 0.12); border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer; }

/* Vues du prototype (STORY-039) : état d'analyse, fiche de page à onglets, application, composant, widgets. */
.etat { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.etat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.e-A_JOUR { background: var(--done-soft); color: var(--done); }
.e-MODIFIEE { background: var(--fail-soft); color: var(--fail); }
.e-A_VERIFIER { background: var(--decide-soft); color: var(--decide-strong); }
.e-A_ANALYSER { background: var(--todo-soft); color: var(--muted); }
.e-SANS_VISUEL { background: var(--bg); color: var(--muted); border: 1px dashed var(--line); }
.etat-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 6px 0 2px; max-width: 520px; }
.etat-bar > span { display: block; height: 100%; padding: 0; border: 0; border-radius: 0; }
.etat-bar > .e-A_JOUR { background: var(--done); }
.etat-bar > .e-MODIFIEE { background: var(--fail); }
.etat-bar > .e-A_VERIFIER { background: var(--decide); }
.etat-bar > .e-A_ANALYSER { background: var(--muted); opacity: .45; }
.etat-bar > .e-SANS_VISUEL { background: transparent; }
.etat-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; margin: 4px 0 0; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 500; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--muted); background: var(--surface); white-space: nowrap; }
.tag.mob { border-color: var(--brand); color: var(--brand-strong); }
.small { font-size: 12px; }
/* Cartes en grille à une colonne : jamais plus larges que l'écran (375 px). */
.epic, .pg-problemes .iss, .pg-actions .act, .act, .pg-prestataires .prov, .pg-actions .steps { grid-template-columns: minmax(0, 1fr); }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.page-main { display: grid; gap: 18px; min-width: 0; }
.page-side { display: grid; gap: 14px; position: sticky; top: 16px; }
.page-side .card { min-width: 0; overflow: hidden; }
.page-side h2 { font-size: 15px; margin: 0 0 8px; }
@media (max-width: 1100px) { .page-layout { grid-template-columns: minmax(0, 1fr); } .page-side { position: static; } }
.vtabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.vtabs button { font: inherit; font-size: 14px; font-weight: 500; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.vtabs button[aria-selected="true"] { color: var(--brand-strong); border-bottom-color: var(--brand); }
.vtabs .n { font-size: 11.5px; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.vpanel { padding-top: 14px; }
.sec { display: grid; gap: 6px; }
.sec + .sec { margin-top: 18px; }
.sec h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.sec p { margin: 0; }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
ul.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.acts { display: grid; gap: 8px; }
.act { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.act b { font-weight: 600; }
.act p { margin: 0; font-size: 14px; color: var(--muted); }
.vlinks { display: flex; flex-wrap: wrap; gap: 6px; }
.page-side .vlinks { display: grid; gap: 4px; }
.vlinks a { font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; text-decoration: none; color: inherit; background: var(--surface); }
.vlinks a:hover, .vlinks a[aria-current="page"] { border-color: var(--brand); color: var(--brand-strong); }
.menu-block { display: grid; gap: 8px; }
.menu-block h3 { margin: 6px 0 0; font-size: 15px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.menu-block h3 small { font-weight: 400; font-size: 13px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pcard { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; text-decoration: none; align-content: start; }
.pcard:hover { border-color: var(--brand); }
.pcard b { font-weight: 600; font-size: 14.5px; }
.pcard .role { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); align-items: center; }
pre.ts { margin: 0; overflow-x: auto; font-size: 13px; line-height: 1.55; }
.spec-raw summary { cursor: pointer; font-weight: 600; }
.spec-raw[open] summary { margin-bottom: 12px; }
.widget h2 { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.widget h2 a { color: inherit; text-decoration: none; }
.widget-meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 500; }
.widget > p { margin: 0 0 10px; font-size: 14px; }

/* New Composants et New Layouts (STORY-040). */
.pastille { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.pastille-ajoute { background: var(--done-soft); color: var(--done); }
.pastille-modifie { background: var(--warn-soft); color: var(--warn); }
.pastille-supprime { background: var(--fail-soft); color: var(--fail); }
.ny-apps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ny-apps a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.ny-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.st-NOUVEAU { background: var(--warn-soft); color: var(--warn); }
.st-EXISTANT { background: var(--done-soft); color: var(--done); }
.ny-type { background: var(--todo-soft); color: var(--muted); }
.ny-page { display: inline-block; font-size: 12.5px; padding: 2px 8px; margin: 2px 4px 2px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); text-decoration: none; color: inherit; white-space: nowrap; }
a.ny-page:hover { border-color: var(--brand); color: var(--brand-strong); }
.ny-analyse { border-style: dashed; }
.ny-quittees { margin-top: 6px; }
.ny-supprime, .ny-supprimes a { color: var(--muted); text-decoration: line-through; }
.ny-supprimes { margin-top: 6px; display: grid; gap: 2px; font-size: 13px; }
.ny-infos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 760px) { .ny-infos { grid-template-columns: 1fr; } }
.ny-demos { display: grid; gap: 8px; }
.ny-demo { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.ny-demo > summary { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; cursor: pointer; list-style: none; border-radius: 10px; }
.ny-demo > summary::-webkit-details-marker { display: none; }
.ny-demo > summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; flex: none; }
.ny-demo[open] > summary::before { transform: rotate(45deg); }
.ny-demo > summary:hover { background: var(--bg); }
.ny-titre { flex: 1; font-weight: 600; font-size: 14px; }
.ny-manque { color: var(--fail); font-weight: 600; font-size: 13px; }
.ny-demo .demo-rendu { margin: 0 12px 12px; }
.ny-code { margin: 0 12px 12px; font-size: 13px; }
.ny-code pre { overflow: auto; max-height: 360px; padding: 10px; border-radius: 8px; background: var(--bg); font-size: 12px; }
.ny-api td { vertical-align: top; }
.ny-ktype { font-size: 12px; max-width: 320px; overflow-wrap: anywhere; }
.ny-ex { display: inline-block; font-size: 11.5px; padding: 1px 7px; margin: 1px 4px 1px 0; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); white-space: nowrap; }
.ny-releve h3 { margin: 14px 0 6px; font-size: 14px; }
.ny-attente, .ny-alerte { color: var(--warn); }
.ny-outils label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.ny-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 760px; }
.ny-liste td { vertical-align: top; }
.ny-liste tr[hidden] { display: none; }
.ny-manque td { background: var(--warn-soft); }
.ny-trouve { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12.5px; }
.ny-trouve span { padding: 1px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
summary > h2 { display: inline; }
/* Décisions par bouton (STORY-042) */
.dec { display: grid; gap: 10px; }
.dec-state { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dec-pending { background: var(--decide-soft); color: var(--decide-strong); }
.dec-todo { background: var(--warn-soft); color: var(--warn); }
.dec-done { background: var(--done-soft); color: var(--done); }
.dec-reco { background: var(--brand-soft); color: var(--brand-strong); margin-left: 6px; }
.dec-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.dec-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.dec-opt { font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.dec-opt:hover:not(:disabled) { border-color: var(--muted); }
.dec-opt[aria-pressed="true"] { background: var(--done-soft); color: var(--done); border-color: var(--done); }
.dec-opt:disabled { cursor: default; opacity: .75; }
.dec-reset { font: inherit; font-size: 13px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; text-decoration: underline; }
.dec-rich .dec-form { display: grid; gap: 8px; }
.dec-rich .dec-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.dec-rich .dec-opt { text-align: left; display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 12px; font-weight: 400; }
.dec-rich .dec-opt.reco { border-color: var(--brand-strong); }
.dec-rich .dec-opt[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--done); color: var(--fg); }
.dec-rich .dec-reset { justify-self: start; }
.dec-opt-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dec-opt-d { font-size: 13px; color: var(--muted); }
.dec-opt-c { font-size: 12px; }
.big.decide { color: var(--decide-strong); }
/* Fusions */
.fu-sommaire { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fu-sommaire a { text-decoration: none; }
.fu-app { display: grid; gap: 14px; scroll-margin-top: 16px; margin-top: 16px; }
.fu-app h2 .n, .fu-cat .n { font-size: 13px; font-weight: 400; }
.fu-cat { margin: 4px 0 0; }
.fu { display: grid; gap: 10px; scroll-margin-top: 16px; }
.fu[data-decision="FUSIONNER"] { box-shadow: inset 4px 0 0 var(--done); }
.fu[data-decision="GARDER"] { box-shadow: inset 4px 0 0 var(--muted); }
.fu-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fu-head h3 { margin: 0; font-size: 17px; flex: 1 1 auto; }
.reco-FUSIONNER { background: var(--brand-soft); color: var(--brand-strong); }
.reco-GARDER { background: var(--todo-soft, var(--line)); color: var(--muted); }
.fu-conclusion, .fu-effet { margin: 0; font-size: 14px; }
.fu-effet { color: var(--muted); }
.fu-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fu-grid.fu-n1 { grid-template-columns: minmax(0, 1fr); }
.fu-grid.fu-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .fu-grid, .fu-grid.fu-n2 { grid-template-columns: minmax(0, 1fr); } }
.fu-col { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.fu-col > * { min-width: 0; }
.fu-col .iso-stage.iso-boite { height: 300px; }
.fu-col.cible { border-color: var(--brand-strong); }
.fu-col-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.fu-reste { background: var(--brand-soft); color: var(--brand-strong); }
.fu-meta { font-size: 11.5px; overflow-wrap: anywhere; }
.fu-desc { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fu-io { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 12px; }
.fu-io dt { color: var(--muted); }
.fu-io dd { margin: 0; overflow-wrap: anywhere; }
.fu-notes { font-size: 12.5px; color: var(--muted); }
.fu-notes ul { margin: 6px 0 0; padding-left: 18px; }
.fu-actions { border-top: 1px solid var(--line); padding-top: 10px; }
/* Déploiement et installation sur site */
.dp-schema { width: 100%; height: auto; display: block; }
.dp-list li { margin: 4px 0; }
.dp-deux { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .dp-deux { grid-template-columns: minmax(0, 1fr); } }
.dp-kv th { width: 42%; color: var(--muted); font-weight: 500; font-size: 13.5px; text-align: left; }
.dp-n-ok, .ss-oui { background: var(--done-soft); color: var(--done); }
.dp-n-court { background: var(--warn-soft); color: var(--warn); }
.dp-n-long { background: var(--fail-soft); color: var(--fail); }
.ss-non { background: var(--todo-soft, var(--line)); color: var(--muted); }
.dp-choix { display: grid; gap: 14px; margin-bottom: 14px; }
.dp-choix > h2 { margin: 10px 0 0; }
.ch { display: grid; gap: 10px; scroll-margin-top: 16px; }
.ch-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ch-head h3 { margin: 0; font-size: 17px; flex: 1 1 auto; }
.ch-q, .ch-conc { margin: 0; font-size: 14px; }
.dp-total td { border-top: 2px solid var(--line); background: var(--brand-soft); }
.dp-prix td { vertical-align: top; }
.dp-prix tr.retenu td { background: var(--brand-soft); }
.barre { height: 6px; width: 120px; background: var(--todo-soft, var(--line)); border-radius: 3px; margin: 6px 0 4px; overflow: hidden; }
.barre i { display: block; height: 100%; background: var(--brand); }
.dp-four { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 600px) { .dp-four { grid-template-columns: minmax(0, 1fr); } }
.dp-f { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.dp-f.retenu { border-color: var(--brand-strong); }
.dp-f h3 { margin: 0; font-size: 16px; }
.dp-f p { margin: 0; font-size: 13.5px; }
.dp-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12.5px; }
.dp-pc ul { margin: 0; padding-left: 16px; }
.dp-pc .pour li::marker { content: "+ "; color: var(--done); font-weight: 700; }
.dp-pc .contre li::marker { content: "– "; color: var(--fail); font-weight: 700; }
.if-dom { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 6px; }
@media (max-width: 600px) { .if-dom { grid-template-columns: minmax(0, 1fr); } }
.if-d { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.if-d h3 { margin: 0 0 8px; font-size: 15px; }
.if-d li { display: grid; gap: 2px; margin: 0 0 10px; font-size: 13px; }
.if-o-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.if-cout { font-size: 11.5px; color: var(--brand-strong); white-space: nowrap; }
.if-ovh { font-size: 11.5px; color: var(--muted); font-style: italic; }
.if-pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; counter-reset: etape; }
.if-pipe li { display: grid; gap: 4px; align-content: start; padding: 10px; border-radius: 10px; background: var(--brand-soft); font-size: 12.5px; counter-increment: etape; }
.if-pipe li::before { content: counter(etape); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-strong); color: var(--surface); font-weight: 700; font-size: 12px; }
.if-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-strong); color: var(--surface); font-weight: 700; font-size: 12px; }
.dp-phases { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.dp-phases li span { display: block; color: var(--muted); font-size: 13.5px; }
.dp-sources { font-size: 12.5px; columns: 2; }
@media (max-width: 800px) { .dp-sources { columns: 1; } }
.dec-group { margin-top: 14px; }
.dec-group h3 { margin: 0 0 8px; font-size: 15px; }
.dec-item { margin-bottom: 10px; }
.dec-item header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.dec-item p { margin: 4px 0; }

/* Maquette validée le 2026-10-18 (STORY-045) : boutons, barre latérale, connexion, accueil, tableau de bord, tickets, fiche. */
.btn { border-radius: 10px; text-decoration: none; }
.btn.ghost { color: var(--fg); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--todo-soft); color: var(--fg); }
.small { font-size: 12px; }
.p-IN_PROGRESS { background: var(--live-soft); color: var(--live); }
.d-IN_PROGRESS { background: var(--live); }
.side-project { gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.side-project i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 700 13px var(--font); font-style: normal; color: #fff; background: var(--pc, var(--brand)); flex: none; }
.side-project span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-project:hover { border-color: var(--line-strong); }
.navc { font: 500 12px var(--mono); background: none; color: var(--muted); padding: 0; min-width: 0; }
.navc.decide { background: none; color: var(--decide); }
.navc.urgent { background: none; color: var(--fail); }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Connexion et invitation (SC-001, SC-016) : emblème, nom, formule ; aucune donnée du service avant connexion. */
.auth-body { display: block; place-items: normal; padding: 0; }
.auth { width: 100%; min-height: 100vh; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 64px; padding: 48px 24px; }
.auth-intro { flex: 1 1 420px; max-width: 560px; display: flex; flex-direction: column; gap: 28px; }
.emblem { width: 340px; max-width: 100%; aspect-ratio: 1; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.emblem svg { width: 86%; height: auto; }
.emblem .em-todo { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 6; }
.emblem .em-done { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.emblem .em-n { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.emblem .em-n.done { fill: var(--brand); stroke: var(--brand); }
.emblem .em-n.now { stroke: var(--brand); }
.emblem .em-run { fill: var(--brand); offset-path: path('M 50 210 L 50 130 Q 50 110 70 110 L 150 110 Q 170 110 170 90 L 170 50 Q 170 30 190 30 L 290 30'); animation: em-travel 5s ease-in-out infinite; }
@keyframes em-travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.auth-name { margin: 0; font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.auth-tag { margin: 10px 0 0; font-size: 17px; color: var(--fg-2); }
.auth-card { flex: 1 1 360px; max-width: 420px; width: auto; padding: 32px; border-radius: 8px; box-shadow: var(--shadow-lg); gap: 18px; }
.auth-card h1 { font-size: 24px; letter-spacing: -0.02em; }
.auth-card .lead { margin: 4px 0 0; color: var(--muted); }
.auth-card .form label { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.auth-card input { min-height: 48px; font-size: 15px; border-radius: 8px; }
.auth-card .btn { min-height: 50px; font-size: 16px; border-radius: 8px; }
@media (max-width: 720px) { .auth { gap: 32px; padding: 32px 16px; } .auth-name { font-size: 44px; } .emblem { width: 240px; } }

/* Accueil multi-projets (SC-002) */
.home-body { display: grid; gap: 32px; min-width: 0; }
.home-head { align-items: flex-end; gap: 24px; }
.home-head h1 { font-size: 40px; margin-top: 6px; }
.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; flex: 0 1 720px; }
.totals div { background: var(--surface); padding: 14px 18px; min-width: 0; }
.totals dt { font-size: 12px; color: var(--muted); }
.totals dd { margin: 0; font: 500 26px var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.totals dd small { font-size: 16px; color: var(--muted); }
.totals .t-live { color: var(--live); }
.totals .t-warn { color: var(--warn); }
.home-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.home-grid .projects { flex: 999 1 640px; min-width: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 16px; }
.home-aside { flex: 1 1 340px; min-width: 0; display: grid; gap: 16px; }
.project-card { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--line); }
.project-card:hover { border-color: var(--line-strong); }
.project-card .pc-head { display: flex; align-items: center; gap: 12px; }
.pc-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--pc, var(--brand)); flex: none; }
.pc-name { flex: 1; min-width: 0; display: grid; }
.pc-name b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-name small { font: 12px var(--mono); color: var(--muted); }
.pc-pct { font: 500 28px var(--mono); letter-spacing: -0.03em; }
.pc-pct small { font-size: 14px; color: var(--muted); }
.segs { display: flex; gap: 3px; height: 8px; }
.segs > span { flex: 1 1 0; background: var(--todo-soft); border-radius: 2px; overflow: hidden; display: flex; min-width: 2px; }
.segs i { background: var(--live); }
.segs i.full { background: var(--brand); }
.pc-now, .pc-idle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; min-width: 0; }
.pc-now { border: 1px solid var(--line); }
.pc-now i, .pc-idle i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.pc-now .mono { font-size: 12px; color: var(--muted); flex: none; }
.pc-now .pc-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-now em { font: 500 11px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); flex: none; }
.pc-now.is-live { background: var(--live-soft); border-color: var(--live-line); }
.pc-now.is-live i { background: var(--live); animation: live-pulse 1.6s ease-out infinite; }
.pc-now.is-live .mono { color: var(--live); }
.pc-idle { border: 1px dashed var(--line-strong); color: var(--muted); }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 var(--live-line); } 100% { box-shadow: 0 0 0 8px transparent; } }
.project-card .pc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; font-size: 12px; }
.pc-meta > span { display: grid; min-width: 0; }
.pc-meta small { color: var(--muted); font-size: 12px; }
.pc-meta b { font: 500 13px var(--mono); color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-meta b.ko { color: var(--fail); }
.blockers { display: grid; gap: 12px; }
.blockers a { display: flex; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none; font-size: 14px; }
.blockers a:hover .mono { color: var(--fg); }
.lvl { font: 600 11px var(--mono); padding: 2px 6px; border-radius: 5px; flex: none; margin-top: 1px; }
.lvl-CRITICAL, .lvl-MAJOR { background: var(--fail-soft); color: var(--fail); }
.lvl-BLOCKING { background: var(--warn-soft); color: var(--warn); }
.direct { display: inline-flex; align-items: center; gap: 6px; font: 400 12px var(--font); letter-spacing: 0; text-transform: none; color: var(--muted); }
.direct i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.feed li:first-child { border-top: 0; padding-top: 0; }
.feed time { font: 12px var(--mono); color: var(--muted); }
.feed a.mono { font-size: 12px; text-decoration: none; }
@media (max-width: 720px) { .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; } .home-head h1 { font-size: 32px; } }

/* Tableau de bord (SC-003) */
.dash-kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 400; }
.kpi .big { font: 500 30px var(--mono); letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; }
a.kpi { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
a.kpi:hover { border-color: var(--line-strong); }
.kpi-ring { display: flex; gap: 20px; align-items: center; }
.kpi-ring .big { font-size: 22px; }
.ring { width: 112px; height: 112px; flex: none; }
.ring-bg { fill: none; stroke: var(--todo-soft); stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--brand); stroke-width: 8; stroke-linecap: round; }
.ring text { font: 500 24px var(--mono); fill: var(--fg); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; }
.lot-ref { color: var(--brand-strong); }
.peek { display: grid; gap: 6px; font-size: 13px; }
.pk { display: flex; gap: 8px; align-items: center; min-width: 0; }
.pk i { width: 14px; height: 14px; flex: none; display: grid; place-items: center; font: 700 11px var(--font); font-style: normal; color: var(--brand); }
.pk-IN_PROGRESS i::before, .pk-TODO i::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.pk-IN_PROGRESS i::before { background: var(--live); }
.pk.is-live i::before { animation: live-pulse 1.6s ease-out infinite; }
.pk .mono { color: var(--muted); flex: none; font-size: 12px; }
.pk-IN_PROGRESS .mono { color: var(--live); }
.pk-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-DONE .pk-t { color: var(--muted); }
.sevbar { display: flex; gap: 3px; height: 8px; }
.sevbar i { border-radius: 2px; flex: 1 1 0; }
.s-CRITICAL { background: var(--fail); } .s-MAJOR { background: #ef4444; } .s-MINOR { background: var(--warn); } .s-INFO { background: var(--line-strong); }
.sevleg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.sevleg b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dash-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.dash-grid > .card { flex: 999 1 520px; min-width: 0; }
.dash-side { flex: 1 1 320px; min-width: 0; display: grid; gap: 16px; }
.ep { grid-template-columns: 84px minmax(0, 1fr) 140px 56px; gap: 14px; padding: 7px 8px; }
.ep:hover { background: var(--todo-soft); }
.ep.cur { background: var(--live-soft); }
.ep .name em { color: var(--live); background: none; }
.ep .bar { height: 6px; border-radius: 3px; background: var(--todo-soft); }
.ep .count { font: 12px var(--mono); }
.ep.full .count { color: var(--brand-strong); }
.sn { display: grid; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); color: inherit; text-decoration: none; }
.sn:hover { border-color: var(--line-strong); }
.sn-top { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sn-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.sn-ref { color: var(--warn); }
.sn-st { margin-left: auto; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.sn-t { font-weight: 500; margin-bottom: 4px; }
.ticks { display: flex; gap: 3px; height: 4px; }
.ticks i { flex: 1 1 0; border-radius: 2px; background: var(--line-strong); }
.ticks i.on { background: var(--brand); }
.sn-sub { font-size: 12px; }
.live-note { display: none; }
.sn.is-live { background: var(--live-soft); border-color: var(--live-line); }
.sn.is-live .sn-top i { background: var(--live); animation: live-pulse 1.6s ease-out infinite; }
.sn.is-live .sn-ref { color: var(--live); }
.sn.is-live .live-note { display: inline; }
.tests-card { color: inherit; text-decoration: none; display: block; }
.tests-card:hover { border-color: var(--line-strong); }
.suites { display: grid; gap: 12px; }
.suite { display: grid; grid-template-columns: 84px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: 12px; }
.suite-r { display: grid; gap: 4px; color: var(--muted); }
.cov { height: 4px; border-radius: 2px; background: var(--todo-soft); display: flex; overflow: hidden; }
.cov i { background: var(--brand); }
.suite-c { text-align: right; }

/* Tickets (SC-005) : une colonne par étape, défilement horizontal si l'écran est étroit. */
.board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; padding-bottom: 6px; }
.column { border-radius: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.column h2 { font-size: 12px; }
.column .count { font: 12px var(--mono); }
.tk { border-radius: 12px; }
.tk:hover { border-color: var(--line-strong); }
.tk-title { font-weight: 500; font-size: 14px; }
.tk-bar i { background: var(--live); }
.tk-DONE .tk-bar i { background: var(--brand); }
.tk-times { background: var(--inset); }
.grp-h { color: var(--fg-2); border-bottom: 1px solid var(--line-strong); font-weight: 600; }
@media (max-width: 1280px) { .board { grid-template-columns: none; } }
@media (max-width: 640px) { .board { grid-template-columns: none; grid-auto-columns: minmax(260px, 86%); } }

/* Fiche story (SC-006) : puces, frise des étapes */
.story-head .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.story-head .chips .chip { text-decoration: none; color: var(--fg-2); }
.story-head .chips .lot-chip { color: var(--brand-strong); }
.story-head .chips .pill { font-size: 12px; padding: 4px 10px; }
.is-live .chips > .live-chip { display: inline-flex; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stepper li { flex: 1 1 120px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stepper i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--font); font-style: normal; border: 1.5px solid var(--line-strong); flex: none; }
.stepper .sp-done { color: var(--fg-2); }
.stepper .sp-done i { background: var(--brand); border-color: var(--brand); color: var(--on-strong); }
.stepper .sp-now { color: var(--live); border-color: var(--live-line); background: var(--live-soft); }
.stepper .sp-now i { border-color: var(--live); }
.stepper .sp-now i::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: live-pulse 1.6s ease-out infinite; }
.prose code { background: var(--inset); }
.prose h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--fg); }
.prose h3 { font-weight: 600; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }

@media (max-width: 820px) {
  .card { padding: 16px; }
  main { padding: 20px 16px 48px; }
  h1 { font-size: 28px; }
  .ep { grid-template-columns: 62px minmax(0, 1fr) 48px; }
}

/* Téléphone (maquette « Project sur téléphone ») : en-tête compact, menu en panneau, onglets en bas. */
.mbar, .tabbar, .scrim, .t-short { display: none; }
@media (max-width: 820px) {
  .mbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; padding: 12px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .mbar-logo { padding: 0; }
  .mbar-logo svg { width: 26px; height: 26px; }
  .mbar-title { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; color: var(--fg); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar-menu { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); cursor: pointer; }
  .mbar-menu:hover { color: var(--fg); }
  .mbar-menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .side { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(300px, 86vw); height: auto; background: var(--surface); border-right: 1px solid var(--line); box-shadow: var(--shadow-lg); padding-bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
  .nav-open .side { transform: none; visibility: visible; transition: transform .2s ease; }
  .side nav a { padding: 11px 10px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(14, 17, 22, .32); }
  .scrim[hidden] { display: none; }
  .nav-open { overflow: hidden; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; z-index: 20; inset: auto 0 0 0; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; min-height: 44px; font-size: 11px; color: var(--muted); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--brand-strong); }
  .tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tb-n { position: absolute; top: 0; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--todo-soft); color: var(--fg-2); font: 600 10px/16px var(--mono); text-align: center; }
  .tb-n.urgent { background: var(--fail); color: var(--on-strong); }
  main { padding: 16px 16px calc(88px + env(safe-area-inset-bottom)); }
  h1 { font-size: 28px; }

  /* Accueil : totaux sur une ligne, cartes resserrées. */
  .home-head { gap: 14px; }
  .home-head h1 { font-size: 28px; margin-top: 2px; }
  .totals { grid-template-columns: repeat(4, minmax(0, 1fr)); flex-basis: 100%; border-radius: 14px; }
  .totals div { padding: 10px 12px; }
  .totals dt { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .totals dd { font-size: 20px; }
  .totals dd small, .t-long, .hide-m { display: none; }
  .t-short { display: inline; }
  .home-grid { gap: 14px; }
  .home-grid .projects { gap: 8px; }
  .project-card { gap: 10px; padding: 14px; border-radius: 14px; }
  .project-card .pc-name small, .pc-idle { display: none; }
  .project-card .pc-meta { display: flex; gap: 14px; }
  .pc-meta > span { display: flex; gap: 4px; align-items: baseline; }
  .pc-meta small { font-size: 11px; }
  .pc-meta b { font-size: 11px; }
}
@media (max-width: 820px) {
  .pc-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
  .pc-pct { font-size: 18px; }
  .pc-pct small { font-size: 12px; }
  .project-card .segs { height: 6px; }
}
@media (max-width: 820px) {
  .head-actions .btn { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
  /* Filtres des tickets : recherche en tête, epic et lot côte à côte, intitulés lus par les lecteurs d'écran. */
  .filters:has(#f-text) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
  .filters:has(#f-text) label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .filters:has(#f-text) .grow { grid-column: 1 / -1; order: -1; }
  .filters:has(#f-text) label:has(> select) { min-width: 0; }
  .filters:has(#f-text) select { width: 100%; }
  .filters:has(#f-text) #f-count { align-self: center; font-size: 13px; }
  .filters:has(#f-text) .views { justify-self: end; }
}
@media (max-width: 820px) {
  .stepper { flex-wrap: nowrap; gap: 4px; }
  .stepper li { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 6px; padding: 8px 2px; font-size: 9.5px; letter-spacing: .02em; text-align: center; }
}
