:root {
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #b5651d;
  --border: #e5e1da;
  --card: #ffffff;
  --bg: #faf8f5;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { max-width: 440px; margin: 0 auto; }

/* Header */
.site-head { border-bottom: 1px solid var(--border); background: var(--card); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 18px; color: var(--fg); }
.nav a { margin-left: 18px; color: var(--fg); font-size: 15px; }
.nav a:hover { color: var(--accent); }

/* Boutons */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 6px;
  background: var(--accent); color: #fff; font-weight: 600;
  border: 1px solid var(--accent); cursor: pointer; font-size: 16px;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn.sec { background: transparent; color: var(--fg); border-color: var(--border); }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn.block { display: block; width: 100%; }

/* Cartes */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Formulaires */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font: inherit; background: #fff;
}
.field .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field .check input { width: auto; margin-top: 4px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Alertes */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert.err { background: #fdecea; border: 1px solid #f5c6c0; color: #a3362c; }
.alert.ok { background: #e9f6ec; border: 1px solid #c0e6c8; color: #18623a; }

/* Tableaux */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }

/* Grille catalogue */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.grid .thumb { aspect-ratio: 4/3; background: #ece8e2; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* Badges d'état */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.draft { background: #f0f0f0; color: #555; }
.badge.submitted { background: #fff3d6; color: #8a5d00; }
.badge.published { background: #e9f6ec; color: #18623a; }
.badge.correction_requested { background: #fdecea; color: #a3362c; }
.badge.paused { background: #f0f0f0; color: #777; }

h1 { font-size: 28px; line-height: 1.25; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
.lead { font-size: 18px; color: var(--muted); }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--border); padding: 24px 0; margin-top: 48px; background: var(--card); }
