@font-face { font-family: 'Gloock'; src: url('/fonts/Gloock.ttf') format('truetype'); font-display: block; }
@font-face { font-family: 'Schibsted'; src: url('/fonts/SchibstedGrotesk.ttf') format('truetype'); font-weight: 400 900; font-display: block; }

:root {
  --bg: #F4EEE7; --surface: #FFFDFA; --ink: #1D1814; --ink2: #4F473F; --ink3: #6F655A;
  --kraft: #A98465; --kraftDeep: #7E5F45; --kraftSoft: #E6D8C8; --espresso: #221A14;
  --rule: rgba(29,24,20,.16);
  --light: #F4EEE7; --light2: rgba(244,238,231,.82); --light3: rgba(244,238,231,.62);
  --ok: #3E5A32; --okSoft: #E1EAD9;
  --serif: 'Gloock', Georgia, serif; --sans: 'Schibsted', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --world: #221A14;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--world); transition: background .6s; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; overscroll-behavior: none; -webkit-text-size-adjust: none; }

#stage { position: absolute; left: 0; top: 0; width: 1366px; height: 1024px; transform-origin: 0 0; overflow: hidden; font-family: var(--sans); font-weight: 420; color: var(--ink); }
#stage.night-up #day, #stage.day-up #night { pointer-events: none; }

/* ---------- la nuit : veille ---------- */
#night { position: absolute; inset: 0; color: var(--light); background: radial-gradient(130% 95% at 28% 112%, #33261C 0%, #221A14 42%, #130E0B 100%); }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; }
#night > :not(#sky) { pointer-events: none; }
#night .logo { position: absolute; top: 58px; left: 50%; width: 156px; margin-left: -78px; animation: breathe 9s ease-in-out infinite; }
#night .logo img { width: 100%; display: block; opacity: .92; }
#night .logo .shine { position: absolute; inset: 0; -webkit-mask: url('/assets/nbh-logo.png') center / contain no-repeat; mask: url('/assets/nbh-logo.png') center / contain no-repeat; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%); background-size: 320% 100%; animation: sweep 9s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes sweep { 0% { background-position: 130% 0; } 28% { background-position: -130% 0; } 100% { background-position: -130% 0; } }
#night .slogan { position: absolute; top: 176px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--light); opacity: .9; letter-spacing: .005em; }

#night .hello { position: absolute; left: 108px; top: 318px; width: 820px; height: 240px; font-family: var(--serif); font-size: 224px; line-height: 1; letter-spacing: -.015em; }
#night .hello span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .72s var(--ease), transform .72s var(--ease), filter .72s var(--ease); will-change: transform, filter, opacity; }
#night .hello span.in { opacity: 1; transform: none; filter: blur(0); }
#night .hello span.out { opacity: 0; transform: translateY(-38px); filter: blur(12px); }
#night .hello span.pre { opacity: 0; transform: translateY(38px); filter: blur(12px); transition: none; }
#night .langs { position: absolute; left: 116px; top: 580px; font-size: 31px; color: var(--light3); display: flex; gap: 38px; }
#night .langs span { transition: color .6s, transform .6s var(--ease); }
#night .langs span.lit { color: var(--light); transform: translateY(-3px); }
#night .clock { position: absolute; left: 108px; bottom: 58px; }
#night .clock b { display: block; font-family: var(--serif); font-weight: 400; font-size: 136px; line-height: 1; letter-spacing: -.01em; }
#night .clock .colon { display: inline-block; animation: blink 2s ease-in-out infinite; transform: translateY(-.06em); }
#night .clock .d { display: block; font-size: 32px; color: var(--light2); margin-top: 10px; padding-left: 6px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- le jour : la cliente ---------- */
#day { position: absolute; inset: 0; background: var(--bg); visibility: hidden; clip-path: circle(0px at 50% 50%); }
#day .sun { position: absolute; width: 1200px; height: 1200px; left: 380px; top: -420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(230,216,200,.95) 0%, rgba(230,216,200,.5) 32%, rgba(244,238,231,0) 68%); animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-160px, 90px) scale(1.12); } }
#day .grain { position: absolute; inset: 0; background: url('/assets/grain.jpg') center / cover; mix-blend-mode: multiply; opacity: .14; pointer-events: none; }
#screen { position: absolute; inset: 0; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
#day .mention { position: absolute; left: 96px; bottom: 40px; font-size: 19px; color: var(--ink3); opacity: 0; transition: opacity .5s; pointer-events: none; }
#day.amounts .mention { opacity: 1; }

.scr { position: absolute; inset: 0; padding: 72px 96px; }
.scr.leave { animation: leave .45s var(--ease) both; pointer-events: none; }
.scr.enter { animation: enter .6s var(--ease) both; }
@keyframes leave { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes enter { from { opacity: 0; transform: scale(1.01); } }

.rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 130ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.pop { animation: pop .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 130ms); }
@keyframes pop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes letter { from { opacity: 0; transform: translateY(30px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.ic { flex: none; }
.mark { position: absolute; top: 56px; left: 50%; width: 130px; margin-left: -65px; }
.mark img { width: 100%; display: block; }
.lab { font-size: 24px; color: var(--ink3); }
.pill { display: inline-flex; align-items: center; font-size: 30px; font-weight: 600; padding: 10px 24px; border-radius: 30px; background: var(--kraftSoft); color: var(--kraftDeep); }
.pill.maison { background: var(--espresso); color: var(--light); }
.chip { display: inline-flex; gap: 12px; align-items: center; padding: 12px 24px; border-radius: 30px; background: var(--kraft); color: var(--light); font-size: 26px; font-weight: 600; }
.btn { position: relative; height: 96px; border-radius: 26px; background: var(--espresso); color: var(--light); display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 31px; font-weight: 620; cursor: pointer; transition: transform .18s var(--ease), background .3s, box-shadow .3s; }
.btn:active, .btn.down { transform: scale(.97); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px rgba(29,24,20,.16); }
.btn.ok { background: var(--ok); }
.btn.ring { animation: pressring .7s var(--ease) 1; }
@keyframes pressring { 0% { box-shadow: 0 0 0 0 rgba(169,132,101,.55); } 100% { box-shadow: 0 0 0 22px rgba(169,132,101,0); } }
.coin { display: inline-block; width: 26px; height: 26px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 32%, #E6D8C8 0%, #B48C6A 48%, #7E5F45 100%); box-shadow: inset 0 0 0 1.5px rgba(126,95,69,.55), 0 1px 2px rgba(59,42,28,.25); }
.link { font-size: 22px; color: var(--ink2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 6px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px rgba(29,24,20,.18); }
.seg b { height: 56px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s; white-space: nowrap; }
.seg b.on { background: var(--espresso); color: var(--light); }

/* bienvenue */
.welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.welcome h1 { font-size: 150px; line-height: 1; white-space: nowrap; }
.welcome h1 i { display: inline-block; font-style: normal; animation: letter .75s var(--ease) both; animation-delay: calc(var(--i) * 48ms); }
.welcome h1 i.sp, .celebrate h1 i.sp { width: .28em; }
.welcome p { font-size: 38px; color: var(--ink2); margin-top: 26px; }
.welcome .row { display: flex; gap: 24px; align-items: center; margin-top: 50px; font-size: 38px; }
.welcome .ontime { margin-top: 32px; }
.welcome .when { position: absolute; right: 96px; bottom: 44px; font-size: 22px; color: var(--ink3); }

/* inscription */
.signup { display: grid; grid-template-columns: 440px 1fr; padding: 0; }
.signup .left { background: var(--surface); border-right: 1px solid var(--rule); padding: 64px 48px; display: flex; flex-direction: column; }
.signup .left h3 { font-size: 46px; line-height: 1.05; }
.signup .hist { margin-top: 26px; }
.signup .hist div { padding: 18px 0; border-top: 1px solid var(--rule); }
.signup .hist b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.signup .hist span { display: block; font-size: 22px; color: var(--ink2); margin-top: 6px; }
.signup .gift { margin-top: 26px; display: flex; gap: 16px; align-items: center; padding: 22px 24px; border-radius: 22px; background: var(--kraftSoft); color: var(--kraftDeep); font-size: 25px; font-weight: 600; }
.signup .src { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 21px; color: var(--ink3); }
.signup .right { padding: 50px 72px; display: flex; flex-direction: column; justify-content: center; }
.signup .right h3 { font-size: 60px; line-height: 1; }
.fields { display: flex; flex-wrap: wrap; column-gap: 18px; margin-top: 6px; }
.field { width: 100%; margin-top: 20px; }
.field.half { width: calc(50% - 9px); }
.field > span { display: block; font-size: 20px; color: var(--ink3); }
.field > div { margin-top: 8px; height: 70px; border-radius: 18px; background: var(--surface); border: 1.5px solid rgba(29,24,20,.18); padding: 0 22px; display: flex; align-items: center; justify-content: space-between; font-size: 27px; transition: border-color .4s; }
.field > .seg { display: grid; justify-content: stretch; padding: 6px; border: 0; }
.field .ic { opacity: 0; transform: scale(.5); transition: .4s var(--ease); }
.field.ok .ic { opacity: 1; transform: none; }
.field.ok > div { border-color: var(--ok); }
.check { display: flex; gap: 16px; align-items: center; font-size: 23px; margin-top: 24px; cursor: pointer; }
.check i { width: 32px; height: 32px; border-radius: 9px; border: 2px solid rgba(29,24,20,.4); background: var(--surface); display: grid; place-items: center; transition: .25s; flex: none; }
.check i .ic { opacity: 0; transform: scale(.5); transition: .25s; }
.check.on i { background: var(--espresso); border-color: var(--espresso); }
.check.on i .ic { opacity: 1; transform: none; }
.signup .btn { margin-top: 26px; height: 90px; }
.signup .fix { margin-top: 18px; text-align: center; }

/* carte prête */
.ready { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 80px; padding: 72px 110px; }
.ready h4 { font-size: 48px; line-height: 1.05; margin-bottom: 36px; }
.card { position: relative; height: 330px; border-radius: 30px; padding: 34px 36px; color: var(--light); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: linear-gradient(135deg, #B48C6A 0%, #96714F 55%, #7E5F45 100%); box-shadow: 0 44px 64px -30px rgba(59,42,28,.62), 0 8px 20px rgba(59,42,28,.12); transform-style: preserve-3d; will-change: transform; }
.card::after { content: ''; position: absolute; inset: 0; background: url('/assets/grain.jpg') center / cover; mix-blend-mode: multiply; opacity: .4; }
.card .mono { position: absolute; right: -70px; bottom: -40px; width: 420px; opacity: .13; }
.card .shine { position: absolute; inset: -30%; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.6) 50%, transparent 62%); transform: translateX(-130%); pointer-events: none; }
.card.shining .shine { animation: cardshine 1.7s cubic-bezier(.3,.5,.3,1) 1; }
@keyframes cardshine { to { transform: translateX(130%); } }
.card > * { position: relative; z-index: 1; }
.card .lg { width: 104px; }
.card .lg img { width: 100%; display: block; }
.card .bot { display: flex; justify-content: space-between; align-items: baseline; }
.card .bot span { font-size: 27px; }
.card .bot b { font-family: var(--serif); font-weight: 400; font-size: 58px; }
.ready .fly { animation: fly 1s var(--ease) both; }
@keyframes fly { from { opacity: 0; transform: translateY(60px) rotate(-5deg); } to { opacity: 1; transform: none; } }
.ready .qrbox { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ready .qr { padding: 22px; background: #fff; border-radius: 26px; box-shadow: 0 2px 12px rgba(59,42,28,.14); }
.ready .qr img { width: 290px; height: 290px; display: block; }
.ready .qrbox p { font-size: 28px; line-height: 1.3; margin-top: 28px; }
.ready .qrbox .mail { display: flex; align-items: center; gap: 10px; font-size: 22px; color: var(--ink2); margin-top: 12px; }

/* encaissement */
.pay { display: grid; grid-template-columns: 1fr 400px; column-gap: 80px; grid-template-rows: 1fr auto; padding: 62px 96px 76px; }
.pay .what { font-size: 36px; margin-top: 10px; }
.pay .rows { margin-top: 26px; }
.pay .row { display: flex; justify-content: space-between; gap: 24px; font-size: 27px; padding: 14px 0; border-top: 1px solid var(--rule); }
.pay .row.good { color: var(--ok); }
.pay .row.hid { display: none; }
.pay .due { margin-top: 28px; }
.pay .due b { display: block; font-family: var(--serif); font-weight: 400; font-size: 108px; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pay .reward { margin-top: 26px; display: inline-flex; cursor: pointer; transition: background .3s, color .3s; }
.pay .reward.off { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px rgba(29,24,20,.16); }
.pay .tipq { font-size: 34px; line-height: 1.2; }
.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.tips div { height: 100px; border-radius: 24px; box-shadow: inset 0 0 0 2px rgba(29,24,20,.2); display: grid; place-items: center; font-size: 30px; font-weight: 600; background: var(--surface); transition: .25s var(--ease); cursor: pointer; }
.tips div:active { transform: scale(.96); }
.tips div.on { background: var(--espresso); color: var(--light); box-shadow: none; }
.pay .bottom { grid-column: 1 / -1; margin-top: 26px; }
.pay .go { height: 104px; font-size: 36px; }
.pay .other { position: relative; height: 70px; margin-top: 14px; display: flex; justify-content: center; align-items: center; }
.pay .other .link, .pay .other .seg { position: absolute; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.pay .other .seg { opacity: 0; transform: scale(.9); pointer-events: none; }
.pay .other.open .link { opacity: 0; pointer-events: none; }
.pay .other.open .seg { opacity: 1; transform: none; pointer-events: auto; }
.pay .other .seg b { padding: 0 28px; height: 52px; font-size: 23px; }
.keypad { position: absolute; inset: 0; background: rgba(29,24,20,.5); display: grid; place-items: center; animation: fade .3s both; z-index: 5; }
@keyframes fade { from { opacity: 0; } }
.pad { width: 520px; background: var(--surface); border-radius: 36px; padding: 34px; box-shadow: 0 40px 80px -30px rgba(29,24,20,.6); animation: pop .4s var(--ease) both; }
.pad .lab { text-align: center; }
.pad .amt { font-family: var(--serif); font-size: 76px; text-align: center; margin-top: 6px; line-height: 1; }
.pad .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.pad .keys div { height: 84px; border-radius: 20px; background: var(--bg); display: grid; place-items: center; font-size: 32px; font-weight: 600; cursor: pointer; }
.pad .keys div:active { background: var(--kraftSoft); }
.pad .btn { margin-top: 16px; height: 84px; font-size: 28px; }

/* terminal */
.terminal { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.terminal h3 { font-size: 58px; line-height: 1.05; margin-top: 54px; }
.terminal p { font-size: 28px; color: var(--ink2); margin-top: 16px; }
.devwrap, .cash { position: relative; }
.dev { position: relative; width: 300px; height: 420px; border-radius: 40px; background: linear-gradient(180deg, #2E241D, #1D1814); box-shadow: 0 44px 70px -30px rgba(29,24,20,.65), inset 0 1px 0 rgba(255,255,255,.1); cursor: pointer; }
.dev .scrn { position: absolute; left: 26px; right: 26px; top: 30px; height: 196px; border-radius: 22px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .5s; }
.dev .scrn b { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1; }
.dev .scrn span { font-size: 18px; color: var(--ink2); margin-top: 8px; }
.dev .nfc { position: absolute; left: 50%; top: 256px; width: 110px; height: 110px; margin-left: -55px; }
.dev .nfc i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(244,238,231,.5); animation: nfc 1.8s ease-out infinite; }
.dev .nfc i:nth-child(2) { animation-delay: .45s; }
.dev .nfc i:nth-child(3) { animation-delay: .9s; }
@keyframes nfc { from { transform: scale(.25); opacity: 1; } to { transform: scale(1.05); opacity: 0; } }
.dev .keys { position: absolute; left: 44px; right: 44px; bottom: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dev .keys i { height: 22px; border-radius: 6px; background: rgba(255,255,255,.07); }
.halo { position: absolute; inset: 0; border-radius: 40px; animation: halo 2s ease-out infinite; pointer-events: none; }
@keyframes halo { from { box-shadow: 0 0 0 0 rgba(169,132,101,.5); } to { box-shadow: 0 0 0 40px rgba(169,132,101,0); } }
.cashcard { position: relative; width: 440px; height: 270px; border-radius: 32px; background: var(--surface); box-shadow: 0 44px 70px -30px rgba(29,24,20,.4), inset 0 0 0 1.5px rgba(29,24,20,.14); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; overflow: hidden; transition: background .5s; }
.cashcard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: linear-gradient(90deg, #B48C6A, #7E5F45); }
.cashcard .lab { font-size: 22px; }
.cashcard b { font-family: var(--serif); font-weight: 400; font-size: 76px; line-height: 1; }
.cashcard span:last-child { font-size: 22px; color: var(--ink2); }
.cash .halo { border-radius: 32px; }
.terminal .mark2 { position: absolute; left: 50%; width: 84px; height: 84px; margin-left: -42px; top: 269px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: .5s var(--ease); }
.cash .mark2 { top: 228px; }
.terminal.ok .scrn, .terminal.ok .cashcard { background: var(--okSoft); }
.terminal.ok .scrn b, .terminal.ok .scrn span, .terminal.ok .cashcard b, .terminal.ok .cashcard span { color: var(--ok); }
.terminal.ok .nfc, .terminal.ko .nfc, .terminal.ok .halo, .terminal.ko .halo { display: none; }
.terminal .mark2 .ic path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.terminal.ok .mark2, .terminal.ko .mark2 { opacity: 1; transform: none; }
.terminal.ok .mark2 { background: var(--ok); }
.terminal.ko .mark2 { background: #8A3B2E; }
.terminal.ok .mark2 .ic path, .terminal.ko .mark2 .ic path { animation: draw .5s .25s var(--ease) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.terminal .acts { display: flex; gap: 18px; margin-top: 34px; }
.terminal .acts .btn { width: 300px; }

/* merci et points */
.thanks { padding: 96px 120px; display: flex; flex-direction: column; justify-content: center; }
.thanks .thx { font-family: var(--serif); font-size: 66px; line-height: 1; }
.thanks .big { font-family: var(--serif); font-size: 214px; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; position: relative; align-self: flex-start; }
.thanks .lines { display: flex; gap: 44px; margin-top: 22px; font-size: 27px; color: var(--ink2); min-height: 36px; }
.thanks .lines b { color: var(--ink); font-weight: 640; }
.thanks .lines div { opacity: 0; transform: translateY(14px); transition: .7s var(--ease); }
.thanks .lines div.on { opacity: 1; transform: none; }
.gauge { position: relative; margin-top: 86px; height: 112px; }
.gauge .track { position: absolute; left: 0; right: 0; top: 48px; height: 18px; border-radius: 9px; background: var(--kraftSoft); }
.gauge .fill { position: absolute; left: 0; top: 48px; height: 18px; border-radius: 9px; background: var(--espresso); width: 0; transition: width 2.4s var(--ease); }
.gauge .now { position: absolute; top: 0; font-size: 27px; font-weight: 640; transform: translateX(-50%); white-space: nowrap; transition: left 2.4s var(--ease); }
.gauge .tick { position: absolute; top: 40px; width: 4px; height: 34px; margin-left: -2px; background: var(--kraftDeep); border-radius: 2px; transition: transform .5s var(--ease), background .5s; }
.gauge .tl { position: absolute; top: 86px; font-size: 22px; color: var(--ink2); transform: translateX(-50%); white-space: nowrap; transition: color .5s, transform .5s var(--ease); }
.gauge .tl.end { transform: translateX(-100%); }
.gauge .tl.lit { color: var(--kraftDeep); font-weight: 640; }
.gauge .tick.lit { background: var(--kraft); transform: scaleY(1.3); }
.gauge.live .fill, .gauge.live .now { transition: none; }
.thanks .msg { display: flex; gap: 18px; align-items: center; font-size: 31px; margin-top: 52px; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); min-height: 44px; }
.thanks .msg.on { opacity: 1; transform: none; }
.thanks .msg.swap { opacity: 0; transform: translateY(-8px); }
.sparks { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.sparks i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--kraft); opacity: 0; animation: spark 1.3s var(--ease) both; animation-delay: var(--d); }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
.wow.dim > :not(.celebrate) { opacity: 0 !important; filter: blur(14px); transform: translateY(-10px) scale(.98); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }

/* passage de palier : la carte se retourne, le nom s'écrit, les cadeaux arrivent */
.tierx { padding: 0; }
.tierx .burst { position: absolute; width: 1300px; height: 1300px; left: 33px; top: -140px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(180,140,106,.6) 0%, rgba(180,140,106,.18) 35%, rgba(180,140,106,0) 62%); animation: burst 1.8s var(--ease) both; }
@keyframes burst { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.celebrate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 10px; opacity: 0; pointer-events: none; transition: opacity .6s; }
.celebrate.on { opacity: 1; }
.flip { position: relative; width: 480px; height: 300px; transform-style: preserve-3d; transform: scale(.55) translateY(40px); opacity: 0; transition: transform 1.5s var(--ease), opacity .6s; }
.celebrate.on .flip { opacity: 1; transform: scale(1); }
.celebrate.on .flip.turn { transform: rotateY(180deg) scale(1); }
.face { position: absolute; inset: 0; border-radius: 30px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.back { background: var(--surface); box-shadow: inset 0 0 0 2px rgba(29,24,20,.12), 0 30px 50px -28px rgba(59,42,28,.45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.face.back b { font-family: var(--serif); font-weight: 400; font-size: 56px; color: var(--ink); }
.face.front { transform: rotateY(180deg); height: 100%; }
.flip.turn .front .shine { animation: cardshine 1.6s 1.1s cubic-bezier(.3,.5,.3,1) 1; }
.celebrate h1 { font-size: 104px; line-height: 1; margin-top: 50px; white-space: nowrap; }
.celebrate h1 i { display: inline-block; font-style: normal; opacity: 0; }
.celebrate.text h1 i { animation: letter .75s var(--ease) both; animation-delay: calc(var(--i) * 42ms); }
.celebrate .sub { font-size: 32px; color: var(--ink2); margin-top: 20px; opacity: 0; transform: translateY(10px); transition: .8s var(--ease) .9s; }
.celebrate.text .sub { opacity: 1; transform: none; }
.celebrate .gifts { display: flex; gap: 18px; margin-top: 36px; font-size: 27px; }
.celebrate .gifts div { display: flex; align-items: center; gap: 14px; padding: 18px 28px; border-radius: 24px; background: var(--surface); box-shadow: 0 1px 2px rgba(59,42,28,.08); white-space: nowrap; opacity: 0; transform: translateY(22px) scale(.92); transition: .7s var(--ease); }
.celebrate .gifts div:nth-child(2) { transition-delay: .18s; }
.celebrate.gifted .gifts div { opacity: 1; transform: none; }

/* déjà payé */
.prepaid { padding: 64px 96px; }
.prepaid h1 { font-size: 80px; line-height: 1; }
.prepaid .sub { font-size: 28px; color: var(--ink2); margin-top: 14px; }
.prepaid .paid { margin-top: 36px; display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: 26px; background: var(--okSoft); color: var(--ok); }
.prepaid .paid b { display: block; font-size: 30px; font-weight: 700; }
.prepaid .paid span { display: block; font-size: 22px; margin-top: 4px; }
.prepaid .paid em { font-style: normal; font-family: var(--serif); font-size: 54px; margin-left: auto; }
.prepaid .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.prepaid .acts .btn { height: 108px; font-size: 32px; }
.prepaid .acts .pts { height: 108px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 2px rgba(29,24,20,.16); display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 27px; color: var(--ink2); opacity: .45; transition: opacity .5s; }
.prepaid.here .acts .pts { opacity: 1; }
.prepaid .tipz { margin-top: 38px; opacity: 0; transform: translateY(20px); transition: .7s var(--ease); pointer-events: none; }
.prepaid.here .tipz { opacity: 1; transform: none; pointer-events: auto; }
.prepaid .tipq { font-size: 32px; }
.prepaid .tips { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
.prepaid .tips div { height: 94px; }

/* message */
.message { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 140px; }
.message h1 { font-size: 96px; line-height: 1.08; }
.message h1.long { font-size: 72px; }
.message .sub { font-size: 30px; color: var(--ink2); margin-top: 30px; }

/* divers */
#toast { position: absolute; left: 50%; bottom: 54px; transform: translate(-50%, 30px); opacity: 0; padding: 18px 30px; border-radius: 30px; background: var(--espresso); color: var(--light); font-size: 24px; transition: .45s var(--ease); pointer-events: none; z-index: 9; white-space: nowrap; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#offline { position: absolute; right: 30px; bottom: 28px; font-size: 16px; color: rgba(244,238,231,.6); opacity: 0; transition: .4s; pointer-events: none; z-index: 9; }
#stage.day-up #offline { color: var(--ink3); }
#stage.off #offline { opacity: 1; }
#a2hs { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); background: rgba(244,238,231,.14); color: var(--light); padding: 14px 24px; border-radius: 22px; font-size: 18px; display: none; z-index: 9; backdrop-filter: blur(10px); }
#a2hs.show { display: block; animation: rise .6s var(--ease) both; }
