/* Open Agency : lecteur bridé des vidéos de présentation (VSL), v41. Repris du lecteur de /presentation/ (v29),
   partagé par toutes les pages qui ont une VSL. Le script est assets/lecteur-vsl.js. */
.lecteur { position: relative; display: grid; background: var(--night-2); border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; text-align: left; }
.lecteur__ecran { position: relative; aspect-ratio: 16 / 9; background: #000; }
.lecteur__video, .lecteur__video iframe, .lecteur__video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lecteur__video video { object-fit: contain; background: #000; }
.lecteur__affiche { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000; color: #fff; font: inherit; }
.lecteur__affiche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lecteur__affiche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 14, 22, 0) 45%, rgba(18, 14, 22, .78)); }
.lecteur__affiche .play { position: relative; z-index: 1; width: 76px; height: 76px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.lecteur__affiche .play svg { width: 26px; height: 26px; }
.lecteur__affiche:hover .play { background: var(--violet); color: #fff; }
.lecteur__affiche:focus-visible { outline: 3px solid var(--violet-light); outline-offset: -3px; }
.lecteur__lancer { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; font-weight: 600; font-size: .95rem; text-align: center; }
.lecteur.is-charge .lecteur__affiche .play { opacity: .6; }
.lecteur__fin, .lecteur__erreur { position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: var(--night); color: var(--on-night); }
.lecteur__fin-cap { font: 500 .82rem/1.3 var(--mono); color: var(--on-night-soft); }
.lecteur__fin-titre { font: 760 clamp(1.4rem, 3.6vw, 2.2rem)/1.1 var(--display); font-stretch: 108%; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.lecteur__fin-txt { max-width: 30rem; color: var(--on-night-soft); }
.lecteur__fin .actions { justify-content: center; margin-top: 8px; }
.lecteur__barre { height: 4px; background: rgba(255, 255, 255, .12); }
.lecteur__barre i { display: block; width: 0; height: 100%; background: var(--violet-light); }
.lecteur__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 12px; color: var(--on-night); }
.lecteur__ctrl button { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; font: 500 .82rem/1 var(--mono); transition: background-color .15s var(--ease); }
.lecteur__ctrl button:hover { background: rgba(255, 255, 255, .08); }
.lecteur__ctrl button:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 1px; }
.lecteur__ctrl svg { width: 20px; height: 20px; }
.lecteur__ctrl .ic-pause, .lecteur.is-lecture .lecteur__ctrl .ic-play { display: none; }
.lecteur.is-lecture .lecteur__ctrl .ic-pause { display: block; }
.lecteur__ctrl .ic-muet, .lecteur.is-muet .lecteur__ctrl .ic-son { display: none; }
.lecteur.is-muet .lecteur__ctrl .ic-muet { display: block; }
.lecteur__ctrl .ic-sortir, .lecteur.is-plein-actif .lecteur__ctrl .ic-entrer { display: none; }
.lecteur.is-plein-actif .lecteur__ctrl .ic-sortir { display: block; }
.lecteur__recul { display: inline-flex !important; gap: 4px; }
.lecteur__temps { margin-right: auto; font: 500 .82rem/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--on-night-soft); white-space: nowrap; }
.lecteur__temps [data-reste] { display: none; }
.lecteur__vitesses { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.lecteur__vitesses span { display: none; padding: 0 8px 0 4px; font: 500 .8rem/1 var(--mono); color: var(--on-night-soft); }
.lecteur__ctrl .lecteur__vitesses button { min-width: 48px; height: 36px; }
.lecteur__ctrl .lecteur__vitesses button[aria-pressed="true"] { background: #fff; color: var(--ink); }
@media (max-width: 520px) {
  .lecteur__ctrl { padding: 8px; }
  .lecteur__temps [data-temps] { display: none; }
  .lecteur__temps [data-reste] { display: inline; }
  .lecteur__vitesses { order: 9; width: 100%; justify-content: flex-start; }
  .lecteur__vitesses span { display: inline; }
  .lecteur__ctrl .lecteur__vitesses button { flex: 1; }
}
/* plein écran : la vidéo prend toute la place, les commandes restent dessous */
.lecteur:fullscreen { display: flex; flex-direction: column; border-radius: 0; background: #000; }
.lecteur:fullscreen .lecteur__ecran { flex: 1; aspect-ratio: auto; min-height: 0; }
.lecteur:-webkit-full-screen { display: flex; flex-direction: column; border-radius: 0; background: #000; }
.lecteur:-webkit-full-screen .lecteur__ecran { flex: 1; aspect-ratio: auto; min-height: 0; }
.lecteur.is-plein { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; border-radius: 0; background: #000; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.lecteur.is-plein .lecteur__ecran { flex: 1; aspect-ratio: auto; min-height: 0; }
html.lecteur-plein, html.lecteur-plein body { overflow: hidden; }
/* v41 : la barre indique où on en est, elle ne réagit à rien */
.lecteur__barre { pointer-events: none; }
.vsl-frame .lecteur { scroll-margin-top: 140px; }
.lecteur__video video { cursor: pointer; }
.lecteur__video video::cue { font-size: clamp(.95rem, 2.6vw, 1.35rem); line-height: 1.35; background: rgba(18, 14, 22, .78); }
/* v41 : volume (ordinateur seulement : sur téléphone, ce sont les boutons du téléphone) */
.lecteur__volume { width: 84px; height: 40px; margin: 0 4px 0 -4px; accent-color: var(--violet-light); cursor: pointer; }
@media (hover: none), (pointer: coarse) { .lecteur__volume { display: none; } }
.lecteur__ctrl [data-cc] { font-weight: 700; letter-spacing: .02em; }
.lecteur__ctrl [data-cc][aria-pressed="true"] { background: #fff; color: var(--ink); }
.lecteur__ctrl [hidden] { display: none !important; }
/* v41 : zones cliquables de l'image de fin (VSL électriciens), visibles à partir de data-fin-video */
.lecteur__spot { position: absolute; z-index: 2; display: none; border-radius: var(--r-ctl); transition: box-shadow .15s var(--ease); }
.lecteur.is-end .lecteur__spot { display: block; }
.lecteur__spot:hover, .lecteur__spot:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .75); }
.lecteur.is-end .lecteur__spot--main { animation: vsl-ring 1.6s ease-out .3s 3; }
@keyframes vsl-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .lecteur.is-end .lecteur__spot--main { animation: none; } }
