/* écran 03 — accueil client ; écran 10 — téléphone (en-tête, barre d'onglets, cibles ≥ 44 px) */
.cl-top { margin-bottom: 0; padding: 12px 40px; }
.cl-sync { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.cl-sync .dot { background: var(--ok-dot); } .cl-sync.off .dot { background: var(--wait-dot); }
.cl-wrap { max-width: 1120px; margin: 0 auto; padding: 40px 4px 60px; display: flex; flex-direction: column; gap: 30px; }
.cl-hello h1 { font-family: var(--serif); font-weight: 500; font-size: 40px; letter-spacing: -.015em; line-height: 1.15; }
.cl-hello p { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--text-2); margin-top: 10px; max-width: 62ch; text-wrap: pretty; }
.cl-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.cl-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cl-card-h h2 { font-size: 17px; font-weight: 700; } .cl-card-h .muted { font-size: 13px; }
.cl-steps { padding: 26px 28px; }
.cl-steps-g { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.cl-step { display: flex; flex-direction: column; gap: 10px; }
.cl-step-top { display: flex; align-items: center; gap: 8px; }
.cl-dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--chip); color: var(--label); }
.cl-dot .ic { display: inline-flex; }
.k-done .cl-dot { background: var(--ok-dot); color: #fff; }
.k-now .cl-dot { background: #fff; color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.cl-line { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.cl-line.done { background: var(--ok-dot); } .cl-line.now { background: linear-gradient(90deg, var(--blue) 55%, var(--line) 55%); }
.cl-step-t { font-size: 15px; font-weight: 600; color: var(--ink); }
.k-next .cl-step-t { color: var(--muted); }
.cl-step-d { font-size: 13px; line-height: 1.5; color: var(--muted); }
.cl-step-s { font-size: 12.5px; font-weight: 600; color: var(--label); }
.k-done .cl-step-s { color: var(--ok-fg); } .k-now .cl-step-s { color: var(--blue); }
.cl-steps-m { display: none; }
.cl-seg5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 14px; }
.cl-seg5 i { height: 4px; border-radius: 3px; background: var(--line); }
.cl-seg5 i.k-done { background: var(--ok-dot); } .cl-seg5 i.k-now { background: var(--blue); }
.cl-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cl-sec-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cl-sec-h h2 { font-size: 17px; font-weight: 700; } .cl-sec-h .muted { font-size: 13px; }
.cl-aside { display: flex; flex-direction: column; gap: 16px; }
.cl-msg { padding: 20px 22px; }
.cl-msg-h { display: flex; align-items: center; gap: 10px; }
.cl-msg-h .n { font-size: 14px; font-weight: 600; } .cl-msg-h .r { font-size: 12px; color: var(--muted); }
.cl-msg-h .avatar { width: 34px; height: 34px; }
.cl-quote { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: #22262B; margin-top: 12px; }
.cl-msg-empty { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 12px 0; }
.cl-h3 { font-size: 14.5px; font-weight: 700; }
.cl-sub { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 6px 0 12px; }
.cl-pend { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft-2); }
.cl-pend .t { font-size: 13.5px; font-weight: 500; line-height: 1.4; } .cl-pend .m { font-size: 12px; color: var(--meta); margin-top: 2px; }
.cl-pend-empty { font-size: 13px; color: var(--meta); padding: 8px 0 0; border-top: 1px solid var(--line-soft-2); }
.cl-safety { background: var(--soft); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.cl-safe { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.cl-safe i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-2b); margin-top: 6px; }
.cl-safe b { font-weight: 600; color: var(--ink); }
.cl-todo-mob { display: none; }
.cl-msgs { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.cl-mrow { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.cl-mrow .h { display: flex; gap: 8px; font-size: 12.5px; color: var(--meta); flex-wrap: wrap; } .cl-mrow .h b { color: var(--ink); } .cl-mrow .h .w { margin-left: auto; }
.cl-mrow .b { font-size: 14px; line-height: 1.5; margin-top: 3px; }

/* téléphone : en-tête et barre d'onglets propres au client */
.cl-mhead, .cl-tabs { display: none; }
@media (max-width: 1180px) { .cl-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  /* sur les écrans client, la barre latérale laisse la place à la barre d'onglets du bas */
  .shell:has(.cl-tabs) > .side { display: none; }
  .main:has(.cl-tabs) { padding: 14px 20px 96px; }
  .cl-mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .cl-mlogo { display: inline-flex; align-items: center; gap: 7px; } .cl-mlogo .logo { display: inline-flex; color: var(--ink); }
  .cl-mlogo .wordmark { font-size: 20px; }
  .cl-mhead .cl-sync { font-size: 12px; }
  .cl-mhead .cl-sync .long { display: none; }
  .cl-top { display: none; }
  .cl-wrap { padding: 0; gap: 18px; }
  .cl-hello h1 { font-size: 30px; }
  .cl-hello p { font-size: 17px; line-height: 1.55; }
  .cl-steps { display: none; }
  .cl-steps-m { display: block; padding: 16px; border-radius: 14px; }
  .cl-steps-m .cl-card-h h2 { font-size: 14px; } .cl-steps-m .cl-step-t { font-size: 15px; }
  .cl-sec-h .muted { display: none; } .cl-sec-h h2 { font-size: 14px; }
  .cl-page .cl-todo-desk { display: none; }
  .cl-todo-mob { display: flex; flex-direction: column; gap: 10px; }
  .cl-todo-m { display: grid; grid-template-columns: 26px minmax(0, 1fr) 14px; gap: 10px; align-items: center; min-height: 64px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: left; cursor: pointer; width: 100%; }
  .cl-todo-m .n { font-size: 18px; color: var(--label); }
  .cl-todo-m .b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .cl-todo-m .t { font-size: 15px; font-weight: 600; line-height: 1.35; } .cl-todo-m .d { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
  .cl-todo-m .chev { color: var(--label); font-size: 20px; }
  .cl-aside .cl-card, .cl-safety { border-radius: 14px; }
  .cl-tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); }
  .cl-tabs button { min-height: 50px; border: 0; background: none; font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: pointer; border-radius: 8px; }
  .cl-tabs button[aria-current="page"] { color: var(--blue); font-weight: 600; }
  .with-admin .cl-tabs { bottom: 0; }
  .cl-page .page-head h1 { font-size: 28px; }
  .thread .editor .btn { min-height: 44px; }
}
