/* B2B Food Hunter — design system
   Chasse commerciale + intelligence + revenus. Sobre, lisible, rapide. */
:root {
  --ink: #0A0F1E; --ink-2: #121a2f; --ink-3: #1d2742;
  --bg: #F5F6F8; --surface: #FFFFFF; --surface-2: #FAFBFC;
  --border: #E4E7EC; --border-strong: #D0D5DD;
  --text: #0E1525; --muted: #5B6476; --faint: #8A93A5;
  --accent: #FF4F1F; --accent-2: #E8400F; --accent-soft: #FFF1EC;
  --revenue: #0B9A6A; --revenue-soft: #E7F7F0;
  --hot: #E5401A; --hot-soft: #FDEDE8; --warm: #D97706; --warm-soft: #FEF5E6;
  --cold: #2563EB; --cold-soft: #EAF1FE; --demo: #6D28D9; --demo-soft: #F2ECFE;
  --danger: #C8261B; --danger-soft: #FDECEA; --ok: #0B9A6A;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 32px -8px rgba(16,24,40,.18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a.link, .prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 8px; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12px; }
.upper { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 650; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }

/* ---------- layout app */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #C9D1E3; padding: 18px 14px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 800; font-size: 13px; letter-spacing: .08em; line-height: 1.1; }
.brand-name span { color: var(--accent); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #AEB8CE; font-weight: 520; }
.nav a:hover { background: var(--ink-2); color: #fff; }
.nav a.active { background: var(--ink-3); color: #fff; }
.nav a .count { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; border-radius: 99px; padding: 0 7px; font-weight: 700; }
.nav-label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #5E6A85; padding: 14px 10px 4px; font-weight: 700; }
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--ink-3); padding-top: 12px; font-size: 12px; }
.sidebar-foot .who { color: #fff; font-weight: 600; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: var(--surface);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.topbar .spacer { flex: 1; }
.content { padding: 24px 28px 64px; max-width: 1280px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.demo-banner { background: var(--demo); color: #fff; text-align: center; font-size: 12px; font-weight: 600; padding: 6px; letter-spacing: .04em; }

/* ---------- grid */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1fr) 360px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; }

/* ---------- cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.card-head .right { margin-left: auto; }
.card-body { padding: 16px 20px; }
.card.hl { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- KPI */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.kpi { padding: 14px 16px; }
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 560; display: flex; gap: 6px; align-items: center; }
.kpi .value { font-size: 24px; font-weight: 750; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hero-kpi { background: linear-gradient(135deg, #0A0F1E 0%, #172341 100%); color: #fff; border: 0; padding: 22px 24px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: end; }
.hero-kpi .label { color: #9FB0D3; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.hero-kpi .big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #fff; }
.hero-kpi .big.green { color: #4BE3A7; }
.hero-kpi .mid { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.hero-kpi .note { color: #8E9BBA; font-size: 12px; margin-top: 4px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 13.5px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: #B9C0CC; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.success { background: var(--revenue); border-color: var(--revenue); color: #fff; }
.btn.danger { color: var(--danger); border-color: #F1C1BC; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; }

/* ---------- badges */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px;
  font-weight: 700; background: #EEF0F4; color: #3C4659; white-space: nowrap; letter-spacing: .01em; }
.badge.hot { background: var(--hot-soft); color: var(--hot); }
.badge.warm { background: var(--warm-soft); color: var(--warm); }
.badge.cold { background: var(--cold-soft); color: var(--cold); }
.badge.demo { background: var(--demo-soft); color: var(--demo); border: 1px dashed #B79CF1; }
.badge.ok { background: var(--revenue-soft); color: var(--revenue); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.pilot { background: var(--ink); color: #fff; }
.badge.outline { background: transparent; border: 1px solid var(--border-strong); color: var(--muted); }

/* ---------- score */
.score { position: relative; width: 52px; height: 52px; flex: none; }
.score svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.score .track { stroke: #EDF0F4; }
.score .val { stroke-linecap: round; }
.score.hot .val { stroke: var(--hot); } .score.warm .val { stroke: var(--warm); } .score.cold .val { stroke: var(--cold); }
.score .n { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.score.lg, .score.lg svg { width: 84px; height: 84px; }
.score.lg .n { font-size: 24px; }
.bar { height: 6px; background: #EDF0F4; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bar.green > i { background: var(--revenue); }

/* ---------- opportunity cards */
.opp { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); align-items: center; }
.opp:last-child { border-bottom: 0; }
.opp:hover { background: var(--surface-2); }
.opp .title { font-weight: 700; font-size: 15px; }
.opp .meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.opp .reason { margin-top: 6px; font-size: 13px; }
.opp .pot { text-align: right; }
.opp .pot .v { font-weight: 750; font-variant-numeric: tabular-nums; }
.opp.muted-row { opacity: .7; }

/* ---------- tables */
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650;
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.t td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click:hover td { background: var(--surface-2); cursor: pointer; }
.t .r { text-align: right; }

/* ---------- lists */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; color: var(--revenue); font-weight: 800; }
.checks.warn li::before { content: "!"; color: var(--warm); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; font-weight: 560; }
.na { color: var(--faint); font-style: italic; font-weight: 400; }

/* ---------- action center */
.action { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); align-items: center; }
.action:last-child { border-bottom: 0; }
.action .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--hot-soft); color: var(--hot); }
.action.warm .n { background: var(--warm-soft); color: var(--warm); }
.action.cold .n { background: var(--cold-soft); color: var(--cold); }
.action .t1 { font-weight: 650; }
.action .why { color: var(--muted); font-size: 12.5px; }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: 12.5px; color: #344054; }
.field .hint { font-size: 12px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date],
input[type=tel], select, textarea { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 9px;
  font: inherit; color: var(--text); background: #fff; }
textarea { height: auto; padding: 10px 12px; min-height: 120px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=file] { font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border-strong);
  background: #fff; font-weight: 560; font-size: 13px; cursor: pointer; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.source-box { border: 1px dashed var(--border-strong); border-radius: 10px; padding: 12px 14px 2px; background: var(--surface-2); }

/* ---------- stepper */
.stepper { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.stepper a { flex: 1; min-width: 110px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; }
.stepper a .s { font-weight: 800; color: var(--faint); font-size: 11px; display: block; }
.stepper a.done { border-color: #BDE9D7; background: var(--revenue-soft); }
.stepper a.done .s { color: var(--revenue); }
.stepper a.cur { border-color: var(--accent); background: var(--accent-soft); }
.stepper a.cur .s { color: var(--accent-2); }

/* ---------- kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.col { background: #EDEFF3; border-radius: 12px; padding: 10px; min-height: 140px; }
.col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; justify-content: space-between; padding: 2px 4px 8px; }
.dcard { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: block; box-shadow: var(--shadow); }
.dcard:hover { border-color: var(--border-strong); }
.dcard .t1 { font-weight: 650; font-size: 13px; }
.dcard .v { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.timeline li::after { content: ""; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.k-contract::before { background: var(--revenue); }
.timeline li.k-claim::before, .timeline li.k-stage_change::before { background: var(--accent); }
.timeline .when { font-size: 11.5px; color: var(--faint); }

/* ---------- message */
.msg { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.msg-head { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.msg-body { padding: 14px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; }
.msg-subject { font-weight: 650; padding: 10px 14px 0; }
.msg-actions { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ---------- flash / empty */
.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: 10px; font-weight: 550; border: 1px solid; }
.flash.success { background: var(--revenue-soft); color: #075E42; border-color: #BDE9D7; }
.flash.warn { background: #FFF4E0; color: #7A4B00; border-color: #F2D49B; }
.flash.error { background: var(--danger-soft); color: #8A1C14; border-color: #F4C3BE; }
.flash.info { background: var(--cold-soft); color: #1E3A8A; border-color: #C9DAFC; }
.empty { text-align: center; padding: 40px 24px; }
.empty .ico { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.empty h3 { font-size: 15px; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-color: var(--accent); }
.tabs a .c { font-size: 11px; background: #EEF0F4; border-radius: 99px; padding: 1px 6px; margin-left: 4px; }
.pager { display: flex; gap: 6px; justify-content: center; padding: 14px; }
.callout { border-radius: 10px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.callout.warn { background: var(--warm-soft); border-color: #F7D9A8; color: #7A4405; }
.callout.danger { background: var(--danger-soft); border-color: #F4C3BE; color: #8A1C14; }
.callout.ok { background: var(--revenue-soft); border-color: #BDE9D7; color: #075E42; }
.callout.demo { background: var(--demo-soft); border-color: #D9C8FB; color: #4C1D95; }
.funnel-row { display: grid; grid-template-columns: 220px 1fr 80px; gap: 12px; align-items: center; padding: 8px 0; }
.funnel-row .bar { height: 22px; border-radius: 6px; }
.funnel-row .bar > i { border-radius: 6px; background: linear-gradient(90deg, var(--accent), #FF8A5C); }
.source { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.source a { color: var(--cold); text-decoration: underline; word-break: break-all; }
.sep { color: var(--border-strong); }

/* ---------- celebration */
.won { max-width: 640px; margin: 24px auto; text-align: center; }
.won .confetti { font-size: 56px; }
.won h1 { font-size: 34px; letter-spacing: -0.02em; margin: 6px 0 4px; }
.won .lines { text-align: left; margin-top: 22px; }
.won .lines div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.won .lines .fee { font-weight: 800; color: var(--accent-2); }

/* ---------- public */
.pub-nav { display: flex; align-items: center; gap: 16px; padding: 18px 40px; max-width: 1200px; margin: 0 auto; }
.pub-nav .spacer { flex: 1; }
.pub-nav .brand { padding: 0; color: var(--ink); }
.landing-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.landing-hero .pub-nav { color: #fff; }
.landing-hero .pub-nav .brand { color: #fff; }
.landing-hero .inner { max-width: 1200px; margin: 0 auto; padding: 72px 40px 96px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.landing-hero h1 { font-size: 56px; line-height: 1.02; font-weight: 850; letter-spacing: -0.035em; margin: 14px 0 18px; }
.landing-hero h1 em { font-style: normal; color: var(--accent); }
.landing-hero .lead { font-size: 18px; color: #B9C3DA; max-width: 540px; }
.landing-hero .sub-cta { color: #8FA0C4; font-size: 13px; margin-top: 12px; }
.mock { background: #fff; color: var(--text); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px 0; transform: rotate(-1deg); }
.mock .opp { grid-template-columns: 44px 1fr auto; padding: 12px 16px; }
.mock .score, .mock .score svg { width: 44px; height: 44px; }
.section { max-width: 1200px; margin: 0 auto; padding: 80px 40px; }
.section h2.big { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.section .intro { color: var(--muted); font-size: 17px; max-width: 640px; margin-top: 12px; }
.steps5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 36px; }
.steps5 .card { padding: 18px; }
.steps5 .k { font-weight: 800; color: var(--accent); font-size: 13px; }
.flow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 28px; font-weight: 800; font-size: 20px; }
.flow span.arrow { color: var(--faint); }
.flow .pill { background: var(--surface); border: 1px solid var(--border); padding: 10px 18px; border-radius: 99px; }
.pay { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.calc { font-family: var(--mono); background: var(--ink); color: #E6ECFA; border-radius: 14px; padding: 22px 24px; font-size: 15px; line-height: 1.9; }
.calc b { color: #4BE3A7; }
.foods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.foods .card { padding: 22px; font-weight: 750; font-size: 16px; }
.footer { color: var(--muted); font-size: 12.5px; text-align: center; padding: 32px; }
.auth { max-width: 420px; margin: 48px auto; }
.auth .card { padding: 28px; }
.auth.wide { max-width: 960px; padding: 0 16px; }
.scroll-x { overflow-x: auto; }
.menu-text { white-space: pre-line; }
.disclaimer { font-size: 12px; color: var(--muted); }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .g-main, .g3, .g4 { grid-template-columns: 1fr; }
  .landing-hero .inner { grid-template-columns: 1fr; }
  .steps5, .foods { grid-template-columns: 1fr 1fr; }
  .hero-kpi { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2 { grid-template-columns: minmax(0, 1fr); }
  .landing-hero h1 { font-size: 38px; }
  .landing-hero .inner, .section, .pub-nav { padding-left: 16px; padding-right: 16px; }
  .opp { grid-template-columns: 44px 1fr; }
  .opp .pot { grid-column: 2; text-align: left; }
  .funnel-row { grid-template-columns: 1fr; }
}
[dir=rtl] .opp .pot { text-align: left; }

/* Facture / reçu imprimable */
.invoice .lines div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line, #e5e5e5); }
.invoice .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.invoice .sign div { border-top: 1px solid currentColor; padding-top: 8px; min-height: 64px; }
@media print {
  .sidebar, .topbar, .flashes, .demo-banner, .no-print { display: none !important; }
  .shell, .main, .content { display: block !important; margin: 0 !important; padding: 0 !important; }
  .invoice { box-shadow: none !important; border: 0 !important; }
}

/* Contrat de partenariat */
.agreement h1 { font-size: 22px; margin-bottom: 8px; }
.agreement h2 { font-size: 16px; margin: 20px 0 6px; }
.agreement p { margin: 6px 0; line-height: 1.55; }
.agreement p.li { padding-left: 16px; }
.agreement .sign p { margin: 4px 0; }
.co-nav .co-name { font-size: 15px; }
.co-nav a.on { color: var(--ink); font-weight: 600; }
.co-nav { flex-wrap: wrap; }
.co-links { display: contents; }
@media (max-width: 1100px) {
  /* Tablette et téléphone : marque + déconnexion sur une ligne, menu en bandeau qu'on fait glisser du doigt */
  .co-nav { gap: 10px; padding-top: 12px; padding-bottom: 8px; }
  .co-nav .co-name { order: 1; flex-basis: 100%; font-size: 14px; }
  .co-nav .spacer { display: none; }
  .co-nav form.inline { margin-left: auto; }
  .co-links { order: 2; display: flex; gap: 6px; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 2px 0 6px; }
  .co-links::-webkit-scrollbar { display: none; }
  .co-links a { flex: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--surface);
    border: 1px solid var(--border); font-size: 14px; }
  .co-links a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
  .co-links .bell { margin-right: 0; }
  .co-links a.on .icon { color: #fff; }
}

/* Notifications */
.bell { position: relative; display: inline-flex; align-items: center; color: var(--ink); margin-right: 12px; }
.bell .icon { width: 20px; height: 20px; }
.bell-n { position: absolute; top: -6px; right: -9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 6px; line-height: 17px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notifs { list-style: none; margin: 0; padding: 0; }
.notifs li { padding: 14px 4px; border-bottom: 1px solid var(--line, #e7e9ef); display: flex; gap: 14px; align-items: flex-start; }
.notifs li:last-child { border-bottom: 0; }
.notifs li.new { background: rgba(255, 79, 31, .06); border-radius: 8px; padding-left: 12px; }
.notifs .dot { width: 8px; height: 8px; border-radius: 99px; margin-top: 7px; flex: none; background: transparent; }
.notifs li.new .dot { background: var(--accent); }
.notifs .what { flex: 1; min-width: 0; }
.notifs .what p { margin: 4px 0 0; white-space: pre-line; }
.notifs .when { font-size: 12px; white-space: nowrap; }

/* Négociation du prix */
.offers { list-style: none; margin: 6px 0 10px; padding: 0; font-size: 13px; }
.offers li { padding: 4px 0 4px 10px; border-left: 2px solid var(--line, #e7e9ef); }
.offers li.mine { border-left-color: var(--accent); }
.offer-form input[name=note] { width: 100%; max-width: 360px; }
.mb-s { margin-bottom: 8px; }

/* Commande par salarié : étiquettes à coller sur les boîtes */
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.label-card { border: 1.5px dashed var(--border-strong); border-radius: 8px; padding: 12px; background: var(--surface); break-inside: avoid; }
.label-name { font-weight: 700; font-size: 17px; }
.label-dish { margin-top: 4px; }
.label-allergy { margin-top: 6px; font-weight: 700; color: var(--danger); }
.label-foot { margin-top: 8px; font-size: 12px; opacity: .7; }
@media print { .labels { grid-template-columns: repeat(3, 1fr); } .label-card { border-color: #000; } }
.dish-choice { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); }
.dish-choice:last-of-type { border-bottom: 0; }
.dish-choice.on { font-weight: 600; }

/* Téléphone : menu en bandeau défilant, tableaux défilants, longs liens coupés */
.content { overflow-wrap: break-word; }
@media (max-width: 760px) {
  .sidebar { padding: 10px 12px; }
  .sidebar .brand { margin-bottom: 8px; }
  .sidebar .nav { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .sidebar .nav a { white-space: nowrap; flex: none; }
  .sidebar .nav-label { display: none; }
  .sidebar-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
  .sidebar-foot > * { margin-top: 0 !important; }
  .topbar { flex-wrap: wrap; gap: 8px; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .topbar .muted { display: none; }
  .kanban { overflow-x: auto; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { min-width: 0; }
}
.main { min-width: 0; }

.brand .tagline { font-style: italic; font-size: 13px; color: var(--muted); margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line, #ddd); white-space: nowrap; }
@media (max-width: 640px) { .brand .tagline { display: none; } }
@media (max-width: 1500px) { .brand .tagline.wide-only { display: none; } }

/* Tablette et téléphone : un tableau trop large défile dans sa carte au lieu d'élargir la page */
@media (max-width: 1100px) {
  .content table.t, .auth table.t { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
input[type=file] { max-width: 100%; }
.mono { overflow-wrap: anywhere; }
.grid > * { min-width: 0; }

@media (max-width: 1100px) {
  .content table.t th, .auth table.t th { white-space: nowrap; }
  .shell { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 760px) { .shell { grid-template-columns: minmax(0, 1fr); } }
.kpi { min-width: 0; } .kpi .label { hyphens: auto; overflow-wrap: anywhere; }
