:root {
  --vert: #2e8b57; --orange: #e08a00; --rouge: #c0392b; --bleu: #2f6f4f;
  --bord: #e2e2dd; --texte: #23241f; --muted: #7a7a72; --fond: #f6f5f0;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--texte); background: var(--fond); line-height: 1.5; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
h1 { font-size: 24px; margin: 8px 0 16px; }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 16px 0 6px; }
a { color: var(--bleu); }
.muted { color: var(--muted); }
.mini { font-size: 12px; }
.center { text-align: center; }
.crumb { margin: 0 0 4px; }
code { background: #eee; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.topbar { background: #23241f; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.topbar .brand { font-weight: bold; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { color: #eee; text-decoration: none; }
.topbar nav a:hover { color: #fff; text-decoration: underline; }
.card { background: #fff; border: 1px solid var(--bord); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.card.narrow { max-width: 420px; margin: 40px auto; }
.card.scroll { overflow-x: auto; }
label { display: block; font-size: 14px; margin-bottom: 12px; }
input[type=text], input[type=password], input[type=month], input[type=file], select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--bord);
  border-radius: 6px; font-size: 14px; font-family: inherit;
}
textarea { resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.row label { margin-bottom: 0; }
.grow { flex: 1 1 320px; }
.inline { display: inline; }
button { font-family: inherit; font-size: 14px; cursor: pointer; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--bord); background: #fff; }
button.primary, .btn.primary { background: var(--bleu); color: #fff; border-color: var(--bleu); }
button.danger { background: var(--rouge); color: #fff; border-color: var(--rouge); }
button.link { border: none; background: none; color: var(--bleu); padding: 0; }
button[disabled] { opacity: .5; cursor: not-allowed; }
.btn { display: inline-block; padding: 9px 16px; border: 1px solid var(--bord); border-radius: 6px; text-decoration: none; color: var(--texte); margin-right: 8px; }
.btn.primary { color: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--bord); }
th { color: var(--muted); font-weight: bold; }
.actions { display: flex; gap: 12px; }
tr.inactive { opacity: .5; }
.badge { padding: 2px 8px; border-radius: 20px; font-size: 12px; }
.badge.brouillon { background: #eee; }
.badge.ouverte { background: #dff0e6; color: var(--vert); }
.badge.fermee { background: #f2dede; color: var(--rouge); }
.tag { display: inline-block; font-size: 11px; color: var(--bleu); background: #eef5f0; padding: 1px 6px; border-radius: 4px; }
.erreur { color: var(--rouge); }
.info { background: #dff0e6; border: 1px solid #bfe3cd; padding: 10px 14px; border-radius: 6px; }
.stats { display: flex; gap: 40px; }
.stats > div { display: flex; flex-direction: column; }
.stats .big { font-size: 30px; font-weight: bold; }
.dash-head { display: flex; align-items: center; justify-content: space-between; }
.legende { font-size: 13px; }
.feu { font-size: 18px; vertical-align: middle; }
.feu.vert { color: var(--vert); }
.feu.orange { color: var(--orange); }
.feu.rouge { color: var(--rouge); }
table.grid th, table.grid td { border: 1px solid var(--bord); text-align: center; white-space: nowrap; }
table.grid th.col-q { background: #eef5f0; }
table.grid th.col-coach { background: #f4f1ea; }
table.grid .tag { display: block; margin-top: 2px; }
table.grid .nom { text-align: left; font-weight: bold; }
table.grid .sticky { position: sticky; left: 0; background: #fff; }
.feu-form { margin: 0; }
.feu-select { width: auto; padding: 2px 4px; border: none; font-size: 14px; }
.feu-select.vert { color: var(--vert); }
.feu-select.orange { color: var(--orange); }
.feu-select.rouge { color: var(--rouge); }
td.comment { min-width: 220px; text-align: left; }
td.comment textarea { font-size: 12px; }
.mini-btn { padding: 3px 8px; font-size: 12px; margin-top: 4px; }
.trancher { border: 1px solid var(--bord); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.trancher .row { margin-top: 8px; gap: 8px; }
.questionnaire { max-width: 640px; margin: 30px auto; }
fieldset.question { border: 1px solid var(--bord); border-radius: 8px; margin: 0 0 18px; padding: 14px 16px; }
fieldset.question legend { font-weight: bold; padding: 0 6px; }
.echelle { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.echelle .bornes { font-size: 12px; color: var(--muted); }
.note { position: relative; margin: 0; }
.note input { position: absolute; opacity: 0; }
.note span { display: inline-block; width: 34px; text-align: center; padding: 8px 0; border: 1px solid var(--bord); border-radius: 6px; cursor: pointer; font-size: 14px; }
.note input:checked + span { background: var(--bleu); color: #fff; border-color: var(--bleu); }
