/* pathos.apalala.be — feuille du site. Charte Apalala (tokens.css, recopié tel quel) en variante claire :
   le site est une page de bureau lue en journée ; les fragments d'interface (.ui) gardent le thème sombre
   de l'application Pathos, valeurs reprises des rampes sombres de apalala-tokens. */

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: var(--brick-color-text);
  --heading: var(--brick-color-primary-dark);
  --muted: #4a5b66;
  --line: #d9e3e9;
  --line-strong: var(--brick-color-border);
  --paper: var(--brick-color-surface);
  --ground: var(--brick-color-bg);
  --petrol: var(--brick-color-primary-dark);
  --petrol-mid: var(--brick-color-primary);
  --lime: var(--brick-color-accent);
  --abyss: #0a1219;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  /* Fragments d'interface : rampes sombres de apalala-tokens. */
  --ui-bg: #0d1721;
  --ui-surface: #111e29;
  --ui-line: #1e3341;
  --ui-line-strong: #27414f;
  --ui-text: #e6edf2;
  --ui-muted: #9fb4c1;
  --ui-faint: #5b7484;
  --ui-lime: #a3d948;
  --ui-crit: #ef4444;
  --ui-high: #f19a3e;
  --ui-med: #e7c64a;
  --ui-low: #78a3b6;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--brick-font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--brick-font-title); color: var(--heading); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--petrol-mid); }
code, pre, .mono { font-family: var(--brick-font-mono); font-size: 0.9em; }
::selection { background: color-mix(in srgb, var(--lime) 55%, transparent); color: var(--abyss); }
:focus-visible { outline: 2px solid var(--petrol-mid); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .ui :focus-visible { outline-color: var(--lime); }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; background: var(--petrol); color: #fff; border-radius: var(--brick-radius-sm); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--abyss); text-decoration: none; font-family: var(--brick-font-title); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; }
.brand small { font-family: var(--brick-font-sans); font-weight: 400; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0; padding-left: 12px; border-left: 1px solid var(--line); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: var(--brick-radius-sm); color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.nav-links a:hover { background: var(--ground); color: var(--petrol); }
.nav-links a[aria-current="page"] { color: var(--petrol); font-weight: 600; }
.nav-links .lang { border: 1px solid var(--line); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.04em; margin-left: 8px; }
.nav-links .cta-link { background: var(--petrol); color: #fff; margin-left: 8px; }
.nav-links .cta-link:hover { background: var(--abyss); color: #fff; }
@media (max-width: 960px) { .nav-section { display: none; } .brand small { display: none; } }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--brick-radius-sm); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--abyss); color: #fff; }
.btn-secondary { background: transparent; color: var(--petrol); border-color: var(--brick-color-border-strong); }
.btn-secondary:hover { background: var(--paper); color: var(--abyss); border-color: var(--petrol); }
.dark .btn-primary { background: var(--lime); color: var(--abyss); }
.dark .btn-primary:hover { background: #fff; color: var(--abyss); }
.dark .btn-secondary { color: #fff; border-color: rgb(255 255 255 / 0.35); }
.dark .btn-secondary:hover { background: rgb(255 255 255 / 0.08); color: #fff; border-color: #fff; }

/* ---------- Héros ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) var(--section); background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); letter-spacing: -0.025em; color: var(--abyss); }
.hero h1 span { color: var(--petrol-mid); }
.hero .lede { margin-top: 24px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero .actions { margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 0.9375rem; color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--petrol-mid); flex: none; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Fragments d'interface (thème sombre de l'application) ---------- */
.ui { background: var(--ui-bg); color: var(--ui-text); border: 1px solid var(--ui-line); border-radius: var(--brick-radius-lg); box-shadow: 0 24px 48px -24px rgb(10 18 25 / 0.45), 0 2px 6px rgb(10 18 25 / 0.12); font-size: 0.875rem; line-height: 1.45; overflow: hidden; }
.ui-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--ui-line); background: var(--ui-surface); }
.ui-bar strong { font-family: var(--brick-font-title); font-weight: 600; font-size: 0.9375rem; color: var(--ui-text); }
.ui-tag { font-size: 0.75rem; color: var(--ui-faint); }
.ui-body { padding: 18px; }
.ui-foot { padding: 10px 18px; border-top: 1px solid var(--ui-line); color: var(--ui-faint); font-size: 0.75rem; }
.ui code { color: var(--ui-text); font-size: 0.8125rem; }
.ui-muted { color: var(--ui-muted); }

/* Entonnoir du héros */
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.funnel li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; }
.funnel .label { color: var(--ui-muted); }
.funnel .count { font-family: var(--brick-font-mono); font-variant-numeric: tabular-nums; font-size: 1rem; color: var(--ui-text); }
.funnel .bar { grid-column: 1 / -1; height: 10px; border-radius: 3px; background: var(--ui-line); overflow: hidden; }
.funnel .bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--ui-low); transform-origin: left center; animation: grow 1100ms var(--ease-out) both; animation-delay: calc(var(--i) * 140ms + 200ms); }
.funnel li.kept .bar i { background: var(--ui-lime); }
.funnel li.kept .count { color: var(--ui-lime); }
.funnel li.debt .bar i { background: var(--ui-high); }
@keyframes grow { from { transform: scaleX(0.04); opacity: 0.4; } to { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .funnel .bar i { animation: none; } }

/* Pastilles */
.sev { display: inline-flex; align-items: center; justify-content: center; min-width: 4.6em; padding: 2px 8px; border-radius: 4px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.sev-crit { background: color-mix(in srgb, var(--ui-crit) 18%, transparent); color: #ff8a8a; }
.sev-high { background: color-mix(in srgb, var(--ui-high) 18%, transparent); color: #ffb870; }
.sev-med { background: color-mix(in srgb, var(--ui-med) 16%, transparent); color: #f0d77a; }
.layer { display: inline-block; padding: 1px 8px; border: 1px solid var(--ui-line-strong); border-radius: 999px; font-size: 0.6875rem; color: var(--ui-muted); white-space: nowrap; }
.chip-new { display: inline-block; padding: 1px 7px; border-radius: 4px; background: color-mix(in srgb, var(--ui-lime) 16%, transparent); color: var(--ui-lime); font-size: 0.6875rem; font-weight: 600; }

/* Tableaux de l'interface */
.ui-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ui-table th { text-align: left; font-weight: 500; font-size: 0.75rem; color: var(--ui-faint); padding: 0 10px 8px; border-bottom: 1px solid var(--ui-line); white-space: nowrap; }
.ui-table td { padding: 10px; border-bottom: 1px solid var(--ui-line); vertical-align: middle; }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table td:first-child, .ui-table th:first-child { padding-left: 0; }
.ui-table td:last-child, .ui-table th:last-child { padding-right: 0; text-align: right; }
.ui-table .muted-row td { color: var(--ui-faint); }
.ui-table .muted-row code { color: var(--ui-faint); text-decoration: line-through; text-decoration-color: var(--ui-line-strong); }
.ui-scroll { overflow-x: auto; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.02em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; max-width: var(--measure); }

/* Les trois questions */
.question { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.question:last-child { padding-bottom: 0; }
.question:nth-child(even) .question-text { order: 2; }
.question h3 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); letter-spacing: -0.015em; color: var(--abyss); }
.question p { margin-top: 16px; color: var(--muted); max-width: var(--measure); }
.question ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.question li { position: relative; padding-left: 26px; }
.question li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 2px; background: var(--petrol-mid); }
@media (max-width: 900px) { .question { grid-template-columns: 1fr; } .question:nth-child(even) .question-text { order: 0; } }

.diff-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ui-line); border: 1px solid var(--ui-line); border-radius: var(--brick-radius-sm); overflow: hidden; margin-bottom: 16px; }
.diff-cols div { background: var(--ui-surface); padding: 12px 14px; }
.diff-cols span { display: block; font-size: 0.75rem; color: var(--ui-faint); }
.diff-cols b { font-family: var(--brick-font-mono); font-weight: 500; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.diff-cols .up b { color: var(--ui-lime); }
.diff-list { list-style: none; margin: 0; padding: 0; }
.diff-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ui-line); }
.diff-list li:last-child { border-bottom: 0; }
.diff-list .sign { font-family: var(--brick-font-mono); width: 1.2em; text-align: center; }
.diff-list .plus { color: var(--ui-lime); }
.diff-list .minus { color: var(--ui-faint); }
.diff-list .where { color: var(--ui-muted); font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.debt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.debt-head b { font-family: var(--brick-font-mono); font-weight: 500; font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--ui-high); }
.progress { height: 8px; border-radius: 4px; background: var(--ui-line); overflow: hidden; margin-bottom: 18px; }
.progress i { display: block; height: 100%; width: 78%; background: var(--ui-lime); }
.decision { display: inline-block; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--ui-line-strong); font-size: 0.75rem; color: var(--ui-muted); white-space: nowrap; }
.decision.todo { border-color: color-mix(in srgb, var(--ui-high) 60%, transparent); color: #ffb870; }

/* ---------- Bande « preuve » ---------- */
.dark { background: var(--petrol); color: #e9f1f4; }
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p { color: #c6d8df; }
.dark a { color: #fff; }
.evidence-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.evidence-points { display: grid; gap: 28px; }
.evidence-points h3 { font-size: 1.1875rem; }
.evidence-points p { margin-top: 8px; color: #c6d8df; max-width: var(--measure); }
@media (max-width: 960px) { .evidence-grid { grid-template-columns: 1fr; } }

.fiche .ui-bar strong code { font-family: var(--brick-font-mono); font-size: 0.9375rem; }
.proposal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--ui-high) 45%, transparent); background: color-mix(in srgb, var(--ui-high) 8%, transparent); border-radius: var(--brick-radius-sm); margin-bottom: 18px; }
.proposal span { font-size: 0.75rem; color: var(--ui-muted); }
.proposal strong { font-family: var(--brick-font-title); font-weight: 600; font-size: 1.0625rem; color: #ffb870; }
.confidence { grid-row: 1 / 3; grid-column: 2; text-align: right; }
.confidence b { display: block; font-family: var(--brick-font-mono); font-weight: 500; font-size: 1.5rem; color: var(--ui-text); font-variant-numeric: tabular-nums; }
.trace { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; }
.trace dt { color: var(--ui-faint); font-size: 0.8125rem; }
.trace dd { margin: 0; overflow-wrap: anywhere; }
.trace .hit { color: var(--ui-lime); }
.fiche-other { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--ui-line-strong); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; color: var(--ui-muted); }

/* ---------- Sources et fonctionnalités ---------- */
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin: 0; }
.feature-list div { padding: 24px 0; border-top: 1px solid var(--line); }
.feature-list dt { font-family: var(--brick-font-title); font-weight: 600; font-size: 1.0625rem; color: var(--abyss); display: flex; align-items: center; gap: 12px; }
.feature-list dt svg { width: 22px; height: 22px; color: var(--petrol-mid); flex: none; }
.feature-list dd { margin: 8px 0 0 34px; color: var(--muted); max-width: var(--measure); }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Sécurité : fiche technique ---------- */
.spec { background: var(--paper); border-block: 1px solid var(--line); }
.spec-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }
.spec-table th { width: 32%; padding-right: 24px; font-weight: 600; color: var(--abyss); font-size: 0.9375rem; }
.spec-table td { color: var(--muted); }
@media (max-width: 860px) { .spec-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .spec-table th, .spec-table td { display: block; width: auto; } .spec-table th { padding-bottom: 4px; border-bottom: 0; } .spec-table td { padding-top: 0; } .spec-table tr:first-child td { border-top: 0; } }

/* ---------- Déploiement ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; max-width: 54rem; }
.steps > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; counter-increment: step; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--brick-color-border-strong); color: var(--petrol); font-weight: 600; font-size: 0.875rem; }
.steps h3 { font-size: 1.125rem; color: var(--abyss); padding-top: 4px; }
.steps p { margin-top: 6px; color: var(--muted); }
.code { position: relative; margin-top: 12px; background: var(--abyss); color: #e6edf2; border-radius: var(--brick-radius); }
.code pre { margin: 0; padding: 16px 18px; padding-right: 88px; overflow-x: auto; font-size: 0.8125rem; line-height: 1.7; }
.code .p { color: var(--ui-faint); user-select: none; }
.code .c { color: var(--ui-faint); }
.copy { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--ui-line-strong); background: var(--ui-surface); color: var(--ui-muted); font: 500 0.75rem var(--brick-font-sans); cursor: pointer; }
.copy:hover { color: #fff; border-color: var(--ui-muted); }
.copy[data-done] { color: var(--ui-lime); border-color: var(--ui-lime); }
.deploy-note { margin-top: 32px; max-width: 54rem; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Offre ---------- */
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--brick-radius-lg); background: var(--paper); overflow: hidden; }
.offer > div { padding: clamp(28px, 4vw, 48px); }
.offer > div + div { border-left: 1px solid var(--line); background: var(--ground); }
.offer h3 { font-size: 1.5rem; color: var(--abyss); }
.offer .price { margin-top: 6px; font-weight: 600; color: var(--petrol); }
.offer ul { margin: 24px 0 28px; padding: 0; list-style: none; display: grid; gap: 12px; }
.offer li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--ink); }
.offer li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--petrol-mid); }
.offer small { display: block; margin-top: 16px; color: var(--muted); font-size: 0.875rem; }
@media (max-width: 820px) { .offer { grid-template-columns: 1fr; } .offer > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--abyss); color: #c3d2db; padding-block: 56px 32px; font-size: 0.9375rem; }
.site-footer a { color: #e6edf2; text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-grid address { font-style: normal; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid h2 { font-family: var(--brick-font-sans); font-size: 0.8125rem; font-weight: 600; color: #8aa3b2; margin-bottom: 14px; }
.footer-logo { height: 32px; width: auto; margin-bottom: 16px; }
.footer-grid p + p, .footer-grid p + address, .footer-grid address + p { margin-top: 4px; }
.footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid #1e3341; color: #8aa3b2; font-size: 0.875rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Pages de texte (confidentialité, 404) ---------- */
.prose { max-width: 48rem; padding-block: clamp(48px, 7vw, 88px) var(--section); }
.prose h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.02em; color: var(--abyss); }
.prose h2 { font-size: 1.375rem; margin-top: 48px; }
.prose h3 { font-size: 1.0625rem; margin-top: 28px; color: var(--abyss); }
.prose p, .prose ul, .prose table { margin-top: 14px; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose .updated { color: var(--muted); font-size: 0.9375rem; margin-top: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--abyss); }
.prose code { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 0.85em; }
.not-found { min-height: 52vh; display: grid; align-content: center; }
.not-found .actions { margin-top: 28px; }

/* Largeurs de l'entonnoir (pas d'attribut style : la CSP l'interdit). */
.funnel .w-all { --w: 100%; --i: 0; }
.funnel .w-used { --w: 24%; --i: 1; }
.funnel .w-new { --w: 4%; --i: 2; }
.funnel .w-debt { --w: 10%; --i: 3; }

/* Petits écrans : en-têtes de panneau sur une ligne, identifiants longs coupés proprement. */
.ui-bar strong { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-tag { white-space: nowrap; }
.ui dd code, .fiche-other code { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .fiche-other { grid-template-columns: 1fr; }
  .ui-body { padding: 14px; }
  .ui-bar { padding: 10px 14px; }
}
