/* ───────── Tokens ───────── */
/* ───────── Tokens — charte Nopillo (Notion « Charte graphique & logos ») ───────── */
:root {
  color-scheme: light;
  --brand: #5747FF;          /* Indigo — couleur principale */
  --brand-dark: #4033DB;     /* Indigo foncé */
  --brand-deep: #180363;     /* Indigo profond (textes forts, fonds sombres) */
  --lavender: #DEDAFF;       /* Lavande */
  --lavender-2: #CDBDFF;
  --mint: #CEFDD8;           /* Menthe */
  --mint-2: #ADEFC5;
  --green: #02B875;          /* Accent vert */
  --coral: #F45B69;          /* Accent corail */
  --accent: var(--coral);
  --bg: #F6F6FE;             /* fond lavande très clair (site nopillo) */
  --surface: #ffffff;
  --surface-2: #F3F2FD;
  --border: #E6E3F7;
  --text: #180363;
  --text-2: #69608A;
  --text-3: #9A93B8;
  --good: #0B8A5B;
  --bad: #C0394B;
  --warn: #986E1B;
  --series-1: #5747FF;       /* contacts transmis — indigo */
  --series-2: #02B875;       /* clients gagnés — vert */
  --radius: 16px;
  --shadow: 0 1px 2px rgba(24, 3, 99, .04), 0 10px 30px -14px rgba(24, 3, 99, .18);
  --sidebar-w: 248px;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 700; color: var(--brand-deep); }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───────── Layout ───────── */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--brand-deep); color: #fff; padding: 24px 16px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 8px;
  background-image: radial-gradient(600px 300px at 0% 100%, rgba(87,71,255,.55), transparent 60%);
}
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; font-weight: 700; font-size: 18px; }
.logo span { opacity: .6; font-weight: 400; font-size: 14px; }
.logo .logo-img { width: 104px; height: auto; display: block; }
.logo .x { opacity: .55; font-weight: 400; font-size: 14px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: rgba(255,255,255,.78); text-decoration: none; font-weight: 500; font-size: 14.5px;
}
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.active { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(87,71,255,.9); }
.sidebar .spacer { flex: 1; }
.partner-badge { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 13px; }
.partner-badge strong { display: block; font-size: 14px; margin-bottom: 2px; }
.partner-badge .tier { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--mint-2); color: var(--brand-deep); font-size: 11px; font-weight: 600; }
.sidebar .logout { background: none; border: 0; color: rgba(255,255,255,.7); padding: 10px 12px; text-align: left; border-radius: 10px; }
.sidebar .logout:hover { background: rgba(255,255,255,.08); color: #fff; }

main { padding: 32px 40px 64px; max-width: 1240px; width: 100%; min-width: 0; }
.grid > * { min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }

/* ───────── Cards & grids ───────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
main > .card + .card, .card-stack > .card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2.dash { grid-template-columns: 3fr 2fr; }
.mt { margin-top: 16px; }

/* KPI tiles */
.kpi { padding: 18px 20px; }
.kpi .label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.kpi .value { font-size: 30px; font-weight: 700; margin: 6px 0 2px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--brand-deep); }
.kpi:first-child { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-color: transparent; }
.kpi:first-child .label, .kpi:first-child .sub { color: rgba(255,255,255,.75); }
.kpi:first-child .value { color: #fff; }
.kpi .sub { font-size: 12.5px; color: var(--text-3); }
.kpi .value .unit { font-size: 16px; color: var(--text-2); font-weight: 500; margin-left: 2px; }

/* Dashboard : tableau de bord Google Sheets, liste signés, séparateur */
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-teaser { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, var(--lavender) 0%, #fff 80%); border: 1px solid var(--lavender-2); }
.sheet-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; flex: none; }
.sheet-ico svg { width: 22px; height: 22px; }
.sheet-embed iframe { width: 100%; height: 560px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.sheet-embed p { margin: 8px 0 0; }
.won-list { list-style: none; margin: 0 0 14px; padding: 0; }
.won-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.won-list li:first-child { border-top: 0; }
.won-list .grow { flex: 1; font-weight: 500; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.terms-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.section-sep { margin: 28px 0 14px; }
.section-sep p { margin: 2px 0 0; }

/* ───────── Chart ───────── */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis-label { fill: var(--text-3); font-size: 11px; }
.chart .bar { rx: 3; }
.chart .bar.s1 { fill: var(--series-1); }
.chart .bar.s2 { fill: var(--series-2); }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: rgba(15, 23, 42, .04); }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .l1::before { background: var(--series-1); }
.legend .l2::before { background: var(--series-2); }
.tooltip {
  position: absolute; pointer-events: none; background: var(--text); color: #fff; font-size: 12.5px; padding: 8px 10px; border-radius: 8px;
  transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 5;
}
.tooltip b { font-weight: 600; }

/* Stage bars */
.stage-row { display: grid; grid-template-columns: max-content minmax(60px, 1fr) 40px 56px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.stage-row:first-of-type { border-top: 0; }
.stage-row .bar-bg { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.stage-row .bar-fill { height: 100%; border-radius: 999px; background: var(--series-1); }
.stage-row.won .bar-fill { background: var(--series-2); }
.stage-row.lost .bar-fill { background: var(--text-3); }
.stage-row .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ───────── Tables ───────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; background: var(--surface-2); position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: #fbfcfe; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.pill.WON { background: var(--mint); color: var(--good); border-color: var(--mint-2); }
.pill.LOST { background: #f8fafc; color: var(--text-3); }
.pill.TO_CONTACT { background: var(--lavender); color: var(--brand-dark); border-color: var(--lavender-2); }
.pill.IN_TALKS { background: #fefce8; color: var(--warn); border-color: #fde68a; }
.pill.DECIDING { background: #FFE9EC; color: var(--bad); border-color: #FFC9D0; }

/* ───────── Forms & buttons ───────── */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
}
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.toolbar .input, .toolbar .select { width: auto; min-width: 200px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(87,71,255,.8); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.accent { background: var(--green); border-color: var(--green); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.alert.info { background: var(--lavender); border-color: var(--lavender-2); color: var(--brand-deep); }
.alert.ok { background: var(--mint); border-color: var(--mint-2); color: var(--good); }
.alert.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ───────── Links page ───────── */
.link-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.link-card .url { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.link-card .url input { flex: 1; }
.link-card .qr { width: 96px; height: 96px; background: #fff; padding: 6px; border: 1px solid var(--border); border-radius: 10px; }
.link-card .qr img, .link-card .qr canvas { width: 100%; height: 100%; display: block; }

/* ───────── Steps (page transmettre) ───────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.step .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; margin-bottom: 8px; }

/* ───────── Auth ───────── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(1200px 600px at 10% -10%, var(--lavender) 0, transparent 60%), radial-gradient(800px 500px at 100% 100%, var(--mint) 0, transparent 60%), var(--bg); }
.auth .card { width: 100%; max-width: 440px; padding: 36px; }
.auth .logo { color: var(--brand); padding: 0 0 18px; }
.auth .logo svg { width: 120px; }
.auth .logo span { color: var(--text-3); }
.auth h1 { font-size: 22px; margin-bottom: 6px; }
.auth form { display: grid; gap: 14px; margin-top: 20px; }

/* ───────── Team ───────── */
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; }
.member { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.member:first-child { border-top: 0; }
.member .who { flex: 1; }
.member .who small { display: block; color: var(--text-3); }

/* Demo banner */
.demo-banner { background: #FFF4DB; color: #986E1B; border-bottom: 1px solid #F9D98A; font-size: 13px; padding: 8px 16px; text-align: center; }

/* Loading */
.skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f6f8fa 50%, #eef2f6 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; min-height: 18px; }
@keyframes sk { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.empty { padding: 40px; text-align: center; color: var(--text-3); }

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  main { padding: 24px; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; padding: 6px 8px; gap: 0; z-index: 10; overflow-x: auto; }
  .sidebar .logo, .sidebar .spacer, .sidebar .partner-badge { display: none; }
  .sidebar .logout { flex:0 0 auto; font-size:10.5px; padding:8px 6px; }
  .nav { display: flex; width: 100%; justify-content: space-around; }
  .nav a { flex-direction: column; gap: 4px; font-size: 10.5px; padding: 8px 6px; }
  main { padding: 16px 16px 90px; }
  .grid-2, .grid-2.dash, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stage-row { grid-template-columns: max-content minmax(40px, 1fr) 36px 50px; font-size: 13px; }
  .terms-row { grid-template-columns: 1fr; }
  .sheet-embed iframe { height: 420px; }
  .link-card { grid-template-columns: 1fr; }
  .link-card .qr { display: none; }
  h1 { font-size: 22px; }
  .kpi .value { font-size: 26px; }
}

/* ═════════════════ V2 : inscription, convention, pages simplifiées ═════════════════ */
:root { --serif: "Source Serif 4", Georgia, "Times New Roman", serif; --paper: #FFFFFF; --ink: #1D1640; }
.partner-badge span { display: block; color: rgba(255,255,255,.65); }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; box-shadow: var(--shadow); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn.lg { padding: 12px 20px; font-size: 15px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--surface-2); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.page-head h1 { font-size: 28px; }
.hint { font-size: 13px; color: var(--text-2); margin: 6px 0 0; }
.field-err { font-size: 13px; color: var(--bad); margin: 6px 0 0; }
.field-ok { font-size: 13px; color: var(--good); margin: 6px 0 0; display: flex; gap: 6px; align-items: center; }
.field-ok svg { width: 14px; height: 14px; }
.input.invalid { border-color: var(--bad); background: #FFF6F7; }
.opt { font-weight: 400; color: var(--text-3); }

/* Panneau générique : plus calme que la carte d'origine */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; }
.panel > h2, .panel-head h2 { font-size: 17px; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { margin-bottom: 10px; }
.panel-foot { margin: 14px 0 0; }

/* ───────── Inscription ───────── */
.onb { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; min-height: 100vh; }
.onb-side { background: var(--brand-deep); color: #fff; padding: 32px 32px 28px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh;
  background-image: radial-gradient(520px 320px at 0% 100%, rgba(87,71,255,.6), transparent 65%); }
.onb-side .logo { padding: 0 0 18px; }
.onb-side h1 { color: #fff; font-size: 26px; line-height: 1.2; }
.onb-side > p { color: rgba(255,255,255,.75); margin: 0; }
.onb-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.onb-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: rgba(255,255,255,.55); font-weight: 500; }
.onb-steps .dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); font-size: 13px; font-weight: 600; flex: none; }
.onb-steps .dot svg { width: 14px; height: 14px; }
.onb-steps li.current { color: #fff; }
.onb-steps li.current .dot { background: #fff; color: var(--brand-deep); border-color: #fff; }
.onb-steps li.done { color: rgba(255,255,255,.85); }
.onb-steps li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.onb-help { margin-top: auto !important; font-size: 13px; color: rgba(255,255,255,.65) !important; }
.onb-help a { color: #fff; }
.onb-main { padding: 48px 56px 80px; display: flex; justify-content: center; }
.onb-panel { width: 100%; max-width: 620px; }
.onb-panel.wide { max-width: 860px; }
.onb-panel > h2 { font-size: 24px; margin-bottom: 6px; color: var(--brand-deep); }
.onb-panel > p.muted { margin: 0 0 24px; }
.siret-row { display: flex; gap: 8px; }
.siret-row .input { flex: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.conv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.conv-head h2 { font-size: 24px; color: var(--brand-deep); margin-bottom: 6px; }
.conv-head p { margin: 0; max-width: 56ch; }
.conv-tools { display: flex; gap: 8px; }

/* Le document : une vraie page, en serif, pour qu'on la lise comme un contrat */
.doc { background: var(--paper); color: var(--ink); border: 1px solid var(--border); border-radius: 6px; padding: 56px 64px;
  box-shadow: 0 1px 0 rgba(24,3,99,.04), 0 24px 48px -32px rgba(24,3,99,.35); font-family: var(--serif); font-size: 16px; line-height: 1.65; }
.doc-head { text-align: center; padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.doc-head .logo-img { width: 110px; margin: 0 auto 18px; display: block; }
.doc-head h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--ink); letter-spacing: 0; }
.doc-head p { margin: 4px 0 0; color: var(--text-2); font-style: italic; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.doc-parties h2, .doc-cert h2 { font-family: Poppins, sans-serif; font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: .01em; margin-bottom: 6px; }
.doc-parties p { margin: 0; }
.doc-terms { width: 100%; border-collapse: collapse; margin: 0 0 36px; font-size: 15px; }
.doc-terms th, .doc-terms td { text-align: left; white-space: normal; padding: 12px 0; border-top: 1px solid var(--border); vertical-align: top; }
.doc-terms tr:last-child th, .doc-terms tr:last-child td { border-bottom: 1px solid var(--border); }
.doc-terms th { font-weight: 400; color: var(--text-2); width: 52%; padding-right: 16px; background: none; text-transform: none; letter-spacing: 0; font-size: 15px; position: static; }
.doc-terms td { font-weight: 600; }
.doc-cgp { font-size: 15px !important; margin-bottom: 0 !important; }
.doc-version { margin: 2px 0 20px; font-size: 13px; color: var(--text-3); font-family: Poppins, sans-serif; }
.doc-articles { margin: 0; padding: 0; list-style: none; counter-reset: art; }
.doc-articles > li { counter-increment: art; break-inside: avoid; margin-bottom: 22px; max-width: 68ch; }
.doc-articles h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.doc-articles h3::before { content: counter(art) ". "; color: var(--brand); }
.doc-articles p { margin: 4px 0 0; font-size: 15.5px; color: #2E2752; }
.doc-articles ul { margin: 6px 0 0; padding-left: 20px; font-size: 15.5px; color: #2E2752; }
.doc-articles ul li { margin: 3px 0; }
.doc-articles .doc-terms { margin: 10px 0 8px; max-width: 460px; }
.doc-sign { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc-sign h2 { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.doc-sign-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-size: 15px; }
.doc-sign-cols p { margin: 0 0 8px; }
.doc-signer { font-weight: 600; }
.doc-date { margin: 16px 0 0; font-size: 14px; color: var(--text-2); }
.doc-cert { margin-top: 32px; padding: 20px 24px; border: 1.5px solid var(--green); border-radius: 6px; background: #F3FFF7; font-family: Poppins, sans-serif; font-size: 14px; }
.doc-cert h2 { display: flex; align-items: center; gap: 8px; color: var(--good) !important; font-size: 14px !important; margin-bottom: 12px !important; }
.doc-cert h2 svg { width: 16px; height: 16px; }
.doc-cert dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.doc-cert dt { color: var(--text-2); }
.doc-cert dd { margin: 0; font-weight: 500; }

.accept { margin-top: 24px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 -12px 30px -18px rgba(24,3,99,.3); display: grid; gap: 12px; }
.accept .check { color: var(--text); font-size: 15px; }
.accept .check input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 3px; }
.accept .btn { justify-self: start; }
.accept .hint { margin: 0; }

.done-panel { text-align: left; padding-top: 24px; }
.done-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; margin-bottom: 18px; }
.done-mark svg { width: 28px; height: 28px; }
.done-panel h2 { font-size: 26px; color: var(--brand-deep); margin-bottom: 8px; }
.done-panel > p { margin: 0 0 24px; max-width: 54ch; }
.done-next { padding: 18px 20px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 10px 10px 0; margin-bottom: 24px; }
.done-next h3 { margin-bottom: 4px; }
.done-next p { margin: 0; color: var(--text-2); }

/* ───────── Tableau de bord ───────── */
.earn { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; background: var(--brand-deep); color: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 20px;
  background-image: radial-gradient(700px 300px at 0% 120%, rgba(87,71,255,.7), transparent 60%); }
.earn-main { padding: 28px 32px; }
.earn-label { margin: 0; color: var(--mint-2); font-weight: 500; font-size: 14px; }
.earn-amount { margin: 2px 0 6px; font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.earn-sub { margin: 0; color: rgba(255,255,255,.75); font-size: 14px; max-width: 34ch; }
.earn-figs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; background: rgba(255,255,255,.04); }
.earn-figs > div { padding: 28px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.earn-figs dt { font-size: 13px; color: rgba(255,255,255,.65); }
.earn-figs dd { margin: 6px 0 4px; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.earn-figs p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.5); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-grid > * { min-width: 0; }
dl.terms-row { margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
dl.terms-row dt { font-size: 12.5px; color: var(--text-2); }
dl.terms-row dd { margin: 2px 0; font-size: 20px; font-weight: 700; }
dl.terms-row p { margin: 0; font-size: 12.5px; color: var(--text-3); }
.stage-row { grid-template-columns: 190px minmax(60px, 1fr) 44px; }
#quarters .chart svg { max-height: 240px; }
.dash-foot { margin: 18px 0 0; font-size: 13px; color: var(--text-3); }

/* ───────── Kit de communication ───────── */
.res-list { list-style: none; margin: 0; padding: 0; }
.res { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.res-list .res:first-child { border-top: 0; }
.res-ico, .res-thumb { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--lavender); color: var(--brand); position: relative; overflow: hidden; }
.res-ico svg, .res-thumb svg { width: 20px; height: 20px; }
.res-ico.canva { background: #E8F7FA; color: #00A7C2; }
.res-ico.pdf { background: var(--mint); color: var(--good); }
.res-thumb { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }
.res-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: var(--surface-2); }
.res-thumb.dark { background: var(--brand-deep); }
.res-thumb.dark img { background: transparent; padding: 6px; }
.res-body { min-width: 0; }
.res-body b { display: block; font-weight: 600; font-size: 14.5px; }
.res-meta { display: block; font-size: 13px; color: var(--text-2); }
.res-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.kit-contact { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border: 1px dashed var(--lavender-2); border-radius: 14px; margin-top: 8px; flex-wrap: wrap; }
.kit-contact h2 { font-size: 16px; }
.kit-contact p { margin: 2px 0 0; font-size: 14px; }

/* ───────── Formation ───────── */
.video-block { display: grid; grid-template-columns: 1.7fr 1fr; background: var(--brand-deep); border-radius: 16px; overflow: hidden; color: #fff; }
.video-block video { width: 100%; height: 100%; display: block; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.video-text { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.video-text h2 { color: #fff; font-size: 21px; line-height: 1.25; }
.video-text p { margin: 0; color: rgba(255,255,255,.75); font-size: 14px; }
.video-dur { display: flex; align-items: center; gap: 6px; color: var(--mint-2) !important; font-weight: 500; }
.video-dur svg { width: 14px; height: 14px; }
.essentials { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.essentials b { color: var(--text); }

/* ───────── Mes documents ───────── */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 14px; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--brand); }
.doc-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
main .doc { max-width: 880px; }

/* ───────── Responsive (V2) ───────── */
@media (max-width: 1100px) {
  .earn { grid-template-columns: 1fr; }
  .earn-figs > div:first-child { border-left: 0; }
  .video-block { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .onb { grid-template-columns: 1fr; }
  .onb-side { position: static; height: auto; padding: 24px; }
  .onb-side h1 { font-size: 21px; }
  .onb-steps { grid-auto-flow: column; margin-top: 4px; }
  .onb-steps li { font-size: 12.5px; gap: 8px; }
  .onb-help { display: none; }
  .onb-main { padding: 28px 20px 60px; }
  .doc { padding: 32px 24px; }
  .doc-sign-cols { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  .dash-grid { grid-template-columns: 1fr; }
  .earn-figs { grid-template-columns: 1fr; }
  .earn-figs > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 16px 24px; }
  .earn-amount { font-size: 44px; }
  .doc-parties { grid-template-columns: 1fr; gap: 16px; }
  .res { grid-template-columns: 40px 1fr; }
  .res-actions { grid-column: 2; justify-content: flex-start; }
  .siret-row { flex-direction: column; }
  .nav a span { display: none; }
}

/* ───────── Impression : la convention seule ───────── */
@media print {
  body { background: #fff; }
  .sidebar, .demo-banner, .page-head, .doc-bar, .onb-side, .conv-head, .accept, #toast { display: none !important; }
  .app, .onb { display: block; }
  main, .onb-main { padding: 0; max-width: none; }
  .onb-panel.wide { max-width: none; }
  .doc { border: 0; box-shadow: none; padding: 0; font-size: 12pt; }
}

/* ───────── Kit : aperçus repris du kit initial ───────── */
.kit-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: transform .15s, box-shadow .15s; }
.kit-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15,23,42,.04), 0 16px 40px -16px rgba(15,23,42,.2); }
.kit-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chip { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); padding: 4px 9px; border-radius: 999px; }
.kit-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.kit-card .btn.primary { background: var(--accent); border-color: var(--accent); }
.mock { border-radius: 12px; overflow: hidden; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.mock p { margin: 0 0 10px; }
.mock p:last-child { margin: 0; }
.mock a { color: var(--accent); text-decoration: underline; word-break: break-all; }
.mock-email { border: 1px solid var(--border); background: #fff; }
.mock-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e8ef; }
.mock-bar i:nth-child(1) { background: #ff5f57; } .mock-bar i:nth-child(2) { background: #febc2e; } .mock-bar i:nth-child(3) { background: #28c840; }
.mock-email-head { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); display: grid; gap: 4px; }
.mock-email-head .k { display: inline-block; width: 44px; color: var(--text-3); }
.mock-email-head .subj { color: var(--text); font-weight: 600; }
.mock-email-body { padding: 16px; max-height: 280px; overflow: auto; }
.mock-linkedin { border: 1px solid var(--border); background: #fff; }
.mock-li-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.mock-li-head b { display: block; font-size: 14px; }
.mock-li-head small { color: var(--text-3); font-size: 12px; }
.mock-li-body { padding: 0 14px 12px; max-height: 240px; overflow: auto; }
.mock-li-img { height: 150px; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); position: relative; display: grid; place-items: center; color: rgba(255,255,255,.6); }
.mock-li-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mock-li-img span svg { width: 28px; height: 28px; }
.mock-li-img svg { width: 26px; height: 26px; opacity: .8; }
.mock-li-foot { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--border); }
.mock-story { display: flex; justify-content: center; padding: 10px 0; background: var(--surface-2); }
.mock-story-screen { width: 230px; aspect-ratio: 9 / 17; border-radius: 28px; padding: 18px 16px; color: #fff; display: flex; flex-direction: column; border: 6px solid #180363; position: relative; box-shadow: 0 24px 40px -24px rgba(0,0,0,.6);
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%); }
.mock-story-top { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 18px; }
.mock-story-top i { position: absolute; top: 8px; left: 16px; right: 16px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.5); }
.mock-story-top .avatar { width: 24px; height: 24px; font-size: 10px; background: rgba(255,255,255,.25); }
.mock-story-text { flex: 1; font-size: 15px; font-weight: 600; line-height: 1.35; overflow: hidden; }
.mock-story-text p { margin-bottom: 10px; }
.mock-story-text a, .mock-story-text { color: #fff; }
.mock-story-cta { align-self: center; background: #fff; color: var(--brand); font-weight: 700; font-size: 12px; padding: 8px 14px; border-radius: 999px; }
.mock-signature { border: 1px solid var(--border); background: #fff; padding: 16px; border-left: 4px solid var(--accent); }
.mock-pitch { background: color-mix(in srgb, var(--accent) 7%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 20%, #fff); padding: 20px 20px 20px 54px; position: relative; font-size: 15px; }
.mock-pitch .quote { position: absolute; left: 16px; top: 2px; font-size: 56px; line-height: 1; color: var(--accent); font-family: Georgia, serif; opacity: .6; }
.mock-email-banner { width: 100%; display: block; border-radius: 8px; margin-bottom: 14px; }
.mock-news { border: 1px solid var(--border); background: #fff; padding: 14px; }
.mock-news-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 12px; }
.mock-news-brand small { color: var(--text-3); }
.mock-news-brand .avatar { width: 26px; height: 26px; font-size: 11px; }
.mock-news-block { border: 1px solid var(--lavender-2); background: var(--surface-2); border-radius: 12px; padding: 16px; }
.mock-news-block .logos { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brand-deep); margin-bottom: 10px; }
.mock-news-block .logos .x { color: var(--text-3); font-weight: 400; }
.mock-news-block .logos img { height: 18px; }
.mock-news-block h4 { margin: 0 0 8px; font-size: 15px; color: var(--brand-deep); }
.mock-cta { display: inline-block; margin-top: 8px; background: var(--brand); color: #fff; font-weight: 600; font-size: 12.5px; padding: 7px 12px; border-radius: 8px; }
.kit-file-preview.dark { background: var(--brand-deep); }
.kit-file-preview.canva { background: linear-gradient(135deg, #7D2AE8, #00C4CC); color: #fff; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; }
.kit-file-preview.canva svg { width: 34px; height: 34px; }
.kit-file-meta p { margin: 4px 0 0; line-height: 1.4; }
.kit-gallery { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kit-file { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.kit-file:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(15,23,42,.25); }
.kit-file-preview { position: relative; aspect-ratio: 4 / 3; background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; color: var(--text-3); }
.kit-file-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; background: inherit; }
.kit-file-preview svg { width: 32px; height: 32px; }
.kit-file-dl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(24,3,99,.78); color: #fff; font-weight: 600; font-size: 13px; opacity: 0; transition: opacity .15s; }
.kit-file-dl svg { width: 16px; height: 16px; }
.kit-file:hover .kit-file-dl { opacity: 1; }
.kit-file-meta { padding: 10px 12px; }
.kit-file-meta b { display: block; font-size: 13.5px; }
.kit-file-meta small { color: var(--text-3); font-size: 12px; display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.kit-file-meta .fmt { font-size: 10px; font-weight: 700; color: #fff; background: var(--accent); padding: 2px 6px; border-radius: 5px; }
.sig-name b { display: block; font-size: 15px; }
.sig-name span { color: var(--text-2); font-size: 13px; }
.sig-line { color: var(--text-3); font-size: 12.5px; margin: 6px 0 12px; }
.sig-promo { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; font-size: 13px; }
.sig-promo .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.sig-promo a { word-break: break-all; }
.btn.canva { background: #fff; border-color: #7D2AE8; color: #7D2AE8; white-space: nowrap; }
.chip { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; }

/* ───────── Kit : galerie d'outils ───────── */
.link-strip { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.link-strip-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.link-strip-label svg { width: 16px; height: 16px; color: var(--brand); }
.link-strip .input { flex: 1; min-width: 220px; font-size: 12.5px; }
.tools-title { font-size: 16px; color: var(--brand-deep); margin: 0 0 14px; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 32px; }
.tool { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.tool:hover { border-color: var(--accent); box-shadow: 0 14px 30px -20px color-mix(in srgb, var(--accent) 70%, transparent); }
.tool-cover { position: relative; height: 112px; display: grid; place-items: center; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, #fff); }
.tool-cover > svg { width: 40px; height: 40px; }
.tool-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tool-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.tool-body b { font-size: 16px; color: var(--brand-deep); }
.tool-desc { font-size: 14px; color: var(--text-2); }
.tool-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.tool-meta span { font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; }

/* Détail d'un outil */
.tool-head { display: flex; align-items: flex-start; gap: 16px; margin: 14px 0 24px; flex-wrap: wrap; }
.tool-head-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); }
.tool-head-ico svg { width: 26px; height: 26px; }
.tool-head h1 { font-size: 26px; }
.tool-head p { margin: 4px 0 0; max-width: 62ch; }
.tool-head .grow { flex: 1; min-width: 240px; }
.tool-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
.tool-layout:not(:has(.tool-check)) { grid-template-columns: 1fr; }
.tool-main > section + section { margin-top: 28px; }
.kit-texts:has(> :only-child) { grid-template-columns: minmax(0, 620px); }
.tool-sub { font-size: 15px; color: var(--text-2); font-weight: 600; margin-bottom: 12px; }
.kit-texts { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tool-check { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.tool-check h2 { font-size: 15px; margin-bottom: 10px; }
.tool-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.tool-check li { display: flex; gap: 8px; }
.tool-check svg { width: 15px; height: 15px; color: var(--green); flex: none; margin-top: 3px; }
.kit-file { display: flex; flex-direction: column; }
a.kit-file-preview { display: grid; }
.kit-file-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.kit-canva-btn { margin-top: 10px; }
.kit-file-meta small { display: block; margin-top: 2px; }

/* ───────── Menu latéral : pleine hauteur, aligné au contenu ───────── */
.app { background: linear-gradient(90deg, var(--brand-deep) 0 var(--sidebar-w), var(--bg) var(--sidebar-w)); }
.sidebar { height: 100vh; padding-top: 32px; }
.sidebar .logo { padding: 0 10px 22px; min-height: 40px; }
main { padding-top: 32px; }
main > .demo-banner { margin: -32px -40px 24px; }
.onb { background: linear-gradient(90deg, var(--brand-deep) 0 min(360px, 32vw), var(--bg) min(360px, 32vw)); }
.onb-main > .demo-banner { position: absolute; top: 0; left: 0; right: 0; }
.onb-main { position: relative; }

@media (max-width: 1024px) { main > .demo-banner { margin: -32px -24px 24px; } .tool-layout { grid-template-columns: 1fr; } .tool-check { position: static; } }
@media (max-width: 900px) { .onb { background: var(--bg); } }
@media (max-width: 760px) {
  .app { background: var(--bg); }
  .sidebar { height: auto; padding-top: 6px; }
  main > .demo-banner { margin: -32px -16px 16px; }
  .kit-texts { grid-template-columns: 1fr; }
}

/* ═════════════════ V3 : simplicité (accueil, clients, panneau de transmission) ═════════════════ */
.page-head { align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.stat dt { font-size: 14px; color: var(--text-2); }
.stat dd { margin: 6px 0 2px; font-size: 34px; font-weight: 700; color: var(--brand-deep); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat p { margin: 0; font-size: 13px; color: var(--text-3); }
.stat:last-child { border-color: var(--lavender-2); background: linear-gradient(135deg, #fff 40%, var(--lavender)); }
.stat:last-child dd { color: var(--brand); }
.home-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.home-grid > * { min-width: 0; }
.link-more { font-size: 14px; font-weight: 500; text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.clients { list-style: none; margin: 0; padding: 0; }
.client { display: grid; grid-template-columns: 32px 1fr auto 72px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); }
.client:first-child { border-top: 0; }
.client-name { font-weight: 600; font-size: 14.5px; min-width: 0; }
.client-name small { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-3); }
.client-gain { text-align: right; font-weight: 600; color: var(--good); font-variant-numeric: tabular-nums; font-size: 14px; }
.empty-state { display: grid; gap: 8px; justify-items: start; padding: 18px; background: var(--bg); border-radius: 10px; }
.empty-state span { color: var(--text-2); font-size: 14px; }
.links-panel h2 { margin-bottom: 4px; }
.links-panel > p { margin: 0 0 14px; }
.link-item { padding: 12px 0; border-top: 1px solid var(--border); }
.link-item b { display: block; font-size: 14px; margin-bottom: 8px; }
.link-row { display: flex; gap: 6px; align-items: center; }
.link-row .input { flex: 1; min-width: 0; font-size: 12px; padding: 8px 10px; }
.qr-box { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.qr-box .qr { width: 140px; height: 140px; flex: none; border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: #fff; }
.qr-box canvas { width: 100% !important; height: 100% !important; }
.qr-box p { margin: 0; }
.links-panel .link-more { display: inline-block; margin-top: 10px; }
.client-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.client-tools .input { width: 240px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.seg-btn span { color: var(--text-3); margin-left: 2px; font-variant-numeric: tabular-nums; }
.seg-btn.on { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.seg-btn.on span { color: rgba(255,255,255,.7); }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; font-size: 14.5px; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; font-weight: 500; }
.invite { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.invite label { font-size: 14px; font-weight: 600; }
.invite p { margin: 0; }
.member .avatar.sm { width: 32px; height: 32px; }

/* Panneau « Transmettre un client » */
body.no-scroll { overflow: hidden; }
.drawer-bg { position: fixed; inset: 0; background: rgba(24,3,99,.35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--surface); z-index: 41; padding: 24px 28px; overflow-y: auto; box-shadow: -20px 0 40px -20px rgba(24,3,99,.4); }
.drawer header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.drawer h2 { font-size: 21px; color: var(--brand-deep); }
.drawer > p { margin: 0 0 20px; font-size: 14px; }
.drawer .form-grid { grid-template-columns: 1fr 1fr; }
.drawer .done-mark { margin: 18px 0 14px; }
@media (prefers-reduced-motion: no-preference) { .drawer { animation: slidein .2s ease-out; } @keyframes slidein { from { transform: translateX(24px); opacity: 0; } } }

@media (max-width: 1024px) { .home-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .client { grid-template-columns: 32px 1fr auto; }
  .client-gain { display: none; }
  .client-tools .input { width: 100%; }
  .link-row { flex-wrap: wrap; }
}

/* ───────── Espace staff (T36) ───────── */
.staff-bandeau { position: fixed; top: 0; left: 0; right: 0; z-index: 40; box-sizing: border-box; height: 44px; padding-top: 0; padding-bottom: 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 600; }
body.vue-staff .app { padding-top: 44px; }
body.vue-staff .sidebar { top: 44px; height: calc(100vh - 44px); }
@media (max-width: 760px) { body.vue-staff .sidebar { top: auto; height: auto; } }
.staff-page { max-width: 1240px; margin: 0 auto; }
.staff-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.staff-top .logo { padding: 0; color: var(--brand); }
.staff-row { grid-template-columns: 32px 1fr auto auto; }
.staff-synchro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.staff-synchro h2 { margin: 0; }
.staff-synchro p { margin: 4px 0 0; }
.staff-synchro > div:last-child { flex-basis: 100%; }
#staff-suite { margin-top: 12px; }
@media (max-width: 760px) { .staff-row { grid-template-columns: 32px 1fr auto; } .staff-row .pill { grid-column: 2; justify-self: start; } .staff-row .btn { grid-column: 3; grid-row: 1; } }
.staff-top .btn { white-space: nowrap; }

/* ───────── Pilotage staff (P2, TICKET-45) : écrans neufs, jetons existants ───────── */
.pil-bandeau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 14px 20px; }
.pil-bandeau p { margin: 0; }
.pil-bandeau #pil-msg { flex-basis: 100%; }
.pil-bandeau #pil-msg:empty { display: none; }
.pil-onglets { display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.pil-onglet { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; padding: 12px 4px; min-height: 44px; cursor: pointer; border-bottom: 3px solid transparent; }
.pil-onglet:hover { color: var(--brand-deep); }
.pil-onglet.on { color: var(--brand-deep); border-bottom-color: var(--brand); }
.pil-onglet:focus-visible, .pil-choix:focus-visible, .pil-lien:focus-visible, .pil-th:focus-visible, .pil-barre-bt:focus-visible, .table-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pil-filtres { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; padding: 16px 20px; }
.pil-ligne { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.pil-etiq { font-size: 12px; font-weight: 600; color: var(--text-2); width: 72px; align-self: center; }
.pil-groupe { display: flex; flex-wrap: wrap; gap: 8px; }
.pil-choix { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 500; min-height: 36px; cursor: pointer; }
.pil-choix.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pil-filtres .field .select, .pil-filtres .field .input { width: auto; min-width: 190px; }
.pil-test-case { align-items: center; padding-bottom: 10px; }
.pil-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 0 0 20px; }
.pil-kpis .stat:last-child { border-color: var(--border); background: var(--surface); }
.pil-kpis .stat:last-child dd { color: var(--brand-deep); }
.pil-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; margin-bottom: 20px; }
.pil-liste { list-style: none; margin: 0; padding: 0; }
.pil-liste > li { border-top: 1px solid var(--border); padding: 10px 0; }
.pil-liste > li:first-child { border-top: 0; }
.pil-barre-bt { display: flex; flex-direction: column; gap: 4px; width: 100%; border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pil-barre-t { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.pil-barre { display: block; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pil-barre-r { display: block; height: 10px; border-radius: 999px; background: var(--series-1); }
.pil-etape-WON { background: var(--series-2); }
.pil-etape-LOST { background: var(--text-3); }
.pil-legende { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; }
.pil-puce { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--series-1); }
.pil-puce.g, .pil-col.g { background: var(--series-2); }
.pil-trims { display: grid; gap: 12px; text-align: center; }
.pil-trim { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; min-width: 0; }
.pil-colonnes { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 160px; width: 100%; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.pil-col { display: block; width: 16px; max-width: 40%; min-height: 2px; border-radius: 6px 6px 0 0; background: var(--series-1); }
.pil-rang, .pil-alerte { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pil-rang .pil-n { width: 22px; font-weight: 700; color: var(--text-3); }
.pil-rang .pil-lien, .pil-alerte-t { flex: 1; min-width: 120px; }
.pil-alerte-t { font-size: 13px; }
.pil-val { font-weight: 700; }
.pil-lien { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 600; color: var(--brand-deep); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--lavender-2); text-underline-offset: 3px; }
.pil-lien:hover { color: var(--brand); }
.pil-th { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; font-weight: inherit; cursor: pointer; }
.pil-table th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); background: transparent; position: static; }
.pil-nom small { display: block; font-weight: 400; color: var(--text-2); font-size: 12px; }
.pil-table .empty { white-space: normal; }
.pil-table .pil-total th, .pil-table .pil-total td { background: var(--surface-2); font-weight: 700; border-top: 2px solid var(--border); }
.pil-test { background: #FFE9EC; color: var(--bad); border-color: #FFC9D0; }
.pil-st-actif { background: var(--mint); color: var(--good); border-color: var(--mint-2); }
.pil-st-passif { background: #FFF1D6; color: var(--warn); border-color: #fde68a; }
.pil-st-inactif, .pil-st-autre { background: var(--surface-2); color: var(--text-2); }
.pil-tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pil-tuile { background: var(--surface-2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.pil-tuile strong { font-size: 24px; color: var(--brand-deep); }
.pil-vide { display: grid; gap: 8px; justify-items: start; }
.pil-fiche h3 { font-size: 15px; margin: 18px 0 8px; }
.pil-fiche-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 0; }
.pil-fiche-kpis .stat, .pil-fiche-kpis .stat:last-child { padding: 14px; background: var(--surface-2); border-color: var(--surface-2); }
.pil-fiche-kpis .stat dd, .pil-fiche-kpis .stat:last-child dd { font-size: 24px; color: var(--brand-deep); }
.pil-ligne-t { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.pil-modale { position: fixed; z-index: 41; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; box-sizing: border-box; }
.pil-modale h2 { font-size: 20px; margin: 0; }
.pil-etat { background: var(--surface-2); border-radius: 12px; padding: 8px 16px; font-size: 13px; }
@media (max-width: 760px) {
  .pil-onglets { gap: 0 16px; }
  .pil-etiq { width: 100%; }
  .pil-filtres .field, .pil-filtres .field .select, .pil-filtres .field .input { width: 100%; min-width: 0; }
  .pil-kpis { grid-template-columns: 1fr 1fr; }
  .pil-kpis .stat dd { font-size: 26px; }
}
.pil-table { font-size: 13px; }
.pil-table th, .pil-table td { padding: 10px 7px; }
.pil-table .pill { font-size: 12px; padding: 3px 8px; }
.pil-trims-wrap { overflow-x: auto; }
.pil-trims-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pil-rang .pil-lien { min-width: 0; overflow-wrap: anywhere; }
.pil-rang .pil-val { white-space: nowrap; }

/* ───────── Accueil enrichi (fiche A1, 23/10) : jetons existants, ajout seul ───────── */
#acc-suite { display: grid; gap: 20px; margin-top: 20px; }
#acc-suite:empty { display: none; }
#acc-suite > * { min-width: 0; }
.acc-attente { height: 120px; }
.acc-reperes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0; }
.acc-repere { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; min-width: 0; }
.acc-repere dt { font-size: 13px; color: var(--text-2); }
.acc-repere dd { margin: 4px 0 2px; font-size: 26px; font-weight: 700; color: var(--brand-deep); letter-spacing: -0.02em; }
.acc-repere p { margin: 0; font-size: 12.5px; color: var(--text-3); }
#acc-suite .num { font-variant-numeric: tabular-nums; }
.acc-activite-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.acc-activite-head h2 { margin: 0; }
.acc-activite-head p { margin: 2px 0 0; }
.acc-activite-outils { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.acc-legende { display: flex; align-items: center; gap: 6px; margin: 0; }
.acc-legende .acc-puce + * { margin-right: 8px; }
.acc-puce { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.acc-t { background: var(--series-1); }
.acc-g { background: var(--series-2); }
.acc-graphe-boite { overflow-x: auto; }
.acc-graphe-boite:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.acc-graphe { display: flex; gap: 10px; min-width: 560px; }
.acc-col { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-barres { display: flex; gap: 4px; align-items: flex-end; justify-content: center; height: 180px; border-bottom: 1px solid var(--border); }
.acc-barre { display: block; width: 40%; max-width: 22px; min-height: 2px; border-radius: 6px 6px 0 0; }
.acc-col-label { display: flex; flex-direction: column; align-items: center; padding-top: 8px; font-size: 11.5px; text-align: center; }
.acc-col-label b { font-weight: 600; }
.acc-annee { color: var(--text-3); font-size: 11px; }
.acc-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start; }
.acc-duo > * { min-width: 0; }
.acc-repartition { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; }
.acc-repartition span { display: block; height: 100%; }
.acc-st-TO_CONTACT { background: var(--lavender-2); }
.acc-st-IN_TALKS { background: var(--brand); }
.acc-st-DECIDING { background: var(--warn); }
.acc-st-WON { background: var(--series-2); }
.acc-st-LOST { background: var(--text-3); }
.acc-statuts { list-style: none; margin: 0 0 12px; padding: 0; }
.acc-statuts li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 14px; }
.acc-statuts li:first-child { border-top: 0; }
.acc-statut { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acc-raccourcis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.acc-raccourci { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; min-height: 44px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; min-width: 0; }
.acc-raccourci:hover { border-color: var(--brand); }
.acc-raccourci:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.acc-raccourci b { font-size: 14px; }
.acc-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--lavender); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; }
.acc-ico svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .acc-reperes { grid-template-columns: 1fr 1fr; }
  .acc-repere { padding: 14px 16px; }
  .acc-repere dd { font-size: 22px; }
  .acc-raccourci { padding: 14px 12px; }
}
