@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap");

/* Calme comme Linear : du gris neutre partout, les couleurs de Lucio seulement pour dire un état. */
:root {
  --canvas: #fcfcfb;
  --surface: #ffffff;
  --side: #f5f5f3;
  --hover: #f0f0ee;
  --active: #e9e9e6;
  --line: #ebebe8;
  --line-strong: #dcdcd8;
  --fg: #1c1c1a;
  --fg-2: #565652;
  --fg-3: #74746f;
  --ink: #1c1c1a;
  --on-ink: #ffffff;
  --lime: #c4f98a;
  --lime-deep: #3f8a0c;
  --bulb: #ffe84d;
  --bulb-deep: #b38300;
  --lilac: #c9b6f2;
  --lilac-deep: #6a4fc4;
  --accent: #6a4fc4;
  --danger: #c4321f;
  --danger-bg: #fdf0ee;
  --focus: #6a4fc4;
  --shadow-pop: 0 1px 2px rgb(0 0 0 / .06), 0 8px 28px -6px rgb(0 0 0 / .18);
  --shadow-panel: -20px 0 50px -24px rgb(0 0 0 / .28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #101011;
    --surface: #161617;
    --side: #131314;
    --hover: #1e1e20;
    --active: #262628;
    --line: #242426;
    --line-strong: #333336;
    --fg: #eeeeec;
    --fg-2: #b4b4b0;
    --fg-3: #8e8e8a;
    --ink: #eeeeec;
    --on-ink: #101011;
    --lime-deep: #a6e86a;
    --bulb-deep: #f0cf4a;
    --lilac-deep: #b9a4f2;
    --accent: #b9a4f2;
    --danger: #ff8f7e;
    --danger-bg: #2a1614;
    --focus: #b9a4f2;
    --shadow-pop: 0 1px 2px rgb(0 0 0 / .4), 0 10px 32px -6px rgb(0 0 0 / .6);
    --shadow-panel: -20px 0 50px -20px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--fg); font: 400 14px/1.5 "Inter", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3 { font-family: inherit; margin: 0; letter-spacing: -0.011em; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font: 500 0.9em/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--hover); padding: 2px 5px; border-radius: 4px; }
kbd { font: 500 11px/1 "Inter", sans-serif; padding: 3px 5px; border-radius: 4px; border: 1px solid currentColor; opacity: .55; margin-left: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: 5px; }
svg { flex-shrink: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Avatars */
.av { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 600 10.5px/1 "Inter", sans-serif; color: #1c1c1a; flex-shrink: 0; }
.av-alexandre { background: var(--lime); }
.av-matteo { background: var(--lilac); }
.av-none { background: transparent; border: 1.3px dashed var(--line-strong); }
.av-other { background: var(--hover); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 1px rgb(0 0 0 / .03); }
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 13px; height: 13px; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 85%, var(--canvas)); }
.btn-line { background: transparent; }
.btn-quiet { }
.btn-block { width: 100%; height: 38px; font-size: 14px; }
.btn-danger-ghost { border-color: transparent; background: none; box-shadow: none; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-bg); }
.link-btn { background: none; border: none; padding: 3px 6px; color: var(--fg-3); font-size: 12.5px; font-weight: 500; cursor: pointer; border-radius: 5px; }
.link-btn:hover { color: var(--fg); background: var(--hover); }
.icon-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; border: none; background: none; color: var(--fg-3); cursor: pointer; }
.icon-btn:hover { background: var(--hover); color: var(--fg); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn.sm { width: 22px; height: 22px; }
.icon-btn.sm svg { width: 12px; height: 12px; }
.head-link { background: none; border: none; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--fg-3); padding: 2px 0; }
.head-link:hover { color: var(--fg); }
.inline-link { color: var(--accent); font-weight: 500; }
.inline-link:hover { text-decoration: underline; }

/* Connexion */
#login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 360px; }
.login-mark { width: 40px; height: 40px; margin-bottom: 20px; display: block; }
.login-card h1 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.login-card .lead { color: var(--fg-2); margin: 0 0 26px; font-size: 13.5px; }
.field-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--fg-2); margin: 0 0 6px; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.name-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500; cursor: pointer; }
.name-btn:hover { background: var(--hover); }
.name-btn[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
#login-password { width: 100%; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; }
#login-password:focus { border-color: var(--fg-2); outline: none; }
#login .error { color: var(--danger); font-size: 12.5px; min-height: 20px; margin: 6px 0 8px; }

/* Coque : barre latérale à la Linear */
#app { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 12px 10px; }
.side-brand { display: flex; align-items: center; gap: 8px; padding: 6px 8px 16px; }
.side-mark { width: 22px; height: 22px; }
.side-word { height: 12px; width: 44px; color: var(--fg); }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-nav a { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 6px; color: var(--fg-2); font-weight: 500; font-size: 13px; }
.side-nav a svg { width: 15px; height: 15px; color: var(--fg-3); }
.side-nav a:hover { background: var(--hover); color: var(--fg); }
.side-nav a[aria-current="page"] { background: var(--active); color: var(--fg); }
.side-nav a[aria-current="page"] svg { color: var(--fg); }
.side-nav .count { margin-left: auto; font: 500 11.5px/1 "Inter", sans-serif; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.side-group { margin: 16px 8px 4px; font-size: 11.5px; font-weight: 500; color: var(--fg-3); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 8px 2px; }
.me-name { font-weight: 500; font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtop, .mnav { display: none; }

.main { padding: 28px clamp(20px, 3.4vw, 48px) 72px; min-width: 0; }
.page { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.page[data-page="taches"], .page[data-page="tickets"] { max-width: 1180px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-head h1 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.page-sub { margin: 4px 0 0; color: var(--fg-3); font-size: 13px; max-width: 70ch; }
.page-sub .ci, .page-sub .av { vertical-align: middle; margin-right: 4px; }
.page-sub .sep { vertical-align: middle; }
.h1-commit { overflow-wrap: anywhere; }
.back { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 500; color: var(--fg-3); margin: -6px 0 -10px -6px; padding: 3px 6px; border-radius: 5px; align-self: flex-start; }
.back svg { width: 13px; height: 13px; }
.back:hover { color: var(--fg); background: var(--hover); }

/* L'explication en clair, pour qui ne code pas */
.explain { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--side); font-size: 13px; color: var(--fg-2); }
.explain b { color: var(--fg); font-weight: 600; }
.explain .ex-ic { width: 16px; height: 16px; margin-top: 1px; color: var(--fg-3); }
.verdict { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; border: 1px solid var(--line); background: var(--surface); }
.verdict .ci { margin-top: 1px; }
.verdict p { margin: 0; }
.verdict.good { border-color: color-mix(in srgb, var(--lime-deep) 35%, var(--line)); background: color-mix(in srgb, var(--lime) 14%, var(--surface)); }
.verdict.bad { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: var(--danger-bg); }
.verdict.wait { border-color: color-mix(in srgb, var(--bulb-deep) 35%, var(--line)); background: color-mix(in srgb, var(--bulb) 12%, var(--surface)); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.flow > div { padding: 12px 14px 14px; border-left: 1px solid var(--line); min-width: 0; }
.flow > div:first-child { border-left: none; }
.flow b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.flow b span { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--active); font-size: 10.5px; color: var(--fg-2); }
.flow p { margin: 3px 0 0; font-size: 12.5px; color: var(--fg-3); }

/* Accueil : une phrase qui dit comment va le projet */
.hero { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-strong); }
.tone-lime::before { background: var(--lime-deep); }
.tone-bulb::before { background: var(--bulb-deep); }
.tone-danger::before { background: var(--danger); }
.hero-hello { margin: 18px 22px 4px; font-size: 12.5px; color: var(--fg-3); font-weight: 500; }
.hero-line { margin: 0 22px; font-size: 19px; line-height: 1.35; font-weight: 600; max-width: 52ch; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 22px 0; }
.hero-actions:empty { display: none; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 0; border-top: 1px solid var(--line); }
.hero-stats > div { padding: 11px 14px 12px 22px; border-left: 1px solid var(--line); min-width: 0; }
.hero-stats > div:first-child { border-left: none; }
.hero-stats dt { font-size: 12px; color: var(--fg-3); }
.hero-stats dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Blocs et rangées */
.block { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 10px; }
.block-head h2 { font-size: 13px; font-weight: 600; }
.block-head h2 .n, .n { color: var(--fg-3); font-weight: 500; margin-left: 6px; font-size: 12.5px; }
.block-sub { margin: -4px 16px 10px; color: var(--fg-3); font-size: 12.5px; }
.block-note { margin: 0; padding: 11px 16px 13px; color: var(--fg-2); font-size: 12.5px; border-top: 1px solid var(--line); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--line); min-height: 42px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-title { font-weight: 500; font-size: 13.5px; overflow-wrap: anywhere; }
a.row-title:hover { text-decoration: underline; }
.row-sub { color: var(--fg-3); font-size: 12.5px; overflow-wrap: anywhere; }
.row-act { font-size: 12.5px; font-weight: 500; color: var(--fg-2); height: 26px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.row-act svg { width: 11px; height: 11px; }
.row-act:hover { background: var(--hover); color: var(--fg); }
.row-act.strong { color: var(--fg); border: 1px solid var(--line-strong); }
.row-icon { width: 15px; height: 15px; color: var(--fg-3); }
.row-meta { font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }
.link-row:hover, button.row:hover { background: var(--hover); }
button.row { width: 100%; border: none; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.chev { width: 13px; height: 13px; color: var(--fg-3); }
.out { width: 12px; height: 12px; color: var(--fg-3); }
.site-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.empty { padding: 14px 16px 16px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 13px; }
.empty.first, .block > .empty:first-child { border-top: none; }
.empty b { color: var(--fg); font-weight: 600; }
.more-btn { display: block; width: 100%; text-align: left; padding: 9px 16px; border: none; border-top: 1px solid var(--line); background: none; color: var(--fg-3); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.more-btn:hover { background: var(--hover); color: var(--fg); }
.group-head { display: flex; align-items: center; gap: 8px; padding: 7px 16px; background: var(--side); border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.group-head .n { margin-left: 0; }

/* Code */
.ci { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.ci::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ci-success { color: var(--lime-deep); }
.ci-failure { color: var(--danger); }
.ci-pending { color: var(--bulb-deep); }
.ci-unknown, .ci-skipped, .ci-cancelled { color: var(--fg-3); }
.ci-merged { color: var(--lilac-deep); }
.pr-num { font-size: 12.5px; font-weight: 500; color: var(--fg-3); width: 30px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.diff { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.diff .add, .add-c { color: var(--lime-deep); }
.diff .del, .del-c { color: var(--danger); }
.diff .add, .diff .del { font-weight: 600; }
.branches { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.branch { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--fg-2); }
.branch svg { width: 13px; height: 13px; color: var(--fg-3); }
.branch.is-main { color: var(--fg); font-weight: 600; }
.gh-time { font-size: 12px; color: var(--fg-3); }
.sha { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--fg-3); }
.path-dir { color: var(--fg-3); font-weight: 400; }
.file-row .row-title { font: 500 12.5px/1.45 ui-monospace, "SF Mono", Menlo, monospace; }
.bar { display: block; height: 5px; border-radius: 3px; background: var(--danger); opacity: .8; flex-shrink: 0; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--lime-deep); }
.annot { background: var(--danger-bg); padding-left: 38px; }
.annot-msg { font: 500 12px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--danger); white-space: pre-wrap; overflow-wrap: anywhere; }
.annot-note { background: var(--side); }
.annot-note .annot-msg { color: var(--fg-3); font-weight: 400; }
.step { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.step .row-title { font-weight: 400; font-size: 13px; }
.step .row-sub { font-size: 12px; }
.step.failure .row-title { color: var(--danger); font-weight: 600; }
.step.skipped .row-title { color: var(--fg-3); }
.md { padding: 0 16px 14px; font-size: 13.5px; max-width: 76ch; }
.md p { margin: 0 0 8px; }
.md h3 { font-size: 13.5px; font-weight: 600; margin: 14px 0 4px; }
.md h3:first-child { margin-top: 0; }
.md ul, .md ol { margin: 0 0 8px; padding-left: 18px; }
.md li { margin-bottom: 3px; }
.md-link { color: var(--accent); text-decoration: underline; }
#code-root { display: flex; flex-direction: column; gap: 20px; }

/* Chiffres */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.block > .figures:first-child { border-top: none; }
.figures-4 { grid-template-columns: repeat(4, 1fr); }
.figures > div { padding: 11px 16px 13px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.figures > div:first-child { border-left: none; }
.fig { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.fig-label { font-size: 12px; color: var(--fg-3); }

/* Suggestions */
.rec { gap: 12px; }
.rec .btn { height: 26px; padding: 0 9px; font-size: 12.5px; }

/* ---------- Suivi façon Linear ---------- */
.tracker, .task-page { display: flex; flex-direction: column; gap: 14px; }
.t-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.t-search { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); width: 240px; color: var(--fg-3); }
.t-search svg { width: 13px; height: 13px; }
.t-search input { flex: 1; min-width: 0; border: none; background: none; font-size: 13px; color: var(--fg); padding: 0; }
.t-search input:focus { outline: none; }
.t-search:focus-within { border-color: var(--fg-3); }
.t-search input::-webkit-search-cancel-button { display: none; }
.t-filter select { height: 30px; padding: 0 26px 0 10px; border-radius: 7px; border: 1px dashed var(--line-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m5 6.5 3 3 3-3' fill='none' stroke='%2374746f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 7px center / 13px; -webkit-appearance: none; appearance: none; font-size: 12.5px; font-weight: 500; color: var(--fg-2); cursor: pointer; }
.t-filter select:hover { background-color: var(--hover); }
.t-filter.on select { border-style: solid; color: var(--fg); background-color: var(--active); }
.seg { display: inline-flex; margin-left: auto; padding: 2px; border-radius: 8px; background: var(--hover); border: 1px solid var(--line); }
.seg button { height: 24px; padding: 0 10px; border: none; border-radius: 6px; background: none; font-size: 12.5px; font-weight: 500; color: var(--fg-3); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }

.si, .pi { width: 14px; height: 14px; display: block; }
.pi { color: var(--fg-2); }
.ci-ic { width: 12px; height: 12px; }
.t-btn { display: grid; place-items: center; width: 24px; height: 24px; border: none; border-radius: 5px; background: none; padding: 0; cursor: pointer; flex-shrink: 0; }
.t-btn:hover { background: var(--active); }
.t-btn .av { width: 18px; height: 18px; font-size: 9.5px; }
.t-id { font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.t-list { border-radius: 10px; }
.t-ghead { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 16px; background: var(--side); border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.t-ghead:first-child { border-top: none; }
.t-ghead .n { margin: 0; }
.t-ghead .icon-btn { margin-left: auto; }
.t-row { display: grid; grid-template-columns: 24px 54px 24px minmax(0, 1fr) auto 24px; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 10px; border-top: 1px solid var(--line); cursor: pointer; }
.t-row:hover { background: var(--hover); }
.t-row:focus-visible { outline-offset: -2px; border-radius: 0; }
.t-title { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 2px; }
.t-row.closed .t-title { color: var(--fg-3); }
.t-meta { display: flex; align-items: center; gap: 6px; min-width: 0; justify-content: flex-end; }
.t-date { font-size: 12px; color: var(--fg-3); white-space: nowrap; width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.lb { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 11.5px; font-weight: 500; color: var(--fg-2); white-space: nowrap; }
.lb i, .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.due { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 11.5px; font-weight: 500; color: var(--fg-2); white-space: nowrap; }
.due.late { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.due.soon { color: var(--bulb-deep); }
.t-com { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--fg-3); }
#home-todos .t-row:first-child { border-top: 1px solid var(--line); }

/* Tableau */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.k-col { display: flex; flex-direction: column; background: var(--side); border: 1px solid var(--line); border-radius: 10px; height: calc(100dvh - 210px); min-height: 360px; transition: border-color .12s ease, background-color .12s ease; }
.k-col.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--side)); }
.k-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 12px; font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.k-head .n { margin: 0; }
.k-head .icon-btn { margin-left: auto; }
.k-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 0 8px 8px; }
.k-empty { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 14px; text-align: center; font-size: 12px; color: var(--fg-3); }
.t-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px 10px; cursor: grab; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 1px rgb(0 0 0 / .03); }
.t-card:hover { border-color: var(--line-strong); }
.t-card.dragging { opacity: .4; }
.t-card.closed .tc-title span { color: var(--fg-3); }
.tc-top { display: flex; align-items: center; justify-content: space-between; height: 20px; }
.tc-title { display: flex; align-items: flex-start; gap: 4px; font-size: 13px; font-weight: 500; line-height: 1.4; }
.tc-title .t-btn { width: 20px; height: 20px; margin: -1px 0 0 -3px; }
.tc-title span { overflow-wrap: anywhere; }
.tc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.t-box { width: 22px; height: 20px; border: 1px solid var(--line-strong); }

/* Menus rapides */
.menu { position: fixed; z-index: 60; min-width: 210px; max-height: 340px; overflow-y: auto; padding: 4px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; box-shadow: var(--shadow-pop); }
.m-opt { display: flex; align-items: center; gap: 9px; width: 100%; height: 32px; padding: 0 8px; border: none; border-radius: 6px; background: none; font-size: 13px; text-align: left; cursor: pointer; }
.m-opt span { flex: 1; }
.m-opt:hover, .m-opt:focus { background: var(--hover); outline: none; }
.m-check { width: 14px; height: 14px; color: var(--fg-2); visibility: hidden; }
.m-opt[aria-selected="true"] .m-check { visibility: visible; }

/* Chips de propriétés */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--fg-2); cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--hover); color: var(--fg); }
.chip .lb { height: 18px; border: none; padding: 0 2px; }
.chip-date input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.chip-date.late { color: var(--danger); }
.chip-date.soon { color: var(--bulb-deep); }
.chip-x { width: 28px; padding: 0; justify-content: center; margin-left: -4px; }
.chip-x svg { width: 11px; height: 11px; }

/* Fenêtre de création */
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .32); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.modal { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 14px 18px 12px; display: flex; flex-direction: column; gap: 8px; animation: pop .14s ease-out; }
@keyframes pop { from { transform: translateY(6px) scale(.99); } }
.modal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.modal-head { font-size: 12.5px; font-weight: 500; color: var(--fg-3); }
.modal-title, .modal-desc, .tp-title, .tp-desc { border: none; background: none; resize: none; padding: 0; width: 100%; overflow: hidden; }
.modal-title:focus, .modal-desc:focus, .tp-title:focus, .tp-desc:focus { outline: none; }
.modal-title { min-height: 26px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.modal-desc { font-size: 13.5px; min-height: 60px; }
.modal-title::placeholder, .modal-desc::placeholder, .tp-desc::placeholder { color: var(--fg-3); }
.modal .chips { padding: 4px 0 10px; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.more-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg-2); cursor: pointer; }

/* Fiche d'une tâche */
.tp { padding: 18px 26px 0; display: flex; flex-direction: column; gap: 12px; }
.tp-crumb { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg-3); }
.tp-title { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.tp-desc { font-size: 14px; line-height: 1.6; min-height: 70px; padding-bottom: 6px; }
.tp-section { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.tp-section h2 { font-size: 13px; font-weight: 600; }
.tp-activity { display: flex; flex-direction: column; position: relative; }
.tp-activity:empty { display: none; }
.act { display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: 12.5px; color: var(--fg-3); position: relative; }
.act::before { content: ""; position: absolute; left: 9px; top: -8px; bottom: -8px; width: 1px; background: var(--line); z-index: 0; }
.act-ic { width: 19px; height: 19px; display: grid; place-items: center; background: var(--surface); position: relative; z-index: 1; }
.act-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); display: block; }
.act-txt { flex: 1; min-width: 0; }
.act-txt b { color: var(--fg-2); font-weight: 600; }
.act-at { font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.cmt { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px 11px; margin: 6px 0; background: var(--surface); position: relative; z-index: 1; }
.cmt-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.cmt-head b { font-weight: 600; }
.cmt-head .link-btn { margin-left: auto; }
.cmt-body { font-size: 13.5px; margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tp-comment { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 8px 8px 8px 12px; }
.tp-comment .av { margin-top: 3px; }
.tp-comment textarea { flex: 1; min-width: 0; border: none; background: none; resize: none; font-size: 13.5px; padding: 3px 0; overflow: hidden; }
.tp-comment textarea:focus { outline: none; }
.tp-comment:focus-within { border-color: var(--fg-3); }
.tp-comment .btn { height: 28px; }
.tp-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 14px; border-top: 1px solid var(--line); margin-top: 6px; }

/* Charte */
.logo-stage { background: var(--lime); border-radius: 12px; padding: clamp(32px, 6vw, 60px) 24px; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 20px); color: #0b0b0b; }
.logo-mark { width: clamp(56px, 8vw, 80px); height: clamp(56px, 8vw, 80px); }
.logo-word { height: clamp(34px, 5vw, 52px); width: auto; aspect-ratio: 362.08 / 100; }
.caption { margin: -10px 2px 0; color: var(--fg-3); font-size: 12.5px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.sw { display: flex; flex-direction: column; gap: 1px; padding: 12px 14px 14px; border-left: 1px solid var(--line); min-width: 0; }
.sw:first-child { border-left: none; }
.sw-chip { height: 56px; border-radius: 7px; margin-bottom: 8px; }
.sw-light { box-shadow: inset 0 0 0 1px var(--line-strong); }
.sw b { font-size: 13px; font-weight: 600; }
.sw code { background: none; padding: 0; color: var(--fg-3); font-size: 11.5px; }
.sw span { font-size: 12.5px; color: var(--fg-2); margin-top: 3px; }
.type-row, .rule-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 11px 16px; border-top: 1px solid var(--line); align-items: baseline; font-size: 13px; }
.type-meta { font-size: 12.5px; color: var(--fg-3); }
.type-display { font: 700 24px/1.15 "Bricolage Grotesque", sans-serif; letter-spacing: -0.02em; }
.type-body { font-size: 14px; }
.rule-row b { font-weight: 600; }
.rule-row span { color: var(--fg-2); }

/* Liens */
.lk { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--active); font-size: 11.5px; font-weight: 600; color: var(--fg-2); flex-shrink: 0; }
.lk-lime { background: var(--lime); color: #1c1c1a; }
.lk-lilac { background: var(--lilac); color: #1c1c1a; }
.lk-bulb { background: var(--bulb); color: #1c1c1a; }

/* Panneau des différences */
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .28); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(900px, 100vw); background: var(--surface); z-index: 41; box-shadow: var(--shadow-panel); border-left: 1px solid var(--line-strong); display: flex; flex-direction: column; padding: 14px 20px 0; overflow-y: auto; animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(24px); } }
.drawer-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.drawer-kind { font-size: 12.5px; font-weight: 500; color: var(--fg-3); }
.drawer-top .diff { margin-left: auto; }
.diff-path { font: 600 13.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; margin-bottom: 4px; overflow-wrap: anywhere; }
.diff-help { margin: 0 0 12px; font-size: 12.5px; color: var(--fg-3); }
.patch { margin: 0 -20px; border-top: 1px solid var(--line); flex: 1; }
.patch-scroll { overflow-x: auto; font: 12px/1.6 ui-monospace, "SF Mono", Menlo, monospace; padding-bottom: 24px; }
.ln { display: flex; min-width: max-content; }
.ln .no { width: 44px; flex-shrink: 0; text-align: right; padding-right: 10px; color: var(--fg-3); user-select: none; opacity: .8; }
.ln code { background: none; padding: 0 16px 0 10px; border-radius: 0; font: inherit; white-space: pre; color: var(--fg); }
.ln.add { background: color-mix(in srgb, var(--lime) 30%, transparent); }
.ln.del { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.ln.hunk { background: var(--hover); color: var(--fg-3); margin-top: 6px; }
.ln.hunk code { color: var(--fg-3); padding-top: 3px; padding-bottom: 3px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; z-index: 70; box-shadow: var(--shadow-pop); max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); color: #fff; }
.skel { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 30%, var(--hover) 50%, var(--line) 70%); background-size: 300% 100%; animation: sh 1.3s linear infinite; }
@keyframes sh { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Tablette et téléphone */
@media (max-width: 900px) {
  #app { display: block; }
  .side { display: none; }
  .mtop { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--canvas) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .mtop .side-brand { padding: 0; }
  .mnav { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); }
  .mnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 10.5px; font-weight: 500; color: var(--fg-3); }
  .mnav a svg { width: 20px; height: 20px; }
  .mnav a[aria-current="page"] { color: var(--fg); }
  .main { padding: 18px 16px 100px; }
  .page { gap: 16px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .k-col { height: calc(100dvh - 250px); }
}
@media (max-width: 640px) {
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head .btn { align-self: flex-start; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:nth-child(3) { border-left: none; }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .site-row { flex-wrap: wrap; }
  .site-row .row-main { flex-basis: calc(100% - 20px); }
  .site-row .row-act { margin-left: 18px; }
  .site-row .row-act.strong { margin-left: 0; }
  .pr-row { flex-wrap: wrap; }
  .figures, .flow { grid-template-columns: 1fr; }
  .figures > div, .flow > div { border-left: none; border-top: 1px solid var(--line); }
  .figures > div:first-child, .flow > div:first-child { border-top: none; }
  .figures-4 { grid-template-columns: 1fr 1fr; }
  .figures-4 > div:nth-child(2) { border-left: 1px solid var(--line); border-top: none; }
  .figures-4 > div:nth-child(4) { border-left: 1px solid var(--line); }
  .swatches { grid-template-columns: 1fr 1fr; }
  .sw { border-top: 1px solid var(--line); }
  .sw:nth-child(odd) { border-left: none; }
  .sw:nth-child(-n+2) { border-top: none; }
  .sw:last-child { grid-column: 1 / -1; }
  .type-row, .rule-row { grid-template-columns: 1fr; gap: 2px; }
  .bar, .row-meta { display: none; }
  .annot { padding-left: 16px; }
  .drawer { padding: 12px 16px 0; }
  .patch { margin: 0 -16px; }
  .t-search { width: 100%; }
  .seg { margin-left: 0; }
  .t-row { grid-template-columns: 24px 24px minmax(0, 1fr) auto 24px; }
  .t-row .t-id, .t-row .t-date, .t-row .lb { display: none; }
  .kanban { grid-auto-columns: 82vw; }
  .tp { padding: 14px 16px 0; }
  .tp-title { font-size: 19px; }
  .modal-wrap { padding-top: 8vh; }
}

/* Sous-tâches */
.t-parent { color: var(--fg-3); font-weight: 400; margin-right: 6px; }
.t-com.all-done { color: var(--lime-deep); }
.tc-parent { font-size: 11.5px; margin-top: -3px; }
.tp-parent { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg-3); }
.tp-parent .ci-ic { width: 13px; height: 13px; }
.tp-parent .link-btn { margin-left: 4px; }
.tp-subs { border-radius: 8px; }
.tp-subs .t-row:first-child { border-top: none; }
.sub-add { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-top: 1px solid var(--line); color: var(--fg-3); }
.tp-subs-list:empty + .sub-add { border-top: none; }
.sub-add svg { width: 13px; height: 13px; }
.sub-add input { flex: 1; min-width: 0; border: none; background: none; font-size: 13.5px; color: var(--fg); padding: 0; }
.sub-add input:focus { outline: none; }
.sub-add input::placeholder { color: var(--fg-3); }

/* Photos */
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.ph { position: relative; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--hover); }
.ph-open { display: block; width: 100%; height: 100%; padding: 0; border: none; background: none; cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph img:not([src]) { visibility: hidden; }
.ph.broken::after { content: "Photo introuvable"; position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--fg-3); padding: 6px; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 6px; border: none; background: rgb(0 0 0 / .55); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; }
.ph:hover .ph-x, .ph-x:focus-visible { opacity: 1; }
.ph-x svg { width: 11px; height: 11px; }
.ph-add { position: relative; width: 96px; height: 96px; border-radius: 8px; border: 1px dashed var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 12px; color: var(--fg-3); cursor: pointer; text-align: center; padding: 6px; }
.ph-add:hover { background: var(--hover); color: var(--fg); }
.ph-add .ci-ic { width: 16px; height: 16px; }
.ph-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ph-add:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
#new-photos .photos { padding-bottom: 2px; }
#new-photos .ph, #new-photos .ph-add { width: 72px; height: 72px; }
#new-photos .ph-add { width: auto; flex-direction: row; height: 30px; padding: 0 10px; border-radius: 7px; }
#new-photos .ph-add .ci-ic { width: 13px; height: 13px; }
@media (hover: none) { .ph-x { opacity: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / .82); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 48px); border-radius: 6px; }
.lightbox .icon-btn { position: absolute; top: 14px; right: 14px; color: #fff; }
.tp-subs .t-parent { display: none; }

/* ---------- Un mélange simple de Notion et de Linear ----------
   Notion pour le calme : blanc, gris chauds, grands titres, pages sans cadre, propriétés en liste.
   Linear pour le suivi : icônes de statut, groupes, tableau. */
:root {
  --canvas: #ffffff;
  --surface: #ffffff;
  --side: #f7f7f5;
  --hover: #f1f1ef;
  --active: #e9e9e7;
  --line: #ebebea;
  --line-strong: #dddddb;
  --fg: #37352f;
  --fg-2: #5f5e5b;
  --fg-3: #73726e;
  --ink: #37352f;
  --accent: #2f80ed;
  --focus: #2f80ed;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #191919;
    --surface: #202020;
    --side: #202020;
    --hover: #2a2a2a;
    --active: #323232;
    --line: #2f2f2f;
    --line-strong: #3a3a3a;
    --fg: #e6e5e3;
    --fg-2: #bdbcb8;
    --fg-3: #9b9a97;
    --ink: #e6e5e3;
    --on-ink: #191919;
    --accent: #529cca;
    --focus: #529cca;
  }
}
body { font-size: 14.5px; }
.main { padding-top: 40px; }
.page { gap: 24px; }
.page-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.page-sub { font-size: 14px; margin-top: 6px; }
.block { border-radius: 8px; }
.block-head { padding: 14px 18px 10px; }
.block-head h2 { font-size: 15px; }
.block-sub { margin: -4px 18px 12px; font-size: 13px; }
.row { padding: 9px 18px; min-height: 46px; }
.row-title { font-size: 14px; }
.side { padding: 12px 8px; }
.side-nav a { height: 30px; font-size: 14px; border-radius: 5px; padding: 0 10px; }
.side-nav a[aria-current="page"] { background: var(--active); font-weight: 600; }
.btn { height: 32px; border-radius: 6px; font-size: 13.5px; }
.btn-ink { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ink:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.hero-line { font-size: 22px; font-weight: 700; }

/* Liste : plus d'air, sous-tâches en retrait sous leur tâche */
.t-ghead { height: 38px; font-size: 13.5px; }
.t-row { height: 44px; grid-template-columns: 24px 50px 24px minmax(0, 1fr) auto 24px; }
.t-title { font-size: 14px; }
.t-row.child { height: 38px; padding-left: 38px; grid-template-columns: 24px 50px 24px minmax(0, 1fr) auto 24px; }
.t-row.child .t-title { font-size: 13.5px; color: var(--fg-2); font-weight: 400; }
.t-row.child + .t-row:not(.child), .t-row.child + .more-btn { border-top-color: var(--line); }
.t-add-sub { display: none; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); font-size: 12px; font-weight: 500; color: var(--fg-2); cursor: pointer; white-space: nowrap; }
.t-add-sub svg { width: 10px; height: 10px; }
.t-add-sub:hover { color: var(--fg); background: var(--hover); }
.t-row:hover .t-add-sub, .t-add-sub:focus-visible { display: inline-flex; }
@media (hover: none) { .t-add-sub { display: inline-flex; } }

/* Page d'une tâche : une page Notion, sans cadre */
.task-page .tp { border: none; background: none; padding: 8px 0 0; max-width: 760px; width: 100%; margin: 0 auto; gap: 14px; }
.tp-title { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.tp-crumb { margin-bottom: -6px; }
.tp-props { display: flex; flex-direction: column; gap: 1px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.prop { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; min-height: 34px; }
.prop-k { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-3); }
.prop-k .ci-ic { width: 14px; height: 14px; }
.prop-val { display: flex; align-items: center; gap: 2px; min-width: 0; }
.prop-v { position: relative; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 30px; padding: 3px 8px; margin-left: -8px; border: none; border-radius: 5px; background: none; font-size: 14px; color: var(--fg); cursor: pointer; text-align: left; }
.prop-v:hover { background: var(--hover); }
.prop-v.ro { cursor: default; color: var(--fg-2); }
.prop-v.ro:hover { background: none; }
.prop-v .lb { height: 22px; font-size: 12.5px; }
.prop-empty { color: var(--fg-3); }
.prop-v.chip-date.late { color: var(--danger); }
.prop-v.chip-date.soon { color: var(--bulb-deep); }
.tp-desc { font-size: 15px; min-height: 48px; }
.tp-subsec { display: flex; flex-direction: column; gap: 4px; }
.tp-subsec h2 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.tp-section { border-top: 1px solid var(--line); }
.tp-foot { border-top: 1px solid var(--line); }

/* Cases à cocher, comme les to-do de Notion */
.todo { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 6px; margin: 0 -6px; border-radius: 5px; }
.todo:hover { background: var(--hover); }
.cbx { display: grid; place-items: center; width: 17px; height: 17px; flex-shrink: 0; padding: 0; border: 1.5px solid var(--fg-3); border-radius: 4px; background: var(--surface); color: transparent; cursor: pointer; }
.cbx svg { width: 12px; height: 12px; }
.cbx[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.todo-title { flex: 1; min-width: 0; font-size: 14.5px; overflow-wrap: anywhere; }
a.todo-title:hover { text-decoration: underline; text-decoration-color: var(--line-strong); }
.todo.is-done .todo-title { color: var(--fg-3); text-decoration: line-through; }
.sub-add { height: 34px; padding: 0 6px; margin: 0 -6px; border: none; border-radius: 5px; }
.sub-add:hover { background: var(--hover); }
.tp-subs-list:empty + .sub-add { border-top: none; }
.draft-subs { display: flex; flex-direction: column; padding: 2px 0 4px; }
.draft-subs .todo .cbx { cursor: default; }
.draft-subs .icon-btn.sm { opacity: .7; }
.modal-title { font-size: 20px; font-weight: 700; }

@media (max-width: 640px) {
  .page-head h1 { font-size: 24px; }
  .tp-title { font-size: 25px; }
  .prop { grid-template-columns: 112px minmax(0, 1fr); }
  .t-row, .t-row.child { grid-template-columns: 24px 24px minmax(0, 1fr) auto 24px; }
  .t-row.child { padding-left: 26px; }
}

/* Toutes les pages prennent toute la largeur, la même partout. */
.page, .page[data-page="taches"], .page[data-page="tickets"] { max-width: none; }
.task-page .tp { max-width: none; }
.hero-line, .page-sub { max-width: none; }
/* Menu : seul le libellé s'étire, jamais l'avatar ni la pastille. */
.m-opt span { flex: 0 0 auto; }
.m-opt > span:not(.av) { flex: 1; white-space: nowrap; }
.m-opt .av { width: 20px; height: 20px; }
/* Code, version simple */
b.who { font-weight: 600; color: var(--fg); }
.row-sub b.who { color: var(--fg-2); }
.details-link { border-top: 1px solid var(--line); }
.details-link .row-title { font-weight: 600; }
.verdict a.inline-link { white-space: nowrap; }
