@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root { --ivoire: #F2E9DB; --noyer: #31261D; --nuit: #120E0B; --sable: #C9B49A; --ease: cubic-bezier(.2,.7,.1,1); }
* { box-sizing: border-box; }
html { background: var(--nuit); }
body { margin: 0; background: var(--nuit); color: var(--ivoire); font-family: "Instrument Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 60; top: -100px; left: 16px; padding: 12px 16px; background: var(--ivoire); color: var(--noyer); }
.skip-link:focus { top: 16px; }

.hd { position: fixed; z-index: 40; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 18px 4.5%; }
.hd-logo { width: 96px; }
.hd-logo img { width: 100%; height: auto; filter: invert(1) drop-shadow(0 1px 8px rgba(18,14,11,.45)); }
.hd-cta { padding: 10px 15px; border: 1px solid rgba(242,233,219,.35); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-decoration: none; background: rgba(18,14,11,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .3s, color .3s; }
.hd-cta:hover { background: var(--ivoire); color: var(--noyer); }

/* Une scène fixe, trois calques */
.track { position: relative; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.layer { position: absolute; inset: 0; visibility: hidden; }

/* Photo plein cadre + voile */
.photo { position: absolute; inset: 0; opacity: 0; will-change: transform, opacity, filter; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.veil { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, rgba(18,14,11,.55), rgba(18,14,11,.96)); opacity: 0; }

/* 1 — Logo */
.logo-zoom { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-sub { position: absolute; left: 4.5%; right: 4.5%; bottom: 24px; margin: 0; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .16em; opacity: .7; }

.scroll-cue { position: absolute; left: 50%; bottom: 9svh; z-index: 5; display: grid; place-items: center; width: 46px; height: 46px; margin-left: -23px; padding: 0; border: 0; border-radius: 50%; color: var(--ivoire); cursor: pointer; isolation: isolate;
  /* liquid glass : flou + saturation, reflet en haut, ombre douce, liseré qui tourne lentement */
  background: linear-gradient(180deg, rgba(242,233,219,.14), rgba(242,233,219,.03));
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 1px rgba(0,0,0,.18), 0 10px 30px rgba(0,0,0,.28);
  transition: transform .4s var(--ease), background .4s; }
.scroll-cue::before { content: ""; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit; background: conic-gradient(from var(--spin), rgba(242,233,219,.1), rgba(242,233,219,.7), rgba(242,233,219,.1) 45%, rgba(242,233,219,.1)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; }
.scroll-cue svg { width: 15px; height: 15px; opacity: .85; animation: cue 2.8s ease-in-out infinite; }
.scroll-cue:hover { transform: scale(1.06); background: linear-gradient(180deg, rgba(242,233,219,.2), rgba(242,233,219,.06)); }
@keyframes cue { 0%, 100% { transform: translateY(-1.5px); } 50% { transform: translateY(2px); } }

/* 2 — Tube + halo */
.halo { position: absolute; left: 50%; top: 50%; width: 120vmin; height: 120vmin; margin: -60vmin 0 0 -60vmin; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.halo i { position: absolute; inset: 20%; border-radius: 50%; filter: blur(50px); mix-blend-mode: screen; animation: orbit 16s linear infinite; }
.halo i:nth-child(1) { background: radial-gradient(circle at 48% 47%, rgba(242,233,219,.75), transparent 60%); }
.halo i:nth-child(2) { inset: 12%; background: radial-gradient(circle at 53% 46%, rgba(201,180,154,.7), transparent 58%); animation-duration: 22s; animation-direction: reverse; }
.halo i:nth-child(3) { inset: 30%; background: radial-gradient(circle, rgba(255,244,226,.9), transparent 62%); filter: blur(34px); animation: breathe 5s ease-in-out infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .75; } }
.halo.is-burst i:nth-child(3) { animation: burst 1.6s var(--ease); }
@keyframes burst { 35% { transform: scale(1.9); opacity: 1; } }
.tube { position: absolute; left: 0; top: 0; z-index: 2; will-change: transform, opacity; }
.tube img { width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0,0,0,.45)); }
.claim { position: absolute; z-index: 3; left: 5%; top: 50%; width: min(640px, 41vw); margin: 0; font-size: clamp(44px, 5.4vw, 92px); font-weight: 800; line-height: .93; letter-spacing: -.05em; word-spacing: .06em; transform: translateY(-50%); visibility: hidden; }
.claim:nth-of-type(2) { left: auto; right: 5%; text-align: right; }
.claim.is-wide { width: min(780px, 50vw); }
.claim small { display: block; max-width: 30ch; margin-top: 20px; font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; line-height: 1.45; letter-spacing: 0; word-spacing: 0; opacity: 0; }
.claim:nth-of-type(2) small { margin-left: auto; }

/* Mots révélés un à un (masque) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .03em .14em; margin: -.08em -.03em -.14em; }
.w > span { display: inline-block; will-change: transform; }

/* 3 — Club */
.club { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(580px, calc(100% - 40px)); text-align: center; transform: translate(-50%, -50%); }
.club-title { margin: 0 0 14px; font-size: clamp(46px, 6vw, 96px); font-weight: 800; line-height: .92; letter-spacing: -.05em; word-spacing: .06em; }
.club-lead { max-width: 420px; margin: 0 auto 24px; font-size: 16px; line-height: 1.5; opacity: .82; }
[data-rise] { will-change: transform, opacity, filter; }
.form { text-align: left; }
.form-row { position: relative; display: flex; min-height: 58px; padding: 5px; border-radius: 999px; background: rgba(242,233,219,.07); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); isolation: isolate; }
.form-row::before { content: ""; position: absolute; inset: 0; z-index: -1; padding: 1.5px; border-radius: inherit; background: conic-gradient(from var(--spin), rgba(242,233,219,.12), rgba(242,233,219,.95), rgba(201,180,154,.4), rgba(242,233,219,.12) 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; }
@keyframes spin { to { --spin: 360deg; } }
.form-row:focus-within { box-shadow: 0 0 0 4px rgba(242,233,219,.15); }
.form-row input { flex: 1; min-width: 0; padding: 0 18px; border: 0; outline: 0; background: transparent; color: var(--ivoire); font-size: 16px; }
.form-row input::placeholder { color: var(--ivoire); opacity: .5; }
.form-row input[aria-invalid="true"] { color: #F0B596; }
.form-row button { display: flex; align-items: center; gap: 12px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ivoire); color: var(--noyer); cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .05em; box-shadow: 0 0 30px rgba(242,233,219,.3); transition: transform .2s var(--ease), box-shadow .3s; }
.form-row button:hover { box-shadow: 0 0 46px rgba(242,233,219,.55); }
.form-row button:active { transform: scale(.96); }
.form-row button span { font-size: 17px; }
.error { margin: 4px 6px 0; font-size: 13px; font-weight: 600; color: #F0B596; }
.error:empty { display: none; }
.note { margin: 14px 0 0; text-align: center; font-size: 13px; opacity: .72; }
.note a { margin-left: 4px; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts { display: flex; justify-content: center; }
.ts:not(:empty) { margin-top: 12px; }
.form-row button[disabled] { opacity: .7; cursor: progress; }
.club-done[hidden] { display: none; }
.club-done { outline: 0; animation: materialize 1.2s var(--ease); }
@keyframes materialize { from { opacity: 0; filter: blur(16px); transform: scale(.94); } to { opacity: 1; filter: none; transform: none; } }
.legal { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.legal > span:first-child { opacity: .55; }
.social { display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; opacity: .7; transition: opacity .2s, background .2s; }
.social a:hover { opacity: 1; background: rgba(242,233,219,.1); }
.social svg { width: 16px; height: 16px; }

/* Grain argentique sur toute la scène */
.grain { position: absolute; inset: -50%; z-index: 10; pointer-events: none; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }

.party { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; }

@media (min-width: 761px) { .club-title { margin-inline: -140px; } }

@media (max-width: 760px) {
  .hd { padding: 14px 5%; }
  .hd-logo { width: 84px; }
  .hd-cta { padding: 9px 12px; font-size: 10px; }
  .logo-sub { bottom: calc(18px + env(safe-area-inset-bottom)); font-size: 10px; }
  .scroll-cue { bottom: calc(8svh + env(safe-area-inset-bottom)); }
  /* Mobile : le texte alterne haut / bas, le tube lui laisse la place (comme gauche / droite sur ordinateur) */
  .claim, .claim:nth-of-type(2) { left: 6%; right: 6%; top: 80px; bottom: auto; width: auto; text-align: center; font-size: 10vw; transform: none; }
  .claim.is-wide { width: auto; font-size: 8.6vw; }
  .claim small, .claim:nth-of-type(2) small { margin: 12px auto 0; font-size: 14px; }
  .club-title { font-size: 12.5vw; }
  .club-lead { font-size: 15px; margin-bottom: 18px; }
  .form-row { min-height: 54px; }
  .form-row input { padding: 0 14px; }
  .form-row button { padding: 0 16px; gap: 8px; font-size: 11px; }
  .legal { bottom: calc(8px + env(safe-area-inset-bottom)); padding: 0 16px; flex-direction: column-reverse; gap: 2px; font-size: 9px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
