/* Cloutier Local */
:root {
  --bg: #f4f6fb; --card: #fff; --line: #e5e9f1; --line-2: #eef1f6; --text: #0f172a; --text-2: #334155; --muted: #64748b; --faint: #94a3b8;
  --primary: #2563eb; --primary-600: #1d4ed8; --primary-50: #eef4ff; --ring: rgba(37, 99, 235, .16);
  --nav: #0b1324; --nav-2: #101b33; --nav-text: #a3aec4;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .03);
  --shadow-lg: 0 12px 32px -12px rgba(15, 23, 42, .22);
  --side: 256px; --top: 64px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Inter", Roboto, sans-serif;
  color: var(--text); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 10px; }
b { font-weight: 650; }
small { font-size: 12px; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.late { color: #dc2626; font-weight: 600; }
.err { color: #b91c1c; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.pre { white-space: pre-wrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.only-mobile { display: none !important; }
.narrow { max-width: 680px; margin: 0 auto; }

/* ---------- Frame ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40; display: flex; flex-direction: column; padding: 18px 12px 14px;
  background: radial-gradient(120% 60% at 0% 0%, rgba(59, 130, 246, .16), transparent 60%), linear-gradient(180deg, var(--nav-2), var(--nav));
  color: var(--nav-text); overflow-y: auto; border-right: 1px solid rgba(255, 255, 255, .04);
}
.sb-brand { padding: 2px 10px 18px; text-decoration: none !important; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { flex: none; filter: drop-shadow(0 4px 10px rgba(37, 99, 235, .35)); }
.wordmark { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.wordmark b { font-weight: 800; margin-left: .22em; color: var(--primary); }
.logo.on-dark .wordmark { color: #fff; }
.logo.on-dark .wordmark b { color: #8fb3ff; }

.sb-nav a, .sb-agency, .sb-foot a, .sb-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 2px 0; border-radius: 9px;
  color: var(--nav-text); font-family: inherit; font-weight: 500; font-size: 14px; line-height: 1.3; text-decoration: none !important; transition: background .15s, color .15s;
}
.sb-nav a:hover, .sb-agency:hover, .sb-foot a:hover, .sb-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sb-nav a.on, .sb-agency.on, .sb-foot a.on {
  color: #fff; background: linear-gradient(90deg, rgba(59, 130, 246, .26), rgba(59, 130, 246, .06)); box-shadow: inset 3px 0 0 #4f8cff;
}
.sb-nav a.on .ic, .sb-agency.on .ic { color: #8fb3ff; }
.sb-nav .badge { margin-left: auto; }
.sb-link { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; }
.sb-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sb-foot form { margin: 0; }

.switcher { position: relative; margin: 8px 2px 14px; }
.switcher summary {
  list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
}
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary > span:not(.avatar) { flex: 1; min-width: 0; }
.switcher summary b { display: block; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher summary small { display: block; color: #7f8aa3; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher .chev { width: 16px; height: 16px; color: #7f8aa3; transition: transform .15s; }
.switcher[open] .chev { transform: rotate(180deg); }
.switch-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; padding: 6px; border-radius: 12px;
  background: #131f3a; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .6);
}
.switch-menu a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: #cbd5e1; font-size: 13px; text-decoration: none !important; }
.switch-menu a:hover, .switch-menu a.on { background: rgba(255, 255, 255, .07); color: #fff; }
.switch-menu a.all { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 4px; padding-top: 9px; border-radius: 0 0 8px 8px; }
.switch-menu a.all .ic { width: 18px; height: 18px; margin: 0 3px; }

.main { margin-left: var(--side); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 32px;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line);
}
.tb-title { font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-search { margin-left: auto; position: relative; width: min(340px, 40vw); }
.tb-search .ic, .search-field .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.tb-search input { padding-left: 38px; background: #f5f7fb; border-color: transparent; height: 38px; }
.tb-search input:focus { background: #fff; }
.tb-user { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--line); }
.tb-user b { display: block; font-size: 13.5px; line-height: 1.2; }
.tb-user small { display: block; color: var(--muted); }

.content { padding: 28px 32px 48px; max-width: 1360px; margin: 0 auto; }
.content.wide { max-width: none; }
.content > .card { margin-bottom: 20px; }
.scrim { display: none; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-head .actions form { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.back .ic { width: 16px; height: 16px; }

/* ---------- Buttons, pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 9px;
  border: 1px solid #d8dee9; background: #fff; color: #1e293b; font-family: inherit; font-weight: 600; font-size: 13.5px; line-height: 1; cursor: pointer; white-space: nowrap;
  text-decoration: none !important; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.btn:hover { background: #f8fafc; border-color: #c5cedc; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 17px; height: 17px; }
.btn.primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: #2563eb; color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .35), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn.primary:hover { background: var(--primary-600); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.sm .ic { width: 15px; height: 15px; }
.btn.lg { height: 46px; font-size: 15px; border-radius: 11px; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: #eef1f6; }
.btn.review { background: #fffbeb; border-color: #fcd34d; color: #92400e; width: 100%; }
.btn.review:hover { background: #fef3c7; }
.btn.danger-ghost { color: #b91c1c; border-color: #fecaca; }
.btn.danger-ghost:hover { background: #fef2f2; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.copied { border-color: #34d399; color: #047857; background: #ecfdf5; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: #f8fafc; }
.icon-btn .ic { width: 18px; height: 18px; }
.link { font-weight: 600; font-size: 13px; white-space: nowrap; }

.pill, .tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.4; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.s-nouveau.pill { background: #fff6e5; color: #b45309; }
.s-contacte.pill { background: #eaf2ff; color: #1d4ed8; }
.s-soumission.pill { background: #f3f0ff; color: #6d28d9; }
.s-gagne.pill { background: #e8faf2; color: #047857; }
.s-perdu.pill { background: #f1f5f9; color: #475569; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.s-nouveau { background: #f59e0b; } .dot.s-contacte { background: #3b82f6; } .dot.s-soumission { background: #8b5cf6; }
.dot.s-gagne { background: #10b981; } .dot.s-perdu { background: #94a3b8; }

.t-blue { background: #eaf2ff; color: #1d4ed8; } .t-violet { background: #f3f0ff; color: #6d28d9; } .t-green { background: #e8faf2; color: #047857; }
.t-amber { background: #fff6e5; color: #b45309; } .t-cyan { background: #e6f8fb; color: #0e7490; } .t-yellow { background: #fef9e7; color: #a16207; }
.t-gray { background: #f1f5f9; color: #475569; } .t-red { background: #fef2f2; color: #b91c1c; }
.badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }

/* ---------- Avatars ---------- */
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 650; font-size: 13px; flex: none; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.av-0 { background: linear-gradient(135deg, #60a5fa, #2563eb); } .av-1 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.av-2 { background: linear-gradient(135deg, #f472b6, #db2777); } .av-3 { background: linear-gradient(135deg, #fb923c, #ea580c); }
.av-4 { background: linear-gradient(135deg, #34d399, #059669); } .av-5 { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.av-6 { background: linear-gradient(135deg, #818cf8, #4f46e5); } .av-7 { background: linear-gradient(135deg, #facc15, #ca8a04); }
.sz-24 { width: 24px; height: 24px; font-size: 10px; } .sz-28 { width: 28px; height: 28px; font-size: 11px; }
.sz-30 { width: 30px; height: 30px; font-size: 11.5px; } .sz-32 { width: 32px; height: 32px; font-size: 12px; }
.sz-34 { width: 34px; height: 34px; font-size: 12.5px; } .sz-40 { width: 40px; height: 40px; font-size: 14px; }
.sz-56 { width: 56px; height: 56px; font-size: 19px; } .sz-64 { width: 64px; height: 64px; font-size: 21px; }

/* ---------- Cards, grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card-head h3 { font-size: 15px; font-weight: 650; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.card.flush > .card-head { padding: 18px 22px 0; }
.grid-2, .grid-3 { display: grid; gap: 20px; margin-bottom: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpis.five { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
@media (max-width: 1500px) { .kpis.five .kpi { flex-direction: column; gap: 12px; } .kpis.five .kpi-ic { width: 36px; height: 36px; } }
.kpi { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.kpi > div { min-width: 0; }
.kpi-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.kpi-ic .ic { width: 20px; height: 20px; }
.kpi-label { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi-value { display: block; font-size: 25px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 16px; color: var(--muted); }
.empty > .ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: #f1f5f9; color: var(--faint); margin-bottom: 4px; }
.empty b { color: var(--text); font-size: 14.5px; }
.empty p { margin: 0 0 6px; max-width: 360px; font-size: 13px; }

.alert { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; margin-bottom: 18px; font-size: 13.5px; }
.alert .ic { width: 18px; height: 18px; }
.alert.soft { background: #eff6ff; border-color: #c7dcfe; color: #1e40af; }
.hint { color: var(--muted); font-size: 12.5px; margin: 0; }
.hint .ic { width: 14px; height: 14px; vertical-align: -2px; }

.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 10px; max-width: min(440px, calc(100vw - 32px));
  padding: 12px 16px 12px 12px; border-radius: 12px; background: #0f172a; color: #e2e8f0; box-shadow: var(--shadow-lg); font-size: 13.5px;
  animation: toast-in .3s ease-out; transition: opacity .4s, transform .4s;
}
.toast .ic { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: #10b981; color: #fff; }
.toast.gone { opacity: 0; transform: translateY(10px); pointer-events: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Forms ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
input, select, textarea {
  font: inherit; font-weight: 400; font-size: 14px; color: var(--text); width: 100%; padding: 9px 12px; border: 1px solid #d8dee9;
  border-radius: 9px; background: #fff; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
input, select { height: 40px; }
textarea { resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #a0abbd; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
input[readonly] { background: #f8fafc; color: var(--text-2); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--primary); flex: none; box-shadow: none; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.form-foot .btn:only-child { margin-left: auto; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend { font-weight: 650; font-size: 13px; padding: 0 6px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--primary); }
details.more[open] summary { margin-bottom: 10px; }
details.more label + label { margin-top: 10px; }
textarea.code, .copy-row input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; background: #f8fafc; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; }

.search-field { position: relative; }
.search-field input { padding-left: 38px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search-field { flex: 0 1 340px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip, .chip-check > span {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none !important; cursor: pointer; transition: all .15s;
}
.chip > span:last-child { background: #f1f5f9; color: var(--muted); padding: 1px 8px; border-radius: 99px; font-size: 11.5px; }
.chip:hover, .chip-check:hover > span { border-color: #c5cedc; }
.chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.chip.on > span:last-child { background: rgba(255, 255, 255, .16); color: #fff; }
.chip-check { display: inline-flex; flex-direction: row; position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check input:checked + span { background: var(--primary-50); border-color: #9dbcfb; color: var(--primary-600); }
.chip-check input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }

.switch { flex-direction: row; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; }
.switch .track { position: relative; width: 40px; height: 22px; border-radius: 99px; background: #cbd5e1; flex: none; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--ring); }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { flex-direction: row; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 400; cursor: pointer; transition: all .15s; }
.radio-card:has(:checked) { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px var(--ring); }
.radio-card b { display: block; font-size: 14px; color: var(--text); }
.radio-card small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- Tables, lists ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; text-align: left; padding: 11px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th.num { text-align: right; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #f8faff; }
.table th:first-child, .table td:first-child { padding-left: 22px; }
.table th:last-child, .table td:last-child { padding-right: 22px; }
.table td form { margin: 0; display: inline; }
.cell-main { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; min-width: 180px; }
.cell-main b { display: block; font-size: 14px; }
.cell-main small { display: block; color: var(--muted); }
.cell-main:hover b { color: var(--primary); }
.cell-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; }
.cell-ic .ic { width: 18px; height: 18px; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; white-space: nowrap; }
.src .ic { width: 15px; height: 15px; color: var(--faint); }
.msg-cell { max-width: 460px; font-size: 13px; color: var(--text-2); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.progress { width: 140px; height: 6px; border-radius: 99px; background: #eef1f6; overflow: hidden; margin-bottom: 3px; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #60a5fa, #2563eb); }

.people { list-style: none; margin: 0; padding: 0; }
.people li > a, .people.static li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: var(--text); text-decoration: none !important; }
.people li:last-child > a, .people.static li:last-child { border-bottom: 0; }
.people li > a:hover b { color: var(--primary); }
.people b { display: block; font-size: 14px; }
.people small { display: block; color: var(--muted); }
.people .right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.people form { margin: 0; }
.mini-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e8faf2; color: #059669; }
.mini-ic .ic { width: 14px; height: 14px; }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li > a, .activity li > div { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); color: var(--text); text-decoration: none !important; font-size: 13.5px; }
.activity li:last-child > * { border-bottom: 0; }
.activity li > a:hover .act-text b { color: var(--primary); }
.act-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.act-ic .ic { width: 16px; height: 16px; }
.act-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity time { color: var(--faint); font-size: 12px; white-space: nowrap; }

.stages { display: flex; flex-direction: column; }
.stage-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); color: var(--text); text-decoration: none !important; }
.stage-row:last-child { border-bottom: 0; }
.stage-row b { font-variant-numeric: tabular-nums; }
.stage-row small { color: var(--muted); width: 86px; text-align: right; font-variant-numeric: tabular-nums; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.mini-stats > div { background: #f8fafc; border-radius: 10px; padding: 12px; min-width: 0; }
.mini-stats b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.mini-stats b.nowrap { font-size: 14px; line-height: 30px; }
.mini-stats span { color: var(--muted); font-size: 12px; }

.steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 0 12px 36px; font-size: 13.5px; color: var(--text-2); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
ul.steps li::before { content: "✓"; background: #e8faf2; color: #059669; }

.facts { display: grid; grid-template-columns: 116px 1fr; gap: 10px 14px; margin: 0; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts.wide { grid-template-columns: 240px 1fr; align-items: start; }
.quote { margin-top: 16px; padding: 10px 12px; background: #f8fafc; border-left: 3px solid #93c5fd; border-radius: 0 8px 8px 0; font-size: 13px; white-space: pre-wrap; color: var(--text-2); }

/* ---------- Dashboard ---------- */
.dash-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr); gap: 16px; margin-bottom: 20px; }
.dash-top .kpis { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: var(--radius); color: #fff; min-width: 0;
  background: radial-gradient(90% 120% at 100% 0%, rgba(59, 130, 246, .34), transparent 60%), linear-gradient(160deg, #10224a, var(--nav));
  box-shadow: var(--shadow-lg); text-decoration: none !important; transition: transform .15s, box-shadow .15s;
}
.hero:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -14px rgba(15, 23, 42, .45); }
.hero-label { display: flex; align-items: center; gap: 8px; color: var(--nav-text); font-size: 13px; font-weight: 600; }
.hero-label .ic { width: 16px; height: 16px; color: #6ee7b7; }
.hero-value { display: block; font-size: 36px; font-weight: 750; letter-spacing: -.035em; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-main small { display: block; color: #8494b5; font-size: 12px; }
.hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-side > span { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.hero-side b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-side small { display: block; color: var(--nav-text); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.urgent { border-color: #fcd9a0; box-shadow: inset 3px 0 0 #f59e0b, var(--shadow); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: #edf0f5; }
.chart text { font-size: 11px; fill: var(--faint); font-family: inherit; }
.chart .line { fill: none; stroke: #2563eb; stroke-width: 2.5; stroke-linecap: round; }
.chart .dots circle { fill: #fff; stroke: #2563eb; stroke-width: 2; }
.chart .dots circle:last-child { fill: #2563eb; stroke: #fff; stroke-width: 2.5; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sources .src { background: #f8fafc; border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 99px; font-size: 12.5px; }
.funnel { display: flex; flex-direction: column; gap: 14px; }
.fn-label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.fn-label .ic { width: 16px; height: 16px; color: var(--faint); }
.fn-label b { margin-left: auto; font-variant-numeric: tabular-nums; }
.fn-track { height: 8px; border-radius: 99px; background: #f1f4f8; margin: 6px 0 4px; overflow: hidden; }
.fn-bar { display: block; height: 100%; border-radius: 99px; min-width: 4px; }
.fn-bar.f0 { background: linear-gradient(90deg, #93c5fd, #3b82f6); } .fn-bar.f1 { background: linear-gradient(90deg, #a5b4fc, #6366f1); }
.fn-bar.f2 { background: linear-gradient(90deg, #c4b5fd, #8b5cf6); } .fn-bar.f3 { background: linear-gradient(90deg, #6ee7b7, #10b981); }
.fn-row small { color: var(--faint); font-size: 11.5px; }
.fn-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }
.fn-foot b { font-size: 20px; color: #047857; letter-spacing: -.02em; }
.w-0 { width: 0; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; } .w-25 { width: 25%; } .w-30 { width: 30%; }
.w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; }
.w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }

/* ---------- Conversations ---------- */
.inbox {
  display: grid; grid-template-columns: 340px minmax(0, 1fr) 300px; height: calc(100vh - var(--top) - 56px); min-height: 480px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.inbox:not(.has-current) { grid-template-columns: 340px minmax(0, 1fr); }
.inbox-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.inbox-tools { padding: 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.inbox-tools form { margin: 0; }
.seg { display: flex; background: #f1f4f8; border-radius: 10px; padding: 3px; }
.seg a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); text-decoration: none !important; }
.seg a.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.conv-list { overflow-y: auto; flex: 1; }
.conv { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--text); text-decoration: none !important; transition: background .12s; }
.conv:hover { background: #f8fafc; }
.conv.on { background: var(--primary-50); box-shadow: inset 3px 0 0 var(--primary); }
.conv-body { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.conv-top b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-top time { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.conv-last { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .conv-top b { font-weight: 750; }
.conv.unread .conv-last { color: var(--text); font-weight: 600; }
.inbox-thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.inbox-thread > .empty { margin: auto; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.thread-head b { display: block; font-size: 15px; }
.thread-head small { display: block; color: var(--muted); }
.inbox .thread-scroll { flex: 1; max-height: none; }
.inbox-side { border-left: 1px solid var(--line); padding: 22px 20px; overflow-y: auto; }
.side-id { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 20px; }
.side-id b { font-size: 16px; }

.thread-scroll { padding: 16px 20px; overflow-y: auto; max-height: 560px; min-height: 260px; background: linear-gradient(#fbfcfe, #f8fafd); }
.day-sep { display: flex; justify-content: center; margin: 14px 0 8px; }
.day-sep span { font-size: 11.5px; font-weight: 600; color: var(--faint); background: #eef1f6; padding: 3px 10px; border-radius: 99px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: min(78%, 520px); margin: 8px 0; }
.msg.out { margin-left: auto; align-items: flex-end; }
.msg .bubble { padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; line-height: 1.45; font-size: 14px; overflow-wrap: anywhere; }
.msg.in .bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.out .bubble { background: linear-gradient(180deg, #3b82f6, #2563eb); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 2px 6px -2px rgba(37, 99, 235, .45); }
.msg.out.auto .bubble { background: #e9f0ff; color: #1e3a8a; box-shadow: none; }
.msg.failed .bubble { background: #fef2f2; color: #991b1b; }
.msg .subj { display: block; margin-bottom: 4px; }
.msg small { display: flex; align-items: center; gap: 4px; color: var(--faint); font-size: 11.5px; margin-top: 4px; padding: 0 4px; }
.msg small .ic { width: 12px; height: 12px; color: #6d8fd8; }
.composer { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: #fff; margin: 0; }
.composer textarea { border-radius: 12px; min-height: 64px; }
.composer-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.composer-bar small { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.composer-bar small .ic { width: 14px; height: 14px; }
.composer.off { flex-direction: row; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; background: #f8fafc; }
.composer.off .ic { width: 18px; height: 18px; }

/* ---------- Pipeline ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(214px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.kcol { display: flex; flex-direction: column; background: #eef1f6; border-radius: 14px; min-height: calc(100vh - 230px); transition: background .15s; }
.kcol header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-top: 3px solid; border-radius: 14px 14px 0 0; }
.kcol[data-status=nouveau] header { border-top-color: #f59e0b; } .kcol[data-status=contacte] header { border-top-color: #3b82f6; }
.kcol[data-status=soumission] header { border-top-color: #8b5cf6; } .kcol[data-status=gagne] header { border-top-color: #10b981; }
.kcol[data-status=perdu] header { border-top-color: #94a3b8; }
.kcol header b { font-size: 13.5px; white-space: nowrap; }
.kcol .count { background: #f1f4f8; color: var(--muted); border-radius: 99px; padding: 0 8px; font-size: 12px; font-weight: 700; }
.kcol header small { margin-left: auto; white-space: nowrap; font-weight: 700; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.kcards { display: flex; flex-direction: column; gap: 10px; padding: 10px; flex: 1; border-radius: 0 0 14px 14px; transition: background .15s; }
.kcol.over .kcards { background: rgba(37, 99, 235, .07); box-shadow: inset 0 0 0 2px #a9c4fb; }
.kcard { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 11px; color: var(--text); text-decoration: none !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); cursor: grab; transition: box-shadow .15s, border-color .15s, transform .15s; }
.kcard:hover { border-color: #c4d4f5; box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .25); transform: translateY(-1px); }
.kcard.dragging { opacity: .45; transform: rotate(1.5deg); }
.kc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kc-top b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-service { font-size: 12.5px; color: var(--muted); }
.kc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.kc-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.kc-foot time { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); }
.kc-foot .ic { width: 13px; height: 13px; }
.kempty { display: none; border: 2px dashed #d3dae6; border-radius: 11px; padding: 18px; text-align: center; color: var(--faint); font-size: 12.5px; }
.kcol.is-empty .kempty { display: block; }

/* ---------- Contact record ---------- */
.record-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 20px; align-items: center; margin-bottom: 20px; }
.rh-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.rh-id h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.rh-id p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.rh-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rh-value { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px; border-radius: 9px; background: #e8faf2; color: #047857; font-weight: 700; font-variant-numeric: tabular-nums; }
.rh-value .ic { width: 16px; height: 16px; }
.stepper { grid-column: 1 / -1; display: flex; margin: 0; }
.step {
  flex: 1; border: 0; padding: 10px 14px 10px 22px; margin-left: -8px; background: #f1f4f8; color: #475569; font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.2; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); transition: background .15s, color .15s;
}
.step:first-child { margin-left: 0; padding-left: 14px; border-radius: 10px 0 0 10px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.step:last-child { border-radius: 0 10px 10px 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%); }
.step:hover { background: #e3e8f0; color: var(--text); }
.step.on { color: #fff; }
.step.on.s-nouveau { background: #f59e0b; } .step.on.s-contacte { background: #3b82f6; } .step.on.s-soumission { background: #8b5cf6; }
.step.on.s-gagne { background: #10b981; } .step.on.s-perdu { background: #64748b; }
.record { display: grid; grid-template-columns: 320px minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.thread-card { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.thread-card > .card-head { padding: 18px 20px; margin: 0; border-bottom: 1px solid var(--line); }
.notes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notes li { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.notes small { display: block; color: #a16207; margin-top: 6px; font-size: 11.5px; }
.danger-zone { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 2px; margin: 0; }
.danger-zone small { color: var(--muted); }

/* ---------- Campaigns ---------- */
.card.center .phone { margin: 0 auto; }
.phone { width: 252px; border: 9px solid #0f172a; border-radius: 38px; background: #f5f7fb; overflow: hidden; box-shadow: 0 22px 44px -16px rgba(15, 23, 42, .45); }
.phone-notch { width: 92px; height: 20px; background: #0f172a; border-radius: 0 0 14px 14px; margin: 0 auto; }
.phone-head { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 12px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.phone-head b { font-size: 12.5px; }
.phone-head small { font-size: 11px; color: var(--muted); }
.phone-screen { padding: 16px 12px 30px; min-height: 230px; }
.phone .bubble { background: #e5e8ef; color: var(--text); padding: 10px 12px; border-radius: 18px 18px 18px 5px; font-size: 13px; line-height: 1.42; white-space: pre-wrap; max-width: 92%; overflow-wrap: anywhere; }
.email-preview { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; }
.email-preview b { display: block; margin-bottom: 8px; }
.picks { max-height: 400px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.pick { flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-weight: 400; cursor: pointer; }
.pick:last-child { border-bottom: 0; }
.pick:hover { background: #f8fafc; }
.pick input { margin: 0; }
.pick b { display: block; font-size: 14px; color: var(--text); }
.pick small { display: block; color: var(--muted); }

/* ---------- Settings ---------- */
.settings { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.set-nav { position: sticky; top: calc(var(--top) + 24px); display: flex; flex-direction: column; gap: 2px; }
.set-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; color: #475569; font-weight: 500; font-size: 13.5px; text-decoration: none !important; }
.set-nav a:hover { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.set-nav .ic { width: 17px; height: 17px; color: var(--faint); }
.set-body, .set-form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.set-form { margin: 0; }
#test-form { display: none; }
.set-section { scroll-margin-top: calc(var(--top) + 20px); }
.set-title { display: flex; gap: 12px; align-items: center; }
.set-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; }
.set-ic .ic { width: 19px; height: 19px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; align-items: start; }
.preview-col { display: flex; flex-direction: column; align-items: center; gap: 10px; position: sticky; top: calc(var(--top) + 20px); }
.inline-action { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: #f8fafc; border-radius: 10px; }
.save-bar {
  position: sticky; bottom: 16px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 20px;
  background: rgba(15, 23, 42, .94); color: #cbd5e1; border-radius: 14px; box-shadow: 0 16px 36px -12px rgba(15, 23, 42, .55); font-size: 13px; backdrop-filter: blur(8px);
}
.access-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); }

/* ---------- Sign-in ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 44px 56px; color: #fff;
  background: radial-gradient(60% 50% at 85% 15%, rgba(96, 165, 250, .35), transparent 70%), radial-gradient(50% 45% at 10% 95%, rgba(129, 140, 248, .3), transparent 70%), linear-gradient(160deg, #0b1324 0%, #10224a 55%, #1a3f9a 100%);
}
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); pointer-events: none; }
.auth-art > * { position: relative; z-index: 1; }
.auth-pitch h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 750; margin-bottom: 18px; }
.auth-pitch p { color: #b8c4de; font-size: 16px; max-width: 460px; margin-bottom: 28px; }
.auth-pitch ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-pitch li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #e2e8f0; }
.auth-pitch li .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); color: #9ec0ff; }
.auth-art small { color: #8494b5; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; background: #fff; }
.auth-box { width: min(400px, 100%); }
.auth-box h2 { font-size: 28px; font-weight: 750; letter-spacing: -.03em; margin: 18px 0 4px; }
.auth-box > .muted { margin-bottom: 24px; }
.auth-box .btn { width: 100%; margin-top: 6px; }
.auth-box .hint { text-align: center; margin-top: 20px; }

/* ---------- Public pages ---------- */
.pub-body { background: radial-gradient(90% 50% at 50% 0%, #e6eeff, transparent 70%), #f5f7fb; }
.pub-body:has(.embed) { background: transparent; }
.pub { max-width: 640px; margin: 0 auto; padding: 48px 16px 32px; }
.pub.embed { padding: 0; max-width: none; }
.pub-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(15, 23, 42, .22); padding: 32px; }
.pub.embed .pub-card { box-shadow: none; border: 0; padding: 12px; }
.pub-card.center { text-align: center; }
.pub-card.center p { color: var(--text-2); }
.pub-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pub-head h1 { font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.pub-head p { margin: 2px 0 0; color: var(--muted); }
.pub-promise { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; background: #eef4ff; color: #1e40af; margin-bottom: 20px; font-size: 14px; }
.pub-promise .ic { width: 18px; height: 18px; }
.pub-card .btn.lg { width: 100%; }
.fine { color: var(--muted); font-size: 12px; text-align: center; margin: 0; }
.fine .ic { width: 13px; height: 13px; vertical-align: -2px; }
.powered { text-align: center; color: var(--faint); font-size: 12.5px; margin: 20px 0 0; }
.powered span { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--text-2); margin-left: 4px; vertical-align: -3px; }
.powered .logo-mark { filter: none; }
.big-check { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 14px; background: #e8faf2; color: #059669; }
.big-check .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.big-check.muted-ic { background: #f1f5f9; color: var(--muted); }
.pub-card.center h1 { font-size: 26px; margin-bottom: 8px; }
.prose p { line-height: 1.65; color: var(--text-2); }

/* ---------- Calendar and booking ---------- */
.ic.flip { transform: rotate(180deg); }
.three { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.wk-nav { display: flex; gap: 6px; }
.wk-nav .btn.sm { padding: 0 9px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.wk-day { background: #f8fafc; border: 1px solid var(--line-2); border-radius: 12px; min-height: 220px; display: flex; flex-direction: column; min-width: 0; }
.wk-day.past { opacity: .72; }
.wk-day.today { background: var(--primary-50); border-color: #bcd2fd; }
.wk-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 6px; padding: 10px 12px 8px; border-bottom: 1px solid var(--line-2); }
.wk-head span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: capitalize; }
.wk-head b { font-size: 18px; letter-spacing: -.02em; text-align: right; }
.wk-head small { grid-column: 1 / -1; color: var(--faint); font-size: 11.5px; }
.wk-day.today .wk-head b { color: var(--primary-600); }
.wk-list { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.appt { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--primary); color: var(--text); text-decoration: none !important; box-shadow: var(--shadow); min-width: 0; }
.appt:hover { border-color: #bcd2fd; border-left-color: var(--primary-600); }
.appt small { color: var(--primary-600); font-weight: 650; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.appt b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt span:not(.tag) { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt .tag { align-self: flex-start; margin-top: 4px; font-size: 11px; padding: 1px 8px; }
.appt.st-termine { border-left-color: #10b981; } .appt.st-absent { border-left-color: #f59e0b; }
.appt.st-annule { border-left-color: #cbd5e1; opacity: .7; } .appt.st-annule b { text-decoration: line-through; }
.date-tile { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--primary-50); color: var(--primary-600); display: grid; place-items: center; align-content: center; line-height: 1.05; }
.date-tile small { font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.date-tile b { font-size: 16px; }
.appts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.appts li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.appts li b { display: block; font-size: 13px; }
.appts li small { color: var(--muted); }
.appt-actions { display: flex; gap: 6px; width: 100%; }
.appt-actions:empty { display: none; }
.hours { display: flex; flex-direction: column; gap: 8px; }
.hours-row { display: grid; grid-template-columns: 130px 1fr auto 1fr; align-items: center; gap: 10px; }
.hours-row:has(input[type=checkbox]:not(:checked)) input[type=time] { opacity: .45; }

.pub-step { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; margin: 22px 0 12px; flex-wrap: wrap; }
.pub-step > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 12.5px; }
.pub-step small { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.pub-step small::first-letter { text-transform: uppercase; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.day-chip { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; padding: 8px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-decoration: none !important; scroll-snap-align: start; }
.day-chip small { color: var(--muted); font-size: 11.5px; text-transform: capitalize; }
.day-chip b { font-size: 19px; line-height: 1.3; }
.day-chip:hover { border-color: #9dbcfb; }
.day-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.day-chip.on small { color: rgba(255, 255, 255, .85); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { display: grid; place-items: center; height: 42px; border: 1px solid #c7dcfe; border-radius: 10px; color: var(--primary-600); font-weight: 650; text-decoration: none !important; font-variant-numeric: tabular-nums; }
.slot:hover { background: var(--primary-50); }
.slot.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pub-promise.ok { background: #e8faf2; color: #065f46; margin: 0 0 16px; }
.pub-alt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; border: 1px dashed #9dbcfb; color: var(--text-2); margin: -8px 0 20px; font-size: 13.5px; text-decoration: none !important; }
.pub-alt:hover { background: var(--primary-50); }
.pub-alt span { flex: 1; }
.pub-alt .ic { width: 18px; height: 18px; color: var(--primary); }
.hint.center { text-align: center; margin-top: 18px; }
.appt-facts { text-align: left; max-width: 380px; margin: 18px auto 20px; padding: 14px 16px; background: #f8fafc; border-radius: 12px; }
.appt-facts dd::first-letter { text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .record { grid-template-columns: 300px minmax(0, 1fr); }
  .record > .col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .inbox.has-current { grid-template-columns: 320px minmax(0, 1fr); }
  .inbox-side { display: none; }
}
@media (max-width: 1100px) {
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > .span-2 { grid-column: 1 / -1; }
  .dash-top { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .preview-col { position: static; }
  .access-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: none; }
  .nav-toggle:checked ~ .app .sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .4); }
  .nav-toggle:checked ~ .app .scrim { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(15, 23, 42, .5); }
  .main { margin-left: 0; }
  .only-mobile { display: inline-flex !important; }
  .only-desktop { display: none !important; }
  .topbar { padding: 0 16px; gap: 12px; }
  .tb-user { border-left: 0; padding-left: 0; }
  .content { padding: 20px 16px 40px; }
  .record { display: flex; flex-direction: column; gap: 16px; }
  .record > .col, .record > .col:last-child { display: contents; }
  .record > .main-col > * { order: 1; }
  .record > .col:first-child > :first-child { order: 2; }
  .record > .col:last-child > * { order: 3; }
  .record > .col:first-child > :not(:first-child) { order: 4; }
  .settings { grid-template-columns: 1fr; }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .set-nav a { white-space: nowrap; background: #fff; border: 1px solid var(--line); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > .span-2 { grid-column: auto; }
  .hide-sm { display: none; }
  .tb-search { display: none; }
  .tb-title { flex: 1; }
  .page-head h2 { font-size: 21px; }
  .inbox, .inbox:not(.has-current), .inbox.has-current { grid-template-columns: 1fr; height: calc(100vh - var(--top) - 40px); }
  .inbox.has-current .inbox-list { display: none; }
  .inbox:not(.has-current) .inbox-thread { display: none; }
  .record-head { grid-template-columns: 1fr; }
  .stepper { overflow-x: auto; }
  .step { flex: none; }
  .two, .three, .radio-cards, .access-form { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; }
  .wk-day { min-height: 0; }
  .wk-list:empty { display: none; }
  .hours-row { grid-template-columns: 1fr 1fr auto 1fr; gap: 6px; }
  .facts, .facts.wide { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .mini-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .mini-stats > div { padding: 10px; }
  .mini-stats b { font-size: 18px; }
  .content { padding: 14px 12px 32px; }
  .page-head { margin-bottom: 14px; gap: 12px; }
  .page-head p { font-size: 13px; }
  .page-head .actions { width: 100%; gap: 8px; }
  .page-head .actions > .btn { flex: 1; height: 36px; padding: 0 10px; }
  .card { padding: 16px; }
  .card.thread-card { padding: 0; }
  .thread-card > .card-head { padding: 14px 16px; }
  .card-head { margin-bottom: 12px; }
  .card.flush > .card-head { padding: 16px 16px 0; }
  .content > .card { margin-bottom: 12px; }
  .grid-2, .grid-3 { gap: 12px; margin-bottom: 12px; }
  .dash-top { gap: 10px; margin-bottom: 12px; }
  .hero { padding: 16px; gap: 12px; }
  .hero-value { font-size: 32px; }
  .kpis, .kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
  .kpis.three, .dash-top .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpi, .kpis.five .kpi { flex-direction: row; padding: 12px; gap: 10px; }
  .kpi-ic { display: none; }
  .kpi-label { font-size: 11.5px; line-height: 1.3; }
  .kpi-value { font-size: 21px; }
  .kpi-sub { font-size: 11px; line-height: 1.35; }
  .thread-scroll { max-height: 60vh; }
  .save-bar span { display: none; }
  .save-bar { justify-content: flex-end; }
  .pub { padding: 20px 12px; }
  .pub-card { padding: 22px 18px; }
  .msg { max-width: 88%; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
  .composer-bar small { display: none; }
  .composer-bar .btn { margin-left: auto; }
}

/* ---------- Marketing site ---------- */
html:has(.lp-body) { scroll-behavior: smooth; }
.lp-body { background: #fff; font-size: 15.5px; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.lp-narrow { max-width: 760px; }
.lp-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.lp-top .lp-row { height: 66px; }
.lp-brand:hover { text-decoration: none; }
.lp-top nav { display: flex; align-items: center; gap: 22px; }
.lp-top nav a:not(.btn) { color: var(--text-2); font-weight: 550; font-size: 14.5px; }
.lp-hero { background: radial-gradient(80% 70% at 85% 10%, #dbe7ff, transparent 65%), radial-gradient(60% 60% at 0% 100%, #eef4ff, transparent 70%), #fff; padding: 72px 0 80px; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
.lp-kicker { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--primary-50); color: var(--primary-600); font-weight: 650; font-size: 13px; margin-bottom: 18px; }
.lp-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -.035em; margin-bottom: 18px; }
.lp-lead { font-size: 18px; color: var(--text-2); max-width: 600px; margin-bottom: 26px; }
.lp-demo { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid #c7d7fe; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); max-width: 520px; margin-bottom: 26px; }
.lp-demo-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #4f8cff, #1d4ed8); color: #fff; flex: none; }
.lp-demo small { display: block; color: var(--primary-600); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }
.lp-demo b { display: block; font-size: 17px; }
.lp-demo b a { white-space: nowrap; }
.lp-demo div > span { color: var(--muted); font-size: 14px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-2); font-size: 14px; font-weight: 550; }
.lp-trust span { display: inline-flex; align-items: center; gap: 6px; }
.lp-trust .ic { width: 16px; height: 16px; color: #059669; }
.lp-visual { position: relative; display: flex; justify-content: center; }
.lp-phone { position: relative; }
.lp-missed { position: absolute; bottom: 56px; left: -44px; z-index: 2; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); }
.lp-missed .ic { color: #dc2626; }
.lp-missed b { display: block; font-size: 13.5px; }
.lp-missed small { color: var(--muted); }
.lp-band { background: var(--nav); color: #e2e8f0; padding: 40px 0; }
.lp-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.lp-three b { color: #fff; font-size: 17px; display: block; margin-bottom: 6px; }
.lp-three p { color: var(--nav-text); margin: 0; }
.lp-three .lp-src { display: block; margin-top: 6px; font-size: 12px; color: var(--nav-text); opacity: .7; }
.lp-sec { padding: 80px 0; }
.lp-sec.alt { background: var(--bg); }
.lp-sec h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 10px; }
.lp-sub { color: var(--muted); font-size: 17px; margin-bottom: 36px; }
.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-feature { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; }
.lp-feature h3 { font-size: 17px; margin: 14px 0 8px; }
.lp-feature p { color: var(--text-2); margin: 0; font-size: 14.5px; }
.lp-fic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.lp-steps span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; }
.lp-steps h3 { font-size: 18px; margin: 14px 0 6px; }
.lp-steps p { color: var(--text-2); margin: 0; }
.lp-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; max-width: 820px; }
.lp-season { display: flex; gap: 10px; align-items: center; max-width: 820px; margin: 20px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--primary-50); color: #1e40af; font-size: 15px; }
.lp-season .ic { flex: none; color: var(--primary); }
.lp-plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px 24px; background: #fff; }
.lp-plan.featured { border: 2px solid var(--primary); box-shadow: 0 24px 48px -24px rgba(37, 99, 235, .45); }
.lp-badge { position: absolute; top: -13px; left: 24px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.lp-plan h3 { font-size: 20px; }
.lp-plan .muted { min-height: 24px; }
.lp-price { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; }
.lp-price b { font-size: 42px; letter-spacing: -.03em; }
.lp-price span { color: var(--muted); }
.lp-half { color: #047857; font-size: 14px; }
.lp-year { color: #047857; font-size: 14px; }
.lp-price s { color: var(--faint); font-size: 22px; font-weight: 600; margin-right: 6px; }
.bill-radio { position: absolute; opacity: 0; pointer-events: none; }
.lp-billing { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 28px; background: #eef2f8; border-radius: 12px; }
.lp-billing label { display: inline-flex; flex-direction: row; align-items: baseline; gap: 6px; cursor: pointer; white-space: nowrap; padding: 9px 18px; border-radius: 9px; font-weight: 650; font-size: 15px; color: var(--muted); }
.lp-billing label small { display: inline; font-weight: 600; font-size: 12px; color: #047857; }
#bill-m:checked ~ .lp-billing label[for="bill-m"], #bill-y:checked ~ .lp-billing label[for="bill-y"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
#bill-m:focus-visible ~ .lp-billing label[for="bill-m"], #bill-y:focus-visible ~ .lp-billing label[for="bill-y"] { outline: 2px solid var(--primary); outline-offset: 2px; }
#bill-m:checked ~ .lp-plans .bill-y, #bill-y:checked ~ .lp-plans .bill-m { display: none; }
.lp-plan ul { list-style: none; padding: 0; margin: 10px 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.lp-plan li, .lp-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.lp-plan li .ic, .lp-checks li .ic { width: 18px; height: 18px; color: var(--primary); margin-top: 2px; }
.lp-plan .btn { width: 100%; justify-content: center; }
.lp-plan .lp-buy { height: auto; min-height: 48px; padding-top: 10px; padding-bottom: 10px; white-space: normal; text-align: center; line-height: 1.3; }
.lp-ask { display: block; margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }
.lp-ask:hover { color: var(--primary); }
.lp-local { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.lp-local p { font-size: 17px; color: var(--text-2); }
.lp-checks { list-style: none; padding: 24px; margin: 0; display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.lp-faq { display: grid; gap: 10px; margin-top: 24px; }
.lp-faq details { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: #fff; }
.lp-faq summary { cursor: pointer; font-weight: 650; font-size: 16px; }
.lp-faq details p { margin: 10px 0 0; color: var(--text-2); }
.lp-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.lp-contact > div > p { font-size: 17px; color: var(--text-2); margin-bottom: 24px; }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-lg); }
.lp-foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.lp-foot-brand { display: inline-flex; align-items: center; gap: 8px; }
/* Pitch page for one prospect (/pour/<slug>) */
.pt-for { font-size: 14px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.pt-for b { color: var(--text); }
.pt-hero { padding: 64px 0 56px; }
.pt-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 16px; }
.pt-hero .lp-lead { margin-bottom: 26px; }
.pt-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 48px; }
.pt-phone { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 300px; }
.pt-phone > p { color: var(--text-2); font-size: 14.5px; text-align: center; margin: 0; }
.pt-step { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; }
.pt-step .ic { color: var(--primary); }
.pt-bars { display: grid; gap: 22px; }
.pt-bar-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 15px; }
.pt-bar-top span { color: var(--muted); white-space: nowrap; }
.pt-track { height: 12px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.pt-track div { height: 100%; border-radius: 999px; background: #94a3b8; }
.pt-bar.mine .pt-track div { background: linear-gradient(90deg, #4f8cff, #1d4ed8); }
.pt-note { margin: 0; font-size: 14.5px; }
.pt-offer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pt-offer .lp-kicker { margin-bottom: 4px; }
.pt-cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .lp-hero-grid, .lp-local, .lp-contact { grid-template-columns: 1fr; gap: 36px; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-plans { grid-template-columns: 1fr; max-width: 480px; }
  .lp-visual { justify-content: flex-start; padding-left: 40px; }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 0 16px; }
  .lp-top nav a:not(.btn) { display: none; }
  .lp-hero { padding: 44px 0 56px; }
  .lp-lead { font-size: 16.5px; }
  .lp-three, .lp-steps, .lp-features { grid-template-columns: 1fr; gap: 20px; }
  .lp-sec { padding: 56px 0; }
  .lp-visual { padding-left: 0; justify-content: center; }
  .lp-missed { left: -12px; bottom: 40px; }
  .lp-foot .lp-row { flex-direction: column; align-items: flex-start; }
}

/* Homepage hero video */
.lp-video {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  overflow: hidden;
  background: #f4f6fb;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 30px 60px -20px rgba(29, 78, 216, .35), 0 18px 36px -18px rgba(15, 23, 42, .30);
  isolation: isolate;
}
.lp-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-video-sound {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 19, 36, .82);
  color: #fff;
  font: 600 14px/1 inherit;
  font-family: inherit;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .5);
  transition: background .2s ease, transform .2s ease, opacity .3s ease;
}
.lp-video-sound:hover { background: rgba(37, 99, 235, .95); }
.lp-video-sound:focus-visible { outline: 3px solid var(--ring, rgba(37, 99, 235, .4)); outline-offset: 3px; }
.lp-video-sound svg { width: 18px; height: 18px; flex: none; }
.lp-video-sound .on { display: none; }
.lp-video-sound[aria-pressed="true"] { background: rgba(255, 255, 255, .92); color: #0f172a; }
.lp-video-sound[aria-pressed="true"] .on { display: block; }
.lp-video-sound[aria-pressed="true"] .off { display: none; }
.lp-video-sound .pulse { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(79, 140, 255, .55); animation: lp-video-pulse 2.4s ease-out 1.5s 3; pointer-events: none; }
@keyframes lp-video-pulse { to { box-shadow: 0 0 0 14px rgba(79, 140, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .lp-video-sound .pulse { animation: none; } }
@media (max-width: 900px) { .lp-video { width: min(100%, 340px); } }

/* AI receptionist */
.ai-call { margin-bottom: 14px; }
.ai-call .card-head h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-call .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ai-summary { margin: 0 0 12px; color: var(--text-2); }
.ai-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 0 0 12px; }
.ai-facts dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.ai-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.ai-transcript { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; padding: 4px 2px; }
.ai-line { margin: 0; padding: 8px 12px; border-radius: 10px; background: #f1f5f9; font-size: 13.5px; max-width: 85%; }
.ai-line b { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.ai-line.agent { background: #eaf2ff; align-self: flex-start; }
.ai-line.client { align-self: flex-end; }

/* ---------- Marketing site polish (Nov. 2026): same look, finer details ---------- */
.lp-body :is(h1, h2, h3) { text-wrap: balance; }
.lp-body p { text-wrap: pretty; }
.lp-body ::selection { background: #c7d7fe; color: var(--text); }
.lp-body [id] { scroll-margin-top: 84px; }
.lp-body :is(a, .btn, summary):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.lp-top nav a:not(.btn) { transition: color .15s ease; }
.lp-top nav a:not(.btn):hover { color: var(--primary); text-decoration: none; }
.lp-body .btn { transition: transform .12s ease, box-shadow .18s ease, background-color .15s ease, border-color .15s ease; }
.lp-body .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .6); }
.lp-body .btn:active { transform: translateY(0); box-shadow: none; }
.lp-band { background: linear-gradient(180deg, var(--nav), var(--nav-2)); }
.lp-feature, .lp-plan, .lp-faq details { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.lp-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c7d7fe; }
.lp-feature:hover .lp-fic { background: var(--primary); color: #fff; }
.lp-fic { transition: background-color .2s ease, color .2s ease; }
.lp-steps span { box-shadow: 0 0 0 6px var(--primary-50); }
.lp-plan:not(.featured):hover { border-color: #c7d7fe; box-shadow: var(--shadow-lg); }
.lp-plan.featured { background: linear-gradient(180deg, #f5f9ff, #fff 150px); }
.lp-price b, .lp-price s, .lp-half, .lp-year { font-variant-numeric: tabular-nums; }
.lp-faq details:hover, .lp-faq details[open] { border-color: #c7d7fe; }
.lp-faq details[open] { box-shadow: var(--shadow-lg); }
.lp-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ''; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s ease, border-color .2s ease; }
.lp-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); border-color: var(--primary); }
.lp-foot a { transition: color .15s ease; }
.lp-foot a:hover { color: var(--primary); }
@media (prefers-reduced-motion: reduce) {
  html:has(.lp-body) { scroll-behavior: auto; }
  .lp-body *, .lp-body *::after { transition: none !important; }
  .lp-feature:hover, .lp-body .btn.primary:hover { transform: none; }
}

.voice-preview { display: grid; gap: 6px; }
.voice-preview audio { width: 100%; max-width: 420px; height: 40px; }

/* Client onboarding form (/bienvenue) and its agency view */
.req { color: #b45309; }
.ob-section { gap: 14px; }
.ob-section legend { font-size: 15px; }
.ob-list { margin: 0; display: grid; gap: 10px; }
.ob-row { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 12px; }
.ob-row dt { color: var(--muted); font-size: 13px; }
.ob-row dd { margin: 0; overflow-wrap: anywhere; }
.ob-todo { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 640px) { .ob-row { grid-template-columns: 1fr; gap: 2px; } }
.lp-plans.single { grid-template-columns: minmax(0, 480px); justify-content: center; max-width: none; }
/* Hero without the video (removed 2026-11-18: it showed the old text-back offer) */
.lp-hero-grid.solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
