:root {
  --bg: #f3f0ea;
  --card: #ffffff;
  --ink: #141414;
  --muted: #6b665e;
  --line: #e2ddd3;
  --accent: #ff4d1f;
  --ok: #1f8a4c;
  --err: #c62828;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 120px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 20px; }
.brand svg { width: 26px; height: 26px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; background: var(--ink); color: var(--bg); }
.tag.jury { background: var(--accent); color: #fff; }
h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; margin: 22px 0 6px; }
h2 { font-size: 20px; margin: 0 0 4px; letter-spacing: -.01em; }
p.lead { color: var(--muted); margin: 0 0 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.card.done { border-color: var(--ink); }
.artisan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.artisan-head .num { font-weight: 800; color: var(--muted); }
.artisan-title { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.total { font-weight: 800; font-size: 22px; white-space: nowrap; }
.total small { font-weight: 600; font-size: 13px; color: var(--muted); }
.crit { margin-top: 12px; }
.crit-label { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.crit-label span:last-child { font-variant-numeric: tabular-nums; }
.crit-label .unset { color: var(--muted); font-weight: 500; }
input[type=range] { width: 100%; height: 36px; accent-color: var(--ink); margin: 4px 0 0; }
input[type=range].unset { opacity: .45; }
.scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -4px; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--bg); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.bar-in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
button, .btn {
  appearance: none; border: 0; border-radius: 999px; padding: 12px 20px; font: inherit; font-weight: 700;
  background: var(--ink); color: var(--bg); cursor: pointer; text-decoration: none; display: inline-block;
}
.bar button { background: var(--accent); color: #fff; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
button.danger { background: var(--err); color: #fff; }
input[type=text], input[type=password], textarea {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
input.code { font-size: 24px; letter-spacing: .12em; text-transform: uppercase; text-align: center; font-weight: 700; }
.msg { padding: 12px 14px; border-radius: 10px; margin: 12px 0; font-weight: 600; }
.msg.err { background: #fde8e6; color: var(--err); }
.msg.ok { background: #e3f4ea; color: var(--ok); }
.center { text-align: center; }
.big-emoji { font-size: 56px; margin-top: 30px; }
.muted { color: var(--muted); }
dialog { border: 0; border-radius: var(--radius); padding: 20px; max-width: 420px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(20, 20, 20, .55); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
td.n { text-align: right; }
.hidden { display: none !important; }

/* Badge « Powered by Netlify » injecté par l'hébergeur sur le forfait gratuit */
#nl-badge-frame, #nl-hud-frame { display: none !important; }
