/* Ciblix — système visuel. Sobre : fonds clairs, bordures fines, une seule couleur d'accent (la cible). */
:root {
  --ink: #111318;
  --ink-2: #3f4451;
  --muted: #6b7180;
  --faint: #9aa0ad;
  --line: #e7e8ec;
  --line-2: #f0f1f4;
  --bg: #ffffff;
  --bg-2: #f8f8fa;
  --card: #ffffff;
  --accent: #e5482a;
  --accent-2: #c73a1f;
  --accent-soft: #fdf0ec;
  --accent-line: #f7d3c8;
  --ok: #12804b;
  --ok-soft: #eaf7f0;
  --warn: #a35f00;
  --warn-soft: #fff6e5;
  --bad: #b42335;
  --bad-soft: #fdeef0;
  --blue: #2f5bd3;
  --blue-soft: #eef2fd;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(17, 19, 24, .04);
  --shadow: 0 1px 2px rgba(17, 19, 24, .05), 0 4px 14px -6px rgba(17, 19, 24, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-2); }
.link { color: var(--accent-2); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; letter-spacing: -.015em; font-weight: 650; }
h1 { font-size: 24px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
code { background: var(--bg-2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
svg.i-lg { width: 20px; height: 20px; }
svg.i-xl { width: 22px; height: 22px; }
.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- boutons et champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 13px; border-radius: 8px; font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--bg-2); color: var(--ink); border-color: #d9dbe1; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(229, 72, 42, .25); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2e37; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-danger { color: var(--bad); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
label { display: block; font-weight: 550; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #dcdee4; border-radius: 8px; padding: 8px 11px; box-shadow: var(--shadow-sm);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 84px; resize: vertical; }
.field { margin-bottom: 16px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--accent); }
form.inline { display: inline; }

/* ---------- structure de l'appli */
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { display: flex; align-items: center; gap: 9px; padding: 16px 16px 12px; font-weight: 750; font-size: 16px; letter-spacing: -.02em; }
.sidebar .brand-mark { width: 24px; height: 24px; }
.side-new { margin: 2px 12px 14px; }
.side-new .btn { width: 100%; justify-content: flex-start; }
.side-title { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--faint); padding: 8px 16px 4px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.side-link { display: flex; align-items: center; gap: 9px; color: var(--ink-2); margin: 1px 8px; padding: 6px 8px; border-radius: 7px; font-weight: 500; font-size: 13.5px; min-width: 0; }
.side-link:hover { background: #eeeff2; color: var(--ink); }
.side-link.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.side-link svg.i { color: var(--muted); }
.side-link.on svg.i { color: var(--accent); }
.side-link .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link .count { margin-left: auto; font-size: 11px; color: var(--faint); }
.side-sub { margin: 2px 0 6px 20px; padding-left: 8px; border-left: 1px solid var(--line); }
.side-sub .side-link { font-size: 13px; padding: 5px 8px; margin-left: 4px; }
.side-bottom { margin-top: auto; padding: 10px 0 12px; border-top: 1px solid var(--line); }
.side-account { display: flex; align-items: center; gap: 9px; margin: 8px 12px 0; padding: 8px; border-radius: 8px; }
.side-account .who { min-width: 0; flex: 1; font-size: 12.5px; line-height: 1.3; }
.side-account .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.side-account .who span { color: var(--muted); }
.side-account button { background: none; border: none; color: var(--muted); padding: 4px; border-radius: 6px; cursor: pointer; display: inline-flex; }
.side-account button:hover { background: #eeeff2; color: var(--ink); }
.credits-box { margin: 4px 12px 6px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.credits-box:hover { border-color: #d9dbe1; color: var(--ink); }
.credits-box .v { font-weight: 650; font-size: 15px; }
.credits-box .l { color: var(--muted); font-size: 12px; }
.main { min-width: 0; background: var(--bg); }
.topline { height: 52px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 28px; gap: 8px; color: var(--muted); font-size: 13px; position: sticky; top: 0; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); z-index: 4; }
.topline a { color: var(--muted); }
.topline a:hover { color: var(--ink); }
.topline .sep { color: var(--faint); }
.topline .here { color: var(--ink); font-weight: 550; }
.main-banner { margin: 0 !important; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; justify-content: center; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-bottom { margin-top: 0; }
  .topline { padding: 0 16px; }
}

/* ---------- mise en page */
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 28px 64px; }
.narrow { max-width: 420px; margin: 56px auto; padding: 0 16px; }
.medium { max-width: 780px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { margin: 4px 0 0; color: var(--muted); }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .wrap { padding: 20px 16px 48px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 14px; }
.grid > .card + .card, .grid > * + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 14px 20px; margin: 0; border-bottom: 1px solid var(--line); }
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 26px 0 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- indicateurs */
.kpi { padding: 14px 16px; }
.kpi .l { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 22px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { color: var(--faint); font-size: 12px; margin-top: 2px; }
.stat .n { font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 12.5px; }
.big-number { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- messages */
.alert { display: flex; align-items: flex-start; gap: 10px; border-radius: 9px; padding: 11px 14px; margin-bottom: 16px; border: 1px solid transparent; font-size: 13.5px; flex-wrap: wrap; }
.alert svg.i { margin-top: 1px; }
.alert-ok { background: var(--ok-soft); color: #0b5a34; border-color: #c8ead7; }
.alert-error { background: var(--bad-soft); color: #8d1626; border-color: #f4ccd2; }
.alert-warn { background: var(--warn-soft); color: #6f4100; border-color: #f2dfb6; }
.alert-info { background: var(--blue-soft); color: #1f3f99; border-color: #d4def9; }

/* ---------- badges, tableaux */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 550; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #c8ead7; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #f2dfb6; }
.badge-bad { background: var(--bad-soft); color: var(--bad); border-color: #f4ccd2; }
.badge-accent { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-line); }
.badge-blue { background: var(--blue-soft); color: var(--blue); border-color: #d4def9; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; display: inline-block; }
.dot-ok { background: #22a868; }
.dot-run { background: #e7a325; }
.dot-bad { background: #e0445a; }
.dot-blue { background: var(--blue); }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 28px; padding: 0 8px; border-radius: 7px; font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums; border: 1px solid transparent; }
.score-hi { background: var(--ok-soft); color: var(--ok); border-color: #c8ead7; }
.score-mid { background: var(--warn-soft); color: var(--warn); border-color: #f2dfb6; }
.score-lo { background: var(--bg-2); color: var(--muted); border-color: var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-size: 13.5px; }
th { font-size: 12px; color: var(--muted); font-weight: 550; background: var(--bg-2); border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
table.hover tr:hover td { background: #fbfbfc; }
td.r, th.r { text-align: right; }
.table-wrap { overflow-x: auto; }
.card.flush table th:first-child, .card.flush table td:first-child { padding-left: 20px; }
.card.flush table th:last-child, .card.flush table td:last-child { padding-right: 20px; }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }
.empty .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); margin-bottom: 12px; }

/* ---------- logos */
.logo-box { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; font-weight: 700; color: #fff; font-size: 16px; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; }
.logo-box.sm { width: 20px; height: 20px; border-radius: 5px; font-size: 10px; }
.logo-box.sm img { padding: 1px; }
.logo-box.lg { width: 56px; height: 56px; border-radius: 12px; font-size: 20px; }

/* ---------- fiche client */
.client-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.client-head h1 { margin: 0; }
.client-head .meta { color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.client-head .meta a { color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }
.client-head .meta a:hover { color: var(--ink); }
.profile dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.profile dt { color: var(--muted); font-size: 13px; }
.profile dd { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.skeleton { background: linear-gradient(90deg, var(--line-2), #f8f8fa, var(--line-2)); background-size: 200% 100%; animation: sk 1.4s ease infinite; border-radius: 6px; height: 12px; margin: 8px 0; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- choix et modes */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s; cursor: pointer; }
.choice:hover { border-color: #d2d5dc; box-shadow: var(--shadow); color: var(--ink); }
.choice .ico { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-2); display: inline-flex; align-items: center; justify-content: center; flex: none; border: 1px solid var(--accent-line); }
.choice h3 { font-size: 15px; margin: 0 0 3px; }
.choice p { color: var(--muted); margin: 0; font-size: 13px; }
.choice .go { margin-left: auto; color: var(--faint); align-self: center; }
label.choice { font-weight: 400; margin: 0; }
label.choice input { position: absolute; opacity: 0; pointer-events: none; }
label.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.choice:has(input:checked) .tick { opacity: 1; }
.choice .tick { margin-left: auto; color: var(--accent); opacity: 0; }

/* ---------- étapes */
.steps { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; flex-wrap: wrap; font-size: 13px; }
.steps .step { display: inline-flex; align-items: center; gap: 7px; color: var(--faint); font-weight: 550; }
.steps .n { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: #fff; }
.steps .n svg.i { width: 12px; height: 12px; stroke-width: 2.6; vertical-align: 0; }
.steps .bar-sep { width: 28px; height: 1.5px; background: var(--line); }
.steps .step.done { color: var(--ink-2); }
.steps .step.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps .step.on { color: var(--ink); }
.steps .step.on .n { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---------- résultats */
.company { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.company:last-child { border-bottom: none; }
.company.out { opacity: .55; }
.company .name { font-weight: 600; font-size: 14px; }
.company .meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.company .meta a { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.company .meta a:hover { color: var(--ink); }
.company details { margin-top: 6px; }
.company summary { cursor: pointer; color: var(--ink-2); font-size: 12.5px; font-weight: 550; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.company summary::-webkit-details-marker { display: none; }
.company .analysis { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; white-space: pre-line; background: var(--bg-2); border-radius: 8px; padding: 10px 12px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.people { margin-top: 10px; display: grid; gap: 2px; }
.person { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 7px; font-size: 13px; flex-wrap: wrap; margin: 0; font-weight: 400; }
.person:hover { background: var(--bg-2); }
.person .who { min-width: 210px; line-height: 1.3; }
.person .who small { display: block; }
.person .coords { color: var(--ink-2); display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.person .coords span { display: inline-flex; gap: 5px; align-items: center; }
.sticky-bar { position: sticky; bottom: 16px; z-index: 5; margin-top: 16px; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px 10px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; box-shadow: 0 10px 30px -8px rgba(17, 19, 24, .35); }
.sticky-bar select { width: auto; height: 32px; padding: 0 10px; }
.sticky-bar .check { color: #fff; }
.progress { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .4s; border-radius: 999px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 64px; gap: 12px; align-items: center; font-size: 13px; margin: 9px 0; }
.bar { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 999px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; flex: none; }
.hero-action { border: 1px solid var(--accent-line); background: linear-gradient(180deg, #fff, #fffaf8); }
.breakdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.breakdown > div { padding: 12px 14px; border-right: 1px solid var(--line); }
.breakdown > div:last-child { border-right: 0; background: var(--bg-2); }
.breakdown .l { font-size: 12px; color: var(--muted); }
.breakdown .v { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .breakdown { grid-template-columns: 1fr 1fr; } }

/* ---------- pages publiques */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 17px; color: var(--ink); letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: var(--ink-2); padding: 6px 11px; border-radius: 7px; font-weight: 500; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--accent-2); }
.topbar .right { display: flex; align-items: center; gap: 8px; }
.credits-pill { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-weight: 600; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
@media (max-width: 900px) { .nav { display: none; } }
.hero { background: #0f1116; color: #fff; padding: 84px 20px 92px; }
.hero .inner { max-width: 1080px; margin: 0 auto; }
.hero h1 { font-size: 46px; max-width: 760px; letter-spacing: -.035em; font-weight: 700; }
.hero h1 em { font-style: normal; color: #ff7a5c; }
.hero p.lead { font-size: 18px; color: #b8bfcc; max-width: 620px; margin: 18px 0 28px; }
.hero .btn { height: 44px; padding: 0 20px; font-size: 15px; }
.hero .btn-ghost { color: #fff; border-color: #2e3340; }
.hero .btn-ghost:hover { background: #1b1e26; color: #fff; }
.section { max-width: 1080px; margin: 0 auto; padding: 72px 20px 0; }
.section > h2 { font-size: 26px; margin-bottom: 8px; }
.section > p.sub { color: var(--ink-2); margin-bottom: 26px; max-width: 660px; font-size: 15px; }
.step-n { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; border: 1px solid var(--accent-line); }
.price { font-size: 32px; font-weight: 700; letter-spacing: -.025em; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan ul { padding-left: 18px; margin: 14px 0 18px; color: var(--ink-2); }
.plan li { margin: 5px 0; }
.footer { max-width: 1080px; margin: 72px auto 0; padding: 24px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.legal h2 { margin-top: 28px; font-size: 18px; }
.legal p, .legal li { color: var(--ink-2); }
@media (max-width: 900px) { .hero h1 { font-size: 32px; } }
.choice.disabled { opacity: .45; pointer-events: none; cursor: default; box-shadow: none; }

/* Discussion de cadrage de la cible */
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; line-height: 1.5; white-space: pre-wrap; font-size: 14px; }
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.err { border-color: var(--accent-line); background: var(--accent-soft); }
.bubble .who { display: block; font-size: 11.5px; font-weight: 600; opacity: .6; margin-bottom: 2px; }
.proposal { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 640px) { .bubble { max-width: 92%; } }

/* Landing */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.mock { margin: 0; background: #fff; color: var(--ink); border-radius: 14px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); font-size: 13px; }
.mock-head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.mock-head span { color: var(--muted); }
.mock-row { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.mock-row.out { opacity: .55; }
.mock-row b { display: block; }
.mock-row small { display: block; color: var(--muted); }
.mock-row small.tag { color: var(--accent-2); }
.mock figcaption { margin-top: 10px; font-size: 11.5px; color: var(--faint); text-align: right; }
.proof-bar { max-width: 1080px; margin: 0 auto; padding: 22px 20px 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-2); font-size: 14px; }
.proof-bar div { display: flex; align-items: center; gap: 6px; }
.proof-bar .i { color: var(--ok); }
.faq { display: grid; gap: 10px; }
.faq details summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary h3 { margin: 0; font-size: 15px; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.post-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
.post-card:hover { border-color: var(--accent); }
.post-card h3 { margin: 6px 0; font-size: 16px; }
.cta-final { text-align: center; padding: 40px 24px; background: #0f1116; color: #fff; border-color: #0f1116; }
.cta-final h2 { color: #fff; font-size: 26px; }
.cta-final p { color: #b8bfcc; margin: 8px 0 20px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 56px 16px 64px; } }

/* Blog */
.blog-wrap { max-width: 760px; margin: 0 auto; padding: 48px 20px 0; }
.blog-wrap.wide { max-width: 1080px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: 36px; letter-spacing: -.03em; line-height: 1.15; }
.article .byline { color: var(--muted); font-size: 13.5px; margin: 12px 0 24px; }
.article .answer { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 16px 18px; font-size: 16px; color: var(--ink); margin-bottom: 24px; }
.article .toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 28px; font-size: 14px; }
.article .toc ol { margin: 8px 0 0; padding-left: 20px; }
.article .toc a { color: var(--ink-2); }
.prose { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-size: 24px; color: var(--ink); margin: 40px 0 12px; letter-spacing: -.02em; scroll-margin-top: 80px; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); color: var(--ink); }
.prose blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--bg-2); }
.prose .table-scroll { overflow-x: auto; }
.article .sources { font-size: 13.5px; color: var(--muted); }
.article .sources a { color: var(--muted); word-break: break-word; }
.blog-cta { margin: 36px 0; padding: 24px; border-radius: 14px; background: #0f1116; color: #fff; }
.blog-cta h3 { color: #fff; margin: 0 0 6px; }
.blog-cta p { color: #b8bfcc; margin: 0 0 14px; }
@media (max-width: 640px) { .article h1 { font-size: 28px; } .prose { font-size: 16px; } .blog-wrap { padding: 32px 16px 0; } }

/* Aide (/app/aide) */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.help-card { display: flex; gap: 14px; align-items: flex-start; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.help-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.help-card strong { display: block; margin-bottom: 4px; }
.help-card .muted { display: block; font-size: 13.5px; line-height: 1.45; }
.help-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fdeeea; color: var(--accent); }
.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.help-nav { position: sticky; top: 68px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.help-nav a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.help-nav a:hover { background: rgba(0, 0, 0, .04); }
.help-nav a.on { background: #fdeeea; color: var(--accent); font-weight: 600; }
.help-nav .help-nav-all { color: var(--muted); margin-bottom: 6px; }
.help-article { max-width: 760px; line-height: 1.65; }
.help-article h1 { margin: 0 0 4px; }
.help-article h2 { font-size: 18px; margin: 26px 0 8px; scroll-margin-top: 70px; }
.help-article table { width: 100%; margin: 8px 0; }
.help-article td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.help-article li { margin: 4px 0; }
.help-article a:not(.btn) { color: var(--accent); }
.help-next { margin-top: 30px; }
.help-link { display: inline-flex; vertical-align: middle; color: var(--muted); margin-left: 6px; }
.help-link:hover { color: var(--accent); }
.help-link svg.i { width: 16px; height: 16px; }
@media (max-width: 820px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* Menu du site public (www) : séparé du menu de l'appli */
.site-top .logo { gap: 9px; }
.logo-mark { width: 24px; height: 24px; display: block; }
.site-top .nav { margin-left: 8px; }
.site-top .right { margin-left: auto; }
.site-top .right .btn { height: 36px; padding: 0 14px; }
@media (max-width: 520px) {
  .site-top .inner { gap: 12px; }
  .site-login { display: none; }
}
