/* v2 — L'Affiche : a wall of paper posters you peel off */
body { background-attachment: fixed; }
body.is-loading { overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 3px solid var(--cream); background: var(--cream); color: var(--terra-deep); font: 700 14px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-back); }
.btn:hover { background: transparent; color: var(--cream); }
.btn:active { transform: scale(0.96); }

.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--terra); }
.loader__logo { width: min(320px, 66vw); color: var(--cream); }
.loader__logo .lg-s { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; animation-delay: calc(var(--i) * 0.1s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader p { font-size: 13px; margin: 0; }

.bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gut); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar__logo { width: 112px; color: var(--cream); }
.bar__ticket { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border: 3px solid var(--cream); background: var(--terra); font-size: 12px; transition: transform 0.4s var(--ease-back); }
.bar__ticket:hover { transform: rotate(-3deg) scale(1.04); }
.led { display: grid; place-items: center; min-width: 54px; height: 36px; background: #1b0b07; color: #ff5a3c; font: 700 22px/1 var(--f-mono); text-shadow: 0 0 8px rgba(255, 90, 60, 0.9); }
.bar__ticket.is-bump { animation: tick 0.6s var(--ease-back); }
@keyframes tick { 30% { transform: rotate(6deg) scale(1.12); } 60% { transform: rotate(-4deg); } }

/* wall */
.wall__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.info { position: absolute; z-index: 2; right: var(--gut); top: 50%; transform: translateY(-50%); width: min(34vw, 470px); display: grid; gap: 14px; }
.info__k { margin: 0; font-size: 13px; }
.info__t { margin: 0; font: 700 clamp(52px, 6.2vw, 100px)/1.04 var(--f-cond); text-transform: uppercase; }
.info__tag { margin: 0; font-size: 22px; font-style: italic; opacity: 0.92; }
.info__d { margin: 0; font-size: 20px; line-height: 1.3; }
.info__fmts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: grid; gap: 3px; padding: 10px 12px; border: 2.5px solid rgba(255, 246, 238, 0.55); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip b { font: 700 18px/1 var(--f-cond); text-transform: uppercase; }
.chip em { font: 700 12px/1 var(--f-mono); font-style: normal; }
.chip input:checked + span { background: var(--cream); color: var(--terra-deep); border-color: var(--cream); }
.chip input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 3px; }
.info__row { display: flex; gap: 10px; margin-top: 4px; }
.info__row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 3px solid var(--cream); }
.qty button { width: 42px; min-height: 48px; font: 700 18px/1 var(--f-mono); }
.qty button:hover { background: var(--cream); color: var(--terra-deep); }
.qty output { min-width: 26px; text-align: center; font: 700 16px/1 var(--f-mono); }
.info__steps { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 10px; font-size: 21px; }
.info__steps b { font-family: var(--f-mono); font-size: 13px; margin-right: 10px; }

.dots { position: absolute; z-index: 2; left: var(--gut); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.dots button { width: 12px; height: 12px; border: 2px solid var(--cream); transition: background 0.3s, transform 0.3s var(--ease-back); }
.dots button[aria-current='true'] { background: var(--cream); transform: scale(1.3); }
.hint { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 12px; display: flex; gap: 10px; align-items: center; margin: 0; transition: opacity 0.4s; }
.hint i { width: 10px; height: 10px; background: var(--cream); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.stamp { position: fixed; z-index: 30; left: 0; top: 0; pointer-events: none; opacity: 0; }
.stamp span { display: block; white-space: nowrap; padding: 14px 26px; border: 6px solid var(--cream); color: var(--cream); font: 700 clamp(44px, 5.5vw, 86px)/1 var(--f-cond); text-transform: uppercase; background: rgba(168, 68, 47, 0.4); box-shadow: inset 0 0 0 4px var(--terra-deep), 0 0 0 4px var(--terra-deep); }

/* infos */
.infos { min-height: 70vh; padding: 120px var(--gut) 60px; display: grid; align-content: center; justify-items: start; gap: 36px; }
.infos__big { font: 700 clamp(48px, 8vw, 140px)/0.9 var(--f-cond); text-transform: uppercase; }
.infos__hours { display: grid; grid-template-columns: auto 1fr; gap: 10px 40px; margin: 0; border-top: 3px solid var(--cream); padding-top: 20px; }
.infos__hours dt { font: 700 13px/1.8 var(--f-mono); text-transform: uppercase; }
.infos__hours dd { margin: 0; font-size: 24px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 20px var(--gut) 28px; font-size: 11px; }

/* receipt drawer */
dialog { border: 0; padding: 0; background: transparent; max-height: none; max-width: none; }
dialog::backdrop { background: rgba(60, 15, 8, 0.5); }
.drawer { margin: 0 var(--gut) 0 auto; width: min(420px, calc(100vw - 24px)); height: 100%; overflow: visible; }
.receipt { position: relative; max-height: calc(100vh - 30px); overflow-y: auto; overscroll-behavior: contain; background: #fbf3e6; color: var(--terra-deep); padding: 30px 26px 34px; box-shadow: 0 30px 60px -20px rgba(40, 10, 5, 0.6); font-size: 18px; }
.drawer[open] .receipt { animation: print 0.9s var(--ease); }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-30px); } to { clip-path: inset(0 0 0 0); } }
.receipt .x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; font-size: 26px; line-height: 1; color: var(--terra-deep); border: 2px solid currentColor; }
.receipt__logo { width: 150px; margin: 0 auto; color: var(--terra-deep); }
.receipt__base { text-align: center; font-size: 11px; margin: 6px 0 0; }
.receipt__meta { text-align: center; font-size: 11px; margin: 10px 0 16px; opacity: 0.75; border-bottom: 2px dashed currentColor; padding-bottom: 14px; }
.rlines { list-style: none; margin: 0; padding: 0; }
.rline { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px dotted rgba(168, 68, 47, 0.5); }
.rline__q, .rline__p { font: 700 14px/1 var(--f-mono); }
.rline__n { font: 700 22px/1 var(--f-cond); text-transform: uppercase; }
.rline__m { grid-column: 2 / -1; display: flex; justify-content: space-between; font-size: 14px; }
.rline__m button { font: 700 14px/1 var(--f-mono); width: 26px; height: 26px; border: 1.5px solid currentColor; }
.rline__m button:hover { background: var(--terra-deep); color: #fbf3e6; }
.rempty { text-align: center; padding: 24px 0; font-size: 22px; margin: 0; }
.rtotal { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; margin: 6px 0 16px; border-top: 3px double currentColor; border-bottom: 2px dashed currentColor; }
.rtotal b { font: 700 38px/1 var(--f-cond); }
.rform { display: grid; gap: 12px; }
.rseg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid currentColor; }
.rseg label { position: relative; }
.rseg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rseg span { display: block; text-align: center; padding: 10px 4px; font-size: 11px; }
.rseg input:checked + span { background: var(--terra-deep); color: #fbf3e6; }
.rf { display: grid; gap: 4px; }
.rf > span { font-size: 10px; }
.rf input, .rf select { font: 400 19px/1 var(--f-cond); color: var(--terra-deep); background: transparent; border: 0; border-bottom: 2px solid currentColor; padding: 6px 0; border-radius: 0; }
.rf input:focus, .rf select:focus { outline: none; background: rgba(196, 87, 63, 0.08); }
.rf em { font: 700 10px/1.2 var(--f-mono); font-style: normal; color: #b0251a; min-height: 12px; }
.rf.is-bad input { animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.rbtn { width: 100%; min-height: 54px; margin-top: 6px; background: var(--terra-deep); color: #fbf3e6; font-size: 14px; letter-spacing: 0.1em; }
.rbtn:hover { background: var(--ink); }
.rdone { text-align: center; }
.rdone__n { font: 700 150px/0.9 var(--f-mono); letter-spacing: -0.04em; margin: 4px 0 10px; }
.rdone__msg, .rdone__hint { font-size: 18px; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 90; background: var(--cream); color: var(--terra-deep); font-size: 12px; letter-spacing: 0.08em; padding: 12px 16px; transform: translate(-50%, calc(100% + 40px)); transition: transform 0.6s var(--ease-back); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); }

/* no WebGL: plain posters */
.no-gl .wall__pin { height: auto; overflow: visible; padding: 100px var(--gut) 40px; }
.no-gl #gl, .no-gl .dots, .no-gl .hint { display: none; }
.no-gl .info { position: static; transform: none; width: auto; }

@media (max-width: 760px) {
  .info { left: var(--gut); right: var(--gut); top: auto; bottom: 18px; transform: none; width: auto; gap: 8px; }
  .info__t { font-size: 44px; }
  .info__tag { font-size: 17px; }
  .info__d { display: none; }
  .chip span { padding: 8px 10px; }
  .chip b { font-size: 15px; }
  .info__row .btn { padding: 0 14px; font-size: 12px; white-space: nowrap; }
  .info__steps { font-size: 17px; }
  .dots { left: auto; right: 8px; top: 30%; gap: 7px; }
  .dots button { width: 9px; height: 9px; }
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
