/* GEC Digital dans la peau de la Bayes Platform.
   Les valeurs viennent de website ▸ packages/platform-kit/tokens.json (neutres shadcn en oklch, rayon
   0.625rem, police système), recopiées ici en variables --pk-* parce que la page est autonome.
   La seule marque de PPI : son logo, et son bleu comme couleur primaire du thème. */
:root {
  --pk-radius: 0.625rem;
  --pk-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pk-bg: oklch(1 0 0);
  --pk-fg: oklch(0.145 0 0);
  --pk-muted: oklch(0.97 0 0);
  --pk-muted-fg: oklch(0.556 0 0);
  --pk-border: oklch(0.922 0 0);
  --pk-input: oklch(0.922 0 0);
  --pk-ring: oklch(0.708 0 0);
  --pk-destructive: oklch(0.577 0.245 27.325);
  --pk-sidebar: oklch(0.985 0 0);
  --pk-primary: #2180ad;
  --pk-primary-soft: #e8f2f8;
  --pk-primary-fg: #fff;
  --pk-ok: #15803d; --pk-ok-soft: #dcfce7;
  --pk-warn: #b45309; --pk-warn-soft: #fef3c7;
  --pk-bad-soft: #fee2e2;
  --pk-agent: #0d9488; --pk-agent-soft: #ccfbf1;
}
* { box-sizing: border-box; }
/* clip, not hidden: hidden on both html and body makes body a scroll container that never scrolls, and the sticky sidebar then scrolls away with the page. */
html, body { margin: 0; overflow-x: clip; }
body { font: 14px/1.5 var(--pk-font); color: var(--pk-fg); background: var(--pk-sidebar); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--pk-muted-fg); }
.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bx { width: 14px; height: 14px; flex: none; vertical-align: -2px; }

/* Coquille : la barre latérale et le panneau encastré du studio */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 14px 10px; gap: 2px; overflow-y: auto; }
.org { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.org img { width: 40px; height: 28px; object-fit: contain; }
.org b { display: block; font-size: 16px; line-height: 1.2; }
.org span { color: var(--pk-primary); font-size: 14px; }
.sec { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--pk-muted-fg); padding: 14px 10px 6px; display: flex; align-items: center; gap: 6px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: oklch(0.3 0 0); white-space: nowrap; }
.nav:hover { background: var(--pk-muted); }
.nav.on { background: oklch(0.955 0 0); font-weight: 600; color: var(--pk-fg); }
.nav .cpt { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--pk-warn-soft); color: var(--pk-warn); border-radius: 99px; padding: 0 7px; }
.side hr { border: 0; border-top: 1px solid var(--pk-border); margin: 8px 10px; }
/* L'espace membre : la membre ne voit que son espace, l'équipe ne le voit pas. */
body:not(.membre) .nav-membre { display: none; }
body.membre .side .nav:not(.nav-membre), body.membre .side .sec, body.membre .side hr { display: none; }
/* Le sélecteur de compte, comme celui du studio : avatar, nom et rôle sur deux lignes, chevron, menu. */
.compte { margin-top: auto; position: relative; padding: 8px 0 2px; }
.compte-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; color: var(--pk-fg); font: inherit; }
.compte-btn:hover, .compte-btn[aria-expanded="true"] { background: var(--pk-muted); }
.compte-btn:focus-visible, .menu button:focus-visible { outline: 2px solid var(--pk-ring); outline-offset: 1px; }
.compte .av, .menu .av { width: 32px; height: 32px; border-radius: 8px; background: var(--pk-muted); color: var(--pk-fg); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.compte-btn .av { background: var(--pk-primary); color: var(--pk-primary-fg, #fff); }
.compte .txt, .menu .txt { min-width: 0; flex: 1; line-height: 1.25; }
.compte .txt b, .menu .txt b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte .txt small, .menu .txt small { display: block; font-size: 12px; color: var(--pk-muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte .chev { width: 16px; height: 16px; color: var(--pk-muted-fg); flex: none; }
.menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); background: var(--pk-bg); border: 1px solid var(--pk-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 4px; z-index: 40; animation: entre .15s ease both; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; font: inherit; color: var(--pk-fg); }
.menu button:hover { background: var(--pk-muted); }
.menu button .i { width: 16px; height: 16px; color: var(--pk-primary); flex: none; }
.interdit { opacity: .5; cursor: not-allowed !important; }
/* Les blocs fantômes, le temps que les données arrivent. */
.sk { background: linear-gradient(90deg, var(--pk-muted) 0%, color-mix(in srgb, var(--pk-muted) 55%, #fff) 50%, var(--pk-muted) 100%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; border-radius: 10px; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.sk-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sk-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sk-card { height: 96px; } .sk-band { height: 64px; margin-bottom: 14px; } .sk-box { height: 220px; } .sk-hero { height: 140px; }
.sk-pill { height: 34px; } .sk-tab { height: 30px; } .sk-tile { height: 64px; } .sk-sous { display: inline-block; width: 220px; height: 14px; vertical-align: middle; }
.sk-lines { display: grid; gap: 10px; } .sk-line { height: 40px; }
@media (max-width: 760px) { .sk-row, .sk-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sk-2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sk, #vue.attente::before, .menu { animation: none; } }
.inset { margin: 8px 8px 8px 0; background: var(--pk-bg); border: 1px solid var(--pk-border); border-radius: 14px; min-width: 0; display: flex; flex-direction: column;
  background-image: radial-gradient(oklch(0.9 0 0) 1px, transparent 1px); background-size: 18px 18px; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--pk-border); background: var(--pk-bg); border-radius: 14px 14px 0 0; position: sticky; top: 0; z-index: 5; }
.topbar .sep { width: 1px; height: 18px; background: var(--pk-border); }
.crumb { color: var(--pk-muted-fg); display: flex; gap: 8px; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; }
.crumb b { color: var(--pk-fg); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.topbar .esp { flex: 1; }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--pk-ok); background: var(--pk-ok-soft); border-radius: 99px; padding: 2px 10px; white-space: nowrap; }
button.sync { border: 0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.sync.off { color: #b45309; background: #fef3c7; }
.sync i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sim { font-size: 12px; color: var(--pk-muted-fg); white-space: nowrap; }
#vue { padding: 26px 28px 100px; min-width: 0; }

/* La carte de page : retour, titre, sous-titre, actions */
.page { background: var(--pk-bg); border: 1px solid var(--pk-border); border-radius: 14px; max-width: 1240px; margin: 0 auto; animation: entre .25s ease both; min-width: 0; }
@keyframes entre { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ph { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--pk-border); flex-wrap: wrap; }
.ph .back { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--pk-border); display: grid; place-items: center; flex: none; margin-top: 2px; background: var(--pk-bg); }
.ph .back:hover { background: var(--pk-muted); }
.ph .tt { min-width: 0; flex: 1 1 260px; }
.ph h1 { font-size: 24px; }
.ph p { margin: 2px 0 0; color: var(--pk-muted-fg); font-size: 16px; }
.ph .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pb { padding: 20px 22px; min-width: 0; }
.pb + .pb { border-top: 1px solid var(--pk-border); }

/* Primitives */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; background: var(--pk-primary); color: var(--pk-primary-fg); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, opacity .15s; }
.btn:hover { background: #1b6d94; }
.btn.out { background: var(--pk-bg); color: var(--pk-fg); border-color: var(--pk-border); }
.btn.out:hover { background: var(--pk-muted); }
.btn.ghost { background: transparent; color: var(--pk-fg); }
.btn.ghost:hover { background: var(--pk-muted); }
.btn.agent { background: var(--pk-agent-soft); color: #0f5f59; border-color: #99f6e4; }
.btn.agent:hover { background: #b5f5e8; }
.btn.danger { background: var(--pk-bg); color: var(--pk-destructive); border-color: #fecaca; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 0; background: transparent; cursor: pointer; color: var(--pk-muted-fg); }
.icon-btn:hover { background: var(--pk-muted); color: var(--pk-fg); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--pk-muted); color: oklch(0.35 0 0); white-space: nowrap; }
.badge.ok { background: var(--pk-ok-soft); color: var(--pk-ok); }
.badge.warn { background: var(--pk-warn-soft); color: var(--pk-warn); }
.badge.bad { background: var(--pk-bad-soft); color: var(--pk-destructive); }
.badge.pri { background: var(--pk-primary-soft); color: var(--pk-primary); }
.badge.agent { background: var(--pk-agent-soft); color: #0f5f59; }
.badge.outl { background: transparent; border: 1px solid var(--pk-border); }
.input { height: 36px; width: 100%; border: 1px solid var(--pk-input); border-radius: 8px; padding: 0 10px; background: var(--pk-bg); outline: none; min-width: 0; }
textarea.input { height: auto; min-height: 70px; padding: 8px 10px; resize: vertical; }
.input:focus { border-color: var(--pk-ring); box-shadow: 0 0 0 3px oklch(0.708 0 0 / .25); }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; min-width: 0; }
label.f small { color: var(--pk-muted-fg); font-weight: 400; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form .full { grid-column: 1 / -1; }
.seg { display: inline-flex; background: var(--pk-muted); border-radius: 8px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 6px; padding: 5px 12px; cursor: pointer; color: var(--pk-muted-fg); font-weight: 500; }
.seg button.on { background: var(--pk-bg); color: var(--pk-fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--pk-border); padding: 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 11px 12px; color: var(--pk-muted-fg); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs a.on { color: var(--pk-fg); border-bottom-color: var(--pk-fg); }
.card { border: 1px solid var(--pk-border); border-radius: 12px; background: var(--pk-bg); padding: 16px; min-width: 0; }
.card h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card .sub { color: var(--pk-muted-fg); font-size: 13px; margin-top: 2px; }
.card .ch { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.card .ch .esp { flex: 1; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g12 { grid-template-columns: minmax(250px, 1fr) minmax(0, 2.2fr); }
.stat .l { color: var(--pk-muted-fg); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 24px; font-weight: 600; margin: 4px 0 2px; }
.stat .d { font-size: 12.5px; color: var(--pk-muted-fg); }
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--pk-border); border-radius: 12px; }
.strip > div { padding: 12px 14px; border-left: 1px solid var(--pk-border); min-width: 0; }
.strip > div:first-child { border-left: 0; }
.strip .l { font-size: 12px; color: var(--pk-muted-fg); } .strip .v { font-weight: 600; font-size: 17px; }
.tw { overflow-x: auto; min-width: 0; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-weight: 500; color: var(--pk-fg); padding: 10px; border-bottom: 1px solid var(--pk-border); white-space: nowrap; font-size: 13.5px; }
.t td { padding: 10px; border-bottom: 1px solid var(--pk-border); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t .r { text-align: right; } .t td.num { white-space: nowrap; }
.t tr.clic { cursor: pointer; } .t tr.clic:hover td { background: oklch(0.985 0 0); }
.t tr.annule td { color: var(--pk-muted-fg); } .t tr.annule .barre { text-decoration: line-through; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who small { display: block; color: var(--pk-muted-fg); font-size: 12px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; font-size: 11.5px; color: #fff; flex: none; }
.tag { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--pk-muted); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.empty { text-align: center; padding: 34px 16px; color: var(--pk-muted-fg); }
.empty .i { width: 28px; height: 28px; margin-bottom: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input { width: auto; min-width: 140px; flex: 1 1 140px; max-width: 210px; }
.filters .search { max-width: 280px; flex: 2 1 200px; }
.bar { height: 6px; background: var(--pk-muted); border-radius: 99px; overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--pk-primary); border-radius: 99px; }
.bar.ok i { background: var(--pk-ok); } .bar.bad i { background: var(--pk-destructive); }
.feed { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--pk-border); }
.feed:first-child { border-top: 0; padding-top: 0; }
.feed .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--pk-muted); }
.feed .ic.agent { background: var(--pk-agent-soft); }
.feed p { margin: 0; font-size: 13.5px; } .feed small { color: var(--pk-muted-fg); font-size: 12px; }
.note { font-size: 12.5px; color: var(--pk-muted-fg); }
.callout { border: 1px solid #99f6e4; background: #f0fdfa; border-radius: 10px; padding: 10px 12px; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.callout.warn { border-color: #fde68a; background: #fffbeb; }
.callout.bad { border-color: #fecaca; background: #fef2f2; }

/* Groupe : la carte d'en-tête et les opérations sur caisse */
.ghead { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 12px; }
.ghead-4 { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); }
.ghead .main { background: linear-gradient(135deg, #0f3d5a, var(--pk-primary)); color: #fff; border-radius: 12px; padding: 16px; min-width: 0; }
.ghead .main .badge { background: rgba(255,255,255,.18); color: #fff; }
.ghead .main h2 { font-size: 22px; margin: 8px 0 2px; }
.ghead .main p { margin: 0; font-size: 13px; opacity: .85; }
.ops { display: flex; flex-direction: column; gap: 6px; }
.op { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--pk-border); border-radius: 10px; background: var(--pk-bg); cursor: pointer; text-align: left; width: 100%; }
.op:hover { background: var(--pk-muted); }
.op .oi { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.op b { display: block; font-weight: 600; } .op small { color: var(--pk-muted-fg); font-size: 12px; }

/* Réunion : la grille à cocher et son résumé */
.reunion { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.mc { border: 1px solid var(--pk-border); border-radius: 12px; padding: 10px; background: var(--pk-bg); transition: border-color .15s, background .15s, opacity .15s, box-shadow .3s; position: relative; min-width: 0; }
.mc.on { border-color: var(--pk-primary); background: #f7fbfd; }
.mc.off { opacity: .55; }
.mc .top { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.mc .top > div { min-width: 0; overflow: hidden; }
.mc .top b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc .ck { margin-left: auto; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--pk-ring); display: grid; place-items: center; flex: none; }
.mc.on .ck { background: var(--pk-primary); border-color: var(--pk-primary); color: #fff; }
.mc .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--pk-muted-fg); }
.mc.lu { box-shadow: 0 0 0 3px #99f6e4; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--pk-border); border-radius: 8px; overflow: hidden; }
.step button { width: 26px; height: 26px; border: 0; background: var(--pk-muted); cursor: pointer; }
.step b { width: 28px; text-align: center; color: var(--pk-fg); }
.mc input { width: 84px; height: 26px; border: 1px solid var(--pk-border); border-radius: 6px; padding: 0 6px; text-align: right; }
.resume { position: sticky; top: 76px; }
.resume .lgn { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--pk-border); }
.resume .tot { font-size: 22px; font-weight: 600; }

/* Assistant de création de membre : étapes et carte d'aperçu */
.wiz { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.steps { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pk-muted-fg); }
.steps span i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--pk-muted); }
.steps span.on { color: var(--pk-fg); font-weight: 600; } .steps span.on i { background: var(--pk-primary); color: #fff; }
.steps span.fait i { background: var(--pk-ok-soft); color: var(--pk-ok); }
.steps .trait { flex: 0 0 18px; height: 1px; background: var(--pk-border); }
.apercu { border-radius: 14px; overflow: hidden; border: 1px solid var(--pk-border); position: sticky; top: 76px; background: var(--pk-bg); }
.apercu .haut { background: linear-gradient(135deg, #0f3d5a, var(--pk-primary)); color: #fff; padding: 18px; text-align: center; }
.apercu .haut .av { width: 56px; height: 56px; font-size: 18px; background: rgba(255,255,255,.2); margin-bottom: 8px; }
.apercu dl { margin: 0; padding: 10px 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13px; }
.apercu dt { color: var(--pk-muted-fg); } .apercu dd { margin: 0; text-align: right; font-weight: 500; }
.choix { display: flex; gap: 6px; flex-wrap: wrap; }
.choix button { border: 1px solid var(--pk-border); background: var(--pk-bg); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.choix button.on { background: var(--pk-primary); border-color: var(--pk-primary); color: #fff; }
.choix button:disabled { opacity: .45; cursor: not-allowed; }

/* Dialogue et volet latéral */
.voile { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; display: grid; place-items: center; padding: 16px; animation: fondu .15s both; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
.dialog { background: var(--pk-bg); border-radius: 14px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.2); animation: entre .2s both; }
.dialog .dh { padding: 18px 20px 6px; display: flex; gap: 10px; align-items: flex-start; }
.dialog .dh p { margin: 2px 0 0; color: var(--pk-muted-fg); }
.dialog .db { padding: 12px 20px; }
.dialog .df { padding: 12px 20px 18px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--pk-bg); border-left: 1px solid var(--pk-border); z-index: 41; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.12); animation: glisse .22s ease both; }
@keyframes glisse { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .sh { padding: 16px 18px; border-bottom: 1px solid var(--pk-border); display: flex; align-items: center; gap: 10px; }
.sheet .sb { padding: 16px 18px; overflow: auto; flex: 1; }

/* Le bouton WhatsApp flottant et son téléphone */
/* Le bouton de l'assistant (passe Laws of UX du 2026-11-11, Paul : « le bouton WhatsApp n'est pas très
   beau ») : une pastille blanche qui dit ce qu'elle ouvre, l'icône WhatsApp à gauche et le signe Bayes
   nu devant « sur WhatsApp », jamais dans un disque (design-system ▸ 4). Jakob : l'icône que tout le
   monde reconnaît ; Hick et Fitts : le libellé visible au lieu d'une bulle au survol, une cible de
   52 px ; sur téléphone, l'icône seule, en rond. */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 1px solid var(--pk-border); background: var(--pk-bg); color: var(--pk-fg); cursor: pointer; box-shadow: 0 8px 24px rgba(15, 23, 42, .14), 0 1px 3px rgba(15, 23, 42, .08); transition: box-shadow .2s, transform .2s; font: inherit; text-align: left; }
.fab:hover { box-shadow: 0 12px 28px rgba(15, 23, 42, .18), 0 2px 4px rgba(15, 23, 42, .1); transform: translateY(-1px); }
.fab:focus-visible { outline: 2px solid var(--pk-primary, #2180ad); outline-offset: 3px; }
.fab-ic { width: 40px; height: 40px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex: none; }
.fab-txt { display: flex; flex-direction: column; line-height: 1.2; }
.fab-txt b { font-size: 14px; font-weight: 600; }
.fab-txt small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--pk-muted-fg); }
.fab-txt .bx { width: 12px; height: 12px; }
@media (max-width: 600px) { .fab { padding: 6px; gap: 0; } .fab-txt { display: none; } }
.tel-panel { position: fixed; right: 16px; bottom: 90px; z-index: 31; width: 380px; height: min(740px, calc(100vh - 110px)); border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.28); background: #111; animation: monte .25s ease both; }
@keyframes monte { from { transform: translateY(20px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.tel-panel iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Scanner */
.scan { position: relative; aspect-ratio: 4/3; background: #0b1b26; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan .cadre { width: 44%; aspect-ratio: 1; border: 3px solid var(--pk-primary); border-radius: 12px; position: relative; }
.scan .ligne { position: absolute; left: 28%; right: 28%; height: 2px; background: #5fd0ff; box-shadow: 0 0 12px #5fd0ff; animation: balaie 2s ease-in-out infinite; }
@keyframes balaie { 0%, 100% { top: 22%; } 50% { top: 76%; } }
.scan .etat { position: absolute; bottom: 12px; color: #fff; font-weight: 600; }

/* Graphiques */
.chart svg { width: 100%; height: auto; display: block; }
.chart .trace { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: trace 1.2s ease forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--pk-muted-fg); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.perm { text-align: center; }
.perm .i { color: var(--pk-ok); }
.toast { position: fixed; top: 18px; right: 18px; z-index: 60; background: var(--pk-bg); border: 1px solid var(--pk-border); border-radius: 10px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.12); font-weight: 500; animation: entre .2s both; max-width: 340px; }
.charge { display: flex; justify-content: center; gap: 6px; padding: 60px; }
.charge span { width: 8px; height: 8px; border-radius: 50%; background: var(--pk-ring); animation: saute 1s infinite; }
.charge span:nth-child(2) { animation-delay: .15s; } .charge span:nth-child(3) { animation-delay: .3s; }
@keyframes saute { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-6px); opacity: 1; } }
#vue.attente .page { opacity: .55; transition: opacity .2s .15s; }

@media (max-width: 1180px) {
  .g4, .ghead { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ghead .main { grid-column: 1 / -1; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .strip > div:nth-child(4) { border-left: 0; } .strip > div:nth-child(n+4) { border-top: 1px solid var(--pk-border); }
}
@media (max-width: 980px) { .g21, .g12, .g3, .reunion, .wiz { grid-template-columns: 1fr; } .resume, .apercu { position: static; } }
@media (max-width: 860px) {
  /* Passe Laws of UX du 2026-11-11 (Paul : « la top nav scroll beaucoup, plutôt un hamburger ») :
     Jakob, le menu derrière un hamburger à gauche et un tiroir, la convention des applications ;
     Hick, la barre du haut réduite à trois éléments (menu, page, état du réseau) ; Fitts, des cibles
     de 44 px ; Miller et région commune, le tiroir garde les sections nommées ; Doherty, le tiroir
     s'ouvre en 200 ms, sans animation si l'appareil la refuse. */
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(300px, 86vw); height: 100%; padding: 14px 10px; background: var(--pk-sidebar, #fafafa); border-right: 1px solid var(--pk-border); box-shadow: 8px 0 24px rgba(0, 0, 0, .12); transform: translateX(-105%); transition: transform .2s ease; visibility: hidden; }
  body.nav-ouvert .side { transform: none; visibility: visible; }
  body.nav-ouvert { overflow: hidden; }
  .voile-nav { position: fixed; inset: 0; z-index: 55; background: rgba(15, 23, 42, .35); }
  .nav { min-height: 44px; }
  .menu { position: fixed; left: 10px; right: auto; width: calc(min(300px, 86vw) - 20px); top: auto; bottom: 72px; }
  .inset { margin: 0; border-radius: 0; border-width: 0; }
  .topbar { border-radius: 0; position: sticky; top: 0; z-index: 30; padding: 8px 10px; gap: 8px; }
  .topbar .sep, #reinit { display: none; }
  #replier { width: 44px; height: 44px; }
  .topbar #replier .bureau { display: none; } .topbar #replier .mobile { display: inline; }
  body.nav-ouvert .fab, body.nav-ouvert .fab-lbl { display: none; }
  .topbar .crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .sync { min-height: 32px; }
  .side .reinit-tiroir { display: inline-flex; margin: 12px 10px 4px; justify-content: center; min-height: 44px; }
  .topbar .sim { display: none; }
  #vue { padding: 14px 10px 100px; }
  .g2, .g4, .ghead, .form { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div:nth-child(odd) { border-left: 0; } .strip > div:nth-child(n+3) { border-top: 1px solid var(--pk-border); }
  .strip > div:nth-child(4) { border-left: 1px solid var(--pk-border); }
  .ph { padding: 16px; } .pb { padding: 16px; } .tabs { padding: 0 10px; }
  .ph .actions { margin-left: 0; width: 100%; }
  .tel-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; }
  .fab { right: 14px; bottom: 14px; }
}

/* Passe Laws of UX du 2026-11-10. ux-pass: 2026-11-10 (Fitts, Tesler, esthétique et utilisabilité) */
.f .input { align-self: start; }
@media (max-width: 760px) {
  body.saisie .fab, body.saisie .fab-lbl { display: none; }
  .form[style] { grid-template-columns: 1fr !important; }
  .page { padding-bottom: 96px; }
}
/* Doherty : au-delà de quelques centaines de millisecondes, une barre dit que la page charge. */
#vue.attente::before { content: ''; position: fixed; top: 0; left: 0; height: 3px; width: 40%; z-index: 50; background: var(--pk-primary, #2180ad); animation: charge 1s ease-in-out infinite; }
@keyframes charge { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Passe mobile et tablette du 2026-11-10 (Paul : « mobile friendly, laws of UX, et aussi tablette »).
   ux-pass: 2026-11-10 (Fitts, Goal-gradient, Von Restorff) : sur un écran tactile, chaque cible fait
   au moins 44 px et les champs 16 px, sans quoi l'iPhone zoome à la saisie ; sous 980 px, le total
   et « Valider la réunion » restent collés en bas de l'écran pendant qu'on pointe les membres. */
.compact-only { display: none; }
@media (pointer: coarse) {
  .btn, .btn.sm { height: 44px; }
  .icon-btn { width: 44px; height: 44px; flex: none; }
  .seg button { min-height: 40px; padding: 8px 14px; }
  .tabs a { min-height: 44px; }
  .input, select.input, textarea { height: 44px; font-size: 16px; }
  textarea { height: auto; }
  .step button { width: 44px; height: 44px; font-size: 18px; }
  .step b { width: 36px; font-size: 16px; }
  .mc input { height: 40px; width: 104px; font-size: 16px; }
  .mc .ck { width: 28px; height: 28px; }
  .mc .top { min-height: 44px; }
  .nav { min-height: 40px; }
  .compte-btn { min-height: 44px; }
}
@media (max-width: 980px) {
  body.saisie .fab, body.saisie .fab-lbl { display: none; }
  .reunion .resume { position: sticky; top: auto; bottom: 0; z-index: 25; margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
  .reunion .resume > h3, .reunion .resume > div[style*="margin-top:10px"] { display: none; }
  .reunion .resume .lbl { margin-top: 0 !important; grid-column: 1; }
  .reunion .resume .tot { grid-column: 1; font-size: 20px; }
  .reunion .resume #valider { grid-column: 2; grid-row: 1 / 3; width: auto !important; margin: 0 !important; padding: 0 18px; }
  .reunion .resume .compact-only { display: inline; }
  .reunion .resume > p.note { display: none; }
}

/* Un rafraîchissement silencieux (changement de rôle, écriture depuis WhatsApp) ne rejoue pas l'entrée de la page. */
#vue.calme .page { animation: none; }

/* Le téléphone simple (SMS et USSD), 2026-11-11 */
.dumb { width: 260px; max-width: 100%; margin: 0 auto; background: #1f2933; border-radius: 28px; padding: 22px 18px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.dumb-ecran { background: #c9d8b6; color: #1b2a12; border-radius: 6px; min-height: 170px; padding: 10px 12px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.45; }
.dumb-ecran pre { margin: 0; white-space: pre-wrap; font: inherit; }
.dumb-saisie { margin-top: 6px; border-top: 1px dashed rgba(27,42,18,.4); padding-top: 4px; min-height: 18px; }
.dumb-touches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.dumb-touches button { min-height: 44px; border: 0; border-radius: 10px; background: #3e4c59; color: #fff; font-size: 18px; font-weight: 600; cursor: pointer; }
.dumb-touches button:active { background: #52606d; }
.dumb-bas { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.sms { background: var(--pk-muted, #f1f5f9); border-radius: 14px 14px 14px 4px; padding: 10px 12px; margin-top: 10px; font-size: 14px; line-height: 1.45; }

/* Le menu mobile : hors de son media query, ces éléments restent cachés. */
#replier .mobile { display: none; }
.reinit-tiroir { display: none; }
.voile-nav { display: none; }
body.nav-ouvert .voile-nav:not([hidden]) { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* Le signe Bayes qui travaille (2026-11-11), la grammaire du bloc Plateforme de la homepage :
   lignes beiges du centre vers chaque point, l'une après l'autre, et une onde sur le point atteint. */
.bx-anim { width: 16px; height: 16px; vertical-align: -3px; overflow: visible; color: #1a1a1a; flex: none; }
.btn .bx-anim { width: 16px; height: 16px; }
.bx-anim line { stroke: #dbccaf; stroke-width: 19; stroke-linecap: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; animation: bx-ligne 2.4s cubic-bezier(.4, 0, .2, 1) infinite; animation-delay: calc(var(--i) * .16s); }
.bx-anim circle { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: bx-point 2.4s ease-out infinite; animation-delay: calc(var(--i) * .16s + .22s); }
@keyframes bx-ligne { 0% { stroke-dashoffset: 1; } 30% { stroke-dashoffset: 0; } 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes bx-point { 0% { transform: scale(1); } 12% { transform: scale(1.2); } 30%, 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .bx-anim line, .bx-anim circle { animation: none; }
  .bx-anim line { stroke-dashoffset: 0; }
}

/* L'écran de connexion (2026-11-11) : la carte de l'outil actuel (identifiant, mot de passe, « Se
   souvenir de moi »), puis les comptes de démonstration, un clic chacun. */
body.deconnecte .app { visibility: hidden; }
/* Au démarrage, rien de l'application ne s'affiche avant que le serveur ait dit qui est connecté
   (2026-11-13, Paul : le tableau de bord apparaissait un instant avant l'écran de connexion). */
body.demarrage .app { visibility: hidden; }
.connexion { position: fixed; inset: 0; z-index: 90; overflow: auto; background: var(--pk-sidebar); display: grid; grid-template-columns: minmax(0, 420px); justify-content: center; align-content: start; padding: 6vh 16px 32px; box-sizing: border-box; }
.cx-carte { box-sizing: border-box; width: 100%; background: var(--pk-bg); border: 1px solid var(--pk-border); border-radius: 16px; padding: 28px 24px 20px; box-shadow: 0 12px 32px rgba(15, 23, 42, .08); display: flex; flex-direction: column; gap: 14px; }
.cx-logo { height: 44px; width: auto; align-self: flex-start; }
.cx-carte h1 { font-size: 20px; margin: 4px 0 0; }
.cx-sous { margin: -8px 0 4px; color: var(--pk-muted-fg); }
.cx-ligne { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.cx-souvenir { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.lien { border: 0; background: none; padding: 0; color: var(--pk-primary); cursor: pointer; font: inherit; }
.cx-err { margin: 0; color: var(--pk-destructive); font-size: 13px; }
.cx-go { height: 42px; justify-content: center; font-size: 15px; }
.cx-demo { border-top: 1px solid var(--pk-border); margin-top: 6px; padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.cx-demo-t { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--pk-muted-fg); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.cx-demo-t span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.cx-demo-t code { font-size: 12px; background: var(--pk-muted); padding: 1px 5px; border-radius: 4px; color: var(--pk-fg); }
.cx-compte { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; font: inherit; color: var(--pk-fg); }
.cx-compte:hover, .cx-compte:focus-visible { background: var(--pk-muted); outline: none; }
.cx-compte .txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cx-compte small { color: var(--pk-muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-compte .i { width: 16px; height: 16px; color: var(--pk-muted-fg); flex: none; }
.cx-pied { margin: 4px 0 0; font-size: 12px; color: var(--pk-muted-fg); text-align: center; }
.menu-tete { padding: 8px 8px 4px; font-size: 12px; color: var(--pk-muted-fg); }
.menu-sec { padding: 6px 8px 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--pk-muted-fg); border-top: 1px solid var(--pk-border); margin-top: 4px; }
.menu .sortir { border-top: 1px solid var(--pk-border); border-radius: 0 0 8px 8px; margin-top: 4px; }
.cx-compte .av { width: 32px; height: 32px; border-radius: 8px; background: var(--pk-primary-soft); color: var(--pk-primary); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.mdp-prov { font: 600 22px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-align: center; background: var(--pk-muted); border-radius: 10px; padding: 14px; margin: 4px 0; user-select: all; }

/* Parité de flux avec l'outil actuel (2026-11-11, references/2026-11-11-parite-flux-dna.md).
   ux-pass: 2026-11-11 (Jakob : les gestes et les mots appris en formation, menu en tuiles, bouton
   « Scanner carte » dans l'en-tête, pastille Local ou Synchronisé et bandeau hors ligne ; Hick : chaque
   rôle ne voit que ses tuiles ; Fitts : tuiles et bouton de 44 px au moins). Ces éléments valent dans
   les deux allures ; le thème PPI qui suit ne change que les couleurs et la mise en page. */
.ph-ic { display: none; }
.scan-carte { text-decoration: none; }
body.membre .scan-carte { display: none; }
.bandeau-hl { background: #fef3c7; color: #78350f; border-bottom: 1px solid #fde68a; padding: 8px 18px; font-size: 13px; font-weight: 500; }
.bandeau-hl[hidden] { display: none; }
.bandeau-ppi { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 14px 14px 0 0; background: linear-gradient(135deg, #0f3d5a, var(--pk-primary)); color: #fff; }
.bandeau-ppi img { width: 64px; height: auto; flex: none; }
.bandeau-ppi h1 { font-size: 22px; color: #fff; }
.bandeau-ppi p { margin: 4px 0 0; opacity: .9; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tuile { display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 16px; border: 1px solid var(--pk-border); border-radius: 12px; background: var(--pk-bg); }
.tuile:hover { border-color: var(--pk-primary); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.tuile:focus-visible { outline: 2px solid var(--pk-primary); outline-offset: 2px; }
.tuile-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--pk-primary-soft); color: var(--pk-primary); margin-bottom: 4px; }
.tuile-ic .i { width: 20px; height: 20px; }
.tuile b { font-size: 15px; }
.tuile small { color: var(--pk-muted-fg); font-size: 12.5px; }
.mini { border: 1px solid var(--pk-border); background: var(--pk-bg); border-radius: 6px; font-size: 12px; padding: 2px 8px; cursor: pointer; color: var(--pk-muted-fg); }
.mini.on { background: var(--pk-ok-soft); border-color: transparent; color: var(--pk-ok); font-weight: 600; }
.scan .etat.ok { color: #86efac; } .scan .etat.bad { color: #fca5a5; }
.scan .etat { left: 12px; right: 12px; text-align: center; }
@media (pointer: coarse) { .mini { min-height: 36px; padding: 4px 12px; } }
@media (max-width: 860px) {
  .scan-carte span { display: none; }
  .scan-carte { width: 44px; padding: 0; justify-content: center; }
  .bandeau-ppi { padding: 18px 16px; border-radius: 0; } .bandeau-ppi img { width: 48px; } .bandeau-ppi h1 { font-size: 18px; }
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tuile { min-height: 104px; padding: 12px; }
  .bandeau-hl { padding: 8px 10px; }
}

/* Le thème PPI : l'allure de l'outil sur lequel les groupes ont été formés trois jours (dossier DNA ▸
   UX/UI) : primaire teal, fond gris très clair, cartes blanches, titres précédés d'une icône carrée teal,
   tableaux larges dans une carte blanche, en-têtes de tableau en petites capitales grises, fiche groupe en
   dégradé bleu vers teal, total de la réunion dans une carte noire, actions en pied d'écran pour la saisie
   longue. Le teal du logo (≈ #1FA39A) sert aux aplats et aux icônes ; un teal plus sombre porte le texte
   blanc des boutons, pour un contraste d'au moins 4,5. Sans ses défauts connus : pas de cartes KPI
   saturées. L'allure Bayes Platform revient en retirant la classe theme-ppi du body. */
body.theme-ppi {
  --pk-primary: #13807a;
  --pk-primary-soft: #e3f4f2;
  --pk-ring: #1fa39a;
  --pk-sidebar: #f3f5f7;
  --ppi-teal: #1fa39a;
  --ppi-fond: #f3f5f7;
  --pk-agent-soft: #f6f1e7;
}
.theme-ppi .btn:hover { background: #0f6b65; }
.theme-ppi .btn.out:hover { background: var(--pk-muted); }
.theme-ppi .btn.danger:hover { background: #fef2f2; }
.theme-ppi .btn.agent { background: #f6f1e7; color: #5b4a2a; border-color: #e4d8c0; }
.theme-ppi .btn.agent:hover { background: #efe6d4; }
.theme-ppi .badge.agent, .theme-ppi .feed .ic.agent { background: #f6f1e7; color: #5b4a2a; }
.theme-ppi .callout { border-color: #d6e4e2; background: #f4faf9; }
.theme-ppi .callout.warn { border-color: #fde68a; background: #fffbeb; }
.theme-ppi .callout.bad { border-color: #fecaca; background: #fef2f2; }
.theme-ppi .inset { background: var(--ppi-fond); background-image: none; }
.theme-ppi .nav.on { background: var(--pk-primary-soft); color: #0f6b65; }
.theme-ppi .nav.on .i { color: var(--ppi-teal); }
.theme-ppi .page { background: transparent; border: 0; border-radius: 0; }
.theme-ppi .ph { border-bottom: 0; padding-bottom: 6px; align-items: center; }
.theme-ppi .ph .back { margin-top: 0; }
.theme-ppi .ph-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ppi-teal); color: #fff; flex: none; }
.theme-ppi .ph-ic .i { width: 20px; height: 20px; }
.theme-ppi .pb + .pb { border-top: 0; padding-top: 4px; }
.theme-ppi .tw { background: var(--pk-bg); border: 1px solid var(--pk-border); border-radius: 12px; }
.theme-ppi .card .tw, .theme-ppi .dialog .tw, .theme-ppi .sheet .tw { background: transparent; border: 0; border-radius: 0; }
.theme-ppi .t th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--pk-muted-fg); background: #fafbfc; }
.theme-ppi .card .t th { background: transparent; }
.theme-ppi .strip { background: var(--pk-bg); }
.theme-ppi .tabs { padding: 0 22px; }
.theme-ppi .tabs a.on { color: #0f6b65; border-bottom-color: var(--ppi-teal); }
.theme-ppi .seg { background: #e7ebef; }
.theme-ppi .ghead .main, .theme-ppi .apercu .haut { background: linear-gradient(135deg, #1e5fa8, var(--ppi-teal)); }
.theme-ppi .bandeau-ppi { background: var(--ppi-teal); border-radius: 14px; margin: 8px 22px 0; }
.theme-ppi .accueil .pb { padding-top: 18px; }
.theme-ppi .tuile-ic { background: var(--ppi-teal); color: #fff; }
.theme-ppi .mc.on { background: #f0faf9; border-color: var(--ppi-teal); }
.theme-ppi .mc.on .ck { background: var(--ppi-teal); border-color: var(--ppi-teal); }
.theme-ppi .mc.lu { box-shadow: 0 0 0 3px #e4d8c0; }
.theme-ppi .steps span.on i { background: var(--ppi-teal); }
.theme-ppi .choix button.on { background: var(--pk-primary); border-color: var(--pk-primary); }
.theme-ppi .bar i { background: var(--ppi-teal); }
.theme-ppi .scan .cadre { border-color: var(--ppi-teal); }
.theme-ppi .wiz .pied { position: sticky; bottom: 0; z-index: 4; background: var(--pk-bg); border: 1px solid var(--pk-border); border-radius: 12px; padding: 10px 12px; box-shadow: 0 -6px 18px rgba(15, 23, 42, .06); }
@media (min-width: 981px) {
  .theme-ppi .reunion .resume .lbl { background: #111827; color: #cbd5e1; margin-top: 14px !important; padding: 12px 14px 0; border-radius: 10px 10px 0 0; }
  .theme-ppi .reunion .resume .tot { background: #111827; color: #fff; padding: 0 14px 12px; border-radius: 0 0 10px 10px; }
}
@media (max-width: 860px) {
  .theme-ppi .bandeau-ppi { margin: 0; border-radius: 0; }
  .theme-ppi .tabs { padding: 0 10px; }
  .theme-ppi .ph-ic { display: none; }
}
.carte-test { display: grid; place-items: center; background: #fff; padding: 24px; border-radius: 12px; }
.carte-test svg { width: min(260px, 70vw); height: auto; }
/* Les montants des opérations (parité de flux avec l'outil actuel, 2026-11-11) : le pavé numérique du
   téléphone, les milliers espacés, et des montants rapides en grosses touches.
   ux-pass: 2026-11-11 (Fitts : touches de 48 px, le montant en 20 px ; Hick : six montants au plus,
   ceux que l'opération permet ; Jakob : le pavé et les montants rapides de l'outil appris en
   formation ; Postel : on tape comme on veut, les espaces se remettent seuls). */
.input.montant { height: 48px; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rapides { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.rapides button { min-height: 48px; border: 1px solid var(--pk-border); background: var(--pk-bg); border-radius: 10px; padding: 6px 10px; cursor: pointer; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rapides button small { font-weight: 400; font-size: 12px; color: var(--pk-muted-fg); }
.rapides button:hover { border-color: var(--pk-primary); }
.rapides button.on { background: var(--pk-primary); border-color: var(--pk-primary); color: #fff; }
.rapides button.on small { color: rgba(255, 255, 255, .85); }
#op-montant.trop { color: #b91c1c; }
.alerte-caisse { display: flex; flex-direction: column; align-items: flex-end; margin-top: 3px; color: #b45309; font-size: 11.5px; font-weight: 500; line-height: 1.3; }
.alerte-caisse span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.alerte-caisse span + span { font-weight: 400; }
.alerte-caisse .i { width: 13px; height: 13px; flex: none; }
@media (pointer: coarse) { .input.montant { height: 52px; font-size: 22px; } .rapides button { min-height: 52px; } }
/* Sous 980 px, la colonne de la réunion prenait la largeur de l'ordre du jour (ses boutons ne se coupent
   pas) et sortait de l'écran, coupée par le panneau : le tableau défile désormais dans sa carte. */
.reunion > * { min-width: 0; }
.cx-mode { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; }
.cx-mode button { min-height: 36px; }
.cx-equipe, .cx-membre { display: flex; flex-direction: column; gap: 14px; }
.cx-equipe[hidden], .cx-membre[hidden], .cx-demo[hidden] { display: none; }
.cx-aide { margin: -4px 0 0; font-size: 12px; color: var(--pk-muted-fg); }

/* Fluidité en réunion (2026-11-12) : toast avec action, recherche par N° ou prénom, paiement en nature, installation. */
.toast-action { display: flex; align-items: center; gap: 12px; }
.cherche-n, .om-cherche { display: flex; gap: 6px; align-items: center; flex: 2 1 220px; max-width: 320px; min-width: 0; }
.cherche-n .search { max-width: none; flex: 1 1 auto; min-width: 0; }
.om-cherche { flex: none; max-width: none; }
.om-cherche .input { flex: 1 1 auto; min-width: 0; }
.nature { border-left: 3px solid var(--pk-border); padding-left: 10px; }
.nature[hidden] { display: none; }
button.tuile { font: inherit; color: inherit; text-align: left; cursor: pointer; }
[data-installer][hidden] { display: none !important; }
.etapes-ios { margin: 0; padding-left: 20px; line-height: 1.9; }
@media (max-width: 600px) { .toast-action { left: 16px; right: 16px; max-width: none; } }
/* Le mode pilote, sur la vraie base (2026-11-12) : rien de la démonstration. */
body.pilote .cx-demo, body.pilote .cx-pied, body.pilote .cx-aide, body.pilote .sim, body.pilote #reinit, body.pilote #reinit2, body.pilote #oubli-demo { display: none !important; }

/* ── La tablette du groupe (2026-11-13) ─────────────────────────────────────────────────────────
   Paul : « sur tablette, avoir l'air natif », d'après ses photos de l'outil actuel sur la tablette
   d'un groupe à Tamatave : des écrans plein cadre, de grandes cibles, la saisie en plein écran avec
   un gros montant, un compteur − / + et des choix rapides en grandes tuiles, un bouton Valider sur
   toute la largeur en bas. Mêmes composants que la plateforme, à la taille d'un doigt. S'applique à
   body.tablette (app.js ▸ estTablette). */
body.tablette { font-size: 16px; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; touch-action: manipulation;
  /* Un appui long ne sélectionne pas l'interface (sur l'outil actuel, il ouvre « Traduire, Copier »). */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.tablette input, body.tablette textarea, body.tablette select, body.tablette [contenteditable] { -webkit-user-select: text; user-select: text; }

/* La barre du haut : plus haute, des boutons à la taille du doigt. */
body.tablette .topbar { padding: 12px 18px; min-height: 64px; }
body.tablette .topbar .btn, body.tablette .topbar .icon-btn { height: 48px; min-width: 48px; }
body.tablette .crumb { font-size: 16px; }

/* La page occupe l'écran, sans cadre de bureau autour. */
body.tablette .page { border-radius: 0; border-left: 0; border-right: 0; }
body.tablette .pb { padding: 20px; }
body.tablette .page-titre h1, body.tablette .ph h1 { font-size: 26px; }

/* Les commandes. */
body.tablette .btn, body.tablette .btn.sm { height: 48px; padding: 0 18px; font-size: 16px; border-radius: 10px; }
body.tablette .input, body.tablette select.input { height: 52px; font-size: 17px; border-radius: 10px; }
body.tablette textarea.input { height: auto; min-height: 96px; }
body.tablette .tabs { padding: 0 12px; }
body.tablette .tabs a { min-height: 52px; font-size: 16px; padding: 14px 14px; }
body.tablette .seg button { min-height: 48px; font-size: 16px; }

/* La page du groupe : le bandeau porte ses chiffres, sur une ligne, comme l'outil actuel. */
body.tablette .ghead, body.tablette .ghead.ghead-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.tablette .ghead.ghead-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.tablette .ghead .main { grid-column: 1 / -1; padding: 20px; border-radius: 16px; }
body.tablette .ghead .main h2 { font-size: 30px; }
body.tablette .ghead .main p { font-size: 15px; }
body.tablette .stat .l { font-size: 15px; }
body.tablette .stat .v { font-size: 30px; }
body.tablette .stat .d { font-size: 14px; }

/* Les opérations sur caisse : de grandes lignes, une icône large, le mot malgache en premier. */
body.tablette .ops { gap: 10px; }
body.tablette .op { min-height: 76px; padding: 14px 16px; gap: 16px; border-radius: 14px; }
body.tablette .op .oi { width: 52px; height: 52px; border-radius: 12px; }
body.tablette .op .oi svg { width: 26px; height: 26px; }
body.tablette .op b { font-size: 18px; }
body.tablette .op small { font-size: 15px; }

/* Les listes : des lignes qu'on touche sans viser. */
body.tablette .t td { padding: 14px 12px; font-size: 15.5px; }
body.tablette .t th { padding: 12px; font-size: 14px; }
body.tablette tr.clic { height: 64px; }
body.tablette .who small { font-size: 13.5px; }

/* La saisie : plein écran, le montant en gros, Valider sur toute la largeur en bas. */
body.tablette .voile { padding: 0; place-items: stretch; }
body.tablette .dialog { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; display: flex; flex-direction: column; overflow: hidden; animation: monte .2s both; }
body.tablette .dialog .dh { padding: 18px 20px 12px; border-bottom: 1px solid var(--pk-border); }
body.tablette .dialog .dh h2 { font-size: 22px; }
body.tablette .dialog .dh p { font-size: 15px; }
body.tablette .dialog .db { flex: 1; overflow: auto; padding: 20px; -webkit-overflow-scrolling: touch; }
body.tablette .dialog .df { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--pk-border); flex-wrap: nowrap; }
body.tablette .dialog .df .btn { height: 56px; font-size: 17px; }
body.tablette .dialog .df .btn:not(.out):not(.ghost) { flex: 1; justify-content: center; text-transform: uppercase; letter-spacing: .04em; }
body.tablette .dialog .form { gap: 16px; }
body.tablette .dialog .f { font-size: 15px; }
body.tablette .input.montant { height: 72px; font-size: 34px; text-align: center; }
body.tablette .rapides { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
body.tablette .rapides button { min-height: 96px; font-size: 26px; border-radius: 14px; }
body.tablette .rapides button small { font-size: 15px; display: block; margin-top: 4px; }
body.tablette .choix button { min-height: 52px; font-size: 16px; }
@keyframes monte { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.tablette .dialog { animation: none; } }

/* Le compteur de parts, − et + de part et d'autre du nombre. */
.pas-parts { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pas-parts .input { flex: 1; text-align: center; }
.pas-parts .btn { flex: none; width: 48px; justify-content: center; font-size: 22px; padding: 0; }
body.tablette .pas-parts { gap: 14px; }
body.tablette .pas-parts .btn { width: 72px; height: 72px; font-size: 32px; border-radius: 14px; }

/* Le bouton de l'assistant reste au-dessus du bord bas et de la barre système. */
body.tablette .fab { bottom: calc(20px + env(safe-area-inset-bottom)); }

/* La page du groupe sur tablette : un seul bandeau qui porte ses chiffres en tuiles, le solde de
   caisse en carte claire, comme l'écran « Gestion du groupe » de l'outil actuel. */
body.tablette .ghead { background: linear-gradient(135deg, #1e5fa8, var(--ppi-teal, #1fa39a)); border-radius: 18px; padding: 14px; }
body.tablette .ghead .main { background: none; padding: 8px 8px 4px; }
body.tablette .ghead .stat { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; }
body.tablette .ghead .stat .l, body.tablette .ghead .stat .d, body.tablette .ghead .stat .l svg { color: rgba(255, 255, 255, .85); }
body.tablette .ghead > .stat:nth-child(4) { background: #fff; color: var(--pk-fg); }
body.tablette .ghead > .stat:nth-child(4) .l, body.tablette .ghead > .stat:nth-child(4) .d, body.tablette .ghead > .stat:nth-child(4) .l svg { color: var(--pk-muted-fg); }
body.tablette .ghead .main .badge, body.tablette .badge { height: 28px; padding: 0 10px; font-size: 13.5px; border-radius: 8px; }
body.tablette .ph { padding: 20px; }
body.tablette .ph h1 { font-size: 26px; }
body.tablette .ph .back { width: 48px; height: 48px; }
body.tablette .pb h3 { font-size: 19px; }
body.tablette .dialog small, body.tablette .dialog .note { font-size: 14px; }

/* La réunion sur tablette : deux colonnes de grandes cartes, le nom entier, une case qu'on coche du
   pouce, le compteur d'anjara à la taille du doigt. */
body.tablette .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.tablette .mc { padding: 14px; border-radius: 14px; }
body.tablette .mc .top { min-height: 52px; gap: 12px; }
body.tablette .mc .top b { font-size: 17px; white-space: normal; }
body.tablette .mc .top span { font-size: 14px; }
body.tablette .mc .ck { width: 34px; height: 34px; border-radius: 9px; }
body.tablette .mc .row { font-size: 15px; margin-top: 12px; }
body.tablette .mc .step button { width: 48px; height: 48px; font-size: 22px; }
body.tablette .mc .step b { width: 44px; font-size: 18px; }
body.tablette .mc input { height: 48px; width: 120px; font-size: 17px; }
body.tablette .mc .mini { min-height: 44px; font-size: 15px; padding: 6px 14px; }
body.tablette .mgrid { align-items: start; }
body.tablette .t td:first-child .who > div { white-space: nowrap; }
body.tablette .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ?film : sans la pastille Démonstration ni le bouton Réinitialiser (2026-11-20). */
body.film .sim, body.film #reinit, body.film .reinit-tiroir { display: none !important; }
