/* MPYBS QUITUS — page publique (mobile-first, personnalisable).
   Cible : /volume1/web/quitus/public/assets/quitus.css */

:root {
  --mpybs: #7a1e2b;
  --ink: #202124;
  --muted: #7A7A7A;
  --line: rgba(0,0,0,.14);
  --bg: #f4f4f5;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.band { height: 6px; background: var(--mpybs); }
header.top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
header.top img { height: 34px; }
header.top strong { color: var(--mpybs); font-size: 16px; }
main { max-width: 680px; margin: 0 auto; padding: 16px; }
h1 { font-size: 20px; margin: 6px 0 2px; }
.sub { color: var(--muted); margin: 0 0 16px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; }
.field .help { color: var(--muted); font-size: 13px; margin-top: 3px; }
input[type=text], input[type=date], textarea {
  width: 100%; padding: 11px 12px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
input[readonly] { background: #f2f2f3; color: #555; }
textarea { min-height: 90px; resize: vertical; }
.req { color: var(--mpybs); }

.checklist label { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; margin: 8px 0; }
.checklist input { margin-top: 3px; width: 18px; height: 18px; }

.sigwrap { border: 1px dashed var(--line); border-radius: 8px; background: #fff; }
canvas#sig { width: 100%; height: 190px; touch-action: none; display: block; border-radius: 8px; }
.sigbar { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-top: 1px solid var(--line); }
.sigbar .statement { color: var(--muted); font-size: 12px; }
button.link { background: none; border: none; color: var(--mpybs); font-size: 14px; cursor: pointer; }

.photos input { font-size: 15px; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.previews img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

button.submit {
  width: 100%; padding: 14px; font-size: 17px; font-weight: 700; color: #fff;
  background: var(--mpybs); border: none; border-radius: 10px; cursor: pointer;
}
button.submit[disabled] { opacity: .6; }

.msg { padding: 14px 16px; border-radius: 10px; margin: 10px 0; }
.msg.err { background: #fdecec; color: #a12; border: 1px solid #f4c7c7; }
.msg.ok  { background: #eaf7ee; color: #1c6b34; border: 1px solid #c7e7d2; }

footer.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 18px; }

@media (min-width: 768px) { body { font-size: 17px; } main { padding: 24px; } }
