/* Démo « une nuit, un lead » — reprend les jetons de ../styles.css */
/* overflow-x: clip (pas hidden) : la barre d'étapes peut rester collée en bas (position: sticky) */
body.demo { --acc: #1D9E75; --acc-bg: rgba(29, 158, 117, .1); min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.demo [data-at] { transition: opacity .45s ease, transform .45s ease; }
.demo [data-at]:not(.is-in) { opacity: 0; transform: translateY(6px); pointer-events: none; }
.demo [data-until].is-gone { display: none; }

/* ---- barre du haut ---- */
.d-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
.d-clock { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.d-day { font: 400 12.5px var(--font-n); color: var(--muted); }
.d-hour { font: 500 26px var(--font-n); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.d-ctrl { display: flex; gap: 6px; justify-self: end; }
.d-btn { all: unset; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.d-btn:hover { border-color: var(--ink); }
.d-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.d-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d-btn .i-play { display: none; }
.is-paused .d-btn .i-play { display: block; }
.is-paused .d-btn .i-pause { display: none; }

/* ---- scène ---- */
.d-stage { flex: 1; display: grid; grid-template-columns: minmax(280px, 330px) 1fr minmax(360px, 460px); gap: clamp(16px, 2.5vw, 40px); padding: 22px var(--pad) 10px; max-width: 1500px; width: 100%; margin: 0 auto; align-items: start; }
.d-who { display: flex; align-items: center; gap: 8px; font: 500 13px var(--font-n); color: var(--muted); margin: 0 0 10px; }
.d-who .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.d-who .dot.k { background: var(--ink); }

/* téléphone */
.phone { position: relative; height: min(640px, calc(100vh - 210px)); min-height: 460px; border: 1px solid var(--line-2); border-radius: 34px; background: var(--surface); padding: 10px; box-shadow: 0 30px 60px -36px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.ph-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 14px 8px; font: 500 12px var(--font-n); }
.ph-notch { width: 72px; height: 20px; border-radius: 12px; background: var(--ink); }
.ph-ico { width: 22px; height: 10px; border: 1.5px solid var(--ink); border-radius: 3px; }
.ph-app { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 10px 10px; border-bottom: 1px solid var(--line); }
.ph-app b { font: 500 17px var(--font-h); letter-spacing: -0.02em; }
.ph-app small { color: var(--dim); font-size: 11px; }
.ph-feed { flex: 1; overflow-y: auto; scroll-behavior: smooth; padding: 10px 4px 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.ph-feed::-webkit-scrollbar { display: none; }
.ph-feed .msg:not(.is-in) { display: none; }
.ph-feed .msg.is-in { opacity: 1; transform: none; animation: dUp .45s ease; }
@keyframes dUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--bg); font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.msg.me { background: var(--surface-2); border-color: transparent; margin-left: 22px; }
.msg.now { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.msg-h { display: flex; justify-content: space-between; gap: 8px; font: 500 11px var(--font-n); color: var(--muted); margin-bottom: 4px; }
.msg-s { font: 500 12.5px var(--font-b); color: var(--ink); margin: 0 0 6px; }
.msg p { margin: 0 0 6px; }
.msg ul { margin: 0 0 6px; padding-left: 16px; }
.msg .lk { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.msg .fine { color: var(--dim); font-size: 10.5px; }
.slots { display: flex; flex-direction: column; gap: 5px; margin: 6px 0; }
.slots span { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; font: 500 11.5px var(--font-n); color: var(--ink); background: var(--surface); transition: background .3s, color .3s, border-color .3s; }
.slots span.pick { background: var(--acc); border-color: var(--acc); color: #fff; }
.msg-tag { display: inline-block; font: 500 10.5px var(--font-n); color: var(--acc); background: var(--acc-bg); border-radius: 6px; padding: 2px 6px; margin-bottom: 6px; }

/* centre : légende de l'étape + schéma du flux (hauteurs du titre et du sous-titre réservées par moteur.js) */
.d-side, .d-mid { position: relative; min-width: 0; }
.d-mid { text-align: center; align-self: start; padding: 8px 0 18px; }
.d-kicker { font: 500 12.5px var(--font-n); color: var(--acc); margin: 0 0 8px; letter-spacing: .01em; }
.d-title { font: 500 clamp(26px, 2.6vw, 38px)/1.1 var(--font-h); letter-spacing: -0.035em; margin: 0 auto 10px; max-width: 17ch; text-wrap: balance; }
.d-sub { color: var(--muted); max-width: 42ch; margin: 0 auto; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
/* d'une étape à l'autre, seuls les textes fondent ; le schéma reste en place et glisse vers l'état suivant */
.d-mid .d-kicker, .d-mid .d-title, .d-mid .d-sub, .fx-cap, .fx-jal { transition: opacity .22s ease, transform .22s ease; }
.d-mid.sort .d-kicker, .d-mid.sort .d-title, .d-mid.sort .d-sub, .d-mid.sort .fx-cap, .d-mid.sort .fx-jal { opacity: 0; transform: translateY(4px); }

/* schéma : trois personnages fixes (client ou tiers · agent · professionnel), le message qui passe de l'un à l'autre */
.d-flux { max-width: 520px; margin: 26px auto 0; padding: 18px 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.fx-row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); }
.fx-slot { display: grid; justify-items: center; min-width: 0; }
.fx-slot > * { grid-area: 1 / 1; }
.fx-node { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; max-width: 100%; padding: 0 4px; transition: opacity .4s ease; }
/* hors de l'étape : estompé, mais le cercle reste opaque (la ligne ne se voit pas au travers) */
.fx-node:not(.on) .fx-nom, .fx-node:not(.on) .fx-role, .fx-node:not(.on) .fx-ic svg { opacity: .4; }
.fx-nom, .fx-role, .fx-ic svg { transition: opacity .4s ease; }
.fx-node.cache { opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s; }
.fx-ic { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; background: var(--bg); border: 1.5px solid var(--line-2); transition: border-color .4s ease, background .4s ease, box-shadow .4s ease; }
.fx-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fx-ic svg .pl { fill: var(--acc); stroke: none; }
.fx-node[data-k="a"] .fx-ic { width: 58px; height: 58px; margin-top: -3px; margin-bottom: 3px; }
.fx-node[data-k="a"] .fx-ic svg { width: 28px; height: 28px; stroke-width: 2.2; }
.fx-node[data-k="a"].on .fx-ic { background: var(--ink); border-color: var(--ink); }
.fx-node[data-k="a"].on .fx-ic svg { stroke: var(--bg); }
.fx-node.on .fx-ic { border-color: var(--acc); }
.fx-node.dest .fx-ic { background: var(--acc-bg); box-shadow: 0 0 0 5px var(--acc-bg); }
.fx-nom { font: 500 13px var(--font-b); color: var(--ink); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-role { font: 400 11px var(--font-n); color: var(--dim); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* la ligne qui relie les trois, et le tronçon actif (flèche au bout) */
.fx-track { position: absolute; left: 0; right: 0; top: 26px; height: 0; }
.fx-track::before { content: ""; position: absolute; left: calc(100% / 6); right: calc(100% / 6); top: -1px; border-top: 2px dashed var(--line-2); }
.fx-seg { position: absolute; top: -1.5px; height: 3px; border-radius: 2px; background: var(--acc); transition: left .45s ease, width .45s ease, opacity .3s ease; }
.fx-seg::after { content: ""; position: absolute; top: 50%; right: 38px; width: 9px; height: 9px; border: solid var(--acc); border-width: 3px 3px 0 0; transform: translateY(-50%) rotate(45deg); }
.rtl .fx-seg::after { right: auto; left: 38px; transform: translateY(-50%) rotate(-135deg); }
.seul .fx-seg { opacity: 0; }
.fx-dot { position: absolute; top: -13px; left: var(--x0); width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--acc); display: grid; place-items: center; opacity: 0; box-shadow: 0 4px 10px -4px rgba(0,0,0,.35); }
.fx-dot svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.fx-dot.va { animation: fxVa 2.6s cubic-bezier(.45,.05,.35,1) .35s infinite; }
.is-paused .fx-dot.va { animation-play-state: paused; }
@keyframes fxVa {
  0% { left: var(--x0); opacity: 0; transform: scale(.6); }
  12% { opacity: 1; transform: scale(1); }
  62% { left: var(--x1); opacity: 1; transform: scale(1); }
  78%, 100% { left: var(--x1); opacity: 0; transform: scale(.6); }
}
/* l'agent travaille seul (lecture, tri, vérification) : un anneau qui tourne autour de lui */
.seul .fx-node[data-k="a"] .fx-ic::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--acc); border-right-color: var(--acc); animation: fxTourne 1.6s linear infinite; }
.is-paused .seul .fx-node[data-k="a"] .fx-ic::after { animation-play-state: paused; }
@keyframes fxTourne { to { transform: rotate(360deg); } }
.fx-cap { margin: 16px 0 0; min-height: 30px; display: flex; justify-content: center; }
.fx-lab { display: inline-flex; align-items: center; font: 500 13px var(--font-n); color: var(--acc); background: var(--acc-bg); border-radius: 999px; padding: 6px 14px; max-width: 100%; }
.fx-jal { list-style: none; padding: 0; margin: 10px 0 0; height: 40px; display: flex; justify-content: center; gap: 6px; }
.fx-jal li { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 40px; box-sizing: border-box; min-width: 52px; padding: 4px 8px; border: 1px dashed var(--line-2); border-radius: 8px; font: 500 11.5px var(--font-n); color: var(--muted); line-height: 1.25; }
.fx-jal li em { font: 400 10px var(--font-n); font-style: normal; color: var(--dim); }
.fx-jal li.ok { border-style: solid; border-color: var(--acc); color: var(--acc); }
.fx-jal li.ok em { color: var(--acc); }
.fx-jal li.x { color: var(--dim); text-decoration: line-through; }
.fx-jal li.x em { text-decoration: none; }

/* fenêtre agence */
.win { position: relative; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0,0,0,.3); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); font: 500 12px var(--font-n); color: var(--muted); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.win-bar span:first-of-type { margin-left: 8px; }
.blk { padding: 10px 14px; border-bottom: 1px solid var(--line); transition: background .4s; position: relative; }
.blk:last-child { border-bottom: 0; }
.blk.now { background: var(--acc-bg); }
.blk.now::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc); }
.blk-h { font: 500 11.5px var(--font-n); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.empty { color: var(--dim); font-size: 12.5px; }
.lead { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.lead-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.lead-top b { font: 500 14px var(--font-b); display: block; }
.lead-top small { color: var(--muted); font-size: 11.5px; }
.pill { font: 500 11px var(--font-n); border-radius: 999px; padding: 3px 8px; border: 1px solid var(--line-2); }
.pill.hot { color: #fff; background: var(--acc); border-color: var(--acc); }
.gauge { display: flex; align-items: center; gap: 8px; margin: 9px 0 7px; }
.gauge span { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); position: relative; overflow: hidden; }
.gauge span::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: var(--acc); border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.8,.2,1) .3s; }
.lead.is-in .gauge span::after { transform: scaleX(1); }
.gauge em { font: 500 12px var(--font-n); font-style: normal; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 6px; }
.chips li { font-size: 10.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; background: var(--surface); }
.lead-st { margin: 0; font: 500 11.5px var(--font-n); color: var(--muted); min-height: 1.3em; }
.lead-st .ok { color: var(--acc); }
.alert { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.al-sub { font: 500 13px var(--font-b); margin: 0 0 5px; }
.al-l { font-size: 11.5px; color: var(--ink-2); margin: 0 0 3px; }
.al-cta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 7px 0 0; }
.al-cta small { color: var(--dim); font-size: 10.5px; }
.btn-mini { font: 500 11px var(--font-b); color: var(--btn-fg); background: var(--btn-bg); border-radius: 6px; padding: 4px 8px; }
.sms { margin-top: 8px; font-size: 11.5px; color: var(--ink-2); border-left: 2px solid var(--ink); padding: 2px 0 2px 8px; }
.sms b { font: 500 10.5px var(--font-n); color: var(--muted); }
.cal-h, .cal-g { display: grid; grid-template-columns: 34px repeat(4, 1fr); gap: 3px; }
.cal-h span { font: 500 10.5px var(--font-n); color: var(--muted); text-align: center; }
.cal-g { grid-template-rows: repeat(5, 22px); margin-top: 4px; position: relative; }
.cal-g > * { grid-column: var(--c, 1); grid-row: var(--r) / span var(--h, 1); }
.cal-t { font: 400 10px var(--font-n); color: var(--dim); align-self: start; }
.cal-g i { font-style: normal; font-size: 10px; border-radius: 5px; padding: 2px 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.2; }
.cal-g .busy { background: var(--surface-2); color: var(--muted); }
.cal-g .slot { border: 1px dashed var(--acc); color: var(--acc); background: transparent; }
.cal-g .ev { background: var(--acc); color: #fff; z-index: 1; }
.cal-g .ev small { display: block; font-size: 9.5px; opacity: .85; }
.cal-g .slot.is-in.gone { opacity: 0; }

/* rail des étapes */
.d-rail { display: flex; gap: 6px; justify-content: center; padding: 10px var(--pad) 8px; flex-wrap: wrap; position: sticky; bottom: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); }
.d-rail button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 6px; width: clamp(60px, 9vw, 120px); font: 400 11px var(--font-n); color: var(--dim); text-align: left; }
.d-rail button::before { content: ""; height: 3px; border-radius: 2px; background: var(--line-2); background-image: linear-gradient(var(--acc), var(--acc)); background-repeat: no-repeat; background-size: var(--p, 0%) 100%; }
.d-rail button.done::before { --p: 100%; }
.d-rail button.now { color: var(--ink); }
.d-rail button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.d-foot { text-align: center; color: var(--dim); font-size: 11.5px; margin: 4px var(--pad) 14px; }

/* écran de fin */
.d-end { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); padding: var(--pad); animation: dIn .5s ease; }
.d-end[hidden] { display: none; }
.d-end-in { max-width: 760px; text-align: center; }
.d-end h2 { font: 500 clamp(30px, 4.4vw, 54px)/1.05 var(--font-h); letter-spacing: -0.04em; margin: 0 0 30px; }
.d-kpi { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.d-kpi li { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); text-align: left; }
.d-kpi b { display: block; font: 500 30px var(--font-n); letter-spacing: -0.03em; color: var(--acc); }
.d-kpi span { color: var(--muted); font-size: 13.5px; }
.d-pilot { color: var(--ink-2); font-size: 14px; margin: 0; }
@keyframes dIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- tablette / mobile ---- */
/* sur deux ou trois colonnes : la fenêtre a au plus la hauteur du téléphone et défile vers le bloc de l'étape */
@media (min-width: 701px) {
  .win { max-height: max(460px, min(640px, calc(100vh - 210px))); overflow-y: auto; scrollbar-width: thin; }
}
@media (max-width: 1280px) {
  .d-stage { grid-template-columns: minmax(270px, 300px) 1fr minmax(340px, 400px); }
  .fx-nom { font-size: 12px; }
}
@media (max-width: 1100px) {
  .d-stage { grid-template-columns: minmax(270px, 330px) 1fr; }
  .d-mid { grid-column: 1 / -1; grid-row: 1; align-self: start; padding-bottom: 6px; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .d-mid { display: grid; grid-template-columns: 1fr minmax(320px, 1fr); column-gap: 28px; align-items: center; text-align: left; }
  .d-mid > .d-kicker { grid-column: 1; grid-row: 1; align-self: end; }
  .d-mid > .d-title { grid-column: 1; grid-row: 2; margin-left: 0; margin-right: 0; }
  .d-mid > .d-sub { grid-column: 1; grid-row: 3; margin-left: 0; margin-right: 0; align-self: start; }
  .d-mid > .d-flux { grid-column: 2; grid-row: 1 / 4; margin: 0; width: 100%; }
}
@media (max-width: 700px) {
  .d-top { grid-template-columns: auto 1fr; }
  .d-clock { align-items: flex-end; }
  .d-ctrl { grid-column: 1 / -1; justify-self: center; }
  .d-stage { grid-template-columns: 1fr; padding-top: 16px; gap: 22px; }
  .d-title { font-size: 25px; }
  .d-sub { font-size: 14px; }
  .d-flux { padding: 14px 6px 12px; }
  .fx-ic { width: 44px; height: 44px; }
  .fx-ic svg { width: 20px; height: 20px; }
  .fx-node[data-k="a"] .fx-ic { width: 50px; height: 50px; }
  .fx-node[data-k="a"] .fx-ic svg { width: 24px; height: 24px; }
  .fx-track { top: 22px; }
  .fx-seg::after { right: 32px; }
  .rtl .fx-seg::after { left: 32px; }
  .fx-nom { font-size: 12px; line-height: 1.25; white-space: normal; text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.5em; overflow: hidden; text-overflow: clip; }
  .fx-lab { font-size: 12.5px; text-align: center; }
  .fx-jal li { min-width: 44px; padding: 3px 6px; }
  .phone { height: 480px; min-height: 0; }
  .d-kpi { grid-template-columns: 1fr; }
  /* la barre d'étapes reste visible en bas de l'écran */
  .d-rail { border-top: 1px solid var(--line); padding: 10px var(--pad) 12px; flex-wrap: nowrap; gap: 5px; }
  .d-rail button { flex: 1; width: auto; min-width: 0; height: 14px; justify-content: center; font-size: 0; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .demo [data-at], .gauge span::after, .slots span, .blk, .d-mid .d-kicker, .d-mid .d-title, .d-mid .d-sub, .fx-cap, .fx-jal, .fx-node, .fx-node.cache, .fx-ic, .fx-seg, .fx-nom, .fx-role, .fx-ic svg { transition: none; }
  .ph-feed { scroll-behavior: auto; }
  .d-end { animation: none; }
  .fx-dot.va, .seul .fx-node[data-k="a"] .fx-ic::after { animation: none; }
  .fx-dot.va { opacity: 0; }
  .ph-feed .msg.is-in, .blk > [data-at].is-in { animation: none; }
  .ph-feed, .win { scroll-behavior: auto; }
}

/* dans la fenêtre agence, ce qui n'est pas encore arrivé ne prend pas de place */
.blk > [data-at]:not(.is-in) { display: none; }
.blk > [data-at].is-in { animation: dUp .45s ease; }
@media (prefers-reduced-motion: reduce) { .blk > [data-at].is-in { animation: none; } }

/* ---- éléments communs aux autres niches (BTP…) ---- */
.demo .swap[data-at]:not(.is-in) { display: none; }   /* remplace un élément au lieu de réserver sa place */
.demo .pill { white-space: nowrap; }
.pj { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 8px; margin: 2px 0 6px; font: 500 11px var(--font-n); color: var(--ink); background: var(--surface); }
.pj::before { content: "PDF"; font: 500 9px var(--font-n); color: #fff; background: #c0392b; border-radius: 3px; padding: 1px 4px; }
.jal { list-style: none; padding: 0; margin: 8px 0 6px; display: grid; gap: 4px; }
.jal li { display: flex; justify-content: space-between; gap: 8px; font: 400 11.5px var(--font-n); color: var(--ink-2); border-bottom: 1px dashed var(--line); padding-bottom: 3px; }
.jal li:last-child { border-bottom: 0; }
.jal b { font-weight: 500; color: var(--ink); margin-right: 6px; }
.jal em { font-style: normal; color: var(--dim); }
.jal em.ok { color: var(--acc); }
.jal em.x { color: var(--dim); text-decoration: line-through; }
.btn-line-mini { font: 500 11px var(--font-b); color: var(--ink); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 7px; }
.al-q { font-size: 11.5px; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: 8px; margin: 4px 0; font-style: italic; }

/* ---- Syndics : pastille « urgent », photos jointes, comparatif des devis ---- */
.pill.rouge { color: #fff; background: #D64545; border-color: #D64545; }
.pj.img::before { content: "JPG"; background: var(--muted); }
.cmp { width: 100%; border-collapse: collapse; font: 400 11px var(--font-n); margin: 6px 0 4px; }
.cmp th, .cmp td { text-align: left; padding: 3px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp th { font-weight: 500; color: var(--ink); }
.cmp td { color: var(--ink-2); }
.cmp td:first-child { color: var(--muted); }
.cmp .att { color: var(--dim); font-style: italic; }

/* la barre de défilement (quand la fenêtre de l'entreprise s'allonge) ne doit pas décaler la page */
:root:has(body.demo) { scrollbar-gutter: stable; }
