[hidden] { display: none !important; }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(/fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(/fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url(/fonts/montserrat-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap; src: url(/fonts/montserrat-latin-900-normal.woff2) format("woff2"); }
/* Scène 1920×1080 partagée par le Patchwork, la page publique et l'aperçu régie */
:root {
  /* charte TNT : nuit étoilée + jaune fluo + Montserrat */
  --nuit: #070d22; --nuit2: #142a5c; --or: #ffd60a; --rouge: #e5233b; --jaune: #ffd60a; --bleu: #3d6bff; --blanc: #f4f6ff;
  --font: "Montserrat", system-ui, sans-serif;
}
.stage-wrap { position: fixed; inset: 0; background: #000; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden;
  font-family: var(--font); color: var(--blanc);
  background:
    radial-gradient(1px 1px at 12% 18%, #fff9, transparent 60%), radial-gradient(1.5px 1.5px at 33% 72%, #fffa, transparent 60%),
    radial-gradient(1px 1px at 52% 30%, #fff8, transparent 60%), radial-gradient(2px 2px at 71% 12%, #fffc, transparent 60%),
    radial-gradient(1px 1px at 84% 64%, #fff8, transparent 60%), radial-gradient(1.5px 1.5px at 92% 28%, #fff9, transparent 60%),
    radial-gradient(1px 1px at 22% 48%, #fff7, transparent 60%), radial-gradient(1px 1px at 63% 88%, #fff7, transparent 60%),
    radial-gradient(ellipse at 50% 0%, #142a5c 0%, #070d22 55%, #03060f 100%);
}
/* tuiles */
.tiles { position: absolute; inset: 0; }
.tile { position: absolute; overflow: hidden; background: #05081a;
  transition: left var(--a-layout) cubic-bezier(.65,0,.25,1), top var(--a-layout) cubic-bezier(.65,0,.25,1), width var(--a-layout) cubic-bezier(.65,0,.25,1), height var(--a-layout) cubic-bezier(.65,0,.25,1), opacity calc(var(--a-layout) * .7), border-radius var(--a-layout); }
.tile.gone { opacity: 0; pointer-events: none; }
.tile.swap > video, .tile.swap > img.snap { animation: swapIn var(--a-swap) cubic-bezier(.2,.8,.2,1); }
@keyframes swapIn { from { opacity: 0; transform: scale(1.08); filter: blur(10px) brightness(1.6); } }
.tile video, .tile img.snap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, transform-origin .45s ease; }
.stage.fit-contain .tile video, .stage.fit-contain .tile img.snap { object-fit: contain; }
.tile .wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #9fb0ffb0; font-size: 40px; letter-spacing: .08em; text-transform: uppercase; }
.tile .wait .spin { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
.tile .label { position: absolute; left: 28px; bottom: 26px; display: flex; align-items: center; gap: 12px; font-size: 38px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: linear-gradient(90deg, #0b1026e6, #0b102699); padding: 6px 20px 6px 14px; border-left: 6px solid var(--or); border-radius: 4px; }
.tile .label .badge { font-size: 22px; padding: 3px 10px; border-radius: 4px; background: var(--rouge); letter-spacing: .1em; }
.tile .label .badge.photo { background: #ffffff26; }
.tile .label .badge { font-weight: 800; }
.tile .label .badge.live::before { content: "● "; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.stage.nolabels .tile .label { display: none; }
.stage.small-tiles .tile .label { font-size: 28px; bottom: 18px; left: 18px; }
/* layouts */
.L-single .t0, .L-auto .t0 { left: 0; top: 0; width: 1920px; height: 1080px; }
.L-split2 .t0 { left: 0; top: 0; width: 958px; height: 1080px; }
.L-split2 .t1 { left: 962px; top: 0; width: 958px; height: 1080px; }
.L-grid4 .t0 { left: 0; top: 0; width: 958px; height: 538px; }
.L-grid4 .t1 { left: 962px; top: 0; width: 958px; height: 538px; }
.L-grid4 .t2 { left: 0; top: 542px; width: 958px; height: 538px; }
.L-grid4 .t3 { left: 962px; top: 542px; width: 958px; height: 538px; }
.L-pip .t0 { left: 0; top: 0; width: 1920px; height: 1080px; }
.L-pip .t1 { left: 1296px; top: 636px; width: 576px; height: 324px; border: 4px solid var(--or); border-radius: 10px; box-shadow: 0 10px 40px #000a; z-index: 2; }
.L-single .t1, .L-auto .t1 { left: 1920px; top: 0; width: 960px; height: 1080px; }
.L-single .t2, .L-single .t3, .L-split2 .t2, .L-split2 .t3, .L-pip .t2, .L-pip .t3, .L-auto .t2, .L-auto .t3 { left: 960px; top: 1080px; width: 960px; height: 540px; }
.L-pip .t1 .label { font-size: 24px; left: 12px; bottom: 12px; }
/* animations d'entrée / sortie (data-anim) — durées réglables depuis la régie (variables --a-*) */
.stage { --a-title: .65s; --a-msg: .65s; --a-rank: .7s; --a-layout: .75s; --a-swap: .7s; }
.ov, .qrbox, .bug, .offline { --d: var(--a-title); }
.ov-msg { --d: var(--a-msg); } .ov-rank { --d: var(--a-rank); }
.in[data-anim=top]    { animation: inTop var(--d) cubic-bezier(.2,.9,.3,1.15) both; }
.out[data-anim=top]   { animation: inTop calc(var(--d) * .7) ease-in reverse both; }
.in[data-anim=bottom] { animation: inBottom var(--d) cubic-bezier(.2,.9,.3,1.15) both; }
.out[data-anim=bottom]{ animation: inBottom calc(var(--d) * .7) ease-in reverse both; }
.in[data-anim=right]  { animation: inRight var(--d) cubic-bezier(.2,.9,.3,1.1) both; }
.out[data-anim=right] { animation: inRight calc(var(--d) * .7) ease-in reverse both; }
.in[data-anim=zoom]   { animation: inZoom var(--d) cubic-bezier(.2,.9,.3,1.2) both; }
.out[data-anim=zoom]  { animation: inZoom calc(var(--d) * .7) ease-in reverse both; }
.in[data-anim=fade]   { animation: inFade var(--d) ease both; }
.out[data-anim=fade]  { animation: inFade calc(var(--d) * .7) ease reverse both; }
.stage.noanim *, .stage.noanim *::before { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
@keyframes inTop    { from { opacity: 0; transform: translateY(-140%); } }
@keyframes inBottom { from { opacity: 0; transform: translateY(140%); } }
@keyframes inRight  { from { opacity: 0; transform: translateX(110%) skewX(-6deg); } }
@keyframes inZoom   { from { opacity: 0; transform: scale(.82); filter: blur(12px); } }
@keyframes inFade   { from { opacity: 0; } }

/* habillage */
.ov { position: absolute; z-index: 5; }
.ov-title { left: 40px; top: 32px; display: flex; align-items: center; gap: 18px; text-shadow: 0 2px 12px #000c; }
.ov-title .logo { width: 84px; height: 84px; flex: none; object-fit: contain; }
.ov-title.in .logo { animation: logoSpin calc(var(--a-title) * 1.5) calc(var(--a-title) * .25) cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes logoSpin { from { transform: rotate(-200deg) scale(.2); opacity: 0; } }
/* coin : QR « suivez le direct » + logo filigrane */
.ov-corner { right: 40px; bottom: 40px; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; z-index: 6; }
.ov-corner.left { right: auto; left: 40px; align-items: flex-start; }
.stage.has-ticker .ov-corner { bottom: 100px; }
.qrbox { background: #fff; color: #070d22; border-radius: 16px; padding: 14px 14px 10px; text-align: center; font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 16px 60px #000c; border: 5px solid var(--jaune); }
.qrbox img { display: block; width: 230px; height: 230px; }
.qrbox.in img { animation: qrPop var(--a-title) calc(var(--a-title) * .45) cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes qrPop { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }
.bug .bl { width: 120px; height: 120px; object-fit: contain; opacity: .85; filter: drop-shadow(0 4px 14px #000c); }
.ov-title .t { font-size: 46px; font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.ov-title .s { font-size: 26px; color: #c9d3ff; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.ov-clock { right: 40px; top: 32px; display: flex; gap: 14px; align-items: stretch; }
.ov-clock > div { background: #0b1026d9; border-radius: 8px; padding: 8px 20px; text-align: center; border: 1px solid #ffffff1f; }
.ov-clock .k { font-size: 18px; letter-spacing: .2em; color: #9fb0ff; text-transform: uppercase; }
.ov-clock .v { font-size: 48px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; }
.ov-clock .chrono .v { color: var(--jaune); }
/* bandeau défilant */
.ov-ticker { left: 0; right: 0; bottom: 0; height: 64px; background: #0b1026f2; border-top: 4px solid var(--or); display: flex; align-items: center; overflow: hidden; }
.ov-ticker .tag { flex: none; height: 100%; display: flex; align-items: center; padding: 0 24px; background: var(--or); color: #070d22; font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; z-index: 1; }
.ov-ticker .run { white-space: nowrap; font-size: 34px; font-weight: 600; padding-left: 100%; animation: tick linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.stage.has-ticker .tile .label { bottom: 96px; }
.stage.has-ticker.L-pip .t1 { top: 600px; }
/* message */
.ov-msg { left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
.ov-msg.banner { bottom: 150px; }
.has-ticker .ov-msg.banner { bottom: 200px; }
.ov-msg .box { position: relative; overflow: hidden; }
.ov-msg .box .shine { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffff40 50%, transparent 70%); transform: translateX(-100%); animation: shine calc(var(--a-msg) * 1.8) calc(var(--a-msg) * .75) ease-out; pointer-events: none; }
@keyframes shine { to { transform: translateX(100%); } }
.ov-msg.banner .box { max-width: 1500px; font-size: 56px; font-weight: 800; text-align: center; line-height: 1.12; padding: 22px 48px; border-radius: 10px; background: #0b1026f2; border-left: 12px solid var(--bleu); box-shadow: 0 12px 60px #000b; }
.ov-msg.full { inset: 0; align-items: center; background: radial-gradient(ellipse at center, #0b1026e8, #04060ff7); z-index: 8; }
.ov-msg.full .box { max-width: 1600px; font-size: 104px; font-weight: 900; text-align: center; line-height: 1.05; text-transform: uppercase; padding: 0 60px; }
.ov-msg .box.alerte { border-color: var(--rouge); } .ov-msg.full .box.alerte { color: #ff6b7d; }
.ov-msg .box.bravo { border-color: var(--jaune); } .ov-msg.full .box.bravo { color: var(--jaune); }
.ov-msg .box.info { border-color: var(--bleu); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
/* classement : s'adapte à l'écran (échelle calculée en JS) */
.ov-rank { z-index: 7; }
.ov-rank .rk { background: #070d22f0; border-radius: 14px; border: 1px solid #ffffff22; box-shadow: 0 20px 80px #000c; overflow: hidden; width: max-content; min-width: 560px; max-width: 1400px; }
.ov-rank.panel { right: 40px; top: 150px; }
.ov-rank.panel .rk { transform-origin: top right; }
.ov-rank.full { inset: 0; display: flex; align-items: center; justify-content: center; padding-top: 70px; background: radial-gradient(ellipse at 50% 0%, #142a5cf2 0%, #070d22f5 55%, #03060ff8 100%); }
.ov-rank.full .rk { transform-origin: center; min-width: 1100px; max-width: 1760px; }
.ov-rank h2 { margin: 0; padding: 16px 26px; font-size: 40px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; background: var(--jaune); color: #070d22; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.ov-rank.full h2 { font-size: 60px; padding: 22px 36px; }
.ov-rank.in h2 .ttl { display: inline-block; animation: ttlIn var(--a-rank) calc(var(--a-rank) * .35) cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes ttlIn { from { opacity: 0; transform: translateX(-40px); letter-spacing: .3em; } }
.ov-rank .pg { display: flex; gap: 8px; } .ov-rank .pg i { width: 14px; height: 14px; border-radius: 50%; background: #070d2240; } .ov-rank .pg i.on { background: #070d22; }
.ov-rank .bar { height: 5px; background: var(--jaune); transform-origin: left; animation: bar linear infinite; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ov-rank table { border-collapse: collapse; font-size: 32px; font-variant-numeric: tabular-nums; width: 100%; }
.ov-rank.full table { font-size: 46px; }
.ov-rank th { text-align: left; font-size: 19px; letter-spacing: .15em; text-transform: uppercase; color: #9fb0ff; padding: 10px 18px; font-weight: 700; white-space: nowrap; }
.ov-rank.full th { font-size: 26px; padding: 12px 26px; }
.ov-rank td { padding: 8px 18px; border-top: 1px solid #ffffff14; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 560px; }
.ov-rank.full td { padding: 11px 26px; max-width: 760px; }
.ov-rank td.empty { text-align: center; color: #9fb0ff; padding: 26px; }
.ov-rank tr:nth-child(even) td { background: #ffffff08; }
.ov-rank td:first-child { font-weight: 900; color: var(--jaune); width: 1%; }
.ov-rank tr.p1 td:first-child { color: #ffd700; } .ov-rank tr.p2 td:first-child { color: #d9e1ea; } .ov-rank tr.p3 td:first-child { color: #e3955b; }
.ov-rank tr.rin { animation: rowIn calc(var(--a-rank) * .8) cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes rowIn { from { opacity: 0; transform: translateX(80px); } }
.ov-rank tr.p1.rin td { animation: goldFlash 1.6s .6s ease-out both; }
@keyframes goldFlash { 0% { background: #ffd60a55; } 100% { background: transparent; } }

/* attente : lettres T.N.T qui sautillent puis disparaissent */
.tnt { display: flex; align-items: flex-end; gap: .08em; font-family: var(--font); font-weight: 900; line-height: 1; color: var(--blanc); }
.tnt span { display: inline-block; opacity: 0; animation: tntHop 3.2s cubic-bezier(.3,.7,.4,1) infinite; text-shadow: 0 0 .25em #ffd60a55; }
.tnt span.d { color: var(--jaune); text-shadow: 0 0 .4em #ffd60acc; }
.tnt span:nth-child(1) { animation-delay: 0s; }   .tnt span:nth-child(2) { animation-delay: .12s; }
.tnt span:nth-child(3) { animation-delay: .24s; } .tnt span:nth-child(4) { animation-delay: .36s; }
.tnt span:nth-child(5) { animation-delay: .48s; } .tnt span:nth-child(6) { animation-delay: .60s; }
@keyframes tntHop {
  0%   { opacity: 0; transform: translateY(.6em) scale(.4) rotate(-12deg); filter: blur(6px); }
  10%  { opacity: 1; transform: translateY(-.55em) scale(1.1) rotate(4deg); filter: blur(0); }
  17%  { transform: translateY(0) scale(.92, 1.08); }
  23%  { transform: translateY(-.22em) scale(1.02); }
  29%  { transform: translateY(0) scale(1.04, .96); }
  34%  { transform: translateY(-.07em) scale(1); }
  39%, 62% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  74%  { opacity: 0; transform: translateY(-.5em) scale(1.25) rotate(8deg); filter: blur(8px); }
  100% { opacity: 0; }
}
.tile .wait { font-family: var(--font); }
.tile .wait .tnt { font-size: 150px; }
.stage.small-tiles .tile .wait .tnt { font-size: 96px; }
.L-pip .t1 .wait .tnt { font-size: 56px; }
.tile .wait .wt { font-size: 26px; font-weight: 700; letter-spacing: .3em; color: #9fb0ffaa; }
.L-pip .t1 .wait .wt { font-size: 14px; }
.offline .tnt { font-size: 230px; }
.offline .biglogo { width: 300px; height: 300px; object-fit: contain; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 0 40px #ffd60a55); }
@keyframes float { 50% { transform: translateY(-16px) rotate(2deg); } }

/* hors ligne / attente */
.offline { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; text-align: center; z-index: 9; }
.offline .logo { width: 220px; height: 220px; }
.offline h1 { margin: 0; font-size: 92px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.offline p { margin: 0; font-size: 44px; color: #c9d3ff; max-width: 1400px; }
.yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 9; }
