@font-face { font-family: Onest; src: url(Onest-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Onest; src: url(Onest-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Onest; src: url(Onest-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
:root { --orange: #DE4627; --noir: #190603; --ecru: #FDFAF3; --jaune: #F7C639; --vert: #199F58; --rose: #F1D3D3; }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { font-family: Onest, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; }

/* Sélecteur de piste (outil de présentation, pas dans la page finale) */

.piste { display: none; min-height: 100vh; min-height: 100svh; }
.piste.on { display: flex; }

/* Emblème animé : les deux bulles arrivent l'une après l'autre, se rejoignent, puis se répondent. */

.fade { animation: fade .8s 1s both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

form { display: flex; gap: 8px; width: 100%; }
input, select, button.cta { font: inherit; font-size: 16px; border-radius: 0; }
input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.legal { font-size: 12px; line-height: 1.5; opacity: .7; }

/* ── A · Affiche (papier découpé, esprit génériques des années 50-60) ── */
#a { position: relative; overflow: hidden; background: var(--orange); color: var(--noir); flex-direction: column; justify-content: space-between; padding: 36px clamp(24px, 5vw, 72px) 28px; }
#a .cut { position: absolute; display: block; overflow: visible; pointer-events: none; }
#a .cut path { filter: url(#rough); }
#a .c1 { width: clamp(240px, 33vw, 560px); top: -14vh; left: -3vw; transform: rotate(-7deg); animation: c1in .9s steps(6) both, talkA 5s 1.6s steps(1) infinite; }
#a .c2 { width: clamp(220px, 30vw, 520px); bottom: 2vh; right: -6vw; transform: rotate(5deg); animation: c2in .9s .45s steps(6) both, talkB 5s 1.6s steps(1) infinite; }
@keyframes c1in { from { transform: translate(-60%, -20%) rotate(-16deg); } }
@keyframes c2in { from { transform: translate(60%, 20%) rotate(14deg); } }
@keyframes talkA { 0%, 30%, 100% { transform: rotate(-7deg); } 10% { transform: rotate(-9deg) translate(-1.5%, -1%); } 20% { transform: rotate(-6deg); } }
@keyframes talkB { 0%, 50%, 80%, 100% { transform: rotate(5deg); } 60% { transform: rotate(7deg) translate(1.5%, 1%); } 70% { transform: rotate(4deg); } }
#a header { position: relative; display: flex; justify-content: flex-end; }
#a header img { height: 20px; display: block; }
#a main { position: relative; align-self: center; display: flex; flex-direction: column; align-items: flex-start; margin-left: clamp(0px, 8vw, 160px); }
#a h1 { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-weight: 600; font-size: clamp(34px, 5.6vw, 88px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
#a h1 span { display: block; padding: .12em .32em .16em; animation: strip .5s steps(4) both; }
#a h1 span:nth-child(1) { background: var(--noir); color: var(--ecru); transform: rotate(-2.5deg); clip-path: polygon(0 6%, 18% 0, 61% 4%, 100% 0, 99% 92%, 70% 100%, 24% 95%, 1% 100%); animation-delay: 1s; }
#a h1 span:nth-child(2) { background: var(--ecru); color: var(--noir); transform: rotate(1.5deg) translateX(.9em); clip-path: polygon(1% 0, 40% 5%, 100% 0, 98% 100%, 55% 94%, 0 100%); animation-delay: 1.2s; }
#a h1 span:nth-child(3) { background: var(--noir); color: var(--ecru); transform: rotate(-1deg) translateX(.3em); clip-path: polygon(0 0, 33% 6%, 74% 0, 100% 5%, 100% 100%, 47% 95%, 2% 100%); animation-delay: 1.4s; }
@keyframes strip { from { opacity: 0; transform: translateX(-30px); } }
/* Billet d'avant-première : le formulaire d'inscription */
#a .ticket { display: flex; margin-top: clamp(28px, 4vh, 44px); background: var(--ecru); color: var(--noir); max-width: 540px; width: 100%; transform: rotate(-1deg);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; animation: fade .6s 1.7s both; }
#a .ticket .stub { flex: 0 0 auto; padding: 16px 18px 16px 24px; border-right: 2px dashed rgba(25,6,3,.35); display: flex; flex-direction: column; justify-content: center; font-size: 11px; line-height: 1.3; text-transform: uppercase; letter-spacing: .06em; }
#a .ticket .stub b { font-size: 22px; letter-spacing: -.01em; font-weight: 600; color: var(--orange); }
#a .ticket .body { flex: 1; padding: 14px 24px 14px 18px; min-width: 0; }
#a .ticket label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
#a form { gap: 8px; }
#a input { flex: 1; min-width: 0; background: none; border: 0; border-bottom: 1.5px solid var(--noir); color: var(--noir); padding: 8px 0; }
#a input::placeholder { color: rgba(25,6,3,.5); }
#a button.cta { background: var(--noir); color: var(--ecru); border: 0; padding: 8px 16px; font-weight: 600; cursor: pointer; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
#a .legal { margin-top: 8px; font-size: 11px; }
#a .ticket .stub b i { display: block; font-style: normal; line-height: 1.05; }
#a .ticket .stub b { margin-top: 4px; }
#a form { flex-wrap: wrap; gap: 6px 14px; }
#a form input { flex: 1 1 100%; }
#a select { flex: 1 1 0; min-width: 0; background-color: transparent; border: 0; border-bottom: 1.5px solid var(--noir); color: var(--noir); padding: 8px 24px 8px 0; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--noir) 50%), linear-gradient(135deg, var(--noir) 50%, transparent 50%); background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; text-overflow: ellipsis; }
#a select:invalid { color: rgba(25,6,3,.55); }
#a select option { color: var(--noir); background: var(--ecru); }
#a form .other { order: 2; flex: 1 1 0; } #a form .other:not([hidden]) ~ .cta { order: 3; }
#a form:has(.other:not([hidden])) select { flex-basis: 100%; }
#a [hidden] { display: none; }
/* Bloc de générique, comme au bas d'une affiche */
#a footer { position: relative; text-align: left; max-width: 58%; padding-bottom: 56px; text-transform: uppercase; color: var(--noir); font-size: 12px; letter-spacing: .08em; line-height: 1.6; animation: fade .6s 2s both; }
#a footer strong { font-weight: 600; letter-spacing: .02em; font-size: 15px; }
#a footer a { color: inherit; text-decoration: none; border-bottom: 1px solid; }

/* ── B · Salle obscure ── */

/* ── C · Éditorial écru ── */

@media (max-width: 760px) {
  #a { gap: 24px; }
  #a .c1 { width: 62vw; top: -5vh; left: -32vw; }
  #a .c2 { width: 42vw; bottom: -2vh; right: -12vw; }
  #a footer { max-width: 60%; padding-bottom: 0; font-size: 10px; letter-spacing: .05em; }
  #a main { margin-left: 0; }
  #a .ticket { flex-direction: column; }
  #a .ticket .stub { border-right: 0; border-bottom: 2px dashed rgba(25,6,3,.35); flex-direction: row; gap: 0; align-items: baseline; justify-content: center; }
  #a .ticket .stub b { margin-left: 10px; }
  #a form { flex-direction: column; }
  #a form { flex-wrap: nowrap; gap: 4px; }
  #a form input, #a form select, #a form .other { flex: none; width: 100%; }
  #a button.cta { margin-top: 8px; padding: 12px 16px; }
  #a .ticket .stub b { margin-top: 0; } #a .ticket .stub b i { display: inline; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

#a .legal a { color: inherit; }
#a .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#a .msg { font-size: 13px; font-weight: 500; margin-top: 8px; color: #B3301A; }
#a .msg:empty { display: none; }
#a .done { font-size: 18px; font-weight: 600; line-height: 1.25; padding: 8px 0; }
