@font-face {
  font-family: "Biocoop";
  src: url("fonts/Biocoop-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
:root {
  --bg: #f9f9f9;
  --surface: #ffffff;
  --ink: #222222;
  --ink-soft: #6a6a6a;
  --border: #e6e6e6;
  --accent: #0c4da2;        /* bleu Biocoop — --primary-mark */
  --accent-ink: #ffffff;
  --accent-soft: #dfe5f1;   /* --primary-mark-variant */
  --community: #7a8f09;     /* --primary-community, assombri pour le texte */
  --community-soft: #dfecb7;
  --products: #fab700;      /* --primary-products */
  --danger: #d1453f;
}
* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}
.brand-bar {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent) 0 34%, var(--community) 34% 67%, var(--products) 67% 100%);
}
.page { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 44px; padding: 40px 20px 64px; }

.masthead { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.eyebrow { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
h1 { font-family: "Biocoop", Georgia, "Iowan Old Style", "Palatino Linotype", serif; font-weight: 700; font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0; color: var(--ink); }
.dek { font-size: 16px; color: var(--ink-soft); margin: 0; max-width: 52ch; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--ink-soft); }
.meta-dot { opacity: .5; }
.meta-stat strong { color: var(--ink); }
.cta { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.cta:hover { opacity: .9; }

.letter { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 40px clamp(20px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.letter p { margin: 0; line-height: 1.65; font-size: 15.5px; }
.letter-date { font-style: italic; color: var(--ink-soft); }
.letter-subject { font-weight: 700; }
.letter h2 { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; font-style: italic; font-weight: 700; font-size: 19px; margin: 0; color: var(--accent); }
.letter ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.letter li { line-height: 1.65; font-size: 15.5px; }
.letter li p.continuation { margin: 10px 0 0; }
.letter .demands li { font-weight: 500; }
.signature-block { font-style: italic; color: var(--ink-soft); }
.footnote { font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--border); padding-top: 18px; line-height: 1.6; }

.sign-section { display: flex; flex-direction: column; gap: 16px; }
.sign-section h2, .signatories h2 { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; font-weight: 700; font-size: 24px; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink); }
.sign-intro { margin: 0; color: var(--ink-soft); font-size: 14.5px; max-width: 60ch; }
form#sig-form { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .field { flex: 1 1 220px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field textarea { font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button#sig-submit { align-self: flex-start; background: var(--accent); color: var(--accent-ink); border: none; font-weight: 600; font-size: 15px; padding: 12px 24px; border-radius: 999px; cursor: pointer; }
button#sig-submit:hover { background: #0a3f85; }
.sig-status { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.sig-status[data-kind="ok"] { color: var(--community); font-weight: 600; }
.sig-status[data-kind="error"] { color: var(--danger); }

.signatories { display: flex; flex-direction: column; gap: 16px; }
.count-pill { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: var(--accent-soft); color: var(--accent); padding: 2px 10px; border-radius: 999px; }
.sig-empty { color: var(--ink-soft); font-size: 14.5px; margin: 0; padding: 22px; text-align: center; border: 1px dashed var(--border); border-radius: 8px; }
.sig-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sig-row { padding: 14px 4px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.sig-row:first-child { padding-top: 0; }
.sig-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.sig-store { font-weight: 600; }
.sig-name { color: var(--ink-soft); font-size: 14px; }
.sig-name::before { content: '— '; }
.sig-date { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.sig-note { flex-basis: 100%; margin: 2px 0 0; font-size: 13.5px; font-style: italic; color: var(--ink-soft); }

@media (max-width: 520px) {
  .letter { padding: 28px 18px; }
  form#sig-form { padding: 18px; }
}
