  /* Base (hors claude.ai) */
  html { -webkit-text-size-adjust: 100%; }
  img { max-width: 100%; }
  [hidden] { display: none !important; }

  :root {
    --bg: #eef2f7;
    --surface: #ffffff;
    --surface-2: #f6f8fb;
    --border: #dde4ec;
    --text: #1f2937;
    --muted: #5c6b7c;
    --accent: #0f2a4a;
    --accent-strong: #16406e;
    --accent-tint: #e7edf6;
    --accent-contrast: #ffffff;
    --green: #1c8f68;
    --green-bg: #eef8f3;
    --green-border: #cdeadd;
    --amber: #b5680f;
    --amber-bg: #fdf3e5;
    --amber-border: #f2ddb5;
    --red: #b4403a;
    --band-1: #0f2a4a;
    --band-2: #0a1c30;
    --shadow: 0 1px 3px rgba(15,42,74,.07);
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0e1520; --surface: #17202c; --surface-2: #1c2632; --border: #2b3644;
      --text: #e7ecf2; --muted: #93a2b3; --accent: #86ade0; --accent-strong: #a9c6ec;
      --accent-tint: #1c2a3c; --accent-contrast: #0e1520;
      --green: #3ecb95; --green-bg: #10291f; --green-border: #1f4636;
      --amber: #e3a44f; --amber-bg: #322311; --amber-border: #4d3a1c; --red: #e27a72;
      --band-1: #12304f; --band-2: #0b1a2b;
      --shadow: 0 1px 3px rgba(0,0,0,.3);
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0e1520; --surface: #17202c; --surface-2: #1c2632; --border: #2b3644;
    --text: #e7ecf2; --muted: #93a2b3; --accent: #86ade0; --accent-strong: #a9c6ec;
    --accent-tint: #1c2a3c; --accent-contrast: #0e1520;
    --green: #3ecb95; --green-bg: #10291f; --green-border: #1f4636;
    --amber: #e3a44f; --amber-bg: #322311; --amber-border: #4d3a1c; --red: #e27a72;
    --band-1: #12304f; --band-2: #0b1a2b;
    --shadow: 0 1px 3px rgba(0,0,0,.3);
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html, body { background: var(--bg); }
  body { margin: 0; font-family: "Public Sans", -apple-system, "Segoe UI", Arial, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; }
  h1, h2, h3 { font-family: "Fraunces", Georgia, serif; text-wrap: balance; }
  button, input { font-family: inherit; }
  button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  /* ---------- Header ---------- */
  header.top { background: linear-gradient(155deg, var(--band-1) 0%, var(--band-2) 120%); color: #fff; padding: 22px 20px 0; }
  .top-inner { max-width: 1120px; margin: 0 auto; }
  .brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .brand { display: flex; align-items: center; gap: 10px; font-size: 12.5px; opacity: .85; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; }
  .brand-mark { width: 24px; height: 24px; border-radius: 7px; background: #fff; color: #0f2a4a; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; font-family: "Fraunces", serif; }
  .top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .top-btn { text-decoration: none; display: inline-flex; align-items: center; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
  .top-btn:hover { background: rgba(255,255,255,.16); }
  .greeting { font-size: 25px; font-weight: 600; margin: 16px 0 6px; letter-spacing: -.01em; }
  .greeting-sub { font-size: 14.5px; opacity: .88; max-width: 640px; line-height: 1.55; margin: 0; }
  .tabs { display: flex; gap: 4px; margin-top: 20px; }
  .tab { white-space: nowrap; background: transparent; color: rgba(255,255,255,.75); border: 0; border-radius: 10px 10px 0 0; padding: 11px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; }
  .tab[aria-selected="true"] { background: var(--bg); color: var(--accent); }
  .tab:disabled { cursor: not-allowed; opacity: .55; }
  .tab .badge { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--green); color: #fff; }
  @media (max-width: 480px) { .tab { padding: 10px 11px; font-size: 12.5px; gap: 6px; } .tab .badge { display: none; } }
  .tab .num { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }

  /* ---------- Conversation layout ---------- */
  .wrap { max-width: 1120px; margin: 0 auto; padding: 22px 20px 48px; }
  .chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
  @media (max-width: 900px) { .chat-layout { grid-template-columns: minmax(0, 1fr); } }

  .chat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; height: clamp(560px, calc(100dvh - 250px), 860px); overflow: hidden; }
  @media (max-width: 900px) { .chat { height: max(500px, 76dvh); } }
  .chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
  .chat-head .who { display: flex; align-items: center; gap: 10px; }
  .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); display: flex; align-items: center; justify-content: center; font-family: "Fraunces", serif; font-weight: 700; font-size: 15px; flex: 0 0 auto; }
  .who-name { font-size: 13.5px; font-weight: 700; color: var(--accent); }
  .who-sub { font-size: 11.5px; color: var(--muted); }
  .step-pill { font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-tint); border-radius: 999px; padding: 4px 10px; font-variant-numeric: tabular-nums; }

  .msgs { flex: 1 1 auto; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { .msgs { scroll-behavior: auto; } }
  .msg { max-width: 82%; font-size: 14px; line-height: 1.55; padding: 10px 14px; border-radius: 14px; white-space: pre-line; }
  .msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
  .msg.bot b { color: var(--accent); }
  .msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-contrast); border-bottom-right-radius: 4px; }
  .msg.guard { align-self: flex-start; background: var(--amber-bg); border: 1px solid var(--amber-border); border-bottom-left-radius: 4px; }
  .msg.good { align-self: flex-start; background: var(--green-bg); border: 1px solid var(--green-border); border-bottom-left-radius: 4px; }
  .divider { align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 0 2px; display: flex; align-items: center; gap: 10px; width: 100%; }
  .divider:before, .divider:after { content: ""; flex: 1; border-top: 1px solid var(--border); }
  .typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; border-bottom-left-radius: 4px; }
  .typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite ease-in-out; }
  .typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
  @keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .typing span { animation: none; opacity: .6; } }
  .msg-btn { margin-top: 10px; display: inline-block; }

  .replies { border-top: 1px solid var(--border); padding: 12px 16px 4px; display: flex; flex-wrap: wrap; gap: 8px; max-height: 42%; overflow-y: auto; }
  .replies:empty { display: none; }
  .qr { background: var(--surface); color: var(--accent); border: 1.5px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; line-height: 1.3; }
  .qr:hover { border-color: var(--accent); background: var(--accent-tint); }
  .qr[aria-pressed="true"] { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
  .qr .cnt { font-weight: 500; opacity: .7; font-size: 11.5px; margin-left: 4px; font-variant-numeric: tabular-nums; }
  .qr.muted { color: var(--muted); border-style: dashed; }
  .qr.go { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
  .qr.go:disabled { opacity: .45; cursor: not-allowed; }
  .arb { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; width: 100%; }
  .arb-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 14px; cursor: pointer; text-align: left; color: var(--text); }
  .arb-card:hover { border-color: var(--accent); background: var(--accent-tint); }
  .arb-card .t { display: block; font-family: "Fraunces", serif; font-size: 15.5px; font-weight: 600; color: var(--accent); margin-bottom: 3px; }
  .arb-card .s { display: block; font-size: 12.5px; color: var(--muted); }
  .arb-or { align-self: center; font-family: "Fraunces", serif; font-style: italic; color: var(--muted); font-size: 14px; }
  .arb-alt { width: 100%; display: flex; justify-content: center; }
  @media (max-width: 480px) { .arb { grid-template-columns: 1fr; } .arb-or { justify-self: center; } }

  .composer { display: flex; gap: 8px; padding: 10px 16px 14px; }
  .composer input { flex: 1 1 auto; min-width: 0; border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 10px; padding: 11px 13px; font-size: 14px; }
  .composer input:focus { border-color: var(--accent); outline: none; }
  .composer button { background: var(--accent); color: var(--accent-contrast); border: 0; border-radius: 10px; padding: 0 16px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
  .composer button:disabled, .composer input:disabled { opacity: .5; cursor: not-allowed; }
  .ai-note { font-size: 11px; color: var(--muted); padding: 0 16px 10px; margin-top: -6px; display: flex; align-items: center; gap: 6px; }
  .ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
  .ai-dot.on { background: var(--green); }

  /* ---------- Live panel ---------- */
  .panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 16px 12px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); max-height: calc(100dvh - 24px); overflow-y: auto; }
  @media (max-width: 900px) { .panel { position: static; max-height: none; } }
  .panel h2 { font-size: 16px; margin: 0; color: var(--accent); font-weight: 600; }
  .panel-sub { font-size: 11.5px; color: var(--muted); margin: 3px 0 12px; line-height: 1.5; }
  .files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 4px; }
  .file-seg { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
  .file-seg > i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
  .file-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-bottom: 14px; }
  .file-labels span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .live-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
  .kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; }
  .kpi-v { font-size: 19px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
  .kpi-l { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
  .pgroup { margin-bottom: 12px; }
  .pgroup-t { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
  .prow { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: baseline; font-size: 12.5px; padding: 3px 0; }
  .prow .k { color: var(--muted); }
  .prow .v { color: var(--text); font-weight: 600; text-align: right; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .prow.empty .v { color: var(--border); font-weight: 400; }
  .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); align-self: center; }
  .cdot.confirme { background: var(--green); } .cdot.declare { background: var(--accent); } .cdot.deduit { background: var(--amber); } .cdot.inconnu { background: var(--muted); opacity: .5; } .cdot.calcule { background: var(--muted); }
  .legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10.5px; color: var(--muted); margin: 4px 0 12px; }
  .legend span { display: inline-flex; align-items: center; gap: 5px; }
  .wrow { display: grid; grid-template-columns: 1fr 90px 22px; gap: 8px; align-items: center; font-size: 12px; padding: 2px 0; }
  .wrow .bar { height: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
  .wrow .bar i { display: block; height: 100%; background: var(--accent); opacity: .75; transition: width .3s; }
  .wrow .n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
  .persona { font-size: 11.5px; color: var(--muted); margin: 2px 0 8px; }
  .persona b { color: var(--accent); }
  details.json { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
  details.json summary { font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; }
  .json-pre { font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; max-height: 280px; overflow: auto; white-space: pre; margin: 8px 0; color: var(--text); }
  .small-btn { background: var(--surface); border: 1px solid var(--border); color: var(--accent); font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
  .small-btn:hover { border-color: var(--accent); background: var(--accent-tint); }

  /* ---------- Fiche view (identique au mockup validé) ---------- */
  .fiche-wrap { max-width: 740px; margin: 0 auto; padding: 24px 20px 40px; }
  .fiche-hero { background: linear-gradient(155deg, var(--band-1) 0%, var(--band-2) 120%); color: #fff; border-radius: 14px; padding: 22px 22px 20px; margin-bottom: 22px; }
  .fiche-hero h1 { font-size: 23px; font-weight: 600; margin: 0 0 6px; }
  .fiche-hero p { font-size: 13.5px; opacity: .88; margin: 0; line-height: 1.55; }
  .brief { margin-top: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 13px 14px; }
  .brief-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; opacity: .7; margin-bottom: 9px; font-weight: 600; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; white-space: nowrap; }

  .quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
  .quote-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
  .quote-text { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 19px; line-height: 1.5; color: var(--accent); margin: 0; }
  .quote-src { font-size: 11px; color: var(--muted); margin-top: 8px; }

  .card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 20px; padding: 20px 22px 22px; box-shadow: var(--shadow); transition: box-shadow .4s, border-color .4s; }
  .card.flash { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
  .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
  .card-head h2 { font-size: 17.5px; margin: 0; color: var(--accent); font-weight: 600; }
  .card-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 15px; max-width: 58ch; line-height: 1.5; }
  .edit-btn { background: none; border: 1px solid var(--border); color: var(--accent); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
  .edit-btn:hover, .edit-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
  .edit-hint { display: none; font-size: 12px; color: var(--accent); background: var(--accent-tint); border-radius: 8px; padding: 8px 11px; margin: -4px 0 12px; }
  .editing .edit-hint { display: block; }
  [data-edit] { position: relative; }
  .editing [data-edit] { cursor: pointer; outline: 1.5px dashed var(--accent); outline-offset: 2px; border-radius: 8px; }
  .editing [data-edit]:hover { background: var(--accent-tint); }

  .filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .fchip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; font-size: 12.5px; }
  .fchip b { color: var(--accent); font-weight: 700; }
  .fchip.new { background: var(--amber-bg); border-color: var(--amber-border); }
  .fchip.new b { color: var(--amber); }
  .excl-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .excl-list li { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; padding: 2px 4px; }
  .excl-list li:before { content: "\2715"; color: var(--amber); font-weight: 700; font-size: 10px; }

  .prio-row { display: grid; grid-template-columns: 190px 1fr 34px; align-items: center; gap: 12px; padding: 8px 4px; border-top: 1px solid var(--border); }
  .prio-row:first-of-type { border-top: none; }
  .prio-name { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 7px; }
  .prio-row.top .prio-name { color: var(--accent); }
  .prio-track { height: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
  .prio-fill { height: 100%; border-radius: 999px; background: var(--muted); opacity: .55; }
  .prio-row.top .prio-fill { background: var(--accent); opacity: 1; }
  .prio-val { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
  .prio-note { font-size: 11.5px; color: var(--green); margin: -2px 0 4px; padding-left: 4px; }
  .prio-top3 { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
  @media (max-width: 480px) {
    .prio-row { grid-template-columns: 1fr 30px; grid-template-areas: "name val" "track track"; row-gap: 4px; }
    .prio-name { grid-area: name; } .prio-val { grid-area: val; } .prio-track { grid-area: track; }
  }

  .tip { display: flex; gap: 13px; padding: 13px 4px; border-top: 1px solid var(--border); }
  .tip:first-of-type { border-top: none; padding-top: 2px; }
  .tip-num { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-weight: 800; font-size: 11.5px; display: flex; align-items: center; justify-content: center; }
  .tip-title { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
  .tip-body p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text); }
  .tip-src { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

  .market-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
  .ring { flex: 0 0 auto; width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .ring-inner { width: 64px; height: 64px; background: var(--surface); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .ring-num { font-size: 19px; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
  .ring-label { font-size: 8.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
  .market-text { flex: 1 1 240px; }
  .market-num { font-size: 21px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
  .market-text p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; max-width: 48ch; }
  .h6 { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
  .h6.ok { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
  .h6.ko { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
  .funnel { display: flex; flex-direction: column; gap: 6px; }
  .f-row { display: grid; grid-template-columns: 170px 1fr 52px; gap: 10px; align-items: center; font-size: 12px; }
  .f-row .l { color: var(--muted); }
  .f-row .b { height: 14px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
  .f-row .b i { display: block; height: 100%; background: var(--accent); opacity: .3; border-radius: 4px; }
  .f-row.final .b i { opacity: 1; }
  .f-row.alert .b i { background: var(--green); opacity: 1; }
  .f-row .n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
  @media (max-width: 480px) { .f-row { grid-template-columns: 1fr 44px; } .f-row .b { grid-column: 1 / -1; grid-row: 2; } }
  .levers { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
  .levers-t { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
  .lever { font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
  .lever b { color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .model-note { font-size: 11px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

  .validate-card { background: linear-gradient(155deg, var(--band-1) 0%, var(--band-2) 120%); color: #fff; border-radius: 14px; padding: 24px; text-align: center; margin-bottom: 8px; }
  .validate-card h2 { color: #fff; font-size: 19px; margin: 0 0 8px; }
  .validate-card p { font-size: 13px; opacity: .88; margin: 0 auto 18px; max-width: 50ch; line-height: 1.55; }
  .cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .btn { font-size: 13.5px; font-weight: 700; padding: 11px 20px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; }
  .btn-primary { background: #fff; color: #0f2a4a; }
  .btn-primary:hover { background: #eef2f7; }
  .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
  .btn-ghost:hover { border-color: #fff; }
  .privacy-note { margin-top: 16px; font-size: 11.5px; opacity: .78; line-height: 1.5; }
  .validated { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--text); border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.55; margin-top: 16px; text-align: left; }
  .validated b { color: var(--green); }

  .transcript-toggle { width: 100%; text-align: left; background: none; border: none; border-top: 1px solid var(--border); padding: 16px 0; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
  .transcript-toggle .arrow { transition: transform .15s; font-size: 11px; }
  .transcript-toggle[aria-expanded="true"] .arrow { transform: rotate(180deg); }
  .qa { padding: 10px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
  .qa:first-child { border-top: none; }
  .qa .q { font-size: 12.5px; color: var(--muted); }
  .qa .q b { color: var(--accent); font-weight: 700; }
  .qa .a { font-size: 13px; color: var(--text); grid-column: 1; }
  .qa .small-btn { grid-row: 1 / span 2; grid-column: 2; }

  /* ---------- Accueil ---------- */
  .home { max-width: 1120px; margin: 0 auto; padding: 26px 20px 40px; display: grid; gap: 22px; }
  .home-cta { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 26px 26px 24px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
  @media (max-width: 820px) { .home-cta { grid-template-columns: minmax(0, 1fr); } }
  .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
  .home-cta h2 { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.2; margin: 0 0 12px; color: var(--accent); font-weight: 600; letter-spacing: -.01em; }
  .home-cta p.lead { font-size: 15px; line-height: 1.6; margin: 0 0 20px; max-width: 56ch; }
  .cta-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .btn-main { background: var(--accent); color: var(--accent-contrast); border: 0; border-radius: 10px; padding: 13px 20px; font-size: 14.5px; font-weight: 700; cursor: pointer; }
  .btn-main:hover { background: var(--accent-strong); }
  .btn-sec { background: var(--surface); color: var(--accent); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 18px; font-size: 14px; font-weight: 700; cursor: pointer; }
  .btn-sec:hover { border-color: var(--accent); background: var(--accent-tint); }
  .trust { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 12px; color: var(--muted); }
  .trust span { display: inline-flex; align-items: center; gap: 6px; }
  .trust span:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
  .alert-preview { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
  .ap-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 12.5px; color: var(--muted); }
  .ap-bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; border-bottom-left-radius: 4px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; }
  .ap-bubble b { color: var(--accent); }
  .ap-score { display: inline-block; font-weight: 800; color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
  .ap-meta { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  @media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
  .step { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 16px; }
  .step-n { font-family: "Fraunces", serif; font-size: 28px; font-weight: 600; color: var(--accent); line-height: 1; opacity: .35; }
  .step h3 { font-size: 16.5px; margin: 8px 0 6px; color: var(--accent); font-weight: 600; }
  .step p { font-size: 13px; line-height: 1.6; margin: 0; color: var(--text); }
  .step .dur { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
  .home-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  @media (max-width: 820px) { .home-2col { grid-template-columns: minmax(0, 1fr); } }
  .home-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
  .home-box h3 { font-size: 15.5px; margin: 0 0 10px; color: var(--accent); font-weight: 600; }
  .home-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
  .home-box li { font-size: 13px; line-height: 1.5; padding-left: 20px; position: relative; }
  .home-box li:before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
  .home-box.no li:before { content: "\2715"; color: var(--amber); }
  .resume-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

  /* ---------- Veille active (après validation) ---------- */
  .watch-card { background: var(--surface); border: 1.5px solid var(--green-border); border-radius: 14px; padding: 20px 22px; margin: 20px 0; box-shadow: var(--shadow); }
  .watch-card h2 { font-size: 17.5px; margin: 0 0 4px; color: var(--green); font-weight: 600; }
  .rule { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
  .rule:first-of-type { border-top: 0; }
  .rule-n { width: 26px; height: 26px; border-radius: 50%; background: var(--green-bg); color: var(--green); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
  .rule-t { font-size: 13.5px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
  .rule p { margin: 0; font-size: 12.5px; line-height: 1.6; }
  .rule code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
  @media (max-width: 480px) { .tab .long { display: none; } }

  footer.page-footer { max-width: 1120px; margin: 0 auto; padding: 18px 20px 40px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); line-height: 1.65; }
  footer.page-footer p { margin: 0 0 6px; max-width: 110ch; }
  footer a { color: var(--accent); }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
