/* Lecteur commun des vidéos de présentation (5.13.0) : repris tel quel de relickeeper.fr
   (lecteur-film-1.css). Sur l'image, encre claire et or quel que soit le mode jour/nuit (charte §4.5).
   Écart : les archives gardent leur format d'origine (4:3, 16:9…), image entière, sans recadrage. */
.lf { position: relative; overflow: hidden; background: #000; border: 0; border-radius: 6px; } /* sans filet (5.16.0, consigne d'Olivier du 28/10 pour tout l'écosystème) */
.lf video { display: block; width: 100%; height: auto; object-fit: contain; background: #000; border: 0 !important; margin: 0; }
.lf.plein { display: grid; place-items: center; border: 0; border-radius: 0; }
.lf.plein video { height: 100%; object-fit: contain; }
.lf.cache-curseur { cursor: none; }
.lf button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.lf :focus-visible { outline: 2px solid var(--rk-site, #7AE582); outline-offset: -4px; }
.lf svg { display: block; pointer-events: none; } /* le clic revient toujours au bouton (5.15.6) */
.lf [hidden] { display: none !important; }

.lf-disque { position: absolute; inset: 0; display: grid; place-items: center; }
.lf-disque span { width: 74px; height: 74px; border-radius: 50%; background: rgba(0,0,0,.75); border: 1px solid #D4AF37; display: grid; place-items: center; color: #D4AF37; }
.lf-disque svg { width: 24px; height: 24px; margin-left: 4px; }

.lf-barre { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 4px 10px; background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.6)); border-top: 1px solid rgba(212,175,55,.3); transition: opacity .2s; }
.lf-barre.masquee { opacity: 0; pointer-events: none; }
.lf-btn { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; color: #fff !important; transition: color .15s; }
.lf-btn:hover { color: var(--rk-site, #7AE582) !important; }
.lf-btn svg { width: 20px; height: 20px; }
.lf-prog { flex: 1; height: 44px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.lf-prog span { position: relative; display: block; width: 100%; height: 6px; border-radius: 999px; background: rgba(255,255,255,.2); }
.lf-prog i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: linear-gradient(to right, #E5C687, #D4AF37); }
.lf-temps { flex-shrink: 0; min-width: 70px; text-align: center; color: rgba(255,255,255,.8); font-size: 12px; font-variant-numeric: tabular-nums; }

.lf-fin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; text-align: center; background: rgba(0,0,0,.55); }
.lf-revoir { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; color: rgba(255,255,255,.85) !important; font-size: 13px !important; text-decoration: underline; text-underline-offset: 4px; }
.lf-revoir:hover { color: var(--rk-site, #7AE582) !important; }
.lf-revoir svg { width: 16px; height: 16px; }

.lf-echec { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 16px; text-align: center; font-size: 14px; color: #fff; background: rgba(0,0,0,.85); }
.lf-echec a { color: #D4AF37; text-decoration: underline; text-underline-offset: 4px; }

/* Petites vignettes (grilles d'archives) : barre resserrée, le temps cède la place. */
@media (max-width: 640px) {
  .lf-barre { gap: 2px; padding: 4px 6px; }
  .lf-temps { font-size: 11px; }
}
.lf-etroit .lf-temps { display: none; }
.lf-etroit .lf-barre { gap: 0; padding: 2px 4px; }
.lf-etroit .lf-btn { width: 36px; height: 36px; }
.lf-etroit .lf-disque span { width: 56px; height: 56px; }
@media (prefers-reduced-motion: reduce) { .lf-barre { transition: none; } }

/* Cadre et ligne d'informations des vidéos de présentation (5.15.0) : déplacés de bat.html pour servir
   aussi à l'accueil. Les variables des pages ont un repli sur les jetons de la charte. */
.video-frame {
  position: relative;
  background: var(--v-bg);
  border: 0; /* sans filet autour des vidéos (5.16.0) */
  box-shadow: none; /* charte §6 : jamais d'élévation */
  overflow: hidden;
}
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: var(--v-bg); }
.video-frame--wide video { aspect-ratio: 16 / 9; }
.video-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--rule, var(--v-line));
}
.video-meta-tag {
  font-family: var(--mono, var(--font-body)); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted, var(--v-mute)); padding: 5px 9px;
  background: var(--bg2, transparent); border: 1px solid var(--rule, var(--v-line)); border-radius: var(--r-field);
}
.video-meta-tag.gold { color: var(--gold, var(--v-gold)); border-color: var(--gold, var(--v-gold)); }
