/* EventSerenity — billetterie (section de la page, achat, suivi) et thème « festival ». */
:root { --sun: #f97316; --sun2: #fbbf24; --sea: #0ea5e9; }

/* ---------- Thème festival : coucher de soleil sur la mer ---------- */
.is-festival .ev-hero-shade { background: linear-gradient(100deg, color-mix(in srgb, var(--brand) 88%, black) 0%, color-mix(in srgb, var(--brand) 55%, transparent) 46%, rgba(249,115,22,.35) 100%), linear-gradient(0deg, rgba(6,10,23,.6), transparent 55%); }
.is-festival .ev-hero::after { content: ''; position: absolute; right: -120px; top: -140px; z-index: -1; width: 520px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 60%, rgba(251,191,36,.55), rgba(249,115,22,.25) 45%, transparent 70%); filter: blur(4px); animation: tkSun 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes tkSun { to { transform: translateY(40px) scale(1.06); } }
.is-festival .ev-hero .ev-btn { background: linear-gradient(135deg, var(--sun2), var(--sun)); color: #1c0f02; box-shadow: 0 16px 34px -14px rgba(249,115,22,.8); }
.is-festival .ev-tb-badge { background: var(--sun); }
@media (prefers-reduced-motion: reduce) { .is-festival .ev-hero::after { animation: none; } }

/* ---------- Section billetterie ---------- */
.tk-section { background: radial-gradient(1200px 400px at 10% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%), linear-gradient(180deg, #fffaf3, #fff); }
.tk-section .ev-kicker { display: inline-flex; align-items: center; gap: 8px; }
.tk-section .ev-kicker .ic { width: 16px; height: 16px; }
.tk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.tk-head h2 { margin-bottom: 10px; }
.tk-lead { margin: 0; max-width: 680px; color: var(--mut); }
.tk-head .ev-btn .ic, .ev-actions .ev-btn .ic { width: 18px; height: 18px; }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tk-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 18px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -30px rgba(12,19,38,.4); transition: transform .35s var(--ease), box-shadow .35s; overflow: hidden; }
.tk-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--tk), color-mix(in srgb, var(--tk) 50%, var(--sun2))); }
.tk-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tk) 40%, var(--line)), 0 26px 50px -30px color-mix(in srgb, var(--tk) 70%, black); }
.tk-card.is-featured { box-shadow: 0 0 0 2px var(--tk), 0 26px 50px -28px color-mix(in srgb, var(--tk) 80%, black); }
.tk-card.is-sold_out, .tk-card.is-ended, .tk-card.is-next_tier, .tk-card.is-scheduled { background: #fafafa; }
.tk-card.is-sold_out .tk-price b, .tk-card.is-ended .tk-price b { text-decoration: line-through; color: var(--mut); }
.tk-ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(35deg); padding: 4px 40px; background: var(--tk); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tk-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tk-name { margin: 0; font-weight: 800; font-size: 17px; }
.tk-tier { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--tk, var(--brand)) 14%, white); color: color-mix(in srgb, var(--tk, var(--brand)) 80%, black); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
.tk-price { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 0; }
.tk-price b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: color-mix(in srgb, var(--tk) 75%, black); }
.tk-price s { color: var(--mut); font-size: 14px; }
.tk-unit { margin: -6px 0 0; font-size: 13px; font-weight: 700; color: var(--tk); }
.tk-desc { margin: 0; font-size: 14px; color: var(--mut); line-height: 1.5; }
.tk-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.tk-perks li { display: flex; gap: 8px; }
.tk-perks li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: color-mix(in srgb, var(--tk) 16%, white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1326' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.tk-gauge { height: 6px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.tk-gauge i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sun2), var(--sun)); }
.tk-card footer { margin-top: auto; padding-top: 6px; display: grid; gap: 8px; }
.tk-alert { margin: 0; font-size: 12.5px; font-weight: 800; color: #c2410c; }
.tk-cta { display: flex; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: var(--tk); color: #fff; font-weight: 800; text-decoration: none; transition: filter .25s, transform .25s; }
.tk-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tk-state { display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 12px; border-radius: 14px; background: #f1f5f9; color: var(--mut); font-size: 13px; font-weight: 700; line-height: 1.35; }
.tk-state .ic { width: 16px; height: 16px; flex: none; }
.tk-out { justify-content: center; background: #fee2e2; color: #b91c1c; text-transform: uppercase; letter-spacing: .1em; }
.tk-how { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 0; padding: 0; }
.tk-how li { display: flex; gap: 12px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.tk-how span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; }
.tk-how b { display: block; font-size: 14.5px; }
.tk-how small { color: var(--mut); font-size: 13px; line-height: 1.45; }
.tk-pos { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--mut); font-size: 14px; font-weight: 600; }
.tk-pos .ic { width: 16px; height: 16px; color: var(--brand); }
@media (max-width: 760px) { .tk-head { flex-direction: column; align-items: flex-start; } .tk-how { grid-template-columns: 1fr; } }

/* ---------- Page d'achat ---------- */
.tk-summary { margin-top: 18px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.tk-summary-title { margin: 0 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.tk-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.tk-summary li { display: flex; justify-content: space-between; gap: 10px; }
.tk-empty { color: var(--mut); }
.tk-summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-weight: 700; }
.tk-summary-total b { font-size: 22px; letter-spacing: -.02em; color: var(--brand); }
.tk-summary-count { margin: 4px 0 0; font-size: 13px; color: var(--mut); }
.tk-offers { display: grid; gap: 10px; }
.tk-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); background: #fff; transition: box-shadow .25s, background .25s; }
.tk-row.is-picked { box-shadow: 0 0 0 2px var(--tk); background: color-mix(in srgb, var(--tk) 5%, white); }
.tk-row.is-off { opacity: .6; }
.tk-row-info p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.tk-row-info small { display: block; color: var(--mut); font-size: 12.5px; line-height: 1.4; }
.tk-row-state { display: inline-block; margin-top: 4px; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; }
.tk-row-state.hot { color: #c2410c; }
.tk-row-price { margin: 0; text-align: right; line-height: 1.2; }
.tk-row-price b { display: block; font-size: 16px; }
.tk-row-price s { font-size: 12px; color: var(--mut); }
.tk-qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.tk-qty button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font: inherit; font-size: 18px; font-weight: 800; color: var(--ink); cursor: pointer; }
.tk-qty button:hover:not(:disabled) { background: #f1f5f9; }
.tk-qty button:disabled { color: #cbd5e1; cursor: not-allowed; }
.tk-qty output { min-width: 26px; text-align: center; font-weight: 800; }
.tk-qty output.max { color: #c2410c; }
.tk-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tk-method { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s; }
.tk-method input { position: absolute; opacity: 0; }
.tk-method:has(input:checked) { box-shadow: 0 0 0 2px var(--m); background: color-mix(in srgb, var(--m) 5%, white); }
.tk-method:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--m) 40%, transparent); }
.tk-method-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--m); color: #fff; font-weight: 800; }
.tk-method b { display: block; font-size: 14.5px; }
.tk-method small { color: var(--mut); font-size: 12px; }
.tk-nomethod { margin: 0; padding: 14px 16px; border-radius: 14px; background: #fff7ed; color: #9a3412; font-weight: 600; font-size: 14px; }
@media (max-width: 560px) { .tk-row { grid-template-columns: 1fr auto; } .tk-row-price { text-align: left; grid-row: 2; } }

/* ---------- Suivi de commande ---------- */
.tk-loading { display: flex; align-items: center; gap: 12px; padding: 40px 0; color: var(--mut); font-weight: 600; }
.tk-spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: tkRot 1s linear infinite; }
@keyframes tkRot { to { transform: rotate(360deg); } }
.tk-ref { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; color: var(--mut); font-size: 14px; }
.tk-ref b { color: var(--ink); font-size: 16px; letter-spacing: .06em; }
.tk-copy { padding: 4px 10px; border: 0; border-radius: 999px; background: #eef2f7; color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.tk-copy:hover { background: #e2e8f0; }
.tk-status { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 20px; margin-bottom: 18px; }
.tk-status h2 { font-size: 21px; margin: 0 0 6px; }
.tk-status p { margin: 0; color: var(--mut); font-size: 14.5px; }
.tk-status-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; font-weight: 800; }
.tk-status.pending { background: #fff7ed; } .tk-status.pending .tk-status-ic { background: #ffedd5; }
.tk-status.paid { background: #ecfdf5; } .tk-status.paid .tk-status-ic { background: #10b981; color: #fff; }
.tk-status.off { background: #f1f5f9; } .tk-status.off .tk-status-ic { background: #e2e8f0; color: var(--mut); }
.tk-pay { padding: 20px; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 18px; }
.tk-pay-title { margin: 0 0 12px; font-size: 16px; }
.tk-pay-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tk-pay-steps li { display: flex; gap: 12px; align-items: center; }
.tk-pay-steps li > span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; }
.tk-pay-steps b { font-size: 17px; }
.tk-pay-steps small { display: block; color: var(--mut); font-size: 12.5px; }
.tk-pay-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #f8fafc; color: var(--mut); font-size: 13.5px; }
.tk-declare { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 16px; }
.tk-declare .reg-field { flex: 1 1 220px; margin: 0; }
.tk-recap { list-style: none; margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: #f8fafc; display: grid; gap: 6px; font-size: 14px; }
.tk-recap li { display: flex; justify-content: space-between; gap: 12px; }
.tk-recap em { color: var(--mut); font-style: normal; }
.tk-recap .tot { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); font-weight: 800; }
.tk-tickets { display: grid; gap: 12px; margin-bottom: 16px; }
.tk-ticket { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.tk-ticket::after { content: ''; position: absolute; left: 118px; top: 10px; bottom: 10px; border-left: 2px dashed var(--line); }
.tk-ticket.mine { box-shadow: 0 0 0 2px var(--brand); }
.tk-ticket-qr { width: 96px; height: 96px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.tk-ticket-qr svg { width: 100%; height: 100%; fill: var(--ink); stroke: none; }
.tk-ticket-body { padding-left: 14px; display: grid; gap: 2px; align-content: center; }
.tk-ticket-kind { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.tk-ticket-kind em { font-style: normal; color: var(--mut); margin-left: 6px; }
.tk-ticket-holder { margin: 0; font-size: 17px; font-weight: 800; }
.tk-ticket-state { margin: 0; font-size: 13px; color: var(--mut); }
.tk-ticket-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.tk-wa { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 800; font-size: 13.5px; text-decoration: none; }
.tk-keep, .tk-help { color: var(--mut); font-size: 13.5px; }
@media (max-width: 480px) { .tk-ticket { grid-template-columns: 72px 1fr; } .tk-ticket-qr { width: 72px; height: 72px; } .tk-ticket::after { left: 94px; } }
