:root {
  --bg: #fbf6f0;
  --bg-2: #f4ece3;
  --surface: #ffffff;
  --surface-2: #fffaf5;
  --ink: #211d1a;
  --ink-2: #4a433d;
  --muted: #8b8178;
  --line: #ebe1d6;
  --line-2: #f2e9df;
  --accent: #d9533f;
  --accent-2: #c2412f;
  --accent-soft: #fbe5df;
  --accent-ink: #9c3122;
  --green: #2f9466;
  --green-soft: #def3e8;
  --amber: #c98a12;
  --amber-soft: #fbefd2;
  --blue: #3c6fd8;
  --blue-soft: #e2eafb;
  --violet: #7a55c7;
  --violet-soft: #ece4fa;
  --red: #c73a3a;
  --red-soft: #f9dede;
  --shadow-1: 0 1px 2px rgba(60, 40, 20, .06), 0 2px 8px rgba(60, 40, 20, .05);
  --shadow-2: 0 2px 6px rgba(60, 40, 20, .06), 0 12px 32px rgba(60, 40, 20, .09);
  --shadow-3: 0 10px 30px rgba(60, 40, 20, .12), 0 30px 80px rgba(60, 40, 20, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 750; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 650; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.sep { height: 1px; background: var(--line); margin: 14px 0; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer;
  transition: transform .12s ease, background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap; user-select: none;
}
.btn:hover { border-color: #dccfc1; box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(217, 83, 63, .28); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg-2); box-shadow: none; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 16.5px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--red); }
.btn.icon { width: 42px; padding: 0; }
.btn.sm.icon { width: 34px; }
.btn .spin { width: 16px; height: 16px; border-width: 2px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-2); cursor: pointer; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

/* ---------- champs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm);
  padding: 10px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: #e7a597; box-shadow: 0 0 0 4px rgba(217, 83, 63, .12); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.input.lg { height: 52px; font-size: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: 1.5fr 1.3fr 1fr 1fr; gap: 10px; }
.cv-chip { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 6px; background: var(--green-soft); color: var(--green); vertical-align: 1px; }
.field.cv .input { background: #f7fcf9; }
.field.todo .input { border-color: #e9c46a; box-shadow: 0 0 0 3px rgba(201, 138, 18, .10); }
.field.todo > label::after { content: " · à compléter"; color: var(--amber); font-weight: 600; }
.prefill-note { margin-bottom: 14px; line-height: 1.55; }
.prefill-note svg { vertical-align: -3px; margin-right: 4px; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.rows-item { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 12px 8px; background: var(--surface-2); }
.rows-rm { margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; }
input[type=range] { accent-color: var(--accent); width: 100%; }
.switch { position: relative; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #ddd2c6; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(17px); }

/* ---------- puces ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 550; cursor: pointer;
  transition: .15s; user-select: none; white-space: nowrap;
}
.chip:hover { border-color: #dacbbb; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.accent.on { background: var(--accent); border-color: var(--accent); }
.chip .x { opacity: .6; margin-left: 2px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px;
  font-weight: 600; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; line-height: 20px;
}
.badge.green { background: var(--green-soft); color: #1f6e4a; }
.badge.amber { background: var(--amber-soft); color: #8a5d05; }
.badge.red { background: var(--red-soft); color: #a02a2a; }
.badge.blue { background: var(--blue-soft); color: #2a54ad; }
.badge.violet { background: var(--violet-soft); color: #5b3a9e; }
.badge.accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge.dark { background: var(--ink); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card.pad { padding: 20px; }
.card.pad-lg { padding: 28px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

/* ---------- spinner ---------- */
.spin { width: 22px; height: 22px; border: 3px solid rgba(217, 83, 63, .2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg-2), #fbf4ec, var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- toasts & modales ---------- */
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 300; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; box-shadow: var(--shadow-3); font-size: 14px; font-weight: 500; animation: pop .25s ease; max-width: min(560px, 92vw); pointer-events: auto; }
.toast.error { background: #8f2b22; }
.toast.ok { background: #1e5d40; }
@keyframes pop { from { transform: translateY(10px) scale(.97); opacity: 0; } }
.modal-back { position: fixed; inset: 0; background: rgba(33, 29, 26, .42); backdrop-filter: blur(3px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-3); width: min(720px, 100%); max-height: 92vh; overflow: auto; animation: pop .25s; }
.modal.wide { width: min(1000px, 100%); }
.modal-head { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-body { padding: 18px 24px 24px; }
.modal-foot { padding: 0 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }

/* ================= ONBOARDING ================= */
.ob { min-height: 100vh; display: flex; flex-direction: column; background:
  radial-gradient(1100px 500px at 85% -10%, rgba(217, 83, 63, .10), transparent 60%),
  radial-gradient(800px 400px at -10% 110%, rgba(201, 138, 18, .08), transparent 60%), var(--bg); }
.ob-top { width: min(640px, 100% - 32px); margin: 0 auto; padding: 22px 0 8px; }
.ob-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.ob-progress i { flex: 1; height: 4px; border-radius: 9px; background: #eaded2; overflow: hidden; position: relative; }
.ob-progress i.on::after { content: ""; position: absolute; inset: 0; background: var(--accent); border-radius: 9px; animation: grow .4s ease; }
@keyframes grow { from { transform: scaleX(0); transform-origin: left; } }
.ob-nav { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 750; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(217, 83, 63, .35); }
.brand-mark svg { width: 16px; height: 16px; }
.ob-main { width: min(640px, 100% - 32px); margin: 0 auto; padding: 26px 0 60px; flex: 1; }
.ob-main.wide { width: min(1040px, 100% - 32px); }
.ob-main h1 { margin-bottom: 10px; }
.ob-lead { color: var(--ink-2); font-size: 16.5px; margin-bottom: 26px; max-width: 560px; }
.contract-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contract-btn {
  height: 92px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 0 18px;
  box-shadow: var(--shadow-1); transition: .15s; text-align: left;
}
.contract-btn b { font-family: var(--display); font-size: 19px; }
.contract-btn span { font-size: 12.5px; color: var(--muted); }
.contract-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: #e6b5aa; }
.contract-btn.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 83, 63, .18), var(--shadow-2); }
.contract-btn { position: relative; }
.contract-btn .tick {
  position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; transition: .15s;
}
.contract-btn.on .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-proof { margin-top: 28px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-2); font-size: 13.5px; }
.hero-proof span { display: inline-flex; gap: 7px; align-items: center; }
.hero-proof svg { color: var(--accent); }

.loc-box { padding: 6px; }
.loc-input-wrap { position: relative; }
.ac-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); z-index: 30; overflow: hidden; }
.ac-item { padding: 10px 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.ac-item:hover, .ac-item.on { background: var(--bg-2); }
.map { height: 300px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin-top: 14px; background: #efe7dc; }
.radius-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.radius-val { font-family: var(--display); font-weight: 750; font-size: 22px; min-width: 84px; text-align: right; }

.big-count { text-align: center; padding: 40px 0 26px; position: relative; }
.big-count .num { font-family: var(--display); font-size: clamp(64px, 12vw, 110px); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, var(--ink), #5a4d42); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-count .dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(217, 83, 63, .18) 1.2px, transparent 1.4px); background-size: 16px 16px; mask-image: radial-gradient(closest-side, #000, transparent); z-index: -1; }

.drop {
  border: 2px dashed #e0cfbf; border-radius: 20px; background: var(--surface); padding: 34px 20px; text-align: center;
  cursor: pointer; transition: .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: #fff7f3; }
.drop .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 12px; }
.drop.done { border-style: solid; border-color: #bfe0cd; background: #f6fcf8; }

.tag-input { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 7px; min-height: 46px; }
.tag-input input { border: 0; outline: 0; flex: 1; min-width: 140px; padding: 4px 6px; background: transparent; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border-radius: 8px; padding: 3px 8px; font-size: 13px; }
.tag button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 2px; }

.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.branch {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 14px; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 9px; transition: .15s; position: relative;
}
.branch.off { opacity: .55; box-shadow: none; background: var(--surface-2); }
.branch-head { display: flex; gap: 10px; align-items: flex-start; }
.branch-emoji { font-size: 22px; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; flex: none; }
.branch h3 { font-size: 16.5px; }
.branch .jobs { display: flex; flex-wrap: wrap; gap: 5px; }
.branch .jobs span { font-size: 12px; background: var(--bg-2); border-radius: 7px; padding: 2px 7px; color: var(--ink-2); }
.naf-list { display: flex; flex-wrap: wrap; gap: 5px; }
.naf-code { font-size: 11.5px; border: 1px solid var(--line); border-radius: 7px; padding: 1px 6px; background: #fff; cursor: default; }
.naf-code button { border: 0; background: none; padding: 0 0 0 3px; cursor: pointer; color: var(--muted); }
.prio { position: absolute; top: 14px; right: 14px; }

.collect-steps { display: flex; flex-direction: column; gap: 12px; }
.cstep { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cstep .state { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); flex: none; }
.cstep.done .state { background: var(--green-soft); color: var(--green); }
.cstep.run .state { background: var(--accent-soft); }
.bar { height: 8px; border-radius: 9px; background: var(--bg-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #e98a5c); border-radius: 9px; transition: width .5s ease; }

/* ================= APPLICATION ================= */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 240, .86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); height: 64px; display: flex; align-items: center; padding: 0 22px; gap: 22px;
}
.nav { display: flex; gap: 4px; }
.nav a {
  height: 38px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; position: relative;
}
.nav a:hover { background: var(--bg-2); }
.nav a.on { background: var(--ink); color: #fff; }
.nav .count { background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; line-height: 17px; min-width: 17px; text-align: center; }
.nav a.on .count { background: #fff; color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.camp-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13.5px; cursor: pointer; max-width: 340px; }
.camp-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp-pill { min-width: 0; flex-shrink: 1; }
@media (max-width: 1280px) { .camp-pill { max-width: 220px; } }
@media (max-width: 1100px) { .camp-pill span { display: none; } .camp-pill { padding: 0 11px; } }
.page { width: min(1320px, 100% - 36px); margin: 0 auto; padding: 22px 0 60px; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 28px; }

/* ----- deck ----- */
.deck-layout { display: grid; grid-template-columns: 270px 1fr 300px; gap: 22px; align-items: start; }
.filters { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }
.filters .card { padding: 16px; }
.filters h4 { font-size: 13px; font-family: var(--font); font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.filter-branch { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.filter-branch:hover { background: var(--bg-2); }
.filter-branch input { accent-color: var(--accent); }
.filter-branch .n { margin-left: auto; color: var(--muted); font-size: 12px; }
.deck-center { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stack { position: relative; width: min(500px, 100%); height: clamp(460px, calc(100vh - 345px), 580px); }
.swipe-card {
  position: absolute; inset: 0; background: var(--surface); border-radius: 26px; border: 1px solid var(--line);
  box-shadow: var(--shadow-3); padding: 22px; display: flex; flex-direction: column; gap: 12px; touch-action: none;
  user-select: none; cursor: grab; will-change: transform; overflow: hidden;
}
.swipe-card.behind { transform: scale(.955) translateY(16px); box-shadow: var(--shadow-2); filter: saturate(.85); pointer-events: none; }
.swipe-card.behind2 { transform: scale(.91) translateY(32px); box-shadow: var(--shadow-1); opacity: .7; pointer-events: none; }
.swipe-card.dragging { cursor: grabbing; transition: none !important; }
.swipe-card.anim { transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .38s; }
.stamp { position: absolute; top: 26px; padding: 6px 14px; border: 3px solid; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .04em; opacity: 0; transform: rotate(-12deg); pointer-events: none; z-index: 5; background: rgba(255,255,255,.85); }
.stamp.like { left: 22px; color: var(--green); border-color: var(--green); }
.stamp.nope { right: 22px; color: var(--red); border-color: var(--red); transform: rotate(12deg); }
.sc-top { display: flex; gap: 14px; align-items: flex-start; }
.logo-tile { width: 58px; height: 58px; border-radius: 16px; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; box-shadow: inset 0 -8px 16px rgba(0,0,0,.12); overflow: hidden; position: relative; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; background: #fff; position: absolute; inset: 0; padding: 8px; }
.sc-name { font-family: var(--display); font-size: 25px; font-weight: 750; letter-spacing: -.025em; line-height: 1.1; }
.sc-meta { color: var(--ink-2); font-size: 14px; margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.score-ring { width: 56px; height: 56px; flex: none; margin-left: auto; position: relative; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 17px; font-weight: 800; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-why { background: linear-gradient(135deg, #fff7f2, #fdf0e8); border: 1px solid #f6ddd2; border-radius: 16px; padding: 13px 15px; }
.sc-why .k { font-size: 11.5px; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
.sc-desc { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sc-contact { margin-top: auto; display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--line); padding-top: 13px; }
.sc-line { display: flex; align-items: center; gap: 9px; font-size: 14px; min-width: 0; }
.sc-line .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-line svg { flex: none; color: var(--muted); }
.deck-actions { display: flex; gap: 18px; align-items: center; }
.round { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.round:hover { transform: translateY(-2px) scale(1.04); }
.round.nope { color: var(--red); }
.round.like { width: 76px; height: 76px; background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 12px 30px rgba(217, 83, 63, .38); }
.round.small { width: 48px; height: 48px; color: var(--muted); }
.deck-hint { font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; }
.kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 5px; font-size: 11.5px; background: #fff; }
.empty { text-align: center; padding: 60px 24px; color: var(--ink-2); }
.empty .ill { width: 84px; height: 84px; border-radius: 26px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 18px; }
.basket { position: sticky; top: 86px; }
.basket-item { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.basket-item:last-child { border-bottom: 0; }
.mini-logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.stat b { font-family: var(--display); font-size: 21px; display: block; letter-spacing: -.02em; }
.stat span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pipeline-note { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }

/* ----- candidatures ----- */
.apps-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 99px; width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 99px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.tabs .n { color: var(--muted); font-weight: 600; margin-left: 4px; }
.app-list { display: flex; flex-direction: column; max-height: calc(100vh - 230px); overflow: auto; }
.app-item { display: flex; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; align-items: flex-start; }
.app-item:hover { background: var(--surface-2); }
.app-item.on { background: #fff4ef; box-shadow: inset 3px 0 0 var(--accent); }
.app-item .meta { font-size: 12.5px; color: var(--muted); }
.editor { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.editor .textarea.body { min-height: 300px; }
.editor .textarea.letter { min-height: 360px; }
.attach { display: flex; gap: 10px; flex-wrap: wrap; }
.attach-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface-2); font-size: 13.5px; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { border-radius: 16px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); max-width: 92%; }
.msg.out { align-self: flex-end; background: #fff6f1; border-color: #f4ddd3; }
.msg .h { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.msg pre { white-space: pre-wrap; font: inherit; margin: 0; font-size: 14px; }
.queue-banner { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.queue-banner .btn { height: 34px; }

/* ----- tables ----- */
.table-wrap { overflow: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); cursor: pointer; white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t tr:hover td { background: var(--surface-2); cursor: pointer; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px; }

.profile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: start; }
.settings-grid { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.side-nav { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 2px; }
.side-nav a { padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.side-nav a:hover { background: var(--bg-2); }
.side-nav a.on { background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); }
.section { margin-bottom: 18px; }
.section h3 { margin-bottom: 4px; }
.section .desc { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.model-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.help { background: var(--blue-soft); color: #2a4a8f; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; }
.help.amber { background: var(--amber-soft); color: #7a5206; }
.help.green { background: var(--green-soft); color: #1f6b48; }
.help ol, .help ul { margin: 6px 0 0; padding-left: 20px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.drawer-back { position: fixed; inset: 0; background: rgba(33,29,26,.3); z-index: 150; animation: fade .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface); z-index: 160; box-shadow: var(--shadow-3); overflow: auto; animation: slide .25s ease; padding: 24px; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }

@media (max-width: 1180px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
  .deck-layout { grid-template-columns: 240px 1fr; }
  .basket { display: none; }
}
@media (max-width: 900px) {
  .deck-layout, .apps-layout, .settings-grid, .profile-grid { grid-template-columns: 1fr; }
  .filters, .side-nav { position: static; }
  .deck-center { order: -1; }
  .sc-name { font-size: 20px; }
  .swipe-card { padding: 18px; }
  .stack { height: 540px; }
  .contract-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 12px; gap: 10px; overflow-x: auto; }
  .nav a { padding: 0 10px; }
  .nav a .lbl { display: none; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Règles de rédaction et contrôle de style */
.rules summary { cursor: pointer; display: flex; gap: 6px; align-items: center; }
.rules-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); }
.style-check { margin-top: 6px; font-size: 12px; }

/* Comptes : connexion, menu du compte */
.auth .ob-main { max-width: 460px; }
.auth-card { margin-top: 18px; }
.user-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13.5px; cursor: pointer; max-width: 200px; }
.user-pill .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); }
.user-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .user-pill span { display: none; } .user-pill { padding: 0 4px; } }
