/* Journal La Copro : couleurs « Tilleul » (docs/interface/25-design-system.md), police Atkinson Hyperlegible. */
:root {
  --bg: #F6F4EE;
  --card: rgba(255,255,255,.86);
  --text: #1C2420;
  --muted: #59645E;
  --line: #E4E1D8;
  --accent: #2E6B4E;
  --accent-soft: #E6EFEA;
  --lane1: #1E5FA8;
  --lane2: #C2570F;
  --lane3: #6B3FA0;
  --shadow: 0 1px 2px rgba(28,36,32,.04), 0 8px 24px rgba(28,36,32,.06);
  --warn: #9A5B00;
  --warn-soft: #FBF0DC;
  --todo: #6B3FA0;
  --todo-soft: #F1EAFA;
  --on-accent: #FFFFFF;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101512;
    --card: rgba(26,33,29,.86);
    --text: #E9EEEA;
    --muted: #9FAAA3;
    --line: #2A332E;
    --accent: #6CC79A;
    --accent-soft: #15301F;
    --lane1: #6FA8E8;
    --lane2: #F0975A;
    --lane3: #B79BE0;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --warn: #F0B860;
    --warn-soft: #3A2F1C;
    --todo: #C3A9EE;
    --todo-soft: #2C2540;
    --on-accent: #0D1A12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101512;
  --card: rgba(26,33,29,.86);
  --text: #E9EEEA;
  --muted: #9FAAA3;
  --line: #2A332E;
  --accent: #6CC79A;
  --accent-soft: #15301F;
  --lane1: #6FA8E8;
  --lane2: #F0975A;
  --lane3: #B79BE0;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --warn: #F0B860;
  --warn-soft: #3A2F1C;
  --todo: #C3A9EE;
  --todo-soft: #2C2540;
  --on-accent: #0D1A12;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 32px 16px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
header.top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
header.top a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.top a:hover { color: var(--accent); }
h1 { font-size: 38px; line-height: 1.1; margin: 8px 0 8px; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 24px; }
a { color: var(--accent); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.grid .card { margin: 0; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-1px); }
a.card .more { color: var(--accent); font-size: 15px; margin-top: 8px; display: inline-block; }
.tag {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 8px;
}
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.todo { background: var(--todo-soft); color: var(--todo); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
ul, ol { padding-left: 22px; margin: 0 0 12px; }
li { margin-bottom: 6px; }
.timeline { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 20px; }
.timeline .item { position: relative; margin-bottom: 20px; }
.timeline .item::before {
  content: ""; position: absolute; left: -27px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--bg);
}
.timeline .date { font-size: 14px; font-weight: 600; color: var(--muted); }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 14px; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
dl dt { font-weight: 700; margin-top: 14px; }
dl dd { margin: 4px 0 0; color: var(--text); }
footer { margin-top: 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .wrap { padding-top: 20px; }
}

/* Menu en onglets, commun à toutes les pages (nav.js) */
nav.tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); }
.tabs-in { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; flex: none; letter-spacing: -.01em; }
.logo { width: 30px; height: 30px; display: block; filter: drop-shadow(0 3px 8px rgba(46,107,78,.35)); }
.tab-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 14px;
  background: color-mix(in srgb, var(--line) 55%, transparent); }
.tab-list::-webkit-scrollbar { display: none; }
.tab { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; white-space: nowrap; text-decoration: none;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.tab:hover { color: var(--text); background: color-mix(in srgb, var(--card) 70%, transparent); }
.tab.on { color: var(--text); background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.08); }
.tab .ti { font-size: 15px; }
.tab .ts { display: none; }
@media (max-width: 720px) {
  .tabs-in { gap: 10px; height: 56px; }
  .brand span:last-child { display: none; }
  .tab-list { flex: 1; justify-content: space-between; }
  .tab { padding: 8px 10px; }
  .tab .tl { display: none; }
  .tab.on .ts { display: inline; }
}
a.back { display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); margin-bottom: 14px; }
a.back:hover { color: var(--accent); }
code { font-size: .88em; padding: 1px 5px; border-radius: 5px; background: var(--line); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
[hidden] { display: none !important; }

/* Bouton « Bêta-test » vers l'application, en haut à droite (nav.js) */
.beta { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform .15s, box-shadow .15s; }
.beta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent); }
.beta .bb { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
  background: #F9B934; color: #1C2420; }
@media (max-width: 1240px) { .tab { padding: 8px 10px; } .tabs-in { gap: 12px; } }
@media (max-width: 1100px) { .beta .bl { display: none; } .beta { padding: 8px 10px; } }
@media (max-width: 720px) { .tab-list { min-width: 0; } }
