:root { --bleu:#2e5bff; --creme:#faf7f2; --encre:#14161f; --gris:#6b7080; --ligne:#e6e2da; --ok:#1f9d55; --alerte:#d64545; --carte:#fff; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Manrope, system-ui, sans-serif; background: var(--creme); color: var(--encre); }
h1, h2, h3 { font-family: Sora, system-ui, sans-serif; margin: 0 0 8px; }
h3 { font-size: 16px; }
header { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--encre); color: #fff; }
header a { color: #fff; }
nav.onglets { display: flex; gap: 6px; padding: 8px 16px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--ligne); }
nav.onglets a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--encre); white-space: nowrap; }
nav.onglets a.actif { background: var(--bleu); color: #fff; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
.carte { display: block; background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
a.carte { text-decoration: none; color: inherit; }
.ligne { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--gris); font-size: 14px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef1ff; color: var(--bleu); }
.badge.terminee, .badge.reclamation { background: #fff1e6; color: #b45309; }
.badge.validee { background: #e7f7ee; color: var(--ok); }
.badge.annulee { background: #f1f1f1; color: var(--gris); }
button, .btn { display: inline-block; font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 12px 16px; background: var(--bleu); color: #fff; cursor: pointer; text-decoration: none; }
button.secondaire, .btn.secondaire { background: #fff; color: var(--bleu); border: 1px solid var(--bleu); }
button.danger { background: var(--alerte); color: #fff; border: 0; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, textarea, select { width: 100%; font: inherit; padding: 11px 12px; margin: 4px 0 10px; border: 1px solid var(--ligne); border-radius: 10px; background: #fff; }
label { font-size: 13px; font-weight: 700; color: var(--gris); }
label:has(> input[type="checkbox"]) { display: flex; gap: 8px; align-items: center; margin: 6px 0 12px; }
label:has(> input[type="checkbox"]) > input { width: auto; flex: none; margin: 0; }
.attention { color: #b45309; font-weight: 700; }
.grille-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 6px 0; }
.grille-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.zone { border-left: 4px solid var(--ligne); padding-left: 10px; margin: 12px 0; }
.zone.ok { border-left-color: var(--ok); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
#toasts { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--encre); color: #fff; }
.erreurs { background: #fdecec; color: var(--alerte); padding: 10px 12px; border-radius: 10px; }
canvas.signature { display: block; width: 100%; height: 180px; border: 1px dashed var(--gris); border-radius: 12px; background: #fff; touch-action: none; }
summary { cursor: pointer; font-weight: 700; }
