/* Billetterie du Noël des Panoramiques
   Charte : bleu nuit #0c1222, crème #F4EFE4, orange #EC6640 (seul accent), or #F1D49B (détails), Archivo.
   Rayons : cartes 20px, champs 12px, boutons et pastilles en pilule. */

@font-face { font-family: 'Archivo'; src: url('fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --nuit: #0c1222; --nuit-2: #16203b; --creme: #f4efe4; --creme-2: #ece5d5; --orange: #ec6640; --orange-fonce: #d4542f; --or: #f1d49b;
  --bg: var(--creme); --surface: #fffdf8; --text: #0c1222; --muted: #545a70; --line: #e2d9c6; --field: #ffffff;
  --ok: #1f7a4d; --ok-bg: #e3f3ea; --warn: #8a5a00; --warn-bg: #fff1d6; --err: #b3261e; --err-bg: #fde8e6;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --r-card: 20px; --r-field: 12px;
  --shadow: 0 1px 0 rgba(12,18,34,.04), 0 12px 32px -16px rgba(12,18,34,.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1d; --surface: #121a30; --text: #f4efe4; --muted: #aab0c4; --line: #263152; --field: #0e1527;
    --ok-bg: #12382a; --ok: #7fd8a8; --warn-bg: #3a2c0c; --warn: #f1d49b; --err-bg: #3d1614; --err: #ff9c92;
    --shadow: 0 1px 0 rgba(0,0,0,.2), 0 12px 32px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Archivo', system-ui, sans-serif; font-size: 16px; line-height: 1.5; font-stretch: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a, [role="button"], label { touch-action: manipulation; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- En-tête ---------- */
.hero { position: relative; background: var(--nuit); color: var(--creme); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,18,34,.15) 0%, rgba(12,18,34,.55) 55%, rgba(12,18,34,.96) 100%); }
.hero__in { position: relative; z-index: 1; padding-top: 28px; padding-bottom: 32px; display: grid; gap: 18px; }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.hero__top a { text-decoration: none; opacity: .85; }
.hero__logo { width: min(330px, 78vw); height: auto; margin-top: 56px; }
.hero__lead { margin: 0; max-width: 34ch; font-size: 18px; line-height: 1.45; color: #eae4d6; }
.hero__lead b { color: var(--or); font-weight: 600; }
@media (min-width: 900px) { .hero__in { padding-top: 36px; padding-bottom: 44px; } .hero__logo { margin-top: 96px; width: 400px; } .hero__lead { font-size: 20px; } }

/* ---------- Mise en page ---------- */
.layout { display: grid; gap: 24px; padding: 24px 0 140px; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; padding-bottom: 64px; } }

.step { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 22px 18px; }
@media (min-width: 640px) { .step { padding: 28px; } }
.step + .step { margin-top: 16px; }
.step__h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; font-stretch: 112%; }
.step__n { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--nuit); color: var(--creme); font-size: 14px; font-weight: 700; transform: translateY(-2px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step__n { background: var(--orange); color: #fff; } }
.step__sub { margin: 0 0 18px 38px; color: var(--muted); font-size: 15px; }

/* ---------- Jours ---------- */
.month { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.month:first-of-type { margin-top: 0; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.day { position: relative; display: grid; justify-items: center; gap: 0; padding: 10px 4px 9px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--field); cursor: pointer; text-align: center; user-select: none; -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease; }
.day:active { transform: scale(0.96); }
.day__w { font-size: 12px; color: var(--muted); text-transform: lowercase; }
.day__d { font-size: 22px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.day__s { font-size: 11px; color: var(--muted); min-height: 1em; }
.day__s.soir { color: var(--orange-fonce); font-weight: 600; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day:has(input:checked) { border-color: var(--nuit); background: var(--nuit); color: var(--creme); }
.day:has(input:checked) .day__w, .day:has(input:checked) .day__s { color: var(--or); }
.day:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.day.is-off { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.day__star { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 999px; background: var(--orange); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .day:has(input:checked) { background: var(--orange); border-color: var(--orange); color: #fff; } :root:not([data-theme="light"]) .day:has(input:checked) .day__w, :root:not([data-theme="light"]) .day:has(input:checked) .day__s { color: #fff; } }
@media (hover: hover) and (pointer: fine) { .day:not(.is-off):hover { border-color: var(--nuit); } }

.dayinfo { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--creme); display: grid; gap: 6px; font-size: 14px; color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dayinfo { background: var(--nuit-2); } }
.dayinfo[hidden] { display: none; }
.dayinfo__t { font-weight: 700; font-size: 15px; }
.dayinfo__row { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); }
.dayinfo__row b { color: var(--text); font-weight: 600; }
.dayinfo__ev { color: var(--orange-fonce); font-weight: 600; }

/* ---------- Billets ---------- */
.group + .group { margin-top: 22px; }
.group__t { margin: 0; font-size: 16px; font-weight: 700; }
.group__i { margin: 2px 0 8px; font-size: 14px; color: var(--muted); }
.tk { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tk__n { font-weight: 600; }
.tk__d { font-size: 13px; color: var(--muted); line-height: 1.4; }
.tk__p { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 4px; }
.tk__r { display: flex; align-items: center; gap: 10px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--field); }
.stepper button { width: 40px; height: 40px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-size: 22px; line-height: 1; display: grid; place-items: center; user-select: none; -webkit-user-select: none; transition: transform 120ms var(--ease-out), background-color 150ms ease; }
.stepper button:active { transform: scale(0.9); background: var(--creme-2); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tk.has-q .stepper { border-color: var(--nuit); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tk.has-q .stepper { border-color: var(--orange); } }

details.more { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
details.more summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform 200ms var(--ease-out); }
details.more[open] summary::after { transform: rotate(45deg); }
details.more .group { margin-top: 10px; }

/* ---------- Formulaire ---------- */
.fields { display: grid; gap: 14px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.f { display: grid; gap: 6px; }
.f label { font-size: 14px; font-weight: 600; }
.f label small { font-weight: 400; color: var(--muted); }
.f input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--field); border: 1.5px solid var(--line); border-radius: var(--r-field); padding: 12px 14px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.f input:focus { outline: none; border-color: var(--nuit); box-shadow: 0 0 0 3px rgba(236,102,64,.25); }
.f.is-err input { border-color: var(--err); }
.f .err, .err-line { color: var(--err); font-size: 13px; min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Récapitulatif ---------- */
.summary { background: var(--nuit); color: var(--creme); border-radius: var(--r-card); padding: 22px 20px; box-shadow: var(--shadow); }
@media (min-width: 960px) { .summary { position: sticky; top: 20px; } }
.summary__t { margin: 0 0 2px; font-size: 13px; color: var(--or); }
.summary__d { margin: 0 0 14px; font-size: 18px; font-weight: 700; min-height: 1.4em; }
.summary__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.summary__l li { display: flex; justify-content: space-between; gap: 12px; }
.summary__l li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__empty { color: #aab0c4; font-size: 14px; margin: 0; }
.summary__tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(244,239,228,.18); }
.summary__tot strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.summary__note { margin: 12px 0 0; font-size: 12px; color: #aab0c4; line-height: 1.45; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, opacity 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn--dark { background: var(--nuit); color: var(--creme); }
@media (hover: hover) and (pointer: fine) { .btn:not([disabled]):hover { background: var(--orange-fonce); } .btn--ghost:not([disabled]):hover { background: var(--creme-2); } .btn--dark:not([disabled]):hover { background: var(--nuit-2); } }
.btn .spin { width: 18px; height: 18px; border-radius: 999px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.summary .btn { margin-top: 18px; }

/* Barre fixe en bas sur mobile */
.paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--nuit); color: var(--creme); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; box-shadow: 0 -10px 30px -12px rgba(12,18,34,.5);
  transform: translateY(0); transition: transform 260ms var(--ease-out); }
.paybar__l { font-size: 13px; color: #c9cede; line-height: 1.25; overflow: hidden; }
.paybar__l strong { display: block; color: var(--creme); font-size: 20px; font-variant-numeric: tabular-nums; }
.paybar .btn { width: auto; min-height: 50px; padding: 0 22px; }
@media (min-width: 960px) { .paybar { display: none; } }

/* ---------- Infos pratiques ---------- */
.infos { padding: 8px 0 120px; }
@media (min-width: 960px) { .infos { padding-bottom: 72px; } }
.infos h2 { font-size: 22px; margin: 0 0 14px; font-stretch: 112%; }
.infos__grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .infos__grid { grid-template-columns: 1.3fr 1fr; } }
.info { background: var(--surface); border-radius: var(--r-card); padding: 18px 20px; font-size: 15px; color: var(--muted); }
.info h3 { margin: 0 0 6px; color: var(--text); font-size: 16px; }
.info p { margin: 0 0 8px; } .info p:last-child { margin: 0; }
.info--img { padding: 0; overflow: hidden; min-height: 220px; }
.info--img img { width: 100%; height: 100%; object-fit: cover; }
.foot { padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }

/* ---------- Bandeaux ---------- */
.banner { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; font-size: 14px; }
.banner--warn { background: var(--warn-bg); color: var(--warn); }
.banner--err { background: var(--err-bg); color: var(--err); }
.banner--demo { background: var(--or); color: var(--nuit); font-weight: 600; text-align: center; border-radius: 0; margin: 0; }

/* ---------- Page billet ---------- */
.ticket-page { min-height: 100svh; background: var(--nuit); color: var(--creme); padding: 20px 16px 40px; }
.ticket { max-width: 440px; margin: 0 auto; }
.ticket__logo { width: 210px; margin: 6px auto 20px; }
.ticket__card { background: #fffdf8; color: var(--nuit); border-radius: 24px; overflow: hidden; }
.ticket__head { padding: 20px 22px 6px; text-align: center; }
.ticket__day { margin: 0; font-size: 22px; font-weight: 700; font-stretch: 112%; }
.ticket__who { margin: 2px 0 0; color: #545a70; font-size: 15px; }
.ticket__qr { width: min(280px, 72vw); margin: 14px auto 4px; }
.ticket__ref { text-align: center; font-size: 14px; color: #545a70; margin: 0 0 16px; letter-spacing: .06em; }
.ticket__ref b { color: var(--nuit); }
.ticket__cut { position: relative; height: 0; border-top: 2px dashed #e2d9c6; margin: 0 18px; }
.ticket__cut::before, .ticket__cut::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 999px; background: var(--nuit); }
.ticket__cut::before { left: -30px; } .ticket__cut::after { right: -30px; }
.ticket__body { padding: 18px 22px 22px; font-size: 15px; }
.ticket__body h3 { margin: 0 0 8px; font-size: 13px; color: #545a70; font-weight: 600; }
.give { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.give li { display: flex; gap: 12px; align-items: center; }
.give b { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--creme); font-variant-numeric: tabular-nums; }
.ticket__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: #545a70; }
.ticket__lines li { display: flex; justify-content: space-between; gap: 10px; }
.ticket__hours { margin-top: 16px; padding: 12px 14px; background: var(--creme); border-radius: 14px; font-size: 14px; color: #3c4258; }
.ticket__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ticket__actions .btn { min-height: 48px; font-size: 15px; }
.ticket__actions .btn--ghost { color: var(--creme); border-color: rgba(244,239,228,.3); }
.ticket__note { margin: 18px 4px 0; font-size: 13px; color: #aab0c4; text-align: center; line-height: 1.5; }
.ticket__ok { margin: 0 auto 16px; max-width: 440px; padding: 12px 16px; border-radius: 14px; background: rgba(241,212,155,.14); color: var(--or); font-size: 15px; text-align: center; }
@media print { .ticket-page { background: #fff; color: #000; } .ticket__actions, .ticket__note, .ticket__ok { display: none; } .ticket__logo { filter: invert(1); } .ticket__cut::before, .ticket__cut::after { background: #fff; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; } .btn .spin { animation-duration: 1.2s !important; } }

/* ---------- Page de remerciement (26/11/2026) ---------- */
.merci { text-align: center; margin: 0 0 22px; }
.merci__ic { width: 52px; height: 52px; margin: 0 auto 10px; display: block; fill: none; stroke: var(--or); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.merci__t { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 700; font-stretch: 112%; color: var(--creme); }
.merci__p { margin: 10px auto 18px; max-width: 34ch; font-size: 16px; line-height: 1.45; color: #d9dcea; }
.merci__p b { color: var(--or); font-weight: 600; }
.merci__cap { margin: 18px 0 8px; font-size: 13px; color: #aab0c4; }
.merci__ag { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.merci__ag .btn { min-height: 48px; font-size: 15px; padding: 0 12px; color: var(--creme); border-color: rgba(244,239,228,.3); }
.ticket__actions--3 { grid-template-columns: 1fr 1fr; }
.ticket__actions--3 .btn:first-child { grid-column: 1 / -1; }
@media (hover: hover) and (pointer: fine) { .merci__ag .btn--ghost:not([disabled]):hover, .ticket__actions .btn--ghost:not([disabled]):hover { background: rgba(244,239,228,.1); } }
@media print { .merci { display: none; } }
