:root {
  --orange: #C8501E;
  --orange-d: #A63F17;
  --ivory: #F4F0E6;
  --ink: #1A120D;
  --soft: rgba(244, 240, 230, .78);
  --faint: rgba(244, 240, 230, .22);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--orange); }
body { font-family: 'Poppins', system-ui, sans-serif; color: var(--ivory); cursor: none; -webkit-font-smoothing: antialiased; }
body.pointer { cursor: default; }

/* Scène fixe en 1920 x 1080, mise à l'échelle par le script */
#view { position: fixed; inset: 0; overflow: hidden; background: var(--orange); }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; background: var(--orange); }
#grain { position: absolute; inset: 0; background: url(/img/grain.png) repeat; background-size: 384px; mix-blend-mode: overlay; opacity: .16; pointer-events: none; z-index: 1; }
#stage::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 35%, rgba(255, 255, 255, .06), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(80, 20, 0, .16), transparent 70%); }
#scenes { position: absolute; inset: 0; z-index: 2; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms ease; padding: 96px 120px; }
.scene.on { opacity: 1; }

h1, h2, .sub, .tag { text-wrap: balance; }
.kicker { font-weight: 600; font-size: 28px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.serif { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 500; }
.rule { width: 120px; height: 5px; background: var(--ivory); border-radius: 3px; }
.brandline { position: absolute; left: 120px; top: 84px; font-weight: 600; font-size: 26px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.brandline b { color: var(--ivory); font-weight: 700; }

/* QR */
.qrcard { background: var(--ivory); color: var(--ink); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 30px 60px -30px rgba(60, 15, 0, .55); }
.qrcard img { display: block; }
.qrcard .qr-t { font-weight: 600; font-size: 30px; line-height: 1.2; margin-top: 22px; text-align: center; }
.qrcard .qr-u { font-weight: 700; font-size: 32px; color: var(--orange-d); margin-top: 6px; letter-spacing: .01em; }

.corner { position: absolute; right: 48px; bottom: 44px; z-index: 3; display: flex; align-items: center; gap: 22px; opacity: 0; transition: opacity 400ms ease; }
.corner.on { opacity: 1; }
.corner .c-txt { text-align: right; font-size: 24px; line-height: 1.3; }
.corner .c-txt b { display: block; font-weight: 600; }
.corner .c-txt span { color: var(--soft); font-weight: 500; }
.corner .c-plate { background: var(--ivory); border-radius: 16px; padding: 12px; }
.corner .c-plate img { width: 124px; height: 124px; display: block; }

/* Attente */
.s-attente .top { position: absolute; left: 120px; top: 72px; display: flex; align-items: center; gap: 56px; }
.s-attente .main { position: absolute; left: 120px; top: 300px; width: 1080px; }
.s-attente h1 { font-weight: 700; font-size: 150px; line-height: .98; letter-spacing: -.025em; }
.s-attente .tag { font-size: 86px; line-height: 1.1; margin-top: 26px; }
.s-attente .date { font-weight: 500; font-size: 34px; margin-top: 52px; color: var(--soft); letter-spacing: .01em; }
.s-attente .side { position: absolute; right: 120px; top: 230px; width: 520px; }
.s-attente .bottom { position: absolute; left: 120px; right: 120px; bottom: 64px; padding-top: 40px; border-top: 2px solid var(--faint); display: flex; align-items: center; justify-content: space-between; }
.s-attente .bottom img { display: block; }
.s-attente .side.vote { width: 620px; top: 200px; }

.vcard { background: var(--ivory); color: var(--ink); border-radius: 28px; padding: 36px 40px 34px; box-shadow: 0 30px 60px -30px rgba(60, 15, 0, .55); }
.vcard .vk { font-weight: 600; font-size: 22px; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-d); }
.vcard .vq { font-weight: 600; font-size: 36px; line-height: 1.18; margin: 14px 0 22px; }
.vcard .row { margin-top: 14px; }
.vcard .row .l { display: flex; justify-content: space-between; font-size: 24px; font-weight: 500; }
.vcard .row .l b { font-weight: 700; }
.vcard .track { height: 12px; border-radius: 8px; background: rgba(26, 18, 13, .1); margin-top: 6px; overflow: hidden; }
.vcard .fill { height: 100%; background: var(--orange); border-radius: 8px; transition: width 700ms cubic-bezier(.2, .8, .2, 1); }
.vcard .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; gap: 20px; }
.vcard .foot .t { font-size: 24px; line-height: 1.35; }
.vcard .foot .t b { display: block; font-weight: 700; color: var(--orange-d); font-size: 28px; }
.vcard .foot img { width: 150px; height: 150px; }

/* Compte à rebours */
.s-countdown { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.s-countdown .digits { font-weight: 600; font-size: 360px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 30px 0 20px; }
.s-countdown .sub { font-size: 64px; }

/* Titre */
.s-titre .block, .s-neutre .block { position: absolute; left: 120px; right: 200px; top: 50%; transform: translateY(-50%); }
.s-titre h1 { font-weight: 700; font-size: 136px; line-height: 1.02; letter-spacing: -.022em; }
.s-titre .sub { font-size: 62px; line-height: 1.2; margin-top: 26px; }
.s-titre .who { margin-top: 84px; }
.s-titre .who .name { font-weight: 600; font-size: 60px; line-height: 1.15; margin-top: 36px; }
.s-titre .who .role { font-size: 44px; margin-top: 8px; color: var(--soft); }

.s-neutre { text-align: center; }
.s-neutre .block { left: 120px; right: 120px; }
.s-neutre h1 { font-weight: 700; font-size: 160px; letter-spacing: -.025em; line-height: 1; }
.s-neutre .tag { font-size: 88px; margin-top: 30px; }
.s-neutre .note { position: absolute; left: 48px; bottom: 40px; font-size: 22px; color: var(--soft); text-align: left; }

/* Démo */
.s-demo .left { position: absolute; left: 120px; top: 50%; transform: translateY(-52%); width: 980px; }
.s-demo .dots { display: inline-flex; gap: 12px; margin-left: 26px; vertical-align: 4px; }
.s-demo .dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--soft); display: block; }
.s-demo .dots i.on { background: var(--ivory); border-color: var(--ivory); }
.s-demo h1 { font-weight: 700; font-size: 148px; line-height: 1; letter-spacing: -.025em; margin-top: 34px; }
.s-demo .sub { font-size: 62px; margin-top: 22px; }
.s-demo .for { font-weight: 500; font-size: 44px; margin-top: 64px; }
.s-demo .for b { font-weight: 700; }
.s-demo .disc { margin-top: 18px; font-size: 40px; color: var(--soft); }
.s-demo .disc b { font-family: 'Poppins', sans-serif; font-style: normal; font-weight: 600; color: var(--ivory); }
.s-demo .logo { position: absolute; right: 120px; top: 50%; transform: translateY(-50%); width: 640px; border-radius: 30px; box-shadow: 0 40px 80px -40px rgba(60, 15, 0, .6); }
.s-demo .fine { position: absolute; left: 120px; bottom: 56px; font-size: 26px; color: var(--soft); }

/* Vote */
.s-vote { display: flex; flex-direction: column; padding: 92px 640px 56px 120px; }
.s-vote h2 { font-weight: 600; font-size: 68px; line-height: 1.12; letter-spacing: -.01em; margin-top: 24px; }
.s-vote h2.long { font-size: 56px; }
.s-vote .opts { margin-top: 44px; }
.s-vote .row { margin-bottom: 26px; }
.s-vote .row .l { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; }
.s-vote .row .t { font-size: 40px; font-weight: 500; line-height: 1.15; }
.s-vote .row .p { font-size: 50px; font-weight: 700; font-variant-numeric: tabular-nums; }
.s-vote .track { height: 20px; border-radius: 12px; background: rgba(244, 240, 230, .2); margin-top: 10px; overflow: hidden; }
.s-vote .fill { height: 100%; width: 0; background: var(--ivory); border-radius: 12px; transition: width 800ms cubic-bezier(.2, .8, .2, 1); }
.s-vote.results .row { opacity: .62; transition: opacity 400ms; }
.s-vote.results .row.lead { opacity: 1; }
.s-vote.results .row.lead .t { font-weight: 700; }
.s-vote.results .row.lead .fill { background: var(--ink); }
.s-vote .foot { margin-top: auto; display: flex; align-items: baseline; gap: 40px; }
.s-vote .count { display: flex; align-items: baseline; gap: 18px; }
.s-vote .count b { font-weight: 700; font-size: 60px; font-variant-numeric: tabular-nums; }
.s-vote .count span { font-size: 36px; color: var(--soft); }
.s-vote .note { font-size: 28px; color: var(--soft); }
.s-vote .side { position: absolute; right: 120px; top: 96px; width: 400px; }
.s-vote .side .qrcard img { width: 300px; height: 300px; }
.s-vote .state { margin-top: 26px; font-size: 30px; font-weight: 600; text-align: center; color: var(--ivory); }

/* Question */
.s-question .block { position: absolute; left: 160px; right: 160px; top: 50%; transform: translateY(-50%); }
.s-question .q { font-size: 84px; line-height: 1.24; margin-top: 46px; }
.s-question .q.m { font-size: 70px; }
.s-question .q.l { font-size: 58px; }
.s-question .who { display: flex; align-items: center; gap: 30px; margin-top: 64px; }
.s-question .who .n { font-weight: 600; font-size: 46px; }
.s-question .who .n span { font-weight: 500; color: var(--soft); }

/* Jeu */
.s-jeuqr .left, .s-jeu .left { position: absolute; left: 120px; top: 50%; transform: translateY(-50%); width: 980px; }
.s-jeuqr h1, .s-jeu h1 { font-weight: 700; font-size: 136px; line-height: 1.02; letter-spacing: -.025em; margin-top: 30px; }
.s-jeuqr .sub, .s-jeu .sub { font-size: 60px; margin-top: 28px; line-height: 1.2; }
.s-jeuqr .url, .s-jeu .url { font-weight: 700; font-size: 84px; margin-top: 70px; letter-spacing: -.01em; }
.s-jeuqr .qrcard, .s-jeu .qrcard { position: absolute; right: 120px; top: 50%; transform: translateY(-50%); padding: 44px; }
.s-jeuqr .qrcard img { width: 600px; height: 600px; }
.s-jeu .qrcard img { width: 480px; height: 480px; }
.s-jeu .btn { display: inline-block; margin-top: 56px; background: var(--ivory); color: var(--ink); font-weight: 600; font-size: 32px; padding: 22px 36px; border-radius: 16px; text-decoration: none; cursor: pointer; }

/* Table ronde */
.s-tableronde .head { position: absolute; left: 120px; right: 120px; top: 90px; }
.s-tableronde h1 { font-weight: 700; font-size: 92px; line-height: 1.04; letter-spacing: -.02em; margin-top: 22px; }
.s-tableronde .anim { font-size: 38px; color: var(--soft); margin-top: 14px; }
.s-tableronde .theme { position: absolute; left: 120px; right: 120px; top: 360px; display: flex; align-items: baseline; gap: 34px; }
.s-tableronde .theme .n { font-weight: 600; font-size: 30px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.s-tableronde .theme .t { font-size: 78px; line-height: 1.1; }
.s-tableronde .people { position: absolute; left: 90px; right: 90px; bottom: 196px; display: flex; justify-content: space-between; align-items: flex-start; }
.s-tableronde .p { width: 320px; text-align: center; }
.s-tableronde .p img { width: 196px; height: 196px; border-radius: 50%; object-fit: cover; border: 6px solid var(--ivory); display: block; margin: 0 auto 24px; background: var(--orange-d); }
.s-tableronde .p .n { font-weight: 600; font-size: 32px; line-height: 1.15; }
.s-tableronde .p .o { font-size: 28px; color: var(--soft); margin-top: 4px; }

/* Institutions */
.s-institutions .block { position: absolute; left: 120px; right: 420px; top: 50%; transform: translateY(-50%); }
.s-institutions h1 { font-weight: 700; font-size: 120px; line-height: 1.03; letter-spacing: -.022em; margin-top: 30px; }
.s-institutions .anim { font-size: 56px; margin-top: 28px; }
.s-institutions .guest { margin-top: 80px; }
.s-institutions .guest .name { font-weight: 600; font-size: 58px; margin-top: 34px; }
.s-institutions .guest .role { font-size: 42px; color: var(--soft); margin-top: 6px; }

/* Contacts / merci */
.s-contacts .left { position: absolute; left: 120px; top: 50%; transform: translateY(-50%); width: 1000px; }
.s-contacts h1 { font-weight: 700; font-size: 230px; line-height: .95; letter-spacing: -.035em; }
.s-contacts .sub { font-size: 64px; margin-top: 40px; line-height: 1.2; }
.s-contacts .cocktail { font-weight: 600; font-size: 52px; margin-top: 90px; display: flex; align-items: center; gap: 28px; }
.s-contacts .suivre { font-size: 34px; color: var(--soft); margin-top: 40px; }
.s-contacts .qrcard { position: absolute; right: 140px; top: 50%; transform: translateY(-50%); padding: 44px; }
.s-contacts .qrcard img { width: 480px; height: 480px; }

/* Main levée */
.s-mainlevee .main { position: absolute; left: 120px; right: 120px; top: 110px; }
.s-mainlevee h2 { font-weight: 600; font-size: 72px; line-height: 1.12; margin-top: 26px; max-width: 1500px; }
.s-mainlevee ol { list-style: none; margin-top: 60px; }
.s-mainlevee li { font-size: 50px; font-weight: 500; margin-bottom: 26px; display: flex; gap: 34px; align-items: baseline; }
.s-mainlevee li b { font-weight: 700; width: 60px; color: var(--soft); }
.s-mainlevee .hand { position: absolute; left: 120px; bottom: 90px; font-size: 70px; }

/* Noir */
.s-noir { background: #000; display: flex; align-items: center; justify-content: center; }
.s-noir div { font-weight: 600; font-size: 30px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244, 240, 230, .16); }

/* Calques plein écran (film, jeu) */
.layer { position: fixed; inset: 0; background: #000; opacity: 0; visibility: hidden; transition: opacity 400ms ease, visibility 0s linear 400ms; z-index: 10; }
.layer.on { opacity: 1; visibility: visible; transition: opacity 400ms ease, visibility 0s; }
#film { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
#game-layer iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }

.overlay { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; }
.overlay.on { display: flex; cursor: pointer; }
.overlay .card { background: var(--ivory); color: var(--ink); border-radius: 22px; padding: 30px 44px; font-size: 26px; font-weight: 600; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); max-width: 760px; line-height: 1.35; }
.overlay .card small { display: block; font-weight: 500; font-size: 18px; color: rgba(26, 18, 13, .65); margin-top: 8px; }

#dot { position: fixed; left: 14px; bottom: 12px; z-index: 30; font: 500 12px/1 'Poppins', sans-serif; color: rgba(244, 240, 230, .55); display: none; align-items: center; gap: 7px; }
#dot span { width: 9px; height: 9px; border-radius: 50%; background: #FFD7C2; box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); }
#dot.on { display: flex; }

/* Démarrage, plein écran */
.overlay.on { background: rgba(26, 18, 13, .35); }
.overlay .card.start { padding: 34px 40px 28px; max-width: 560px; width: calc(100% - 40px); }
.overlay .st-k { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-d); }
.overlay .st-t { font-size: 34px; font-weight: 700; margin: 6px 0 22px; line-height: 1.1; }
.overlay .go { display: block; width: 100%; border: 0; border-radius: 16px; background: var(--orange); color: #fff; font: 700 24px/1.2 'Poppins', sans-serif; padding: 22px 20px; cursor: pointer; }
.overlay .card.start small { margin-top: 14px; font-size: 15px; }
.fsbtn { position: fixed; top: 14px; right: 14px; z-index: 25; border: 0; border-radius: 12px; background: rgba(26, 18, 13, .55); color: var(--ivory); font: 600 15px/1 'Poppins', sans-serif; padding: 12px 16px; cursor: pointer; }
.fsbtn[hidden] { display: none; }
/* Miniature de la régie */
.preview #dot, .preview .overlay, .preview .fsbtn { display: none !important; }
.s-filmapercu { background: #000; display: flex; align-items: center; justify-content: center; }
.s-filmapercu div { font-weight: 600; font-size: 64px; color: var(--ivory); opacity: .8; }

#jeu-layer { z-index: 60; background: #000; }
#jeuvid { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
