/* Lecteur vidéo du site (21/11/2026) : même habillage que le lecteur des films (/film/lecteur001.css, classes vlec__*),
   pour la cohérence de marque. lecteur-site001.js pose ce calque par-dessus chaque <video controls> du site, sans déplacer
   la vidéo (les mises en page visent souvent « … > video »). Préfixe .qv : rien ne fuit vers le reste de la page. */
.qv { --qv-accent: #666fec; --qv-accent-2: #8b5cf6; position: absolute; z-index: 2; display: block; box-sizing: border-box;
  overflow: hidden; color: #fff; font-family: 'QRC Texte', Arial, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none; }
.qv[hidden] { display: none; }
.qv *, .qv *::before, .qv *::after { box-sizing: border-box; }
.qv button { font: inherit; }
.qv :focus-visible { outline: 2px solid var(--qv-accent); outline-offset: 2px; }

/* Bouton central */
.qv__big { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px;
  margin: -32px 0 0 -32px; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 23, 42, 0.55); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity 0.35s ease, transform 0.15s ease, background 0.2s ease; }
.qv__big:active { transform: scale(0.94); }
.qv__big svg { width: 30px; height: 30px; fill: currentColor; }
.qv__big .is-pause, .qv.is-playing .qv__big .is-play { display: none; }
.qv.is-playing .qv__big .is-pause { display: block; }
.qv.is-waiting .qv__big { opacity: 0; pointer-events: none; }
.qv.is-small .qv__big { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.qv.is-small .qv__big svg { width: 22px; height: 22px; }

.qv__spinner { position: absolute; left: 50%; top: 50%; z-index: 1; display: none; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 3px solid rgba(255, 255, 255, 0.18); border-top-color: var(--qv-accent-2); border-radius: 50%; pointer-events: none;
  animation: qv-spin 0.8s linear infinite; }
.qv.is-waiting .qv__spinner { display: block; }
@keyframes qv-spin { to { transform: rotate(360deg); } }

/* Barre du bas : temps, barre de lecture, son, plein écran */
.qv__controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 6px;
  padding: 26px 8px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); cursor: default;
  transition: opacity 0.35s ease; touch-action: none; }
.qv.is-idle .qv__controls, .qv.is-idle .qv__big { opacity: 0; pointer-events: none; }
.qv.is-idle { cursor: none; }
.qv.is-fresh .qv__controls { opacity: 0; pointer-events: none; }
.qv__time { flex: none; width: 3.4em; color: #f1f5f9; font-size: 0.74rem; font-variant-numeric: tabular-nums; text-align: center;
  line-height: 1; }
.qv.is-long .qv__time { width: 4.4em; }
.qv__track { --p: 0; --b: 0; position: relative; flex: 1; height: 40px; cursor: pointer; touch-action: none; }
.qv__rail { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; overflow: hidden; border-radius: 999px;
  background: rgba(255, 255, 255, 0.28); transition: height 0.15s ease, margin 0.15s ease; }
.qv__buffered, .qv__progress { position: absolute; top: 0; bottom: 0; left: 0; }
.qv__buffered { width: calc(var(--b) * 100%); background: rgba(255, 255, 255, 0.32); }
.qv__progress { width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--qv-accent), var(--qv-accent-2)); }
.qv__knob { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(102, 111, 236, 0.35), 0 1px 4px rgba(0, 0, 0, 0.4); transition: transform 0.15s ease; }
.qv__track:hover .qv__rail, .qv__track.is-dragging .qv__rail { height: 6px; margin-top: -3px; }
.qv__track.is-dragging .qv__knob { transform: scale(1.4); }
.qv__bubble { position: absolute; bottom: 36px; left: calc(var(--p) * 100%); padding: 4px 9px; border-radius: 8px;
  background: rgba(15, 23, 42, 0.94); color: #fff; font-size: 0.82rem; font-weight: 650; font-variant-numeric: tabular-nums;
  white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity 0.15s ease; }
.qv__track.is-dragging .qv__bubble { opacity: 1; }

/* Boutons ronds : son et plein écran, icônes animées (mêmes dessins que /film) */
.qv__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer; transition: background 0.2s ease, transform 0.15s ease; }
.qv__icon:active { background: rgba(102, 111, 236, 0.35); transform: scale(0.92); }
.qv__icon svg { width: 22px; height: 22px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
  stroke-linejoin: round; }
.qv__icon .spk { fill: currentColor; stroke: none; }
.qv__icon .w1, .qv__icon .w2, .qv__icon .x { transform-box: fill-box; transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1); }
.qv__icon .w1, .qv__icon .w2 { transform-origin: left center; }
.qv__icon .x { transform-origin: center; opacity: 0; transform: scale(0.3) rotate(-45deg); }
.qv.is-muted .qv__icon .w1, .qv.is-muted .qv__icon .w2 { opacity: 0; transform: scale(0.3); }
.qv.is-muted .qv__icon .x { opacity: 1; transform: none; }
.qv__icon .c { transform-box: fill-box; transform-origin: center; transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1); }
.qv.is-small .qv__time { display: none; }
@media (hover: hover) {
  .qv__icon:hover { background: rgba(255, 255, 255, 0.12); }
  .qv__icon--fs:hover .c1 { transform: translate(-1.5px, -1.5px); }
  .qv__icon--fs:hover .c2 { transform: translate(1.5px, -1.5px); }
  .qv__icon--fs:hover .c3 { transform: translate(1.5px, 1.5px); }
  .qv__icon--fs:hover .c4 { transform: translate(-1.5px, 1.5px); }
  .qv__big:hover { background: rgba(102, 111, 236, 0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .qv__spinner { animation-duration: 2s; }
  .qv *, .qv { transition: none !important; }
}
