/* PARTIES : le moniteur de la partie d'exemple en boucle (en haut de la page), le lecteur de replay, les images de la partie,
   les vidéos. */
/* le moniteur de la partie en boucle : cadre d'interface, coins en équerre, lignes de balayage, un trait qui balaie */
.hero-live[hidden] { display: none; }
.live-cadre { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--trait2); border-radius: 4px; overflow: hidden; background: #050b13;
  box-shadow: 0 0 0 1px rgba(2, 5, 20, .9), 0 0 26px rgba(169, 146, 250, .22), inset 0 0 40px rgba(0, 0, 0, .6); }
.live-cadre iframe, .live-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; pointer-events: none; }
.live-cadre iframe { opacity: 0; transition: opacity .6s ease; }
.live-cadre iframe.pret { opacity: 1; }
.live-cadre::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(2, 5, 20, .22) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(2, 5, 20, .55)); }
.live-balai { position: absolute; left: 0; right: 0; top: 0; height: 30%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(169, 146, 250, .08) 85%, rgba(169, 146, 250, .32) 99%, transparent); animation: balai 6s linear infinite; }
@keyframes balai { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.dort .live-balai { animation-play-state: paused; }
.equerres { position: relative; }
.equerres::before, .equerres::after { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 3; border: 2px solid var(--rose); filter: drop-shadow(0 0 4px rgba(234, 85, 177, .8)); }
.equerres::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.equerres::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.live-tag { position: absolute; top: 8px; left: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border-radius: 3px; background: rgba(2, 5, 20, .82);
  font-family: var(--titre); text-transform: uppercase; letter-spacing: .1em; font-size: .875rem; color: var(--texte); border: 1px solid var(--trait2); }
.live-tag .ico { color: var(--jaune); }
.live-voile { position: absolute; inset: 0; z-index: 4; }
.live-voile:hover ~ .live-tag, .live-voile:focus-visible ~ .live-tag { border-color: var(--jaune); color: var(--jaune); }
.live-legende { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: 10px; color: var(--texte); font-size: .875rem; text-decoration: none; }
.live-legende span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.live-legende span:last-child { white-space: nowrap; }
.live-legende:hover span:first-child { color: var(--jaune); }

/* ----------------------------------------------------------------------------------------- 5 : les parties */
.lecteur { padding: 10px; }
.lecteur-cadre { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #050b13; border: 1px solid var(--trait2); border-radius: 4px; overflow: hidden; }
.lecteur-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.affiche { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 0; border: 0; cursor: pointer; color: var(--texte); background: #050b13; }
.affiche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; filter: saturate(.95); transition: opacity .3s, transform .8s var(--ressort); }
.affiche::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(4, 9, 34, .1), rgba(4, 9, 34, .75)); pointer-events: none; }
.affiche .jouer { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--jaune); color: var(--jaune);
  background: rgba(4, 9, 34, .6); box-shadow: var(--lueur-jaune), inset 0 0 18px rgba(254, 199, 99, .25); transition: transform .25s var(--ressort), box-shadow .2s; }
.affiche .jouer .ico { width: 40px; height: 40px; margin-left: 6px; fill: currentColor; stroke-width: 1.4; }
.affiche .jouer-mot { position: relative; z-index: 1; font-family: var(--titre); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: 1.1rem; text-shadow: 0 0 10px rgba(4, 9, 34, .9); }
.affiche:hover img { opacity: .75; transform: scale(1.02); }
.affiche:hover .jouer { transform: scale(1.08); box-shadow: 0 0 2px var(--jaune), 0 0 16px var(--jaune), 0 0 40px rgba(254, 199, 99, .5); }
.lecteur-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.lien-bouton { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--lavande); border-radius: var(--rayon); color: var(--lavande); text-decoration: none; font-family: var(--titre); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; transition: box-shadow .15s; background: none; cursor: pointer; }
.lien-bouton:hover { box-shadow: var(--lueur-lavande); }
.sous-titre { margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; font-family: var(--titre); text-transform: uppercase; letter-spacing: .07em; font-size: 1.25rem; }
.sous-titre .ico { color: var(--lavande); }
/* les images de la partie : une pellicule, chaque image avec son instant */
.captures { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; list-style: none; margin: 0; padding: 12px 0; position: relative; }
.captures::before, .captures::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, var(--trait2) 0 10px, transparent 10px 18px); }
.captures::before { top: 0; }
.captures::after { bottom: 0; }
.capture { display: block; width: 100%; padding: 0; border: 1px solid var(--trait); border-radius: 4px; overflow: hidden; background: #050b13; cursor: zoom-in; position: relative; transition: border-color .2s, box-shadow .2s, transform .25s var(--ressort); }
.capture:hover, .capture:focus-visible { border-color: var(--lavande); box-shadow: var(--lueur-lavande); transform: translateY(-3px); }
.capture img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ressort); }
.capture:hover img { transform: scale(1.06); }
.capture span { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; background: rgba(4, 9, 34, .9); border-radius: 3px; font-size: .875rem; font-family: var(--titre); letter-spacing: .05em; color: var(--texte); }
.videos { display: grid; grid-template-columns: 1fr; gap: 14px; }
.video { min-height: 200px; display: flex; flex-direction: column; gap: 10px; }
.video h3 { margin: 0; font-family: var(--titre); text-transform: uppercase; letter-spacing: .07em; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.video video { width: 100%; max-height: 360px; background: #000; border-radius: 4px; }
.video .liste { display: grid; gap: 10px; }
.videos-ligne { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding: 12px 16px; }
.videos-ligne span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--titre); text-transform: uppercase; letter-spacing: .06em; }
.videos-ligne .ico { color: var(--lavande); }
.videos-ligne em { font-style: normal; font-family: inherit; color: var(--discret); text-transform: none; letter-spacing: 0; }

@container page (max-width: 900px) {
  .captures { grid-template-columns: repeat(2, 1fr); }
  .captures li:last-child { grid-column: span 2; }
  .hero-live { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .live-balai { display: none; }
}
