/* Relève — système visuel
   Ground clair (usage bureau, journée), rail d'encre, cobalt pour l'action, orange/rouge réservés à l'urgence. */
:root {
  --ground: #f3f4f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --line: #e3e6ec;
  --line-strong: #cfd4dd;
  --ink: #0b1020;
  --ink-2: #363d52;
  --ink-3: #5b6379;
  --ink-4: #8a91a5;

  --rail: #0b1020;
  --rail-2: #151b2e;
  --rail-line: #232a40;
  --rail-ink: #e7e9f1;
  --rail-ink-2: #9aa1b8;

  --brand: #2b44f5;
  --brand-ink: #1d30c9;
  --brand-soft: #eceffe;
  --brand-line: #c9d0fd;

  --critical: #c8261f;
  --critical-soft: #fdecea;
  --soon: #c2560a;
  --soon-soft: #fff1e5;
  --calm: #0b7f58;
  --calm-soft: #e2f5ec;

  --t-entreprise: #2b44f5;
  --t-fonds: #7a3ff0;
  --t-immobilier: #0b7f58;
  --t-materiel: #b5650a;
  --t-incorporel: #c0307a;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(11, 16, 32, 0.06), 0 1px 1px rgba(11, 16, 32, 0.04);
  --shadow-2: 0 8px 24px -8px rgba(11, 16, 32, 0.14), 0 2px 6px rgba(11, 16, 32, 0.06);
  --shadow-3: 0 24px 60px -20px rgba(11, 16, 32, 0.35), 0 8px 18px -8px rgba(11, 16, 32, 0.2);

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rail-w: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 3px solid var(--ground); }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea, select { caret-color: var(--brand); }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.lucide { width: 18px; height: 18px; stroke-width: 1.75; flex: none; }

/* ---------- Boutons & champs ---------- */
.btn {
  --b: var(--surface); --c: var(--ink); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r);
  background: var(--b); color: var(--c); border: 1px solid var(--bd);
  font-weight: 500; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  box-shadow: var(--shadow-1);
}
.btn:hover { border-color: var(--ink-4); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn .lucide { width: 16px; height: 16px; }
.btn-primary { --b: var(--brand); --c: #fff; --bd: var(--brand); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(43, 68, 245, 0.6); }
.btn-primary:hover { --b: var(--brand-ink); border-color: var(--brand-ink); }
.btn-ink { --b: var(--ink); --c: #fff; --bd: var(--ink); }
.btn-ink:hover { --b: #1c2236; }
.btn-ghost { --b: transparent; --bd: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { --b: rgba(11,16,32,.05); border-color: transparent; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12px; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 96px; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(43, 68, 245, 0.14); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input[aria-invalid="true"] { border-color: var(--critical); box-shadow: 0 0 0 4px rgba(200, 38, 31, 0.1); }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6379' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.check:hover { border-color: var(--line-strong); }
.check:has(input:checked) { border-color: var(--brand-line); background: var(--brand-soft); }
.check input { accent-color: var(--brand); margin-top: 3px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; background: rgba(11,16,32,.06); border-radius: 10px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink-3); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-type { border: 0; color: var(--tc); background: color-mix(in srgb, var(--tc) 10%, white); }
.t-entreprise { --tc: var(--t-entreprise); } .t-fonds { --tc: var(--t-fonds); } .t-immobilier { --tc: var(--t-immobilier); } .t-materiel { --tc: var(--t-materiel); } .t-incorporel { --tc: var(--t-incorporel); }
.tag-demo { background: #fff7d6; border-color: #f1df9a; color: #6b5300; }

/* Compte à rebours */
.due { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 26px; padding: 0 8px; border-radius: 7px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0; }
.due-critical { background: var(--critical); color: #fff; }
.due-soon { background: var(--soon-soft); color: var(--soon); }
.due-calm { background: var(--calm-soft); color: var(--calm); }
.due-expired { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 90; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-3); transition: opacity .3s var(--ease), transform .3s var(--ease); display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   SITE PUBLIC
   ========================================================= */
.pub-nav { position: sticky; top: 0; z-index: 40; background: rgba(243, 244, 247, 0.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.pub-nav.scrolled { border-color: var(--line); }
.pub-nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; color: inherit; text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 4px 10px -4px rgba(43,68,245,.7); }
.logo-mark svg { width: 16px; height: 16px; }
.pub-links { display: flex; gap: 4px; }
.pub-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.pub-links a:hover { background: rgba(11,16,32,.05); color: var(--ink); }
.pub-nav .actions { margin-left: auto; display: flex; gap: 8px; }

.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.04em; line-height: 1.02; font-weight: 650; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 34em; line-height: 1.55; }
.hero .cta { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .fine { margin-top: 18px; font-size: 13px; color: var(--ink-3); display: flex; gap: 16px; flex-wrap: wrap; }
.hero .fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero .fine .lucide { width: 15px; height: 15px; color: var(--calm); }

/* Le panneau échéancier — objet central du hero */
.board { background: var(--rail); color: var(--rail-ink); border-radius: 20px; box-shadow: var(--shadow-3); overflow: hidden; border: 1px solid #1d2438; }
.board-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rail-line); }
.board-head .live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--rail-ink-2); }
.board-head .live i { width: 7px; height: 7px; border-radius: 50%; background: #35d39a; }
.board-head h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.board-head .clock { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--rail-ink-2); }
.board-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--rail-line); text-decoration: none; color: inherit; transition: background .2s; }
.board-row:hover { background: var(--rail-2); }
.board-row:last-child { border-bottom: 0; }
.board-foot a { color: #8fa0ff; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.board-foot a .lucide { width: 14px; height: 14px; }
.board-row .t { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .s { font-size: 12.5px; color: var(--rail-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .v { text-align: right; font-size: 13px; color: var(--rail-ink); }
.board-row .v small { display: block; color: var(--rail-ink-2); font-size: 11.5px; }
.board .due-soon { background: rgba(255,140,60,.14); color: #ffb07a; }
.board .due-calm { background: rgba(53,211,154,.12); color: #6fe3b8; }
.board-foot { padding: 12px 18px; display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--rail-ink-2); background: var(--rail-2); }
.board-axis { position: relative; height: 70px; margin: 6px 18px 2px; }
.board-axis .ln { position: absolute; left: 0; right: 0; top: 40px; height: 1px; background: var(--rail-line); }
.board-axis .tick { position: absolute; top: 18px; width: 3px; height: 22px; border-radius: 2px; transform-origin: bottom; animation: rise .9s var(--ease) both; }
.board-axis .lbl { position: absolute; top: 48px; font-family: var(--mono); font-size: 10.5px; color: var(--rail-ink-2); transform: translateX(-50%); }
@keyframes rise { from { transform: scaleY(0); opacity: 0; } }

.trust { padding: 28px 0 8px; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .cell { padding: 22px 20px; border-left: 1px solid var(--line); }
.trust .cell:first-child { border-left: 0; padding-left: 0; }
.trust b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.trust span { font-size: 13.5px; color: var(--ink-3); }

.section { padding: 96px 0; }
.section h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.035em; max-width: 18ch; }
.section .intro { margin-top: 16px; font-size: 17px; color: var(--ink-2); max-width: 46em; }

.journey { margin-top: 64px; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 2px; background: var(--line-strong); }
.journey .stop { position: relative; padding-right: 24px; }
.journey .when { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); height: 30px; display: flex; align-items: center; }
.journey .pin { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); margin: 8px 0 18px; position: relative; z-index: 1; }
.journey .stop.deadline .pin { border-color: var(--critical); background: var(--critical); box-shadow: 0 0 0 5px var(--critical-soft); }
.journey .stop.deadline .when { color: var(--critical); font-weight: 500; }
.journey .stop.after .pin { border-color: var(--calm); }
.journey h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.journey h3 .lucide { color: var(--brand); width: 17px; height: 17px; }
.journey p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.journey .who { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.rev { grid-template-columns: 1.1fr 1fr; }
.list-check { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 12px; color: var(--ink-2); }
.list-check .lucide { color: var(--brand); margin-top: 2px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.panel-head .muted { font-weight: 400; margin-left: auto; font-size: 12.5px; }

.dark-band { background: var(--rail); color: var(--rail-ink); }
.dark-band h2 { color: #fff; }
.dark-band .intro { color: var(--rail-ink-2); }
.letter-preview { background: #fff; color: var(--ink); border-radius: 14px; padding: 32px 36px; font-size: 13px; line-height: 1.6; box-shadow: var(--shadow-3); white-space: pre-wrap; font-family: var(--font); max-height: 440px; overflow: hidden; position: relative; transform: rotate(-1.2deg); }
.letter-preview::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, #fff); }
.letter-preview mark { background: var(--brand-soft); color: var(--brand-ink); padding: 0 3px; border-radius: 3px; }
.caps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.caps li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; color: var(--rail-ink-2); }
.caps li b { display: block; color: #fff; font-weight: 500; font-size: 14.5px; margin-bottom: 2px; }
.caps .lucide { color: #8fa0ff; width: 18px; height: 18px; margin-top: 2px; }

/* Tarifs */
.plans { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-1); }
.plan.hl { background: var(--rail); color: var(--rail-ink); border-color: var(--rail); box-shadow: var(--shadow-3); position: relative; }
.plan.hl .muted, .plan.hl li { color: var(--rail-ink-2); }
.plan.hl h3 { color: #fff; }
.plan h3 { font-size: 18px; }
.plan .price { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.plan.hl .price { color: #fff; }
.plan.hl .price small { color: var(--rail-ink-2); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li .lucide { width: 16px; height: 16px; margin-top: 3px; color: var(--calm); }
.plan.hl li .lucide { color: #6fe3b8; }
.plan .btn { margin-top: auto; }
.plan .ribbon { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 500; color: #fff; background: var(--brand); padding: 3px 9px; border-radius: 99px; }

.fees { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fee-table th, .fee-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.fee-table th { font-size: 12px; color: var(--ink-3); font-weight: 500; background: var(--surface-2); }
.fee-table td.num { text-align: right; font-weight: 500; }
.fee-table tr:last-child td { border-bottom: 0; }
.calc { padding: 22px; display: grid; gap: 18px; }
.calc .out { display: flex; align-items: baseline; gap: 12px; }
.calc .out b { font-size: 36px; letter-spacing: -0.03em; }
.range { width: 100%; accent-color: var(--brand); }
.bars { display: grid; gap: 6px; }
.bars .bar { display: grid; grid-template-columns: 150px 1fr 80px; gap: 10px; align-items: center; font-size: 12.5px; }
.bars .track { height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bars .fill { height: 100%; background: var(--brand); border-radius: 4px; transition: width .4s var(--ease); }

.cta-band { padding: 0 0 96px; }
.cta-band .box { background: var(--brand); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); }
.cta-band p { color: rgba(255,255,255,.82); margin-top: 12px; font-size: 16px; }
.cta-band .acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn-white { --b: #fff; --c: var(--brand-ink); --bd: #fff; }
.cta-band .btn-outline { --b: transparent; --c: #fff; --bd: rgba(255,255,255,.4); box-shadow: none; }

.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 13px; color: var(--ink-3); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font-size: 13px; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.foot a { color: var(--ink-3); text-decoration: none; display: block; padding: 3px 0; }
.foot a:hover { color: var(--ink); }

/* =========================================================
   APPLICATION
   ========================================================= */
.app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); color: var(--rail-ink); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 16px 12px; gap: 6px; }
.rail .logo { color: #fff; padding: 6px 10px 18px; }
.rail nav { display: grid; gap: 2px; }
.rail nav a { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: 9px; color: var(--rail-ink-2); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.rail nav a:hover { background: var(--rail-2); color: var(--rail-ink); }
.rail nav a[aria-current="page"] { background: var(--rail-2); color: #fff; box-shadow: inset 0 0 0 1px var(--rail-line); }
.rail nav a[aria-current="page"] .lucide { color: #8fa0ff; }
.rail nav a .count { margin-left: auto; font-size: 11.5px; font-family: var(--mono); background: var(--rail-line); color: var(--rail-ink); padding: 1px 7px; border-radius: 99px; }
.rail .sep { height: 1px; background: var(--rail-line); margin: 10px 4px; }
.rail .label { font-size: 11.5px; color: var(--rail-ink-2); padding: 6px 10px 2px; font-weight: 500; }
.quota { margin-top: auto; background: var(--rail-2); border: 1px solid var(--rail-line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; font-size: 13px; }
.quota .row { display: grid; gap: 6px; }
.quota .row div:first-child { display: flex; justify-content: space-between; color: var(--rail-ink-2); }
.quota .row b { color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.quota .meter { height: 5px; border-radius: 3px; background: var(--rail-line); overflow: hidden; }
.quota .meter i { display: block; height: 100%; background: #8fa0ff; border-radius: 3px; transition: width .5s var(--ease); }
.quota .meter i.low { background: #ff9a5a; }
.quota .pro { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
.quota .pro .lucide { color: #ffd166; }
.quota .btn { height: 34px; font-size: 13px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(243,244,247,.86); backdrop-filter: blur(12px) saturate(1.5); -webkit-backdrop-filter: blur(12px) saturate(1.5); border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; max-width: 520px; }
.search .lucide { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-4); width: 16px; height: 16px; }
.search input { padding-left: 36px; height: 38px; background: var(--surface); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--surface-2); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; color: var(--ink-2); }
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--critical); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--ground); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }

.popover { position: absolute; top: 52px; right: 0; width: 380px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-3); z-index: 50; overflow: hidden; animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.popover header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.popover .item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.popover .item:hover { background: var(--surface-2); }
.popover .item:last-child { border-bottom: 0; }
.popover .item b { font-weight: 500; font-size: 14px; display: block; }
.popover .item span { font-size: 12.5px; color: var(--ink-3); }

.content { padding: 28px 28px 80px; width: 100%; max-width: 1360px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 28px; letter-spacing: -0.03em; }
.page-head p { color: var(--ink-3); margin-top: 6px; font-size: 14.5px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.demo-banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: #fff7d6; border: 1px solid #f1df9a; color: #5b4700; font-size: 13px; margin-bottom: 18px; }
.demo-banner .lucide { width: 16px; height: 16px; }

/* Filtres */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .select { width: auto; height: 34px; font-size: 13px; padding-left: 10px; border-radius: 9px; }
.chip-toggle { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px dashed var(--line-strong); background: transparent; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.chip-toggle[aria-pressed="true"] { border-style: solid; border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); }
.chip-toggle .lucide { width: 15px; height: 15px; }
.filters .count { margin-left: auto; font-size: 13px; color: var(--ink-3); }

/* Échéancier — signature */
.timeline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px 12px; margin-bottom: 18px; box-shadow: var(--shadow-1); }
.timeline-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.timeline-head h2 { font-size: 15px; letter-spacing: -0.01em; }
.timeline-head .legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); margin-left: auto; flex-wrap: wrap; }
.timeline-head .legend span { display: inline-flex; align-items: center; gap: 6px; }
.timeline-head .legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--tc); }
.tl { position: relative; height: 176px; margin-top: 12px; }
.tl .zone { position: absolute; top: 0; bottom: 26px; border-radius: 8px; }
.tl .zone.z1 { background: linear-gradient(180deg, rgba(200,38,31,.07), rgba(200,38,31,.02)); }
.tl .zone.z2 { background: linear-gradient(180deg, rgba(194,86,10,.09), rgba(194,86,10,.02)); }
.trust-note { width: min(1200px, 100% - 48px); margin: 10px auto 0; font-size: 13px; color: var(--ink-3); }
.tl .zone span { position: absolute; left: 8px; bottom: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.tl .zone.z1 span { color: var(--critical); }
.tl .zone.z2 span { color: var(--soon); }
.tl .day { position: absolute; bottom: 26px; width: 1px; height: 3px; background: var(--line); }
.tl .base { position: absolute; left: 0; right: 0; bottom: 26px; height: 1px; background: var(--line-strong); }
.tl .grid { position: absolute; bottom: 26px; width: 1px; height: 6px; background: var(--line-strong); }
.tl .gl { position: absolute; bottom: 4px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.tl .now { position: absolute; left: 0; top: 0; bottom: 20px; width: 2px; background: var(--ink); border-radius: 2px; }
.tl .now::after { content: "Aujourd'hui"; position: absolute; left: 6px; top: -2px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tl .mk { position: absolute; bottom: 27px; width: 14px; transform: translateX(-50%); border-radius: 4px 4px 1px 1px; background: var(--tc); border: 0; padding: 0; cursor: pointer; transform-origin: bottom; animation: rise .8s var(--ease) both; transition: filter .15s, transform .15s; box-shadow: 0 0 0 2px var(--surface); }
.tl .mk:hover, .tl .mk:focus-visible { filter: brightness(1.12); transform: translateX(-50%) scaleX(1.3); z-index: 2; box-shadow: 0 0 0 2px var(--surface), 0 6px 14px -4px color-mix(in srgb, var(--tc) 70%, transparent); }
.tl .mk.feat::before { content: ""; position: absolute; left: 50%; top: -9px; width: 6px; height: 6px; border-radius: 50%; transform: translateX(-50%); background: var(--ink); }
.tl-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; box-shadow: var(--shadow-3); width: 260px; transform: translate(-50%, -100%); opacity: 0; transition: opacity .15s; }
.tl-tip.show { opacity: 1; }
.tl-tip b { display: block; font-weight: 500; font-size: 13px; margin-bottom: 2px; }
.tl-tip span { color: #b8bfd3; }

/* À la une */
.featured { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.feat-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; overflow: hidden; }
.feat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.feat-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.feat-card h3 { font-size: 15px; letter-spacing: -0.015em; line-height: 1.3; }
.feat-card .loc { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 5px; align-items: center; }
.feat-card .loc .lucide { width: 14px; height: 14px; }
.feat-card .kv { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; font-size: 12.5px; color: var(--ink-3); }
.feat-card .kv b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.score { display: grid; justify-items: end; gap: 4px; font-size: 12px; color: var(--ink-3); }
.score b { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.score b small { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.score i { display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--brand-soft); overflow: hidden; }
.score i::after { content: ""; display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--brand); }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.section-title .lucide { width: 16px; height: 16px; color: var(--brand); }
.section-title .muted { font-weight: 400; font-size: 13px; }
.section-title .muted a, .linklike { color: var(--brand-ink); }
.linklike { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.linklike:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

/* Table des offres */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: clip; box-shadow: var(--shadow-1); }
.otable { width: 100%; border-collapse: collapse; font-size: 14px; }
.otable thead th { position: sticky; top: 60px; z-index: 2; background: var(--surface-2); text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.otable th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.otable th button:hover { color: var(--ink); }
.otable th .lucide { width: 13px; height: 13px; }
.otable tbody tr { cursor: pointer; transition: background .12s; }
.otable tbody tr:hover { background: #f6f7ff; }
.otable tbody tr.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 30% { background: var(--brand-soft); } }
.otable td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.otable tbody tr:last-child td { border-bottom: 0; }
.otable .title { font-weight: 500; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.otable .title a { color: inherit; text-decoration: none; }
.otable .sub { display: flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.otable .sub .sect { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.otable .one { white-space: nowrap; }
.otable .sub.wrap { flex-wrap: wrap; overflow: visible; }
.otable td.num { text-align: right; white-space: nowrap; }
.otable .when { display: grid; gap: 4px; justify-items: start; }
.otable .when small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.otable .seen .lucide { color: var(--ink-4); width: 15px; height: 15px; }
.otable .star { color: #e6a700; width: 15px; height: 15px; fill: #e6a700; }
.otable .lock { color: var(--ink-4); }
.otable tr.expired td { color: var(--ink-3); }
.otable tr.expired .title { color: var(--ink-3); }
.empty { padding: 56px 24px; text-align: center; color: var(--ink-3); display: grid; justify-items: center; gap: 10px; }
.empty .lucide { width: 28px; height: 28px; color: var(--ink-4); }
.empty b { color: var(--ink); font-size: 15px; font-weight: 600; }
details.expired-block { margin-top: 18px; }
details.expired-block summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 0; }
details.expired-block summary::-webkit-details-marker { display: none; }
details.expired-block[open] summary .lucide { transform: rotate(90deg); }
details.expired-block summary .lucide { transition: transform .2s; width: 16px; height: 16px; }

/* Fiche détail */
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .lucide { width: 14px; height: 14px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.detail h1 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.035em; }
.detail .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.facts { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.facts div { padding: 16px 18px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 12px; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.facts dd small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.block { margin-top: 28px; }
.block h2 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.block h2 .lucide { color: var(--ink-3); }
.block p { color: var(--ink-2); max-width: 70ch; }
.perim { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.perim li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.perim li .lucide { color: var(--calm); width: 16px; height: 16px; margin-top: 2px; }
.kvlist { display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; font-size: 14px; }
.kvlist dt, .kvlist dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.kvlist dt { color: var(--ink-3); background: var(--surface-2); }
.kvlist dt:nth-last-child(2), .kvlist dd:last-child { border-bottom: 0; }
.score-bars { display: grid; gap: 10px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.score-bars .bar { display: grid; grid-template-columns: 220px 1fr 40px; gap: 12px; align-items: center; font-size: 13px; }
.score-bars .track { height: 6px; background: var(--surface-2); border-radius: 3px; border: 1px solid var(--line); overflow: hidden; }
.score-bars .fill { height: 100%; background: var(--brand); border-radius: 3px; }
.score-bars .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-3); }

.side { position: sticky; top: 84px; display: grid; gap: 14px; }
.countdown { background: var(--rail); color: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-2); }
.countdown .lbl { font-size: 12.5px; color: var(--rail-ink-2); }
.countdown .big { display: flex; gap: 14px; margin-top: 10px; }
.countdown .big div { display: grid; }
.countdown .big b { font-size: 38px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.countdown .big span { font-size: 11.5px; color: var(--rail-ink-2); margin-top: 4px; }
.countdown .date { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rail-line); font-size: 13px; color: var(--rail-ink); }
.countdown.critical { background: linear-gradient(160deg, #3a0d10, var(--rail) 70%); }
.countdown .prog { margin-top: 12px; height: 4px; background: var(--rail-line); border-radius: 2px; overflow: hidden; }
.countdown .prog i { display: block; height: 100%; background: linear-gradient(90deg, #6fe3b8, #ffb07a, #ff6b5e); }
.actions-card { padding: 18px; display: grid; gap: 10px; }
.actions-card .hint { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.est { padding: 18px; display: grid; gap: 12px; }
.rng { position: relative; height: 34px; }
.rng .track { position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--calm-soft), var(--brand-soft)); }
.rng .zone { position: absolute; top: 12px; height: 10px; border-radius: 5px; background: var(--brand); opacity: .85; }
.rng .mkt { position: absolute; top: 4px; width: 2px; height: 26px; background: var(--ink); }
.est .row { display: flex; justify-content: space-between; font-size: 13px; }
.est .row b { }
.est ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-3); display: grid; gap: 4px; }

/* Assistant */
.wizard { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.steps { position: sticky; top: 84px; display: grid; gap: 2px; padding: 0; margin: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; font-size: 14px; color: var(--ink-3); position: relative; }
.steps li .n { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--surface); font-variant-numeric: tabular-nums; }
.steps li.done { color: var(--ink-2); }
.steps li.done .n { background: var(--calm); border-color: var(--calm); color: #fff; }
.steps li.cur { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-1); }
.steps li.cur .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.wcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.wcard > header { padding: 22px 26px 0; }
.wcard > header h2 { font-size: 20px; letter-spacing: -0.025em; }
.wcard > header p { color: var(--ink-3); margin-top: 6px; font-size: 14px; }
.wcard .body { padding: 22px 26px; display: grid; gap: 18px; }
.wcard > footer { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; align-items: center; background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.stance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stance label { border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; display: grid; gap: 4px; transition: border-color .15s, background .15s; }
.stance label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(43,68,245,.12); }
.stance input { position: absolute; opacity: 0; pointer-events: none; }
.stance b { font-size: 14px; }
.stance strong { font-size: 20px; letter-spacing: -0.02em; }
.stance span { font-size: 12.5px; color: var(--ink-3); }
.ai-box { border: 1px solid var(--brand-line); background: linear-gradient(180deg, var(--brand-soft), #fff 70%); border-radius: 14px; padding: 18px; display: grid; gap: 14px; }
.ai-box .head { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.ai-box .head .lucide { color: var(--brand); }
.shimmer { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #e6e9fb 0%, #f4f5fe 50%, #e6e9fb 100%); background-size: 200% 100%; animation: sh 1.2s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.letter { font-family: var(--font); font-size: 13.5px; line-height: 1.65; min-height: 520px; white-space: pre-wrap; background: #fff; }
.recap { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.recap div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.recap div:last-child { border-bottom: 0; background: var(--surface-2); font-weight: 600; }
.recap span { color: var(--ink-3); }
.recap b { font-weight: 500; text-align: right; }
.pay { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.pay .brandline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.success { text-align: center; padding: 48px 26px; display: grid; justify-items: center; gap: 14px; }
.success .ok { width: 56px; height: 56px; border-radius: 16px; background: var(--calm-soft); color: var(--calm); display: grid; place-items: center; }
.success .ok .lucide { width: 28px; height: 28px; }
.track-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; text-align: left; width: min(460px, 100%); }
.track-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 16px; position: relative; font-size: 14px; }
.track-steps li::before { content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.track-steps li:last-child::before { display: none; }
.track-steps i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); }
.track-steps li.on i { background: var(--calm); border-color: var(--calm); color: #fff; }
.track-steps li.now i { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.track-steps i .lucide { width: 13px; height: 13px; }
.track-steps small { display: block; color: var(--ink-3); font-size: 12.5px; }

/* Paywall */
.paywall { max-width: 760px; margin: 40px auto; text-align: center; display: grid; gap: 18px; justify-items: center; }
.paywall .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.paywall h1 { font-size: 30px; letter-spacing: -0.03em; }
.paywall p { color: var(--ink-2); max-width: 52ch; }
.paywall .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; margin-top: 10px; text-align: left; }
.paywall .opt { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; box-shadow: var(--shadow-1); }
.paywall .opt.hl { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43,68,245,.1), var(--shadow-2); }
.paywall .opt b { font-size: 24px; letter-spacing: -0.03em; }

/* Veille BODACC */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 18px; box-shadow: var(--shadow-1); }
.stats div { padding: 16px 18px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.stats span { font-size: 12.5px; color: var(--ink-3); }
.pot { display: grid; grid-template-columns: 1fr 34px; gap: 8px; align-items: center; min-width: 120px; }
.pot .track { height: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.pot .fill { height: 100%; border-radius: 3px; background: var(--ink-4); }
.pot .fill.hi { background: var(--brand); }
.pot .fill.mid { background: #7f8ff9; }
.pot b { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.locked-rows { position: relative; }
.locked-rows tbody { filter: blur(5px); user-select: none; pointer-events: none; }
.unlock { position: absolute; inset: 40px 0 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.9) 30%); }
.unlock .box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-align: center; box-shadow: var(--shadow-3); display: grid; gap: 10px; justify-items: center; max-width: 420px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--calm); }
.status-pill.off i { background: var(--soon); }

/* Compte */
.acct { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card > header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card > header h2 { font-size: 15px; letter-spacing: -0.01em; }
.card > header .actions { margin-left: auto; }
.card .body { padding: 20px; display: grid; gap: 16px; }
.multi { display: flex; flex-wrap: wrap; gap: 6px; }
.multi label { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 13px; cursor: pointer; user-select: none; transition: all .15s; }
.multi input { position: absolute; opacity: 0; pointer-events: none; }
.multi label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.multi label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.hist { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hist td, .hist th { padding: 11px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.hist th { font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--surface-2); }
.hist tr:last-child td { border-bottom: 0; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); }
.st.ok { background: var(--calm-soft); color: var(--calm); }
.st.wait { background: var(--soon-soft); color: var(--soon); }

/* Onboarding */
.onb { position: fixed; inset: 0; z-index: 80; background: rgba(11,16,32,.5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .3s var(--ease); overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.onb .dlg { width: min(640px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-3); overflow: hidden; animation: pop .35s var(--ease); }
.onb .dlg header { padding: 24px 26px 0; flex: none; }
.onb .dlg h2 { font-size: 22px; letter-spacing: -0.03em; }
.onb .dlg p { color: var(--ink-3); margin-top: 6px; }
.onb .dlg .body { padding: 20px 26px; display: grid; gap: 16px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.onb .dlg footer { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); flex: none; }

.enter { animation: enter .45s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }

.mobile-cta { display: none; }
.cat { display: flex; flex-direction: column; }

/* Mobile tab bar */
.tabbar { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: minmax(0, 1fr) 320px; }
  .otable .c-proc, .otable .c-src { display: none; }
}
/* Le cabinet garde la colonne du mandataire tant que le tableau reste un tableau */
@media (min-width: 981px) and (max-width: 1180px) {
  body.cabinet .otable .c-src { display: table-cell; }
}
@media (max-width: 980px) {
  .hero .wrap, .split, .split.rev { grid-template-columns: 1fr; gap: 40px; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .flow::before { display: none; }
  .plans, .feature-grid { grid-template-columns: 1fr; }
  .fees { grid-template-columns: 1fr; }
  .cta-band .box { grid-template-columns: 1fr; padding: 36px; }
  .cta-band .acts { justify-content: flex-start; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
  .rail { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--rail); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rail-line); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; color: var(--rail-ink-2); text-decoration: none; border-radius: 8px; }
  .tabbar a[aria-current="page"] { color: #fff; background: var(--rail-2); }
  .content { padding: 20px 16px 110px; }
  .topbar { padding: 0 16px; }
  .detail, .wizard, .acct { grid-template-columns: 1fr; }
  .side, .steps { position: static; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 55; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-cta .t { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
  .mobile-cta .t b { display: block; color: var(--ink); font-size: 13.5px; font-weight: 500; }
  .mobile-cta .btn { margin-left: auto; }
  .content:has(.mobile-cta) { padding-bottom: 170px; }
  .journey { grid-template-columns: 1fr; gap: 26px; }
  .journey::before { left: 6px; right: auto; top: 30px; bottom: 0; width: 2px; height: auto; }
  .journey .stop { padding: 0 0 0 30px; }
  .journey .when { height: auto; }
  .journey .pin { position: absolute; left: 0; top: 2px; margin: 0; }
  .caps { grid-template-columns: 1fr; }
  .steps { display: flex; overflow-x: auto; gap: 6px; }
  .steps li { grid-template-columns: 24px auto; white-space: nowrap; padding: 8px 10px; }
  .steps li .n { width: 24px; height: 24px; }
  .facts, .stats { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3), .stats div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3), .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .otable thead th { top: 60px; }
}
@media (max-width: 680px) {
  body { font-size: 14.5px; }
  .wrap { width: calc(100% - 32px); }
  .pub-links { display: none; }
  .pub-nav .actions .btn-ghost { display: none; }
  .hero { padding-top: 40px; }
  .hero .lede { font-size: 16px; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust .cell { padding: 16px 0 16px 16px; }
  .trust .cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .flow { grid-template-columns: 1fr; }
  .letter-preview { padding: 22px; transform: none; }
  .featured { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .stance, .paywall .opts { grid-template-columns: 1fr; }
  .search kbd { display: none; }
  .kvlist { grid-template-columns: 1fr; }
  .kvlist dt { border-bottom: 0; padding-bottom: 2px; }
  .score-bars .bar { grid-template-columns: 1fr 70px 34px; }
  .bars .bar { grid-template-columns: 110px 1fr 64px; }
  .board-row { grid-template-columns: 56px minmax(0, 1fr); }
  .board-row .v { display: none; }
  .timeline-head .legend { margin-left: 0; }
  .timeline { overflow-x: auto; padding: 14px 14px 8px; }
  .timeline-head .legend { display: none; }
  .tl { min-width: 720px; height: 112px; }
  .page-head { margin-bottom: 14px; }
  .page-head p { display: none; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .page-head .seg { width: 100%; }
  .page-head .seg button { flex: 1; }
  .demo-banner { padding: 8px 12px; margin-bottom: 12px; font-size: 12.5px; }
  .demo-banner .long { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters > * { flex: none; }
  .filters .count { display: none; }
  .cat #featWrap { order: 3; margin-top: 18px; }
  .board-axis .lbl:not(.edge) { display: none; }
  .popover { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
  .hist th:nth-child(3), .hist td:nth-child(3) { display: none; }
  .hist td, .hist th { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  body * { visibility: hidden; }
  .printable, .printable * { visibility: visible; }
  .printable { position: absolute; inset: 0; box-shadow: none; border: 0; transform: none; max-height: none; }
}
/* Actes imprimés (offre de reprise, courrier) : mise en page de document juridique */
.acte { position: fixed; left: -9999px; width: 17cm; color: #000; font-family: Georgia, "Times New Roman", serif; font-size: 11.5pt; line-height: 1.5; text-align: justify; }
.acte p { margin: 0 0 8pt; }
.acte h2 { font-size: 12pt; margin: 18pt 0 8pt; text-transform: uppercase; break-after: avoid; }
.acte h3 { font-size: 11.5pt; margin: 12pt 0 6pt; font-style: italic; break-after: avoid; }
.acte ul { margin: 0 0 8pt; padding-left: 22pt; }
.acte li { margin-bottom: 3pt; }
.acte-garde { min-height: 24cm; display: flex; flex-direction: column; justify-content: center; text-align: center; break-after: page; }
.acte-garde p { margin: 0 0 4pt; }
.acte-garde p.t { font-weight: bold; font-size: 14pt; margin: 18pt 0 6pt; }
@media print { .acte { position: absolute; left: 0; top: 0; } @page { margin: 2cm; } }

/* Échéancier dense : une barre par jour, segments par type d'actif */
.tl .mk.day { width: 7px; display: flex; flex-direction: column-reverse; overflow: hidden; background: var(--line-strong); box-shadow: 0 0 0 1px var(--surface); }
.tl .mk.day i { display: block; min-height: 2px; }
.tl .mk.day.feat::before { top: -9px; }
.tl .mk.day { overflow: visible; }
.tl .mk.day i:first-child { border-radius: 0 0 1px 1px; }
.tl .mk.day i:last-child { border-radius: 3px 3px 0 0; }

/* Catalogue : en dessous de 980 px, chaque offre devient une carte (date à gauche, bien et lieu à droite) */
@media (max-width: 980px) {
  .cat-table thead { display: none; }
  .cat-table, .cat-table tbody, .cat-table tr, .cat-table td { display: block; width: 100%; }
  .cat-table tbody tr { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .cat-table td { padding: 0; border: 0; min-width: 0; }
  .cat-table td.c-when { grid-row: span 4; }
  .cat-table td.c-loc, .cat-table td.c-ca, .cat-table td.c-src { grid-column: 2; font-size: 13px; color: var(--ink-3); text-align: left; white-space: normal; }
  .cat-table td.c-loc .small, .cat-table td.c-ca .small { display: inline; margin-left: 6px; }
  .cat-table td.c-src { display: block; }
  .cat-table td.c-proc, .cat-table td.c-seen { display: none; }
  .cat-table td.c-ca.vide { display: none; }
  .cat-table .title { flex-wrap: wrap; }
  .cat-table .title a { min-width: 0; overflow-wrap: anywhere; }
  .cat-table .sub { flex-wrap: wrap; overflow: visible; }
  .cat-table td[colspan] { grid-column: 1 / -1; }
}

/* Signaux du score d'intérêt (lus dans l'annonce) */
.signals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sig { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 500; }
.sig .lucide { width: 12px; height: 12px; stroke-width: 2.25; }
.sig.pos { background: var(--brand-soft); color: var(--brand-ink); }
.sig.neg { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }

/* Demande d'informations : ce qui est déjà disponible, documents remis */
.dispo:empty { display: none; }
.dispo { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--brand-line); background: var(--brand-soft); border-radius: 12px; }
.dispo-l { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13.5px; }
.dispo-l .lucide { color: var(--brand-ink); width: 18px; height: 18px; margin-top: 1px; }
.dispo-l b { display: block; font-weight: 600; }
.dispo-l span { display: block; color: var(--ink-2); }
.dispo-l small { display: block; color: var(--ink-3); margin-top: 2px; }
.docs-ok { width: min(460px, 100%); text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.docs-ok h3 { font-size: 14px; margin-bottom: 8px; }
.docs-ok ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.docs-ok a { display: inline-flex; gap: 6px; align-items: center; }
.docs-ok .lucide { width: 15px; height: 15px; }
.perim a { color: var(--brand-ink); }

/* Annonce publiée depuis la dernière visite */
.tag-new { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 11px; font-weight: 600; letter-spacing: .01em; vertical-align: 2px; }

/* Pages légales */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.03em; margin: 8px 0 24px; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; max-width: none; }
.legal h3 { font-size: 16px; margin: 22px 0 8px; }
.legal p { line-height: 1.7; margin: 0 0 10px; color: var(--ink-2); }
.legal .encadre { background: var(--surface-2); border-left: 3px solid var(--brand); padding: 10px 14px; margin: 0; border-radius: 0 8px 8px 0; font-size: 14px; }
.legal .table-wrap { margin: 12px 0 18px; overflow-x: auto; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.legal-nav a { color: var(--ink-3); text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--brand-ink); font-weight: 600; }
.a-completer { background: var(--brand-soft); color: var(--brand-ink); padding: 0 6px; border-radius: 4px; font-size: .92em; }
.legal-links { padding: 12px 14px 4px; font-size: 11.5px; line-height: 1.7; color: var(--rail-ink-2); }
.legal-links a { color: inherit; text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }

/* Lien d'action (consultation d'un document) */
.linkish { all: unset; cursor: pointer; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.linkish:hover { color: var(--brand); }

/* Modalité de vente (gré à gré, pli cacheté) */
.tag-mod { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); font-size: 11px; font-weight: 500; vertical-align: 2px; }
