/* Palette et composants adaptés de reference/carre-brasserie-demo.html */
:root {
  --ink: #12201a;
  --brasserie: #0e4b3a;
  --brasserie-2: #0a3a2d;
  --brass: #c19a3e;
  --brass-soft: #e7d4a0;
  --cream: #f3eeddff;
  --paper: #fbf8ef;
  --paper-2: #f6f1e3;
  --wine: #8f2b2b;
  --sage: #2c7a57;
  --line: rgba(18, 32, 26, 0.14);
  --line-2: rgba(18, 32, 26, 0.08);
  --shadow: 0 1px 2px rgba(18, 32, 26, 0.06), 0 8px 24px rgba(18, 32, 26, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Inter', sans-serif; margin: 0; line-height: 1.1; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header { background: var(--brasserie); color: var(--paper); border-bottom: 3px solid var(--brass); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; max-width: 1080px; margin: 0 auto; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .giant { width: 38px; height: 38px; border-radius: 50%; background: var(--brass); display: grid; place-items: center; font-weight: 800; color: var(--brasserie-2); font-size: 20px; }
.brand h1 { font-size: 20px; font-weight: 800; }
.brand small { display: block; font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-soft); }
nav.roles { display: flex; gap: 6px; }
nav.roles a { font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-radius: 8px; color: var(--brass-soft); text-decoration: none; }
nav.roles a.active { background: var(--brass); color: var(--brasserie-2); }
main { padding: 28px 0 64px; }
.demo-note { background: var(--paper-2); border: 1px dashed var(--brass); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: #5a5140; margin-bottom: 24px; }
.demo-note b { color: var(--wine); }
.grid { display: grid; gap: 16px; }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.eyebrow { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-bottom: 6px; }
.muted { color: #6d6552; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.sub { color: #6d6552; margin: 0 0 20px; font-size: 14.5px; }
.backlink { background: none; border: 0; color: var(--brasserie); cursor: pointer; font-size: 13.5px; padding: 0; margin-bottom: 14px; font-weight: 600; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.day { cursor: pointer; }
.day.selected { border-color: var(--brasserie); box-shadow: 0 0 0 2px var(--brasserie) inset, var(--shadow); }
.day .dow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--brass); font-weight: 700; }
.day .num { font-size: 15px; font-weight: 600; color: #6d6552; margin-bottom: 8px; }
.day .artiste { font-size: 17px; font-weight: 800; line-height: 1.1; }
.day .when { font-size: 12px; margin-top: 8px; display: inline-block; padding: 3px 8px; border-radius: 20px; }
.when.soir { background: #e7f0ea; color: var(--brasserie); }
.when.midi { background: #f3ecd6; color: #7a5f16; }
.when.film { background: #efe7de; color: #6d6552; }
.resto { cursor: pointer; }
.resto.selected { border-color: var(--brasserie); box-shadow: 0 0 0 2px var(--brasserie) inset, var(--shadow); }
.resto h3 { font-size: 17px; }
.resto .type { font-size: 12.5px; color: #7a5f16; margin-top: 4px; }
.seats { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.seats b { font-size: 24px; font-weight: 800; }
.seats.full b { color: var(--wine); }
.caution-tag { margin-top: 8px; font-size: 12.5px; }
.caution-tag b { color: var(--brasserie); }
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
input, select { width: 100%; font-size: 14.5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.field { margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn { font-weight: 700; font-size: 15px; border: 0; border-radius: 10px; padding: 13px 18px; cursor: pointer; background: var(--brasserie); color: #fff; width: 100%; }
.btn:hover { background: var(--brasserie-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--brasserie); border: 1.5px solid var(--brasserie); width: auto; padding: 9px 14px; font-size: 13.5px; }
.btn.wine { background: var(--wine); }
.btn.sage { background: var(--sage); }
.btn.sm { width: auto; padding: 8px 13px; font-size: 13px; }
.alert { border-radius: 9px; padding: 11px 13px; font-size: 13.5px; margin-bottom: 14px; }
.alert.err { background: #f7e4e4; color: var(--wine); border: 1px solid #e3b7b7; }
.alert.ok { background: #e4f2ea; color: var(--sage); border: 1px solid #b6ddc7; }
.alert.warn { background: #f3ecd6; color: #7a5f16; border: 1px solid #e2d09a; }
.ticket { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); max-width: 420px; margin: 0 auto; }
.ticket-top { background: var(--brasserie); color: var(--paper); padding: 18px 20px; }
.ticket-top small { color: var(--brass-soft); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.ticket-body { padding: 22px 20px; text-align: center; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: inline-block; }
.qr-box img { display: block; width: 200px; height: 200px; }
.ticket-rows { margin-top: 18px; text-align: left; font-size: 13.5px; }
.ticket-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.ticket-rows div:last-child { border: 0; }
.ticket-rows b { font-weight: 600; text-align: right; }
.gate { max-width: 420px; margin: 10px auto; }
.crit { display: flex; flex-direction: column; gap: 5px; margin: 12px 0 16px; font-size: 12.5px; }
.crit div { display: flex; align-items: center; gap: 8px; color: #8a8272; }
.crit div.met { color: var(--sage); }
.crit .dot { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: #e6e2d4; color: #8a8272; flex: none; }
.crit div.met .dot { background: var(--sage); color: #fff; }
.hint { font-size: 12px; color: #8a8272; margin-top: 12px; background: var(--paper-2); border-radius: 8px; padding: 8px 10px; }
.login-strip { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.login-strip select { width: auto; min-width: 200px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 800; }
.stat .l { font-size: 12px; color: #6d6552; text-transform: uppercase; letter-spacing: .08em; }
.stat.warn .n { color: var(--wine); }
.scan-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .scan-panel { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr; } }
.verdict { border-radius: 12px; padding: 18px; text-align: center; min-height: 100px; display: flex; flex-direction: column; justify-content: center; }
.verdict.idle { background: var(--paper-2); color: #8a8272; border: 1px dashed var(--line); }
.verdict.valid { background: #e4f2ea; border: 2px solid var(--sage); color: var(--sage); }
.verdict.invalid { background: #f7e4e4; border: 2px solid var(--wine); color: var(--wine); }
.verdict .big { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.verdict .det { color: var(--ink); font-size: 13px; margin-top: 8px; text-align: left; background: #ffffffcc; border-radius: 8px; padding: 10px; }
.verdict .det div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6d6552; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); }
tr:last-child td { border: 0; }
.badge { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.b-confirmee { background: #e7f0ea; color: var(--brasserie); }
.b-arrivee_validee { background: #e4f2ea; color: var(--sage); }
.b-no_show { background: #f7e4e4; color: var(--wine); }
.b-annulee { background: #eee; color: #888; }
.offline-banner { background: var(--wine); color: #fff; text-align: center; padding: 8px; font-size: 13px; font-weight: 600; }
.hidden { display: none !important; }
