/* =========================================================
   Nexus MDT — design system
   ========================================================= */
:root {
  --bg: #0B0B12;
  --bg-2: #13131F;
  --bg-3: #191927;
  --bg-4: #20202F;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #FFFFFF;
  --text-2: #B4B4C7;
  --text-3: #7C7C93;
  --primary: #8B5CF6;
  --primary-2: #A855F7;
  --primary-soft: rgba(139, 92, 246, 0.14);
  --primary-line: rgba(139, 92, 246, 0.35);
  --success: #22C55E; --success-soft: rgba(34, 197, 94, 0.12);
  --warning: #F59E0B; --warning-soft: rgba(245, 158, 11, 0.12);
  --danger: #EF4444; --danger-soft: rgba(239, 68, 68, 0.12);
  --info: #38BDF8; --info-soft: rgba(56, 189, 248, 0.12);
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --sidebar: 248px;
  --sidebar-collapsed: 68px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary-line); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2A2A3C; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.8; flex-shrink: 0; }
.ic-sm svg.lucide, svg.lucide.ic-sm { width: 15px; height: 15px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; } h4 { font-size: 13px; }
p { margin: 0; }
.muted { color: var(--text-2); } .dim { color: var(--text-3); }
.small { font-size: 12.5px; } .xs { font-size: 11.5px; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: 12.5px; }
.right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }
.pos { color: var(--success); } .neg { color: var(--danger); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text);
  font-weight: 500; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, opacity .15s;
}
.btn:hover { background: var(--bg-4); border-color: rgba(255,255,255,.18); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: linear-gradient(180deg, #9568F8, var(--primary)); border-color: rgba(168, 85, 247, .6); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset; }
.btn.primary:hover { background: linear-gradient(180deg, #A07AF9, #9466F7); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: rgba(255,255,255,.05); color: var(--text); }
.btn.danger { color: #FCA5A5; border-color: rgba(239,68,68,.3); background: var(--danger-soft); }
.btn.danger:hover { background: rgba(239,68,68,.2); }
.btn.success { color: #86EFAC; border-color: rgba(34,197,94,.3); background: var(--success-soft); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; gap: 5px; }
.btn.icon { width: 36px; padding: 0; } .btn.sm.icon { width: 30px; } .btn.xs.icon { width: 26px; }
.btn.block { width: 100%; }
.btn .lucide { width: 16px; height: 16px; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.field .hint { font-size: 11.5px; color: var(--text-3); }
.req::after { content: ' *'; color: var(--primary-2); }
.input, select.input, textarea.input {
  width: 100%; height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line-2); outline: none;
  transition: border-color .15s, box-shadow .15s; color: var(--text);
}
textarea.input { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C7C93' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input::placeholder { color: var(--text-3); }
input[type=date].input, input[type=datetime-local].input { color-scheme: dark; }
.input-icon { position: relative; }
.input-icon .lucide { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 16px; height: 16px; pointer-events: none; }
.input-icon .input { padding-left: 34px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; font-size: 13.5px; }
.check input { appearance: none; width: 17px; height: 17px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; margin: 0; cursor: pointer; transition: .15s; flex-shrink: 0; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 20px; background: var(--bg-4); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: .2s; margin: 0; flex-shrink: 0; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #9A9AB0; transition: .2s var(--ease); }
.switch input:checked { background: var(--primary); border-color: var(--primary); }
.switch input:checked::after { left: 18px; background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { padding: 18px 0; border-top: 1px solid var(--line); }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section > h3 { margin-bottom: 4px; } .form-section > p { margin-bottom: 14px; }

/* ---------- Cartes & surfaces ---------- */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-head h3 .lucide { color: var(--primary-2); width: 17px; height: 17px; }
.card-body { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.stat .stat-label { display: flex; align-items: center; justify-content: space-between; color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.stat .stat-label .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-2); }
.stat .stat-label .ico .lucide { width: 16px; height: 16px; }
.stat .stat-value { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.stat .stat-foot { font-size: 12px; color: var(--text-3); }
.progress { height: 6px; border-radius: 6px; background: var(--bg-4); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .6s var(--ease); }
.empty { padding: 36px 16px; text-align: center; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .lucide { width: 28px; height: 28px; color: #3D3D55; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 550; background: rgba(255,255,255,.06); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.violet { background: var(--primary-soft); color: #C4B5FD; border-color: rgba(139,92,246,.25); }
.badge.green { background: var(--success-soft); color: #86EFAC; border-color: rgba(34,197,94,.22); }
.badge.amber { background: var(--warning-soft); color: #FCD34D; border-color: rgba(245,158,11,.22); }
.badge.red { background: var(--danger-soft); color: #FCA5A5; border-color: rgba(239,68,68,.22); }
.badge.blue { background: var(--info-soft); color: #7DD3FC; border-color: rgba(56,189,248,.22); }
.avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; background: linear-gradient(135deg, #3B2A6B, #5B3BA8); color: #EDE9FE; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 52px; height: 52px; border-radius: 13px; font-size: 18px; }
.avatar.xl { width: 76px; height: 76px; border-radius: 18px; font-size: 26px; }
.logo-box { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-4); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; border: 1px solid var(--line); }
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-box .lucide { color: var(--primary-2); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255,255,255,.012); position: sticky; top: 0; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255,255,255,.022); }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .actions { text-align: right; white-space: nowrap; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .input-icon { width: 260px; max-width: 100%; }
.toolbar .input, .toolbar select.input { height: 34px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; width: fit-content; flex-wrap: wrap; }
.tab { height: 30px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--bg-4); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.tab .count { font-size: 11px; background: var(--primary-soft); color: #C4B5FD; padding: 0 6px; border-radius: 10px; }

/* ---------- Coquille applicative ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; transition: grid-template-columns .25s var(--ease); }
.shell.collapsed { grid-template-columns: var(--sidebar-collapsed) 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; z-index: 30; }
.sb-head { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; min-width: 0; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-name { font-size: 15px; white-space: nowrap; }
.brand-name b { color: var(--primary-2); font-weight: 650; }
.sb-company { margin: 12px 10px 4px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; gap: 10px; cursor: pointer; transition: border-color .15s; min-width: 0; }
.sb-company:hover { border-color: var(--line-2); }
.sb-company .meta { min-width: 0; flex: 1; }
.sb-company .meta b { display: block; font-size: 13px; font-weight: 600; } .sb-company .meta span { font-size: 11.5px; color: var(--text-3); }
.sb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 10px 16px; }
.sb-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 14px 10px 6px; font-weight: 600; white-space: nowrap; }
.sb-link { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: background .12s, color .12s; position: relative; }
.sb-link:hover { background: rgba(255,255,255,.04); color: var(--text); }
.sb-link.active { background: var(--primary-soft); color: #fff; }
.sb-link.active::before { content: ''; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary-2); }
.sb-link.active .lucide { color: var(--primary-2); }
.sb-link .lucide { width: 17px; height: 17px; }
.sb-link .pill { margin-left: auto; font-size: 11px; background: var(--primary); color: #fff; border-radius: 10px; padding: 0 6px; line-height: 18px; }
.sb-foot { border-top: 1px solid var(--line); padding: 10px; }
.shell.collapsed .sb-group, .shell.collapsed .sb-link span, .shell.collapsed .brand-name, .shell.collapsed .sb-company .meta, .shell.collapsed .sb-company .lucide, .shell.collapsed .sb-link .pill { display: none; }
.shell.collapsed .sb-link { justify-content: center; padding: 0; }
.shell.collapsed .sb-company { justify-content: center; padding: 8px 0; }
.shell.collapsed .sb-head { justify-content: center; padding: 0; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 0 22px; background: rgba(11, 11, 18, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; min-width: 0; }
.topbar .crumbs b { color: var(--text); font-weight: 600; }
.content { padding: 24px 24px 60px; max-width: 1480px; width: 100%; margin: 0 auto; animation: fade .28s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .title { display: flex; align-items: center; gap: 12px; }
.page-head .title .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-2); display: grid; place-items: center; border: 1px solid rgba(139,92,246,.2); }
.page-head p { margin-top: 3px; }
.duty { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; font-weight: 500; font-size: 13px; color: var(--text-2); transition: .15s; }
.duty .d { width: 8px; height: 8px; border-radius: 50%; background: #55556A; }
.duty.on { border-color: rgba(34,197,94,.35); color: #86EFAC; background: var(--success-soft); }
.duty.on .d { background: var(--success); box-shadow: 0 0 0 3px rgba(34,197,94,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,.05); } }
.bell { position: relative; }
.bell .count { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; border-radius: 9px; background: var(--primary); font-size: 10px; display: grid; place-items: center; padding: 0 4px; font-weight: 600; }
.mobile-only { display: none; }

/* ---------- Menus déroulants ---------- */
.dropdown { position: absolute; z-index: 60; min-width: 220px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; animation: pop .14s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.dd-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--text-2); width: 100%; border: 0; background: none; text-align: left; }
.dd-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.dd-item.active { color: #fff; background: var(--primary-soft); }
.dd-sep { height: 1px; background: var(--line); margin: 6px 0; }
.dd-title { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px 4px; }
.notif-panel { width: 380px; max-height: 480px; overflow-y: auto; padding: 0; }
.notif { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif:hover { background: rgba(255,255,255,.025); }
.notif.unread { background: rgba(139,92,246,.05); }
.notif .ni { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-soft); color: var(--primary-2); }
.notif .ni.success { background: var(--success-soft); color: var(--success); } .notif .ni.warning { background: var(--warning-soft); color: var(--warning); } .notif .ni.danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Modales & tiroirs ---------- */
.overlay { position: fixed; inset: 0; background: rgba(5, 5, 10, .62); backdrop-filter: blur(3px); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; animation: ofade .18s ease; }
@keyframes ofade { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: mpop .22s var(--ease); }
.modal.lg { max-width: 820px; } .modal.sm { max-width: 420px; }
@keyframes mpop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(0,0,0,.12); border-radius: 0 0 16px 16px; }
.drawer-overlay { justify-content: flex-end; padding: 0; }
.drawer { width: 100%; max-width: 640px; height: 100vh; background: var(--bg-2); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; animation: slide .26s var(--ease); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer .modal-body { flex: 1; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--text-3); } .kv dd { margin: 0; word-break: break-word; }
.textblock { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--text-2); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 280px; max-width: 400px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); animation: tin .25s var(--ease); font-size: 13.5px; }
.toast .lucide { margin-top: 1px; }
.toast.success .lucide { color: var(--success); } .toast.error .lucide { color: var(--danger); } .toast.info .lucide { color: var(--primary-2); }
.toast.out { animation: tout .2s ease forwards; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
@keyframes tout { to { opacity: 0; transform: translateX(16px); } }

/* ---------- Graphiques ---------- */
.chart { width: 100%; display: block; }
.chart text { fill: var(--text-3); font-size: 11px; font-family: inherit; }
.chart .grid-line { stroke: rgba(255,255,255,.05); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbar { display: flex; flex-direction: column; gap: 12px; }
.hbar-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hbar-row .rank { width: 22px; height: 22px; border-radius: 6px; background: var(--bg-4); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--text-2); }
.hbar-row:nth-child(1) .rank { background: linear-gradient(135deg, #F5C451, #C88E1B); color: #1a1405; }
.hbar-row:nth-child(2) .rank { background: linear-gradient(135deg, #D8DCE6, #9AA1B2); color: #14161c; }
.hbar-row:nth-child(3) .rank { background: linear-gradient(135deg, #E0A37A, #A9603A); color: #1d0f07; }
.tooltip { position: fixed; pointer-events: none; z-index: 120; background: #1E1E2E; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; font-size: 12px; box-shadow: var(--shadow); }

/* ---------- Listes & timelines ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item.clickable { cursor: pointer; } .list-item.clickable:hover { background: rgba(255,255,255,.02); }
.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--primary); }
.tl-item.warning::before { border-color: var(--warning); } .tl-item.danger::before { border-color: var(--danger); } .tl-item.success::before { border-color: var(--success); }
.alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; border: 1px solid var(--line); background: var(--bg); }
.alert.warning { border-color: rgba(245,158,11,.25); background: var(--warning-soft); color: #FDE68A; }
.alert.danger { border-color: rgba(239,68,68,.25); background: var(--danger-soft); color: #FECACA; }
.alert.info { border-color: rgba(139,92,246,.25); background: var(--primary-soft); color: #DDD6FE; }
.alert.success { border-color: rgba(34,197,94,.25); background: var(--success-soft); color: #BBF7D0; }
.banner-ann { display: flex; align-items: center; gap: 10px; padding: 9px 22px; font-size: 13px; background: linear-gradient(90deg, rgba(139,92,246,.18), rgba(168,85,247,.06)); border-bottom: 1px solid rgba(139,92,246,.25); color: #E9E3FF; }
.banner-ann.maintenance { background: linear-gradient(90deg, rgba(245,158,11,.16), rgba(245,158,11,.04)); border-color: rgba(245,158,11,.25); color: #FDE68A; }
.banner-ann.critical { background: linear-gradient(90deg, rgba(239,68,68,.18), rgba(239,68,68,.04)); border-color: rgba(239,68,68,.3); color: #FECACA; }

/* ---------- Calendrier ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-h { padding: 8px; font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.cal-d { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-d.out { background: rgba(0,0,0,.18); } .cal-d.out .n { color: #45455A; }
.cal-d .n { font-size: 12px; color: var(--text-2); font-weight: 500; margin-bottom: 2px; }
.cal-d.today .n { color: #fff; background: var(--primary); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.cal-ev { font-size: 11.5px; padding: 2px 6px; border-radius: 5px; background: var(--primary-soft); color: #DDD6FE; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; border-left: 2px solid var(--primary); }
.cal-ev.task { background: var(--warning-soft); color: #FDE68A; border-color: var(--warning); }
.cal-ev.interview { background: var(--info-soft); color: #BAE6FD; border-color: var(--info); }
.cal-ev.event { background: var(--success-soft); color: #BBF7D0; border-color: var(--success); }

/* ---------- Messagerie ---------- */
.chat { display: grid; grid-template-columns: 260px 1fr; height: calc(100vh - 190px); min-height: 420px; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 72%; padding: 9px 12px; border-radius: 12px; background: var(--bg-4); font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.msg.me { align-self: flex-end; background: linear-gradient(180deg, #7C4DEB, #6D3FE0); }
.msg .who { font-size: 11px; color: var(--text-3); margin-bottom: 2px; } .msg.me .who { color: #DDD6FE; }
.chat-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }

/* ---------- Kanban tâches ---------- */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kcol { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.kcol.drag { border-color: var(--primary-line); background: rgba(139,92,246,.04); }
.kcard { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; cursor: grab; transition: border-color .15s; }
.kcard:hover { border-color: var(--line-2); }

/* ---------- Pages publiques ---------- */
.public { min-height: 100vh; background:
  radial-gradient(900px 500px at 15% -10%, rgba(139,92,246,.16), transparent 60%),
  radial-gradient(700px 400px at 100% 0%, rgba(168,85,247,.08), transparent 60%), var(--bg); }
.pub-nav { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; max-width: 1280px; margin: 0 auto; }
.pub-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px 80px; }
.hero { text-align: center; padding: 64px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; max-width: 820px; }
.hero h1 span { background: linear-gradient(90deg, #C4B5FD, var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 16.5px; color: var(--text-2); max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--primary-line); background: var(--primary-soft); color: #DDD6FE; font-size: 12.5px; font-weight: 500; }
.spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 14px; }
.space { padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s var(--ease); cursor: pointer; }
.space:hover { border-color: var(--primary-line); transform: translateY(-2px); }
.space .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-2); border: 1px solid rgba(139,92,246,.22); }
.space ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; color: var(--text-2); font-size: 13.5px; }
.space li { display: flex; gap: 8px; align-items: center; } .space li .lucide { width: 15px; height: 15px; color: var(--primary-2); }
.space .btn { margin-top: auto; }
.pub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.pub-stats .card { padding: 18px; text-align: center; } .pub-stats b { font-size: 26px; display: block; letter-spacing: -0.02em; }
.auth-card { width: 100%; max-width: 420px; margin: 40px auto; padding: 28px; }
.auth-card .head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 22px; }
.demo-box { margin-top: 18px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 12.5px; color: var(--text-2); }
.demo-box code { color: #DDD6FE; }
.company-card { overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s var(--ease); cursor: pointer; }
.company-card:hover { border-color: var(--primary-line); transform: translateY(-2px); }
.company-card .cover { height: 92px; background: linear-gradient(135deg, #261a4a, #13131F 70%); background-size: cover; background-position: center; position: relative; }
.company-card .logo-box { position: absolute; left: 16px; bottom: -20px; width: 48px; height: 48px; border-radius: 12px; border: 3px solid var(--bg-2); background: var(--bg-3); }
.company-card .body { padding: 28px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fav { position: absolute; top: 10px; right: 10px; }
.fav.on .lucide { fill: var(--primary-2); color: var(--primary-2); }
.profile-hero { height: 220px; border-radius: 16px; background: linear-gradient(135deg, #2d1d5a, #13131F 75%); background-size: cover; background-position: center; position: relative; border: 1px solid var(--line); }
.profile-head { display: flex; align-items: flex-end; gap: 18px; margin: -46px 24px 22px; position: relative; }
.profile-head .logo-box { width: 96px; height: 96px; border-radius: 20px; border: 4px solid var(--bg); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .shell.mobile-open .sidebar { transform: none; box-shadow: var(--shadow); }
  .shell.collapsed .sb-group, .shell.collapsed .sb-link span, .shell.collapsed .brand-name, .shell.collapsed .sb-company .meta { display: initial; }
  .mobile-only { display: inline-flex; } .desktop-only { display: none !important; }
  .g-3, .g-2 { grid-template-columns: minmax(0, 1fr); }
  .spaces, .pub-stats { grid-template-columns: 1fr 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 1fr; } .chat-list { display: none; }
  .hero h1 { font-size: 34px; }
  .content { padding: 18px 14px 60px; }
  .topbar { padding: 0 14px; }
}
@media (max-width: 600px) {
  .form-grid, .spaces, .pub-stats { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; }
  .pub-nav, .pub-wrap { padding-left: 16px; padding-right: 16px; }
  .notif-panel { width: calc(100vw - 24px); }
  .cal-d { min-height: 70px; } .cal-ev { font-size: 10px; }
  .topbar .crumbs { display: none; }
}
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: rot .7s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
.loader { display: grid; place-items: center; min-height: 50vh; } .loader .spin { width: 26px; height: 26px; border-width: 3px; border-top-color: var(--primary-2); }
td.right, th.right { white-space: nowrap; }

/* ---------- Écran de chargement (logo 3D flottant) ---------- */
#splash { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 50% 40% at 50% 45%, rgba(139, 92, 246, .14), transparent 70%), var(--bg);
  transition: opacity .6s ease, visibility .6s;
  animation: splash-failsafe .6s ease 8s forwards; /* sécurité : jamais bloqué indéfiniment */ }
#splash.done { opacity: 0; visibility: hidden; }
#splash.done .splash-logo { transform: scale(1.08); opacity: 0; transition: transform .6s ease, opacity .5s ease; }
.splash-logo { position: relative; width: min(420px, 78vw); aspect-ratio: 760 / 507; animation: splash-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.splash-logo img { width: 100%; height: 100%; display: block; animation: splash-float 3s ease-in-out .9s infinite; filter: drop-shadow(0 18px 40px rgba(139, 92, 246, .35)); }
/* reflet qui balaie uniquement le logo (masqué par sa propre transparence) */
.splash-shine { position: absolute; inset: 0; pointer-events: none; animation: splash-float 3s ease-in-out .9s infinite;
  -webkit-mask: url(/assets/logo3d.png) center / contain no-repeat; mask: url(/assets/logo3d.png) center / contain no-repeat; }
.splash-shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .45) 50%, transparent 62%); background-size: 250% 100%; animation: splash-shine 2.6s ease-in-out .8s infinite; }
.splash-shadow { width: 180px; height: 16px; margin-top: 4px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 92, 246, .45), transparent); filter: blur(4px); animation: splash-shadow 3s ease-in-out .9s infinite; }
.splash-bar { width: 200px; height: 3px; margin-top: 34px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.splash-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8B5CF6, #A855F7); transform-origin: left; animation: splash-load 2.4s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes splash-in { from { opacity: 0; transform: translateY(30px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes splash-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
@keyframes splash-shadow { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.75); opacity: .45; } }
@keyframes splash-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes splash-load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .splash-logo img, .splash-shine, .splash-shine::after, .splash-shadow { animation: none; } }

/* ---------- Discord ---------- */
.btn.discord { background: #5865F2; border-color: #5865F2; color: #fff; }
.btn.discord:hover { background: #4752C4; border-color: #4752C4; }
.discord-ico { width: 18px; height: 18px; flex: none; }
.sep-label { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-3, #6b6b80); font-size: 12px; }
.sep-label::before, .sep-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.mail-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 12px; background: #0B0B12; }

/* ---------- Ventes & preuves ---------- */
.proof-thumb { width: 54px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); display: block; }
.proof-full { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); display: block; }
.declare-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .declare-grid { grid-template-columns: 1fr; } }
.dropzone { position: relative; display: grid; place-items: center; min-height: 220px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--bg-3); cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over, .dropzone:focus { border-color: var(--primary); background: rgba(139, 92, 246, .06); outline: none; }
.dropzone img { width: 100%; height: 100%; max-height: 320px; object-fit: contain; }
.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; text-align: center; }
.dz-empty svg { width: 30px; height: 30px; color: var(--primary-2); margin-bottom: 4px; }
kbd { font: 600 11px/1 Inter, sans-serif; padding: 3px 6px; border-radius: 5px; background: var(--bg-4); border: 1px solid var(--line-2); }
.ocr-box { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.ocr-bar { height: 3px; margin-top: 10px; border-radius: 3px; background: var(--bg-4); overflow: hidden; }
.ocr-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8B5CF6, #22C55E); transition: width .2s; }
.ocr-ok { display: flex; gap: 10px; align-items: flex-start; } .ocr-ok > svg { color: var(--success); flex: none; margin-top: 2px; }
.ocr-crop { display: block; max-width: 100%; max-height: 54px; margin-top: 10px; border-radius: 6px; border: 1px solid rgba(34, 197, 94, .4); background: #000; }
.spin.dark { border-color: rgba(255,255,255,.15); border-top-color: var(--primary-2); }
.amount-input { font-size: 18px; font-weight: 700; }
.amount-input.flash { animation: flashok 1.2s ease; }
@keyframes flashok { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); border-color: var(--success); } 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc > div { padding: 12px 14px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.calc b { font-size: 16px; } .calc > div:first-child b { color: var(--success); }
.amber-t { color: #FCD34D; }
.list-item .rank { width: 24px; height: 24px; border-radius: 7px; background: var(--bg-4); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.list-item:nth-child(1) .rank { background: linear-gradient(135deg, #F5C451, #C88E1B); color: #1a1405; }
.stat-value.small-val { font-size: 16px; }

/* ---------- Contrats ---------- */
.modal.xl { max-width: 1180px; }
.mb-8 { margin-bottom: 8px; }
.kind-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: #C4B5FD; flex: none; }
.kind-ico svg { width: 17px; height: 17px; }
.sig-dots { display: inline-flex; gap: 4px; } .sig-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-4); border: 1px solid var(--line-2); }
.sig-dots i.on { background: var(--success); border-color: var(--success); }
.contract-editor { display: grid; grid-template-columns: 400px 1fr; gap: 22px; }
@media (max-width: 960px) { .contract-editor { grid-template-columns: 1fr; } }
.ce-side { display: flex; flex-direction: column; gap: 14px; }
.ce-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ce-text { min-height: 520px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 12.5px; line-height: 1.65; resize: vertical; }
.ce-preview { min-height: 520px; max-height: 620px; overflow: auto; padding: 22px 26px; border-radius: 12px; background: #fff; color: #1f2030; }
.kind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind-card input { display: none; }
.kind-card span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-3); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: .15s; }
.kind-card span svg { width: 16px; height: 16px; color: var(--text-3); }
.kind-card input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: #fff; }
.kind-card input:checked + span svg { color: #C4B5FD; }
.adv-edit { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 6px; margin-bottom: 6px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.step { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); font-size: 11.5px; color: var(--text-3); }
.step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-4); }
.step.ok { color: var(--text); border-color: rgba(34,197,94,.3); } .step.ok i { background: var(--success); color: #fff; }
.doc-scroll { border-radius: 14px; overflow: hidden; }
/* Document « papier » */
.contract-doc { background: #fff; color: #1f2030; border-radius: 14px; padding: 34px 40px; box-shadow: 0 20px 60px rgba(0,0,0,.35); font-size: 14px; line-height: 1.7; }
.cd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 3px solid #7C3AED; }
.cd-head h1 { font-size: 22px; line-height: 1.25; margin: 2px 0 4px; color: #13131F; }
.cd-head .dim { color: #6b6b80; } .cd-head .logo-box { background: #13131F; }
.cd-kind { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7C3AED; }
.cd-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 16px; }
.cd-parties > div { padding: 14px 16px; border-radius: 12px; background: #F5F3FF; display: flex; flex-direction: column; }
.cd-parties span, .cd-facts span { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7C3AED; }
.cd-parties b { font-size: 15px; color: #13131F; } .cd-parties small { color: #6b6b80; }
.cd-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 12px 0 18px; border-bottom: 1px solid #ECEAF3; margin-bottom: 10px; }
.cd-facts span { color: #8a8aa0; } .cd-facts b { display: block; color: #13131F; }
.cd-body h3 { color: #6D28D9; font-size: 14.5px; margin: 20px 0 6px; }
.cd-body p { margin: 0 0 8px; text-align: justify; } .cd-body ul { margin: 4px 0 10px; padding-left: 22px; } .cd-body li::marker { color: #7C3AED; }
.cd-adv { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: #F5F3FF; border: 1px solid #E9E3FF; }
.cd-adv h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #6D28D9; display: flex; align-items: center; gap: 6px; }
.adv-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; padding: 7px 0; border-top: 1px solid #E9E3FF; font-size: 13.5px; } .adv-row span { color: #55556a; }
.cd-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.cd-sign { display: flex; flex-direction: column; gap: 6px; } .cd-sign > span { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a8aa0; }
.cd-sign img, .cd-sign-empty { height: 92px; border: 1.5px dashed #D6D3E3; border-radius: 10px; object-fit: contain; background: #FCFCFE; display: grid; place-items: center; color: #9a9ab0; font-size: 12px; width: 100%; }
.cd-sign.ok img, .cd-sign.ok .cd-sign-empty { border: 1.5px solid #22C55E; color: #16a34a; }
.cd-sign small { color: #6b6b80; font-size: 11.5px; }
/* Pavé de signature */
.sigpad { position: relative; border-radius: 12px; background: #fff; border: 1.5px dashed #C4B5FD; }
.sigpad canvas { width: 100%; height: 170px; display: block; cursor: crosshair; touch-action: none; }
.sig-clear { position: absolute; top: 6px; right: 6px; color: #6b6b80 !important; }
.sig-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #b4b0c8; font-size: 14px; pointer-events: none; font-style: italic; }
/* Page publique */
.contract-page .pub-nav { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); }
.brand-sm { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.contract-wrap { max-width: 880px; margin: 0 auto; padding: 24px 20px 80px; }
.sign-box { margin-top: 22px; } .sign-box h2 { display: flex; align-items: center; gap: 8px; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 15px; }
.ico-xl svg { width: 42px; height: 42px; color: var(--primary-2); margin-bottom: 10px; }
/* Avantages (dossier employé) */
.adv-list { display: flex; flex-direction: column; gap: 10px; }
.adv-item { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); border: 1px solid rgba(139,92,246,.2); }
.adv-item > svg { color: #C4B5FD; flex: none; margin-top: 3px; }
@media (max-width: 640px) { .contract-doc { padding: 22px 18px; } .cd-parties, .cd-signs { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr 1fr; } }

/* ---------- Formules ---------- */
.pricing-section { margin-top: 70px; }
.section-title { font-size: 30px; letter-spacing: -.02em; margin: 12px 0 8px; }
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; align-items: stretch; }
@media (max-width: 1100px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pricing { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border-top: 3px solid var(--plan); }
.plan.popular { border-color: rgba(168, 85, 247, .55); background: linear-gradient(180deg, rgba(139, 92, 246, .10), var(--bg-2) 45%); box-shadow: 0 18px 50px rgba(139, 92, 246, .15); }
.plan.current { outline: 2px solid var(--success); outline-offset: -1px; }
.plan-flag { position: absolute; top: -12px; right: 16px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: linear-gradient(135deg, #8B5CF6, #A855F7); color: #fff; }
.plan-flag.cur { background: var(--success); left: 16px; right: auto; }
.plan-name { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--plan); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 4px; }
.plan-price b { font-size: 28px; letter-spacing: -.02em; } .plan-price span { color: var(--text-3); font-size: 13px; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.4; } .plan li svg { width: 16px; height: 16px; color: var(--plan); flex: none; margin-top: 1px; }
.badge.gold { color: #FDE68A; background: rgba(245, 196, 81, .12); border-color: rgba(245, 196, 81, .35); }
.usage { display: flex; flex-direction: column; gap: 6px; } .usage-bar { height: 6px; border-radius: 6px; background: var(--bg-4); overflow: hidden; } .usage-bar span { display: block; height: 100%; background: linear-gradient(90deg, #8B5CF6, #A855F7); }
.usage-bar.full span { background: var(--danger); }

/* ===== Navigation compacte : rubriques + onglets ===== */
.sb-count { margin-left: auto; font-size: 10.5px; color: var(--text-3, #6b6b80); background: rgba(255,255,255,.05); border-radius: 8px; padding: 1px 6px; }
.sb-link.active .sb-count { color: #C4B5FD; background: rgba(139,92,246,.18); }
.subnav { position: sticky; top: 60px; z-index: 19; display: flex; gap: 2px; padding: 0 22px; background: rgba(11, 11, 18, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subnav-link { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; color: var(--text-2); font-weight: 500; font-size: 13.5px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .12s, border-color .12s; }
.subnav-link:hover { color: var(--text); }
.subnav-link.active { color: #fff; border-bottom-color: var(--primary-2); }
.subnav-link.active .lucide { color: var(--primary-2); }
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.side-menu { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 120px; }
.side-link { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 13.5px; }
.side-link:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side-link.active { background: var(--primary-soft); color: #fff; }
@media (max-width: 860px) { .settings-layout { grid-template-columns: 1fr; } .side-menu { flex-direction: row; overflow-x: auto; position: static; } }

/* ===== Déclaration de ventes par lot ===== */
.dropzone.compact { min-height: 0; padding: 22px; }
.dropzone.compact .dz-empty { flex-direction: row; gap: 14px; text-align: left; }
.dropzone.compact .dz-empty .lucide { width: 30px; height: 30px; flex: none; }
.dropzone.compact .dz-empty span { display: block; }
.pq { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; max-height: 56vh; overflow-y: auto; }
.pq-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2, #13131F); }
.pq-item.done { border-color: rgba(34,197,94,.35); opacity: .75; }
.pq-item.error { border-color: rgba(239,68,68,.45); }
.pq-thumb { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.pq-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pq-fields { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr; gap: 10px; }
.pq-fields .field label { font-size: 11.5px; }
@media (max-width: 900px) { .pq-fields { grid-template-columns: 1fr 1fr; } }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; background: var(--bg-4); color: var(--text); white-space: nowrap; }
.chip .dim { color: var(--text-2); }
.chip.ok { background: rgba(34,197,94,.13); color: #86efac; }
.chip.warn { background: rgba(245,158,11,.13); color: #fcd34d; }
.chip.err { background: rgba(239,68,68,.14); color: #fca5a5; white-space: normal; height: auto; padding: 3px 9px; }
.input.ro { display: flex; align-items: center; color: var(--text-2); background: transparent; }
.btn.copied { background: rgba(34,197,94,.18) !important; color: #86efac !important; border-color: rgba(34,197,94,.4) !important; }

/* ===== Planning des annonces ===== */
.todo-ads { border-color: rgba(139,92,246,.35); background: linear-gradient(180deg, rgba(139,92,246,.08), transparent 70%), var(--bg-2, #13131F); }
.todo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.todo-ad { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.todo-ad.late { border-color: rgba(239,68,68,.45); }
.todo-text, .tpl-text { font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.wday { border-right: 1px solid var(--line); min-height: 320px; display: flex; flex-direction: column; }
.wday:last-child { border-right: 0; }
.wday.today { background: rgba(139,92,246,.05); }
.wday-head { display: flex; align-items: center; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.wday-head b { font-size: 15px; color: var(--text); }
.wday-head .btn { margin-left: auto; opacity: 0; }
.wday:hover .wday-head .btn { opacity: 1; }
.wday.today .wday-head b { background: var(--primary); color: #fff; border-radius: 7px; padding: 1px 7px; }
.wday-body { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.wday-empty { color: var(--text-3, #5b5b6e); text-align: center; font-size: 12px; padding: 14px 0; }
.bc { padding: 9px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--primary-2); cursor: pointer; display: flex; flex-direction: column; gap: 5px; transition: border-color .12s, transform .12s; }
.bc:hover { border-color: rgba(139,92,246,.5); transform: translateY(-1px); }
.bc.posted { border-left-color: #22C55E; opacity: .72; }
.bc.late { border-left-color: #EF4444; }
.bc-top { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.bc-time { color: var(--text); }
.bc-ch { color: var(--text-2); display: inline-flex; }
.bc-ok { color: #22C55E; display: inline-flex; }
.bc-title { font-weight: 600; font-size: 12.5px; line-height: 1.3; }
.bc-text { font-size: 11.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--text-2); }
.bc-actions { display: flex; gap: 4px; }
.bc-actions .btn:first-child { flex: 1; }
@media (max-width: 1100px) { .week { grid-template-columns: 1fr; } .wday { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); } .wday-head .btn { opacity: 1; } }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tpl { padding: 12px; border: 1px dashed rgba(255,255,255,.12); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.tpl:hover { border-color: rgba(139,92,246,.5); }
.ad-editor { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
@media (max-width: 860px) { .ad-editor { grid-template-columns: 1fr; } }
.ad-preview { padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #3b2d1f, #5a4630); }
.ad-bubble { background: rgba(20,20,26,.88); border-radius: 12px; padding: 12px 14px; color: #fff; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.ad-from { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12.5px; color: #C4B5FD; }
.day-picks { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pick input { display: none; }
.day-pick span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 32px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); cursor: pointer; font-size: 12.5px; }
.day-pick input:checked + span { background: var(--primary-soft); border-color: var(--primary-2); color: #fff; }

/* ===== Accueil enrichi ===== */
.landing .pub-wrap { padding-bottom: 40px; }
.hero2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-copy h1 { font-size: 48px; line-height: 1.06; letter-spacing: -0.035em; font-weight: 750; }
.hero-copy h1 span { background: linear-gradient(90deg, #C4B5FD, var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { font-size: 16.5px; color: var(--text-2); max-width: 560px; line-height: 1.6; }
.btn.lg { height: 44px; padding: 0 18px; font-size: 14.5px; }
.hero-proof { display: flex; gap: 28px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-proof b { display: block; font-size: 22px; letter-spacing: -.02em; } .hero-proof span { font-size: 12px; color: var(--text-3); }
.hero-visual { position: relative; padding: 24px 10px; }
.hero-visual::before { content: ''; position: absolute; inset: -40px; background: radial-gradient(closest-side, rgba(139,92,246,.35), transparent 70%); filter: blur(20px); z-index: 0; }
.mock { position: relative; z-index: 1; border-radius: 16px; border: 1px solid rgba(255,255,255,.09); background: linear-gradient(180deg, #171726, #101019); box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--text-3); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a3b; } .mock-bar i:first-child { background: #ef4444aa; } .mock-bar i:nth-child(2) { background: #f59e0baa; } .mock-bar i:nth-child(3) { background: #22c55eaa; }
.mock-bar span { margin-left: 8px; }
.mock-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.mock-kpis span { font-size: 10.5px; color: var(--text-3); } .mock-kpis b { font-size: 17px; } .mock-kpis em { font-style: normal; font-size: 10.5px; color: var(--text-3); } .mock-kpis em.pos { color: #4ade80; }
.mock-chart { height: 110px; display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.02); border: 1px solid var(--line); }
.mock-chart span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #A855F7, #6D28D9); transform-origin: bottom; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.mock-rows { display: flex; flex-direction: column; gap: 6px; }
.mock-rows div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.025); }
.mock-rows b { margin-left: auto; color: var(--text); font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; } .dot.g { background: #22c55e; } .dot.v { background: #a855f7; } .dot.a { background: #f59e0b; }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(23,23,38,.92); border: 1px solid rgba(168,85,247,.35); box-shadow: 0 14px 40px rgba(0,0,0,.5); backdrop-filter: blur(8px); animation: floaty 5s ease-in-out infinite; }
.float-card .lucide { color: #C084FC; } .float-card b { display: block; font-size: 13px; } .float-card span { font-size: 11.5px; color: var(--text-2); }
.fc1 { left: -24px; bottom: 14px; } .fc2 { right: -10px; top: -4px; animation-delay: -2.5s; } .fc2 .lucide { color: #4ade80; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.logos { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 8px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.logo-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 30px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 13px; color: var(--text-2); transition: border-color .15s, color .15s; }
.logo-chip:hover { border-color: var(--primary-line); color: #fff; } .logo-chip .logo-box { width: 26px; height: 26px; border-radius: 50%; }
.block { margin-top: 84px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.feat { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); display: flex; flex-direction: column; gap: 8px; transition: transform .2s var(--ease), border-color .2s; }
.feat:hover { transform: translateY(-3px); border-color: var(--primary-line); }
.feat-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: #C4B5FD; margin-bottom: 4px; }
.feat b { font-size: 15px; } .feat p { font-size: 13px; color: var(--text-2); line-height: 1.55; margin: 0; }
.spotlight { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 36px; border-radius: 20px; border: 1px solid var(--primary-line); background: radial-gradient(120% 140% at 100% 0%, rgba(139,92,246,.16), transparent 55%), var(--bg-2); }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.steps li { position: relative; padding-left: 44px; display: flex; flex-direction: column; gap: 2px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; }
.steps span { font-size: 13px; color: var(--text-2); }
.flow { display: flex; align-items: center; gap: 8px; }
.flow-step { flex: 1; padding: 18px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.flow-step > span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: #C4B5FD; }
.flow-step.ok > span { background: rgba(34,197,94,.14); color: #4ade80; } .flow-step em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.flow-arrow { color: var(--text-3); flex: none; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.how-step { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 8px; }
.how-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, #8B5CF6, #A855F7); color: #fff; box-shadow: 0 6px 18px rgba(139,92,246,.4); }
.how-step p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.btn.discord { background: #5865F2; border-color: #5865F2; color: #fff; }
/* Formules */
.pricing { gap: 18px; margin-top: 34px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 22px; border-radius: 18px; border: 1px solid var(--line); border-top: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--plan) 9%, transparent), var(--bg-2) 40%); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.plan:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--plan) 55%, transparent); box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.plan::before { content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--plan), transparent); }
.plan.popular { border-color: rgba(192,132,252,.6); background: linear-gradient(180deg, rgba(168,85,247,.20), var(--bg-2) 55%); box-shadow: 0 0 0 1px rgba(192,132,252,.25), 0 26px 70px rgba(139,92,246,.30); transform: translateY(-8px); }
.plan.popular:hover { transform: translateY(-12px); }
.plan-flag { display: inline-flex; align-items: center; gap: 5px; top: -13px; left: 50%; right: auto; transform: translateX(-50%); padding: 5px 12px; white-space: nowrap; box-shadow: 0 8px 20px rgba(139,92,246,.45); }
.plan-flag.cur { left: 50%; }
.plan-top { display: flex; gap: 12px; align-items: center; }
.plan-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--plan); background: color-mix(in srgb, var(--plan) 16%, transparent); border: 1px solid color-mix(in srgb, var(--plan) 35%, transparent); }
.plan-name { font-size: 16px; letter-spacing: .02em; text-transform: none; color: #fff; }
.plan-price { margin: 4px 0 0; } .plan-price b { font-size: 32px; letter-spacing: -.03em; }
.plan-day { font-size: 12px; color: var(--text-3); margin-top: -8px; }
.plan-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-chips span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 9px; border-radius: 20px; background: rgba(255,255,255,.05); color: var(--text); }
.plan-chips .lucide { color: var(--plan); }
.plan-inherit { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--plan); padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.08); }
.plan li .lucide { color: var(--plan); flex: none; margin-top: 1px; }
.compare-wrap { margin-top: 26px; text-align: center; }
.compare-wrap > summary { list-style: none; display: inline-flex; cursor: pointer; } .compare-wrap > summary::-webkit-details-marker { display: none; }
.compare { margin-top: 16px; overflow-x: auto; text-align: left; }
.compare table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--text-2); }
.compare th { vertical-align: bottom; } .compare th .cmp-name { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--plan); }
.compare .pop { background: rgba(168,85,247,.07); }
.compare .yes { color: #4ade80; display: inline-flex; } .compare .no { color: var(--text-3); }
.faq-wrap .faq { max-width: 820px; margin: 26px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .lucide { transform: rotate(45deg); } .faq-item summary .lucide { transition: transform .2s; color: var(--text-3); }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.cta-band { margin-top: 84px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 34px 36px; border-radius: 20px; background: linear-gradient(120deg, #6D28D9, #8B5CF6 45%, #A855F7); box-shadow: 0 24px 60px rgba(139,92,246,.35); }
.cta-band h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; color: #fff; } .cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-band .btn.primary { background: #fff; color: #4c1d95; border-color: #fff; } .cta-band .btn:not(.primary) { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.pub-foot { max-width: 1280px; margin: 0 auto; padding: 28px 32px 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.pub-foot a { color: var(--text-2); } .pub-foot a:hover { color: #fff; }
@media (max-width: 1100px) { .hero2, .spotlight { grid-template-columns: 1fr; } .feat-grid { grid-template-columns: repeat(2, 1fr); } .hero-visual { max-width: 620px; } }
@media (max-width: 700px) { .feat-grid, .how { grid-template-columns: 1fr; } .hero-copy h1 { font-size: 34px; } .flow { flex-direction: column; } .flow-arrow { transform: rotate(90deg); } .fc1 { left: 0; } .fc2 { right: 0; } }
/* Admin : renouvellement */
.seg { display: flex; gap: 6px; } .seg input { display: none; }
.seg span { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; font-size: 13px; color: var(--text-2); }
.seg input:checked + span { background: var(--primary-soft); border-color: var(--primary-2); color: #fff; }
.renew-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.renew-sum div { display: flex; flex-direction: column; gap: 2px; } .renew-sum b { font-size: 17px; }

/* ---------- Mode téléphone (session RP) ---------- */
.bottombar, .sb-backdrop, .mobile-title { display: none; }
@media (max-width: 900px) {
  .mobile-title { display: block; font-size: 15px; font-weight: 650; min-width: 0; }
  .topbar .crumbs { display: none; }
  .topbar { height: 54px; gap: 6px; }
  .subnav { top: 54px; padding: 0 8px; }
  .subnav-link { height: 42px; padding: 0 12px; font-size: 13px; }
  /* menu latéral en tiroir + fond assombri */
  .sidebar { z-index: 70; width: min(300px, 86vw); height: 100dvh; }
  .shell.mobile-open .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(5, 5, 10, .6); backdrop-filter: blur(2px); animation: ofade .18s ease; }
  .sb-link { min-height: 44px; }
  /* barre d'onglets du bas */
  .bottombar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: stretch; justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(19, 19, 31, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .bb-link { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; border: 0; background: none; color: var(--text-3); font: inherit; font-size: 10.5px; font-weight: 500; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .bb-link .lucide { width: 21px; height: 21px; }
  .bb-link.active { color: #fff; } .bb-link.active .lucide { color: var(--primary-2); }
  .bb-link:active { background: rgba(255, 255, 255, .05); }
  .bb-fab { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: -22px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 10.5px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .bb-fab .lucide { width: 54px; height: 54px; padding: 15px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #8B5CF6, #A855F7); box-shadow: 0 8px 24px rgba(139, 92, 246, .45), 0 0 0 4px var(--bg); }
  .bb-fab:active .lucide { transform: scale(.94); }
  .content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toasts { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* fenêtres en plein écran glissant du bas */
  .overlay:not(.drawer-overlay) { align-items: flex-end; padding: 0; }
  .modal, .modal.lg, .modal.xl, .modal.sm { max-width: none; max-height: 92dvh; border-radius: 18px 18px 0 0; border-bottom: 0; animation: sheet .26s var(--ease); }
  .modal-foot { border-radius: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .drawer { max-width: none; height: 100dvh; }
  .modal-body { padding: 16px; }
  /* pas de zoom automatique iOS sur les champs */
  .input, select.input, textarea.input, input, select, textarea { font-size: 16px; }
  .tabs { width: auto; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tab { flex: 0 0 auto; height: 34px; }
  .page-head { margin-bottom: 14px; }
  .page-head > :last-child:not(.title) { width: 100%; }
  .page-head > :last-child:not(.title) .btn { flex: 1; justify-content: center; }
  .toolbar .input-icon { width: 100%; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .page-head .title .ico { display: none; }
  .page-head h1 { font-size: 20px; }
  .page-head p { font-size: 12.5px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 13px; gap: 4px; }
  .stat .stat-value { font-size: 19px; }
  .stat .stat-label { font-size: 11.5px; } .stat .stat-label .ico { width: 24px; height: 24px; } .stat .stat-label .ico .lucide { width: 13px; height: 13px; }
  .stat .stat-foot { font-size: 11px; }
  .grid { gap: 12px; }
  /* tableaux → cartes empilées, une ligne = une carte */
  .table-wrap { overflow: visible; }
  .table-wrap table.table, .table-wrap .table tbody { display: block; }
  .table-wrap .table thead { display: none; }
  .table-wrap .table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table-wrap .table tr:last-child { border-bottom: 0; }
  .table-wrap .table td { display: block; padding: 0; border: 0; min-width: 0; text-align: left; white-space: normal; }
  .table-wrap .table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin-bottom: 2px; }
  .table-wrap .table td:first-child { grid-column: 1 / -1; }
  .table-wrap .table td.actions { grid-column: 1 / -1; text-align: right; }
  .table-wrap .table td.actions:empty { display: none; }
  .table-wrap .table td.actions .btn { min-height: 34px; min-width: 40px; }
  .proof-thumb { max-height: 120px; width: auto; }
}
@media (max-width: 640px) {
  .dropzone.compact .dz-empty { flex-direction: column; text-align: center; gap: 6px; }
  .dz-empty .mobile-only { display: block; }
}
@media (max-width: 900px) { .sb-foot { display: none; } }
@media (max-width: 640px) { .modal-foot { flex-wrap: wrap; gap: 8px; } .modal-foot > .btn, .modal-foot > div > .btn { flex: 1 1 auto; justify-content: center; } .modal-foot .grow { flex-basis: 100%; height: 0; } }
.compare { overflow-x: auto; } @media (max-width: 640px) { .compare table { min-width: 560px; font-size: 12px; } .compare th:first-child, .compare td:first-child { position: sticky; left: 0; background: var(--bg-2); z-index: 1; } }

/* ---------- Souscription en libre-service ---------- */
.span-2 { grid-column: 1 / -1; }
.danger-t { color: #FCA5A5; }
.logo-box.lg { width: 64px; height: 64px; border-radius: 16px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg button .lucide { width: 15px; height: 15px; }
.seg button.on { background: var(--primary-soft); border-color: var(--primary-2); color: #fff; }
.sub-wrap { max-width: 1180px; margin: 0 auto; padding-top: 28px; padding-bottom: 80px; }
.sub-head h1 { font-size: 32px; letter-spacing: -0.03em; margin: 8px 0 6px; }
.sub-head p { max-width: 720px; }
.sub-steps { list-style: none; display: flex; gap: 8px; margin: 22px 0; padding: 0; flex-wrap: wrap; }
.sub-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid var(--line); color: var(--text-3); font-size: 13px; font-weight: 500; }
.sub-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); font-size: 12px; }
.sub-steps li span .lucide { width: 13px; height: 13px; }
.sub-steps li.on { color: #fff; border-color: var(--primary-2); background: var(--primary-soft); } .sub-steps li.on span { background: var(--primary); color: #fff; }
.sub-steps li.done { color: #86EFAC; } .sub-steps li.done span { background: var(--success-soft); color: #86EFAC; }
.sub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.sub-main { display: flex; flex-direction: column; gap: 16px; }
.sub-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.sub-card { padding: 22px; }
.sub-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.sub-card-head h2 { font-size: 18px; }
.sub-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-2); font-weight: 700; border: 1px solid rgba(139, 92, 246, .25); }
.plan-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pp { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s, background .15s; }
.pp:hover { border-color: var(--line-2); transform: translateY(-1px); }
.pp.on { border-color: var(--plan); background: color-mix(in srgb, var(--plan) 10%, var(--bg)); box-shadow: 0 0 0 1px var(--plan) inset; }
.pp-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--plan); background: color-mix(in srgb, var(--plan) 16%, transparent); margin-bottom: 4px; }
.pp-ico .lucide { width: 17px; height: 17px; }
.pp-price { font-weight: 650; font-size: 15px; } .pp-price small { font-weight: 400; color: var(--text-3); margin-left: 3px; }
.pp-flag { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--primary); color: #fff; }
.sub-total { text-align: right; } .sub-total b { display: block; font-size: 26px; letter-spacing: -0.02em; }
.pay-box { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(139, 92, 246, .03)); border: 1px solid rgba(139, 92, 246, .28); }
.pay-val { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; }
.pay-val.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.how-pay { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; margin-top: 18px; align-items: center; }
.how-pay ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.how-pay ol b { color: var(--text); }
.pay-mock { position: relative; height: 170px; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #4b3a26, #2a3b2a 55%, #1f2d3a); border: 1px solid var(--line); }
.pm-notif { position: absolute; left: 10px; bottom: 12px; width: 150px; padding: 8px 9px; border-radius: 8px; background: rgba(12, 12, 18, .85); border-top: 2px solid #ef4444; font-size: 9.5px; line-height: 1.35; color: #e5e7eb; }
.pm-notif b { display: block; font-size: 10px; margin-bottom: 2px; } .pm-notif i { color: #4ade80; font-style: normal; font-weight: 600; }
.pm-phone { position: absolute; right: 12px; top: 12px; bottom: -20px; width: 80px; border-radius: 14px; border: 3px solid #111; background: linear-gradient(180deg, #a78bfa, #f0abfc 60%, #fbcfe8); display: flex; flex-direction: column; align-items: center; padding-top: 18px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.pm-time { font-size: 20px; font-weight: 700; } .pm-date { font-size: 8px; text-align: center; padding: 0 4px; }
.sub-drop { display: grid; place-items: center; min-height: 170px; border-radius: 14px; overflow: hidden; }
.sub-drop.has { padding: 0; min-height: 0; } .sub-drop.has img { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #000; }
.sub-reading { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--text-2); font-size: 13px; }
.chk-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.chk { display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.chk > .lucide { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.chk div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .chk span { font-size: 12.5px; color: var(--text-3); overflow-wrap: anywhere; }
.chk.ok { border-color: rgba(34, 197, 94, .3); } .chk.ok > .lucide { color: var(--success); }
.chk.ko { border-color: rgba(245, 158, 11, .3); } .chk.ko > .lucide { color: var(--warning); }
.chk.na > .lucide { color: var(--text-3); }
.sub-crops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sub-crops figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.sub-crops img { display: block; width: 100%; max-height: 90px; object-fit: contain; }
.sub-crops figcaption { font-size: 11px; color: var(--text-3); background: var(--bg-2); padding: 4px 8px; }
.sub-result { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px; border: 1px solid var(--line); }
.sub-result > .lucide { width: 28px; height: 28px; flex: 0 0 auto; }
.sub-result > div { flex: 1; } .sub-result h3 { margin-bottom: 4px; } .sub-result p { color: var(--text-2); }
.sub-result.green { background: var(--success-soft); border-color: rgba(34, 197, 94, .3); } .sub-result.green > .lucide { color: var(--success); }
.sub-result.amber { background: var(--warning-soft); border-color: rgba(245, 158, 11, .3); } .sub-result.amber > .lucide { color: var(--warning); }
.sub-result.red { background: var(--danger-soft); border-color: rgba(239, 68, 68, .3); } .sub-result.red > .lucide { color: var(--danger); }
.sub-sum { padding: 18px; }
.sub-sum .plan-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--plan); background: color-mix(in srgb, var(--plan) 16%, transparent); }
.sub-verif { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.sub-verif ul { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.sub-verif li { display: flex; gap: 8px; align-items: center; } .sub-verif li .lucide { color: var(--success); }
.sub-login { max-width: 520px; margin: 40px auto; text-align: center; }
.sub-login-ico { width: 54px; height: 54px; border-radius: 16px; display: inline-grid; place-items: center; background: var(--primary-soft); color: var(--primary-2); margin-bottom: 12px; }
.sub-create { margin-bottom: 20px; border-color: rgba(34, 197, 94, .35); background: linear-gradient(180deg, rgba(34, 197, 94, .06), transparent 40%), var(--bg-2); }
.sub-create .sub-num { background: var(--success-soft); color: #86EFAC; border-color: rgba(34, 197, 94, .3); }
.sub-create-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
.co-preview { align-self: start; }
.co-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.co-banner { align-self: stretch; height: 70px; margin: 0 -16px 10px; background: linear-gradient(135deg, var(--acc), #13131F); }
.co-card .logo-box { margin-top: -42px; border: 4px solid var(--bg); margin-bottom: 6px; }
@media (max-width: 1000px) { .sub-grid, .sub-create-grid { grid-template-columns: minmax(0, 1fr); } .sub-side { position: static; } .plan-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .how-pay, .pay-box { grid-template-columns: minmax(0, 1fr); } .sub-head h1 { font-size: 24px; } .pay-val { font-size: 19px; } .sub-crops { grid-template-columns: 1fr; } }
.create-co, .renew-band { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(139, 92, 246, .3); background: linear-gradient(120deg, rgba(139, 92, 246, .16), rgba(168, 85, 247, .04)); color: var(--text); }
.create-co > div, .renew-band > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.create-co:hover { border-color: var(--primary-2); }
.cc-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; }
@media (max-width: 640px) { .renew-band { flex-wrap: wrap; } .renew-band .btn { width: 100%; justify-content: center; } }
.proof-list { max-height: 640px; overflow-y: auto; }
.proof-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.proof-row:last-child { border-bottom: 0; }
.proof-row.pending { background: rgba(245, 158, 11, .04); }
.proof-img { flex: 0 0 auto; width: 120px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.proof-img img { width: 100%; height: 100%; object-fit: cover; }
.proof-crops { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.proof-crops img { height: 44px; max-width: 260px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.cc-ico.sm { width: 32px; height: 32px; border-radius: 9px; }
@media (max-width: 640px) { .proof-row { flex-wrap: wrap; } .proof-img { width: 100%; height: 140px; } }
.seg button { white-space: nowrap; } @media (max-width: 640px) { .seg { flex-wrap: wrap; } .sub-total { text-align: left; } }

/* ---------- Connexion : écran partagé + carte d'accès ---------- */
.auth-page { --acc: #8B5CF6; --acc-2: #C4B5FD; --acc-deep: #2A1858; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth-page[data-space="candidate"] { --acc: #6B78F5; --acc-2: #BAC2FF; --acc-deep: #1B2259; }
.auth-page[data-space="admin"] { --acc: #E5A332; --acc-2: #FBD99A; --acc-deep: #47300A; }
.auth-page .pub-nav { width: 100%; max-width: none; margin: 0; }
.auth-inner .btn { margin-top: 0; }
.auth-split { flex: 1; display: grid; grid-template-columns: minmax(380px, 520px) 1fr; min-height: 0; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 40px 48px; }
.auth-inner { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.auth-inner h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; margin: 10px 0 0; }
.auth-sub { margin: -6px 0 6px; color: var(--text-2); font-size: 14.5px; }
.auth-inner .alert { margin: 0; }
.auth-inner .sep-label { margin: 2px 0; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.auth-tabs a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 36px; border-radius: 9px; font-size: 13px; font-weight: 550; color: var(--text-3); transition: color .15s, background .15s; }
.auth-tabs a:hover { color: var(--text); }
.auth-tabs a.on { background: var(--bg-4); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 rgba(255,255,255,.04); }
.auth-tabs a.on .lucide { color: var(--acc); }
.auth-tabs a:focus-visible, .demo-chip:focus-visible, .pw-eye:focus-visible, .auth-alt:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.auth-inner .input.lg { height: 46px; font-size: 15px; }
.auth-inner .input:focus { border-color: color-mix(in srgb, var(--acc) 70%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
.auth-page[data-space="admin"] .auth-inner .btn.primary { background: var(--acc); border-color: var(--acc); color: #1A1204; }
.auth-page[data-space="admin"] .auth-inner .btn.primary:hover { background: #F0B34A; border-color: #F0B34A; }
.auth-inner .btn.lg { height: 46px; font-size: 15px; font-weight: 600; }
.pw-wrap .input { padding-right: 44px; }
.pw-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.pw-eye:hover { color: var(--text); background: var(--bg-4); }
.input-icon .pw-eye .lucide { position: static; transform: none; pointer-events: none; }
.pw-eye .eye-hide, .pw-eye.on .eye-show { display: none; }
.pw-eye.on .eye-hide { display: block; }
.caps-hint { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12.5px; color: var(--warning); }
.caps-hint[hidden] { display: none; }
.auth-note { display: flex; gap: 9px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.auth-note .lucide { flex: none; margin-top: 2px; color: var(--text-2); }
.auth-note a { color: var(--acc-2); font-weight: 550; }
.auth-note a:hover { text-decoration: underline; }
.auth-alt { font-size: 13.5px; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; align-self: flex-start; }
.auth-alt:hover { color: var(--text); }
.auth-page .demo-box { margin-top: 8px; border-style: dashed; padding: 12px; }
.demo-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.demo-chip b { font-size: 13px; font-weight: 600; color: var(--text); }
.demo-chip span { font-size: 11.5px; color: var(--text-3); }
.demo-chip:hover { border-color: color-mix(in srgb, var(--acc) 60%, transparent); background: var(--bg-3); }

/* colonne illustrée */
.auth-scene { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 48px;
  margin: 0 16px 16px 0; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 70% 20%, color-mix(in srgb, var(--acc) 24%, transparent), transparent 60%), linear-gradient(160deg, var(--acc-deep), #0E0E18 70%);
  transition: background .4s; }
.auth-map { position: absolute; inset: -10%; width: 120%; height: 120%; color: color-mix(in srgb, var(--acc-2) 16%, transparent); pointer-events: none;
  mask-image: radial-gradient(closest-side, #000 40%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.auth-stage { perspective: 1100px; position: relative; z-index: 1; }
.acard { --rx: 4deg; --ry: -10deg; --mx: 30%; position: relative; width: 380px; aspect-ratio: 1.586; padding: 22px 24px; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 88%, #fff 0%), color-mix(in srgb, var(--acc) 55%, #0B0B12) 55%, color-mix(in srgb, var(--acc) 30%, #0B0B12));
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--acc) 45%, transparent), 0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s var(--ease); animation: acard-in .8s var(--ease) both; }
.auth-scene:hover .acard { transition: transform .12s linear; }
.acard-sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(105deg, transparent calc(var(--mx) - 25%), rgba(255,255,255,.45) var(--mx), transparent calc(var(--mx) + 25%)),
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 7px); }
.acard-top { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.acard-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(11,11,18,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.acard-chip { margin-left: auto; width: 42px; height: 32px; border-radius: 7px;
  background: linear-gradient(135deg, #F7E3A8, #C9A24E 55%, #EBD08A); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
  background-image: linear-gradient(90deg, transparent 32%, rgba(0,0,0,.22) 33% 35%, transparent 36% 64%, rgba(0,0,0,.22) 65% 67%, transparent 68%), linear-gradient(transparent 46%, rgba(0,0,0,.22) 47% 53%, transparent 54%), linear-gradient(135deg, #F7E3A8, #C9A24E 55%, #EBD08A); }
.acard-kind { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.acard-kind .lucide { width: 20px; height: 20px; opacity: .85; }
.acard-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: auto 0 0; }
.acard-fields div:first-child { grid-column: 1 / -1; }
.acard-fields dt { font-size: 11px; color: rgba(255,255,255,.62); }
.acard-fields dd { margin: 0; font-size: 13.5px; font-weight: 600; }
.auth-perks { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; width: 380px; }
.auth-perks li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.perk-ico { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--acc-2); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.perk-ico .lucide { width: 16px; height: 16px; }
@keyframes acard-in { from { opacity: 0; transform: translateY(24px) rotateX(18deg) rotateY(-22deg); } }
@media (prefers-reduced-motion: reduce) { .acard { animation: none; transition: none; } }
@media (max-width: 1100px) { .acard, .auth-perks { width: 320px; } .acard { padding: 18px 20px; } .acard-kind { font-size: 17px; } }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-scene { display: none; }
  .auth-form { align-items: flex-start; padding: 20px 16px 40px; }
  .auth-inner h1 { font-size: 26px; }
}

/* ---------- Planning façon Perico News ---------- */
.pl-views { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.pl-views button { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--text-3); font-weight: 550; font-size: 13px; cursor: pointer; }
.pl-views button:hover { color: var(--text); }
.pl-views button.on { background: var(--bg-4); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.pl-views button.on .lucide { color: var(--primary-2); }
.pl-bar { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 14px; }
.pl-nav { display: flex; align-items: center; gap: 6px; }
.pl-date { position: relative; display: flex; align-items: center; cursor: pointer; padding: 4px 8px; border-radius: 8px; font-size: 15px; }
.pl-date:hover { background: var(--bg-3); }
.pl-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pl-date input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.pl-sum { display: flex; gap: 14px; font-size: 13px; color: var(--text-3); margin-right: auto; }
.pl-sum b { color: var(--text); font-weight: 650; }
.pl-sum .neg b { color: var(--danger); }
.pl-late { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 9px 12px; border-radius: 10px; font-size: 13px; color: #FCA5A5; background: var(--danger-soft); border: 1px solid rgba(239,68,68,.25); }
.pl-late .btn { margin-left: auto; }
.tab .tab-n { margin-left: 6px; font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--bg-4); color: var(--text-3); }
.tab.active .tab-n { color: var(--text); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 48px 16px; }
.empty-state .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-2); margin-bottom: 4px; }
.empty-state p { max-width: 46ch; margin: 0 0 8px; }

/* ligne du jour */
.dayline { display: flex; flex-direction: column; }
.slot-hour { display: grid; grid-template-columns: 64px 22px 1fr; align-items: center; margin: 14px 0 6px; font-size: 12px; font-weight: 650; color: var(--text-3); }
.slot-hour::after { content: ''; grid-column: 3; height: 1px; background: var(--line); }
.slot { display: grid; grid-template-columns: 64px 22px 1fr; align-items: stretch; outline: none; }
.slot-time { display: flex; flex-direction: column; align-items: flex-end; padding: 12px 0 0; }
.slot-time b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.slot-gap { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.slot-rail { position: relative; display: flex; justify-content: center; }
.slot-rail::before { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.slot-rail i { position: relative; margin-top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text-3); }
.slot.posted .slot-rail i { background: var(--success); border-color: var(--success); }
.slot.late .slot-rail i { border-color: var(--danger); background: var(--danger); }
.slot.next .slot-rail i { border-color: var(--primary-2); background: var(--primary-2); box-shadow: 0 0 0 4px var(--primary-soft); }
.slot-card { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.slot-card:hover, .slot:focus-visible .slot-card { border-color: var(--line-2); background: var(--bg-3); }
.slot.next .slot-card { border-color: var(--primary-line); background: linear-gradient(90deg, rgba(139,92,246,.10), var(--bg-2) 60%); }
.slot.late .slot-card { border-color: rgba(239,68,68,.35); }
.slot.posted .slot-card { opacity: .62; }
.slot.posted .slot-card:hover { opacity: 1; }
.slot-logo, .camp-logo { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.adv-ini { display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--primary-2); background: var(--primary-soft); }
.slot-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.slot-head { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.slot-title { font-size: 12.5px; color: var(--text-3); }
.slot-tag { color: var(--text-3); display: inline-flex; }
.slot-price { font-size: 12.5px; font-weight: 600; color: var(--success); white-space: nowrap; }
.slot-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slot-foot { display: flex; gap: 10px; font-size: 12px; }
.slot-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--success); }
.slot-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.btn.copied { background: var(--success); border-color: var(--success); color: #04150A; }
.slot-now { display: grid; grid-template-columns: 64px 22px 1fr; align-items: center; margin: 6px 0; font-size: 11.5px; font-weight: 650; color: var(--danger); }
.slot-now span { text-align: right; font-variant-numeric: tabular-nums; }
.slot-now i { justify-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.slot-now em { font-style: normal; display: flex; align-items: center; gap: 8px; }
.slot-now em::after { content: ''; flex: 1; height: 1px; background: rgba(239,68,68,.45); }

/* semaine */
button.wday-head { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; font: inherit; text-align: left; }
button.wday-head:hover { background: var(--bg-3); }
.wday-n { margin-left: auto; font-size: 11px; color: var(--text-3); }
.bc-logo { width: 18px; height: 18px; border-radius: 5px; font-size: 9px; }
.bc-logo .lucide { width: 11px; height: 11px; }

/* gestion */
.pl-search { width: 260px; max-width: 100%; }
.pl-gap { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--text-2); }
.pl-gap .input { width: 64px; height: 32px; }
.camps { display: flex; flex-direction: column; gap: 10px; }
.camp { display: grid; grid-template-columns: auto 1fr 240px; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s; }
.camp:hover { border-color: var(--line-2); }
.camp.paused, .camp.ended { background: transparent; }
.camp.ended .camp-main, .camp.ended .camp-logo { opacity: .6; }
.camp-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.camp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; }
.camp-text { margin: 0; font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.camp-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-3); }
.camp-meta span { display: inline-flex; align-items: center; gap: 5px; }
.camp-side { display: flex; flex-direction: column; gap: 10px; }
.camp-prog .bar { height: 6px; border-radius: 99px; background: var(--bg-4); overflow: hidden; margin-top: 6px; }
.camp-prog .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.camp-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* éditeur d'annonce */
.cmp-form { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.cmp-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cmp-when { padding-left: 22px; border-left: 1px solid var(--line); }
.adv-pick { display: flex; flex-direction: column; gap: 8px; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; max-height: 214px; overflow-y: auto; padding: 2px; }
.adv { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; text-align: left; color: var(--text); min-width: 0; }
.adv:hover { border-color: var(--line-2); background: var(--bg-3); }
.adv.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.adv > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.adv b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv small { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-logo { flex: none; width: 30px; height: 30px; border-radius: 8px; }
.adv-free .adv-logo { background: var(--bg-4); }
.adv-other { margin-top: 8px; }
.freq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.freq { position: relative; }
.freq input { position: absolute; opacity: 0; }
.freq span { display: flex; align-items: center; justify-content: center; height: 34px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 12.5px; font-weight: 550; color: var(--text-2); cursor: pointer; text-align: center; }
.freq span:first-letter { text-transform: uppercase; }
.freq input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.freq input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.quick-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: -4px; }
.cmp-sum { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--text-2); min-height: 64px; }
.cmp-sum-n { display: flex; flex-direction: column; align-items: center; min-width: 58px; }
.cmp-sum-n b { font-size: 28px; line-height: 1; font-weight: 750; color: var(--text); letter-spacing: -0.02em; }
.cmp-sum-n span { font-size: 11.5px; color: var(--text-3); }
.cmp-sum .lucide { vertical-align: -2px; margin-right: 4px; }

@media (max-width: 900px) {
  .cmp-form { grid-template-columns: 1fr; }
  .cmp-when { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid var(--line); }
  .camp { grid-template-columns: auto 1fr; }
  .camp-side { grid-column: 1 / -1; }
  .pl-gap { margin-left: 0; }
  .pl-search { width: 100%; }
}
@media (max-width: 640px) {
  .pl-views { display: flex; } .pl-views button { flex: 1; justify-content: center; padding: 0 6px; font-size: 12.5px; }
  .slot, .slot-hour, .slot-now { grid-template-columns: 46px 16px 1fr; }
  .slot-time b { font-size: 14px; }
  .slot-card { flex-wrap: wrap; padding: 10px; gap: 10px; }
  .slot-logo { width: 32px; height: 32px; }
  .slot-title, .slot-head .slot-tag { display: none; }
  .slot-actions { width: 100%; } .slot-actions .btn:first-child { flex: 1; }
  .pl-sum { width: 100%; order: 3; }
}

/* ---------- Vue jour façon Perico News ---------- */
.pn-filters { padding: 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.pn-filters .input-icon .input { height: 40px; }
.pn-chips, .pn-opts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pn-opts { padding-top: 10px; border-top: 1px solid var(--line); }
.pn-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); font-size: 12.5px; font-weight: 550; cursor: pointer; }
.pn-chip b { font-weight: 650; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pn-chip:hover { color: var(--text); border-color: var(--text-3); }
.pn-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pn-chip.on b { color: rgba(255,255,255,.8); }
.pn-chip.warn:not(.on) b { color: var(--warning); }
.pn-chip.sm { height: 28px; padding: 0 11px; font-size: 12px; }
.pn-chip.sm.on { background: var(--primary-soft); border-color: var(--primary-line); color: var(--text); }
.pn-list { display: flex; flex-direction: column; gap: 10px; }
.pn-hour { font-size: 12px; font-weight: 650; color: var(--text-3); margin: 8px 0 -2px 4px; }
.pn-list .slot-now { grid-template-columns: 54px 22px 1fr; }
.pn { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--line-2); }
.pn.next { border-color: var(--primary-line); border-left-color: var(--primary-2); box-shadow: 0 0 0 1px var(--primary-line); }
.pn.live { border-left-color: var(--primary-2); background: linear-gradient(90deg, rgba(139,92,246,.10), var(--bg-2) 50%); }
.pn.missed { border-left-color: var(--warning); }
.pn.done { border-color: rgba(34,197,94,.28); border-left-color: var(--success); background: linear-gradient(90deg, rgba(34,197,94,.08), var(--bg-2) 55%); }
.pn-time { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pn-time b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pn-time small { font-size: 11.5px; color: var(--text-3); }
.pn-st { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--bg-4); color: var(--text-3); line-height: 1.3; }
.pn-st.missed { background: var(--warning-soft); color: #FCD34D; }
.pn-st.done { background: transparent; padding-left: 0; color: var(--success); }
.pn-st.live { background: var(--primary-soft); color: #DDD6FE; }
.pn-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pn-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pn-logo { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.pn-who { min-width: 0; display: flex; flex-direction: column; flex: 1; }
.pn-who b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-3); }
.pn-kind em { font-style: normal; color: var(--success); font-weight: 600; margin-left: 6px; }
.pn-badge { flex: none; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text-2); }
.pn-badge.missed { color: var(--text-3); }
.pn-badge.done { border-color: rgba(34,197,94,.4); background: var(--success-soft); color: #86EFAC; }
.pn-badge.live { border-color: var(--primary-line); background: var(--primary-soft); color: #DDD6FE; }
.pn-text { padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.pn-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pn-confirm { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 13px 0 9px; border-radius: 9px; border: 1px solid var(--primary-line); background: var(--primary-soft); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.pn-confirm:hover:not([disabled]) { background: rgba(139,92,246,.24); }
.pn-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid currentColor; display: grid; place-items: center; opacity: .8; }
.pn-box .lucide { width: 13px; height: 13px; }
.pn-confirm.on { border-color: rgba(34,197,94,.4); background: var(--success-soft); color: #86EFAC; }
.pn-confirm.on .pn-box { background: var(--success); border-color: var(--success); color: #04150A; opacity: 1; }
.pn-confirm[disabled] { cursor: default; }
.pn-by { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid rgba(34,197,94,.35); color: #86EFAC; }
.pn-by.dim { border-color: var(--line-2); color: var(--text-3); }
.pn-proof { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.pn-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.pn-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: 10px; border: 1.5px dashed var(--line-2); font-size: 12.5px; color: var(--text-3); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.pn-drop:hover, .pn-drop:focus, .pn-drop.over { border-color: var(--primary); background: var(--primary-soft); color: var(--text-2); outline: none; }
.pn-drop.busy { opacity: .6; pointer-events: none; }
.pn-shot { display: flex; align-items: center; gap: 12px; }
.pn-shot img { width: 160px; max-height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); display: block; }
.pn-dir summary { cursor: pointer; font-size: 12px; color: var(--text-3); width: fit-content; list-style: none; display: flex; align-items: center; gap: 6px; }
.pn-dir summary::before { content: '▸'; font-size: 10px; transition: transform .15s; }
.pn-dir[open] summary::before { transform: rotate(90deg); }
.pn-dir summary:hover { color: var(--text-2); }
.pn-dir-body { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* vue compacte */
.pn-list.compact { gap: 6px; }
.pn-list.compact .pn { padding: 10px 14px; gap: 12px; grid-template-columns: 70px 1fr; }
.pn-list.compact .pn-time b { font-size: 17px; }
.pn-list.compact .pn-time small, .pn-list.compact .pn-dir, .pn-list.compact .pn-kind { display: none; }
.pn-list.compact .pn-main { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
.pn-list.compact .pn-head { flex: 0 1 220px; }
.pn-list.compact .pn-text { flex: 1 1 260px; padding: 6px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-list.compact .pn-badge { display: none; }
@media (max-width: 640px) {
  .pn { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .pn-time { flex-direction: row; align-items: center; gap: 10px; }
  .pn-time b { font-size: 20px; }
  .pn-head .pn-badge { display: none; }
  .pn-actions .pn-confirm { flex: 1; justify-content: center; }
  .pn-list.compact .pn { grid-template-columns: 1fr; }
  .pn-shot img { width: 120px; }
}

/* ---------- Planning : rotation, mode de diffusion, récapitulatif, réservations, service ---------- */
.tpl-picks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tpl-pick { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px dashed var(--line-2); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 550; cursor: pointer; }
.tpl-pick:hover { border-style: solid; border-color: var(--primary-line); color: var(--text); background: var(--primary-soft); }
.tpl-mine { width: auto; height: 30px; padding: 0 10px; font-size: 12.5px; }
.txt-list { display: flex; flex-direction: column; gap: 8px; }
.txt-item { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 8px 8px 6px; }
.txt-item:focus-within { border-color: var(--primary-line); }
.txt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--text-2); }
.txt-head b { font-weight: 650; }
.txt-head [data-tc] { margin-left: auto; }
.txt-item textarea { border: 0; background: transparent; padding: 2px 4px; resize: vertical; min-height: 60px; }
.txt-item textarea:focus { box-shadow: none; }
.mode-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mode-seg .freq span { height: 38px; gap: 6px; }
.mode-note { grid-column: 1 / -1; }
.mode-note span { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--primary-soft); border: 1px solid var(--primary-line); font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.recap { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; }
.recap-title { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-weight: 650; color: var(--text); }
.recap-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); color: var(--text-3); }
.recap-row:last-of-type { border-bottom: 0; }
.recap-row b { color: var(--text); font-weight: 600; text-align: right; }
.recap-row.bad b { color: var(--danger); }
.recap-row.total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line-2); border-bottom: 0; }
.recap-row.total b { color: var(--success); font-size: 15px; }
.recap p { margin: 8px 0 0; display: flex; gap: 6px; align-items: center; }
.warn-t { color: var(--warning); }
.camp-rot { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11.5px; color: var(--primary-2, #A855F7); }
.pl-cut { margin-left: 4px; }
.pl-duty { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 9px 12px; border-radius: 10px; font-size: 13px; color: #FDE68A; background: var(--warning-soft); border: 1px solid rgba(245,158,11,.25); }
.pl-duty .btn { margin-left: auto; }
.pl-duty.on { color: #86EFAC; background: var(--success-soft); border-color: rgba(34,197,94,.25); }
.pn-res { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 550; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line-2); }
.pn-res.mine { color: var(--text); background: var(--primary-soft); border-color: var(--primary-line); }
.pn-res:not(:has(.pn-res-x)) { padding-right: 10px; }
.pn-res-x { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); cursor: pointer; }
.pn-res-x:hover { background: rgba(255,255,255,.08); color: var(--text); }
.pn-confirm.locked { border-style: dashed; border-color: var(--line-2); background: transparent; color: var(--text-3); cursor: not-allowed; font-weight: 550; }
.pn-confirm.locked .pn-box { border-color: var(--line-2); color: var(--text-3); }
@media (max-width: 640px) { .mode-seg { grid-template-columns: 1fr; } }

/* ---------- Formulaire d'annonce : étapes, annonceur replié, pied récapitulatif ---------- */
.cmp-form .cmp-col { gap: 12px; }
.cmp-step { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cmp-col > .cmp-step:first-child { margin-top: 0; }
.cmp-step h4 { margin: 0; font-size: 14.5px; font-weight: 650; color: var(--text); }
.cmp-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11.5px; font-weight: 700; color: var(--primary-2); background: var(--primary-soft); border: 1px solid var(--primary-line); flex: none; }
.adv-sel { display: flex; align-items: center; gap: 11px; padding: 9px 10px 9px 11px; border-radius: 12px; border: 1px solid var(--primary-line); background: var(--primary-soft); }
.adv-sel > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.adv-sel b { font-size: 14px; font-weight: 650; }
.adv-sel small { font-size: 12px; color: var(--text-3); }
.adv-other:not(.hidden) { display: flex; gap: 8px; }
.adv-other .input { flex: 1; }
.adv-none { grid-column: 1 / -1; margin: 4px 2px; }
.tpl-lbl { font-size: 12.5px; color: var(--text-3); margin-right: 2px; }
.txt-add { align-self: flex-start; color: var(--text-2); }
.day-quick { display: inline-flex; gap: 2px; margin-left: 4px; }
.cmp-more { border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015); }
.cmp-more summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); list-style: none; }
.cmp-more summary::-webkit-details-marker { display: none; }
.cmp-more summary .dim { font-weight: 400; font-size: 12px; margin-left: auto; }
.cmp-more[open] summary { border-bottom: 1px solid var(--line); color: var(--text); }
.cmp-more-body { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.recap-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.recap-big > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.18); }
.recap-big b { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; color: var(--text); line-height: 1.15; }
.recap-big b.pos { color: var(--success); }
.recap-big span { font-size: 11.5px; color: var(--text-3); }
.recap-sent { display: block !important; margin: 0 0 6px !important; color: var(--text-2); line-height: 1.5; }
.recap-sent b { color: var(--text); }
.cmp-foot { display: flex; align-items: center; min-width: 0; font-size: 13px; }
.cmp-ok { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cmp-ok b { color: var(--text); font-weight: 650; }
.cmp-ok em { font-style: normal; color: var(--success); font-weight: 650; }
.cmp-todo { display: inline-flex; align-items: center; gap: 7px; color: var(--text-3); }
.modal-foot .btn.primary[disabled] { opacity: .45; cursor: not-allowed; }
/* une modale ouverte : les notifications passent en haut pour ne pas cacher ses boutons */
body:has(.overlay) .toasts { bottom: auto; top: 20px; }
@media (max-width: 640px) { .cmp-foot { flex-basis: 100%; } .cmp-more summary .dim { display: none; } .recap-big b { font-size: 18px; } }
.adv-sel .logo-box { width: 38px; height: 38px; flex: none; border-radius: 10px; }
.tpl-picks .tpl-mine { width: auto; flex: 0 0 auto; max-width: 170px; }
.tpl-pick { padding: 0 9px; }

/* ---------- Accueil : hero avec démo interactive, fonctionnalités par public, deux parcours ---------- */
.hero3 { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 72px 0 40px; }
.hero3 .hero-copy { gap: 22px; }
.hero3 .hero-copy h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 760; max-width: 15em; margin: 0; text-wrap: balance; }
.hero3 .hero-copy > p { font-size: 17px; max-width: 34em; margin: 0; text-wrap: pretty; }
.hero-checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.hero-checks li { display: flex; align-items: center; gap: 9px; }
.hero-checks .lucide { color: var(--success); }

.demo { position: relative; display: flex; flex-direction: column; gap: 12px; }
.demo::before { content: ''; position: absolute; inset: 10% -6% -4%; background: radial-gradient(closest-side, rgba(139,92,246,.28), transparent 72%); filter: blur(24px); z-index: -1; }
.dm-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.dm-tab { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.dm-tab:hover { color: var(--text); }
.dm-tab.on { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(139,92,246,.35); }
.dm-tab:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.dm-win { border-radius: 16px; border: 1px solid rgba(255,255,255,.09); background: linear-gradient(180deg, #171726, #101019); box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; min-height: 352px; }
.dm-win.swap .dm-body { animation: dmIn .22s var(--ease); }
@keyframes dmIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dm-win-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.dm-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a3b; }
.dm-win-bar span { margin-left: 8px; color: var(--text-2); font-weight: 550; }
.dm-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.dm-shot { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 12px; border: 1px dashed var(--line-2); background: repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 8px, transparent 8px 16px); }
.dm-notif { display: flex; align-items: center; gap: 8px; align-self: flex-start; padding: 9px 12px; border-radius: 10px; background: rgba(10,10,16,.9); border: 1px solid rgba(255,255,255,.08); font-size: 13px; color: var(--text-2); }
.dm-notif b { color: var(--text); margin-right: 2px; }
.dm-notif em { font-style: normal; color: #4ade80; font-weight: 700; }
.dm-shot small { font-size: 11.5px; color: var(--text-3); }
.dm-arrow { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--primary-2); font-weight: 600; padding-left: 4px; }
.dm-rows { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.dm-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 13px; color: var(--text-3); }
.dm-rows > div + div { border-top: 1px solid var(--line); }
.dm-rows b { color: var(--text); font-weight: 600; }
.dm-rows .ok b { color: #4ade80; }
.dm-rows .total { background: var(--primary-soft); }
.dm-rows .total span { color: var(--text); font-weight: 600; } .dm-rows .total b { font-size: 15px; }
.dm-ad { display: grid; grid-template-columns: 86px 1fr; gap: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--primary); background: rgba(139,92,246,.05); }
.dm-ad-time b { display: block; font-size: 22px; letter-spacing: -.02em; }
.dm-ad-time span { display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 600; color: #DDD6FE; background: var(--primary-soft); }
.dm-ad-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dm-ad-head { display: flex; align-items: center; gap: 10px; }
.dm-ad-head small { display: block; font-size: 11px; color: var(--text-3); }
.dm-ad-head b { font-size: 14px; }
.dm-logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-size: 11.5px; font-weight: 700; color: #FCD34D; background: rgba(245,158,11,.14); flex: none; }
.dm-logo.v { color: #DDD6FE; background: var(--primary-soft); }
.dm-ad-main p { margin: 0; padding: 10px 12px; border-radius: 9px; background: rgba(0,0,0,.28); font-size: 13px; line-height: 1.5; color: var(--text); }
.dm-ad-act { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-btn, .dm-res { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--text-2); }
.dm-btn.pri { border-color: var(--primary-line); background: var(--primary-soft); color: var(--text); }
.dm-btn.pri i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; opacity: .8; }
.dm-res { border-color: var(--primary-line); color: #DDD6FE; }
.dm-next { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); }
.dm-next span { margin-left: auto; font-size: 11.5px; }
.dm-pay-who { display: flex; align-items: center; gap: 10px; }
.dm-pay-who b { display: block; font-size: 14px; } .dm-pay-who small { font-size: 12px; color: var(--text-3); }
.dm-cap { margin: 0; padding-left: 4px; }

.section-title.lead { font-size: clamp(26px, 3vw, 34px); max-width: 22em; text-wrap: balance; }
.lead-sub { max-width: 38em; margin: 0; font-size: 15.5px; line-height: 1.6; }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.aud { padding: 24px 28px 8px 0; }
.aud + .aud { padding-left: 28px; border-left: 1px solid var(--line); }
.aud h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13.5px; font-weight: 650; color: var(--primary-2); }
.aud ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.aud li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.aud li > .lucide { width: 20px; height: 20px; color: var(--text-2); margin-top: 1px; }
.aud li b { display: block; font-size: 15px; margin-bottom: 3px; }
.aud li p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.path { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.path:first-child { border-color: var(--primary-line); background: radial-gradient(130% 120% at 0% 0%, rgba(139,92,246,.14), transparent 60%), var(--bg-2); }
.path-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: #C4B5FD; }
.path h3 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.01em; }
.path p { margin: 0 0 6px; color: var(--text-2); font-size: 14px; line-height: 1.6; max-width: 34em; }
.pricing-section .lead-sub { margin-bottom: 8px; }
@media (max-width: 960px) {
  .hero3 { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .aud-grid { grid-template-columns: 1fr; border-top: 0; }
  .aud, .aud + .aud { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .paths { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .dm-ad { grid-template-columns: 1fr; } .dm-tab { padding: 0 10px; } .dm-win { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .dm-win.swap .dm-body { animation: none; } }
.compare-wrap { max-width: 100%; min-width: 0; }
.compare { max-width: 100%; overflow-x: auto; }
.landing { overflow-x: clip; }

/* ---------- Accueil : pipeline « une capture », frise, parcours ---------- */
.pipe-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; }
.pipe-head .section-title { margin: 0; }
.pipe { list-style: none; margin: 34px 0 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 14px; }
.pipe::before { content: ''; position: absolute; left: 19px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--primary), var(--primary-2) 60%, var(--success)); opacity: .55; }
.pipe-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 18px 20px 18px 0; border-radius: 18px; }
.pipe-row:nth-child(2) { background: linear-gradient(90deg, transparent, rgba(139,92,246,.06)); }
.pipe-txt { display: flex; gap: 18px; align-items: flex-start; }
.pipe-n { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; font-weight: 750; color: #fff; background: var(--primary); box-shadow: 0 0 0 6px var(--bg), 0 8px 22px rgba(139,92,246,.4); }
.pipe-n.ok { background: var(--success); box-shadow: 0 0 0 6px var(--bg), 0 8px 22px rgba(34,197,94,.3); }
.pipe-txt b { display: block; font-size: 17px; margin: 8px 0 4px; letter-spacing: -.01em; }
.pipe-txt p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; max-width: 30em; }
.pipe-vis { min-width: 0; }
.pv-shot { position: relative; overflow: hidden; padding: 22px; border-radius: 14px; border: 1px dashed var(--line-2); background: repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 8px, transparent 8px 16px); }
.pv-notif { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 11px; background: rgba(10,10,16,.92); border: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: var(--text-2); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.pv-notif b { color: var(--text); } .pv-notif em { font-style: normal; color: #4ade80; font-weight: 700; }
.pv-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary-2), transparent); box-shadow: 0 0 14px var(--primary-2); animation: pvScan 3.2s ease-in-out infinite; }
@keyframes pvScan { 0%, 100% { top: 8%; opacity: 0; } 15%, 85% { opacity: 1; } 50% { top: 88%; } }
.pv-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-fields span { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--primary-line); }
.pv-fields small { font-size: 11.5px; color: var(--text-3); } .pv-fields b { font-size: 15px; }
.pv-out { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid rgba(34,197,94,.28); background: linear-gradient(180deg, rgba(34,197,94,.08), rgba(34,197,94,.02)); overflow: hidden; }
.pv-out > div { display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-size: 14px; color: var(--text-2); }
.pv-out > div + div { border-top: 1px solid rgba(34,197,94,.18); }
.pv-out .lucide { color: #4ade80; } .pv-out b { margin-left: auto; color: #4ade80; font-size: 15px; }

.tl { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.tl::before { content: ''; position: absolute; top: 19px; left: 20px; right: calc(33.333% - 20px); height: 2px; background: repeating-linear-gradient(90deg, var(--primary-line) 0 8px, transparent 8px 14px); }
.tl li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tl-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 750; color: #fff; background: var(--primary); box-shadow: 0 0 0 6px var(--bg); position: relative; z-index: 1; }
.tl-dot.ok { background: var(--success); }
.tl-who { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--primary-2); }
.tl b { font-size: 17px; letter-spacing: -.01em; }
.tl p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; max-width: 26em; }
.path-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.path-list li { display: flex; align-items: center; gap: 8px; } .path-list .lucide { color: var(--success); }

/* ---------- Formules : cartes alignées, conseil selon la taille de l'équipe ---------- */
.price-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; }
.plan-fit { display: grid; grid-template-columns: auto 220px; align-items: center; gap: 6px 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.plan-fit label { font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.plan-fit label b { color: var(--text); }
.plan-fit-out { grid-column: 1 / -1; font-size: 12.5px; color: var(--primary-2); font-weight: 600; }
.plan-fit input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--primary) var(--p, 20%), rgba(255,255,255,.1) var(--p, 20%)); outline: none; }
.plan-fit input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--primary); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.plan-fit input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 4px solid var(--primary); cursor: pointer; }
.plan-fit input[type=range]:focus-visible { box-shadow: 0 0 0 3px var(--primary-line); }
.pricing { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { gap: 14px; padding: 26px 22px 24px; }
.plan:hover { transform: none; }
.plan.popular, .plan.popular:hover { transform: none; }
.plan-tag { margin: 2px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.plan-price { flex-direction: column; align-items: flex-start; gap: 0; margin: 2px 0 0; }
.plan-price b { font-size: 30px; line-height: 1.1; }
.plan-price span { font-size: 12.5px; color: var(--text-3); }
.plan-chips span { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.plan-cta { justify-content: space-between; height: 42px; padding: 0 16px; }
.plan-inherit { margin-top: 2px; }
.plan ul { margin: 0; gap: 10px; }
.plan-flag.fit { display: none; top: 14px; right: 14px; left: auto; transform: none; padding: 3px 9px; font-size: 10.5px; background: var(--success); color: #04150A; box-shadow: none; }
.plan.fit { box-shadow: 0 0 0 2px var(--plan), 0 22px 60px rgba(0,0,0,.45); border-color: transparent; }
.plan.fit .plan-flag.fit { display: inline-flex; }
.plan.fit .plan-top { padding-right: 116px; }
.compare table thead th { position: sticky; top: 0; background: var(--bg-2); z-index: 1; }
.compare tbody tr:hover td { background: rgba(255,255,255,.02); }
.compare td:first-child { font-weight: 500; }
@media (max-width: 1180px) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .pipe-head { grid-template-columns: 1fr; }
  .pipe-row { grid-template-columns: 1fr; gap: 14px; padding: 14px 0; }
  .pipe-vis { padding-left: 58px; }
  .tl { grid-template-columns: 1fr; gap: 22px; }
  .tl::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--primary-line) 0 8px, transparent 8px 14px); }
  .tl li { padding-left: 58px; } .tl-dot { position: absolute; left: 0; top: 0; } .tl-who { margin-top: 0; }
}
@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; } .plan-fit { grid-template-columns: 1fr; width: 100%; } .pv-fields { grid-template-columns: 1fr 1fr; } .pipe-vis { padding-left: 0; } }
@media (prefers-reduced-motion: reduce) { .pv-scan { animation: none; opacity: 0; } }
.plan .plan-cta { margin-top: 2px; }
@media (max-width: 640px) {
  .pipe::before { display: none; }
  .pipe-row:nth-child(2) { background: none; }
  .pv-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pv-fields span { padding: 9px 10px; } .pv-fields b { font-size: 13px; }
  .pv-shot { padding: 14px; }
}
.adv-cats { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.adv-cat { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 12px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.adv-cat b { font-size: 11px; color: var(--text-3); font-weight: 600; }
.adv-cat:hover { color: var(--text); border-color: var(--line-2); }
.adv-cat.on { background: var(--primary-soft); border-color: var(--primary-line); color: var(--text); }
.adv-cat.on b { color: var(--primary-2); }
.adv-group { grid-column: 1 / -1; margin: 6px 2px 0; font-size: 11.5px; font-weight: 650; color: var(--text-3); }
.adv-group:first-child { margin-top: 0; }
.adv-city { background: var(--bg-4, rgba(255,255,255,.05)); color: var(--text-2); display: grid; place-items: center; }
.adv-city .lucide { width: 15px; height: 15px; }
.adv-grid { max-height: 260px; }
.adv-cats { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }
.adv-cats::-webkit-scrollbar { display: none; }

/* ---------- Synchronisation en direct ---------- */
.live-snap { position: absolute; top: 0; left: 0; width: 100%; z-index: 60; background: var(--bg); pointer-events: auto; }
.live-quiet .content, .live-quiet .content * { animation: none !important; }
.live-pill { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 70; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 10px 9px 14px; border-radius: 999px; border: 1px solid rgba(139, 92, 246, .45); background: rgba(22, 20, 36, .96); color: var(--text);
  font: inherit; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); cursor: pointer; animation: livePill .25s var(--ease); }
.live-pill b { background: var(--violet, #8B5CF6); color: #fff; border-radius: 999px; padding: 4px 11px; font-weight: 600; }
.live-pill:hover b { background: #A855F7; }
.live-pill:focus-visible { outline: 2px solid #A855F7; outline-offset: 2px; }
@keyframes livePill { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (max-width: 760px) { .live-pill { bottom: 84px; } }
@media (prefers-reduced-motion: reduce) { .live-pill { animation: none; } }

/* ---------- Présence des collègues ---------- */
.presence { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pr-stack { display: inline-flex; align-items: center; }
.pr-stack .pr-av + .pr-av { margin-left: -7px; }
.pr-av { position: relative; display: inline-flex; flex-shrink: 0; }
.pr-av .avatar { width: 24px; height: 24px; border-radius: 50%; font-size: 9.5px; box-shadow: 0 0 0 2px var(--bg); }
.pr-av.on::after, .pr-mark::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 2px var(--bg); }
.pr-here { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 340px; padding: 3px 11px 3px 4px; border-radius: 999px;
  background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .32); color: #DDD6FE; font-size: 12.5px; animation: prIn .3s var(--ease); }
.pr-here-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px 0 6px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; transition: border-color .15s, color .15s; }
.pr-btn > .ic-sm { margin-left: 4px; }
.pr-btn:hover { border-color: rgba(139, 92, 246, .5); color: var(--text); }
.pr-btn:focus-visible { outline: 2px solid #A855F7; outline-offset: 2px; }
.pr-count { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-count i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
.pr-dd { width: 310px; max-width: calc(100vw - 16px); }
.pr-head { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px 4px; font-size: 12.5px; }
.pr-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; }
.pr-row:hover { background: rgba(255, 255, 255, .035); }
.pr-row .pr-av .avatar { width: 30px; height: 30px; font-size: 11px; box-shadow: 0 0 0 2px var(--bg-3); }
.pr-row .pr-av.on::after { box-shadow: 0 0 0 2px var(--bg-3); }
.pr-row b { display: block; }
.pr-foot { display: flex; align-items: center; gap: 7px; margin: 6px 0 0; padding: 9px 10px 4px; border-top: 1px solid var(--line); }
.pr-legend { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; flex-shrink: 0; }
.pr-mark { position: relative; display: inline-flex; }
.pr-mark::after { display: none; right: -2px; bottom: -2px; width: 10px; height: 10px; box-shadow: 0 0 0 2px var(--bg-2); }
@keyframes prIn { from { opacity: 0; transform: translateY(-3px); } }
@media (max-width: 1180px) { .pr-here-txt { display: none; } .pr-here { padding-right: 4px; } }
@media (max-width: 640px) { .pr-btn .pr-stack { display: none; } .pr-btn > .ic-sm { display: inline-block; } .presence { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .pr-here { animation: none; } }
