:root {
  --pink: #e0157a;
  --pink-2: #f0388f;
  --pink-soft: #fde4f0;
  --purple: #5b2a86;
  --purple-2: #7b45ad;
  --deep: #2a0f4a;
  --gold: #f2c94c;
  --gold-2: #e2a93b;
  --cream: #fff7fb;
  --ink: #2a0f4a;
  --muted: #7d6a92;
  --line: #eedbe9;
  --ok: #18a058;
  --warn: #e69a12;
  --bad: #d63031;
  --radius: 22px;
  --shadow: 0 18px 50px -18px rgba(91, 42, 134, .45);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--pink); }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

#snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
main, header, footer, section { position: relative; z-index: 1; }

/* ---------- Boutons & champs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px; padding: .85em 1.5em; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--pink-2), var(--pink)); color: #fff; box-shadow: 0 10px 24px -10px var(--pink); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px var(--pink); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--deep); }
.btn-ghost { background: #fff; color: var(--purple); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--purple-2); }
.btn-wa { background: #25d366; color: #fff; }
.btn-sm { padding: .45em 1em; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { display: grid; gap: 6px; }
.field label, .label { font-size: .82rem; font-weight: 600; color: var(--purple); letter-spacing: .02em; }
.input, select.input, textarea.input { width: 100%; padding: .8em 1em; border-radius: 14px; border: 2px solid var(--line); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--pink-2); box-shadow: 0 0 0 4px rgba(240, 56, 143, .15); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.chip { display: inline-flex; align-items: center; gap: .45em; padding: .45em .95em; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-weight: 500; font-size: .92rem; backdrop-filter: blur(6px); }
.chip .tick { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); font-size: .7rem; }
.badge { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.b-paid { background: #dcf5e7; color: #0f7a40; }
.b-pending { background: #fff1d6; color: #9a6200; }
.b-cancelled { background: #fde1e1; color: #a61b1b; }
.b-in { background: #e7dcf7; color: var(--purple); }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140px); background: var(--deep); color: #fff; padding: .9em 1.4em; border-radius: 16px; z-index: 100; transition: transform .35s cubic-bezier(.2,.9,.3,1.3); max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--bad); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 600px at 80% -10%, #ff6fb1 0%, transparent 60%), linear-gradient(160deg, var(--pink-2) 0%, var(--pink) 45%, var(--purple) 100%); color: #fff; padding: 28px 0 120px; overflow: hidden; }
.hero::after { content: ''; position: absolute; left: -5%; right: -5%; bottom: -60px; height: 120px; background: var(--cream); border-radius: 50% 50% 0 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo-pill { background: #fff; border-radius: 18px; padding: 8px 14px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }
.logo-pill img { height: 54px; width: auto; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; margin-top: 40px; }
.hero h1 { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); line-height: .95; margin: 0; text-shadow: 0 6px 30px rgba(42, 15, 74, .35); }
.hero h1 small { display: block; font-size: .5em; font-weight: 700; margin-top: .15em; }
.hero .tagline { font-size: 1.15rem; opacity: .95; margin: 18px 0 22px; max-width: 34ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; max-width: 560px; }
.fact { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 10px 14px; }
.fact span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.fact b { font-size: 1.05rem; }
.countdown { display: flex; gap: 10px; justify-content: center; }
.countdown div { background: rgba(255,255,255,.95); color: var(--deep); border-radius: 18px; padding: 14px 10px; min-width: 76px; text-align: center; box-shadow: 0 12px 30px -14px rgba(0,0,0,.4); }
.countdown b { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--pink); }
.countdown small { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.hero-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 30px; padding: 26px; backdrop-filter: blur(10px); text-align: center; }
.hero-card h3 { margin: 0 0 14px; font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.hero-card p { margin: 16px 0 0; font-size: .92rem; opacity: .9; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .countdown div { min-width: 64px; padding: 10px 6px; } .countdown b { font-size: 1.7rem; } .facts { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section h2 { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 8px; color: var(--purple); }
.section .lead { color: var(--muted); margin: 0 0 30px; }

.passes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .passes { grid-template-columns: 1fr; } }
.pass { position: relative; padding: 28px 24px 40px; border-radius: 26px; color: #fff; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow); border: 3px solid transparent; }
.pass:hover { transform: translateY(-4px); }
.pass.standard { background: linear-gradient(150deg, #7b45ad, #5b2a86); }
.pass.premium { background: linear-gradient(150deg, #f0388f, #c80f6c); }
.pass.vip { background: linear-gradient(150deg, #4a2178, #2a0f4a); }
.pass.vip::before { content: '★ VIP'; position: absolute; top: 18px; right: -34px; transform: rotate(35deg); background: var(--gold); color: var(--deep); font-weight: 800; font-size: .75rem; padding: 4px 40px; }
.pass h3 { margin: 0; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.pass .price { font-family: var(--serif); font-size: 3rem; font-weight: 800; line-height: 1.1; margin: 6px 0; }
.pass .price small { font-size: 1.2rem; }
.pass .who { font-size: 1.6rem; margin: 6px 0 4px; letter-spacing: 2px; }
.pass .compo { margin: 0 0 12px; opacity: .92; }
.pass .left { font-size: .85rem; background: rgba(255,255,255,.18); display: inline-block; padding: .25em .8em; border-radius: 999px; }
.pass.soldout { filter: grayscale(.8); opacity: .6; cursor: not-allowed; }

/* ---------- Réservation ---------- */
.booking { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 980px) { .booking { grid-template-columns: 1fr; } .preview-col { position: static !important; } }
.wizard { padding: 28px; }
@media (max-width: 560px) { .wizard { padding: 20px 16px; } }
.steps { display: flex; gap: 8px; margin-bottom: 24px; }
.steps .s { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.steps .s i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink); font-style: normal; flex: none; }
.steps .s.on { color: var(--purple); }
.steps .s.on i { background: var(--pink); color: #fff; }
.steps .s.done i { background: var(--ok); color: #fff; }
.steps .bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); align-self: center; }
@media (max-width: 560px) { .steps .s span { display: none; } }
.step { display: grid; gap: 16px; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.seg { display: inline-flex; background: var(--pink-soft); padding: 4px; border-radius: 999px; width: max-content; }
.seg button { border: 0; background: transparent; padding: .5em 1.2em; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--purple); }
.seg button.on { background: #fff; box-shadow: 0 4px 12px -4px rgba(91,42,134,.4); color: var(--pink); }
.kids { display: grid; gap: 10px; }
.kid { display: grid; grid-template-columns: 36px 1fr 100px 40px; gap: 8px; align-items: center; animation: fadeUp .25s ease; }
.kid .n { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-weight: 700; }
.kid .rm { border: 0; background: #fde1e1; color: var(--bad); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; font-size: 1.1rem; }
.smart { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #fff6da, #ffeef7); border: 1px solid #f7deb0; font-size: .92rem; }
.smart .ic { font-size: 1.4rem; line-height: 1.2; }
.mini-passes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-pass { border: 2px solid var(--line); border-radius: 16px; padding: 14px 8px 10px; cursor: pointer; text-align: center; background: #fff; transition: .2s; position: relative; }
.mini-pass b { display: block; color: var(--purple); }
.mini-pass span { font-size: .8rem; color: var(--muted); display: block; }
.mini-pass.on { border-color: var(--pink); background: var(--pink-soft); }
.mini-pass.disabled { opacity: .4; pointer-events: none; }
.mini-pass .reco { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--gold); font-size: .65rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }

.drop { border: 3px dashed #f2b5d4; border-radius: 22px; padding: 28px; text-align: center; background: #fff9fc; cursor: pointer; transition: .2s; }
.drop.over { background: var(--pink-soft); border-color: var(--pink); }
.drop .big { font-size: 2.6rem; }
.drop p { margin: 6px 0; }
.cropper { position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; background: var(--deep); touch-action: none; cursor: grab; }
.cropper:active { cursor: grabbing; }
.cropper img { position: absolute; top: 0; left: 0; max-width: none; user-select: none; -webkit-user-drag: none; transform-origin: 0 0; }
.cropper .grid { position: absolute; inset: 0; pointer-events: none; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 33.33% 33.33%; background-position: -1px -1px; }
.crop-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.crop-tools input[type=range] { flex: 1; accent-color: var(--pink); min-width: 120px; }
.quality { display: grid; gap: 4px; font-size: .88rem; }

.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; background: #fff; }
.pay-method.on { border-color: var(--pink); background: var(--pink-soft); }
.pay-method .logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .72rem; flex: none; }
.pay-method .num { margin-left: auto; font-weight: 700; color: var(--purple); font-size: .9rem; text-align: right; }
.summary { border-radius: 18px; background: var(--deep); color: #fff; padding: 18px 20px; display: grid; gap: 6px; }
.summary .row { display: flex; justify-content: space-between; gap: 10px; }
.summary .total { font-family: var(--serif); font-size: 1.8rem; color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--pink); width: 18px; height: 18px; flex: none; }

/* ---------- Ticket (aperçu & page) ---------- */
.preview-col { position: sticky; top: 20px; }
.preview-col .hint { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.ticket { position: relative; width: 100%; max-width: 440px; margin-inline: auto; border-radius: 30px; overflow: hidden; background: linear-gradient(160deg, var(--pink-2) 0%, var(--pink) 50%, var(--purple) 100%); color: #fff; box-shadow: 0 30px 60px -25px rgba(42, 15, 74, .7); }
.ticket .t-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 8px; }
.ticket .t-head .lg { background: #fff; border-radius: 14px; padding: 5px 8px; flex: none; }
.ticket .t-head .lg img { height: 40px; width: auto; }
.ticket .t-title { font-family: var(--serif); font-style: italic; font-weight: 800; line-height: 1; font-size: 2.1rem; }
.ticket .t-title small { display: block; font-size: .55em; }
.ticket .t-photo { position: relative; margin: 10px 14px 0; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 2; background: rgba(255,255,255,.2); border: 4px solid rgba(255,255,255,.9); }
.ticket .t-photo img { width: 100%; height: 100%; object-fit: cover; }
.ticket .t-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: .9rem; color: #fff; background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 14px, rgba(255,255,255,.16) 14px 28px); }
.ticket .t-photo .fam { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(0,0,0,.6)); font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.5rem; }
.ticket .t-pass { position: absolute; top: 10px; right: 10px; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .75rem; letter-spacing: .1em; border: 2px solid #fff; background: var(--purple); }
.ticket .t-pass.premium { background: var(--pink); }
.ticket .t-pass.vip { background: var(--deep); color: var(--gold); border-color: var(--gold); }
.ticket .t-stub { position: relative; margin-top: 18px; background: #fff; color: var(--ink); padding: 22px 20px 16px; display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.ticket .t-stub::before { content: ''; position: absolute; top: 0; left: 22px; right: 22px; border-top: 3px dashed var(--pink); }
.ticket .t-stub .hole { position: absolute; top: -17px; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); }
.ticket .t-stub .hole.l { left: -17px; } .ticket .t-stub .hole.r { right: -17px; }
.ticket .kv span { display: block; font-size: .62rem; letter-spacing: .14em; color: #9a6fb8; text-transform: uppercase; }
.ticket .kv b { font-size: .95rem; }
.ticket .kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-content: start; }
.ticket .kvs .wide { grid-column: 1 / -1; }
.ticket .qr { width: 132px; text-align: center; }
.ticket .qr img { width: 132px; height: 132px; border-radius: 10px; border: 3px solid var(--pink-soft); }
.ticket .qr code { display: block; font-weight: 700; font-size: .78rem; margin-top: 4px; }
.ticket .stamp { width: 132px; height: 132px; border: 4px solid var(--pink); color: var(--pink); border-radius: 14px; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: .8rem; transform: rotate(-8deg); padding: 6px; line-height: 1.25; }
.ticket .t-foot { background: var(--purple); color: #fff; text-align: center; padding: 12px; font-family: var(--serif); font-style: italic; }

.lookup { padding: 26px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 700px) { .lookup { grid-template-columns: 1fr; } }

footer { background: var(--deep); color: #e7d8f5; padding: 40px 0; margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
footer a { color: var(--gold); }

/* ---------- Page ticket ---------- */
.page-ticket { min-height: 100vh; background: linear-gradient(180deg, #fde4f0 0%, var(--cream) 50%); padding: 24px 0 60px; }
.page-ticket .ticket .t-stub .hole { background: #fdeaf3; }
.ticket-layout { display: grid; grid-template-columns: 440px 1fr; gap: 32px; align-items: start; margin-top: 24px; }
@media (max-width: 900px) { .ticket-layout { grid-template-columns: 1fr; } }
.status-banner { padding: 18px 20px; border-radius: 20px; display: flex; gap: 14px; align-items: center; }
.status-banner .ic { font-size: 2rem; }
.status-banner p { margin: 2px 0 0; font-size: .92rem; }
.status-banner.paid { background: #dcf5e7; color: #0d5c31; }
.status-banner.pending { background: #fff1d6; color: #7a4d00; }
.status-banner.cancelled { background: #fde1e1; color: #8a1616; }
.panel { padding: 24px; display: grid; gap: 14px; }
.panel h3 { margin: 0; color: var(--purple); }
.side { display: grid; gap: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.timeline li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.timeline li i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-style: normal; font-size: .8rem; flex: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done i { background: var(--ok); color: #fff; }
.timeline li.now { color: var(--ink); font-weight: 600; }
.timeline li.now i { background: var(--warn); color: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(230,154,18,.5); } 100% { box-shadow: 0 0 0 12px rgba(230,154,18,0); } }

@media print {
  body * { visibility: hidden; }
  #ticket, #ticket * { visibility: visible; }
  #ticket { position: absolute; left: 0; top: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #snow { display: none; }
}
