/* ─────────────────────────────────────────────
   APPARENCE : modifiez couleurs et arrondis ici.
   ───────────────────────────────────────────── */
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("/fonts/poppins-Light.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/poppins-Regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/fonts/poppins-Medium.woff") format("woff"); }
:root {
  --radius: 24px; --radius-sm: 16px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .9, .24, 1);
  --photo: url("/img/room.jpg"); /* Remplacez ce fichier pour changer la photo de fond */
  --frost: 34px;
  --sun: #f6d24a; --sun-ink: #1d1b16; --black: #1c1a17;
  color-scheme: light;
  --bg: #cfc1a8; --ink: #211e19; --ink-2: #4a4438; --ink-3: #5f584a;
  --frame: rgba(246, 238, 222, .36); --frame-line: rgba(255, 255, 255, .55);
  --glass: rgba(255, 252, 245, .26); --glass-strong: rgba(250, 245, 234, .82); --line: rgba(255, 255, 255, .5); --field: rgba(255, 252, 245, .42);
  --solid: rgba(255, 253, 248, .84); --dim: 0;
  --accent: #1c1a17; --accent-ink: #fff; --accent-soft: #211e19;
  --shadow: 0 10px 34px rgba(70, 52, 25, .13);
  --blue: #1c56b5; --purple: #6b3fc4; --amber: #8a5a00; --green: #0f7040; --red: #b52a21; --gray: #4f4a40; --danger: #a8261d;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17140f; --ink: #f6f1e7; --ink-2: #cfc7b7; --ink-3: #aaa292;
  --frame: rgba(24, 20, 14, .55); --frame-line: rgba(255, 255, 255, .16);
  --glass: rgba(255, 248, 235, .07); --glass-strong: rgba(36, 31, 23, .9); --line: rgba(255, 255, 255, .14); --field: rgba(255, 248, 235, .09);
  --solid: rgba(52, 46, 36, .9); --dim: .5;
  --accent: var(--sun); --accent-ink: var(--sun-ink); --accent-soft: var(--sun);
  --shadow: 0 10px 34px rgba(0, 0, 0, .3);
  --blue: #8db8ff; --purple: #c5adff; --amber: #f6d24a; --green: #6fdc9f; --red: #ff9a91; --gray: #c2bbad; --danger: #ff9a91;
}
.t-blue { --tone: var(--blue); } .t-purple { --tone: var(--purple); } .t-amber { --tone: var(--amber); }
.t-green { --tone: var(--green); } .t-red { --tone: var(--red); } .t-gray { --tone: var(--gray); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 5vw, 36px); line-height: 1.12; letter-spacing: -.025em; font-weight: 680; }
h2 { font-size: 17px; letter-spacing: -.01em; font-weight: 640; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 16px; font-weight: 640; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
small { font-size: 13px; color: var(--ink-2); display: block; line-height: 1.4; }
.muted { color: var(--ink-2); } .small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.i { width: 22px; height: 22px; flex: none; } .i.sm { width: 15px; height: 15px; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.backdrop i { position: absolute; border-radius: 50%; filter: blur(70px); }
.backdrop i:nth-child(1) { width: 60vmax; height: 60vmax; top: -28vmax; left: -14vmax; background: var(--orb-1); }
.backdrop i:nth-child(2) { width: 46vmax; height: 46vmax; top: 18vh; right: -24vmax; background: var(--orb-2); }
.backdrop i:nth-child(3) { width: 42vmax; height: 42vmax; bottom: -26vmax; left: 16vw; background: var(--orb-3); }

.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%); }
.panel { padding: 22px; }
.enter { animation: rise .42s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Structure */
.shell { display: block; }
#view { max-width: 1080px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top)) 16px calc(112px + env(safe-area-inset-bottom)); }
.public #view { padding-bottom: 32px; }
.page-head { margin: 6px 0 22px; display: grid; gap: 6px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-between h2 { margin: 0; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 14px; } .page-head .row { margin-top: 2px; }
.row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .row.center { justify-content: center; }
.stack { display: grid; gap: 10px; justify-items: stretch; }
.stack .link { justify-self: center; }
.col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.detail, .split { display: grid; gap: 16px; }
.two { display: grid; gap: 0 14px; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); font-size: 15px; margin-left: -6px; min-height: 36px; }

/* Navigation : barre en bas sur téléphone */
.nav { position: fixed; z-index: 20; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; padding: 6px; border-radius: 26px; background: var(--glass-strong); }
.nav-brand { display: none; }
.nav a { position: relative; flex: 1; min-width: 0; display: grid; justify-items: center; gap: 1px; min-height: 52px; padding: 7px 1px 4px; border-radius: 18px; color: var(--ink-3); font-size: 10.5px; font-weight: 550; transition: color .2s, background .2s; }
.nav a.on { color: var(--accent-soft); }
.nav a.nav-add .i { color: var(--accent-ink); background: var(--accent); border-radius: 50%; padding: 3px; width: 26px; height: 26px; }
.count { position: absolute; top: 3px; left: calc(50% + 5px); min-width: 18px; padding: 0 5px; height: 18px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 650; }
.count[hidden] { display: none; }
.demo-banner { position: absolute; top: calc(6px + env(safe-area-inset-top)); right: 8px; z-index: 30; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 10px; color: var(--amber); border: 1px solid currentColor; background: var(--glass-strong); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 15px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: inherit; font-weight: 590; font-size: 15px; cursor: pointer; transition: transform .16s var(--ease), background .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.975); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn.danger { background: #c52f26; border-color: transparent; color: #fff; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn .i { width: 19px; height: 19px; }
.link { background: none; border: 0; padding: 6px 0; color: var(--accent-soft); font: inherit; font-size: 14px; font-weight: 560; cursor: pointer; min-height: 32px; }
.danger-text { color: var(--danger) !important; }
@media (hover: hover) { .btn.ghost:hover { background: var(--glass); } .btn.primary:hover { filter: brightness(1.08); } .lead-row:hover, .notif:hover, .callout:hover { border-color: color-mix(in srgb, var(--accent-soft) 45%, transparent); } }

/* Formulaires */
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span:first-child { font-size: 13.5px; font-weight: 570; color: var(--ink-2); }
input:not([type=checkbox], [type=radio], [type=file]), textarea, select { width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s; }
textarea { resize: vertical; } select { appearance: none; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-soft); }
[aria-invalid=true] { border-color: var(--danger) !important; }
.form-error { color: var(--danger); font-size: 14px; font-weight: 540; margin-bottom: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent-soft); text-decoration: underline; }
.suffix { position: relative; display: block; } .suffix i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-2); }
.suffix.big input { font-size: 34px; font-weight: 640; height: 72px; letter-spacing: -.02em; } .suffix.big i { font-size: 24px; }
.code { font-size: 26px !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.inline-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.inline-form[hidden] { display: none; }
[hidden] { display: none !important; }

/* Authentification */
.auth { max-width: 460px; margin: 0 auto; padding-top: clamp(6px, 4vh, 40px); }
.auth.wide-doc { max-width: 720px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; font-size: 18px; letter-spacing: -.01em; }
.brand img { border-radius: 14px; }
.auth h1 { font-size: 27px; margin-bottom: 6px; }
.auth form { margin-top: 20px; }
.links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--accent-soft); font-weight: 540; }
.demo { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.demo p { font-size: 13px; color: var(--ink-2); }
.demo .row { margin-top: 8px; } .demo .btn { flex: 1; padding: 0 8px; font-size: 14px; }
.demo-code { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--amber); font-size: 14px; margin-bottom: 14px; }
.demo-code a { color: var(--accent-soft); text-decoration: underline; }
.roles { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.roles legend { font-size: 13.5px; font-weight: 570; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.role input { position: absolute; opacity: 0; }
.role > span { display: block; padding: 13px 15px; border-radius: var(--radius-sm); cursor: pointer; box-shadow: none; transition: border-color .2s, background .2s; }
.role strong { font-size: 15px; }
.role input:checked + span { border-color: var(--accent-soft); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.role input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.prose h2 { margin: 22px 0 6px; } .prose p { color: var(--ink-2); } .prose h1 { margin-bottom: 12px; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); padding: 12px 14px; border-radius: var(--radius-sm); background: var(--field); margin-top: 12px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; font-size: 12.5px; font-weight: 590; border-radius: 99px; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); white-space: nowrap; }
.badge i, .chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); flex: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); flex: none; margin-top: 6px; }

/* Tableau de bord */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.kpi { padding: 18px; display: grid; gap: 4px; align-content: start; }
.kpi > span { font-size: 13.5px; color: var(--ink-2); font-weight: 540; }
.kpi strong { font-size: 34px; letter-spacing: -.03em; line-height: 1.1; font-weight: 660; font-variant-numeric: tabular-nums; }
.kpi.hero { grid-column: 1 / -1; padding: 22px; } .kpi.hero strong { font-size: 56px; }
.callout { display: flex; align-items: center; gap: 14px; padding: 15px 18px; margin-bottom: 16px; transition: border-color .2s; }
.col .callout { margin: 0; }
.callout > span:not(.callout-n) { flex: 1; min-width: 0; }
.callout-n { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 20px; font-weight: 680; }
.callout .i:last-child { color: var(--ink-3); width: 18px; }
.bars li a { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; padding: 8px 0; align-items: baseline; }
.bar-label { font-size: 14.5px; } .bars b { font-weight: 640; font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; grid-row: 2; height: 7px; border-radius: 4px; background: var(--field); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 4px; background: var(--tone); transition: width .6s var(--ease); }
.feed li a { display: flex; gap: 11px; padding: 10px 0; align-items: flex-start; }
.feed li + li { border-top: 1px solid var(--line); }
.feed li a > span:nth-child(2) { flex: 1; min-width: 0; } .feed strong { font-size: 14.5px; font-weight: 590; }
time { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.empty { padding: 34px 22px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.empty p { color: var(--ink-2); max-width: 40ch; } .empty .btn { margin-top: 10px; }

/* Listes */
.filters { display: grid; gap: 10px; margin-bottom: 16px; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: var(--radius-sm); box-shadow: none; color: var(--ink-3); }
.search input { border: 0 !important; background: transparent !important; padding-left: 0 !important; }
.selects { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.selects::-webkit-scrollbar { display: none; }
.select { flex: none; border-radius: 13px; box-shadow: none; }
.select select { border: 0; background: transparent; min-height: 40px; padding: 7px 14px; font-size: 13.5px; font-weight: 540; color: var(--ink-2); max-width: 190px; }
.select option { color: #111; }
.list { display: grid; gap: 9px; }
.lead-row { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 14px 16px; align-items: center; border-radius: 18px; box-shadow: none; transition: border-color .2s; }
.lead-row.turn { border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.lead-main { min-width: 0; } .lead-main strong { display: flex; gap: 6px; align-items: center; font-size: 15.5px; font-weight: 610; }
.lead-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-row time { grid-column: 3; grid-row: 1; align-self: start; }
.lead-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.pct { font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; margin-left: auto; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: color-mix(in srgb, var(--accent) 22%, var(--field)); color: var(--ink); font-size: 14px; font-weight: 620; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; } .avatar.lg { width: 60px; height: 60px; font-size: 20px; } .avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.notif { display: flex; gap: 11px; padding: 14px 16px; border-radius: 18px; box-shadow: none; align-items: flex-start; transition: border-color .2s; }
.notif > span:nth-child(2) { flex: 1; min-width: 0; } .notif strong { font-size: 14.5px; font-weight: 560; }
.notif:not(.unread) { opacity: .68; } .notif:not(.unread) .dot { visibility: hidden; } .notif.unread strong { font-weight: 660; }

/* Fiche */
.big-pct { font-size: 44px; font-weight: 670; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.locked { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; font-weight: 570; letter-spacing: 0; color: var(--ink-2); }
.commission .muted { margin-top: 4px; }
#comm .muted { margin-bottom: 18px; } #qualif { margin-top: 14px; } .panel > h2 + .muted.small { margin-top: -8px; }
.amend { margin-top: 14px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--amber) 50%, transparent); }
.client-name { font-size: 22px; font-weight: 640; letter-spacing: -.015em; margin-top: -6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 13px 16px; margin: 16px 0 0; }
.panel > .facts:first-of-type { margin-top: 0; } .panel .row + .facts { margin-top: 16px; } #identity .facts { margin: 2px 0 16px; }
.facts .full { grid-column: 1 / -1; }
.facts dt { font-size: 12.5px; color: var(--ink-3); font-weight: 540; } .facts dd { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.who { display: flex; gap: 7px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 13px; border-radius: 13px; font: inherit; font-size: 14px; font-weight: 560; color: var(--ink-2); background: var(--field); border: 1px solid var(--line); cursor: pointer; transition: all .2s var(--ease); }
.chip.on { color: var(--tone); background: color-mix(in srgb, var(--tone) 15%, transparent); border-color: color-mix(in srgb, var(--tone) 60%, transparent); }
.timeline li { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline strong { font-size: 14.5px; font-weight: 570; }
.danger-zone { text-align: center; }

/* Ajout de lead */
.stepper { display: flex; gap: 6px; margin-bottom: 16px; }
.stepper li { flex: 1; display: flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 560; color: var(--ink-3); padding-top: 9px; border-top: 2px solid var(--line); }
.stepper li span { display: grid; place-items: center; width: 21px; height: 21px; font-size: 12px; }
.stepper .on { color: var(--ink); border-color: var(--accent-soft); } .stepper .done { color: var(--ink-2); border-color: var(--accent-soft); }
.found, .invite { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); animation: rise .3s var(--ease); }
.found-card { display: flex; align-items: center; gap: 14px; margin: 8px 0 16px; font-size: 19px; letter-spacing: -.01em; }
.invite p { margin: 6px 0 2px; }
.scanner { margin-top: 16px; display: grid; gap: 10px; } .scanner video { width: 100%; max-height: 340px; border-radius: var(--radius-sm); background: #000; object-fit: cover; }
.closer-chip { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--field); margin-bottom: 18px; font-size: 14px; }
.closer-chip > span:not(.avatar) { flex: 1; min-width: 0; }

/* Agenda */
.btn.compact { min-height: 38px; padding: 0 12px; font-size: 14px; }
.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .month-head h2 { margin: 0; text-transform: capitalize; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--ink); cursor: pointer; }
.icon-btn .flip { transform: scaleX(-1); }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.month > span { font-size: 12px; color: var(--ink-3); padding: 4px 0; font-weight: 560; }
.day { position: relative; min-height: 42px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; font-size: 14.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.day.out { visibility: hidden; } .day.today { color: var(--accent-soft); font-weight: 700; } .day.on { background: var(--accent); color: var(--accent-ink); }
.day.has::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
.agenda-head { margin: 22px 0 10px; font-size: 14px; font-weight: 620; color: var(--ink-2); text-transform: none; }
.rdv-list { display: grid; gap: 10px; }
.rdv { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 18px; box-shadow: none; }
.rdv-list > .rdv { background: var(--field); border: 1px solid var(--line); }
.rdv.past { opacity: .72; }
.rdv-date { display: grid; justify-items: center; align-content: start; font-variant-numeric: tabular-nums; }
.rdv-date b { font-size: 24px; line-height: 1.1; font-weight: 660; letter-spacing: -.02em; } .rdv-date span { font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.rdv-main strong { font-size: 15.5px; font-weight: 610; } .rdv-main a { display: block; }
.rdv-top { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.rdv-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.rdv-actions .btn { min-height: 38px; padding: 0 11px; font-size: 13.5px; }
.rdv-form { margin: 14px 0 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.rdv > .rdv-form { grid-column: 1 / -1; margin: 4px 0 0; padding-bottom: 0; border-bottom: 0; }
.sync { margin-top: 14px; } .sync summary { cursor: pointer; font-weight: 620; display: flex; align-items: center; gap: 8px; list-style: none; min-height: 28px; } .sync summary::-webkit-details-marker { display: none; }
.sync-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 12px 0; }
.copy-row { display: flex; gap: 8px; } .copy-row input { min-width: 0; font-size: 13px; }

/* Profil */
.profile-line { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; } .profile-line strong { font-size: 18px; letter-spacing: -.01em; }
.photo-pick { cursor: pointer; display: block; position: relative; }
.qr-card { text-align: center; } .qr-card .profile-line { justify-content: center; text-align: left; }
.qr { display: block; width: min(280px, 100%); height: auto; margin: 0 auto; border-radius: 18px; background: #fff; }
.switch { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; position: relative; }
.switch > span { display: flex; gap: 10px; align-items: center; }
.switch input { position: absolute; opacity: 0; right: 0; width: 50px; height: 30px; }
.switch i { width: 50px; height: 30px; border-radius: 15px; background: var(--field); border: 1px solid var(--line); position: relative; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .24s var(--ease); }
.switch input:checked + i { background: var(--accent); } .switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.install { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); } .install .btn { margin-top: 10px; }

/* Superpositions */
#toasts { position: fixed; z-index: 50; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 11px 17px; border-radius: 16px; font-size: 14.5px; font-weight: 550; background: var(--glass-strong); max-width: 440px; animation: drop .32s var(--ease); transition: opacity .28s, transform .28s; }
.toast.out { opacity: 0; transform: translateY(-8px); } .toast.good { color: var(--green); } .toast.bad { color: var(--danger); }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
.dialog { color: var(--ink); background: var(--glass-strong); padding: 22px; max-width: min(420px, calc(100vw - 32px)); width: 100%; }
.dialog::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog p { color: var(--ink-2); margin: 8px 0 14px; }
.dialog h3 { font-size: 19px; letter-spacing: -.01em; }

.desktop-only { display: none; }
@media (min-width: 620px) {
  .two { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 2fr 1fr 1fr; } .kpi.hero { grid-column: auto; }
  .filters { grid-template-columns: minmax(220px, 1fr) auto; align-items: center; } .selects { margin: 0; padding: 0; }
  .lead-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .lead-meta { grid-column: 3; grid-row: 1; margin: 0; justify-content: flex-end; flex-wrap: nowrap; } .pct { margin-left: 8px; min-width: 42px; text-align: right; }
  .lead-row time { grid-column: 4; align-self: center; min-width: 76px; text-align: right; }
  .roles { grid-template-columns: 1fr 1fr; }
  .desktop-only { display: inline-flex; }
}
@media (min-width: 960px) {
  .agenda-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; } .agenda-layout .agenda-head:first-child { margin-top: 0; }
  .split, .detail { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .split { grid-template-columns: 1fr 1fr; }
  .bars li a:hover .bar-label { color: var(--accent-soft); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .glass { border: 1px solid CanvasText; } }


/* ═══════════════════════════════════════════
   STYLE VITRÉ : photo nette, panneau dépoli,
   pilule noire qui glisse, accents jaunes.
   ═══════════════════════════════════════════ */
body { overflow: hidden; height: 100dvh; font-weight: 400; letter-spacing: -.005em; background: var(--bg); }
.backdrop { background: var(--photo) center / cover no-repeat; animation: photoIn 1.2s var(--ease) both; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim); }
.backdrop i { display: none; }
@keyframes photoIn { from { transform: scale(1.04); } }

/* Le grand panneau de verre */
.frame { position: fixed; inset: max(10px, env(safe-area-inset-top, 0px)) 8px max(10px, env(safe-area-inset-bottom, 0px)); border-radius: 30px; overflow: hidden; background: var(--frame); border: 1.5px solid var(--frame-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 24px 70px rgba(50,35,12,.22); -webkit-backdrop-filter: blur(var(--frost)) saturate(115%); backdrop-filter: blur(var(--frost)) saturate(115%); animation: frameIn 1s var(--ease) both; transform-origin: top center; display: flex; flex-direction: column; }
@keyframes frameIn { from { opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transform: translateY(14px) scale(.985); } }
.frame.closing { animation: frameOut .42s cubic-bezier(.5, 0, .75, .4) both; }
@keyframes frameOut { to { clip-path: inset(0 0 58% 0 round 30px); opacity: .7; } }
#view, .public #view { flex: 1; min-height: 0; width: 100%; max-width: none; margin: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px calc(106px + env(safe-area-inset-bottom, 0px)); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.public #view { padding-bottom: 28px; }
#view > * { max-width: 1320px; margin-left: auto; margin-right: auto; }

/* Vitres intérieures : elles ne recalculent pas de flou, le panneau s'en charge */
.glass { background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 55%), var(--glass); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), var(--shadow); -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s; }
.glass.solid { background: var(--solid); }
.glass.ink { background: var(--black); color: #f6f1e7; border-color: rgba(255,255,255,.12); --ink-2: #bdb6a8; --ink-3: #9e9789; --line: rgba(255,255,255,.1); }
.panel { padding: 20px; }
@media (hover: hover) { a.glass:hover, section.glass:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 18px 44px rgba(70,52,25,.18); } }

/* Mouvements : sortie floue, vitre vide puis contenu qui se révèle */
#view.leaving > * { opacity: 0; filter: blur(10px); transition: opacity .17s ease, filter .17s ease; }
.enter .glass { animation: paneIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes paneIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.enter .glass > *, .enter .page-head, .enter .dash-head, .enter .strip, .enter .filters, .enter .back, .enter .stepper { animation: reveal .6s ease both; animation-delay: calc(var(--i, 0) * 70ms + 260ms); }
@keyframes reveal { from { opacity: 0; filter: blur(9px); transform: translateY(5px); } }
.enter .page-head, .enter .dash-head, .enter .back { animation-delay: 80ms; } .enter .strip, .enter .filters, .enter .stepper { animation-delay: 170ms; }
.no-anim *, .no-anim *::after { transition: none !important; animation: none !important; }

/* Typographie */
h1 { font-weight: 300; font-size: clamp(27px, 3.4vw, 38px); letter-spacing: -.03em; }
h2 { font-weight: 500; font-size: 15.5px; letter-spacing: -.01em; } h2 .i { width: 19px; height: 19px; }
h3, strong, b { font-weight: 500; }
small { font-size: 12.5px; } .muted { color: var(--ink-2); }
.page-head { margin: 4px 0 18px; }

/* Barre de navigation : pilule, indicateur noir glissant */
.nav { position: fixed; z-index: 20; left: 8px; right: 8px; bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 6px)); display: flex; align-items: stretch; justify-content: space-around; gap: 0; width: auto; padding: 5px; border-radius: 26px; background: var(--glass-strong); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(50,35,12,.22); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.nav-brand { display: none; } .nav-pill, .nav-end { display: contents; }
.nav-ind { position: absolute; left: 0; top: 0; border-radius: 20px; background: var(--accent); transition: transform .48s var(--ease), width .48s var(--ease), height .3s var(--ease), opacity .2s; z-index: 0; }
.nav-ind.off { opacity: 0; }
.nav a { position: relative; z-index: 1; flex: 1; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 0; min-height: 52px; padding: 4px 1px; border-radius: 20px; color: var(--ink-2); font-size: 10.5px; font-weight: 500; transition: color .3s; background: none; }
.nav a.on { color: var(--accent-ink); }
.nav a .i { width: 21px; height: 21px; }
.nav a.nav-add .i { background: var(--sun); color: var(--sun-ink); border-radius: 50%; padding: 3px; width: 25px; height: 25px; }
.count { background: #d8352b; }

/* Boutons et champs en pilule */
.btn { border-radius: 99px; font-weight: 500; font-size: 14px; min-height: 44px; background: var(--field); border-color: var(--line); transition: transform .25s var(--ease), background .25s, color .25s; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: #b52a21; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } .btn.ghost:hover { background: var(--solid); } }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.danger-text { text-decoration: none; }
input:not([type=checkbox], [type=radio], [type=file]), textarea, select { background: var(--field); border-color: var(--line); border-radius: 16px; font-weight: 400; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, textarea:focus, select:focus { background: var(--solid); border-color: var(--ink); }
.field > span:first-child { color: var(--ink-2); font-weight: 500; font-size: 13px; }
.check input { accent-color: var(--black); } .check a, .demo-code a, .links { color: var(--ink); } .links a, .links .link { text-decoration: underline; text-underline-offset: 3px; }
.role input:checked + span { border-color: var(--ink); background: var(--solid); }
.brand { justify-content: flex-start; } .brand strong { padding: 7px 16px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); font-size: 14px; font-weight: 500; } .brand img { display: none; }
.auth { padding-top: clamp(4px, 5vh, 56px); }
.auth h1 { font-size: 30px; }
.select { background: var(--field); border-radius: 99px; } .select select { color: var(--ink); background: transparent; border: 0; border-radius: 99px; }
.search { border-radius: 99px; background: var(--field); color: var(--ink-2); }
.select option { color: #111; background: #fff; }

/* Badges */
.badge { font-weight: 500; font-size: 12px; background: var(--solid); color: var(--tone); padding: 3px 11px 3px 9px; box-shadow: 0 1px 3px rgba(60,45,20,.1); }
.badge.t-amber i, .chip.t-amber i { background: var(--sun); box-shadow: 0 0 0 1px rgba(90,60,0,.4); }
.chip { border-radius: 99px; background: var(--field); border-color: var(--line); color: var(--ink); font-weight: 500; font-size: 13.5px; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chip.on i { background: var(--sun); }

/* Tableau de bord */
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 16px; }
.cta { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 18px 4px 5px; border-radius: 99px; background: var(--black); color: #fff; font-size: 13.5px; font-weight: 500; transition: transform .25s var(--ease); }
.cta i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); } .cta .i { width: 18px; height: 18px; }
@media (hover: hover) { .cta:hover { transform: translateY(-2px); } }
.strip { display: grid; gap: 14px; margin-bottom: 16px; }
.segs { display: flex; gap: 6px; min-width: 0; }
.seg { flex: 1 1 0; min-width: 0; display: grid; gap: 4px; transition: flex-grow .9s var(--ease); }
.seg small { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-bar { height: 36px; display: flex; align-items: center; padding: 0 13px; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.seg-bar.ink { background: var(--black); color: #fff; } .seg-bar.sun { background: var(--sun); color: var(--sun-ink); }
.seg-bar.pale { background: var(--field); color: var(--ink); border: 1px solid var(--line); }
.seg-bar.hatch { color: var(--ink); background: repeating-linear-gradient(115deg, rgba(60,50,30,.2) 0 2px, rgba(255,252,245,.35) 2px 6px); border: 1px solid var(--line); }
.bignums { display: flex; justify-content: space-between; gap: 12px; }
.bignums > div { display: grid; min-width: 0; } .bignums b { font-size: clamp(30px, 8vw, 44px); line-height: 1.1; font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; } .bignums small { font-size: 11.5px; color: var(--ink-2); }
.callout { margin-bottom: 14px; padding: 12px 16px; } .callout strong { font-size: 14.5px; }
.callout-n { background: var(--sun); color: var(--sun-ink); border-radius: 50%; width: 42px; padding: 0; font-size: 18px; font-weight: 500; }
.dash-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; } .card-top h2 { margin: 0; }
.arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--solid); flex: none; transition: transform .3s var(--ease); } .arrow .i { width: 15px; height: 15px; }
@media (hover: hover) { .arrow:hover { transform: rotate(45deg); } }
.eyebrow { font-size: 11.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.card-num { font-size: 27px; font-weight: 400; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .card-num small { display: inline; letter-spacing: 0; color: var(--ink-2); }
.vbars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.vbars a { display: grid; justify-items: center; gap: 4px; } .vbars b { font-size: 12px; font-variant-numeric: tabular-nums; } .vbars small { font-size: 10px; color: var(--ink-2); white-space: nowrap; }
.vtrack { display: flex; align-items: flex-end; width: 26px; max-width: 100%; height: 118px; border-radius: 99px; background: rgba(60,50,30,.09); overflow: hidden; }
.vtrack i { display: block; width: 100%; height: 0; min-height: 0; border-radius: 99px; background: var(--black); transition: height 1s var(--ease); } .vtrack i.sun { background: var(--sun); }
[data-theme="dark"] .vtrack { background: rgba(255,255,255,.1); } [data-theme="dark"] .vtrack i:not(.sun) { background: #efe8da; }
.kpi { padding: 20px; } .kpi.hero { padding: 20px; } .kpi strong { font-size: inherit; }
.ring { position: relative; width: 158px; max-width: 100%; margin: 2px auto 8px; display: grid; place-items: center; } .ring svg { width: 100%; display: block; transform: rotate(-90deg); }
.ring-ticks { fill: none; stroke: var(--ink-3); stroke-width: 3; stroke-dasharray: .9 4.6; opacity: .7; }
.ring-bar { fill: none; stroke: var(--sun); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s var(--ease); }
.ring strong { position: absolute; font-size: 30px; font-weight: 400; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.center { text-align: center; color: var(--ink-2); }
.next-time { font-size: 40px; font-weight: 300; letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; } .next-who { font-size: 16px; font-weight: 500; }
.tag { display: inline-block; margin-top: 10px; padding: 4px 13px; border-radius: 99px; font-size: 12px; font-weight: 500; } .tag.sun { background: var(--sun); color: var(--sun-ink); }
.c-feed .card-top h2 { font-size: 17px; } .sun-text { color: var(--sun); font-size: 22px; font-weight: 300; }
.feed li + li { border-top: 0; } .feed li a { align-items: center; padding: 8px 0; gap: 11px; }
.feed-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--sun); flex: none; }
.feed li a > span:nth-child(2) { flex: 1; min-width: 0; } .feed strong { font-size: 13.5px; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .feed small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed time, .ink time { color: var(--ink-3); font-size: 11.5px; }
.feed time { flex: none; white-space: nowrap; }
.quick li a { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 500; } .quick .i { margin-left: auto; color: var(--ink-3); }
.quick i.dot-ink, .quick i.dot-sun { width: 8px; height: 8px; border-radius: 50%; background: var(--black); flex: none; } .quick i.dot-sun { background: var(--sun); box-shadow: 0 0 0 1px rgba(90,60,0,.3); }
[data-theme="dark"] .quick i.dot-ink { background: #efe8da; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; margin-bottom: 12px; }
.week small { font-size: 11px; color: var(--ink-2); text-transform: capitalize; } .week b { display: inline-block; min-width: 30px; padding: 1px 6px; border-radius: 99px; font-size: 13.5px; font-variant-numeric: tabular-nums; } .week .on b { background: var(--sun); color: var(--sun-ink); } .week .busy:not(.on) b { background: var(--solid); }
.week-items { display: grid; gap: 8px; }
.wk { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 16px; transition: transform .3s var(--ease); } .wk > span { min-width: 0; } .wk strong { font-size: 13.5px; display: block; } .wk small { font-size: 11.5px; color: inherit; opacity: .8; }
.wk.dark { background: var(--black); color: #fff; } .wk.light { background: var(--solid); color: var(--ink); }
@media (hover: hover) { .wk:hover { transform: translateX(4px); } }
.week-empty { text-align: center; padding: 14px 0; }

/* Listes et fiches */
.lead-row, .notif { background: var(--glass); border-radius: 22px; }
.lead-row.turn { border-color: var(--sun); box-shadow: inset 0 0 0 1px var(--sun); }
.avatar { background: var(--black); color: #fff; font-weight: 500; font-size: 13px; } .avatar.sm { font-size: 10px; }
.pct { font-weight: 500; font-size: 14px; }
.big-pct { font-weight: 300; font-size: 52px; letter-spacing: -.04em; }
.client-name { font-weight: 400; font-size: 24px; letter-spacing: -.02em; }
.facts dt { color: var(--ink-3); }
.amend { border-color: var(--sun); background: color-mix(in srgb, var(--sun) 14%, transparent); }
.stepper .on, .stepper .done { border-color: var(--black); } .stepper li { color: var(--ink-3); }
[data-theme="dark"] .stepper .on, [data-theme="dark"] .stepper .done { border-color: var(--sun); }
.closer-chip { border-radius: 99px; }
.note { background: var(--field); }

/* Agenda */
.day.today { color: var(--ink); } .day.today::before { content: ""; position: absolute; inset: 7px 4px; border-radius: 99px; background: var(--sun); z-index: -1; } .day { z-index: 0; font-weight: 400; } .day.today { color: var(--sun-ink); font-weight: 500; }
.day.on { background: var(--black); color: #fff; } [data-theme="dark"] .day.on { background: #efe8da; color: #111; }
.icon-btn { border-radius: 50%; background: var(--solid); border-color: var(--line); }
.rdv-list > .rdv { background: var(--glass); } .rdv-date b { font-weight: 300; font-size: 28px; }
.qr { box-shadow: var(--shadow); }
.switch input:checked + i { background: var(--black); } [data-theme="dark"] .switch input:checked + i { background: var(--sun); }

/* Superpositions */
.toast { background: var(--black); color: #fff; border: 0; border-radius: 99px; padding: 10px 20px; font-weight: 500; font-size: 13.5px; } .toast.good { color: var(--sun); } .toast.bad { color: #ffb0a8; }
.dialog { background: var(--glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); margin: auto; }
.dialog::backdrop { background: rgba(50,35,12,.25); }

@media (min-width: 620px) {
  .frame { inset: 16px 16px; border-radius: 34px; }
  #view, .public #view { padding: 22px 26px 110px; }
  .nav { left: 50%; right: auto; transform: translateX(-50%); width: min(600px, calc(100vw - 48px)); }
  .strip { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; }
  .bignums { gap: 26px; } .bignums b { font-size: 44px; }
}
@media (min-width: 960px) {
  .frame { inset: 22px clamp(18px, 4.5vw, 72px); }
  #view, .public #view { padding: 8px 28px 30px; }
  .public #view { padding-top: 24px; }
  .nav { position: relative; left: auto; right: auto; bottom: auto; transform: none; width: 100%; flex: none; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 16px 28px 12px; background: none; border: 0; box-shadow: none; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-brand { display: block; margin-right: auto; } .nav-brand a { display: inline-flex; align-items: center; gap: 9px; padding: 5px 18px 5px 6px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
  .nav-pill { display: flex; position: relative; padding: 4px; border-radius: 99px; background: var(--glass-strong); }
  .nav-end { display: flex; gap: 8px; }
  .nav-ind { border-radius: 99px; }
  .nav a { flex: none; display: flex; align-items: center; gap: 0; min-height: 34px; padding: 0 15px; font-size: 13px; border-radius: 99px; color: var(--ink); }
  .nav-pill a .i { display: none; } .nav-pill a.nav-add .i { display: block; width: 19px; height: 19px; padding: 2px; margin-right: 6px; }
  .nav a.round { width: 42px; height: 42px; min-height: 42px; padding: 0; justify-content: center; border-radius: 50%; background: var(--glass-strong); transition: background .3s, color .3s, transform .3s var(--ease); } .nav a.round span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav a.round.on { background: var(--accent); color: var(--accent-ink); } .nav a.round .i { width: 19px; height: 19px; }
  .count { position: absolute; top: -3px; right: -3px; left: auto; margin: 0; }
  .dash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .widget.size-s { grid-column: span 1; } .widget.size-m { grid-column: span 2; } .widget.size-l { grid-column: 1 / -1; }
  .w-feed.size-s { grid-row: span 2; }
  .w-feed.size-l .feed, .w-shortcuts.size-l .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-shortcuts.size-l .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .w-status.size-l .hbars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w-numbers.size-s .bignums { flex-direction: column; }
  .w-numbers.size-s .bignums b { font-size: 34px; }
  .split, .detail { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .agenda-layout { grid-template-columns: 340px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .vtrack i, .ring-bar, .nav-ind { transition: none; } }
.kpi.hero .ring strong { font-size: 30px; }

/* Logo */
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--black); color: var(--sun); font-size: 11.5px; font-weight: 500; letter-spacing: -.02em; flex: none; }
.brand strong { display: inline-flex; align-items: center; gap: 9px; padding: 5px 18px 5px 6px; letter-spacing: .03em; } .nav-brand a { letter-spacing: .03em; }

/* Widgets de l'accueil */
.dash-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-actions .btn { min-height: 42px; }
.dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
.widget { position: relative; min-width: 0; }
.w-body { min-width: 0; height: 100%; }
.w-tools { position: absolute; z-index: 3; top: 8px; right: 8px; display: flex; padding: 3px; border-radius: 99px; background: var(--black); box-shadow: 0 6px 18px rgba(40,28,10,.3); }
.w-tools button { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background .2s; }
@media (max-width: 959px) {
  .widget { grid-column: 1 / -1; } .widget.size-s { grid-column: span 1; }
  .w-status.size-s, .w-feed.size-s { grid-column: 1 / -1; }
  .w-tools { top: 5px; right: 4px; flex-wrap: wrap; max-width: calc(100% - 8px); border-radius: 18px; } .w-tools button { width: 30px; height: 30px; }
}
@media (max-width: 619px) { .seg { flex-basis: 40%; } }
.widget .kpi { padding: 0; }
.rate-in { display: grid; justify-items: center; gap: 4px; text-align: center; }
.size-m .rate-in, .size-l .rate-in { grid-template-columns: auto minmax(0, 1fr); gap: 20px; text-align: left; justify-items: start; align-items: center; }
.size-m .ring, .size-l .ring { margin: 0; }
.w-rate small { color: var(--ink-2); }
.bignums { align-items: flex-start; flex-wrap: wrap; }
.w-todo { padding: 12px 16px; }
.callout-in { display: flex; align-items: center; gap: 14px; } .callout-in > span:not(.callout-n) { flex: 1; min-width: 0; } .callout-in strong { font-size: 14.5px; } .callout-in .i:last-child { width: 18px; color: var(--ink-3); }
.callout-in .callout-n { display: grid; place-items: center; height: 42px; flex: none; }
.segs { flex-wrap: wrap; }
.seg small { white-space: normal; }
.hbars { display: grid; gap: 4px 22px; margin-top: 10px; }
.hbars a { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 5px 0; align-items: baseline; font-size: 13.5px; } .hbars b { font-variant-numeric: tabular-nums; }
.htrack { grid-column: 1 / -1; display: block; height: 8px; border-radius: 99px; background: rgba(60,50,30,.09); overflow: hidden; }
.htrack i { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--black); transition: width 1s var(--ease); } .htrack i.sun { background: var(--sun); }
[data-theme="dark"] .htrack { background: rgba(255,255,255,.1); } [data-theme="dark"] .htrack i:not(.sun) { background: #efe8da; }
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 26px; }
.quick { display: grid; gap: 0 22px; }
.size-m .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Mode modification */
.edit-hint { margin: -6px 0 14px; color: var(--ink-2); font-size: 13.5px; }
.editing .w-body { animation: wiggle 2.4s ease-in-out infinite; }
.editing .widget { outline: 1.5px dashed rgba(40,30,15,.28); outline-offset: -5px; }
.editing .widget:nth-child(even) .w-body { animation-delay: -1.2s; }
@keyframes wiggle { 0%, 100% { transform: rotate(-.18deg); } 50% { transform: rotate(.18deg); } }
.editing .w-body { pointer-events: none; opacity: .62; user-select: none; }
.editing .widget[draggable] { cursor: grab; }
.w-tools button .i { width: 16px; height: 16px; } .w-tools .flip { transform: scaleX(-1); }
.nav .nav-brand a { display: inline-flex; gap: 9px; min-height: 0; padding: 5px 18px 5px 6px; border-radius: 99px; background: var(--field); }
.w-tools button:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .w-tools button:not(:disabled):hover { background: rgba(255,255,255,.18); } }
.w-tools .w-del { background: #c23a30; margin-left: 2px; }
.w-tray { margin-top: 22px; } .w-tray ul { display: grid; gap: 8px; }
.w-tray li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 20px; } .w-tray li > span { min-width: 0; }
@media (min-width: 960px) { .w-tray ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .editing .w-body { animation: none; } }
@media (min-width: 960px) { .dash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.glass.ink .w-tools { background: #45403a; }

/* Téléphone et montants */
.phone-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px; }
.money-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; }
.phone-row select, .money-row select { text-overflow: ellipsis; padding-right: 8px; }
.money-preview { min-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pref-cur { margin: 12px 0 0; } .two > .money-field, .two > .phone-field { min-width: 0; }

/* Leads perso : fond distinct, plus le badge « Perso » */
:root { --teal: #0b6b5e; --perso: rgba(118, 196, 176, .42); --perso-line: rgba(30, 125, 108, .55); }
:root[data-theme="dark"] { --teal: #7fe0cd; --perso: rgba(60, 170, 148, .22); --perso-line: rgba(127, 224, 205, .4); }
.t-teal { --tone: var(--teal); }
.lead-row.perso, .kcard.perso { background: var(--perso); border-color: var(--perso-line); }
.perso-note { margin: 0 0 16px; background: var(--perso); }
.crit-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; white-space: normal !important; } .crit-chips i { font-style: normal; font-size: 11.5px; padding: 1px 9px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); color: var(--ink); }

/* Filtre budget du portefeuille */
.budget-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; padding: 8px 10px; margin-bottom: 14px; border-radius: 20px; box-shadow: none; }
.budget-filter > span { grid-column: 1 / -1; font-size: 13px; font-weight: 500; padding-left: 6px; }
.budget-filter label:last-child { grid-column: 1 / -1; }
.budget-filter input, .budget-filter select { min-height: 40px; padding: 7px 13px; font-size: 13.5px; }
@media (min-width: 620px) { .budget-filter { grid-template-columns: auto 1fr 1fr 1fr; } .budget-filter > span { grid-column: auto; padding: 0 6px; } .budget-filter label:last-child { grid-column: auto; } }
.lbl-short { display: inline; } .lbl-long { display: none; }
.selects { flex-wrap: nowrap; }

/* Pipeline en colonnes */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; align-items: start; }
.kcol { display: flex; flex-direction: column; min-width: 0; padding: 10px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); scroll-snap-align: center; transition: background .2s, border-color .2s; }
.kcol.drop { background: var(--solid); border-color: var(--ink); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; } .kcol-head i { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); flex: none; } .kcol-head.t-amber i { background: var(--sun); box-shadow: 0 0 0 1px rgba(90,60,0,.4); }
.kcol-head h2 { flex: 1; margin: 0; font-size: 13.5px; min-width: 0; } .kcol-head b { font-size: 13px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.kcol-list { display: grid; gap: 8px; align-content: start; max-height: calc(100dvh - 330px); min-height: 60px; overflow-y: auto; scrollbar-width: thin; border-radius: 14px; }
.kcard { position: relative; display: grid; gap: 6px; padding: 12px 13px; border-radius: 16px; background: var(--solid); border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(70,52,25,.08); transition: transform .25s var(--ease), box-shadow .25s; }
.kcard[draggable] { cursor: grab; } .kcard.dragging { opacity: .4; }
@media (hover: hover) { .kcard:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(70,52,25,.15); } }
.kcard.turn { border-color: var(--sun); box-shadow: inset 0 0 0 1px var(--sun); }
.kcard-link strong { display: flex; align-items: center; gap: 5px; font-size: 14px; padding-right: 54px; overflow-wrap: anywhere; } .kcard-link small { margin-top: 1px; }
.kcard time { position: absolute; top: 13px; right: 12px; font-size: 11px; color: var(--ink-3); }
.kcard-crit { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.kcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .kcard-foot small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .kcard-foot b { font-size: 13px; font-variant-numeric: tabular-nums; }
.kcard-wait { font-size: 11.5px; color: var(--amber); font-weight: 500; }
.kcard-move select { min-height: 34px; padding: 4px 11px; font-size: 12.5px; border-radius: 99px; background: var(--field); }
.kempty { padding: 14px 6px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.kcol:has(.kempty) .kcol-list { display: none; }
.kmore { align-self: center; margin-top: 6px; }
@media (min-width: 620px) { .board { margin: 0; padding: 0 0 10px; } }
@media (min-width: 960px) {
  .lbl-short { display: none; } .lbl-long { display: inline; }
  .board { grid-auto-columns: minmax(210px, 1fr); } .kcol-list { max-height: calc(100dvh - 360px); }
  .kcard-move { display: none; }
}
@media (min-width: 960px) { .board { grid-auto-columns: minmax(186px, 1fr); } }
@media (max-width: 619px) {
  .budget-filter { grid-template-columns: 1fr 1fr 1.1fr; } .budget-filter > span { display: none; } .budget-filter label:last-child { grid-column: auto; }
  .budget-filter input, .budget-filter select { padding: 7px 10px; font-size: 13px; }
}
@media (max-width: 400px) { .nav a { font-size: 9.5px; letter-spacing: -.01em; } .nav a .i { width: 20px; height: 20px; } }

/* Téléphone : drapeau automatique */
.phone-input { position: relative; display: block; }
.phone-flag { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 19px; line-height: 1; pointer-events: none; }
.phone-input input { padding-left: 44px !important; font-variant-numeric: tabular-nums; }
.phone-country { min-height: 16px; }
.flag { font-size: 1em; line-height: 1; margin-right: 1px; flex: none; }
.client-name .flag { margin-right: 8px; }

/* Source du lead */
.origin { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px 1px 6px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); font-size: 11.5px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.origin i { font-style: normal; font-size: 12.5px; }
.src-logo { flex: none; display: inline-block; width: 15px; height: 15px; border-radius: 4px; object-fit: cover; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(40,28,10,.12); }
.origin .src-logo { width: 14px; height: 14px; }
.origin-pick .src-logo { width: 20px; height: 20px; border-radius: 6px; transition: transform .3s var(--ease); }
.origin-pick input:checked + span .src-logo { transform: scale(1.12) rotate(-6deg); box-shadow: 0 0 0 1.5px rgba(255,255,255,.7), 0 2px 6px rgba(0,0,0,.18); }
.dd-opt .src-logo { width: 18px; height: 18px; border-radius: 5px; }
.lead-main strong .origin { margin-left: 3px; }
.origins { border: 0; padding: 0; margin: 2px 0 14px; display: grid; gap: 10px; } .origins legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.origin-group > small { margin-bottom: 5px; } .origin-group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.origin-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.origin-pick span { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px 0 11px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: transform .25s var(--ease), background .2s, color .2s; }
.origin-pick i { font-style: normal; font-size: 18px; line-height: 1; transition: transform .3s var(--ease); }
.origin-pick input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.origin-pick input:checked + span i { transform: scale(1.18) rotate(-6deg); }
.origin-pick input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
@media (hover: hover) { .origin-pick span:hover { transform: translateY(-1px); } }
.origin-pick { position: relative; }

/* Filtres du pipeline */
.pfilters { display: grid; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 22px; box-shadow: none; }
.pfilters-top { display: grid; gap: 8px; min-width: 0; }
.pfilters .search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); color: var(--ink-2); }
.pfilters .selects { margin: 0; padding: 0; } .pfilters .select { background: var(--field); border: 1px solid var(--line); border-radius: 99px; flex: none; }
#pclear { justify-self: start; white-space: nowrap; }
.pfilter-row { display: grid; gap: 5px; min-width: 0; } .pfilter-row > small { font-weight: 500; color: var(--ink-2); font-size: 11.5px; }
.pchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px; } .pchips::-webkit-scrollbar { display: none; }
.pchip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, transform .25s var(--ease), border-color .25s; }
.pchip > i { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); } .pchip.t-amber > i { background: var(--sun); box-shadow: 0 0 0 1px rgba(90,60,0,.4); }
.pchip b { font-size: 12px; font-weight: 500; opacity: .65; font-variant-numeric: tabular-nums; } .pchip small { display: inline; font-size: 11.5px; opacity: .75; color: inherit; }
.pchip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.perso-chip { background: var(--perso); border-color: var(--perso-line); } .perso-chip > i { background: var(--teal); } .perso-chip.on > i { background: var(--sun); }
.pchip.person { padding-left: 5px; }
.avatar.xs { width: 26px; height: 26px; font-size: 10px; }
@media (hover: hover) { .pchip:hover { transform: translateY(-1px); } }
@media (min-width: 960px) {
  .pfilters-top { grid-template-columns: minmax(200px, 1fr) auto auto; align-items: center; } .pfilter-row { grid-template-columns: 74px minmax(0, 1fr); align-items: center; }
  .pchips { margin: 0; padding: 2px 0; }
  .board.few { grid-auto-columns: minmax(240px, 340px); justify-content: start; }
}

/* Vignettes compactes */
.kcol { padding: 8px; }
.kcol-list { gap: 6px; }
.kcard { gap: 3px; padding: 8px 10px; border-radius: 13px; cursor: pointer; }
.kcard-link { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.kcard-link strong { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 0; font-size: 13px; } .kcard-link strong > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard time, .kcard-link time { position: static; flex: none; font-size: 10.5px; color: var(--ink-3); }
.kcard-sub { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .kcard-sub i { font-style: normal; }
.kcard-phone { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; } .kcard-phone span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcall { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--black); color: #fff; cursor: pointer; transition: transform .25s var(--ease); } .kcall .i { width: 14px; height: 14px; }
@media (hover: hover) { .kcall:hover { transform: scale(1.12); } }
.kcard-foot { min-height: 18px; } .kcard-foot .badge { padding: 0 9px 0 7px; font-size: 11px; } .kcard-foot small { font-size: 11px; } .kcard-foot b { font-size: 12px; }
.kcard-move select { min-height: 32px; font-size: 12px; margin-top: 3px; }

/* Commentaires au survol */
.ktip { position: fixed; z-index: 28; width: 270px; max-height: 300px; overflow: auto; padding: 12px 14px; display: grid; gap: 9px; border-radius: 16px; background: var(--glass-strong); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); pointer-events: none; animation: drop .22s var(--ease); font-size: 13px; }
.ktip b { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); } .ktip p { overflow-wrap: anywhere; white-space: pre-wrap; }

/* Menu Appeler */
.call-menu { position: fixed; z-index: 60; min-width: 190px; padding: 6px; display: grid; gap: 2px; border-radius: 18px; background: var(--glass-strong); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); animation: drop .2s var(--ease); }
.call-menu small { padding: 5px 10px 4px; font-variant-numeric: tabular-nums; }
.call-menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 13px; font-size: 14px; font-weight: 500; transition: background .2s; } .call-menu a .i { width: 19px; height: 19px; }
.call-menu a:hover, .call-menu a:focus-visible { background: var(--field); }

/* Fiche sur le côté */
.drawer-scrim { position: fixed; inset: 0; z-index: 29; background: rgba(50, 35, 12, .16); animation: fadeIn .28s ease both; } .drawer-scrim.out { animation: fadeOut .26s ease both; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.drawer { --edge: 8px; position: fixed; z-index: 30; top: 10px; bottom: 10px; right: var(--edge); width: min(600px, calc(100vw - 2 * var(--edge) - 28px)); display: flex; flex-direction: column; overflow: hidden; color: var(--ink); background: var(--glass-strong); border: 1.5px solid var(--frame-line); border-radius: 28px; box-shadow: -18px 0 60px rgba(50, 35, 12, .28); -webkit-backdrop-filter: blur(36px) saturate(115%); backdrop-filter: blur(36px) saturate(115%); animation: drawerIn .46s var(--ease) both; transition: width .46s var(--ease); }
@keyframes drawerIn { from { transform: translateX(46px); opacity: 0; } }
.drawer.out { animation: drawerOut .26s ease both; } @keyframes drawerOut { to { transform: translateX(46px); opacity: 0; } }
.drawer.max { width: calc(100vw - 2 * var(--edge)); }
.drawer-bar { position: absolute; z-index: 2; top: 12px; right: 14px; display: flex; gap: 6px; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 24px; }
.drawer-body > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.drawer-body .back { display: none; } .drawer-body .page-head { padding-right: 96px; } .drawer-body .page-head h1 { font-size: 26px; }
.drawer-body .detail { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .drawer { --edge: 16px; top: 16px; bottom: 16px; } .drawer-body { padding: 20px 22px 26px; } }
@media (min-width: 960px) { .drawer { --edge: clamp(18px, 4.5vw, 72px); top: 22px; bottom: 22px; } .drawer.max .detail { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.kcol-list, .kcard { grid-template-columns: minmax(0, 1fr); }
.kcard-foot b { flex: none; white-space: nowrap; } .kcard-foot small { min-width: 0; }
.drawer:focus { outline: none; }
.drawer:not(.max) .facts { grid-template-columns: minmax(0, 1fr); }

/* Ventes closées */
.sale-totals { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 14px; } .sale-totals:empty { display: none; }
.sale-total { padding: 16px 18px; } .sale-total > strong { display: block; font-size: 30px; font-weight: 300; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sale-total-gain { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; } .sale-total-gain b { padding: 1px 11px; border-radius: 99px; background: var(--sun); color: var(--sun-ink); font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.sale-row { display: grid; gap: 8px 14px; padding: 13px 16px; border-radius: 20px; box-shadow: none; grid-template-columns: 1fr 1fr; }
.sale-row.perso { background: var(--perso); border-color: var(--perso-line); }
.sale-main { grid-column: 1 / -1; min-width: 0; } .sale-main strong { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; }
.sale-num { display: grid; align-content: start; min-width: 0; } .sale-num b { font-size: 15.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .sale-num.gain b { display: inline-block; justify-self: start; padding: 0 10px; border-radius: 99px; background: var(--sun); color: var(--sun-ink); } .sale-num .badge { justify-self: start; }
@media (min-width: 620px) { .sale-row { grid-template-columns: minmax(0, 1fr) 160px 190px; align-items: center; } .sale-main { grid-column: auto; } }
.sale-card { border-color: var(--sun); box-shadow: inset 0 0 0 1px var(--sun), var(--shadow); } .sale-product { font-size: 19px; letter-spacing: -.01em; } .sale-amount { font-size: 19px; font-variant-numeric: tabular-nums; font-weight: 500; } .sale-amount.gain { display: inline-block; padding: 1px 12px; border-radius: 99px; background: var(--sun); color: var(--sun-ink); }
.sale-card h2 { margin: 0; } .sale-card .row-between { margin-bottom: 8px; }
.sale-calc { padding: 9px 13px; border-radius: 14px; background: color-mix(in srgb, var(--sun) 22%, transparent); color: var(--ink) !important; font-size: 13.5px; font-weight: 500; }
.sale-dialog form > p:not(.form-error):not(.sale-calc) { margin-bottom: 12px; }
.earn { display: flex; flex-wrap: wrap; gap: 8px 30px; } .earn strong { display: block; font-size: 30px; font-weight: 300; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.size-s .earn strong { font-size: 23px; }
.kdone { border-style: dashed; border-width: 1.5px; align-self: start; gap: 6px; } .kdone .kcol-head { padding-bottom: 2px; } .kdone-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); flex: none; } .kdone-ic .i { width: 14px; height: 14px; }
.kdone-hint { font-size: 12px; color: var(--ink-2); padding: 0 6px; } .kdone .link { font-size: 12.5px; padding: 2px 6px; text-align: left; }
@media (max-width: 400px) { .nav { padding: 4px; } .nav a { font-size: 9px; } }

/* Barre de filtres du pipeline : menus déroulants vitrés */
.pbar { display: grid; gap: 8px; margin-bottom: 12px; }
.pbar-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 42px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); color: var(--ink-2); min-width: 0; } .pbar-search input { border: 0 !important; background: transparent !important; padding: 0 !important; min-height: 40px !important; font-size: 14px; }
.pbar-dds { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.dd-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; max-width: 200px; padding: 0 12px 0 14px; border-radius: 99px; background: linear-gradient(160deg, rgba(255,255,255,.3), transparent 60%), var(--glass); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 14px rgba(70,52,25,.08); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .25s, transform .25s var(--ease), box-shadow .25s; }
.dd-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn .dd-chev { transform: rotate(90deg); transition: transform .3s var(--ease); opacity: .65; flex: none; } .dd-btn[aria-expanded=true] .dd-chev { transform: rotate(-90deg); }
.dd-btn.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
@media (hover: hover) { .dd-btn:hover { transform: translateY(-1px); } }
.dd-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); flex: none; } .dd-dot.t-amber { background: var(--sun); box-shadow: 0 0 0 1px rgba(90,60,0,.4); }
.dd-panel { position: fixed; z-index: 45; max-width: min(320px, calc(100vw - 16px)); max-height: min(380px, 60dvh); overflow-y: auto; padding: 6px; display: grid; gap: 1px; border-radius: 20px; background: var(--glass-strong); -webkit-backdrop-filter: blur(26px) saturate(130%); backdrop-filter: blur(26px) saturate(130%); box-shadow: 0 18px 50px rgba(50,35,12,.26), inset 0 1px 0 rgba(255,255,255,.4); animation: ddIn .26s var(--ease) both; transform-origin: top; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.dd-opt { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 5px 11px; border: 0; border-radius: 13px; background: none; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; transition: background .18s; }
.dd-opt > span { flex: 1; min-width: 0; } .dd-opt small { display: block; font-size: 11.5px; font-weight: 400; } .dd-opt b { font-size: 12px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; } .dd-opt .i { flex: none; }
.dd-opt:hover, .dd-opt:focus-visible { background: var(--field); } .dd-opt.on { background: var(--field); }
#pclear { white-space: nowrap; padding: 0 6px; }
@media (min-width: 960px) { .pbar { grid-template-columns: minmax(180px, 1fr) auto; align-items: center; } }

/* Colonnes personnalisables */
.kcol-edit { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; flex: none; transition: background .2s, color .2s; } .kcol-edit:hover { background: var(--solid); color: var(--ink); }
.kadd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; padding: 10px; border: 1.5px dashed var(--line); border-radius: 22px; background: none; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; } .kadd:hover { background: var(--glass); color: var(--ink); }
.board { grid-auto-columns: minmax(250px, 1fr); }
.col-dialog form { display: grid; gap: 4px; } .col-dialog h3 { margin-bottom: 10px; }
.tones { border: 0; padding: 0; margin: 2px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; } .tones legend { padding: 0; margin-bottom: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.tone-pick { position: relative; cursor: pointer; } .tone-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; } .tone-pick i { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--tone); border: 3px solid var(--solid); transition: transform .2s var(--ease), box-shadow .2s; } .tone-pick input:checked + i { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.06); } .tone-pick input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 3px; } .tone-pick.t-amber i { background: var(--sun); }
.col-moves { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.col-foot { margin-top: 10px; } .col-foot .row { margin: 0; } .link[disabled] { opacity: .4; cursor: default; }
.btn .flip, .col-moves .flip { transform: scaleX(-1); }

/* Vue liste de l'apporteur */
.psummary { display: grid; gap: 8px; margin-bottom: 12px; padding: 12px 14px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.psum-who { display: flex; align-items: center; gap: 8px; min-width: 0; } .psum-who strong { font-size: 15px; } 
.psum-counts { display: flex; flex-wrap: wrap; gap: 5px; }
.psum { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: var(--solid); font-size: 12px; font-weight: 500; white-space: nowrap; } .psum > i { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); } .psum.t-amber > i { background: var(--sun); box-shadow: 0 0 0 1px rgba(90,60,0,.4); } .psum b { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.psum-done { background: var(--sun); color: var(--sun-ink); } .psum-done b { color: inherit; }
.plist { display: grid; gap: 6px; }
.prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; padding: 10px 12px; border-radius: 16px; box-shadow: none; cursor: pointer; }
.prow-main { min-width: 0; } .prow-main strong { display: flex; align-items: center; gap: 5px; font-size: 14px; } .prow-main strong > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .prow-main small { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .prow-main small i { font-style: normal; }
.prow .kcall { grid-column: 3; grid-row: 1; }
.prow-status { grid-column: 1 / span 2; grid-row: 2; } .prow-pct { grid-column: 3; grid-row: 2; justify-self: end; font-size: 13px; font-weight: 500; } .prow time { display: none; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
@media (min-width: 760px) {
  .prow { grid-template-columns: auto minmax(0, 1fr) 190px 54px 76px 30px; } .prow-status, .prow-pct, .prow .kcall { grid-column: auto; grid-row: auto; } .prow time { display: block; text-align: right; } .prow-pct { text-align: right; }
  .psummary { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; } .psum-counts { justify-content: flex-end; }
}
/* Le pipeline défile, la zone Closé reste toujours accessible */
.board { display: flex; align-items: flex-start; } .kcol { flex: 0 0 min(250px, 78vw); } .kadd { flex: 0 0 100px; align-self: flex-start; }
.kdone { flex: 0 0 150px; position: sticky; right: 0; z-index: 2; background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.kdone-hint { display: none; }
@media (min-width: 960px) { .kcol:not(.kdone) { flex: 1 0 186px; } .kdone { flex: 0 0 160px; } .kdone-hint { display: block; } .board.few .kcol:not(.kdone) { flex: 0 1 300px; } }

/* La zone Closé n'apparaît que pendant un glisser-déposer */
.kdone { display: none; } .board.is-dragging .kdone { display: flex; animation: paneIn .25s var(--ease) both; }

/* Logo : capsule noire, pour garder le halo lumineux du logo */
.brandmark { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 8px; border-radius: 99px; background: #000; box-shadow: 0 6px 18px rgba(40, 28, 10, .22); }
.brandmark img { display: block; width: auto; max-width: none; } .brandmark img:first-child { height: 34px; } .brandmark img:last-child { height: 22px; }
.nav .nav-brand a, .nav-brand a { padding: 0; background: none; border: 0; border-radius: 99px; }
.brand { justify-content: flex-start; }
.m-brand { flex: none; align-self: flex-start; margin: 12px 0 0 14px; border-radius: 99px; } .m-brand .brandmark { height: 40px; } .m-brand img:first-child { height: 30px; } .m-brand img:last-child { height: 20px; }
@media (min-width: 960px) { .m-brand { display: none; } }
#view > .auth { max-width: 460px; } #view > .auth.wide-doc { max-width: 720px; }

/* Fiche client plus compacte */
.lead-head { margin: 0 0 12px; gap: 3px; } .lead-head h1 { font-size: 23px; font-weight: 400; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; } .lead-head .muted { font-size: 13px; } .lead-head .row { gap: 6px; }
.drawer-body .lead-head h1 { font-size: 21px; }
.lead-detail, .lead-detail .col { gap: 10px; }
.lead-detail .panel { padding: 13px 15px; border-radius: 18px; box-shadow: none; }
.lead-detail h2 { font-size: 13px; margin-bottom: 8px; } .lead-detail h2 .i { width: 16px; height: 16px; }
.lead-detail .row-between h2 { margin: 0; } .lead-detail .row { margin-top: 8px; gap: 6px; } .lead-detail .small { font-size: 12px; }
.lead-detail .muted { font-size: 13px; }
.lead-detail .btn { min-height: 34px; padding: 0 12px; font-size: 13px; gap: 6px; } .lead-detail .btn .i { width: 15px; height: 15px; }
.lead-detail .big-pct { font-size: 26px; font-weight: 400; letter-spacing: -.02em; gap: 8px; line-height: 1.2; margin-top: 2px; } .lead-detail .locked { font-size: 12px; }
.lead-detail .commission .link { font-size: 12.5px; min-height: 26px; padding: 2px 0; }
.lead-detail .facts { gap: 7px 14px; margin-top: 10px; font-size: 13.5px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } .lead-detail .panel > .facts:first-of-type { margin-top: 0; } .lead-detail .facts dt { font-size: 11.5px; } .lead-detail .facts dd { margin-top: 0; }
.lead-detail .chips { gap: 5px; } .lead-detail .chip { min-height: 32px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
.lead-detail .field { margin-bottom: 8px; gap: 3px; } .lead-detail .field > span:first-child { font-size: 12px; } .lead-detail .two { gap: 0 10px; }
.lead-detail input:not([type=checkbox], [type=radio], [type=file]), .lead-detail textarea, .lead-detail select { min-height: 36px; padding: 6px 11px; font-size: 13.5px; border-radius: 12px; }
.lead-detail .money-preview { min-height: 0; font-size: 11.5px; }
.lead-detail .timeline li { gap: 9px; padding-bottom: 8px; } .lead-detail .timeline strong { font-size: 13px; font-weight: 500; } .lead-detail .timeline small { font-size: 11.5px; } .lead-detail .timeline .dot { width: 7px; height: 7px; margin-top: 6px; } .lead-detail .timeline li:not(:last-child)::before { left: 3px; top: 15px; }
.lead-detail .rdv { padding: 9px 11px; gap: 9px; grid-template-columns: 40px minmax(0, 1fr); border-radius: 13px; } .lead-detail .rdv-date b { font-size: 20px; } .lead-detail .rdv-date span { font-size: 10.5px; } .lead-detail .rdv-main strong { font-size: 13.5px; } .lead-detail .rdv small { font-size: 12px; } .lead-detail .rdv-actions .btn { min-height: 30px; padding: 0 9px; font-size: 12px; } .lead-detail .rdv-list { gap: 6px; }
.lead-detail .sale-product { font-size: 15px; } .lead-detail .sale-amount { font-size: 15px; }
.lead-detail .amend { margin-top: 8px; padding: 10px 12px; } .lead-detail .origin { font-size: 11.5px; } .lead-detail .danger-zone .link { font-size: 12.5px; }
.lead-detail .btn.compact { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.drawer:not(.max) .lead-detail .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead-detail .panel .row + .facts { margin-top: 10px; }

/* Connexion de l'agenda, en haut de l'onglet Agenda */
.sync { margin: 0 0 14px; }
.sync-head { display: flex; align-items: flex-start; gap: 12px; } .sync-head h2 { margin: 0 0 2px; } .sync-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); flex: none; } .sync-ic .i { width: 19px; height: 19px; }
.sync-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; } .sync-grid .btn { flex: 1 1 140px; min-height: 40px; }
.sync-more summary { cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--ink-2); min-height: 26px; list-style-position: inside; } .sync-more .field { margin-top: 8px; }
@media (min-width: 960px) { .sync { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; } .sync-grid { margin: 0; flex-wrap: nowrap; } .sync-grid .btn { flex: none; } .sync-more { grid-column: 1 / -1; } }

/* Barre haute sur téléphone : logo, alertes, profil */
.m-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 0 14px; }
.m-end { display: flex; gap: 6px; } .m-brand { margin: 0; align-self: auto; }
.m-end a { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--glass-strong); color: var(--ink); transition: background .3s, color .3s; } .m-end a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .m-end a .i { width: 20px; height: 20px; } .m-end a.on { background: var(--accent); color: var(--accent-ink); }
.m-end .count { position: absolute; top: -3px; right: -3px; left: auto; }
@media (min-width: 960px) { .m-top { display: none; } }
@media (max-width: 959px) { .nav-end { display: none !important; } .nav-ind.off { opacity: 0; } }
@media (min-width: 960px) and (max-width: 1180px) { .nav-pill a { padding: 0 10px; font-size: 12.5px; } .nav-pill .nav-add .i { margin-right: 3px; } }
@media (max-width: 400px) { .nav a { font-size: 9.5px; } }
.nav-pill a .count { position: absolute; top: 2px; right: 4px; left: auto; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; padding: 0 4px; }
@media (max-width: 959px) { .nav-pill a .count { top: 2px; right: calc(50% - 20px); } }

/* Chat */
#view:has(.chat-page) { display: flex; flex-direction: column; overflow: hidden; }
.chat-page { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; }
.chat-title { margin: 0 0 10px; } .chat-title h1 { font-size: 26px; }
.chat { flex: 1; min-height: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.chat-side, .chat-main { min-height: 0; border-radius: 22px; box-shadow: none; display: flex; flex-direction: column; overflow: hidden; }
.chat-main { display: none; } .chat.in-thread .chat-main { display: flex; } .chat.in-thread .chat-side { display: none; }
.chat-search { flex: none; display: flex; align-items: center; gap: 8px; margin: 10px 10px 6px; padding: 0 12px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); color: var(--ink-2); } .chat-search input { border: 0 !important; background: transparent !important; padding: 0 !important; min-height: 38px !important; font-size: 13.5px; }
.chat-list { flex: 1; overflow-y: auto; padding: 2px 6px 8px; display: grid; gap: 2px; align-content: start; }
.chat-contact { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 9px; border: 0; border-radius: 14px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .2s; } .chat-contact:hover { background: var(--field); } .chat-contact.on { background: var(--solid); }
.cc-main { flex: 1; min-width: 0; } .cc-main strong { display: block; font-size: 13.5px; font-weight: 500; } .cc-main small { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chat-contact.unread small { color: var(--ink); font-weight: 500; }
.cc-meta { flex: none; display: grid; justify-items: end; gap: 3px; } .cc-meta time { font-size: 11px; } .cc-meta b { min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sun); color: var(--sun-ink); font-size: 11px; text-align: center; }
.chat-head { flex: none; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid var(--line); } .chat-head strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.2; } .chat-head small { font-size: 11.5px; } .chat-back { width: 34px; height: 34px; flex: none; } .chat-back .i { width: 17px; height: 17px; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 5px; overscroll-behavior: contain; }
.msg { display: flex; } .msg.mine { justify-content: flex-end; }
.msg-b { max-width: min(78%, 460px); padding: 7px 11px 5px; border-radius: 16px 16px 16px 5px; background: var(--solid); font-size: 13.5px; overflow-wrap: anywhere; animation: msgIn .28s var(--ease); } .msg-b p { white-space: pre-wrap; }
@keyframes msgIn { from { opacity: 0; transform: translateY(5px); } }
.msg.mine .msg-b { border-radius: 16px 16px 5px 16px; background: var(--black); color: #fff; --ink-2: #c8c1b3; --field: rgba(255,255,255,.1); }
.msg time { display: block; margin-top: 1px; text-align: right; font-size: 10.5px; color: var(--ink-3); } .msg.mine time { color: #bdb6a8; }
.msg-day { align-self: center; margin: 7px 0 3px; } .msg-day span { padding: 2px 10px; border-radius: 99px; background: var(--field); font-size: 11px; color: var(--ink-2); }
.msg-empty { margin: auto; color: var(--ink-2); font-size: 13.5px; text-align: center; }
.msg-file { display: flex; align-items: center; gap: 9px; min-width: 190px; padding: 7px 9px; margin: 2px -4px 3px; border-radius: 11px; background: var(--field); } .msg-file > span:nth-child(2) { flex: 1; min-width: 0; } .msg-file strong { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .msg-file small { font-size: 11px; color: var(--ink-2); }
.msg-ext { flex: none; display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 4px; border-radius: 9px; background: var(--sun); color: var(--sun-ink); font-size: 10px; font-weight: 500; }
.msg-img img { display: block; max-width: 100%; max-height: 240px; margin: 2px 0 4px; border-radius: 10px; }
.pending { flex: none; display: flex; align-items: center; gap: 9px; margin: 0 10px; padding: 6px 8px; border-radius: 12px; background: var(--field); } .pending[hidden] { display: none !important; } .pending > span:nth-child(2) { flex: 1; min-width: 0; } .pending strong { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pending small { font-size: 11px; } .pending button { border: 0; background: none; color: var(--ink); cursor: pointer; min-width: 30px; min-height: 30px; }
.composer { flex: none; display: flex; align-items: flex-end; gap: 7px; padding: 8px 10px 10px; } .composer.busy { opacity: .6; }
.attach { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--field); border: 1px solid var(--line); cursor: pointer; transition: background .2s; } .attach:hover { background: var(--solid); } .attach .i { width: 19px; height: 19px; } .attach:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.composer-field { flex: 1; min-width: 0; } .composer textarea { display: block; min-height: 40px; max-height: 120px; padding: 9px 14px; border-radius: 20px; font-size: 13.5px; resize: none; line-height: 1.35; }
.send { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--black); color: var(--sun); cursor: pointer; transition: transform .25s var(--ease); } .send:hover { transform: scale(1.06); } .send .i { width: 19px; height: 19px; }
@media (min-width: 760px) {
  .chat { grid-template-columns: 290px minmax(0, 1fr); } .chat-main, .chat.in-thread .chat-main { display: flex; } .chat.in-thread .chat-side { display: flex; } .chat-back { display: none; }
  .chat-main > .empty { margin: auto; }
}
.chat-list { grid-template-columns: minmax(0, 1fr); }

/* Abonnement */
.billing h2 { margin: 0; } .billing .row-between { margin-bottom: 10px; }
.plan-tag { padding: 2px 11px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); font-size: 12px; font-weight: 500; } .plan-tag.pro { background: var(--sun); color: var(--sun-ink); border-color: transparent; }
.usage { margin-bottom: 12px; } .usage-txt { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; } .usage-txt b { font-weight: 500; font-variant-numeric: tabular-nums; }
.usage-bar { height: 7px; border-radius: 99px; background: rgba(60,50,30,.1); overflow: hidden; } .usage-bar i { display: block; height: 100%; border-radius: 99px; background: var(--black); transition: width .8s var(--ease); } .usage-bar i.full { background: #c23a30; }
[data-theme="dark"] .usage-bar { background: rgba(255,255,255,.12); } [data-theme="dark"] .usage-bar i:not(.full) { background: var(--sun); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.plan { padding: 12px; border-radius: 16px; background: var(--field); border: 1px solid var(--line); min-width: 0; } .plan > strong { display: block; font-size: 13px; } .plan > b { display: block; margin: 1px 0 7px; font-size: 19px; font-weight: 400; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .plan > b small { display: inline; font-size: 11.5px; letter-spacing: 0; }
.plan ul { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); } .plan li { display: flex; gap: 5px; align-items: flex-start; } .plan li .i { margin-top: 2px; }
.plan.best { background: var(--solid); border-color: var(--sun); box-shadow: inset 0 0 0 1px var(--sun); }
.plan-line { font-size: 13.5px; } .sim { margin-top: 7px; text-align: center; } .btn[disabled] { opacity: .5; }
.plan-hist { margin-top: 10px; font-size: 12.5px; } .plan-hist summary { cursor: pointer; color: var(--ink-2); font-weight: 500; } .plan-hist li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; } .plan-hist time { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.plan-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 8px 8px 16px; margin-bottom: 12px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; } .plan-strip b { font-weight: 500; } .plan-cta { padding: 4px 13px; border-radius: 99px; background: var(--black); color: #fff; font-size: 12.5px; font-weight: 500; }
.locked-page { max-width: 440px !important; margin-top: clamp(14px, 8vh, 70px) !important; padding: 30px 26px; text-align: center; display: grid; gap: 10px; justify-items: center; } .locked-page h1 { font-size: 25px; } .locked-page p { color: var(--ink-2); } .locked-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); }
/* Onglets grisés de la version gratuite */
.nav a.locked { opacity: .42; filter: grayscale(1); } .nav a.locked::after { content: ""; position: absolute; top: 5px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 2px var(--glass-strong); }
@media (min-width: 960px) { .nav-pill a.locked::after { top: 5px; right: 3px; } }

.cta.locked, .btn.locked { opacity: .45; filter: grayscale(1); }

/* Notes d'appel */
.notes-card h2 { margin: 0; } .notes-card .row-between { margin-bottom: 8px; } .notes-card .field { margin-bottom: 8px; } .notes-card textarea { min-height: 62px; }
.call-notes { display: grid; gap: 7px; margin-top: 12px; max-height: 300px; overflow-y: auto; }
.call-notes li { padding: 8px 11px; border-radius: 13px; background: var(--field); border: 1px solid var(--line); }
.call-notes time { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.call-notes p { font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.notes-empty { margin-top: 9px; }
.notes-card h2 { white-space: nowrap; flex: none; } .notes-card .row-between .small { text-align: right; font-size: 11.5px; line-height: 1.25; min-width: 0; }

/* Langue */
.lang-btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--glass-strong); cursor: pointer; transition: transform .25s var(--ease), background .3s; flex: none; }
.lang-btn:hover { transform: translateY(-1px); } .lang-btn[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--accent); }
.lang-flag { font-size: 20px; line-height: 1; }
.m-end .lang-btn { width: 40px; height: 40px; }
.pub-lang { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 5; }
.lang-menu { position: fixed; z-index: 1000; display: grid; gap: 2px; min-width: 176px; padding: 6px; border-radius: 18px; background: var(--solid); -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4); border: 1px solid var(--line); box-shadow: 0 18px 50px -18px rgba(40,30,10,.45); animation: pop .22s var(--ease); }
.lang-menu button { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
.lang-menu button span { font-size: 18px; } .lang-menu button:hover, .lang-menu button:focus-visible { background: var(--field); outline: none; } .lang-menu button.on { background: var(--black); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
/* Assistance WhatsApp */
.wa-help { position: fixed; z-index: 40; inset-inline-end: 18px; bottom: 18px; display: flex; align-items: center; gap: 6px; padding: 5px 13px 5px 5px; border-radius: 99px; background: var(--glass-strong); color: var(--ink); font-size: 13px; font-weight: 500; box-shadow: 0 10px 30px -12px rgba(40,30,10,.5); transition: transform .25s var(--ease); }
.wa-help:hover { transform: translateY(-2px); } .wa-help img { width: 28px; height: 28px; display: block; }
[dir="rtl"] .wa-help { padding: 5px 5px 5px 13px; }
@media (max-width: 959px) { .wa-help { bottom: calc(96px + env(safe-area-inset-bottom)); padding: 4px; } .wa-help span { display: none; } .public .wa-help { bottom: 16px; } }
/* Arabe : lecture de droite à gauche */
[dir="rtl"] body { font-family: Poppins, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; }
[dir="rtl"] .i.flip, [dir="rtl"] .back .i, [dir="rtl"] .arrow .i { transform: scaleX(-1); }

/* Super admin */
.space-switch { position: fixed; z-index: 45; top: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--black); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.space-switch button, .space-switch a { display: flex; align-items: center; gap: 5px; padding: 5px 13px; border: 0; border-radius: 99px; background: none; color: rgba(255,255,255,.78); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.space-switch .on { background: var(--sun); color: var(--sun-ink); } .space-switch .i { width: 15px; height: 15px; }
@media (max-width: 959px) { .space-switch { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); } }
@media (max-width: 959px) { .on-chat .wa-help, .on-chat .space-switch { display: none; } }
.page-head h1 .i { width: 26px; height: 26px; margin-inline-end: 8px; vertical-align: -3px; }
.adm-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.adm-tabs a { padding: 7px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 500; white-space: nowrap; } .adm-tabs a.on { background: var(--black); color: #fff; }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.adm-kpi { display: grid; gap: 2px; padding: 14px 16px; border-radius: 20px; } .adm-kpi b { font-size: 30px; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .adm-kpi small { color: var(--ink-2); font-size: 12.5px; }
.adm-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .adm-facts dd { font-size: 20px; font-weight: 300; font-variant-numeric: tabular-nums; }
.adm-sub { margin: 14px 0 6px; font-size: 14px; font-weight: 500; }
.adm-sales { display: grid; gap: 6px; } .adm-sales li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 13px; background: var(--field); } .adm-sales b { font-weight: 500; }
.adm-list { display: grid; gap: 6px; }
.adm-user { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; }
.adm-who { min-width: 0; } .adm-who strong, .adm-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .adm-who small { color: var(--ink-2); font-size: 12.5px; }
.adm-who .tag { margin: 0 0 0 4px; padding: 1px 8px; font-size: 10.5px; vertical-align: 1px; }
.adm-tags { display: flex; gap: 5px; align-items: center; } .adm-tags .tag { margin: 0; }
.adm-meta { text-align: center; line-height: 1.1; } .adm-meta b { display: block; font-weight: 500; } .adm-meta small, .adm-user time { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 700px) { .adm-user { grid-template-columns: auto minmax(0, 1fr) auto; } .adm-meta, .adm-user time { display: none; } .adm-tags { grid-column: 2 / -1; } .adm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; margin-bottom: 10px; border-radius: 22px; }
.adm-filters .search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 99px; background: var(--field); } .adm-filters .search input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 0; font: inherit; color: inherit; outline: none; }
.adm-filters select { flex: 0 1 auto; padding: 9px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--field); font: inherit; font-size: 13.5px; color: inherit; }
.adm-events { display: grid; gap: 2px; } .adm-events li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); } .adm-events li:last-child { border-bottom: 0; }
.adm-events strong { display: block; font-size: 13.5px; font-weight: 500; } .adm-events small { font-size: 12px; color: var(--ink-2); } .adm-events time { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.adm-actions { display: grid; gap: 2px; }
.adm-act { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 0; border-bottom: 1px solid var(--line); }
.adm-act > span { flex: 1 1 220px; } .adm-act strong { display: block; font-size: 14px; font-weight: 500; } .adm-act small { font-size: 12.5px; color: var(--ink-2); }
.seg2 { display: flex; padding: 3px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); } .seg2 button { padding: 6px 14px; border: 0; border-radius: 99px; background: none; font: inherit; font-size: 13px; cursor: pointer; color: inherit; } .seg2 button.on { background: var(--black); color: #fff; } .seg2 button[disabled] { opacity: .4; cursor: not-allowed; }
.adm-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; } .adm-link input { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); font: inherit; font-size: 12.5px; color: inherit; } .adm-link small { grid-column: 1 / -1; color: var(--ink-2); font-size: 12px; }
.adm-leads { display: grid; gap: 6px; } .adm-leads li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 13px; background: var(--field); } .adm-leads strong { display: block; font-size: 13.5px; font-weight: 500; } .adm-leads small { font-size: 12px; color: var(--ink-2); }
.page-head h1 .avatar { margin-inline-end: 10px; vertical-align: middle; }

/* ── Inscription et connexion simplifiées */
.roles { gap: 8px; }
.role { position: relative; display: block; }
.role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role > span { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; }
.role strong { display: block; font-size: 15px; } .role small { margin-top: 1px; }
.role-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--field); border: 1px solid var(--line); font-style: normal; transition: background .2s, color .2s; }
.role-ic .i { width: 20px; height: 20px; }
.role-tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); font-style: normal; color: transparent; transition: background .2s, color .2s, border-color .2s; }
.role input:checked + span .role-ic { background: var(--sun); color: var(--sun-ink); border-color: transparent; }
.role input:checked + span .role-tick { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.roles > .field-err { margin-top: 2px; }
.two.names { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-inline-end: 52px !important; }
.pw-eye { position: absolute; top: 50%; inset-inline-end: 4px; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--ink-2); cursor: pointer; }
.pw-eye .i { width: 20px; height: 20px; } .pw-eye[aria-pressed="true"] { color: var(--ink); }
.pw-rules { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-2); }
.pw-rules > span { display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.pw-rules .i { width: 14px; height: 14px; padding: 1px; border-radius: 50%; border: 1px solid currentColor; color: var(--ink-3); transition: background .2s, color .2s; }
.pw-rules .ok { color: var(--green); } .pw-rules .ok .i { color: #fff; background: var(--green); border-color: transparent; }
.field-err { display: block; color: var(--danger); font-size: 13px; font-weight: 500; line-height: 1.4; animation: errIn .25s var(--ease); }
@keyframes errIn { from { opacity: 0; transform: translateY(-3px); } }
.check > .field-err { flex-basis: 100%; } .check { flex-wrap: wrap; }
.err-link { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; white-space: nowrap; }
.form-error { line-height: 1.45; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.forgot-line { display: flex; justify-content: flex-end; margin: -6px 0 14px; font-size: 13.5px; }
.forgot-line a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.alt { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 13.5px; color: var(--ink-2); }
.links a, .links .link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; }
.links .link[disabled] { opacity: .6; text-decoration: none; cursor: default; }
.done-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); }
.auth .back { margin-bottom: 8px; border: 0; background: none; font: inherit; cursor: pointer; color: var(--ink-2); }
/* Sur téléphone, la fin du formulaire peut remonter au-dessus du bouton d'aide WhatsApp */
@media (max-width: 959px) { .public #view { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } .pub-lang { top: 14px; inset-inline-end: 14px; } }

/* Retour visuel pendant un envoi */
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading > * { visibility: hidden; }
.btn.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.primary.loading::after { border-color: var(--accent-ink); border-right-color: transparent; }
.btn.loading[disabled] { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.loading::after { animation-duration: 1.6s !important; } }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); flex-wrap: nowrap; } .check > .field-err { grid-column: 1 / -1; }
/* La bulle de langue des pages de connexion défile avec le logo : elle ne recouvre jamais le formulaire */
.brand { justify-content: space-between; } .brand-lang { flex: none; }
.frame:has(#view .brand-lang) .pub-lang { display: none; }
/* Clavier ouvert sur téléphone : les boutons flottants s'effacent */
/* et pendant que l'on fait défiler vers le bas : rien d'important ne reste caché dessous */
@media (max-width: 959px) { body.typing .wa-help, body.typing .space-switch, body.scroll-down .wa-help, body.scroll-down .space-switch { opacity: 0; pointer-events: none; translate: 0 14px; } }
.wa-help, .space-switch { transition: opacity .25s, translate .3s var(--ease), transform .25s var(--ease); }
/* Téléphone : assez d'espace en bas pour que la dernière carte passe au-dessus du bouton WhatsApp (et de la bascule admin) */
@media (max-width: 959px) {
  .shell #view { padding-bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
  .shell:has(.space-switch) #view { padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px)); }
}

/* Premiers pas (accueil d'un nouveau compte) */
.steps { margin-bottom: 12px; }
.steps .row-between { margin-bottom: 4px; } .steps .link { min-height: 40px; padding: 0 4px; font-size: 13px; color: var(--ink-2); }
.steps-count { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.steps-bar { height: 6px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); overflow: hidden; }
.steps-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sun); transition: width .9s var(--ease); }
.steps-list { display: grid; gap: 6px; }
.steps-list li > a, .steps-list li.done { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 9px 12px; border-radius: 18px; }
.steps-list li > a { background: var(--field); border: 1px solid var(--line); transition: background .2s, transform .25s var(--ease); }
.steps-list li.next > a { background: var(--solid); border-color: var(--ink); }
.steps-list li.done { grid-template-columns: auto minmax(0, 1fr); opacity: .72; }
.steps-list li.next > a { grid-template-columns: auto minmax(0, 1fr); } .steps-list li.next .btn { grid-column: 2; justify-self: start; margin-top: 2px; }
.step-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 13px; font-weight: 500; }
.next .step-n { background: var(--sun); color: var(--sun-ink); border-color: transparent; }
.done .step-n { background: var(--green); color: #fff; border-color: transparent; }
.step-txt strong { display: block; font-size: 14px; } .step-txt small { font-size: 12.5px; }
.steps-list .tag { display: inline-flex; align-items: center; gap: 4px; margin: 0; white-space: nowrap; }
.steps-list .btn.compact { pointer-events: none; }
@media (hover: hover) { .steps-list li > a:hover { background: var(--solid); transform: translateY(-1px); } }
@media (min-width: 960px) { .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Écrans tactiles : zones d'appui d'au moins 40 px, sans changer l'aspect compact des cartes */
@media (pointer: coarse), (max-width: 619px) {
  .kcall, .kcol-edit, .w-tools button { position: relative; }
  .kcall::before, .kcol-edit::before, .w-tools button::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
  .arrow { width: 40px; height: 40px; }
  .tag.sun, a.tag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; }
  .link, .back, .forgot-line a { min-height: 40px; display: inline-flex; align-items: center; }
  .psum-counts a.psum { min-height: 32px; } .psum-counts { row-gap: 8px; }
  .pchip { min-height: 40px; }
  .adm-tabs a { display: inline-flex; align-items: center; min-height: 40px; }
  .sync-more summary { min-height: 40px; display: flex; align-items: center; }
  .space-switch button, .space-switch a { min-height: 36px; padding: 0 14px; }
  .wa-help img { width: 34px; height: 34px; }
  .lead-detail .btn { min-height: 40px; } .lead-detail .btn.compact { min-height: 38px; }
  .lead-detail input:not([type=checkbox], [type=radio], [type=file]), .lead-detail select { min-height: 42px; }
  .kcard-move select { min-height: 38px; }
  .search input { min-height: 42px; }
}
/* Repère de focus visible partout, y compris sur les cartes noires */
input:not([type=checkbox], [type=radio], [type=file]):focus-visible, textarea:focus-visible, select:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 16%, transparent); }
.glass.ink :focus-visible, .space-switch :focus-visible, .nav a.on:focus-visible, .msg.mine :focus-visible, .plan-cta:focus-visible { outline-color: var(--sun); }
.btn.primary:focus-visible { outline-offset: 3px; }
@media (min-width: 620px) { .roles { grid-template-columns: minmax(0, 1fr); } }
/* Arabe : e-mails, numéros et codes restent écrits de gauche à droite */
[dir="rtl"] input[type=email], [dir="rtl"] input[type=tel], [dir="rtl"] .code, [dir="rtl"] input[autocomplete$="password"] { direction: ltr; text-align: right; }
[dir="rtl"] .code { text-align: center; }

/* Couleur de l'espace : remplace le jaune (--sun). Le texte posé dessus reste foncé pour rester lisible. */
:root[data-accent="orange"] { --sun: #f7a248; }
:root[data-accent="pink"] { --sun: #f4a6c8; }
:root[data-accent="red"] { --sun: #f2776a; }
:root[data-accent="blue"] { --sun: #78b0f6; }
:root[data-accent="green"] { --sun: #7fd4a1; }
:root[data-accent="violet"] { --sun: #bba2f6; }
.accents { border: 0; padding: 0; margin: 14px 0 4px; min-width: 0; }
.accents legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 9px; font-size: 14px; font-weight: 500; }
.accents legend .i { width: 19px; height: 19px; }
.accents small { display: block; margin-top: 7px; font-size: 12.5px; color: var(--ink-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch i { display: block; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); box-shadow: 0 2px 8px rgba(40,30,10,.18); transition: transform .2s var(--ease), box-shadow .2s; }
.swatch:hover i { transform: scale(1.08); }
.swatch input:checked + i { box-shadow: 0 0 0 2px var(--glass-strong), 0 0 0 4.5px var(--ink); }
.swatch input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 4px; }
.sw-yellow { background: #f6d24a; } .sw-orange { background: #f7a248; } .sw-pink { background: #f4a6c8; } .sw-red { background: #f2776a; } .sw-blue { background: #78b0f6; } .sw-green { background: #7fd4a1; } .sw-violet { background: #bba2f6; }
@media (max-width: 420px) { .swatches { gap: 7px; } .swatch i { width: 32px; height: 32px; } }
/* Téléphone : barre du bas et pastilles plus près du bord de l'écran */
@media (max-width: 959px) {
  :root { --nav-b: max(6px, calc(env(safe-area-inset-bottom, 0px) - 14px)); }
  .shell .frame { bottom: max(4px, calc(env(safe-area-inset-bottom, 0px) - 20px)); }
  .shell .nav { bottom: var(--nav-b); }
  .shell .space-switch, .shell .wa-help { bottom: calc(var(--nav-b) + 70px); }
  .shell #view { padding-bottom: calc(130px + var(--nav-b)); }
  .shell:has(.space-switch) #view { padding-bottom: calc(176px + var(--nav-b)); }
}
/* Fiche latérale : commence sous la barre d'état du téléphone (heure, batterie) */
.drawer { top: max(10px, calc(env(safe-area-inset-top, 0px) + 6px)); bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) - 14px)); }
@media (min-width: 620px) { .drawer { top: max(16px, calc(env(safe-area-inset-top, 0px) + 6px)); bottom: 16px; } }
@media (min-width: 960px) { .drawer { top: 22px; bottom: 22px; } }

/* Statut du lead : titre et menu déroulant sur une seule ligne */
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status-row h2 { margin: 0; }
.status-row .dd-btn { max-width: none; min-height: 42px; font-weight: 500; }

/* Pipeline sur téléphone : une colonne pleine largeur à la fois, on glisse de gauche à droite */
.ktabs { display: none; }
@media (max-width: 619px) {
  .ktabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 10px; padding: 2px; }
  .ktabs::-webkit-scrollbar { display: none; }
  .ktab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .25s, color .25s; }
  .ktab i { width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--ink-3)); } .ktab.t-amber i { background: var(--sun); }
  .ktab b { font-weight: 500; font-size: 11.5px; opacity: .7; font-variant-numeric: tabular-nums; }
  .ktab.on { background: var(--black); color: #fff; border-color: transparent; }
  .board { display: flex; gap: 12px; margin: 0; padding: 0 0 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .board::-webkit-scrollbar { display: none; }
  .board > .kcol, .board > .kadd { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
  .board > .kadd { align-self: stretch; min-height: 120px; }
  .board .kcol-list { max-height: calc(100dvh - 380px); }
}

/* Pipeline : recherche + bouton « Filtres » qui déroule les filtres */
.pbar-top { display: flex; gap: 8px; align-items: center; min-width: 0; }
.pbar-top .pbar-search { flex: 1; }
.pbar-toggle { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.3), transparent 60%), var(--glass); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .25s, color .25s; }
.pbar-toggle .i { width: 18px; height: 18px; } .pbar-toggle .i.sm { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .3s var(--ease); }
.pbar-toggle[aria-expanded="true"] .i.sm { transform: rotate(-90deg); }
.pbar-toggle.active, .pbar-toggle[aria-expanded="true"] { background: var(--black); color: #fff; border-color: transparent; }
.pbar-toggle b { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--sun); color: var(--sun-ink); font-size: 11.5px; line-height: 19px; text-align: center; }
.pbar-drop { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .35s var(--ease), opacity .25s, visibility 0s .35s; }
.pbar-drop > .pbar-dds { overflow: hidden; min-height: 0; }
.pbar-drop.open { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows .35s var(--ease), opacity .25s, visibility 0s; }
.pbar-drop.open > .pbar-dds { padding-top: 2px; }
@media (min-width: 960px) { .pbar { grid-template-columns: minmax(0, 1fr); } }

/* Bouton copier, à côté d'un numéro */
.kcard-phone { justify-content: flex-start; } .kcard-phone .kcall { margin-inline-start: auto; }
.kcopy { position: relative; flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.kcopy .i { width: 14px; height: 14px; } .kcopy:hover { background: var(--solid); color: var(--ink); }
.kcopy::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.kcopy.done { background: var(--sun); color: var(--sun-ink); transform: scale(1.1); }
[data-theme="dark"] .kcopy { background: rgba(255,255,255,.1); }
.dd-copy { display: flex; align-items: center; gap: 8px; }
/* Téléphone : le haut de l'application descend sous la zone floutée par le navigateur (heure, batterie) */
@media (max-width: 959px) {
  .frame { top: calc(env(safe-area-inset-top, 0px) + 14px); }
  .drawer { top: calc(env(safe-area-inset-top, 0px) + 16px); }
}
/* Agenda : la connexion aux agendas passe sous le calendrier et les rendez-vous */
.sync-bottom { margin-top: 16px; }
/* Téléphone : iPhone agrandit la page quand un champ fait moins de 16 px. Tous les champs passent à 16 px. */
@media (max-width: 959px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select { font-size: 16px !important; }
  /* Clavier ouvert : le menu du bas se cache pour laisser la place à la conversation. */
  body.typing .shell .nav { opacity: 0; pointer-events: none; transform: translateY(20px); }
  .shell .nav { transition: opacity .2s, transform .25s var(--ease); }
}

/* Verre liquide : bulle qui suit le doigt ou la souris sur la barre de navigation */
.nav-lens { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; border-radius: 99px; opacity: 0; transform-origin: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.28), rgba(255,255,255,.06) 60%), rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.5), inset 0 -10px 18px -10px rgba(255,255,255,.7), inset 0 0 14px rgba(255,255,255,.18), 0 8px 22px -10px rgba(40,30,10,.4), 0 0 18px rgba(255,255,255,.28);
  -webkit-backdrop-filter: saturate(1.7) brightness(1.06) contrast(1.04); backdrop-filter: saturate(1.7) brightness(1.06) contrast(1.04);
  transition: opacity .28s ease; will-change: transform, width; }
.nav-lens::after { content: ""; position: absolute; top: 3px; left: 18%; right: 18%; height: 30%; border-radius: 99px; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0)); opacity: .45; }
.nav-lens.on { opacity: 1; }
[data-theme="dark"] .nav-lens { background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.16), rgba(255,255,255,.03) 60%); border-color: rgba(255,255,255,.45); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.6), inset 0 -10px 18px -10px rgba(255,255,255,.3), 0 8px 22px -10px rgba(0,0,0,.7), 0 0 18px rgba(255,255,255,.1); }
.nav a .i { transition: transform .25s var(--ease); }
.nav a.lens-on .i { transform: scale(1.16); }
.nav-pill a { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media (max-width: 959px) { .shell .nav { touch-action: none; overflow: visible; } }
@media (prefers-reduced-motion: reduce) { .nav-lens { transition: none; } .nav a.lens-on .i { transform: none; } }

/* Téléphone : le « + » sort de la barre et flotte au centre, juste au-dessus, entouré par la barre */
@media (max-width: 959px) {
  .shell .nav a.nav-add { position: absolute; z-index: 4; left: 50%; top: -14px; flex: none; width: 34px; height: 34px; min-height: 0; padding: 0; transform: translateX(-50%); display: grid; place-items: center; border-radius: 50%; background: none; }
  .shell .nav a.nav-add > :not(.i) { display: none; }
  .shell .nav a.nav-add::before { content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: 50%; background: var(--glass-strong); border: 1px solid var(--line); clip-path: inset(-20px -20px 55% -20px); box-shadow: 0 -6px 18px -10px rgba(40,30,10,.35); }
  .shell .nav a.nav-add .i { width: 34px; height: 34px; padding: 8px; margin: 0; border-radius: 50%; background: var(--sun); color: var(--sun-ink); box-shadow: 0 8px 20px -8px rgba(40,30,10,.45), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .25s var(--ease), box-shadow .25s; }
  .shell .nav a.nav-add:active .i { transform: scale(.92); }
  .shell .nav a.nav-add.on .i { box-shadow: 0 0 0 3px var(--black), 0 8px 20px -8px rgba(40,30,10,.45); }
  .shell .nav a.nav-add.locked { opacity: 1; filter: none; } .shell .nav a.nav-add.locked .i { filter: grayscale(1); opacity: .55; }
  .shell .nav a.nav-add.locked::after { top: 2px; right: 2px; }
  /* La pastille admin remonte au-dessus du « + » */
  .shell .space-switch { bottom: calc(var(--nav-b) + 90px); }
  .shell #view { padding-bottom: calc(160px + var(--nav-b)); }
  .shell:has(.space-switch) #view { padding-bottom: calc(210px + var(--nav-b)); }
}

/* Fiche client : modification des coordonnées par l'apporteur */
.client-edit { display: grid; gap: 10px; margin: 6px 0 14px; padding: 12px; border-radius: 18px; background: var(--field); border: 1px solid var(--line); }
.client-edit .field { margin: 0; }
.status-row .badge { font-size: 13px; padding: 5px 12px 5px 10px; }

/* ── Réseau : Mes closers / Mes apporteurs */
@media (max-width: 959px) { .nav-pill a.nav-net { display: none; } }
@media (min-width: 960px) { .m-net { display: none; } }
.net-add h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 17px; } .net-add h2 .i { width: 20px; height: 20px; }
.net-form .row { margin-top: 10px; }
.net-add #net-result:not(:empty), .net-add #net-scanner:not(:empty) { margin-top: 14px; }
.net-bar { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; } .net-bar .search { flex: 1; max-width: 420px; min-height: 44px; } .net-bar .search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); outline: none; }
.net-bar:empty { display: none; }
.net-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.net-card { display: grid; gap: 14px; align-content: start; padding: 18px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.net-card.off { opacity: .6; }
.net-card.fresh { animation: netIn .9s var(--ease) both; box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
@keyframes netIn { from { opacity: 0; transform: translateY(10px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.net-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.net-who { flex: 1; min-width: 0; display: grid; } .net-who strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .net-who small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net-top .badge { flex: none; }
.net-del { width: 30px; height: 30px; flex: none; opacity: .55; transition: opacity .2s; } .net-del:hover, .net-del:focus-visible { opacity: 1; }
.net-facts { display: grid; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 18px; background: var(--field); }
.net-facts div { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 8px; min-width: 0; }
.net-facts dt { font-size: 12px; color: var(--ink-3); } .net-facts dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; }
.net-facts dd a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-decoration: none; } .net-facts dd a:hover { text-decoration: underline; }
.net-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.net-stats div { display: grid; gap: 1px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--line); } .net-stats b { font-size: 19px; font-weight: 600; } .net-stats small { font-size: 11.5px; color: var(--ink-3); line-height: 1.25; }
.net-actions { display: flex; flex-wrap: wrap; gap: 8px; } .net-actions .btn { flex: 1 1 auto; justify-content: center; } .net-actions .btn.icon-only { flex: none; width: 44px; padding: 0; }
.net-since { color: var(--ink-3); font-size: 12px; }
.net-empty { list-style: none; grid-column: 1 / -1; }
.chat-new { margin-bottom: 8px; } .chat-new .dd-btn { width: 100%; }
.pick-net { margin: 0 0 14px; } .pick-net .dd-btn { width: 100%; }
.or-line { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; color: var(--ink-3); font-size: 12.5px; } .or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Barre du haut sur téléphone : 4 boutons ronds (réseau, langue, alertes, profil) à côté du logo. */
@media (max-width: 959px) {
  .m-end { gap: 5px; flex: none; } .m-end a, .m-end .lang-btn { width: 37px; height: 37px; } .m-end a .i { width: 19px; height: 19px; }
  .m-brand { min-width: 0; } .m-brand .brandmark { height: 38px; }
}
@media (max-width: 380px) {
  .m-top { padding-left: 10px; padding-right: 10px; }
  .m-end a, .m-end .lang-btn { width: 34px; height: 34px; } .m-end a .i { width: 18px; height: 18px; }
  .m-brand img:first-child { height: 25px; } .m-brand img:last-child { height: 16px; } .m-brand .brandmark { height: 34px; }
}
.net-add { padding: 14px; }
.net-add-bar { display: flex; flex-wrap: wrap; gap: 8px; } .net-add-bar .btn:first-child { flex: 1 1 auto; }
.net-add .net-form { margin-top: 14px; padding: 4px 4px 2px; }
@media (max-width: 560px) { .net-add-bar .btn.ghost { width: 46px; padding: 0; flex: none; } .net-add-bar .btn.ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
.dd-opt .avatar { flex: none; }
.net-facts dd a.kcopy { flex: none; color: var(--ink-2); text-decoration: none; } .net-facts dd .kcopy .i { width: 14px; height: 14px; }
.net-facts dd > a:first-child { flex: 0 1 auto; min-width: 0; margin-right: 2px; }
.net-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; }
.net-facts div { grid-template-columns: 1fr; gap: 1px; }
.net-facts dd { gap: 4px; } .net-facts dd > a:first-child { margin-right: 4px; }
/* Téléphone : « Closers » / « Apporteurs » dans la barre du bas, « Closés » en haut. */
@media (max-width: 959px) { .nav-pill a.nav-closed, .nav-pill a.only-d { display: none; } }
@media (min-width: 960px) { .nav-pill a.only-m { display: none; } }
.pref-lang { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; } .pref-lang > span { display: inline-flex; align-items: center; gap: 10px; flex: 1; } .pref-lang .i { width: 19px; height: 19px; } .pref-lang .lang-btn { width: 40px; height: 40px; } .pref-lang small { color: var(--ink-3); }

/* ── Lien personnel du closer (page Mon QR code) */
.form-link { margin-top: 16px; display: grid; gap: 12px; } .form-link h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; } .form-link .muted { margin: 0; }
.fl-box { position: relative; display: grid; gap: 12px; }
.fl-url { padding: 14px 16px; border-radius: 16px; background: var(--field); border: 1px solid var(--line); font-size: 15px; font-weight: 500; overflow-wrap: anywhere; user-select: all; }
.form-link.is-locked .fl-url { filter: blur(6px); user-select: none; pointer-events: none; opacity: .8; }
.form-link.is-locked .fl-box { min-height: 190px; align-content: start; }
.fl-lock { position: absolute; inset: 0; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; padding: 10px; } .fl-lock small { color: var(--ink-2); max-width: 320px; } .fl-lock .btn { margin-top: 6px; }
.form-link .row .btn .i { width: 18px; height: 18px; }

/* ── Page publique du lien personnel : sans marque, juste le closer */
#app.bare { min-height: 100dvh; }
.lf-page { position: relative; min-height: 100dvh; display: grid; place-items: center; padding: calc(env(safe-area-inset-top) + 64px) 16px calc(env(safe-area-inset-bottom) + 28px); }
.lf-page #view { width: 100%; max-width: 480px; padding: 0; }
.lf-lang { position: absolute; top: calc(env(safe-area-inset-top) + 14px); inset-inline-end: 14px; }
.lf-card { display: grid; gap: 16px; padding: 26px 22px; border-radius: 30px; }
.lf-who { display: grid; justify-items: center; gap: 12px; text-align: center; } .lf-who h1 { margin: 0; font-size: 26px; font-weight: 500; } .lf-co { margin: 2px 0 0; color: var(--ink-3); }
.lf-lead { margin: 0; text-align: center; color: var(--ink-2); line-height: 1.5; }
.lf-card form { display: grid; gap: 12px; } .lf-card .two { gap: 12px; }
.lf-card .check { align-items: flex-start; }
.lf-note { margin: 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.lf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-done { display: grid; justify-items: center; gap: 8px; text-align: center; } .lf-done h2 { margin: 6px 0 0; } .lf-done p { margin: 0; color: var(--ink-2); }
.lf-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--field); } .lf-ic.ok { background: var(--sun); color: var(--sun-ink); } .lf-off { text-align: center; justify-items: center; }
/* La page du lien personnel défile d'elle-même : le reste de l'application bloque le défilement de la page. */
#app.bare { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.lf-page { min-height: 100%; place-items: start center; align-content: center; }
.lf-page #view { overflow: visible; flex: none; min-height: 0; }
/* Photo de profil dans le bouton rond Profil (en haut à droite) */
a.has-photo { padding: 0 !important; overflow: hidden; }
.nav-photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
a.has-photo.on { background: none !important; box-shadow: 0 0 0 2.5px var(--sun); }
/* Lecteur de QR code */
.scan-view { position: relative; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 1 / 1; max-height: 360px; width: 100%; max-width: 360px; justify-self: center; }
.scan-view video { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; display: block; }
.scan-frame { position: absolute; inset: 18%; border-radius: 22px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); border: 2.5px solid var(--sun); animation: scanPulse 1.6s ease-in-out infinite; }
@keyframes scanPulse { 50% { transform: scale(.96); opacity: .75; } }
.scanner .center { text-align: center; margin: 0; }

/* ── Formules de commission (ajout d'un lead) */
.cmodes { border: 0; margin: 14px 0 6px; padding: 0; display: grid; gap: 10px; }
.cmode { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--field); cursor: pointer; transition: border-color .25s, background .25s, transform .2s var(--ease); }
.cmode:hover { transform: translateY(-1px); }
.cmode input { position: absolute; opacity: 0; pointer-events: none; }
.cmode-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--glass-strong); font-size: 20px; } .cmode-ic .i { width: 20px; height: 20px; }
.cmode-txt { flex: 1; min-width: 0; display: grid; gap: 1px; } .cmode-txt strong { font-size: 15.5px; font-weight: 600; } .cmode-txt small { color: var(--ink-2); line-height: 1.35; }
.cmode-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--solid); transition: all .25s; }
.cmode:has(input:checked) { border-color: var(--ink); background: var(--glass-strong); }
.cmode:has(input:checked) .cmode-ic { background: var(--sun); color: var(--sun-ink); }
.cmode:has(input:checked) .cmode-dot { border: 6px solid var(--ink); }
.cmode:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmode.gift { border-style: dashed; }
.cmode.gift:has(input:checked) { border-style: solid; }
.cmode-pct { margin: 2px 4px 0; }
.cmodes .or-line { margin: 2px 0; }
.cmode-tag { font-size: 14px; font-weight: 500; padding: 3px 10px; border-radius: 99px; background: var(--field); vertical-align: middle; }

/* ── Pro Max : les deux profils mis en avant */
.promax { margin-top: 16px; padding: 18px; border-radius: 24px; display: grid; gap: 12px; color: #f6efe2; background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.12), transparent 55%), linear-gradient(150deg, #23201b, #0f0e0c); box-shadow: 0 18px 40px -18px rgba(20,14,4,.6); }
.promax .muted { color: rgba(246,239,226,.7); margin: 0; }
.promax-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promax-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 99px; background: var(--sun); color: var(--sun-ink); font-weight: 650; letter-spacing: .01em; }
.promax-head b { font-size: 24px; font-weight: 600; } .promax-head b small { font-size: 13px; font-weight: 400; opacity: .7; }
.promax-lead { margin: 0; font-size: 15px; line-height: 1.45; }
.promax-profiles { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; }
.pm-swap { align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 16px; }
.pm-card { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.pm-card.on { border-color: var(--sun); box-shadow: inset 0 0 0 1px var(--sun); }
.pm-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; } .pm-top strong { font-size: 15.5px; }
.pm-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); } .pm-ic .i { width: 18px; height: 18px; }
.pm-now { margin-inline-start: auto; font-size: 11.5px; padding: 2px 9px; border-radius: 99px; background: rgba(255,255,255,.14); }
.pm-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; } .pm-card li { display: flex; gap: 6px; align-items: flex-start; } .pm-card li .i { flex: none; margin-top: 3px; color: var(--sun); }
.pm-card .btn { justify-self: start; }
.promax .btn.primary { background: var(--sun); color: var(--sun-ink); border-color: transparent; }
@media (max-width: 640px) { .promax-profiles { grid-template-columns: 1fr; } .pm-swap { justify-self: center; transform: rotate(90deg); } }

/* ── Entreprise ─────────────────────────────────────────── */
/* Marque de la société (logo + nom) à la place de StrideClose, pour le gérant et ses closers */
.brandmark.co { gap: 9px; padding: 0 16px 0 5px; max-width: min(62vw, 300px); }
.brandmark.co .co-logo, .brandmark.co .co-mono { height: 34px; width: 34px; border-radius: 50%; flex: none; }
.brandmark.co .co-name { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.m-brand .brandmark.co .co-logo, .m-brand .brandmark.co .co-mono { height: 30px; width: 30px; }
.co-logo { display: block; object-fit: cover; background: #fff; }
.co-mono { display: grid; place-items: center; background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.co-logo.big, .co-mono.big { width: 72px; height: 72px; border-radius: 22px; font-size: 24px; box-shadow: 0 8px 22px -10px rgba(40,28,10,.5); }
@media (max-width: 420px) { .m-brand .brandmark.co { max-width: 52vw; } .brandmark.co .co-name { font-size: 14px; } }

/* Inscription : profil Entreprise */
.co-fields { display: grid; gap: 12px; margin: 4px 0 6px; padding: 14px; border-radius: 18px; background: var(--field); border: 1px solid var(--line); animation: drop .3s var(--ease); }
.co-fields[hidden] { display: none; }
.co-plans { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.co-plans legend { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.co-plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-plan > span { display: grid; gap: 2px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; transition: background .2s, border-color .2s; height: 100%; }
.co-plan strong { font-size: 13.5px; font-weight: 600; } .co-plan b { font-size: 18px; font-weight: 600; } .co-plan b small { display: inline; font-size: 12px; font-weight: 400; }
.co-plan input:checked + span { background: var(--black); color: #fff; border-color: transparent; } .co-plan input:checked + span small { color: rgba(255,255,255,.75); }
.co-plan input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.co-plan { position: relative; }

/* Activation du compte d'un closer */
.act-co { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--field); border: 1px solid var(--line); }
.act-co img, .act-co .co-mono { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; flex: none; }
.act-co strong { font-size: 16px; }

/* Page Équipe */
.team-page { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.team-head { display: flex; align-items: center; gap: 16px; padding: 18px; flex-wrap: wrap; }
.team-id { flex: 1; min-width: 180px; display: grid; gap: 4px; justify-items: start; }
.team-id h1 { margin: 0; font-size: clamp(24px, 5vw, 32px); letter-spacing: -.02em; }
.team-id p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.co-logo-pick { position: relative; cursor: pointer; flex: none; border-radius: 22px; }
.co-logo-edit { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.co-logo-pick:focus-within { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.co-form { display: grid; gap: 10px; width: 100%; }
.seats { display: grid; justify-items: end; text-align: end; } .seats b { font-size: 30px; font-weight: 300; letter-spacing: -.03em; line-height: 1; } .seats small { font-size: 12.5px; }
.seg-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--glass-strong); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 99px; background: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.seg-tabs button.on { background: var(--accent); color: var(--accent-ink); }
.team-sec { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.team-sec .net-grid { margin: 0; }
.team-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.team-form { display: grid; gap: 12px; }
.team-card .net-who small { font-size: 12.5px; }
.team-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.team-edit:empty { display: none; } .team-edit { padding-top: 6px; border-top: 1px solid var(--line); }
.act-share { padding: 16px; display: grid; gap: 8px; border-color: var(--sun); box-shadow: inset 0 0 0 1px var(--sun), var(--shadow); animation: drop .35s var(--ease); }
.act-share p { margin: 0; }
.team-pay { display: grid; gap: 12px; } .team-pay h2 { display: flex; align-items: center; gap: 8px; margin: 0; } .team-pay p { margin: 0; }
.team-pay .plan ul { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 5px; font-size: 13px; } .team-pay .plan li { display: flex; gap: 5px; align-items: flex-start; } .team-pay .plan li .i { flex: none; margin-top: 2px; }
.team-pay .plan > b small { font-size: 12px; font-weight: 400; }
@media (max-width: 520px) { .team-pay .plans { grid-template-columns: 1fr; } .seats { justify-items: start; text-align: start; } }

/* Répartition des leads */
.team-leads { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.team-lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px 14px; border-radius: 18px; }
.tl-main { display: grid; gap: 2px; min-width: 0; } .tl-main strong { display: flex; align-items: center; gap: 5px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tl-main small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tl-status { justify-self: end; }
.tl-who { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.tl-assign { justify-self: end; display: grid; justify-items: end; gap: 8px; }
.tl-chips, .team-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chips { grid-column: 1 / -1; justify-content: flex-end; } .tl-chips[hidden] { display: none; }
.team-lead:has(.tl-chips:not([hidden])) .tl-assign { grid-column: 1 / -1; justify-self: stretch; justify-items: end; }
.team-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 3px 13px 3px 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.team-chip:hover { background: var(--glass-strong); } .team-chip:active { transform: scale(.97); }
.team-pick { margin-top: 10px; }
#tl-filter { min-height: 38px; border-radius: 99px; padding: 0 12px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: inherit; font-size: 13.5px; max-width: 200px; }
.assign-card h2 { display: flex; align-items: center; gap: 8px; }

/* Statistiques de l'équipe */
.st-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.st-kpis .kpi { padding: 14px 16px; } .st-kpis .kpi small { font-size: 12.5px; } .st-kpis .kpi b { font-size: 32px; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-kpis .kpi.warn b { color: #b4580b; } [data-theme="dark"] .st-kpis .kpi.warn b { color: var(--sun); }
.st-kpis .kpi.wide { grid-column: span 2; } .st-kpis .kpi.wide b { font-size: 24px; font-weight: 500; }
@media (max-width: 420px) { .st-kpis { grid-template-columns: 1fr 1fr; } }
.st-rank li { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 5px 0; font-size: 13.5px; }
.st-rank { list-style: none; padding: 0; }
.st-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.st-card { display: grid; gap: 12px; align-content: start; }
.st-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .st-top > div { display: grid; flex: 1; min-width: 120px; } .st-top .badge { margin-inline-start: auto; }
.st-card .net-stats { grid-template-columns: repeat(4, 1fr); }
.st-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: rgba(60,50,30,.09); gap: 2px; }
.st-bar i { display: block; width: 0; height: 100%; transition: width .9s var(--ease); }
.st-bar .ink, .st-legend .ink { background: var(--black); } .st-bar .sun, .st-legend .sun { background: var(--sun); } .st-bar .green, .st-legend .green { background: #2f9a5f; }
.st-bar .pale, .st-legend .pale { background: rgba(60,50,30,.22); }
.st-bar .hatch, .st-legend .hatch { background: repeating-linear-gradient(115deg, rgba(60,50,30,.45) 0 2px, rgba(255,252,245,.5) 2px 5px); }
[data-theme="dark"] .st-bar .ink, [data-theme="dark"] .st-legend .ink { background: #efe8da; }
.st-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); }
.st-legend li { display: inline-flex; align-items: center; gap: 5px; } .st-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; } .st-legend b { color: var(--ink); font-weight: 600; }
.st-sales { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 600; }

/* Accueil du gérant */
.team-home { display: grid; gap: 12px; margin-bottom: 16px; }
.team-home h2 { display: flex; align-items: center; gap: 8px; }
.team-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.team-mini li { display: flex; align-items: center; gap: 9px; padding: 6px 4px; border-top: 1px solid var(--line); font-size: 14px; } .team-mini li:first-child { border-top: 0; }
.team-mini li > span:not(.badge):not(.avatar) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .team-mini b { min-width: 2ch; text-align: end; font-variant-numeric: tabular-nums; }
.team-cta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: var(--ink); }
.team-cta > span:nth-child(2) { flex: 1; display: grid; gap: 2px; } .team-cta strong { font-size: 16px; }
.team-cta-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--black); color: var(--sun); flex: none; }

/* Profil : carte Entreprise */
.biz-card { margin-top: 16px; padding: 18px; border-radius: 24px; display: grid; gap: 12px; background: var(--field); border: 1px solid var(--line); }
.biz-card.mine { background: var(--black); color: #f6efe2; border-color: transparent; } .biz-card.mine .btn.primary { background: var(--sun); color: var(--sun-ink); border-color: transparent; }
.biz-card .promax-head b { font-size: 22px; }
.biz-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; } .biz-perks li { display: flex; gap: 6px; align-items: flex-start; } .biz-perks .i { flex: none; margin-top: 2px; }
.biz-card form { display: grid; gap: 10px; } .biz-card form[hidden] { display: none; }

/* Réseau de l'apporteur : closers d'une entreprise */
.net-org { display: inline-flex !important; align-items: center; gap: 5px; white-space: normal !important; overflow: visible !important; } .net-org img { width: 16px; height: 16px; border-radius: 5px; object-fit: cover; }
.team-pick .team-chip { min-height: 42px; }

.team-mini b { display: inline-flex; align-items: center; gap: 3px; } .team-mini b .i { width: 14px; height: 14px; color: var(--ink-2); }
@media (max-width: 560px) { .seg-tabs { width: 100%; } .seg-tabs button { flex: 1; justify-content: center; padding: 0 8px; font-size: 13.5px; gap: 5px; } }

/* Vitrine Entreprise de l'admin */
.demo-note { margin: 0; align-items: center; border: 1px dashed color-mix(in srgb, var(--amber) 55%, transparent); }
.plan-tag.demo-tag { background: transparent; border: 1px dashed currentColor; color: var(--amber); }
@media (max-width: 520px) { .space-switch { max-width: calc(100vw - 16px); } .space-switch button, .space-switch a { padding: 5px 9px; font-size: 12px; gap: 4px; } }
@media (max-width: 380px) { .space-switch button span, .space-switch a span { font-size: 11px; } .space-switch .i { display: none; } }

/* Boutons d'un closer de l'équipe : chacun garde sa largeur et passe à la ligne si besoin (jamais de texte superposé) */
.net-actions.team-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.net-actions.team-actions .btn { flex: 1 1 auto; min-width: max-content; white-space: nowrap; padding: 0 14px; }

/* Pipeline du gérant : un closer à la fois */
.pteam { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 0 10px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.pteam::-webkit-scrollbar { display: none; }
.pteam-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 3px 14px 3px 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer; transition: background .25s, color .25s, transform .2s var(--ease); }
.pteam-chip:active { transform: scale(.97); }
.pteam-chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pteam-note { margin: 0 0 10px; } .pteam-note[hidden] { display: none; }
