/* Appli terrain Cap CEE — mêmes couleurs que le CRM, pensée pour le téléphone (plein écran, encoche, barre du bas) */
:root {
  --navy: #12284a; --navy-2: #1d3a66; --navy-50: #eef2f8;
  --teal: #0a9396; --teal-600: #087f82; --teal-700: #066a6c; --teal-50: #e8f6f6; --teal-100: #cdeceb;
  --bg: #f4f6fa; --surface: #ffffff; --surface-2: #f8fafc; --hover: #f1f5f9;
  --border: #e3e8ef; --border-2: #cfd7e3;
  --text: #0f1b2d; --text-2: #3f4b5f; --muted: #64748b; --faint: #94a3b8;
  --green: #15803d; --green-bg: #e3f7ea; --amber: #a15c07; --amber-bg: #fdf1d8; --red: #b42318; --red-bg: #fde8e7;
  --blue: #1d4ed8; --blue-bg: #e3ecfd; --violet: #6d28d9; --violet-bg: #efe9fd; --slate-bg: #eef1f5;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 4px 14px rgba(15, 27, 45, .05);
  --shadow-lg: 0 18px 50px rgba(15, 27, 45, .22);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --haut: env(safe-area-inset-top, 0px); --bas: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .5; cursor: default; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.ic { flex-shrink: 0; vertical-align: middle; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); position: relative; }
@media (min-width: 600px) { body { background: #e6eaf0; } #app { box-shadow: 0 0 0 1px var(--border), var(--shadow-lg); } }
.demarrage { flex: 1; display: grid; place-items: center; }
.demarrage img { width: 72px; opacity: .9; }

/* Cadre des écrans */
.ph-h { position: sticky; top: 0; z-index: 6; background: var(--surface); padding: calc(var(--haut) + 12px) 18px 14px; border-bottom: 1px solid var(--border); }
.ph-h-row { display: flex; align-items: center; gap: 10px; }
.ph-h h2 { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.ph-h h2.tr-n { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.ph-body { flex: 1; }
.pad { padding: 14px 16px 28px; }
.tabbar { position: sticky; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--border); padding: 7px 10px calc(var(--bas) + 8px); }
.tabbar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 4px 0; position: relative; }
.tabbar button.on { color: var(--teal-700); }
.tabbar .tb-plus { width: 46px; height: 31px; border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; margin-bottom: 1px; }
.tabbar .pastille { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.ph-foot { position: sticky; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--border); padding: 11px 16px calc(var(--bas) + 12px); display: flex; gap: 9px; }
.ph-foot .btn { height: 50px; border-radius: 13px; font-size: 15.5px; }
.ph-foot .btn.pri { flex: 1; }

/* Éléments communs */
.ib { border: 0; background: var(--slate-bg); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); flex-shrink: 0; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 0; flex-shrink: 0; }
.sec-t { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 20px 2px 8px; display: flex; align-items: center; gap: 8px; }
.sec-t:first-child { margin-top: 2px; }
.sec-t .sp { flex: 1; }
.sec-t em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); font-size: 12.5px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.t-slate { background: var(--slate-bg); color: var(--text-2); }
.t-blue { background: var(--blue-bg); color: var(--blue); }
.t-amber { background: var(--amber-bg); color: var(--amber); }
.t-violet { background: var(--violet-bg); color: var(--violet); }
.t-teal { background: var(--teal-50); color: var(--teal-700); }
.t-green { background: var(--green-bg); color: var(--green); }
.t-red { background: var(--red-bg); color: var(--red); }
.t-muted { background: var(--slate-bg); color: var(--muted); }
.btn { border: 1px solid var(--border-2); background: var(--surface); border-radius: 12px; padding: 0 15px; height: 44px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--text); white-space: nowrap; }
.btn.pri { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.pri:active { background: var(--teal-600); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.big { height: 52px; border-radius: 14px; font-size: 16px; width: 100%; }
.btn.sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--teal-700); }
.btn.danger { color: var(--red); }
.lk { border: 0; background: none; color: var(--teal-700); font-weight: 600; padding: 4px 0; }
.f { display: block; margin-top: 13px; }
.f > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.f > span i { font-style: normal; color: var(--red); }
.in { width: 100%; height: 48px; border: 1px solid var(--border-2); border-radius: 12px; padding: 0 13px; background: var(--surface); font-size: 16px; }
.in:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.in:disabled { background: var(--surface-2); color: var(--muted); }
textarea.in { height: auto; min-height: 88px; padding: 11px 13px; resize: vertical; line-height: 1.45; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.u-in { position: relative; }
.u-in .in { padding-right: 70px; }
.u-in em { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 14px; }
.seg { display: flex; background: var(--slate-bg); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; height: 40px; border-radius: 9px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14.5px; }
.seg button.on { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(15, 27, 45, .12); }
.opts { display: flex; flex-wrap: wrap; gap: 7px; }
.opts button { border: 1px solid var(--border-2); background: var(--surface); border-radius: 20px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.opts button.on { border-color: var(--teal); background: var(--teal-50); color: var(--teal-700); font-weight: 600; }
.note-i { display: flex; gap: 10px; align-items: flex-start; background: var(--navy-50); border-radius: 14px; padding: 12px 13px; font-size: 13.5px; color: var(--text-2); margin-top: 12px; }
.note-i .ic { color: var(--navy-2); margin-top: 1px; }
.err { display: flex; gap: 9px; align-items: flex-start; background: var(--red-bg); color: var(--red); border-radius: 12px; padding: 11px 12px; font-size: 13.5px; font-weight: 500; margin-top: 12px; }
.bandeau { display: flex; gap: 9px; align-items: center; padding: 9px 16px; font-size: 13px; font-weight: 600; }
.bandeau.hors { background: var(--navy); color: #fff; }
.bandeau.attente { background: var(--amber-bg); color: #6f4005; }
.empty { text-align: center; color: var(--muted); padding: 36px 14px; }
.empty .btn { margin-top: 14px; }
.spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tour .8s linear infinite; display: inline-block; flex-shrink: 0; }
@keyframes tour { to { transform: rotate(360deg); } }

/* Connexion */
.lg { padding: calc(var(--haut) + 40px) 24px calc(var(--bas) + 24px); display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--surface); }
.lg-top { display: flex; align-items: center; gap: 10px; }
.lg-top img { height: 36px; }
.pill-t { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); background: var(--teal-50); padding: 3px 8px; border-radius: 6px; line-height: 1.3; }
.lg-hero { margin: 36px 0 6px; width: 64px; height: 64px; border-radius: 20px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; }
.lg h2 { font-size: 27px; font-weight: 800; color: var(--navy); margin-top: 14px; letter-spacing: -.02em; }
.lg p.lg-p { color: var(--text-2); margin-top: 6px; font-size: 15.5px; }
.lg .btn.big { margin-top: 18px; }
.lg-foot { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; color: var(--muted); font-size: 13px; align-items: flex-start; }
.code-in { height: 62px; font-size: 28px; font-weight: 700; letter-spacing: .4em; text-align: center; color: var(--navy); margin-top: 22px; padding-left: .4em; }

/* Mes dossiers */
.seg.onglets { margin-bottom: 14px; }
.seg .nb { min-width: 20px; height: 20px; border-radius: 10px; background: var(--border); color: var(--text-2); font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }
.seg button.on .nb { background: var(--navy-50); color: var(--navy); }
.seg .nb.plein { background: var(--amber-bg); color: var(--amber); }
.feuille .act.col { flex-direction: column; }
.feuille .act.col .btn { flex: none; width: 100%; }
.hello { display: flex; align-items: center; gap: 12px; }
.alert { display: flex; gap: 11px; align-items: center; background: var(--amber-bg); color: #6f4005; border: 1px solid #f3d9a0; border-radius: 14px; padding: 12px 13px; width: 100%; text-align: left; margin-bottom: 12px; }
.alert b { color: #5c3504; }
.alert .ic-r { margin-left: auto; }
.alert.bleu { background: var(--blue-bg); border-color: #c6d6fb; color: #1e3a8a; }
.alert.bleu b { color: #172f73; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.kpi { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 10px 4px 9px; text-align: center; }
.kpi.on { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-50); }
.kpi b { display: block; font-size: 21px; font-weight: 800; color: var(--navy); line-height: 1.15; }
.kpi span { font-size: 11px; font-weight: 600; color: var(--muted); }
.kpi.k-amber b { color: var(--amber); }
.kpi.k-teal b { color: var(--teal-700); }
.kpi.k-green b { color: var(--green); }
.search { position: relative; margin: 12px 0 2px; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .in { padding-left: 40px; height: 44px; font-size: 15px; }
.dl { display: flex; flex-direction: column; gap: 9px; }
.dc { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 13px 14px 12px; width: 100%; display: block; position: relative; }
.dc:active { background: var(--hover); }
.dc.recu { border-color: #c6d6fb; box-shadow: inset 4px 0 0 var(--blue); }
.dc-h { display: flex; gap: 8px; align-items: flex-start; }
.dc-h b { flex: 1; min-width: 0; font-size: 15.5px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-s { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.dc-p { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.pdot { display: inline-flex; align-items: center; gap: 6px; }
.pdot::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex-shrink: 0; }
.dc-n { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--border); display: flex; gap: 8px; font-size: 13px; color: var(--text-2); align-items: flex-start; }
.dc-n .ic { color: var(--teal); margin-top: 2px; }
.dc-n p { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-n p b { color: var(--navy); }
.dc-n time { color: var(--faint); font-size: 11.5px; white-space: nowrap; margin-top: 1px; }
.unread { position: absolute; top: 16px; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--bg); }
.installer { display: flex; gap: 11px; align-items: center; padding: 12px 13px; margin-bottom: 12px; }
.installer .grow { flex: 1; font-size: 13.5px; color: var(--text-2); }
.installer b { color: var(--navy); display: block; font-size: 14px; }

/* Nouveau dossier */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 8px; }
.steps button { border: 0; background: none; padding: 7px 0; display: block; }
.steps button::before { content: ''; display: block; height: 4px; border-radius: 2px; background: var(--border); }
.steps button.on::before { background: var(--teal); }
.saved { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--green); white-space: nowrap; }
.saved.local { color: var(--amber); }
.saved.cours { color: var(--muted); }
.st-lbl { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.st-lbl b { color: var(--navy); }
.pc { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--border); background: var(--surface); border-radius: 16px; padding: 12px 13px; width: 100%; text-align: left; }
.pc + .pc { margin-top: 8px; }
.pc.on { border-color: var(--teal); background: var(--teal-50); }
.pc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c); flex-shrink: 0; }
.pc-t { flex: 1; min-width: 0; }
.pc-t b { display: block; color: var(--navy); font-size: 15px; }
.pc-t span { display: block; font-size: 12.5px; color: var(--muted); }
.cb { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--border-2); display: grid; place-items: center; flex-shrink: 0; color: transparent; background: var(--surface); }
.pc.on .cb { background: var(--teal); border-color: var(--teal); color: #fff; }
.pc-groupe { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 18px 2px 8px; }
.qg { padding: 4px 14px 14px; }
.qg + .qg { margin-top: 10px; }
.qg-h { display: flex; align-items: center; gap: 8px; padding: 11px 0 0; font-weight: 700; color: var(--navy); }
.qg-h em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; padding-left: 6px; }
.pl { padding: 2px 0; }
.pi { padding: 11px 14px; }
.pi + .pi { border-top: 1px solid var(--border); }
.pi-row { display: flex; align-items: center; gap: 11px; }
.pi-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--slate-bg); color: var(--faint); flex-shrink: 0; }
.pi.ok .pi-ic { background: var(--green-bg); color: var(--green); }
.pi.ask .pi-ic { background: var(--amber-bg); color: var(--amber); }
.pi-t { flex: 1; min-width: 0; }
.pi-t b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.pi-t span { display: block; font-size: 12.5px; color: var(--muted); }
.pi.ask .pi-t span { color: var(--amber); font-weight: 600; }
.pi-b { display: flex; gap: 6px; flex-shrink: 0; }
.pi-b .btn { height: 40px; min-width: 42px; padding: 0 11px; font-size: 13px; border-radius: 10px; }
@media (max-width: 430px) { .pi-b .btn { padding: 0; width: 44px; } .pi-b .btn .lbl { display: none; } }
.vigs { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0 0 47px; }
.vig { position: relative; width: 62px; height: 62px; border-radius: 10px; overflow: hidden; background: var(--slate-bg); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.vig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vig .vig-n { position: absolute; left: 3px; right: 3px; bottom: 3px; font-size: 9.5px; font-weight: 600; background: rgba(255, 255, 255, .88); border-radius: 4px; padding: 1px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.vig .vig-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(15, 27, 45, .72); color: #fff; display: grid; place-items: center; padding: 0; }
.vig.attente::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .45); }
.vig .vig-s { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; color: var(--navy); }
.recap { padding: 4px 14px; }
.rc { display: flex; gap: 12px; padding: 12px 0; align-items: center; }
.rc + .rc { border-top: 1px solid var(--border); }
.rc > .ic { color: var(--teal); }
.rc div { flex: 1; min-width: 0; }
.rc b { display: block; font-size: 14.5px; color: var(--navy); }
.rc span { font-size: 12.5px; color: var(--muted); }
.rc span.manque { color: var(--amber); font-weight: 600; }
.sent { padding: calc(var(--haut) + 70px) 26px calc(var(--bas) + 26px); text-align: center; display: flex; flex-direction: column; align-items: center; min-height: 100vh; min-height: 100dvh; background: var(--surface); }
.sent-ok { width: 84px; height: 84px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 12px var(--teal-50); animation: pop .45s cubic-bezier(.2, 1.4, .5, 1); }
.sent-ok.attente { background: var(--amber); box-shadow: 0 0 0 12px var(--amber-bg); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.sent h2 { margin-top: 30px; font-size: 25px; font-weight: 800; color: var(--navy); }
.sent p { color: var(--text-2); margin-top: 8px; font-size: 15px; }
.sent .tr { margin: 26px 0 0; width: 100%; text-align: left; }
.sent .btn.big { margin-top: 10px; }
.sent .bas { margin-top: auto; width: 100%; padding-top: 24px; }

/* Un dossier */
.tr { padding: 14px 12px 12px; }
.tr-l { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.tr-s { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.tr-s::before { content: ''; position: absolute; top: 11px; right: 50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.tr-s:first-child::before { display: none; }
.tr-s.done::before, .tr-s.cur::before, .tr-s.warn::before, .tr-s.ko::before { background: var(--teal); }
.tr-d { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-2); display: grid; place-items: center; position: relative; z-index: 1; color: #fff; }
.tr-s.done .tr-d { background: var(--teal); border-color: var(--teal); }
.tr-s.cur .tr-d { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-50); }
.tr-s.cur .tr-d::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.tr-s.warn .tr-d { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 4px var(--amber-bg); }
.tr-s.ko .tr-d { border-color: var(--red); background: var(--red); }
.tr-s b { font-size: 10.5px; font-weight: 600; color: var(--muted); margin-top: 6px; line-height: 1.2; padding: 0 2px; }
.tr-s.done b, .tr-s.cur b { color: var(--navy); }
.tr-s.warn b { color: var(--amber); }
.tr-s.ko b { color: var(--red); }
.tr-s time { font-size: 10px; color: var(--faint); margin-top: 1px; }
.ask-card { background: var(--amber-bg); border: 1px solid #f3d9a0; border-radius: 16px; padding: 14px; margin-top: 12px; }
.ask-card h4 { display: flex; gap: 8px; align-items: center; color: #6f4005; font-size: 15px; }
.ask-card ul { margin: 9px 0 0; padding: 0; list-style: none; }
.ask-card li { background: rgba(255, 255, 255, .7); border-radius: 11px; padding: 9px 11px; display: flex; gap: 9px; align-items: center; font-weight: 600; font-size: 14px; color: #5c3504; }
.ask-card li + li { margin-top: 6px; }
.ask-card li .btn { margin-left: auto; }
.ask-card p { font-size: 13.5px; color: #6f4005; margin-top: 9px; }
.ask-card.bleu { background: var(--blue-bg); border-color: #c6d6fb; }
.ask-card.bleu h4, .ask-card.bleu p { color: #1e3a8a; }
.ask-card.gris { background: var(--surface); border-color: var(--border); }
.ask-card.gris h4 { color: var(--navy); }
.ask-card.gris p { color: var(--text-2); }
.ask-card .btn.big { margin-top: 12px; height: 46px; }
.last { border-left: 4px solid var(--teal); padding: 12px 14px; }
.last-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.last-h b { color: var(--navy); font-size: 13px; }
.last p { margin-top: 6px; font-size: 14.5px; color: var(--text); white-space: pre-line; }
.mini-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--teal); flex-shrink: 0; }
.prl { padding: 2px 14px; }
.pr { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.pr + .pr { border-top: 1px solid var(--border); }
.pr .grow { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; }
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.todo + .todo { border-top: 1px solid var(--border); }
.todo .grow { flex: 1; min-width: 0; }
.todo b { display: block; font-size: 14.5px; color: var(--navy); }
.todo span.s { font-size: 12.5px; color: var(--muted); }
.todo span.s.manque { color: var(--amber); font-weight: 600; }
.remu { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.remu + .remu { border-top: 1px solid var(--border); }
.remu-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--green-bg); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.remu-ic.wait { background: var(--slate-bg); color: var(--muted); }
.remu b { display: block; font-size: 17px; color: var(--navy); }
.remu span { font-size: 12.5px; color: var(--muted); }
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.bub { background: var(--surface); border: 1px solid var(--border); border-radius: 16px 16px 16px 5px; padding: 9px 12px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.msg.me .bub { background: var(--navy); border-color: var(--navy); color: #fff; border-radius: 16px 16px 5px 16px; }
.bub-h { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; white-space: normal; }
.msg.me .bub-h { color: #b8c6dd; }
.bub-h b { color: var(--navy); }
.msg.me .bub-h b { color: #fff; }
.bub.sys { background: var(--amber-bg); border-color: #f3d9a0; }
.compose { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.compose .in { min-height: 48px; height: 48px; border-radius: 24px; padding: 12px 16px; resize: none; }
.compose .send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.cli { padding: 2px 14px; }
.cli a.rc { color: inherit; text-decoration: none; }
.cli .rc .ic { color: var(--muted); }
.cli .rc b { font-weight: 600; font-size: 14.5px; color: var(--text); }
.cli .rc .go { color: var(--teal-700); }

/* Mon profil */
.pf-top { display: flex; gap: 14px; align-items: center; }
.pf-top .av { width: 58px; height: 58px; font-size: 21px; }
.pf-top b { display: block; font-size: 19px; color: var(--navy); }
.pf-top span { font-size: 13px; color: var(--muted); }
.pf-c { padding: 2px 14px 14px; }
.ok-l, .lock-l { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-top: 8px; }
.ok-l { color: var(--green); font-weight: 600; }
.lock-l { color: var(--muted); }
.gains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.gains div { background: var(--surface); padding: 12px 10px; }
.gains b { display: block; font-size: 17px; color: var(--navy); }
.gains span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.doc-up { display: flex; gap: 11px; align-items: center; border: 1.5px dashed var(--border-2); border-radius: 13px; padding: 11px 12px; margin-top: 12px; }

/* Message, fenêtre du bas */
.toast { position: fixed; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 528px; bottom: calc(var(--bas) + 96px); background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); animation: up .3s ease; z-index: 30; }
.toast.ko { background: var(--red); }
@keyframes up { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.voile { position: fixed; inset: 0; background: rgba(15, 27, 45, .45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fond .2s ease; }
@keyframes fond { from { opacity: 0; } }
.feuille { width: 100%; max-width: 560px; background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 18px calc(var(--bas) + 18px); animation: monte .25s ease; }
@keyframes monte { from { transform: translateY(40px); } }
.feuille h3 { font-size: 19px; color: var(--navy); font-weight: 800; }
.feuille p { color: var(--text-2); margin-top: 6px; font-size: 14.5px; }
.feuille .act { display: flex; gap: 9px; margin-top: 16px; }
.feuille .act .btn { flex: 1; height: 48px; }
.btn.rouge { background: var(--red); border-color: var(--red); color: #fff; }
