:root {
  --bg: #0f0f12; --panel: #17171c; --panel-2: #1f1f26; --line: #2c2c35;
  --gold: #e8b84b; --gold-2: #f3d27f; --red: #b3141f; --red-2: #d2323d;
  --text: #f4f1ea; --muted: #b8b3a7; --ok: #1f9d55; --warn: #e0a100; --bad: #d2323d;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--gold); }
img, video { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); color: var(--gold); }
h3 { font-size: 1.15rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(15,15,18,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { font: 800 1.25rem Georgia, serif; letter-spacing: .04em; color: var(--gold); text-decoration: none; }
.brand b { color: var(--red-2); }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: center; }
.nav a, .nav button.linklike { color: var(--text); text-decoration: none; padding: 10px 6px; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav a:hover, .nav a.active { color: var(--gold); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--gold); background: var(--gold); color: #1a1405; font: 700 1rem inherit; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--gold-2); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: rgba(232,184,75,.12); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.hero { padding: 48px 0 24px; text-align: center; background: radial-gradient(900px 400px at 50% -10%, rgba(179,20,31,.35), transparent), radial-gradient(700px 300px at 80% 10%, rgba(232,184,75,.12), transparent); }
.hero .kicker { color: var(--gold); letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero p.lead { font-size: 1.15rem; max-width: 640px; margin: 0 auto 1.2rem; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 1.2rem 0; }
.pill { border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 1.2rem 0 0; }

section.block { padding: 40px 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.card h3 { color: var(--gold); }
.price { font: 800 2.4rem Georgia, serif; color: #fff; margin: .2em 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.video-box { max-width: 380px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-box video { width: 100%; aspect-ratio: 484 / 848; background: #000; }
.posters img { border-radius: var(--radius); border: 1px solid var(--line); }
.speaker { text-align: center; }
.speaker .role { color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }
.program li { margin: .3rem 0; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }

form.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; }
label .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--panel-2); color: var(--text); border: 1px solid #3a3a46; border-radius: 10px; font: inherit; font-size: 16px;
}
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--gold); }
.offer-pick { display: grid; gap: 10px; }
.offer-pick label { background: var(--panel-2); border: 2px solid #3a3a46; border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 400; grid-template-columns: 24px 1fr auto; align-items: center; display: grid; gap: 10px; }
.offer-pick input { width: 20px; height: 20px; accent-color: var(--gold); }
.offer-pick label:has(input:checked) { border-color: var(--gold); background: rgba(232,184,75,.08); }
.offer-pick .t { font-weight: 700; }
.offer-pick .p { font-weight: 800; color: var(--gold); }
.total { font: 800 1.4rem Georgia, serif; color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash { padding: 12px 16px; border-radius: 10px; margin: 16px 0; border: 1px solid; }
.flash.ok { background: rgba(31,157,85,.14); border-color: var(--ok); }
.flash.err { background: rgba(210,50,61,.14); border-color: var(--bad); }

.ref { font: 800 2rem Georgia, serif; letter-spacing: .08em; color: var(--gold); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid; white-space: nowrap; }
.b-pending, .b-reserved { color: var(--warn); border-color: var(--warn); }
.b-paid, .b-valid { color: var(--ok); border-color: var(--ok); }
.b-used { color: #6aa9ff; border-color: #6aa9ff; }
.b-cancelled { color: var(--bad); border-color: var(--bad); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel-2); color: var(--gold); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .n { font: 800 1.9rem Georgia, serif; color: var(--gold); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row form { margin: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.toolbar input, .toolbar select { width: auto; min-width: 150px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }

/* Page de billet */
.ticket-card { background: #111114; border: 3px solid var(--gold); border-radius: 22px; overflow: hidden; max-width: 460px; margin: 20px auto; }
.ticket-card .band { background: var(--red); text-align: center; font: 800 1.6rem Georgia, serif; padding: 12px; color: #fff; }
.ticket-card .body { padding: 18px; text-align: center; }
.ticket-card .gold { color: var(--gold); font-weight: 700; }
.ticket-card .qr { background: #fff; border-radius: 12px; padding: 10px; width: 250px; margin: 14px auto; }
.ticket-card .num { font: 800 2rem Georgia, serif; color: var(--gold); }
.ticket-void { opacity: .55; }

/* Scanner */
.scan-box { position: relative; max-width: 520px; margin: 0 auto; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 18% 12%; border: 3px solid var(--gold); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); pointer-events: none; }
.scan-result { position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; }
.scan-result.show { display: flex; }
.scan-result.ok { background: #138a43; }
.scan-result.bad { background: #b3141f; }
.scan-result.warn { background: #b07d00; }
.scan-result h2 { color: #fff; font-size: clamp(2rem, 9vw, 3.4rem); }
.scan-result .big { font: 800 2.4rem Georgia, serif; }
.counter { font: 800 1.2rem Georgia, serif; color: var(--gold); }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  th { background: #eee; color: #000; }
  .table-wrap { border: 0; }
  a { color: #000; text-decoration: none; }
}
