/* MissionX : interface claire uniquement. Aucune ressource externe. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geistmono-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geistmono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #f7f7f5; --panel: #ffffff; --border: #e4e2df; --line: #efedea; --soft: #f3f2ef; --hover: #efede9;
  --row-hover: #fafaf8;
  --text: #1c1917; --text-2: #57534e; --text-3: #8a847e; --text-4: #a8a29e;
  --btn: #1c1917;
  --err: #b42318; --err-bg: #fef3f2; --err-bd: #fecdca;
  --amber: #b54708; --amber-bg: #fffaeb; --amber-bd: #fedf89; --amber-track: #fef0c7;
  --data: #2a78d6; --data-track: #e3eefb;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 6px 20px rgba(28, 25, 23, .08);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --top-h: 56px; --side-w: 240px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.erreur { max-width: 440px; margin: 15vh auto 0; padding: 0 16px; }
.erreur h1 { font-size: 20px; margin: 0 0 8px; }
.erreur p { color: var(--text-2); margin: 0 0 16px; }

/* Connexion */
:root { --field: #d6d3d1; --field-hover: #a8a29e; --ring: rgba(28,25,23,.10); --btn-hover: #292524; --err-ring: rgba(180,35,24,.12); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cx-page { max-width: 1080px; margin: 0 auto; padding-inline: 40px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.cx-top { display: flex; align-items: center; height: 68px; border-bottom: 1px solid var(--border); }
.cx-brand { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.cx-brand span { color: var(--text-3); font-weight: 500; }
.cx-main { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 48px 72px; }
.cx-panel { width: 100%; max-width: 392px; padding: 32px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.cx-panel h1 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.cx-sub { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.cx-form { margin-top: 28px; display: grid; gap: 18px; }
.cx-field { display: grid; gap: 6px; }
.cx-field label { font-size: 13px; font-weight: 500; }
.cx-input { display: block; width: 100%; height: 42px; margin: 0; padding: 0 12px; background: #fff; color: var(--text);
  border: 1px solid var(--field); border-radius: 8px; font: inherit; font-size: 15px; transition: border-color .12s ease, box-shadow .12s ease; }
.cx-input:hover { border-color: var(--field-hover); }
.cx-input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--ring); }
.cx-input[aria-invalid="true"] { border-color: var(--err); }
.cx-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--err-ring); }
.cx-password { position: relative; }
.cx-password .cx-input { padding-right: 88px; }
.cx-toggle { position: absolute; top: 5px; right: 5px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text-2); font: 500 12.5px/1 "Geist", system-ui, sans-serif; cursor: pointer; }
.cx-toggle:hover { background: #f5f5f4; color: var(--text); }
.cx-toggle:focus-visible { outline: 2px solid var(--text); }
.cx-captcha { border: 1px solid var(--border); border-radius: 8px; background: #fafaf9; padding: 4px; }
.cx-captcha svg { display: block; height: auto; }
.cx-submit { height: 42px; width: 100%; margin-top: 6px; border: 0; border-radius: 8px; background: var(--btn); color: #fff;
  font: 500 14.5px/1 "Geist", system-ui, sans-serif; cursor: pointer; transition: background-color .12s ease; }
.cx-submit:hover { background: var(--btn-hover); }
.cx-submit:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.cx-error { margin: 16px 0 0; padding: 10px 12px; background: var(--err-bg); border: 1px solid var(--err-bd); border-radius: 8px;
  color: var(--err); font-size: 13.5px; line-height: 1.45; }
.cx-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap;
  padding-block: 24px 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.cx-foot a { color: var(--text-2); text-decoration: none; }
.cx-foot a:hover { color: var(--text); }
@media (max-width: 760px) {
  .cx-page { padding-inline: 16px; }
  .cx-top { height: 60px; }
  .cx-main { align-items: flex-start; padding-block: 32px 48px; }
  .cx-panel { padding: 24px 20px; }
  .cx-input { font-size: 16px; }
}

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--field); border-radius: 8px; background: var(--panel); color: var(--text);
  font: 500 13px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease; }
.btn:hover { border-color: var(--field-hover); background: #fbfaf9; }
.btn:disabled, .btn:disabled:hover { opacity: .45; cursor: not-allowed; }
.btn .arrow { color: var(--text-3); }
.btn-primary { height: 36px; padding: 0 14px; background: var(--btn); border-color: var(--btn); color: #fff; font-size: 14px; }
.btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-warn { border-color: var(--amber-bd); color: var(--amber); }
.btn-warn:hover { background: var(--amber-track); border-color: var(--amber-bd); }
.btn-warn .arrow { color: inherit; }
.btn-danger { border-color: var(--err-bd); background: var(--err-bg); color: var(--err); }
.btn-danger:hover { background: var(--err-bg); border-color: var(--err); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--hover); color: var(--text); }

/* ------------------------------------------------------------------ cadre commun */
.app-body { font-size: 14px; line-height: 1.45; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; background: var(--btn); color: #fff;
  border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.app-body :focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.muted { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: var(--top-h) auto;
  min-height: 100vh; min-height: 100dvh; }
.topbar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
  height: var(--top-h); padding: 0 16px 0 22px; background: var(--bg); border-bottom: 1px solid var(--border); }
.drawer-btn { display: none; }
.brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 15px; white-space: nowrap; text-decoration: none; }
.brand-group { color: var(--text-3); font-weight: 500; }
.brand-sep { color: var(--text-4); }
.brand-app { font-weight: 600; letter-spacing: -0.01em; }

.account { position: relative; margin-left: auto; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: #ebe8e3; font: 600 13px/1 var(--sans); cursor: pointer; list-style: none; user-select: none; }
.avatar::-webkit-details-marker { display: none; }
.avatar::marker { content: ""; }
.avatar:hover, .account[open] > .avatar { background: #e2dfd9; }
.menu { position: absolute; right: 0; top: 40px; z-index: 60; min-width: 232px; padding: 5px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.menu-head { display: grid; gap: 1px; padding: 8px 10px 9px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.menu-head strong { font-weight: 600; overflow-wrap: anywhere; }
.menu-head span { color: var(--text-3); font-size: 12px; }
.menu form { margin: 0; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 6px;
  background: none; color: var(--text); font: 400 13.5px/1 var(--sans); text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
.menu-item .i { width: 16px; height: 16px; color: var(--text-3); }
.menu-item .i-end { margin-left: auto; width: 14px; height: 14px; }
.menu-item:hover, .menu-item:focus-visible { background: var(--soft); outline: none; }

.sidebar { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h));
  overflow-y: auto; background: var(--bg); border-right: 1px solid var(--border); }
.drawer-head { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px 24px; }
.side-group { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.side-label { padding: 0 10px 6px; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.side-link { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px;
  color: var(--text-2); font-size: 14px; text-decoration: none; }
.side-link:hover { background: var(--hover); color: var(--text); }
.side-link.current { background: var(--panel); border-color: var(--border); color: var(--text); font-weight: 550; }
.side-link .count { margin-left: auto; font: 500 11.5px/1 var(--mono); color: var(--text-3); }
.side-sep { margin: 18px 4px 10px; border: 0; border-top: 1px solid var(--border); }
.scrim { display: none; }

.main { min-width: 0; padding: 28px 32px 64px; outline: none; }
.flash { max-width: 1200px; margin: 0 0 16px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; font-size: 13.5px; }
.flash-err { background: var(--err-bg); border-color: var(--err-bd); color: var(--err); }

/* ------------------------------------------------------------------ pages : en-tête, panneaux, listes */
.page { display: grid; gap: 20px; max-width: 1200px; }
.page-head h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.page-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); }

.notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
  padding: 12px 14px 12px 18px; border: 1px solid; border-radius: 10px; }
.notice p { margin: 0; font-weight: 500; }
.notice-warn { background: var(--amber-bg); border-color: var(--amber-bd); color: var(--amber); }

.panel { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px;
  padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 14.5px; line-height: 1.3; font-weight: 600; }
.panel-foot { margin: 0; padding: 11px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }

.group + .group { border-top: 1px solid var(--line); }
.group-label { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 14px 20px 6px;
  font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.group-count { color: var(--text-4); }
.rows { list-style: none; margin: 0; padding: 0 0 8px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 9px 20px; text-decoration: none; }
.row:hover { background: var(--row-hover); }
.row-main { display: grid; gap: 1px; flex: 1; min-width: 0; }
.cell-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.cell-sub { display: block; font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows-empty { margin: 0; padding: 4px 20px 16px; font-size: 13.5px; color: var(--text-2); }
.rows-empty:has(+ .rows-note) { padding-bottom: 2px; }
.rows-note { margin: 0; padding: 0 20px 16px; font-size: 12.5px; color: var(--text-3); }
.rows-more { margin: 0; padding: 0 20px 14px; font-size: 13px; }
.rows-more a { color: var(--text-2); text-decoration: none; }
.rows-more a:hover { color: var(--text); }
.badge { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--soft); font-size: 12px; line-height: 1; color: var(--text-2); white-space: nowrap; }
.badge-warn { background: var(--amber-bg); border-color: var(--amber-bd); color: var(--amber); }
.badge-ok { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok); }
.badge-contrat { background: var(--panel); }
.page-sub .badge + .badge { margin-left: 6px; }
.cell-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.empty { padding: 20px; }
.empty-title { margin: 0; font-weight: 500; }
.empty-sub { margin: 2px 0 0; font-size: 13px; color: var(--text-2); max-width: 60ch; }

.tbl-wrap { min-width: 0; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { height: 40px; padding: 0 20px; text-align: left; white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 20px; font-size: 13.5px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tbody th { display: table-cell; height: auto; padding: 12px 20px; font: 500 13.5px/1.4 var(--sans); letter-spacing: 0;
  text-transform: none; white-space: normal; color: var(--text); vertical-align: middle; border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child th { border-bottom: 0; }
.tbl tbody th .cell-sub { margin-top: 2px; font-weight: 400; }
.inline-details { margin-top: 8px; }
.inline-details > summary { list-style: none; width: fit-content; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] > summary { margin-bottom: 8px; }
.add-source { margin: 0; padding: 16px 20px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .tbl-cards thead { display: none; }
  .tbl-cards, .tbl-cards tbody, .tbl-cards tr { display: block; }
  .tbl-cards tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .tbl-cards tbody tr:last-child { border-bottom: 0; }
  .tbl-cards tbody th, .tbl-cards td, .tbl-cards tbody tr:last-child th, .tbl-cards tbody tr:last-child td {
    display: block; padding: 3px 0; border: 0; }
  .tbl-cards td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 64px; margin-right: 8px;
    font: 500 11px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
  .tbl-cards td[data-label="Actions"]::before { display: none; }
  .tbl-cards td[data-label="Actions"] { padding-top: 8px; }
}
.narrow-only { display: none !important; }

/* ------------------------------------------------------------------ Vue d'ensemble */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.cov { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.cov-key { display: flex; flex-direction: column; gap: 2px; padding: 20px; border-right: 1px solid var(--line); }
.kpi-label { font-size: 13px; color: var(--text-2); }
.kpi-value { margin-top: 6px; font-size: 40px; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi-unit { margin-left: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.kpi-sub { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.cov-rest { width: 44%; }
.meter-row { display: flex; align-items: center; gap: 14px; }
.meter-track { position: relative; flex: 1; min-width: 72px; max-width: 240px; }
.meter-track::after { content: ""; position: absolute; left: 25%; top: -4px; bottom: -4px; width: 1px; background: var(--text-3); }
.meter { display: block; width: 100%; height: 6px; margin: 0; border: 0; border-radius: 3px; background: var(--data-track);
  -webkit-appearance: none; appearance: none; }
.meter::-webkit-meter-inner-element { display: block; }
.meter::-webkit-meter-bar { height: 6px; border: 0; border-radius: 3px; background: var(--data-track); }
.meter::-webkit-meter-optimum-value, .meter::-webkit-meter-suboptimum-value, .meter::-webkit-meter-even-less-good-value {
  border-radius: 3px; background: var(--data); }
.meter::-moz-meter-bar { border-radius: 3px; background: var(--data); }
.meter-warn, .meter-warn::-webkit-meter-bar { background: var(--amber-track); }
.meter-warn::-webkit-meter-optimum-value, .meter-warn::-webkit-meter-suboptimum-value, .meter-warn::-webkit-meter-even-less-good-value {
  background: var(--amber); }
.meter-warn::-moz-meter-bar { background: var(--amber); }
.meter-figure { flex: none; min-width: 76px; text-align: right; white-space: nowrap; }
.meter-figure.is-warn { color: var(--amber); font-weight: 500; }

.todo-new { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.todo-new:hover { background: var(--row-hover); }
.todo-figure { min-width: 32px; font-size: 28px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.todo-new .arrow, .row .arrow { color: var(--text-3); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.facts > div { padding: 16px 20px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--text-2); }
.facts dd { margin: 0; }
.fact-value { margin-top: 4px !important; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.fact-of { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.fact-sub { margin-top: 2px !important; font-size: 12.5px; color: var(--text-3); }

/* ------------------------------------------------------------------ écrans moyens et tiroir (sous 1 024 px) */
@media (max-width: 1180px) {
  .cov { grid-template-columns: minmax(0, 1fr); }
  .cov-key { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 1023px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .topbar { gap: 6px; padding: 0 12px 0 8px; }
  .drawer-btn { display: inline-grid; }
  .sidebar { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); height: auto;
    border-right: 1px solid var(--border); box-shadow: var(--shadow); transform: translateX(-102%); visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s; }
  .drawer-open { overflow: hidden; }
  .drawer-open .sidebar { transform: none; visibility: visible; transition: transform .2s ease; }
  .drawer-open .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(28, 25, 23, .28); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--top-h);
    padding: 0 8px 0 22px; border-bottom: 1px solid var(--border); }
  .drawer-title { font-size: 15px; font-weight: 600; }
  .side-link { height: 42px; font-size: 15px; }
  .main { padding: 22px 16px 48px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wide-only { display: none !important; }
  .narrow-only { display: block !important; }
  .page-head h1 { font-size: 22px; }
  .panel-head { padding: 10px 12px 10px 16px; }
  .group-label, .row, .todo-new, .rows-empty, .rows-note, .rows-more, .panel-foot, .empty, .cov-key, .facts > div { padding-inline: 16px; }
  .tbl th, .tbl td { padding-inline: 16px; }
  .tbl th + th, .tbl td + td { padding-left: 0; }
  .cov-rest { width: 52%; }
  .meter-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .meter-track { max-width: none; }
  .meter-figure { min-width: 0; text-align: left; }
  .notice { padding: 12px 14px; }
  .notice .btn { width: 100%; height: 38px; }
  .btn { height: 34px; }
}
@media (max-width: 359px) {
  .brand-group, .brand-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ------------------------------------------------------------------ missions et projets (liste, formulaire, fiche) */
.head-split { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crumb { margin: 0 0 4px; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--text); }
.stack { display: grid; gap: 20px; align-content: start; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px;
  font-size: 13px; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.tab:hover { background: var(--hover); color: var(--text); }
.tab.current { background: var(--soft); border-color: var(--border); color: var(--text); font-weight: 550; }
.tab-count { font: 500 11.5px/1 var(--mono); color: var(--text-3); }
.search { display: flex; gap: 8px; }
.input { display: block; width: 100%; min-height: 36px; margin: 0; padding: 7px 10px; background: #fff; color: var(--text);
  border: 1px solid var(--field); border-radius: 8px; font: 14px/1.4 var(--sans); }
.input:hover { border-color: var(--field-hover); }
.input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--ring); }
.search .input { width: 240px; }
textarea.input { resize: vertical; }
.sl .sl-title { min-width: 220px; }
.sl .cell-title { text-decoration: none; font-weight: 500; }
.sl .cell-title:hover { text-decoration: underline; }
.sl-summary { display: none; }
.form { display: grid; gap: 18px; padding: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; }
.hint { font-size: 12.5px; color: var(--text-3); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.form-error { margin: 16px 20px 0; padding: 10px 12px; background: var(--err-bg); border: 1px solid var(--err-bd); border-radius: 8px; color: var(--err); font-size: 13.5px; }
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.notes-text { margin: 0; padding: 4px 20px 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.timeline { list-style: none; margin: 0; padding: 4px 0 8px; }
.timeline li { display: flex; gap: 14px; padding: 8px 20px; font-size: 13.5px; }
.tl-date { flex: none; width: 84px; color: var(--text-3); }
.tl-text { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .toolbar { padding: 12px 16px; }
  .search, .search .input { width: 100%; }
  .search { flex: 1 1 100%; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 16px; }
  .kv > div { grid-template-columns: 110px minmax(0, 1fr); padding-inline: 16px; }
  .notes-text, .timeline li { padding-inline: 16px; }
  /* une carte simple par ligne */
  .sl thead, .sl .sl-extra { display: none; }
  .sl, .sl tbody { display: block; }
  .sl tr { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .sl tbody tr:last-child { border-bottom: 0; }
  .sl td { display: block; padding: 0; border: 0; }
  .sl .sl-title { flex: 1; min-width: 0; }
  .sl-summary { display: block; }
  .sl .sl-status, .sl .sl-note { flex: none; }
}

/* Ma réponse : pièces à cocher */
.pieces { list-style: none; margin: 0; padding: 0; }
.pieces li { padding: 6px 0; font-size: 13.5px; }
.check { display: flex; align-items: center; gap: 8px; }
.answer-text { white-space: pre-wrap; margin: 0 0 8px; }

/* ------------------------------------------------------------------ Bénin (idées, démarches) */
.tabs-main { margin: 0 0 16px; }
.plain-list { margin: 0; padding: 0 20px 14px 40px; font-size: 13.5px; overflow-wrap: anywhere; }
.plain-list li { padding: 2px 0; }
.demarches { list-style: none; margin: 0; padding: 0; }
.demarches li { border-top: 1px solid var(--line); }
.demarche { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(0, 1.6fr) 160px auto; gap: 10px 14px; align-items: center; padding: 10px 20px; }
.demarche-label { font-size: 13.5px; }
.demarche .done { text-decoration: line-through; color: var(--text-3); }
.demarche-add { border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .demarche { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
}

/* Bénin : « Ce qui se passe » (veille datée) et plan d'implantation en 3 paliers sur la fiche idée */
.veille-intro { margin: -4px 0 0; font-size: 13px; color: var(--text-2); }
.veille-intro a { color: var(--text); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.faits { list-style: none; margin: 0; padding: 0 0 10px; }
.fait { display: grid; gap: 4px; min-width: 0; padding: 8px 20px 10px; }
.fait + .fait { border-top: 1px solid var(--line); padding-top: 10px; }
.fait-texte { margin: 0; max-width: 90ch; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.fait-pourquoi { margin: 0; max-width: 90ch; font-size: 13px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.fait-pq { margin-right: 6px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.fait-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; margin: 2px 0 0; font-size: 12.5px; color: var(--text-3); }
.fait-meta > * + *::before { content: "·"; margin: 0 7px; color: var(--text-4); }
.fait-meta a { color: var(--text-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.fait-meta a:hover { color: var(--text); text-decoration-color: currentColor; }
.veille-idees { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.veille-idees a { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.veille-idees a:hover { text-decoration-color: currentColor; }

.paliers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.palier { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; min-width: 0; padding: 18px 20px 20px; }
.palier + .palier { border-left: 1px solid var(--line); }
.palier-num { margin: 0 0 2px; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.palier-nom { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.palier-kv { display: grid; gap: 8px; margin: 0; padding: 12px 0; border-block: 1px solid var(--line); }
.palier-kv > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.palier-kv dt { color: var(--text-3); }
.palier-kv dd { margin: 0; overflow-wrap: anywhere; }
.palier-eur { display: block; font-size: 12.5px; color: var(--text-3); }
.palier-actions { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.palier-actions li + li { margin-top: 4px; }
.palier-signal { margin: 0; padding: 10px 12px; background: var(--soft); border-radius: 8px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.palier-signal-label { display: block; margin-bottom: 3px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 760px) {
  .paliers { grid-template-columns: minmax(0, 1fr); }
  .palier + .palier { border-left: 0; border-top: 1px solid var(--line); }
  .palier, .fait { padding-inline: 16px; }
}

/* ------------------------------------------------------------------ Mes CV : zone de dépôt, versions en cartes */
:root { --blue: #2e62d9; --blue-bg: #eef3fd; --ok: #067647; --ok-bd: #abefc6; }
.notice-info { background: var(--panel); border-color: var(--border); color: var(--text); }
.notice-info p { min-width: 0; overflow-wrap: anywhere; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-quiet:hover { border-color: transparent; background: var(--hover); color: var(--text); }

.depot { display: grid; gap: 12px; margin: 0; min-width: 0; }
.drop { position: relative; display: grid; place-items: center; gap: 10px; min-width: 0; padding: 34px 20px; text-align: center;
  background: var(--panel); border: 1.5px dashed var(--field); border-radius: 12px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease; }
.drop:hover { border-color: var(--field-hover); }
.drop.over { border-color: var(--text); background: var(--row-hover); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }
@supports selector(:has(*)) {
  .drop:focus-within { outline: none; }
  .drop:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
}
.drop-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--soft); color: var(--text); }
.drop-ico .i { width: 22px; height: 22px; }
.drop strong { font-size: 15.5px; font-weight: 600; }
.drop-or { color: var(--text-2); font-size: 13.5px; }
.drop-or u { color: var(--text); text-underline-offset: 3px; }
.drop-fmt { font: 400 11.5px/1 var(--mono); letter-spacing: .02em; color: var(--text-3); }
.drop-chosen { display: none; font-size: 12.5px; font-weight: 500; color: var(--ok); }
/* sans JavaScript : le champ requis devient valide dès qu'un fichier est choisi */
.depot:not([data-js]) .drop:has(input:valid) { border-style: solid; border-color: var(--ok-bd); }
.depot:not([data-js]) .drop:has(input:valid) .drop-chosen { display: block; }
.drop-sm { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 14px 16px; text-align: left; border-radius: 10px; }
.drop-sm .drop-ico { flex: none; width: 36px; height: 36px; border-radius: 9px; }
.drop-sm .drop-ico .i { width: 18px; height: 18px; }
.drop-text { display: grid; gap: 2px; min-width: 0; }
.drop-sm strong { font-size: 13.5px; }
.drop-sm .drop-or { font-size: 12.5px; }

.picked { display: grid; gap: 16px; padding: 18px 20px; }
.file-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; background: var(--row-hover);
  border: 1px solid var(--border); border-radius: 10px; }
.file-row.is-bad { background: var(--err-bg); border-color: var(--err-bd); }
.file-row.is-bad .badge-type { background: var(--panel); }
.file-meta { flex: 1; min-width: 0; }
.file-name { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-size { margin: 0; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.file-size .ok { color: var(--ok); font-weight: 500; }
.file-size .bad { color: var(--err); font-weight: 500; }
.badge-type { flex: none; min-width: 42px; padding: 6px; border-radius: 6px; background: var(--soft); color: var(--text-2);
  font: 600 10.5px/1 var(--mono); letter-spacing: .04em; text-align: center; }
.badge-type.t-pdf { background: var(--err-bg); color: var(--err); }
.badge-type.t-docx, .badge-type.t-odt { background: var(--blue-bg); color: var(--blue); }

.fields { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 20px; align-items: start; }
.chips-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.chips-field legend { margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { position: relative; display: inline-flex; font: 500 13px/1 var(--sans); cursor: pointer; }
.chip input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; background: #fff; color: var(--text-2);
  border: 1px solid var(--field); border-radius: 999px; transition: background-color .12s ease, border-color .12s ease; }
.chip:hover span { border-color: var(--field-hover); color: var(--text); }
.chip input:checked + span { background: var(--btn); border-color: var(--btn); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.field .meta-line { margin-top: 2px; }
.add-note > summary { width: fit-content; list-style: none; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.add-note > summary::-webkit-details-marker { display: none; }
.add-note > summary::before { content: "+"; display: inline-block; width: 14px; font-family: var(--mono); color: var(--text-3); }
.add-note > summary:hover { color: var(--text); }
.add-note[open] > summary { margin-bottom: 10px; }
.add-note[open] > summary::before { content: "−"; }
.depot-actions .btn, .guide-actions .btn, .cv-form .form-actions .btn, .depot-sm .form-actions .btn { height: 36px; }
.depot-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
  padding-top: 16px; border-top: 1px solid var(--line); }

.section-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; }
.section-head h2 { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 15px; line-height: 1.3; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cv-item { display: grid; min-width: 0; }
/* une carte ouverte en modification ne doit pas étirer ses voisines */
.cards:has(.cv-panel:target) { align-items: start; }
.cv { display: flex; flex-direction: column; min-width: 0; }
.thumb { position: relative; display: grid; place-items: center; height: 128px; background: var(--soft);
  border-bottom: 1px solid var(--line); border-radius: 11px 11px 0 0; }
.sheet { display: grid; align-content: start; gap: 4px; width: 74px; height: 98px; padding: 9px 8px; background: #fff;
  border: 1px solid var(--border); border-radius: 3px; }
.sheet i { display: block; height: 3px; border-radius: 2px; background: #e7e5e4; }
.sheet .h { width: 60%; height: 5px; background: #d6d3d1; }
.sheet .s { width: 75%; }
.sheet .xs { width: 45%; }
.sheet-1 i:nth-child(2) { width: 75%; } .sheet-1 i:nth-child(3) { width: 100%; } .sheet-1 i:nth-child(6) { width: 45%; }
.sheet-2 i:nth-child(4) { width: 75%; } .sheet-2 i:nth-child(5) { width: 100%; } .sheet-2 i:nth-child(8) { width: 60%; }
.thumb .badge-type { position: absolute; left: 10px; top: 10px; }
.star { position: absolute; right: 10px; top: 10px; padding: 5px 8px; border-radius: 999px; background: var(--btn); color: #fff;
  font: 500 11px/1 var(--sans); }
.cv-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 14px 14px; }
.cv-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  margin: 0; font-size: 14.5px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.cv-file { display: flex; gap: 6px; min-width: 0; margin: -4px 0 0; font-size: 12.5px; color: var(--text-3); }
.cv-fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-fsize { flex: none; }
.cv-fsize::before { content: "·"; margin-right: 6px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px; border-radius: 999px;
  background: var(--soft); color: var(--text-2); font-size: 11.5px; line-height: 1.4; }
.cv-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  margin: 0; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.used { margin: 0; font-size: 12.5px; color: var(--text-3); }
.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
.cv-actions form { margin: 0; }
.cv-actions .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }
.cv-actions .btn-icon { width: 30px; padding: 0; color: var(--text-2); }
.more { position: relative; }
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { background: var(--soft); border-color: var(--field-hover); }
.more .menu { top: 36px; min-width: 210px; }
.more .menu-head { margin: 0 0 4px; }
.cv-panel { display: none; padding: 14px; background: var(--row-hover); border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; }
.cv-panel:target { display: block; }
.cv-form { display: grid; gap: 12px; margin: 0; }
.cv-panel-title { margin: 0; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.cv-form .chip span { height: 32px; padding: 0 12px; }

.archives > summary { width: fit-content; list-style: none; cursor: pointer; }
.archives > summary::-webkit-details-marker { display: none; }
.archives > summary h2 { color: var(--text-2); font-size: 14px; font-weight: 500; }
.archives > summary h2::before { content: ""; align-self: center; width: 6px; height: 6px; margin-right: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
.archives[open] > summary h2::before { transform: rotate(45deg); }
.archives > summary:hover h2 { color: var(--text); }
.cv-archived { background: #fbfaf9; }
.cv-archived .thumb { height: 84px; }
.cv-archived .sheet { width: 48px; height: 62px; padding: 6px 5px; gap: 3px; }
.cv-archived .sheet i { height: 2px; }
.cv-archived .sheet .h { height: 3px; }
.cv-archived .badge-type { background: var(--panel); color: var(--text-3); }
.cv-archived .cv-title { color: var(--text-2); font-weight: 500; }

/* page vide qui guide (Mes CV ; réutilisable) */
.guide { display: grid; justify-items: center; gap: 10px; padding: 36px 24px; text-align: center; }
.guide-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--text); }
.guide-ico .i { width: 22px; height: 22px; }
.guide-title { margin: 0; font-size: 15px; font-weight: 600; }
.guide-sub { max-width: 46ch; margin: 0; font-size: 13.5px; color: var(--text-2); text-wrap: balance; }
.guide-steps { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; counter-reset: step; text-align: left; }
.guide-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); counter-increment: step; }
.guide-steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 6px; background: var(--soft); color: var(--text); font: 500 11px/1 var(--mono); }
.guide-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* fiche Mission ou Projet : petite zone de dépôt sous le choix du CV */
.depot-sm { padding: 16px 20px 20px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .drop { padding: 26px 16px; }
  .drop-sm { padding: 14px; }
  .picked { padding: 16px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .depot-actions .form-actions { width: 100%; }
  .depot-actions .btn { flex: 1; height: 38px; }
  .depot-sm { padding: 16px; }
  .guide { padding: 28px 16px; }
}

/* ------------------------------------------------------------------ Missions et Projets : tableau par étape */
:root { --ok-bg: #ecfdf3; --col: #efeeea; --col-over: #e8e6e1; }
.view-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--panel); border: 1px solid var(--field); border-radius: 8px; }
.seg-item { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 6px; color: var(--text-2);
  font: 500 13px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.seg-item:hover { background: var(--row-hover); color: var(--text); }
.seg-item[aria-current] { background: var(--soft); color: var(--text); }

.board-wrap { display: grid; gap: 12px; min-width: 0; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; min-width: 0; overflow-x: auto;
  padding-bottom: 4px; overscroll-behavior-x: contain; }
.board-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 132px; padding: 10px; background: var(--col);
  border-radius: 12px; transition: background-color .12s ease; }
.board-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 2px 4px 4px;
  font-size: 13px; line-height: 1.3; font-weight: 600; }
.board-count { font: 500 11px/1 var(--mono); color: var(--text-3); }
.board-cards { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.board-cards:not(:has(> li)) { display: none; }
.board-item { display: grid; min-width: 0; }
.board-card { position: relative; display: grid; gap: 7px; min-width: 0; padding: 11px 12px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); text-decoration: none; cursor: grab; -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-user-drag: none; transition: border-color .12s ease, background-color .2s ease, opacity .12s ease; }
.board-card:hover { border-color: var(--field); }
.board-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  font-size: 13.5px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.board-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  margin-top: -3px; font-size: 12.5px; line-height: 1.4; color: var(--text-2); overflow-wrap: anywhere; }
.board-sub > span + span::before { content: "·"; margin: 0 5px; color: var(--text-4); }
.board-deadline.is-warn { color: var(--amber); font-weight: 500; }
.board-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.board-money { min-width: 0; max-width: 100%; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 12.5px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
/* note sur 100 (cartes, liste) : verte à 70 et plus, neutre de 40 à 69, éteinte sous 40, en pointillés en attente */
.score-pill { display: inline-flex; align-items: center; flex: none; padding: 3px 6px; background: var(--soft); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-2); font: 500 11px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-pill.is-high { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok); }
.score-pill.is-low { background: var(--panel); border-color: var(--line); color: var(--text-3); }
.score-pill.is-pending { background: var(--panel); border-style: dashed; color: var(--text-3); font: 500 11.5px/1 var(--sans); }
.board-foot .score-pill { margin-left: auto; }  /* à droite, avec ou sans TJM */
.page-why { margin: 6px 0 0; max-width: 72ch; font-size: 13.5px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.seen-also { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.board-due { padding: 2px 7px; background: var(--soft); border: 1px solid transparent; border-radius: 999px; color: var(--text-2);
  font-size: 11.5px; line-height: 1.4; }
.board-due.is-warn { background: var(--amber-bg); border-color: var(--amber-bd); color: var(--amber); }
/* une fiche gagnée n'a plus de relance ni de date limite (même juste après un glisser) */
.board-col[data-won] .board-due, .board-col[data-won] .board-deadline { display: none; }
.board-empty { margin: 0; padding: 4px 4px 6px; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.board-closed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin: 0; padding: 0 4px; font-size: 12.5px;
  color: var(--text-3); }
.board-closed-group > * + *::before { content: "·"; display: inline-block; margin: 0 7px; color: var(--text-4); text-decoration: none; }
.board-closed a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.board-closed a:hover { color: var(--text); text-decoration-color: currentColor; }

/* glisser-déposer (tableau.js) */
.board-dragging, .board-dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.board.is-dragging { scroll-snap-type: none !important; }
.board-col.is-over { background: var(--col-over); outline: 1.5px dashed var(--text-3); outline-offset: -1.5px; }
.board-card.is-dragging { background: transparent; border-style: dashed; border-color: var(--field-hover); }
.board-card.is-dragging > * { visibility: hidden; }
.board-card.is-saving { opacity: .6; }
.board-card.is-refused { background: var(--err-bg); border-color: var(--err-bd); }
.board-ghost { position: fixed; left: 0; top: 0; z-index: 70; margin: 0; pointer-events: none; border-color: var(--field-hover);
  box-shadow: var(--shadow); will-change: transform; }
.board-toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 80; width: max-content;
  max-width: min(520px, calc(100vw - 32px)); margin: 0; padding: 10px 14px; background: var(--btn); border: 1px solid var(--btn);
  border-radius: 10px; color: #fff; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; opacity: 0; pointer-events: none;
  transform: translate(-50%, 6px); transition: opacity .15s ease, transform .15s ease; }
.board-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.board-toast.is-error { background: var(--err-bg); border-color: var(--err-bd); color: var(--err); }

@media (max-width: 1023px) {
  .board { scroll-snap-type: x proximity; }
  .board-col { scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .view-actions { width: 100%; }
  .view-actions .btn-primary { flex: 1; }
  /* les colonnes défilent dans leur propre bande, bord à bord ; la page ne défile jamais sur le côté */
  .board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 85%; margin-inline: -16px;
    padding-inline: 16px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; }
  .board-col { min-height: 168px; }
  .board-card { padding: 12px; }
  .board-closed { padding: 0; }
}

/* ------------------------------------------------------------------ panneau d'ajout (panneau.js) et annonce collée (annonce.js) */
.panneau { position: fixed; inset: 0 0 0 auto; width: 420px; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0;
  overflow: hidden; background: var(--panel); color: var(--text); border: 0; border-left: 1px solid var(--border); box-shadow: var(--shadow); }
.panneau[open] { display: flex; animation: panneau-in .18s ease-out; }
.panneau::backdrop { background: rgba(28, 25, 23, .28); }
@keyframes panneau-in { from { transform: translateX(24px); opacity: 0; } }
.panneau-form { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; margin: 0; }
.panneau-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; min-height: 60px;
  padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.panneau-titre { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.panneau-corps { flex: 1; min-height: 0; display: grid; gap: 18px; align-content: start; padding: 18px 20px 24px; overflow-y: auto;
  overscroll-behavior: contain; }
.panneau-corps .form-grid { gap: 14px 12px; }
/* idée du Bénin : libellés longs et grandes zones de texte, une seule colonne */
#panneau-idee .form-grid { grid-template-columns: minmax(0, 1fr); }
.panneau-corps .chip span { height: 32px; padding: 0 12px; }
.panneau-pied { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; flex: none;
  padding: 12px 20px; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.panneau-pied .btn { height: 36px; }

.annonce { display: grid; gap: 8px; padding: 12px; background: var(--row-hover); border: 1.5px dashed var(--field); border-radius: 10px; }
.annonce > label { font-size: 13px; font-weight: 500; }
.annonce-texte { min-height: 64px; font-size: 13px; }
.annonce-texte::placeholder { color: var(--text-4); }
.annonce-pied { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; }
.annonce-pied .hint.is-ok { color: var(--ok); }
.annonce-pied .btn { flex: none; }
/* champ rempli depuis l'annonce, jusqu'à ce qu'on le retouche */
.input.is-rempli { border-color: var(--ok-bd); background: #f6fef9; }

/* « Aucun résultat » d'une liste filtrée */
.empty-filtre .btn { margin-top: 12px; }

@media (max-width: 760px) {
  .panneau { width: 100%; border-left: 0; box-shadow: none; }
  .panneau-tete { padding-left: 16px; }
  .panneau-corps { padding: 16px; }
  .panneau-pied { padding-inline: 16px; }
  .panneau .input { font-size: 16px; }   /* pas de zoom automatique sur téléphone */
  html:has(.panneau[open]) { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .panneau[open] { animation: none; } }

/* ------------------------------------------------------------------ Tâches automatiques et journal */
.statut { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 500; line-height: 1; color: var(--text-2); white-space: nowrap; }
.statut::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.statut-ok, .statut-src-ok { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok); }
.statut-partiel, .statut-interrompu, .statut-src-attente { background: var(--amber-bg); border-color: var(--amber-bd); color: var(--amber); }
.statut-echec, .statut-src-echec { background: var(--err-bg); border-color: var(--err-bd); color: var(--err); }
.statut-en_cours { background: var(--blue-bg); border-color: #c9d8f8; color: var(--blue); }
.is-err { color: var(--err); }
.src-err { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; line-height: 1.4; color: var(--err);
  white-space: normal; overflow-wrap: anywhere; }
.src-note { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; line-height: 1.4; color: var(--text-3);
  white-space: normal; overflow-wrap: anywhere; }
.cle { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.row-static:hover { background: none; }
.row-static .cell-sub { white-space: normal; }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.switch input { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 34px; height: 20px; margin: 0;
  border-radius: 999px; background: var(--field); cursor: pointer; transition: background .15s; }
.switch input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(28, 25, 23, .25); transition: transform .15s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::before { transform: translateX(14px); }
.switch input:checked ~ .switch-off, .switch input:not(:checked) ~ .switch-on { display: none; }
.switch input:checked ~ .switch-on { color: var(--ok); }

.taches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tache { display: grid; gap: 16px; align-content: start; min-width: 0; padding: 18px 20px 20px; }
.tache + .tache { border-left: 1px solid var(--line); }
.tache-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tache-title { margin: 0; font-size: 14px; line-height: 1.3; font-weight: 600; }
.tache-sub { margin: -10px 0 0; font-size: 12.5px; color: var(--text-3); }
.tache-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.plage { display: flex; align-items: center; gap: 8px; }
.plage .input { flex: 1; min-width: 0; }
.plage span { flex: none; font-size: 13px; color: var(--text-3); }
.tache-etat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 0; padding-top: 14px;
  border-top: 1px solid var(--line); }
.tache-etat dt { font-size: 12.5px; color: var(--text-3); }
.tache-etat dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 3px 0 0; font-size: 13.5px; }
.tache-etat .tache-msg { display: block; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.tache-etat .tache-msg.is-err { color: var(--err); }
.tache-actions .btn { height: 34px; }
.taches-pied { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; padding: 16px 20px;
  border-top: 1px solid var(--line); }
.plafond { flex: 1 1 320px; max-width: 460px; }
.plafond .input { max-width: 160px; }

.journal-etat .journal-etat-val { margin-top: 4px; font-size: 14px; font-weight: 500; }
.runs { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.run-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 14px 20px; }
.run-title { margin: 0; font-size: 14px; line-height: 1.3; font-weight: 600; }
.run-meta { margin-left: auto; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.run-msg { margin: -4px 0 0; padding: 0 20px 14px; font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; }
.run-msg.is-err { color: var(--err); }
.run .tbl-wrap { border-top: 1px solid var(--line); }
.run-sources th[scope="row"] { min-width: 180px; }

/* coût des tâches et de chaque appel (Paramètres) */
.taches-eteintes { margin: 16px 20px 0; }
.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#couts .tbl-wrap { border-bottom: 1px solid var(--line); }
#couts td[data-label="Prix"] { min-width: 220px; }
.couts-pied { display: grid; gap: 4px; margin: 0; list-style: none; padding: 14px 20px 16px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }

@media (max-width: 1023px) {
  .taches { grid-template-columns: minmax(0, 1fr); }
  .tache + .tache { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .facts-3 { grid-template-columns: minmax(0, 1fr); }
  .facts-3 > div + div { border-left: 0; border-top: 1px solid var(--line); }
  #couts td[data-label="Prix"] { min-width: 0; }
}
@media (max-width: 640px) {
  .taches-eteintes { margin-inline: 16px; }
  .couts-pied { padding-inline: 16px; }
}
@media (max-width: 760px) {
  /* détail des sources : nom et erreur, résultat, puis les chiffres sur une ou deux lignes */
  .run-sources tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
  .run-sources tbody th { flex-basis: 100%; }
  .run-sources td, .run-sources tbody tr:last-child td { display: inline-flex; align-items: baseline; gap: 6px; padding: 0; text-align: left; }
  .run-sources td[data-label]::before { min-width: 0; margin-right: 0; }
  .run-sources td[data-label="Résultat"] { flex-basis: 100%; }
  .run-sources td[data-label="Résultat"]::before { display: none; }
  .journal-etat { grid-template-columns: minmax(0, 1fr); }
  .journal-etat > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .tache, .taches-pied, .run-head { padding-inline: 16px; }
  .run-msg { padding-inline: 16px; }
  .tache-fields { grid-template-columns: minmax(0, 1fr); }
  .run-meta { flex-basis: 100%; margin-left: 0; }
  .taches-pied .form-actions, .taches-pied .btn-primary { width: 100%; }
  .run-sources th[scope="row"] { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .switch input, .switch input::before { transition: none; } }

/* ------------------------------------------------------------------ Missions : Pour toi, À regarder aussi, Mon suivi */
.page-head-main { min-width: 0; }
.chiffres-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 6px; }
.chiffres { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none;
  font-size: 13.5px; color: var(--text-2); }
.chiffres li { display: inline-flex; align-items: baseline; white-space: nowrap; }
.chiffres li + li::before { content: ""; align-self: center; width: 1px; height: 12px; margin: 0 12px; background: var(--border); }
.chiffre { margin-right: 5px; font-weight: 600; color: var(--text); }
.collecte { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: var(--text-3); text-decoration: none; }
.collecte:hover { color: var(--text); }
.collecte-point { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--text-4); }
.collecte-point.is-ok { background: var(--ok); }
.collecte-point.is-warn { background: var(--amber); }
.collecte-point.is-err { background: var(--err); }
.collecte-point.is-run { background: var(--blue); }

.onglets { display: flex; gap: 24px; min-width: 0; margin-bottom: -6px; overflow-x: auto; border-bottom: 1px solid var(--border);
  scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglet { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 42px; margin-bottom: -1px; padding: 0 1px;
  border-bottom: 2px solid transparent; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.onglet:hover { color: var(--text); }
.onglet.current { border-bottom-color: var(--text); color: var(--text); font-weight: 600; }
.onglet-n { min-width: 22px; padding: 3px 6px; border-radius: 999px; background: var(--soft); color: var(--text-3);
  font: 500 11.5px/1 var(--mono); text-align: center; }
.onglet.current .onglet-n { background: var(--text); color: #fff; }

/* filtres en puces : pointillés tant qu'ils sont libres, pleins quand ils filtrent */
.filtres-barre { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 16px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.filtres { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.filtre { position: relative; }
.filtre-puce { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 12px; border: 1px dashed var(--field);
  border-radius: 999px; background: var(--panel); color: var(--text-2); font: 500 12.5px/1 var(--sans); white-space: nowrap;
  list-style: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
.filtre-puce::-webkit-details-marker { display: none; }
.filtre-puce::marker { content: ""; }
.filtre-puce:hover, .filtre[open] > .filtre-puce { border-color: var(--field-hover); color: var(--text); }
.filtre.is-on > .filtre-puce { border-style: solid; border-color: var(--field-hover); background: var(--soft); }
.filtre-val { padding-left: 7px; border-left: 1px solid var(--field); color: var(--text); font-weight: 600; }
.filtre-fleche { width: 6px; height: 6px; margin: -3px 1px 0 1px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  opacity: .6; transform: rotate(45deg); }
.filtre[open] .filtre-fleche { margin-top: 3px; transform: rotate(225deg); }
.filtre-menu { position: absolute; left: 0; top: 36px; z-index: 30; min-width: 230px; max-height: 340px; overflow-y: auto; padding: 5px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.filtre-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 34px;
  padding: 6px 10px 6px 30px; border-radius: 6px; color: var(--text); font-size: 13.5px; line-height: 1.3; text-decoration: none; }
.filtre-opt:hover, .filtre-opt:focus-visible { background: var(--soft); }
.filtre-opt[aria-current] { font-weight: 600; }
.filtre-opt[aria-current]::before { content: ""; position: absolute; left: 12px; top: 50%; width: 9px; height: 5px;
  border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-75%) rotate(-45deg); }
.filtre-n { flex: none; font: 500 11.5px/1 var(--mono); color: var(--text-3); }
.filtre-vide { margin: 0; padding: 8px 10px; font-size: 13px; color: var(--text-3); }
.filtres-resultat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; font-size: 12.5px; color: var(--text-3); }
.filtres-effacer { color: var(--text-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--field);
  text-underline-offset: 3px; }
.filtres-effacer:hover { color: var(--text); text-decoration-color: currentColor; }

/* une offre : note | titre, client · lieu · télétravail, contrat et source, raison | TJM et ancienneté | actions */
.offres { margin: 0; padding: 0; list-style: none; }
.offres:not(:has(> li)) { display: none; }
.offre { display: grid; grid-template-columns: 40px minmax(0, 1fr) 116px auto; grid-template-areas: "note corps chiffres actions";
  column-gap: 16px; align-items: start; padding: 14px 16px 14px 20px; border-top: 1px solid var(--line);
  transition: background-color .15s ease, opacity .15s ease; }
.offres > .offre:first-child { border-top: 0; }
.offre:hover, .offre:focus-within { background: var(--row-hover); }
.offre-note { grid-area: note; padding-top: 1px; }
.offre-note .score-pill { justify-content: center; min-width: 34px; height: 24px; padding: 0 6px; font-size: 12px; }
.score-pill.is-none { background: var(--panel); border-color: var(--line); color: var(--text-4); }
.score-pill.is-mini { font: 500 12px/1 var(--mono); }
.offre-corps { grid-area: corps; display: grid; gap: 4px; min-width: 0; }
.offre-titre { justify-self: start; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; max-width: 100%; color: var(--text); font-size: 14px; line-height: 1.4; font-weight: 600; text-decoration: none;
  overflow-wrap: anywhere; }
.offre-titre:hover { text-decoration: underline; text-decoration-color: var(--field-hover); text-underline-offset: 3px; }
.offre-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; margin: 0; font-size: 12.5px;
  line-height: 1.4; color: var(--text-2); }
.offre-sous { min-width: 0; overflow-wrap: anywhere; }
.offre-sous > span + span::before { content: "·"; margin: 0 6px; color: var(--text-4); }
.offre-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.offre-badges .badge { height: 20px; padding: 0 7px; font-size: 11.5px; }
.badge-source { background: var(--panel); border-color: var(--line); color: var(--text-3); font: 500 10.5px/1 var(--mono);
  letter-spacing: .04em; text-transform: uppercase; }
.offre-raison { overflow: hidden; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-3); text-overflow: ellipsis;
  white-space: nowrap; }
.offre-chiffres { grid-area: chiffres; display: grid; justify-items: end; gap: 3px; padding-top: 2px; text-align: right; }
.offre-tjm { font: 500 13px/1.35 var(--mono); color: var(--text); white-space: nowrap; }
.offre-tjm.is-none { font: 400 12px/1.4 var(--sans); color: var(--text-4); }
.offre-age { font-size: 12px; line-height: 1.4; color: var(--text-3); white-space: nowrap; }
.offre-actions { grid-area: actions; display: flex; align-items: center; gap: 6px; }
.offre-form { display: flex; gap: 6px; margin: 0; }
.btn-sm { height: 30px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; }
.offre.is-saving { opacity: .5; pointer-events: none; }
.offre.is-refused { background: var(--err-bg); }

.ecarter { position: relative; }
.ecarter > summary { list-style: none; }
.ecarter > summary::-webkit-details-marker { display: none; }
.ecarter > summary::marker { content: ""; }
.ecarter[open] > summary { background: var(--soft); color: var(--text); }
.ecarter-menu { position: absolute; right: 0; top: 36px; z-index: 30; display: grid; gap: 8px; width: min(310px, calc(100vw - 64px));
  margin: 0; padding: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.ecarter-label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.ecarter-champ { display: flex; gap: 6px; }
.ecarter-champ .input { flex: 1; min-width: 0; height: 32px; min-height: 32px; padding: 5px 9px; font-size: 13px; }
.ecarter-champ .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.ecarter-vite { display: flex; flex-wrap: wrap; gap: 6px; }
.ecarter-puce { height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--soft);
  color: var(--text-2); font: 500 12px/1 var(--sans); cursor: pointer; }
.ecarter-puce:hover { border-color: var(--field-hover); color: var(--text); }

.offres-vide { padding: 28px 20px 30px; }
.offres-vide .btn { margin-top: 12px; }
.attente { border-top: 1px solid var(--line); }
.attente-tete { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; color: var(--text-2); font-size: 13px;
  font-weight: 500; list-style: none; cursor: pointer; }
.attente-tete::-webkit-details-marker { display: none; }
.attente-tete::marker { content: ""; }
.attente-tete::before { content: ""; width: 6px; height: 6px; margin-right: 2px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
.attente[open] > .attente-tete::before { transform: rotate(45deg); }
.attente-tete:hover { color: var(--text); }
.attente-note { margin: -6px 0 0; padding: 0 20px 12px 36px; font-size: 12.5px; color: var(--text-3); }
.attente .offres { border-top: 1px solid var(--line); }
.attente .offre-titre { font-weight: 500; }

.offres-toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 80; display: flex; align-items: center;
  gap: 14px; width: max-content; max-width: min(560px, calc(100vw - 32px)); margin: 0; padding: 8px 8px 8px 14px; background: var(--btn);
  border: 1px solid var(--btn); border-radius: 10px; color: #fff; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.offres-toast:has([data-annuler][hidden]) { padding-right: 14px; }
.offres-toast.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .15s ease, transform .15s ease; }
.offres-toast.is-error { background: var(--err-bg); border-color: var(--err-bd); color: var(--err); }
.offres-annuler { flex: none; height: 28px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 7px;
  background: transparent; color: #fff; font: 500 13px/1 var(--sans); cursor: pointer; }
.offres-annuler:hover { background: rgba(255, 255, 255, .1); }
.app-body .offres-annuler:focus-visible { outline-color: #fff; }

.suivi-barre { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.suivi-note { margin: 0; font-size: 13px; font-weight: 500; color: var(--amber); }

@media (max-width: 1100px) {
  /* les actions passent sous l'offre */
  .offre { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "note corps chiffres" ". actions actions"; row-gap: 10px; }
}
@media (max-width: 760px) {
  .chiffres { column-gap: 16px; }
  .chiffres li + li::before { display: none; }
  .chiffres-ligne { flex-direction: column; align-items: flex-start; }
  .onglets { gap: 20px; }
  .filtres-barre { padding: 12px 16px; }
  .filtre { position: static; }
  .filtre-menu { left: 12px; right: 12px; top: auto; min-width: 0; margin-top: 6px; }
  .offre { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "note corps" ". chiffres" ". actions"; column-gap: 12px;
    row-gap: 8px; padding: 14px 16px; }
  .offre-chiffres { display: flex; flex-wrap: wrap; align-items: baseline; justify-items: start; gap: 2px 10px; padding-top: 0; text-align: left; }
  .offre-raison { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  .offre-actions { flex-wrap: wrap; }
  .offre-form { flex: 2; }
  .offre-form .btn, .ecarter > summary { flex: 1; width: 100%; height: 34px; }
  .ecarter { flex: 1; }
  .attente-tete, .offres-vide { padding-inline: 16px; }
  .attente-note { padding-inline: 16px; }
  .ecarter-champ .input { font-size: 16px; }   /* pas de zoom automatique sur téléphone */
}
@media (prefers-reduced-motion: reduce) { .offres-toast, .attente-tete::before { transition: none; } }
.offre-annonce { margin: 0; font-size: 12.5px; line-height: 1.45; }
.offre-annonce a { color: var(--text-3); text-decoration: underline; }
