/* Lecteur de la vidéo de présentation (video/opuscv-video.js).
   Autonome : ses couleurs sont déclarées ici, pour qu'il rende pareil dans la
   landing et sur /video/. Tout est préfixé « ovl- ». */
.ovl {
  --ovl-brand-400: #c8703c;
  --ovl-brand-500: #b5572a;
  --ovl-brand-600: #a34c22;
  --ovl-brand-50: #fbeee7;
  --ovl-ink: #2a2420;
  --ovl-muted: #6b5f52;
  --ovl-surface: #fbf7ef;
  --ovl-line: #e2d5c2;
  color: var(--ovl-ink);
}
.ovl-ecran {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden; background: var(--ovl-surface);
  box-shadow: 0 18px 50px rgba(42, 36, 32, 0.16), 0 0 0 1px var(--ovl-line);
}
.ovl-ecran canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.ovl-ecran:fullscreen { border-radius: 0; background: #000; display: flex; align-items: center; }
.ovl-ecran:fullscreen canvas { height: auto; max-height: 100%; aspect-ratio: 16 / 9; object-fit: contain; }

.ovl-grand {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(42, 36, 32, 0.30); border: 0; cursor: pointer; color: #fff; font: inherit;
  transition: background-color .2s ease;
}
.ovl-grand:hover { background: rgba(42, 36, 32, 0.40); }
.ovl-grand[hidden] { display: none; }
.ovl-rond {
  width: clamp(60px, 11vw, 104px); height: clamp(60px, 11vw, 104px); border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ovl-brand-400), var(--ovl-brand-600));
  box-shadow: 0 12px 30px rgba(163, 76, 34, .45);
  transition: transform .18s ease;
}
.ovl-grand:hover .ovl-rond { transform: scale(1.06); }
.ovl-rond svg { width: 42%; height: 42%; margin-left: 6%; }
.ovl-legende { font-weight: 700; font-size: clamp(14px, 2vw, 18px); text-shadow: 0 1px 8px rgba(0,0,0,.4); padding: 0 16px; text-align: center; }
.ovl-grand:focus-visible { outline: 3px solid var(--ovl-brand-400); outline-offset: -3px; }

.ovl-commandes {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 8px 10px; border-radius: 14px;
  background: var(--ovl-surface); border: 1px solid var(--ovl-line);
}
.ovl-ctl {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--ovl-line); background: #fff; color: var(--ovl-ink);
  cursor: pointer; font: inherit; font-weight: 600; font-size: 14px;
}
.ovl-ctl:hover { border-color: var(--ovl-brand-400); color: var(--ovl-brand-600); }
.ovl-ctl:focus-visible, .ovl-piste:focus-visible, .ovl-chapitres button:focus-visible { outline: 2px solid var(--ovl-brand-500); outline-offset: 2px; }
.ovl-ctl svg { width: 18px; height: 18px; }
.ovl-temps { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ovl-muted); min-width: 88px; text-align: center; }
.ovl-piste { position: relative; flex: 1 1 200px; height: 40px; cursor: pointer; touch-action: none; border-radius: 8px; }
.ovl-rail { position: absolute; left: 0; right: 0; top: 17px; height: 6px; border-radius: 6px; background: var(--ovl-line); }
.ovl-fait { position: absolute; left: 0; top: 17px; height: 6px; border-radius: 6px; background: var(--ovl-brand-500); width: 0; }
.ovl-tete { position: absolute; top: 11px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--ovl-brand-500); left: 0; }
.ovl-repere { position: absolute; top: 14px; width: 2px; height: 12px; background: var(--ovl-surface); }
.ovl-export { margin-left: auto; }

.ovl-chapitres { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ovl-chapitres button {
  border: 1px solid var(--ovl-line); background: #fff; border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ovl-muted); cursor: pointer;
}
.ovl-chapitres button:hover { border-color: var(--ovl-brand-400); color: var(--ovl-brand-600); }
.ovl-chapitres button[aria-current="true"] { background: var(--ovl-brand-50); border-color: var(--ovl-brand-400); color: var(--ovl-brand-600); }
.ovl-note { color: var(--ovl-muted); font-size: 14px; margin: 12px 0 0; min-height: 1.5em; }
.ovl-note strong { color: var(--ovl-brand-600); }

@media (max-width: 640px) {
  .ovl-ecran { border-radius: 12px; }
  .ovl-temps { min-width: 0; }
  .ovl-export { margin-left: 0; }
  .ovl-chapitres { justify-content: flex-start; }
}
