/* EasySearch — built on the N. design system (tokens + components copied 1:1
   from the norrah platform stylesheet; fonts loaded from Google Fonts). */

:root {
  --paper: #F6F2EA;
  --paper-2: #EFE9DC;
  --surface: #FCFAF5;
  --surface-2: #FBF7EE;
  --ink: #1B1815;
  --ink-2: #3A352F;
  --ink-3: #6E665C;
  --ink-4: #A39C90;
  --hair: rgba(27, 24, 21, 0.10);
  --hair-strong: rgba(27, 24, 21, 0.16);

  --under: oklch(0.56 0.09 145);
  --under-bg: oklch(0.93 0.04 145);
  --over: oklch(0.62 0.16 50);
  --over-bg: oklch(0.94 0.06 60);
  --neutral-chip: oklch(0.93 0.01 70);
  --hi: oklch(0.86 0.13 95);
  --red: #E1342A;

  --ui: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.45;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(225,52,42,0.16); }

/* ---------- top nav ---------- */
.topnav {
  background: var(--surface);
  border-bottom: 1px solid var(--hair);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 22px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; cursor: pointer; }
.brand .dot { color: var(--red); font-weight: 700; margin-left: 0.5px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-size: 13.5px;
  color: var(--ink-2); font-weight: 500; display: flex; align-items: center; gap: 7px;
  transition: background 0.12s ease; cursor: pointer;
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a.active { color: var(--ink); position: relative; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red); border-radius: 2px;
}
.spacer { flex: 1; }

/* global CFC filter in nav */
.navcfc { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.navcfc-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.navcfc-btn:hover { background: var(--paper-2); }
.navcfc-btn.on { border-color: var(--ink); color: var(--ink); }
.navcfc-count { background: var(--ink); color: var(--surface); border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; display: inline-grid; place-items: center; font-family: var(--mono); font-size: 11px; }
.navcfc-chips { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.navcfc-clear { font-size: 12px; color: var(--red); cursor: pointer; white-space: nowrap; }
.navcfc-pop { position: absolute; top: calc(100% + 8px); left: 0; width: 330px; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 12px; padding: 12px; box-shadow: 0 12px 40px rgba(27,24,21,0.14); z-index: 60; }
@media (max-width: 980px) { .navcfc-chips { display: none; } }

.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--hair);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--ink-3);
  min-width: 280px; transition: border-color 0.12s;
}
.nav-search:focus-within { border-color: var(--ink); }
.nav-search input { background: transparent; border: 0; outline: 0; flex: 1; font-size: 13px; color: var(--ink); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--hair);
  background: var(--surface); display: grid; place-items: center; position: relative; color: var(--ink-2);
}
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 2px solid var(--surface); }

/* ---------- notifications ---------- */
.notif { position: relative; display: flex; }
.notif-pop {
  position: absolute; top: calc(100% + 10px); right: 0; width: 392px;
  background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(27,24,21,0.16); z-index: 60; overflow: hidden;
}
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px; border-bottom: 1px solid var(--hair); }
.notif-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.notif-body { max-height: 60vh; overflow-y: auto; padding: 6px 0; }
.notif-grp { padding: 6px 0; }
.notif-grp + .notif-grp { border-top: 1px solid var(--hair); }
.notif-grp-head {
  display: flex; align-items: center; gap: 7px; padding: 6px 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 9px 16px; cursor: pointer; position: relative; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread::before {
  content: ''; position: absolute; left: 6px; top: 15px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--red);
}
.notif-item-title { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.notif-item.unread .notif-item-title { font-weight: 600; }
.notif-item-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }
.notif-time { font-size: 11px; color: var(--ink-4); white-space: nowrap; margin-top: 1px; }
.notif-foot {
  text-align: center; padding: 12px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  border-top: 1px solid var(--hair); cursor: pointer;
}
.notif-foot:hover { background: var(--surface-2); color: var(--ink); }
/* notifications page rows */
.notif-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; position: relative; }
.notif-row + .notif-row { border-top: 1px solid var(--hair); }
.notif-row:hover { background: var(--surface-2); }
.notif-bullet { width: 7px; height: 7px; border-radius: 50%; background: transparent; flex: 0 0 auto; }
.notif-row.unread .notif-bullet { background: var(--red); }
.notif-row.unread .notif-item-title { font-weight: 600; }
.avatar {
  width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: var(--surface);
  display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; flex-shrink: 0;
}
button.avatar { border: 0; cursor: pointer; }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.avatar.sq, .avatar-sq { border-radius: 10px; }
.avatar.sq { width: 44px; height: 44px; font-size: 14px; }

/* ---------- account dropdown ---------- */
.acctmenu { position: relative; display: flex; }
.acctmenu-pop {
  position: absolute; top: calc(100% + 10px); right: 0; width: 268px;
  background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(27,24,21,0.16); z-index: 60; overflow: hidden; padding: 6px;
}
.acctmenu-id { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }
.acctmenu-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.acctmenu-mail { font-size: 12px; color: var(--ink-3); }
.acctmenu-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.acctmenu-item:hover { background: var(--surface-2); }
.acctmenu-item.danger { color: var(--red); border-top: 1px solid var(--hair); margin-top: 6px; border-radius: 0 0 9px 9px; }
.acctmenu-item.danger:hover { background: rgba(225,52,42,0.06); }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 20px; background: var(--paper); }
.auth-card { width: 100%; max-width: 424px; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 18px; padding: 34px 34px 30px; box-shadow: 0 24px 60px rgba(27,24,21,0.10); }
.auth-brand { font-size: 18px; font-weight: 600; justify-content: center; margin-bottom: 22px; }
.auth-title { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.02em; }
.auth-sub { font-size: 13.5px; color: var(--ink-3); margin: 0 0 22px; line-height: 1.45; }
.auth-seg { display: flex; width: 100%; margin-bottom: 22px; }
.auth-seg button { flex: 1; justify-content: center; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.field-lbl { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.auth-field input {
  width: 100%; height: 42px; border: 1px solid var(--hair-strong); border-radius: 10px; padding: 0 13px;
  font-size: 14px; font-family: var(--ui); color: var(--ink); background: var(--surface); outline: 0; box-sizing: border-box;
}
.auth-field input:focus { border-color: var(--ink); }
.field-hint { font-size: 11.5px; color: var(--ink-4); line-height: 1.4; }
.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.checkbox.sm { font-size: 12.5px; padding: 0; }
.auth-link { color: var(--red); cursor: pointer; font-weight: 500; }
.auth-fine { font-size: 11.5px; color: var(--ink-4); line-height: 1.45; }
.auth-submit { height: 44px; justify-content: center; font-size: 14.5px; margin-top: 4px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 18px; }
.auth-foot { font-size: 12px; color: var(--ink-4); }

/* ---------- account area ---------- */
.acct-layout { display: grid; grid-template-columns: 248px 1fr; gap: 36px; align-items: start; }
.acct-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 92px; }
.acct-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.acct-nav-item:hover { background: var(--surface-2); color: var(--ink); }
.acct-nav-item.on { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.acct-id { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--hair); }
.acct-fields { display: flex; flex-direction: column; }
.acct-field { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-size: 14px; border-bottom: 1px dashed var(--hair); }
.acct-field:last-child { border-bottom: 0; }
.btn.danger, .btn-ghost.danger { color: var(--red); }
.btn-ghost.danger:hover { background: rgba(225,52,42,0.06); }

/* alerts */
.alert-note { display: flex; gap: 11px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--hair); border-radius: 12px; padding: 13px 15px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.alert-row { display: flex; align-items: flex-start; gap: 13px; padding: 14px 18px; }
.alert-row + .alert-row { border-top: 1px solid var(--hair); }
.alert-row.paused { opacity: 0.6; }
.alert-kind { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.alert-kind.filter { background: rgba(225,52,42,0.08); color: var(--red); }
.alert-kind.company { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--hair); }
.alert-tag { font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--hair); border-radius: 5px; padding: 2px 6px; font-weight: 500; }
.alert-tag.muted-tag { color: var(--ink-4); }
.icon-act { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--hair); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-act:hover { background: var(--surface-2); }
.icon-act.danger { color: var(--red); }
.icon-act.danger:hover { background: rgba(225,52,42,0.06); }
.follow-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }

/* notification preferences toggle */
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; cursor: pointer; }
.pref-row + .pref-row { border-top: 1px solid var(--hair); }
.switch { width: 40px; height: 23px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--hair-strong); position: relative; flex-shrink: 0; transition: background 0.15s; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(27,24,21,0.2); transition: left 0.15s; }
.switch.on { background: var(--ink); border-color: var(--ink); }
.switch.on .knob { left: 19px; }

/* watch-criteria button on filter rails */
.watch-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  height: 38px; margin-top: 6px; border-radius: 10px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 500; font-family: var(--ui); cursor: pointer;
}
.watch-btn:hover { background: var(--ink-2); }
.watch-btn.done { background: var(--under-bg); color: var(--under); border-color: oklch(0.82 0.08 145); }
.gap-24 { gap: 24px; }

/* ---------- page ---------- */
.page { flex: 1; padding: 32px 48px 72px; max-width: 1440px; width: 100%; margin: 0 auto; }
.page-wide { max-width: 1440px; }

/* ---------- statistiques ---------- */
.stat-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); margin-bottom: 18px; }
.stat-ctl { display: flex; flex-direction: column; gap: 7px; }
.stat-ctl-grow { flex: 1; min-width: 200px; }
.stat-ctl-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.stat-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-kpi { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 16px 18px; }
.stat-kpi .k { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.stat-kpi .v { font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; }
.stat-var { font-size: 13px; font-weight: 500; margin-left: 4px; }
.stat-var.up { color: var(--under); }
.stat-var.down { color: var(--over); }
.stat-chart-card { padding: 22px 24px; }
.stat-chart { display: flex; align-items: flex-end; gap: 18px; height: 360px; padding-top: 24px; }
.stat-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.stat-col-total { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.stat-bar { width: 100%; max-width: 76px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 0 0; overflow: hidden; flex-shrink: 0; transition: height 0.35s cubic-bezier(0.4,0,0.2,1); }
.stat-seg { min-height: 2px; transition: flex-grow 0.35s; }
.stat-seg:first-child { } 
.stat-bar.solid { background: var(--red); min-height: 4px; transition: height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s, filter 0.18s; }
.stat-col.clickable { cursor: pointer; border-radius: 8px 8px 0 0; transition: background 0.16s; outline: none; }
.stat-col.clickable:hover { background: var(--paper-2); }
.stat-col.clickable:hover .stat-bar.solid { filter: brightness(1.06) saturate(1.05); opacity: 1 !important; }
.stat-col.clickable:hover .stat-col-name { text-decoration: underline; text-underline-offset: 2px; }
.stat-col.clickable:focus-visible { box-shadow: 0 0 0 2px var(--red); background: var(--paper-2); }
.stat-col-lbl { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.stat-col-lbl.canton { font-family: var(--ui); display: flex; flex-direction: column; align-items: center; gap: 4px; height: 58px; flex-shrink: 0; overflow: hidden; justify-content: flex-start; text-align: center; }
.stat-col-name { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; height: 2.5em; flex-shrink: 0; }
.stat-rank { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--ink-4); letter-spacing: 0.02em; flex-shrink: 0; }
.stat-chart-head { display: flex; align-items: flex-end; gap: 14px 18px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.stat-sub { margin-left: auto; align-self: flex-end; }
.stat-drop { display: inline-flex; flex-direction: column; gap: 3px; }
.stat-drop-lbl { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.stat-drop select { background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--ink); font-family: var(--ui); cursor: pointer; max-width: 200px; }
.stat-drop select:focus { outline: none; border-color: var(--ink); }
/* combobox Entreprise (typeahead) — même gabarit que stat-drop select */
.stat-combo { position: relative; }
.stat-combo-btn { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; max-width: 230px; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--ink); font-family: var(--ui); cursor: pointer; text-align: left; }
.stat-combo-btn:hover { border-color: var(--ink-3); }
.stat-combo-btn.has-val { border-color: var(--ink); }
.stat-combo-val { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-combo-caret { color: var(--ink-4); font-size: 10px; }
.stat-combo-x { color: var(--ink-3); font-size: 15px; line-height: 1; padding: 0 2px; border-radius: 4px; }
.stat-combo-x:hover { color: var(--red); background: var(--paper-2); }
.stat-combo-input { min-width: 150px; max-width: 230px; background: var(--surface); border: 1px solid var(--ink); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--ink); font-family: var(--ui); }
.stat-combo-input:focus { outline: none; }
.stat-combo-pop { top: calc(100% + 6px); left: 0; right: auto; min-width: 240px; max-height: 320px; overflow-y: auto; }
/* popover CFC drill-in (réutilise CfcFilter) : flotte au-dessus, largeur confortable */
.stat-cfc-pop { top: calc(100% + 6px); left: 0; right: auto; width: 320px; max-width: 90vw; padding: 12px; }
.stat-cfc-pop .cfc-drill-list { max-height: 280px; overflow-y: auto; }
.stat-combo-opt { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.stat-combo-opt-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-combo-opt-code { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-2); min-width: 42px; }
.stat-combo-opt-k { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
.stat-dimfilter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.stat-dimfilter-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.stat-leader { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
/* montant du leader (Principal adjudicataire) agrandi, aligné à droite de la carte */
.stat-leader-amt { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--under); white-space: nowrap; margin-left: auto; }
.stat-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair); align-items: center; }
.stat-leg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; user-select: none; }
.stat-leg.off { opacity: 0.35; }
.stat-leg-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
@media (max-width: 720px) { .stat-kpis { grid-template-columns: 1fr; } }

/* ---------- type ---------- */
h1 { font-size: 30px; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 6px; line-height: 1.15; }
h2 { font-size: 20px; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.005em; }
.muted { color: var(--ink-3); }
.tiny { font-size: 12px; }
.eyebrow { font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.num { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.red { color: var(--red); }

/* ---------- primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 20px; }
.card-hover { transition: transform 0.12s ease, border-color 0.12s ease; cursor: pointer; }
.card-hover:hover { border-color: var(--hair-strong); transform: translateY(-1px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; background: var(--neutral-chip); color: var(--ink-2);
  border: 1px solid var(--hair); white-space: nowrap;
}
.chip.trade { background: var(--surface-2); color: var(--ink-2); display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.chip.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.chip.status-receiving { background: var(--over-bg); color: var(--over); border-color: oklch(0.85 0.10 60); }
.chip.status-awarded { background: var(--under-bg); color: var(--under); border-color: oklch(0.82 0.08 145); }
.chip.status-open { background: oklch(0.93 0.05 80); color: oklch(0.42 0.12 60); border-color: oklch(0.85 0.10 75); }
.chip.new { background: rgba(225,52,42,0.10); color: var(--red); border-color: rgba(225,52,42,0.30); }
.chip.removable { cursor: pointer; padding-right: 6px; }
.chip.removable .x { color: var(--ink-3); display: inline-grid; place-items: center; }
.chip.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip.refine { background: rgba(225,52,42,0.08); color: var(--red); border-color: rgba(225,52,42,0.45); }
.chip.clickable { transition: border-color 0.1s, background 0.1s; }
.chip.clickable:hover { border-color: var(--ink); background: var(--surface-2); }

/* locked / gated contact (visible to logged-in members only) */
.locked { position: relative; }
.locked-blur { filter: blur(5px); opacity: 0.5; user-select: none; pointer-events: none; }
.locked-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 6px; }
.locked-badge { width: 34px; height: 34px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair-strong); display: grid; place-items: center; }
.locked-msg { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.locked-over .btn { width: 100%; }
.nav-login { white-space: nowrap; }

/* page search suggestions */
.search-suggest { position: relative; }
.sugg-pop { position: absolute; top: 52px; left: 0; right: 0; z-index: 40; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 12px; box-shadow: 0 18px 48px rgba(27,24,21,0.14); overflow: hidden; padding: 6px 0; max-height: 60vh; overflow-y: auto; }
.sugg-grp { padding: 4px 0; }
.sugg-grp + .sugg-grp { border-top: 1px solid var(--hair); }
.sugg-grp-head { font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); padding: 6px 16px 4px; }
.sugg-hint { padding: 9px 16px; font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--hair); background: var(--surface-2); border-radius: 0 0 12px 12px; }
.sugg-item { padding: 8px 16px; font-size: 14px; cursor: pointer; }
.sugg-item:hover { background: var(--surface-2); }
.sugg-item.sugg-cat { display: flex; align-items: center; gap: 9px; }

/* footer */
.footer { border-top: 1px solid var(--hair); margin-top: 40px; background: var(--surface); }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 32px 48px 18px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-tag { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-links a { font-size: 13px; color: var(--ink-2); cursor: pointer; }
.footer-links a:hover { color: var(--ink); }
.footer-note { max-width: 1440px; margin: 0 auto; padding: 14px 48px 30px; font-size: 12px; color: var(--ink-4); line-height: 1.5; border-top: 1px solid var(--hair); }
/* SIMAP source note on award detail */
.simap-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 22px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--hair); border-radius: var(--r-md); font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
/* adjudicataire (winner) full-width bar on award detail */
.winner-bar { background: var(--paper-2); border: 1px solid var(--hair-strong); border-radius: var(--r-lg); padding: 18px 22px; margin-bottom: 28px; }
.winner-main { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.winner-id { display: flex; align-items: center; gap: 13px; }
.winner-name { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.winner-spacer { flex: 1; min-width: 12px; }
.winner-amt { display: flex; align-items: baseline; gap: 10px; }
.winner-amt .num { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
/* open-tender objet / calendrier / conditions */
.obj-desc { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 28px; max-width: 64ch; text-wrap: pretty; }
.cal-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px 0; padding: 6px 0; }
.cal-cell { padding: 12px 18px; }
.cal-cell .k { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.cal-cell .v { font-size: 14px; margin-top: 4px; font-weight: 500; }
.cond-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface); color: var(--ink-3); }
.cond-chip.yes { color: var(--ink-2); border-color: oklch(0.82 0.08 145); background: var(--under-bg); }
.locked-inline { cursor: pointer; }
.locked-inline .locked-blur { filter: blur(4px); opacity: 0.6; display: block; }
.locked-inline-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: var(--red); font-weight: 500; }
@media (max-width: 720px) { .cal-grid { grid-template-columns: 1fr 1fr; } }
.winner-actions { display: flex; gap: 8px; }
.winner-actions .btn { min-width: 96px; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--hair); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 500; white-space: nowrap; transition: all 0.12s ease;
}
.btn:hover { background: var(--paper-2); }
.btn-primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-lg { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.under { color: var(--under); }
.over { color: var(--over); }
.delta { font-family: var(--mono); font-size: 12px; font-weight: 500; }

/* ---------- KPI ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-row.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 18px 20px; }
.kpi .label { font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.kpi .value { font-family: var(--mono); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.kpi-labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kpi-valrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kpi .foot { font-size: 12px; color: var(--ink-3); margin-top: 10px; display: flex; align-items: center; gap: 6px; }

/* ---------- avatars ---------- */
.avatar-sq {
  width: 40px; height: 40px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--hair);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; flex-shrink: 0; color: var(--ink-2);
}
.avatar-sq.lg { width: 56px; height: 56px; font-size: 15px; border-radius: 12px; }
.avatar-sq.xl { width: 64px; height: 64px; font-size: 17px; border-radius: 14px; }
.avatar-sq.sm { width: 32px; height: 32px; font-size: 11px; border-radius: 8px; }

/* ---------- rows / dividers / layout utils ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.divider { height: 1px; background: var(--hair); width: 100%; margin: 16px 0; }
.divider.dashed { background: none; border-top: 1px dashed var(--hair-strong); height: 0; }
.vdivider { width: 1px; background: var(--hair); align-self: stretch; }
.stack { display: flex; flex-direction: column; }
.h-row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-4{gap:4px}.gap-6{gap:6px}.gap-8{gap:8px}.gap-10{gap:10px}.gap-12{gap:12px}.gap-14{gap:14px}.gap-16{gap:16px}.gap-20{gap:20px}.gap-24{gap:24px}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flex1 { flex: 1; }
.minw0 { min-width: 0; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- breadcrumb / page head ---------- */
.breadcrumb { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.breadcrumb:hover { color: var(--ink); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.head-kpis { display: flex; gap: 0; align-items: flex-end; flex-wrap: nowrap; justify-content: flex-end; flex-shrink: 0; }
.head-kpi { padding: 0 32px; border-left: 1px solid var(--hair-strong); }
.head-kpi:first-child { padding-left: 0; border-left: 0; }
.head-kpi:last-child { padding-right: 0; }
.head-kpi .hk-v { font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--ink); white-space: nowrap; }
.head-kpi .hk-l { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 860px) { .head-kpis { display: none; } }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sec-link { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.sec-link:hover { color: var(--ink); }

/* ---------- form ---------- */
.field { display: block; margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.input, .select {
  width: 100%; background: var(--surface); border: 1px solid var(--hair); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; outline: 0; transition: border-color 0.12s ease; color: var(--ink);
}
.input:focus, .select:focus { border-color: var(--ink); }
.checkbox { display: flex; align-items: center; font-size: 13px; cursor: pointer; user-select: none; line-height: 1.2; padding: 4px 0; }
.checkbox .box {
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ink-3); display: inline-flex;
  align-items: center; justify-content: center; background: var(--surface); flex-shrink: 0; line-height: 0; margin-right: 10px; color: transparent;
}
.checkbox.on .box { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.checkbox .cnt { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num-cell { font-family: var(--mono); text-align: right; }
.tbl tbody tr.clickable { cursor: pointer; transition: background 0.1s; }
.tbl tbody tr.clickable:hover { background: var(--surface-2); }

/* ---------- placeholder ---------- */
.placeholder-img {
  background: repeating-linear-gradient(135deg, rgba(27,24,21,0.04) 0 8px, transparent 8px 16px), var(--paper-2);
  border: 1px solid var(--hair); border-radius: var(--r-md); display: grid; place-items: center;
  color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-align: center; padding: 16px;
}

/* =====================================================================
   EasySearch-specific layout (new, built from DS primitives)
   ===================================================================== */

/* search hero */
.hero { padding: 14px 0 6px; }
.hero h1.big { font-size: 40px; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 12px; text-wrap: balance; max-width: 880px; }
.hero .sub { font-size: 16px; color: var(--ink-2); margin: 0 0 22px; }

/* hero layout preview switch */
.hero-switch { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 6px; }
/* split hero (text left + module right) */
.hero-split { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 52px; align-items: center; }
.hero-split h1.big { font-size: 38px; max-width: none; }
.hero-split .search-big { max-width: none; }
.hero-aside { display: flex; flex-direction: column; }
.hero-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 20px; }
/* hero stats band */
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-stat { position: relative; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 20px; text-align: left; font: inherit; cursor: pointer; transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s, background 0.16s; }
.hero-stat:hover { border-color: var(--red); box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-2px); }
.hero-stat:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.hero-stat-v { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.hero-stat-l { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.hero-stat-go { position: absolute; top: 14px; right: 14px; color: var(--ink-4); opacity: 0; transform: translateX(-3px); transition: opacity 0.16s, transform 0.16s, color 0.16s; display: flex; }
.hero-stat:hover .hero-stat-go, .hero-stat:focus-visible .hero-stat-go { opacity: 1; transform: translateX(0); color: var(--red); }
/* tuile KPI sans donnée (fenêtre 30 j vide → valeur "—", non cliquable) — DELTA #52 */
.hero-stat--empty { opacity: 0.4; cursor: default; pointer-events: none; }
@media (max-width: 920px) {
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-aside { order: 2; }
}

/* big search */
.search-big {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1.5px solid var(--ink); border-radius: 12px; padding: 6px 6px 6px 18px; max-width: 760px;
}
.search-big input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--ink); }
.search-big input::placeholder { color: var(--ink-4); }
.search-big .go { height: 48px; }
/* × pour effacer, intégré au champ (à gauche du bouton Rechercher) */
.search-clear { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; background: transparent; color: var(--ink-3); border-radius: 8px; cursor: pointer; flex: none; }
.search-clear:hover { background: var(--paper-2); color: var(--ink); }

/* suggestions */
.suggest-wrap { position: relative; max-width: 760px; }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface);
  border: 1px solid var(--hair-strong); border-radius: 12px; padding: 8px; z-index: 50;
  box-shadow: 0 12px 40px rgba(27,24,21,0.12);
}
.suggest .grp { font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-4); padding: 8px 10px 4px; }
.suggest .opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.suggest .opt:hover { background: var(--paper-2); }
.suggest .opt .k { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.suggest .opt .opt-hint { margin-left: auto; font-size: 11px; color: var(--ink-4); white-space: nowrap; }

/* layout with rail */
.with-rail { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 0; align-items: start; }
.rail { padding-right: 26px; border-right: 1px solid var(--hair); position: sticky; top: 92px; }
.rail-body { padding-left: 28px; min-width: 0; }
.filter-grp { margin-bottom: 22px; }
.filter-grp .ttl { font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 10px; }
.filter-grp .ttl-hint { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-4); font-size: 10.5px; margin-left: 6px; }
.refine-note { font-size: 11px; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--hair); border-radius: 7px; padding: 6px 9px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.refine-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }

/* two-column feed + rail */
.feed-layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 28px; align-items: start; }
.side-stack { display: flex; flex-direction: column; gap: 20px; }
/* homepage 3 equal columns : Adjudications · Appels d'offres · Entreprises */
.feed-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.feed-col { min-width: 0; }
.cfc-cats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }

/* award row */
.award-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.award-row .body { flex: 1; min-width: 0; }
.award-row .title { font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em; }
.award-row .meta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.award-row .chips { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.award-row .right { text-align: right; flex-shrink: 0; }
.award-row .val { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.award-row .sub { font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); margin-top: 4px; }
.award-row .win { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.award-row .award-winner { flex: 0 0 auto; max-width: 210px; min-width: 120px; text-align: right; padding-right: 18px; margin-right: 2px; border-right: 1px solid var(--hair); }
.award-row .aw-lbl { font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-4); }
.award-row .aw-name { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-top: 3px; }
@media (max-width: 760px) { .award-row .award-winner { display: none; } }

/* award card (grid) */
.award-card { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.award-card .title { font-size: 15px; font-weight: 600; line-height: 1.25; }

/* rank rows */
.rank-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--hair); }
.rank-row:last-child { border-bottom: 0; }
.rank-row .rk { font-family: var(--mono); font-size: 13px; color: var(--ink-4); width: 20px; }
.rank-row .nm { font-size: 14px; font-weight: 500; }
.watch-bell { margin-left: auto; position: relative; display: inline-flex; align-items: center; color: var(--ink-2); padding: 0 16px; flex: none; }
.watch-bell .wb-dot { position: absolute; top: -1px; right: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 2px solid var(--paper); }
.rank-row .meta { font-size: 12px; color: var(--ink-3); }
.rank-row .rt { text-align: right; margin-left: auto; }
/* homepage 3-col feed : design harmonisé, lignes de hauteur égale, écart titre/sous-titre constant */
.feed-col .rank-row { height: 72px; box-sizing: border-box; align-items: center; gap: 12px; padding: 9px 0; } /* DELTA #47 : hauteur fixe — titres d'appels sur 2 lignes alignent les 3 colonnes (clamp 2 lignes conservé sur .nm) */
.feed-col .rank-row .rk { align-self: center; }
.feed-col .rank-row .nm { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.32; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.feed-col .rank-row .meta { margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; color: var(--ink-3); }
.feed-col .rank-row .rt { white-space: nowrap; padding-left: 10px; align-self: center; line-height: 1.4; }
.feed-col .rank-row .rt .num:first-child { white-space: nowrap; }
.feed-col .rank-row .rt .val { font-size: 13px; font-weight: 600; color: var(--ink); }
.feed-col .rank-row .rt .sub { font-size: 11px; font-weight: 400; color: var(--ink-4); }

/* cfc row with bar */
.cfc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--hair); }
.cfc-row:last-child { border-bottom: 0; }
.code-badge { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink); border: 1px solid var(--hair-strong); border-radius: 6px; padding: 3px 8px; background: var(--surface-2); }
.bar { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; position: relative; }
.bar > span { position: absolute; inset: 0; background: var(--ink-4); border-radius: 999px; }

/* tabs */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--hair); margin-bottom: 20px; }
.tabs .tab { padding: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--ink-3); cursor: pointer; position: relative; }
.tabs .tab.on { color: var(--ink); }
.tabs .tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }

/* detail layout */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.facts-rail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 0; }
.fact { padding: 12px 0; border-bottom: 1px dashed var(--hair); }
.fact:last-child { border-bottom: 0; }
.fact .k { font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3); }
.fact .v { font-size: 14px; margin-top: 3px; }
.lot-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--hair); }
.lot-row:last-child { border-bottom: 0; }
.lot-clickable { cursor: pointer; margin: 0 -18px; padding-left: 18px; padding-right: 18px; transition: background 0.1s; }
.lot-clickable:hover { background: var(--surface-2); }
.lot-clickable:hover .code-link { border-color: var(--ink); color: var(--ink); }
.code-link { transition: border-color 0.1s, color 0.1s; }
.doc { display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid var(--hair); border-radius: 10px; background: var(--surface); font-size: 13.5px; cursor: pointer; transition: border-color 0.12s; }
.doc:hover { border-color: var(--hair-strong); }
.skel { height: 9px; background: var(--paper-2); border-radius: 6px; }

/* CFC tree */
.tree-node.on { background: var(--ink); color: var(--surface); }
/* compact drill-in CFC filter */
.cfc-sel-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cfc-back { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; padding: 6px 4px; border-radius: 6px; }
.cfc-back:hover { color: var(--ink); background: var(--paper-2); }
.cfc-cur { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); padding: 6px 4px 4px; }
.cfc-drill-list { display: flex; flex-direction: column; gap: 1px; max-height: 300px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.cfc-opt { display: flex; align-items: center; gap: 9px; padding: 6px 6px; border-radius: 7px; font-size: 13px; }
.cfc-opt:hover { background: var(--paper-2); }
.cfc-opt .box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ink-3); display: inline-flex; align-items: center; justify-content: center; background: var(--surface); flex-shrink: 0; color: transparent; cursor: pointer; }
.cfc-opt .box.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.cfc-opt .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; display: flex; align-items: center; gap: 7px; }
.cfc-opt .drill { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; border-radius: 6px; color: var(--ink-3); cursor: pointer; background: transparent; border: 0; }
.cfc-opt .drill:hover { background: var(--hair); color: var(--ink); }
.cfc-opt .drill-spacer { width: 24px; flex-shrink: 0; }
/* CFC quick-jump search */
.cfc-jump { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--hair-strong); border-radius: 8px; padding: 7px 10px; margin-bottom: 10px; }
.cfc-jump:focus-within { border-color: var(--ink); }
.cfc-jump input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.cfc-jump input::placeholder { color: var(--ink-4); }
.cfc-jump-x { border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; padding: 2px; border-radius: 5px; cursor: pointer; }
.cfc-jump-x:hover { background: var(--hair); color: var(--ink); }
.cfc-opt .cfc-path { font-family: var(--mono); font-size: 10px; color: var(--ink-4); margin-left: 7px; letter-spacing: 0.02em; }
.cfc-fallback-note { display: flex; align-items: center; gap: 9px; background: var(--paper-2); border: 1px solid var(--hair-strong); border-radius: 9px; padding: 9px 13px; margin-bottom: 18px; font-size: 13px; color: var(--ink-2); }
.cfc-fallback-note strong { color: var(--ink); font-weight: 600; font-family: var(--mono); }
/* B — recherche transversale : sections + badges de référentiel */
.cfc-cur-other { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; border-top: 1px solid var(--hair); padding-top: 10px; }
.cfc-cur-hint { font-size: 9.5px; letter-spacing: 0.04em; color: var(--red); text-transform: none; }
.cfc-ref-tag { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); background: var(--paper-2); border: 1px solid var(--hair-strong); border-radius: 4px; padding: 1px 4px; flex-shrink: 0; }
.cfc-ref-tag.other { color: var(--red); border-color: oklch(0.78 0.13 27 / 0.45); background: oklch(0.95 0.03 27 / 0.5); }
.cfc-opt-cross { cursor: pointer; }
.cfc-opt-cross:hover { background: oklch(0.95 0.03 27 / 0.4); }
.cfc-opt-cross:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--red); }
.cfc-opt-cross .lbl { cursor: pointer; }
/* specialty autocomplete */
.spec-filter { position: relative; }
.spec-pop { position: absolute; top: 44px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 10px; padding: 6px; z-index: 30; box-shadow: 0 12px 32px rgba(27,24,21,0.12); max-height: 260px; overflow-y: auto; }
.spec-opt { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.spec-opt:hover { background: var(--paper-2); }
.spec-opt b { font-weight: 600; color: var(--ink); }
.tree-node.on .cnt, .tree-node.on .chev { color: var(--surface); }
.tree-wrap { max-height: calc(100vh - 150px); overflow-y: auto; padding-right: 4px; margin-right: -4px; }
.tree-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--hair); border-radius: 8px; padding: 7px 10px; margin-bottom: 12px; }
.tree-search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 13px; }
.tree-node { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.tree-node .lbl, .tree-leaf .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tree-node:hover { background: var(--paper-2); }
.tree-node .chev { color: var(--ink-3); transition: transform 0.12s; display: inline-grid; place-items: center; width: 14px; }
.tree-node .chev.open { transform: rotate(90deg); }
.tree-node .cnt { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); }
.tree-leaf { display: flex; align-items: center; gap: 9px; padding: 7px 9px 7px 30px; border-radius: 8px; cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.tree-leaf:hover { background: var(--paper-2); }
.tree-leaf.on { background: var(--ink); color: var(--surface); }
.tree-leaf.on .cnt, .tree-leaf.on .code-badge { color: var(--surface); }
.tree-leaf .cnt { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); }

/* segmented toggle */
.seg { display: inline-flex; background: var(--paper-2); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(27,24,21,0.08); }
.seg button:disabled, .seg button.is-off { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
/* CAN | CFC referential switch in filter rails */
.seg.seg-cat { margin-bottom: 12px; }
.seg.seg-cat button { font-family: var(--mono); letter-spacing: 0.04em; }
.seg.seg-cat.seg-block { display: flex; width: 100%; }
.seg.seg-cat.seg-block button { flex: 1; justify-content: center; }
.filter-grp .seg.seg-cat { display: flex; width: 100%; }
.filter-grp .seg.seg-cat button { flex: 1; justify-content: center; }

/* canton cartogram (map) */
.cartogram { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.canton-tile {
  aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--hair); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; cursor: pointer; transition: transform 0.1s, border-color 0.1s;
  background: var(--surface);
}
.canton-tile:hover { transform: translateY(-1px); border-color: var(--hair-strong); }
.canton-tile .ab { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.canton-tile .ct { font-family: var(--mono); font-size: 10px; }
.map-legend { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.map-legend .scale { display: flex; gap: 3px; }
.map-legend .sw { width: 16px; height: 10px; border-radius: 3px; border: 1px solid var(--hair); }

/* responsive */
@media (max-width: 1200px) { .nav-search { display: none; } }
@media (max-width: 1080px) {
  .page { padding: 24px 24px 64px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .feed-layout { grid-template-columns: 1fr; }
  .feed-cols { grid-template-columns: 1fr; }
  .cfc-cats-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .facts-rail { position: static; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-search { display: none; }
  .with-rail { grid-template-columns: 1fr; }
  .rail { border-right: 0; border-bottom: 1px solid var(--hair); padding: 0 0 18px; margin-bottom: 18px; position: static; }
  .rail-body { padding-left: 0; }
  .grid-3, .grid-4, .kpi-row, .cartogram { grid-template-columns: 1fr 1fr; }
  .hero h1.big { font-size: 30px; }
}

/* ---------- DELTA #67 — bouton secondaire (Surveiller ce CFC, état suivi) ---------- */
.btn-secondary { background: var(--surface-2); color: var(--ink); border-color: var(--hair-strong); }
.btn-secondary:hover { background: var(--paper-2); }

/* ---------- DELTA #69 — pagination ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.pager-btns { display: flex; align-items: center; gap: 10px; }
.pager-pos { min-width: 48px; text-align: center; }
.pager .btn[disabled] { opacity: 0.4; cursor: default; pointer-events: none; }

/* ---------- DELTA #72 — sélecteur de langue (dropdown topnav) ---------- */
.lang-sw { position: relative; display: inline-flex; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--hair); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 500; font-family: var(--mono, var(--ui)); cursor: pointer; transition: all 0.12s ease; }
.lang-btn:hover { background: var(--paper-2); }
.lang-pop { position: absolute; top: calc(100% + 8px); right: 0; min-width: 164px; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 10px; padding: 6px; box-shadow: 0 12px 40px rgba(27,24,21,0.14); z-index: 60; }
.lang-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.lang-item:hover { background: var(--surface-2); color: var(--ink); }
.lang-item.active { background: var(--paper-2); color: var(--ink); font-weight: 600; }

/* ---------- DELTA #73 — pages légales ---------- */
.legal-sec h2 { color: var(--ink); }
.legal-sec a { cursor: pointer; }

/* ====================================================================
   V7 § Sourcing international — market switcher, Fourniture (Radar),
   Sourcing CH↔SE. Sélecteurs neufs (absents du build). Layout B (#76)
   et cfc-logic ET/OU volontairement non portés.
   ==================================================================== */
body.fourniture-mode {
  --paper: oklch(0.966 0.018 218);
  --paper-2: oklch(0.950 0.025 218);
  --surface: oklch(0.982 0.010 218);
  --surface-2: oklch(0.976 0.014 218);
}
body.fourniture-mode .topnav { border-bottom: 2px solid oklch(0.78 0.08 218); }
body.fourniture-mode .nav-links a.active::after { background: oklch(0.52 0.17 218); }
body.fourniture-mode .brand .dot { color: oklch(0.52 0.17 218); }

/* ---- market switcher bar ---- */
.market-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-top: 1px solid var(--hair);
  background: var(--surface);
}
.mkt-label { font-size: 12px; font-weight: 600; color: var(--ink-4); letter-spacing: 0.06em; text-transform: uppercase; margin-right: 4px; }
.mkt-sel { position: relative; }
.mkt-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px; border-radius: 7px;
  border: 1px solid var(--hair-strong); background: var(--paper);
  font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  font-family: inherit; transition: background 0.1s;
}
.mkt-btn:hover { background: var(--paper-2); }
.mkt-pop {
  position: absolute; bottom: calc(100% + 6px); left: 0; min-width: 148px;
  background: var(--surface); border: 1px solid var(--hair-strong);
  border-radius: 10px; box-shadow: 0 8px 28px rgba(27,24,21,.12); z-index: 200; overflow: hidden;
}
.mkt-opt { padding: 9px 14px; font-size: 13.5px; cursor: pointer; }
.mkt-opt:hover { background: var(--paper-2); }
.mkt-opt.on { font-weight: 600; background: var(--paper); }

/* ---- Fourniture home (radar) ---- */
.page-fourniture { max-width: 1100px; }
.fh-hero { padding: 36px 0 28px; border-bottom: 1px solid var(--hair); margin-bottom: 28px; }
.fh-pair { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; letter-spacing: 0.01em; }
.fh-title { font-size: 28px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.03em; }
.fh-sub { font-size: 14px; color: var(--ink-3); margin: 0 0 22px; max-width: 620px; line-height: 1.55; }
.fh-kpis { display: flex; align-items: center; gap: 0; }
.fh-kpi { display: flex; flex-direction: column; gap: 2px; padding-right: 28px; }
.fh-kpi-n { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); font-family: var(--mono); }
.fh-kpi-l { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.fh-kpi-div { width: 1px; height: 32px; background: var(--hair-strong); margin: 0 28px 0 0; }
.radar-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.radar-section-title { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.radar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 32px; }
.radar-card {
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--r-lg); padding: 18px 20px;
  cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s;
  display: flex; flex-direction: column; gap: 12px;
}
.radar-card:hover { box-shadow: 0 6px 20px rgba(27,24,21,.09); border-color: var(--hair-strong); }
.rc-top { display: flex; align-items: center; gap: 8px; }
.rc-cpv { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.rc-trend { color: oklch(0.52 0.17 218); display: flex; }
.rc-label { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.rc-stats { display: flex; flex-direction: column; gap: 6px; }
.rc-stat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.rc-flag { font-size: 15px; line-height: 1; flex-shrink: 0; }
.rc-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--hair); }
.rc-age { font-size: 11.5px; color: var(--ink-4); }
.rc-go { font-size: 13px; font-weight: 600; color: oklch(0.52 0.17 218); display: flex; align-items: center; gap: 4px; }

/* ---- Sourcing international ---- */
.page-sourcing { max-width: 1200px; }
.src-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.src-pair-badge { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--hair); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; }
.src-country { font-size: 14px; }
.src-arrow-icon { color: var(--ink-3); }
.src-filters { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: 22px; }
.src-filter-label { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.src-cpv-wrap { display: flex; align-items: center; gap: 8px; }
.src-toggle { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.src-toggle input { cursor: pointer; accent-color: oklch(0.52 0.17 218); }
.src-view-btns { display: flex; gap: 4px; margin-left: auto; }
.src-vbtn { height: 28px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--hair); background: transparent; font-size: 12px; font-weight: 500; color: var(--ink-3); cursor: pointer; font-family: inherit; transition: background 0.1s, color 0.1s, border-color 0.1s; }
.src-vbtn:hover { background: var(--paper-2); color: var(--ink); }
.src-vbtn.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* CPV picker */
.cpv-picker { position: relative; }
.cpv-picker-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--hair-strong); background: var(--surface); font-size: 13px; color: var(--ink); cursor: pointer; font-family: inherit; max-width: 340px; transition: border-color 0.1s; }
.cpv-picker-btn:hover { border-color: var(--ink); }
.cpv-code { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.cpv-lbl { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.cpv-picker-pop { position: absolute; top: calc(100% + 6px); left: 0; width: 380px; background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 12px; box-shadow: 0 12px 36px rgba(27,24,21,.14); z-index: 100; overflow: hidden; }
.cpv-opt { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background 0.1s; }
.cpv-opt:hover { background: var(--paper-2); }
.cpv-opt.on { background: var(--paper); font-weight: 600; }
.cpv-count { margin-left: auto; font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }

/* Sourcing columns — Layout A */
.src-cols-a { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.src-col { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.src-col-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--hair); background: var(--paper-2); }
.src-col-flag { font-size: 16px; line-height: 1; }
.src-col-title { font-size: 13px; font-weight: 600; color: var(--ink); flex: 1; }
.src-col-count { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--paper); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--hair); }
.src-empty { padding: 24px 18px; font-size: 13px; color: var(--ink-3); text-align: center; }
.src-disclaimer { display: flex; align-items: flex-start; gap: 7px; padding: 12px 18px; font-size: 11.5px; color: var(--ink-4); line-height: 1.4; border-top: 1px solid var(--hair); background: var(--paper); }

/* Supply tender row */
.supply-tender-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--hair); }
.supply-tender-row:last-of-type { border-bottom: 0; }
.str-main { flex: 1; min-width: 0; }
.str-title { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.str-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.str-budget { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.str-days { font-size: 11.5px; font-weight: 600; color: var(--ink-3); background: var(--paper); border: 1px solid var(--hair); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.str-days.urgent { color: var(--over); background: var(--over-bg); border-color: oklch(0.85 0.10 60); }

/* SE supplier row */
.se-supplier-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--hair); }
.se-supplier-row:last-of-type { border-bottom: 0; }
.sse-init { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; background: oklch(0.88 0.06 218); color: oklch(0.40 0.12 218); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.sse-main { flex: 1; min-width: 0; }
.sse-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.sse-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.sse-wins { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.sse-ch-badge { display: inline-flex; align-items: center; margin-left: 7px; padding: 1px 7px; border-radius: 4px; font-size: 10px; font-weight: 600; background: oklch(0.94 0.04 145); color: oklch(0.42 0.12 145); vertical-align: middle; }
.se-active-ch .sse-init { background: oklch(0.92 0.04 145); color: oklch(0.40 0.12 145); }
.src-toggle-hint { font-size: 11.5px; color: var(--ink-3); margin-left: 2px; }
.src-col-count-sub { font-size: 11px; color: var(--ink-3); font-weight: 400; }
