/* Page d'accueil (QR de l'entrée) — reprise de design/mockups/accueil.html, adaptée au grand écran. */

html, body.accueil { height: auto; min-height: 100%; overflow: auto; background: var(--ground); }
.atmo { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.layout { position: relative; z-index: 1; }
.wrap { position: relative; max-width: 560px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top, 0px)) 20px 8px; display: flex; flex-direction: column; gap: 36px; }
.side { position: relative; max-width: 560px; margin: 0 auto; padding: 28px 20px calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }

.hero { display: flex; flex-direction: column; gap: 14px; }
.hero h1 { font-size: 64px; }
.hero h1 .outline { display: block; font-size: 48px; -webkit-text-stroke: 1.5px var(--cyan); }
.wrap p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted-2); }
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.strip figure { margin: 0; }
.strip figcaption { margin-top: 6px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
h2.display { font-size: 38px; }
.sec { gap: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; background: var(--panel); }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--f-display); font-weight: 900; font-size: 40px; line-height: .85; color: var(--cyan); }
.steps b { display: block; margin-bottom: 4px; font-family: var(--f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--fg-strong); line-height: 1; }
.steps span { font-size: 15px; line-height: 1.45; color: var(--muted-2); }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rules li { padding: 12px 0 12px 22px; position: relative; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--fg); }
.rules li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--cyan); }
.no { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.no div { padding: 14px; box-shadow: inset 0 0 0 1px var(--blood); background: var(--blood-deep); font-family: var(--f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1; color: var(--fg-strong); }
.pts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pts div { padding: 14px; background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.pts b { font-family: var(--f-display); font-weight: 900; font-size: 44px; line-height: .85; color: var(--fg-strong); }
.pts span { --fs: 10px; }

.status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); --fs: 11px; }
.status.busy { box-shadow: inset 0 0 0 1px var(--blood); background: var(--blood-deep); }
.status.busy .label { color: var(--fg-strong); }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; }
.live { display: flex; align-items: center; gap: 10px; --fs: 11px; }
.board { list-style: none; margin: 0; padding: 0; }
.board li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; height: 46px; padding: 0 10px; border-top: 1px solid var(--line); overflow: hidden; }
.board .r { font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--muted); }
.board .top .r { color: var(--cyan); }
.board .n { font-size: 16px; font-weight: 600; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .i { --fs: 9px; }
.board .s { font-family: var(--f-display); font-weight: 800; font-size: 24px; color: var(--fg-strong); min-width: 44px; text-align: right; }
.board .last { background: var(--cyan-deep); }
.board .last::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(191, 230, 238, .14), transparent); animation: sweep 3.2s var(--ease-io) infinite; will-change: transform; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.empty { padding: 18px 14px; background: var(--panel); font-size: 15px; line-height: 1.5; color: var(--muted-2); }
.end { padding-top: 18px; border-top: 1px solid var(--line); --fs: 10px; text-align: center; }

/* Grand écran : l'histoire à gauche, le classement collant à droite */
@media (min-width: 1000px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 72px; max-width: 1320px; margin: 0 auto; padding: 56px 56px 64px; }
  .wrap, .side { max-width: none; margin: 0; padding: 0; }
  .side { position: sticky; top: 40px; align-self: start; max-height: calc(100vh - 80px); }
  .side .board { overflow-y: auto; scrollbar-width: none; }
  .hero h1 { font-size: 132px; }
  .hero h1 .outline { font-size: 100px; -webkit-text-stroke-width: 2px; }
  .wrap > .hero p { font-size: 22px; max-width: 760px; }
  .strip { max-width: 640px; }
  .steps { flex-direction: row; }
  .steps li { flex: 1; }
  h2.display { font-size: 52px; }
  .board li { height: 52px; }
  .board .n { font-size: 19px; }
  .board .s { font-size: 28px; }
}
