:root { --brand: #d6246e; --navy: #141f4e; --bg: #faf5f8; --muted: #6b7280; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--navy); line-height: 1.5; }
a { color: inherit; }

.hero { background: var(--brand); color: #fff; padding: 36px 20px 64px; }
.wrap { max-width: 620px; margin: 0 auto; }
.hero .org { display: flex; align-items: center; gap: 14px; font-weight: 700; margin-bottom: 36px; }
.hero .org img { width: 56px; height: 56px; border-radius: 12px; background: #fff; object-fit: contain; padding: 4px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(28px, 6vw, 40px); line-height: 1.15; }
.hero .sub { margin: 0 0 24px; letter-spacing: .12em; text-transform: uppercase; opacity: .9; font-size: 14px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 17px; }
.facts li { display: flex; gap: 12px; align-items: center; }
.facts svg { flex: none; width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; }

.card { background: #fff; border-radius: 22px; box-shadow: 0 10px 30px rgba(20, 31, 78, .08); padding: 28px; }
.pull { margin-top: -36px; }
.card h2 { margin: 0 0 8px; font-size: 22px; text-align: center; }
.card .center { text-align: center; color: var(--muted); margin: 8px 0; }

.desc { padding: 22px 4px 0; color: #374151; white-space: pre-line; }

form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number] { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; background: #fff; color: inherit; }
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.tickets { display: grid; gap: 10px; margin-bottom: 8px; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; }
.ticket-row .name { font-weight: 600; }
.ticket-row .price { color: var(--muted); font-size: 14px; }
.ticket-row input { width: 76px; text-align: center; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; padding: 12px 0; border-top: 1px dashed #d1d5db; margin-top: 8px; }
.pay { background: #fdeef3; border-radius: 12px; padding: 14px; font-size: 14px; margin-bottom: 16px; white-space: pre-line; }
.btn { display: block; width: 100%; background: var(--navy); color: #fff; border: 0; border-radius: 12px; padding: 14px; font: inherit; font-weight: 700; font-size: 16px; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { opacity: .92; }
.err { color: #b91c1c; font-size: 13px; margin-top: 4px; }
.alert { background: #fef2f2; color: #991b1b; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 20px; }

/* billet */
.ticket { max-width: 400px; margin: 36px auto; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(20, 31, 78, .1); }
.ticket .top { background: var(--brand); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.ticket .top img { width: 40px; height: 40px; border-radius: 8px; background: #fff; object-fit: contain; padding: 2px; }
.ticket .top small { display: block; font-size: 10px; letter-spacing: .1em; opacity: .9; }
.ticket .top strong { font-size: 16px; }
.ticket .main { padding: 24px 24px 20px; text-align: center; }
.ticket .qr { width: 230px; height: 230px; max-width: 100%; }
.ticket .num { font-size: 24px; font-weight: 700; margin-top: 12px; letter-spacing: .02em; }
.ticket .valid { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.rows { border-top: 1px dashed #d1d5db; padding-top: 14px; text-align: left; font-size: 14px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.rows .k { color: var(--muted); }
.rows .v { font-weight: 700; text-align: right; }
.status { margin: 0 0 16px; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.status.ok { background: #ecfdf5; color: #065f46; }
.status.wait { background: #fffbeb; color: #92400e; }
.status.ko { background: #fef2f2; color: #991b1b; }
.status.used { background: #f3f4f6; color: #374151; }
.note { color: var(--muted); font-size: 11px; margin-top: 12px; }

/* moyens de paiement */
.methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
.method { display: flex; align-items: center; gap: 8px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 14px; margin: 0; cursor: pointer; }
.method input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.method:has(input:checked) { border-color: var(--brand); background: #fdeef3; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 16px; }
.btn.alt { background: var(--brand); }

/* bannière de l'événement : photo en fond de l'en-tête */
.hero.has-banner { background-size: cover; background-position: center; padding-top: 56px; padding-bottom: 84px; }

/* envoyer le billet sur son téléphone */
.send { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #d1d5db; text-align: left; }
.send-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.send-row { display: grid; gap: 8px; }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid #d1d5db; font-size: 14px; padding: 11px; }
.btn.ghost[hidden] { display: none; }
.send-hint { min-height: 18px; margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* champs supplémentaires du formulaire d'inscription */
textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; background: #fff; color: inherit; }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
input[type=url], input[type=date] { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; background: #fff; color: inherit; }
input[type=url]:focus, input[type=date]:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.req { color: #b91c1c; }
.opt { color: var(--muted); font-weight: 400; font-size: 13px; }
.help { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }

/* tarif choisi parmi plusieurs quand une inscription = une personne */
label.ticket-row.choice { cursor: pointer; margin: 0; }
label.ticket-row.choice input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
label.ticket-row.choice:has(input:checked) { border-color: var(--brand); background: #fdeef3; }
label.ticket-row { margin: 0; font-weight: inherit; }
