/* ProductLab — identité claire (C23). Bleu marine, gris perle, cartes blanches ; turquoise réservé au logo,
   vert désaturé aux validations, rouge discret aux erreurs. Polices hébergées ici (aucune requête externe). */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/fonts/source-serif-4-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/fonts/source-serif-4-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* palette validée (contrastes WCAG 2.2 AA vérifiés : docs/C23.md) */
  --navy: #1D3557; --navy-2: #24426B; --pearl: #F1F5F9; --white: #FFFFFF;
  --blue: #457B9D; --blue-text: #3A6A88; --blue-soft: #E3EDF5; --steel: #6B7280; --sand: #D6C2A1; --sand-soft: #F4ECDD;
  --ok: #356F4F; --ok-soft: #E7F1EA; --bad: #B3443B; --bad-soft: #F9EAE8; --warn: #7A5B24; --warn-soft: #F4ECDD;
  /* rôles */
  --bg: var(--pearl); --surface: #F7F9FC; --card: var(--white); --card-hover: #FBFCFE;
  --line: #E2E8F0; --line-strong: #CBD5E1; --field: #8A94A3;
  --ink: #1F2D3D; --ink-2: #3E4C5E; --muted: #5B6473; --faint: var(--steel);
  --accent: var(--navy); --accent-ink: #FFFFFF; --down: var(--bad); --flat: var(--steel);
  --shadow: 0 1px 2px rgba(29, 53, 87, .06), 0 2px 8px rgba(29, 53, 87, .04);
  --shadow-hover: 0 2px 4px rgba(29, 53, 87, .07), 0 10px 24px rgba(29, 53, 87, .08);
  --radius: 14px; --gutter: 32px;
  --serif: "Source Serif 4", "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11" 1; }
body.panel-open { overflow: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* ---------- barre du haut ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: 68px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; flex: none; padding-right: 24px; border-right: 1px solid var(--line); height: 40px; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-mark-img { display: none; height: 34px; width: 34px; }
.topnav { display: flex; gap: 6px; align-items: center; }
.topnav a, .link-button { display: inline-flex; align-items: center; gap: 8px; height: 40px; background: none; border: 0; padding: 0 12px; color: var(--ink-2); font-size: 15px; font-weight: 500; border-radius: 8px; }
.topnav a .ico, .link-button .ico { stroke: currentColor; }
.topnav a.active { color: var(--navy); font-weight: 650; box-shadow: inset 0 -3px 0 var(--sand); border-radius: 0; }
.link-button:hover, .topnav a:hover { color: var(--navy); background: var(--pearl); }
.topnav a.active:hover { background: none; }
.search { flex: 1; max-width: 560px; margin-left: auto; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--field); border-radius: 12px; padding: 0 14px; height: 44px; }
.search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(69, 123, 157, .18); }
.search-icon, .icon-only svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14.5px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.kbd { flex: none; font: 600 11px var(--sans); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 6px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.live { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; white-space: nowrap; margin-right: 6px; }
.live strong { color: var(--navy); font-weight: 650; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.lang { display: flex; gap: 2px; background: var(--pearl); border: 1px solid var(--line); border-radius: 10px; padding: 3px; font-size: 12px; font-weight: 650; }
.lang span { padding: 5px 8px; border-radius: 7px; color: var(--muted); }
.lang span.on { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }
.icon-only { background: none; border: 0; padding: 8px; border-radius: 8px; }
.icon-only:hover { background: var(--pearl); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; padding: 11px 18px; font-weight: 600; font-size: 14.5px; border: 1px solid transparent; white-space: nowrap; transition: background .12s ease, border-color .12s ease; }
.btn .ico { stroke: currentColor; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.ghost { background: var(--white); color: var(--navy); border-color: var(--blue); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.wide { width: 100%; padding: 14px; font-size: 15px; }
.mobile-only { display: none; }

main { padding: 0; }

/* ---------- en-tête du marché ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F7F9FC 0%, var(--pearl) 100%); border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: min(58%, 820px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.hero-art img { position: absolute; right: -2%; bottom: 0; height: 100%; width: auto; max-width: none; opacity: .75; }
.hero-in { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-block: 40px 44px; }
.hero-text { max-width: 860px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--sand-soft); border: 1px solid var(--sand); color: var(--navy); font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-size: clamp(34px, 4.1vw, 56px); line-height: 1.08; letter-spacing: -.6px; font-weight: 650; color: var(--navy); text-wrap: balance; font-optical-sizing: auto; }
.hero h1 em { font-style: normal; background: linear-gradient(180deg, transparent 58%, rgba(214, 194, 161, .55) 58%, rgba(214, 194, 161, .55) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero p { margin-top: 18px; color: var(--ink-2); font-size: 18px; line-height: 1.55; max-width: 62ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.signals { display: flex; gap: 16px; }
.signal { position: relative; width: 280px; min-height: 150px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.signal-label { color: var(--muted); font-size: 13px; }
.signal strong { font-size: 17px; line-height: 1.3; color: var(--navy); }
.signal span.up { color: var(--ok); } .signal span.down { color: var(--down); }
.spark.big { position: absolute; right: 14px; bottom: 12px; width: 130px; height: 44px; }

/* ---------- catégories ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding-block: 24px 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 13px; border-radius: 10px; background: var(--white); border: 1px solid var(--line-strong); color: var(--ink); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--blue); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.chip .n { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.active .n { color: #D8E2EE; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chip:not(.active) .ico { stroke: var(--blue); }
.caret { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.chip-more { position: relative; }
.menu { position: absolute; top: 52px; right: 0; z-index: 15; display: grid; gap: 4px; padding: 8px; min-width: 230px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-hover); }
.menu .chip { width: 100%; justify-content: flex-start; border-color: transparent; }
.menu .chip:hover { background: var(--pearl); }

/* ---------- liste + panneau ---------- */
.layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; padding-block: 8px 56px; }
.layout.with-panel { grid-template-columns: minmax(0, 1fr) 440px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 18px 0 16px; }
.section-head h2 { font-family: var(--serif); font-size: 30px; line-height: 1.15; font-weight: 650; color: var(--navy); letter-spacing: -.2px; }
.section-head .sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
.sort { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 14px; border: 1px solid var(--field); border-radius: 10px; background: var(--white); color: var(--muted); font-size: 14px; }
.sort select { border: 0; background: transparent; font-weight: 650; color: var(--navy); padding: 6px 4px; width: auto; cursor: pointer; }
.sort select:focus { outline: none; }
.sort:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(69, 123, 157, .18); }
.sort-note { width: 100%; color: var(--muted); font-size: 13px; text-align: right; }
.grid { display: flex; flex-direction: column; gap: 14px; }
.more { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- carte horizontale ---------- */
.card { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) 230px 20px; align-items: center; column-gap: 22px; padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .15s ease, border-color .15s ease; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.card.selected { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy), var(--shadow-hover); }
.thumb { width: 72px; height: 72px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--blue-soft); color: var(--blue-text); align-self: start; }
.thumb.sand { background: var(--sand-soft); color: #8A6D3B; }
.thumb.slate { background: #EAEEF3; color: var(--navy); }
.thumb .ico { width: 30px; height: 30px; stroke-width: 1.6; stroke: currentColor; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.card h3 { font-size: 17px; line-height: 1.35; font-weight: 650; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: #F8FAFC; color: var(--ink-2); font-size: 12.5px; font-weight: 500; line-height: 1.5; }
.tag .ico { width: 14px; height: 14px; stroke: var(--blue); }
.tag.ok { border-color: #B9D3C3; background: var(--ok-soft); color: var(--ok); }
.card-side { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; border-left: 1px solid var(--line); align-self: stretch; justify-content: center; min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 4px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 650; background: var(--blue-soft); color: #2E6283; }
.status .ico { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.2; }
.status.published { background: var(--ok-soft); color: var(--ok); }
.status.test { background: var(--warn-soft); color: var(--warn); }
.side-line { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; min-width: 0; }
.side-line .ico { width: 15px; height: 15px; stroke: var(--muted); }
.side-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .chev { stroke: var(--navy); }
.card-foot { display: flex; align-items: center; gap: 14px; padding-top: 6px; font-size: 14px; flex-wrap: wrap; }
.stat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.stat small { color: var(--muted); font-weight: 400; font-size: 13px; }
.stat .ico { width: 16px; height: 16px; stroke: var(--muted); }
.budget { padding: 3px 9px; border-radius: 8px; background: var(--sand-soft); color: var(--warn); font-size: 13px; font-weight: 650; }
.trend { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.trend.up { color: var(--ok); } .trend.down { color: var(--down); } .trend.flat { color: var(--flat); }
.spark { width: 64px; height: 24px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark.up { stroke: var(--ok); } .spark.down { stroke: var(--down); } .spark.flat { stroke: var(--flat); }

/* couverture (panneau et fiche) */
.cover { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue-text); }
.cover.sand { background: var(--sand-soft); color: #8A6D3B; } .cover.slate { background: #EAEEF3; color: var(--navy); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .ico { width: 42%; height: 42%; stroke-width: 1.4; stroke: currentColor; }
.origin { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--blue-soft); color: #2E6283; }
.origin.published { background: var(--ok-soft); color: var(--ok); }
.origin .ico { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--muted); text-align: center; }

/* ---------- panneau latéral ---------- */
.panel { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-hover); animation: slide-in .2s ease; }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } }
.panel-inner { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.close { position: absolute; right: 14px; top: 14px; background: none; border: 0; padding: 8px; border-radius: 10px; }
.close:hover { background: var(--pearl); }
.close svg { width: 20px; height: 20px; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.panel-head { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding-right: 28px; }
.panel-head h2 { font-family: var(--serif); font-size: 22px; line-height: 1.25; font-weight: 650; color: var(--navy); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.panel-trend { margin: 10px 0 0; }
.life { display: flex; gap: 20px; color: var(--muted); font-size: 14px; }
.life span { display: inline-flex; align-items: center; gap: 6px; }
.life strong { color: var(--ink); }
.life .ico { width: 16px; height: 16px; }
.budget-line { color: var(--warn); font-weight: 650; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; padding: 10px 0; color: var(--muted); font-size: 15px; font-weight: 500; }
.tab.on { color: var(--navy); font-weight: 650; box-shadow: inset 0 -3px 0 var(--sand); }
.tab-body { display: flex; flex-direction: column; gap: 22px; }
.block h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; color: var(--navy); margin-bottom: 10px; }
.block h3 .ico { stroke: var(--blue); }
.block p { color: var(--ink-2); }
.brief { padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 1.65; }
.fine { margin-top: 10px; color: var(--muted); font-size: 13px; }
.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: idea; }
.ideas li { counter-increment: idea; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink); }
.ideas li::before { content: counter(idea); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 12px; font-weight: 650; }
.trend-chart .spark.chart { width: 100%; height: 140px; stroke-width: 2.5; }
.lock { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: -8px; color: var(--muted); font-size: 13px; text-align: center; }
.lock .ico { width: 15px; height: 15px; }

/* ---------- pied de page et dialogues ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-in { padding-block: 32px 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy); }
.footer-cta .btn { font-family: var(--sans); font-size: 15px; }
.footer-note { color: var(--muted); font-size: 13px; }
dialog { max-width: 420px; width: calc(100% - 32px); border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 28px; box-shadow: 0 24px 60px rgba(29, 53, 87, .22); }
dialog::backdrop { background: rgba(29, 53, 87, .35); }
dialog h2 { font-family: var(--serif); font-size: 22px; color: var(--navy); margin-bottom: 10px; }
dialog p { color: var(--ink-2); margin-bottom: 22px; }
dialog form { display: flex; justify-content: flex-end; }

/* ---------- écrans moyens et téléphone ---------- */
@media (max-width: 1240px) {
  .card { grid-template-columns: 64px minmax(0, 1fr) 200px 20px; column-gap: 18px; }
  .thumb { width: 64px; height: 64px; }
  .layout.with-panel .card { grid-template-columns: 56px minmax(0, 1fr) 20px; }
  .layout.with-panel .card-side { grid-column: 2 / 3; border-left: 0; padding: 10px 0 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
  .layout.with-panel .thumb { width: 56px; height: 56px; }
  .layout.with-panel .chev { grid-column: 3; grid-row: 1; }
  .signal { width: 240px; }
}
@media (max-width: 1000px) {
  :root { --gutter: 20px; }
  .topbar { gap: 14px; }
  .topnav { display: none; }
  .brand { border-right: 0; padding-right: 0; }
  .hero-in { flex-direction: column; align-items: stretch; }
  .hero-art { width: 70%; opacity: .55; }
  .signals { overflow-x: auto; scrollbar-width: none; }
  .signal { flex: none; }
  .layout.with-panel { grid-template-columns: minmax(0, 1fr); }
  .layout.with-panel .card { grid-template-columns: 64px minmax(0, 1fr) 200px 20px; }
  .layout.with-panel .card-side { grid-column: auto; border-left: 1px solid var(--line); padding: 0 0 0 18px; flex-direction: column; align-items: stretch; }
  .layout.with-panel .chev { grid-column: auto; grid-row: auto; }
  .panel { position: fixed; inset: 0; top: auto; z-index: 30; max-height: 92vh; height: 92vh; border-radius: 20px 20px 0 0; animation: sheet-in .22s ease; }
  body.panel-open { overflow: hidden; }
  body.panel-open::after { content: ""; position: fixed; inset: 0; background: rgba(29, 53, 87, .35); z-index: 25; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .topbar { height: auto; min-height: 60px; padding-block: 8px; flex-wrap: wrap; row-gap: 8px; gap: 8px; }
  .brand { height: 36px; }
  .brand-logo { height: 30px; }
  .lang span:not(.on) { display: none; }
  .lang span.on { background: none; padding: 5px 6px; box-shadow: none; }
  .search { display: none; order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .kbd { display: none; }
  body.search-open .search { display: flex; }
  .top-actions { margin-left: auto; gap: 4px; }
  .mobile-only { display: inline-flex; }
  .desktop-only { display: none; }
  .live { display: none !important; }
  .btn { padding: 10px 14px; font-size: 14px; }
  .hero-in { padding-block: 26px 28px; }
  .hero-art { width: 100%; opacity: .28; }
  .eyebrow { font-size: 12.5px; margin-bottom: 14px; }
  .hero p { font-size: 16px; margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 18px var(--gutter) 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { height: 42px; padding: 0 14px; font-size: 14.5px; }
  .menu { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; }
  .section-head h2 { font-size: 25px; }
  .sort-note { text-align: left; }
  .card, .layout.with-panel .card { grid-template-columns: 48px minmax(0, 1fr) 18px; column-gap: 14px; padding: 16px; }
  .thumb, .layout.with-panel .thumb { width: 48px; height: 48px; border-radius: 10px; }
  .thumb .ico { width: 24px; height: 24px; }
  .card h3 { font-size: 16px; }
  .card-side, .layout.with-panel .card-side { grid-column: 2 / 4; grid-row: 2; border-left: 0; border-top: 1px solid var(--line); margin-top: 12px; padding: 12px 0 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
  .chev, .layout.with-panel .chev { grid-column: 3; grid-row: 1; align-self: start; }
  .panel { max-height: 100vh; height: 100%; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
  .panel-inner { padding: 20px 16px 28px; }
  .panel-head { grid-template-columns: 64px minmax(0, 1fr); }
  .panel-head h2 { font-size: 20px; }
  .footer-cta { font-size: 18px; }
  .card-side, .layout.with-panel .card-side { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .card, .layout.with-panel .card { grid-template-columns: minmax(0, 1fr) 18px; }
  .thumb, .layout.with-panel .thumb { display: none; }
  .card-side, .layout.with-panel .card-side { grid-column: 1 / 3; }
  .chev, .layout.with-panel .chev { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- compte, fiche complète, espace privé ---------- */
.account-area { display: inline-flex; }
.me-link { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.small { padding: 7px 12px; font-size: 13.5px; }
.btn.center { text-align: center; }
.panel-inner > .btn.ghost.wide { margin-top: -10px; }
.muted-text { color: var(--muted); font-size: 14px; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); border: 1px solid #C5D8E6; color: var(--ink); font-size: 14px; }
.form-error { color: var(--bad); font-size: 13.5px; min-height: 1em; }
.page { padding-block: 28px 56px; display: flex; flex-direction: column; gap: 22px; }
.page h1 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.3px; color: var(--navy); font-weight: 650; text-wrap: balance; }
.page h2 { color: var(--navy); }
.back-link { color: var(--blue-text); font-size: 14.5px; font-weight: 600; align-self: flex-start; }
.back-link:hover { color: var(--navy); text-decoration: underline; }
.fiche-head { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; align-items: center; }
.cover.big { border-radius: 18px; }
.fiche-title { display: flex; flex-direction: column; gap: 12px; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.fiche-actions .btn.wide { width: auto; padding: 13px 22px; }
.fiche-grid, .space-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.fiche-main, .fiche-side { display: flex; flex-direction: column; gap: 24px; }
.fiche-side .block, .card-block { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.space-grid > div { display: flex; flex-direction: column; gap: 20px; }
.source-link { color: var(--blue-text); font-weight: 600; word-break: break-all; text-decoration: underline; text-decoration-color: rgba(58, 106, 136, .35); text-underline-offset: 3px; }
.source-link:hover { color: var(--navy); }
.orgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.orgs li, .row-flex { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.done { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.done.published { border-color: #B9D3C3; background: var(--ok-soft); }
.qualify, .space-form { display: flex; flex-direction: column; gap: 12px; }
.inline-form { display: flex; flex-direction: row; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.space-form label, .qualify label, .account-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.inline-form label { flex: 1 1 140px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; background: var(--white); color: var(--ink); border: 1px solid var(--field); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14.5px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(69, 123, 157, .18); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink) !important; font-size: 13.5px !important; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rows li { padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.rows li > a { display: flex; flex-direction: column; gap: 6px; }
.rows.plain li { gap: 4px; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: #EAEEF3; color: var(--ink-2); }
.pill.on { background: var(--ok-soft); color: var(--ok); }
.pill.down { background: var(--bad-soft); color: var(--bad); }
.space-head { display: flex; justify-content: space-between; align-items: center; }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.initial { display: grid; place-items: center; background: var(--blue-soft); color: var(--navy); font-size: 24px; font-weight: 700; }
.account-form { display: flex; flex-direction: column; gap: 14px; }
.account-form h2 { margin-bottom: 0; }
.account-form p { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 900px) {
  .fiche-grid, .space-grid { grid-template-columns: minmax(0, 1fr); }
  .fiche-head { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
}
@media (max-width: 720px) {
  .fiche-head { grid-template-columns: 1fr; }
  .fiche-head .cover.big { width: 88px; }
  .fiche-actions .btn { flex: 1 1 auto; }
  .page { padding-top: 18px; }
}
.topbar .search input#search { border: 0; background: none; padding: 0; border-radius: 0; box-shadow: none; }
.rows li.row-flex { flex-direction: row; align-items: center; justify-content: space-between; }

/* ---------- IA privée et agents ---------- */
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.tabs a.on { color: var(--navy); box-shadow: inset 0 -3px 0 var(--sand); }
.tabs a:hover { color: var(--navy); }
.agent-line { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 13.5px; }
.agent-line b { color: var(--ink); font-weight: 650; }
.result-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow-y: auto; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--ink); }
.space details > summary { cursor: pointer; color: var(--blue-text); font-size: 13.5px; font-weight: 600; padding: 4px 0; }
.space details[open] > summary { color: var(--navy); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--white); }
.stat-table th, .stat-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stat-table th { color: var(--ink-2); font-weight: 650; background: var(--surface); font-size: 12.5px; }
.stat-table tbody tr:last-child td { border-bottom: 0; }
.stat-table td.num, .stat-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.weak { color: var(--muted); font-size: 12px; margin-left: 4px; }
.space details.action { margin-top: 4px; }
.space details.action > summary { list-style: none; display: inline-block; color: inherit; padding: 7px 14px; }
.space details.action > summary::-webkit-details-marker { display: none; }
.space details.action > summary.btn.primary { color: #fff; }
.space details.action[open] > summary { margin-bottom: 10px; }
.modes { display: flex; flex-direction: column; gap: 8px; }
.space-form .modes label { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 14.5px; }
.modes label.off { opacity: .55; }
.stat-table .weak { display: block; margin-left: 0; }
.conn { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 2px; border-top: 1px solid var(--line); margin-top: 6px; }
.conn .tag { display: inline-flex; margin: 2px 4px 2px 0; }
.modes input { width: auto; flex: none; margin: 0; accent-color: var(--navy); }
.methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.method { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; gap: 4px; }
.method.off { opacity: .6; }
.method .row-actions { margin-top: 4px; }
.steps { margin: 4px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--muted); }
.steps:empty { display: none; }
.steps li.yes { color: var(--ok); } .steps li.no { color: var(--bad); } .steps li.warn { color: var(--warn); }
.rows .steps li { display: list-item; padding: 1px 0; background: none; border: 0; border-radius: 0; }
.test-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; border: 1px dashed var(--warn); color: var(--warn); background: var(--warn-soft); }
.cover .test-badge, .thumb .test-badge { position: absolute; top: 6px; right: 6px; margin: 0; }
.evidence { margin: 0; padding: 10px 14px; border-left: 3px solid var(--sand); background: var(--surface); border-radius: 0 10px 10px 0; font-family: var(--serif); font-size: 16px; font-style: italic; color: var(--ink); overflow-wrap: anywhere; }

/* États du marché : calmes, sans fausse progression. */
.lab-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 64px 16px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lab-state h2 { margin: 16px 0 0; font-family: var(--serif); color: var(--navy); font-size: 24px; font-weight: 650; }
.lab-state p { margin: 0; max-width: 52ch; line-height: 1.6; color: var(--ink-2); }
.lab-ring { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--blue); opacity: .55; animation: lab-pulse 2.4s ease-in-out infinite; }
.lab-ring.slow { animation-duration: 3.6s; }
@keyframes lab-pulse { 0%, 100% { transform: scale(.82); opacity: .3; } 50% { transform: scale(1); opacity: .8; } }
.lab-how { margin-top: 26px !important; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }
.lab-step { min-height: 1.6em; color: var(--navy) !important; font-weight: 500; transition: opacity .45s ease; }
.lab-step.out { opacity: 0; }
.lab-steps { display: none; }
@media (prefers-reduced-motion: reduce) {
  .lab-ring { animation: none; }
  .lab-step { display: none; }
  .lab-steps { display: block; margin: 0; padding: 0; list-style: none; color: var(--ink); line-height: 1.8; }
}
.source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.source-list li { display: grid; gap: 2px; min-width: 0; }
.source-list .source-link { overflow-wrap: anywhere; word-break: normal; }
.tabs:has(> a) { gap: 6px; margin: 4px 0 18px; }
.card.skeleton { display: block; pointer-events: none; }
.card.skeleton .cover { display: none; }
.card.skeleton i { display: block; height: 12px; margin: 10px 0; border-radius: 6px; background: #E8EDF3; animation: pulse 1.4s ease-in-out infinite; }
.card.skeleton i:first-child { width: 60%; height: 16px; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- C28 : poste de direction d'un problème ---------- */
.cmd-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn.cmd { min-width: 150px; padding: 14px 22px; font-size: 15px; letter-spacing: .04em; }
.cmd-panel { padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--blue); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.cmd-panel h3 { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.cmd-panel h4.mt, .org h4 { margin-top: 6px; font-size: 14px; color: var(--navy); }
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.plan .step { counter-increment: step; position: relative; padding: 14px 16px 14px 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; gap: 6px; }
.plan .step::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pearl); color: var(--navy); font-weight: 700; font-size: 13px; }
.plan .step.done::before { background: var(--ok-soft); color: var(--ok); }
.plan .step.failed::before { background: var(--bad-soft); color: var(--bad); }
.plan .step.ready::before { background: var(--navy); color: #fff; }
.plan .step .rows li { padding: 8px 10px; }
.org { display: grid; gap: 14px; }
.org .rows li { padding: 8px 12px; }
details.manual { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
details.manual > summary { cursor: pointer; color: var(--blue-text); font-weight: 600; font-size: 15px; }
details.manual[open] > summary { margin-bottom: 14px; }

/* ---------- C29 : filtres géographiques et état des traductions ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filters .sort select { max-width: 220px; }
.tr-line { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tr-line.uncertain { color: var(--warn); }
.tr-toggle { height: auto; padding: 0; font-size: 13px; color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .filters { justify-content: flex-start; } .filters .sort { flex: 1 1 100%; } .filters .sort select { max-width: none; flex: 1; } }

/* C30 — ProductLab Excel */
.xl-page .lede { max-width: 70ch; color: var(--text-muted, #5b6472); }
.xl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 0; list-style: none; counter-reset: xl; margin: 20px 0; }
.xl-steps li { counter-increment: xl; background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 14px; font-size: .95rem; }
.xl-steps li::before { content: counter(xl); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1D3557; color: #fff; font-weight: 600; margin-right: 8px; }
.xl-list { padding-left: 1.1em; margin: 0; } .xl-list li { margin: 4px 0; }
.xl-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.xl-offer { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 16px; }
.xl-offer h3 { margin: 0 0 4px; } .xl-price { font-weight: 600; color: #1D3557; margin: 0 0 8px; }
.xl-result .btn { margin-right: 8px; }

.xl-missions .row-flex { flex-wrap: wrap; gap: 8px; } .xl-missions .row-actions { flex-wrap: wrap; gap: 6px; }
.xl-page .btn { max-width: 100%; white-space: normal; }
/* C31 : documents, restitution structurée (tableaux défilants sur téléphone, statut honnête) */
.xl-docs { display: grid; gap: 8px; margin-bottom: 12px; }
.xl-label { font-weight: 600; }
.xl-doc { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #e3e8ef; border-radius: 10px; background: #fff; }
.xl-doc-main { display: grid; gap: 2px; min-width: 0; }
.xl-doc-name { overflow-wrap: anywhere; }
.xl-add, .xl-replace { cursor: pointer; width: fit-content; }
.btn.danger { color: #9b2226; border-color: #e6b8b8; }
.pill.warn { background: #fff3cd; color: #7a5a00; }
.xl-status { border-left: 4px solid #8a94a6; padding: 8px 12px; border-radius: 6px; background: #f6f8fb; margin: 8px 0 12px; }
.xl-status.ok { border-color: #2a9d8f; background: #eef8f6; } .xl-status.warn { border-color: #e9a23b; background: #fff8ec; } .xl-status.bad { border-color: #c0392b; background: #fdf0ef; }
.xl-status p { margin: 4px 0 0; }
.xl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 12px; }
.xl-facts div { background: #f6f8fb; border-radius: 8px; padding: 8px 10px; } .xl-facts dt { font-size: .8rem; color: #5b6472; } .xl-facts dd { margin: 2px 0 0; font-weight: 600; }
.xl-sec { margin: 14px 0; min-width: 0; } .xl-sec h4 { margin: 0 0 6px; font-size: 1rem; }
.xl-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid #e3e8ef; border-radius: 8px; }
.xl-table { border-collapse: collapse; width: 100%; font-size: .88rem; } .xl-table th, .xl-table td { padding: 6px 8px; border-bottom: 1px solid #eef1f5; text-align: left; vertical-align: top; }
.xl-table th { background: #1D3557; color: #fff; font-weight: 600; white-space: nowrap; }
.xl-checks { list-style: none; padding: 0; margin: 0; } .xl-checks li { margin: 3px 0; } .xl-checks li.ok { color: #1f6f63; } .xl-checks li.bad { color: #9b2226; }
.xl-result, .xl-page .space-grid > div { min-width: 0; }

/* ---------- C31 : même organisation que le terminal privé (barre latérale, recherche, secteurs) ---------- */
:root { --side: 212px; --top: 68px; }
.sidenav { position: fixed; z-index: 15; top: var(--top); left: 0; bottom: 0; width: var(--side); background: var(--white); border-right: 1px solid var(--line);
  padding: 20px 12px calc(20px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.sidenav .topnav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.sidenav .topnav a, .sidenav .topnav .link-button { justify-content: flex-start; width: 100%; height: 44px; padding: 0 12px; border-radius: 8px; font-size: 14.5px; text-align: left; }
.sidenav .topnav a.active { background: var(--blue-soft); color: var(--navy); font-weight: 650; box-shadow: inset 3px 0 0 var(--navy); border-radius: 0 8px 8px 0; }
main, .footer { margin-left: var(--side); }
.home-head { padding-block: 34px 6px; }
.home-head h1 { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 650; color: var(--navy); letter-spacing: -.3px; text-wrap: balance; }
.home-head > p { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 68ch; text-wrap: pretty; }
.home-search { display: flex; align-items: center; gap: 10px; margin-top: 20px; max-width: 760px; background: var(--white); border: 1px solid var(--field); border-radius: 12px; padding: 6px 6px 6px 14px; }
.home-search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(69, 123, 157, .18); }
.home-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 8px 0; }
.home-search .search-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.home-head .signals { margin-top: 20px; }
.sector-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-block: 24px 8px; }
.sector-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 108px; padding: 16px 8px 14px; text-align: center; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); }
.sector-tile .ico { width: 28px; height: 28px; stroke: var(--blue); }
.sector-tile strong { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.sector-tile .n { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sector-tile:hover { border-color: var(--navy); background: var(--card-hover); }
.sector-tile.active { background: var(--navy); border-color: var(--navy); }
.sector-tile.active strong, .sector-tile.active .n { color: #fff; }
.sector-tile.active .ico { stroke: #fff; }
.sector-tile.empty .ico { stroke: var(--field); }
.link-inline { background: none; border: 0; padding: 0; color: var(--blue-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tag.cat { border-color: #BCCFE0; background: var(--blue-soft); color: var(--navy); }
.tag.soft { border-color: var(--line); background: transparent; color: var(--muted); }
.tag.warn { border-color: var(--sand); background: var(--warn-soft); color: var(--warn); }
.warn-text { color: var(--warn); }
.cls-rows { display: grid; gap: 8px; margin: 0; }
.cls-rows div { display: grid; grid-template-columns: minmax(110px, 40%) minmax(0, 1fr); gap: 10px; }
.cls-rows dt { color: var(--muted); font-size: 13.5px; }
.cls-rows dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.near-title { margin-top: 16px; }
.near-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.near-list a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; }
.tools-head p { margin-top: 8px; color: var(--ink-2); max-width: 68ch; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.tool-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); }
.tool-ico .ico { stroke: var(--navy); }
.tool-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tool-text h2 { font-size: 17px; }
.tool-text p { color: var(--ink-2); font-size: 14px; }
.tool-card .btn { flex: none; }
@media (max-width: 1240px) { .sector-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 1000px) {
  :root { --side: 0px; }
  .sidenav { position: sticky; top: var(--top); width: auto; bottom: auto; padding: 6px max(var(--gutter), env(safe-area-inset-left, 0px)); border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav .topnav { display: flex; flex-direction: row; gap: 4px; }
  .sidenav .topnav a, .sidenav .topnav .link-button { width: auto; flex: none; height: 40px; white-space: nowrap; }
  .sidenav .topnav a.active { box-shadow: inset 0 -3px 0 var(--navy); border-radius: 8px 8px 0 0; }
  .sector-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tools-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .sidenav { top: 0; position: relative; }
  .home-head { padding-block: 22px 0; }
  .home-head > p { font-size: 15px; }
  .home-search .btn { padding: 9px 12px; }
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 18px; }
  .sector-tile { min-height: 0; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; text-align: left; padding: 12px; gap: 4px 10px; }
  .sector-tile .ico { width: 22px; height: 22px; }
  .sector-tile .n { flex-basis: 100%; padding-left: 32px; }
  .tool-card { flex-wrap: wrap; }
  .tool-card .btn { margin-left: 58px; }
  .cls-rows div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
.news { padding-block: 18px 4px; }
.news-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 650; color: var(--navy); }
.news-head .sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.news-col { background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.news-col h3 { font-size: 14.5px; color: var(--navy); display: flex; justify-content: space-between; gap: 8px; }
.news-col h3 .n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.news-col ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.news-col li { display: flex; flex-direction: column; gap: 2px; }
.news-col li a { color: var(--ink); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.news-col li a:hover { color: var(--blue-text); text-decoration: underline; }
.news-col .fine { margin-top: 0; font-size: 12.5px; }
.news-empty { margin-top: 12px; }
.tag.life { border-color: var(--line-strong); background: var(--white); color: var(--ink-2); }
.tag.life.nouveau { border-color: #BCCFE0; color: var(--navy); }
.tag.life.en_investigation { border-color: #B9D3C3; background: var(--ok-soft); color: var(--ok); }
.tag.life.en_stagnation { border-color: var(--sand); background: var(--warn-soft); color: var(--warn); }
.home-search input[type=search] { border: 0; box-shadow: none; background: transparent; height: auto; padding: 8px 0; border-radius: 0; }
@media (max-width: 720px) { .sector-tile { padding: 10px 12px; } .sector-tile strong { font-size: 14px; } .sector-tile .n { font-size: 12px; } .home-head h1 { font-size: 26px; } }
#marche { scroll-margin-top: calc(var(--top) + 12px); }
@media (max-width: 1000px) { #marche { scroll-margin-top: calc(var(--top) + 60px); } }
@media (max-width: 720px) { #marche { scroll-margin-top: 12px; } .tool-text { flex-basis: calc(100% - 58px); } }
.contrib-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.contrib-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--white); display: grid; gap: 8px; }
.contrib-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.contrib-meta .fine { margin: 0; }
.contrib-item p { white-space: pre-wrap; overflow-wrap: anywhere; }
.contrib-form { display: grid; gap: 12px; margin-top: 12px; }
.contrib-row { display: flex; flex-wrap: wrap; gap: 10px; }
.contrib-form label { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.contrib-form select, .contrib-form input, .contrib-form textarea { border: 1px solid var(--field); border-radius: 8px; padding: 8px 10px; background: var(--white); font-size: 15px; max-width: 100%; }
.contrib-form .btn { justify-self: start; }
.link-inline.small { font-size: 12.5px; justify-self: start; }
.ok-text { color: var(--ok); }
.sidenav .nav-label { display: block; margin: 14px 12px 4px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1000px) { .sidenav .nav-label { display: none; } }

/* C31 — services publics (factures électroniques, MTD, CBAM, EUDR) */
.tool-page { max-width: 880px; }
.tool-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 0 0 16px; }
.tool-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; align-items: end; margin: 0 0 20px; }
.tool-form label { display: grid; gap: 6px; font-weight: 500; min-width: 0; }
.tool-form .fine, .tool-form fieldset, .tool-form .check-line, .tool-form .drop-zone { grid-column: 1 / -1; }
.tool-form .btn { justify-self: start; }
.tool-form fieldset { border: 1px solid var(--line, #e3e6ea); border-radius: 10px; padding: 10px 14px; margin: 0; }
.tool-form legend { font-weight: 500; padding: 0 4px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }
.tool-form label.check-line { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.drop-zone { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1.5px dashed var(--line, #c9ced6); border-radius: 12px; text-align: center; cursor: pointer; }
.drop-zone.over { border-color: var(--blue); background: var(--blue-soft); }
.tool-out:empty { display: none; }
.tool-out { border-top: 1px solid var(--line, #e3e6ea); padding-top: 16px; margin-top: 8px; }
.tool-out h2, .tool-page > h2 { font-size: 1.1rem; margin: 18px 0 8px; }
.tool-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 12px; }
.tool-card { border: 1px solid var(--line, #e3e6ea); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.tool-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tool-table th, .tool-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line, #e3e6ea); vertical-align: top; }
.tool-table th.num, .tool-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tool-table.totals { max-width: 420px; }
.check-list, .step-list, .tool-sources { padding-left: 0; list-style: none; display: grid; gap: 6px; }
.check-mark { display: inline-block; width: 1.2em; font-weight: 700; }
.check.ok .check-mark { color: var(--ok, #1b7f4b); } .check.warn .check-mark { color: var(--warn, #8a5a00); } .check.bad .check-mark { color: var(--bad); }
.tool-note { margin-top: 18px; }
.drop-zone { position: relative; align-items: center; }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop-zone:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.check-list .check { border: 0; padding: 0; background: none; }
/* C31 — fil de commentaires (un niveau de réponse) */
.contrib-replies { list-style: none; margin: 10px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.contrib-replies:empty { display: none; }
.contrib-item.reply { padding: 8px 0 0; border: 0; }
.contrib-actions { display: flex; gap: 14px; margin-top: 6px; }
.reply-slot:empty { display: none; }
.reply-slot { margin: 10px 0 0 16px; }
.contrib h4 { margin: 18px 0 8px; font-size: 1rem; }
