/* ═══════════════════════════════════════════════════════════
   THE JOSH GATE — Paris · feuille de style
   Noir & blanc, lumière laser, typographie géométrique.
   ═══════════════════════════════════════════════════════════ */

:root {
  --black: #000;
  --ink: #050505;
  --white: #f6f6f6;
  --mute: rgba(246, 246, 246, .55);
  --line: rgba(246, 246, 246, .16);
  --font: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-door: cubic-bezier(.77, 0, .18, 1);
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--black); color: var(--white); }
body {
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}
body:not(.is-open) { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--white); color: var(--black); }

/* ── Fond : lasers + grain ─────────────────────────────── */
.lasers {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 2.4s ease;
}
body.is-open .lasers { opacity: 1; }
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 4%); } 100% { transform: translate(0, 0); }
}

/* ── Curseur lumineux (desktop) ───────────────────────── */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--white); mix-blend-mode: difference;
  transform: translate(-100px, -100px);
  transition: width .3s, height .3s, margin .3s;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body.is-hovering .cursor { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}

/* ── LA PORTE ──────────────────────────────────────────── */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  overflow: hidden;
}
.gate__panel {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: var(--black);
  transition: transform 1.3s var(--ease-door);
}
.gate__panel--l { left: 0; box-shadow: inset -1px 0 0 rgba(255,255,255,.06); }
.gate__panel--r { right: 0; box-shadow: inset 1px 0 0 rgba(255,255,255,.06); }
.gate__beam {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: linear-gradient(to bottom, transparent, #fff 20%, #fff 80%, transparent);
  box-shadow: 0 0 18px 4px rgba(255,255,255,.55), 0 0 60px 10px rgba(255,255,255,.25);
  transform: scaleY(0); transform-origin: 50% 50%;
  animation: beam 1.4s var(--ease-out) .15s forwards;
  transition: opacity .6s;
}
@keyframes beam { to { transform: scaleY(1); } }
.gate__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 3vh, 28px);
  text-align: center; padding: 0 var(--gutter);
  opacity: 0; transform: translateY(14px);
  animation: gatein 1.2s var(--ease-out) .7s forwards;
}
@keyframes gatein { to { opacity: 1; transform: none; } }
.gate__eyebrow, .gate__list {
  margin: 0; text-transform: uppercase; letter-spacing: .5em; font-size: .72rem; font-weight: 400;
  color: var(--mute);
}
.gate__logo { width: min(78vw, 560px); filter: drop-shadow(0 0 24px rgba(255,255,255,.28)); }
.gate__note { margin: -6px 0 0; text-transform: uppercase; letter-spacing: .4em; font-size: .58rem; color: var(--mute); opacity: .7; }
.gate__enter { margin-top: 6px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.0); }
  50% { box-shadow: 0 0 0 10px rgba(255,255,255,.0), 0 0 30px rgba(255,255,255,.35); }
}

.gate.is-open .gate__panel--l { transform: translateX(-102%); }
.gate.is-open .gate__panel--r { transform: translateX(102%); }
.gate.is-open .gate__beam { opacity: 0; transition-delay: .3s; }
.gate.is-open .gate__content { animation: gateout .8s var(--ease-out) forwards; }
@keyframes gateout { to { opacity: 0; transform: scale(1.12); } }
.gate.is-gone { display: none; }

/* ── Boutons ───────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  text-transform: uppercase; letter-spacing: .32em; font-size: .74rem; font-weight: 500;
  color: var(--black); background: var(--white); border: 1px solid var(--white);
  transition: background .35s, color .35s, transform .35s var(--ease-out), box-shadow .35s;
  isolation: isolate; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,255,255,.35); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .64rem; letter-spacing: .26em; }
.btn--big { min-height: 64px; padding: 0 44px; font-size: .84rem; }

/* ── Barre du haut ─────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .8s ease 1s, transform .8s var(--ease-out) 1s;
}
body.is-open .topbar { opacity: 1; transform: none; }
.topbar__brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: .38em; font-size: .7rem; font-weight: 500;
}
.topbar__mark, .footer__mark {
  display: inline-block; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%;
  position: relative;
}
.topbar__mark::after, .footer__mark::after {
  content: ""; position: absolute; left: 50%; top: -6px; bottom: -6px; width: 1px; margin-left: -.5px; background: currentColor;
}
.topbar__nav { display: flex; gap: 28px; align-items: center; }
.topbar__nav a {
  text-transform: uppercase; letter-spacing: .3em; font-size: .66rem; font-weight: 400;
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .3s;
}
.topbar__nav a:hover { border-color: currentColor; }
.topbar__cta { border: 1px solid currentColor !important; padding: 9px 16px !important; }

/* bouton son : égaliseur qui bouge quand ça joue */
.sound { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: inherit; opacity: 0; transition: opacity .6s; }
body.is-open .sound { opacity: 1; }
.sound__label { text-transform: uppercase; letter-spacing: .3em; font-size: .66rem; }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__bars i { display: block; width: 2px; height: 3px; background: currentColor; transition: height .3s; }
body.is-playing .sound__bars i { animation: eq .9s ease-in-out infinite; }
body.is-playing .sound__bars i:nth-child(2) { animation-delay: -.3s; }
body.is-playing .sound__bars i:nth-child(3) { animation-delay: -.6s; }
body.is-playing .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
body:not(.is-playing) .sound__label::after { content: " off"; opacity: .5; }
@media (max-width: 560px) { .topbar__nav a:not(.topbar__cta) { display: none; } .sound__label { display: none; } }

/* ── Hero ──────────────────────────────────────────────── */
main { position: relative; z-index: 2; }
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 96px var(--gutter) 80px; gap: clamp(10px, 2vh, 22px);
  position: relative;
}
.hero__eyebrow {
  margin: 0; text-transform: uppercase; letter-spacing: .6em; font-size: clamp(.8rem, 1.6vw, 1rem); font-weight: 500;
}
.hero__tag { margin: 0; text-transform: uppercase; letter-spacing: .34em; font-size: .7rem; color: var(--mute); }
.hero__logo {
  width: min(84vw, 640px); margin: clamp(4px, 1.5vh, 14px) 0;
  filter: drop-shadow(0 0 34px rgba(255,255,255,.22));
}
.hero__date {
  margin: 0; display: flex; align-items: center; gap: 18px;
  text-transform: uppercase; letter-spacing: .4em; font-size: clamp(.8rem, 1.8vw, 1.05rem); font-weight: 400;
}
.hero__date i { width: 1px; height: 22px; background: var(--white); opacity: .5; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.countdown {
  display: flex; align-items: flex-start; justify-content: center; gap: clamp(8px, 2vw, 22px);
  font-variant-numeric: tabular-nums;
}
.countdown__cell { display: flex; flex-direction: column; align-items: center; min-width: 3.2ch; }
.countdown__cell b {
  font-weight: 200; font-size: clamp(2.4rem, 8vw, 4.8rem); line-height: 1; letter-spacing: -.02em;
  text-shadow: 0 0 30px rgba(255,255,255,.35);
}
.countdown__cell span { margin-top: 8px; text-transform: uppercase; letter-spacing: .34em; font-size: .6rem; color: var(--mute); }
.countdown__sep { font-weight: 200; font-size: clamp(1.8rem, 6vw, 3.8rem); line-height: 1; opacity: .35; padding-top: .1em; }

.scrollhint {
  position: absolute; bottom: 26px; left: 50%; width: 1px; height: 54px; margin-left: -.5px;
  background: var(--line); overflow: hidden;
}
.scrollhint span {
  position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--white);
  animation: drip 2s var(--ease-out) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ── Marquee ───────────────────────────────────────────── */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.marquee__track {
  display: flex; gap: 34px; width: max-content; align-items: center;
  text-transform: uppercase; letter-spacing: .4em; font-size: .78rem; font-weight: 400; white-space: nowrap;
  animation: marquee 34s linear infinite;
}
.marquee__track i { font-style: normal; opacity: .45; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections génériques ───────────────────────────────── */
section { padding: clamp(80px, 12vh, 150px) var(--gutter); position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 6vh, 64px); }
.section__eyebrow { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .5em; font-size: .68rem; color: var(--mute); }
.section__title {
  margin: 0 0 20px; font-weight: 200; text-transform: uppercase;
  font-size: clamp(2.8rem, 8.5vw, 6.4rem); line-height: .95; letter-spacing: .02em;
}
.section__lead { margin: 0; max-width: 520px; font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(246,246,246,.78); }

/* ── Billets ───────────────────────────────────────────── */
.gates { background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.85)); }
.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(18px, 3vw, 36px); max-width: 1100px; }
.ticket {
  --fg: var(--white); --bg: rgba(255,255,255,.035);
  position: relative; padding: clamp(24px, 3.4vw, 40px);
  color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d; transition: transform .5s var(--ease-out), box-shadow .5s;
  display: flex; flex-direction: column; gap: 10px;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--black); border: 1px solid var(--line);
}
.ticket::before { left: -12px; }
.ticket::after { right: -12px; }
.ticket--main { --fg: var(--black); --bg: var(--white); border-color: var(--white); box-shadow: 0 0 60px rgba(255,255,255,.14); }
.ticket__head {
  display: flex; justify-content: space-between; align-items: center;
  text-transform: uppercase; letter-spacing: .4em; font-size: .62rem; font-weight: 500; opacity: .7;
  padding-bottom: 14px; border-bottom: 1px dashed currentColor; margin-bottom: 8px;
}
.ticket__title { margin: 8px 0 0; font-weight: 200; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .95; }
.ticket__date { margin: 6px 0 0; font-weight: 500; letter-spacing: .3em; font-size: clamp(1.05rem, 2vw, 1.4rem); }
.ticket__what { margin: 0; text-transform: uppercase; letter-spacing: .4em; font-size: .68rem; opacity: .7; }
.ticket__desc { margin: 12px 0 4px; font-size: 1rem; line-height: 1.55; opacity: .88; }
.ticket__meta { margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 0; border-top: 1px dashed currentColor; border-bottom: 1px dashed currentColor; }
.ticket__meta dt { text-transform: uppercase; letter-spacing: .34em; font-size: .58rem; opacity: .6; }
.ticket__meta dd { margin: 4px 0 0; font-weight: 400; font-size: .95rem; }
.ticket__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.ticket--main .btn--ghost { color: var(--black); border-color: var(--black); }
.ticket--main .btn--ghost:hover { background: var(--black); color: var(--white); }
.ticket__barcode {
  flex: 1; min-width: 70px; height: 30px; opacity: .8;
  background: repeating-linear-gradient(to right, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 9px, currentColor 9px 12px, transparent 12px 14px);
}

/* ── Manifeste ─────────────────────────────────────────── */
.manifesto {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding-top: clamp(50px, 8vh, 110px); padding-bottom: clamp(50px, 8vh, 110px);
  background: rgba(0,0,0,.35);
}
.manifesto__word {
  margin: 0; font-weight: 700; text-transform: uppercase; line-height: .92; letter-spacing: -.01em;
  font-size: clamp(3.6rem, 16vw, 13rem);
}
.manifesto__word--outline { color: transparent; -webkit-text-stroke: 1.5px var(--white); }

/* ── RSVP ──────────────────────────────────────────────── */
.rsvp { background: rgba(0,0,0,.8); }
.form { max-width: 760px; display: flex; flex-direction: column; gap: 34px; }
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; margin: 0; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.field { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend {
  text-transform: uppercase; letter-spacing: .4em; font-size: .62rem; color: var(--mute); padding: 0;
}
.field input[type="text"], .field input[type="number"] {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--white); font: inherit; font-size: 1.15rem; font-weight: 300; padding: 10px 0; border-radius: 0;
  transition: border-color .3s;
}
.field input::placeholder { color: rgba(246,246,246,.3); }
.field input:focus { outline: none; border-bottom-color: var(--white); }
.field--num input { max-width: 120px; }
.field--choice { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.field--choice legend { width: 100%; margin-bottom: 10px; float: left; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span {
  display: inline-block; padding: 12px 20px; border: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .26em; font-size: .68rem; font-weight: 400;
  transition: background .3s, color .3s, border-color .3s;
}
.pill:hover span { border-color: var(--white); }
.pill input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); }
.pill input:focus-visible + span { outline: 1px solid var(--white); outline-offset: 3px; }
.form .btn--big { align-self: flex-start; }
#moments.is-dim { opacity: .35; pointer-events: none; }

/* ── Merci ─────────────────────────────────────────────── */
.thanks {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px var(--gutter); gap: 14px;
}
.thanks__logo { width: min(70vw, 420px); margin-bottom: 30px; filter: drop-shadow(0 0 30px rgba(255,255,255,.25)); }
.thanks .section__lead { margin-bottom: 26px; }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 2; text-align: center; padding: 70px var(--gutter) 46px;
  border-top: 1px solid var(--line); background: var(--black);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.footer__mark { width: 22px; height: 22px; }
.footer__credit {
  margin-top: 10px; text-transform: uppercase; letter-spacing: .3em; font-size: .56rem; color: var(--mute);
  transition: color .3s;
}
.footer__credit span { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.footer__credit:hover { color: var(--white); }
.footer__mark::after { top: -10px; bottom: -10px; }
.footer__line { margin: 0; text-transform: uppercase; letter-spacing: .5em; font-size: .68rem; }
.footer__brand { margin: 0; text-transform: uppercase; letter-spacing: .3em; font-size: .58rem; color: var(--mute); }

/* ── Apparitions au scroll ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .4s; }
.reveal:nth-child(7) { transition-delay: .48s; }

/* ── Mouvement réduit ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee__track, .scrollhint span, .gate__enter, .sound__bars i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lasers { display: none; }
  .gate__panel, .gate__beam, .gate__content { transition-duration: .3s; }
}
