/* La page TV (535). Pas de grid, pas de gap, pas de variables, pas de color-mix : les navigateurs de TV sont anciens. */
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: #f2f2f2;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; cursor: none; }
.screen { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: none; }
.screen.on { display: block; }

/* Le branchement et les messages */
#pair, #message { background: #0b0b0b; background: radial-gradient(circle at 50% 40%, #2a2118, #0b0b0b 70%); }
.pair-box { position: absolute; left: 10%; right: 10%; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); text-align: center; }
.logo { font-family: Georgia, serif; font-size: 34px; opacity: .9; }
.code { font-family: Consolas, "DejaVu Sans Mono", monospace; font-size: 120px; letter-spacing: 24px; margin: 30px 0; color: #fff; }
.pair-box p { font-size: 30px; margin: 10px 0; opacity: .85; line-height: 1.4; }
.faint { opacity: .5 !important; font-size: 24px !important; }

/* Le diaporama : deux images superposées, un fondu de l'une à l'autre */
.slide { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0;
  -webkit-transition: opacity 1.2s ease; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; }

.legend { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 4% 3%;
  background: -webkit-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,.75));
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.75));
  display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: flex-end; align-items: flex-end;
  opacity: 0; -webkit-transition: opacity .8s; transition: opacity .8s; }
.legend.on { opacity: 1; }
.legend-text { -webkit-flex: 1; flex: 1; min-width: 0; }
.lg-title { font-family: Georgia, serif; font-size: 44px; line-height: 1.2; }
.lg-sub { font-size: 26px; opacity: .85; margin-top: 6px; }
.lg-caption { font-size: 24px; opacity: .75; margin-top: 8px; max-width: 70%; }
.lg-count { font-size: 22px; opacity: .65; margin-left: 30px; white-space: nowrap; }

.badge { position: absolute; top: 4%; right: 3%; background: rgba(0,0,0,.6); border-radius: 40px; padding: 10px 26px;
  font-size: 24px; display: none; }
.badge.on { display: block; }

/* Le menu (touche OK) */
.menu { position: absolute; left: 0; top: 0; bottom: 0; width: 34%; background: rgba(12,12,12,.92); padding: 4% 2.5%;
  box-sizing: border-box; display: none; }
.menu.on { display: block; }
.menu-title { font-family: Georgia, serif; font-size: 36px; margin-bottom: 26px; }
.mi { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between;
  font-size: 26px; padding: 12px 18px; border-radius: 8px; margin-bottom: 4px; cursor: pointer; }
.mi span:last-child { opacity: .7; margin-left: 16px; white-space: nowrap; }
.mi.sel { background: #e08a5c; color: #111; font-weight: 600; }
.mi.sel span:last-child { opacity: 1; }
.mi.cur span:first-child:before { content: "● "; }
.msep { height: 1px; background: #333; margin: 14px 0; }
#menu-items { max-height: 75%; overflow: hidden; }
.menu-hint { position: absolute; left: 2.5%; right: 2.5%; bottom: 4%; font-size: 20px; opacity: .6; }

/* La nuit */
#night { background: #000; }
.clock { position: absolute; left: 0; right: 0; top: 50%; margin-top: -60px; text-align: center; font-size: 100px; color: #444; }
