/* BodyTime — lecteur vidéo maison (06/11/2026). Couleur du programme : --btp-acc */
.btp{position:relative;width:100%;aspect-ratio:16/9;background:#000;overflow:hidden;line-height:0;
  --btp-acc:#E3C045;--btp-ink:#fff;outline:none}
.btp:focus-visible{box-shadow:0 0 0 3px var(--btp-acc)}
/* 08/11 : height:100% se resolvait a ZERO quand le lecteur tient sa hauteur de
   ses ancrages (inset) et non d'une hauteur declaree -- la video faisait 1200x0,
   d'ou le son sans image. On la cale par ses quatre cotes : sa hauteur ne depend
   plus d'un pourcentage. */
.btp .btp-v{position:absolute;top:0;left:0;width:100%;height:100%;display:block;
  object-fit:contain;background:#000}

/* roue d'attente */
.btp .btp-charge{position:absolute;inset:0;display:none;align-items:center;justify-content:center;pointer-events:none}
.btp.btp-attend .btp-charge{display:flex}
.btp .btp-charge span{width:42px;height:42px;border-radius:50%;
  border:3px solid rgba(255,255,255,.25);border-top-color:var(--btp-acc);
  animation:btpTourne .9s linear infinite}
@keyframes btpTourne{to{transform:rotate(360deg)}}

/* gros bouton central */
.btp .btp-gros{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:68px;height:68px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(0,0,0,.62);
  display:flex;align-items:center;justify-content:center;padding:0;
  transition:transform .15s ease,background .15s ease}
.btp .btp-gros:hover{transform:translate(-50%,-50%) scale(1.06);background:rgba(0,0,0,.7)}
.btp .btp-gros svg{width:30px;height:30px;fill:var(--btp-ink);margin-left:3px}

/* chapitre courant */
.btp .btp-chapitre{position:absolute;top:12px;left:12px;max-width:70%;
  background:rgba(0,0,0,.6);color:var(--btp-ink);font-size:12.5px;font-weight:700;
  padding:5px 10px;border-radius:8px;line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* barre du bas */
.btp .btp-bas{position:absolute!important;left:0!important;right:0!important;bottom:0!important;
  top:auto!important;height:auto!important;padding:0 10px 8px;
  background:linear-gradient(to top,rgba(0,0,0,.82),rgba(0,0,0,.45) 55%,transparent);
  opacity:1;transition:opacity .2s ease}
/* 08/11 : la barre etait masquee par :hover. Sur telephone le survol n'existe pas,
   donc elle disparaissait des le debut de la lecture et ne revenait jamais
   (« on peut pas avancer ou reculer avec la barre »). C'est maintenant le lecteur
   qui decide, par la classe btp-repos, et le doigt la rappelle au premier appui. */
.btp.btp-repos .btp-bas{opacity:0;pointer-events:none}
.btp.btp-repos .btp-chapitre{opacity:0;transition:opacity .2s ease}
.btp.btp-repos:focus-within .btp-bas{opacity:1;pointer-events:auto}

/* progression */
.btp .btp-barre{position:relative!important;height:16px!important;min-height:0!important;max-height:16px!important;
  width:auto!important;cursor:pointer;touch-action:none;outline:none;display:block!important}
.btp .btp-barre::before{content:'';position:absolute;left:0;right:0;top:7px;height:4px;
  border-radius:2px;background:rgba(255,255,255,.28)}
.btp .btp-tampon,.btp .btp-joue{position:absolute;left:0;top:7px;height:4px;border-radius:2px}
.btp .btp-tampon{background:rgba(255,255,255,.42);width:0}
.btp .btp-joue{background:var(--btp-acc);width:0}
.btp .btp-curseur{position:absolute;top:50%;left:0;width:12px;height:12px;border-radius:50%;
  background:var(--btp-acc);transform:translate(-50%,-50%);box-shadow:0 1px 3px rgba(0,0,0,.5);
  opacity:0;transition:opacity .15s ease}
.btp .btp-barre:hover .btp-curseur,.btp .btp-barre:focus-visible .btp-curseur{opacity:1}
.btp .btp-barre:focus-visible::before{box-shadow:0 0 0 2px var(--btp-acc)}
.btp .btp-reperes{position:absolute;left:0;right:0;top:7px;height:4px;pointer-events:none}
.btp .btp-rep{position:absolute;top:0;width:2px;height:4px;background:rgba(0,0,0,.65)}

/* commandes */
.btp .btp-ligne{display:flex!important;align-items:center!important;gap:4px;padding-top:2px;
  height:auto!important;min-height:0!important;position:static!important;width:auto!important}
.btp .btp-b{border:0;background:transparent;cursor:pointer;padding:6px;border-radius:8px;
  height:auto!important;min-height:0!important;position:static!important;
  display:inline-flex;align-items:center;justify-content:center;line-height:0}
.btp .btp-b svg{width:21px;height:21px;fill:var(--btp-ink)}
.btp .btp-b:hover{background:rgba(255,255,255,.14)}
.btp .btp-b:focus-visible{outline:2px solid var(--btp-acc);outline-offset:1px}
.btp .btp-temps{color:var(--btp-ink);font-size:12.5px;font-variant-numeric:tabular-nums;
  padding:0 6px;white-space:nowrap;line-height:1}
.btp .btp-espace{flex:1 1 auto}
.btp .btp-vol{width:74px;height:4px;appearance:none;background:rgba(255,255,255,.3);
  border-radius:2px;cursor:pointer;margin:0 4px}
.btp .btp-vol::-webkit-slider-thumb{appearance:none;width:11px;height:11px;border-radius:50%;
  background:var(--btp-acc);cursor:pointer}
.btp .btp-vol::-moz-range-thumb{width:11px;height:11px;border:0;border-radius:50%;background:var(--btp-acc)}

/* menu qualité / sous-titres */
.btp .btp-menu{position:absolute;right:10px;bottom:52px;min-width:134px;
  background:rgba(18,18,20,.96);border-radius:10px;padding:5px;z-index:4;
  box-shadow:0 6px 24px rgba(0,0,0,.5);line-height:normal}
.btp .btp-mi{display:block;width:100%;text-align:left;border:0;background:transparent;
  color:var(--btp-ink);font-size:13px;padding:7px 10px;border-radius:7px;cursor:pointer;
  font-family:inherit}
.btp .btp-mi:hover{background:rgba(255,255,255,.12)}
.btp .btp-mi.on{color:var(--btp-acc);font-weight:700}

/* sous-titres natifs */
.btp .btp-v::cue{background:rgba(0,0,0,.72);color:#fff;font-size:.95em;line-height:1.35}

@media(max-width:560px){
  .btp .btp-vol{display:none}
  .btp .btp-temps{font-size:11.5px;padding:0 3px}
  .btp .btp-b{padding:5px}
  .btp .btp-b svg{width:19px;height:19px}
  .btp .btp-gros{width:56px;height:56px}
  .btp .btp-gros svg{width:25px;height:25px}
}
@media(prefers-reduced-motion:reduce){
  .btp .btp-charge span{animation-duration:2s}
  .btp .btp-gros,.btp .btp-bas,.btp .btp-curseur{transition:none}
}

/* diffusion en cours sur un téléviseur */
.btp.btp-distant .btp-v{opacity:.35}
.btp.btp-distant::after{content:'Diffusion sur le téléviseur';position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);color:#fff;font-size:14px;font-weight:700;
  background:rgba(0,0,0,.6);padding:8px 14px;border-radius:10px;line-height:1.3}

/* intitulés de section dans le menu Réglages */
.btp .btp-sec{color:rgba(255,255,255,.55);font-size:10.5px;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;padding:8px 10px 4px;line-height:1.2}
.btp .btp-sec:first-child{padding-top:4px}
.btp .btp-menu{max-height:min(62vh,330px);overflow-y:auto;overscroll-behavior:contain}

/* Le lecteur prend la place d'une <iframe>. Certaines pages dimensionnent l'iframe
   elle-meme (conteneur a hauteur nulle + padding-bottom) : la regle ne s'applique
   plus a un <div>, et le lecteur se retrouvait sans hauteur -- son sans image.
   On reprend donc exactement la boite prevue pour l'iframe. */
.embedresize div > .btp{position:absolute;inset:0;aspect-ratio:auto;border-radius:30px}
.bt-bu-bonus-ecran > .btp{position:absolute;inset:0;aspect-ratio:auto}

/* Au doigt : pas de survol pour reveler le curseur, et 4 px de rail c'est introuvable. */
@media (pointer:coarse){
  .btp .btp-barre{height:30px}
  .btp .btp-barre::before,.btp .btp-tampon,.btp .btp-joue,.btp .btp-reperes{top:13px;height:5px}
  .btp .btp-curseur{opacity:1;width:16px;height:16px}
  .btp .btp-b{padding:8px 7px}
  .btp .btp-vol{display:none}
}

/* Le lecteur n'est pose qu'a l'approche (pour ne pas charger vingt flux d'un coup
   au chargement de la page). En attendant, on montre une vignette sobre plutot
   qu'un rectangle noir qui a l'air casse. */
.btp[data-btp-src]:not([data-btp-on]){background:#121214}
.btp[data-btp-src]:not([data-btp-on])::before{content:'';position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);width:62px;height:62px;border-radius:50%;background:rgba(255,255,255,.12)}
.btp[data-btp-src]:not([data-btp-on])::after{content:'';position:absolute;top:50%;left:50%;
  transform:translate(-38%,-50%);border-style:solid;border-width:11px 0 11px 18px;
  border-color:transparent transparent transparent rgba(255,255,255,.8)}

/* ---- Le lecteur ne doit rien heriter de la page qui l'accueille ----
   08/11/2026 : sur la page d'une seance, une regle de la page applique
   padding-bottom:56.25% a TOUS les div qu'elle contient -- y compris ceux du
   lecteur. Resultat : la barre de commandes mesurait 664 px de haut, recouvrait
   toute la video, l'assombrissait et avalait les clics (PJ : « y a l'image mais
   pas cliquable »). On remet donc nos marges interieures a plat. */
.btp{padding:0!important}
.btp .btp-charge,.btp .btp-chapitre,.btp .btp-menu,.btp .btp-barre,
.btp .btp-tampon,.btp .btp-joue,.btp .btp-reperes,.btp .btp-curseur,.btp .btp-rep{padding:0!important}
.btp .btp-bas{padding:0 10px 8px!important}
.btp .btp-ligne{padding:2px 0 0!important}
.btp .btp-b{padding:6px!important}
.btp .btp-gros{padding:0!important}
.btp .btp-sec{padding:7px 12px 3px!important}
.btp .btp-mi{padding:8px 12px!important}
@media (pointer:coarse){ .btp .btp-b{padding:8px 7px!important} }

/* La meme page impose aussi height:0 a ses div (l'autre moitie de la ruse de ratio).
   Le menu Reglages heritait donc d'une hauteur nulle : il s'ouvrait invisible
   (PJ : « bouton reglage marche pas »). On fixe nous-memes toutes nos hauteurs. */
.btp .btp-bas,.btp .btp-ligne,.btp .btp-menu,.btp .btp-chapitre,
.btp .btp-sec,.btp .btp-mi,.btp .btp-vol{height:auto!important;min-height:0!important}
.btp .btp-charge{height:auto!important;top:0!important;right:0!important;bottom:0!important;left:0!important}
.btp .btp-barre{height:16px!important}
.btp .btp-barre::before,.btp .btp-tampon,.btp .btp-joue,.btp .btp-reperes{height:4px!important}
.btp .btp-rep{height:4px!important}
.btp .btp-curseur{height:12px!important;width:12px!important}
.btp .btp-gros{height:68px!important;width:68px!important}
.btp .btp-b svg{height:21px!important;width:21px!important}
.btp .btp-gros svg{height:30px!important;width:30px!important}
@media (pointer:coarse){
  .btp .btp-barre{height:30px!important}
  .btp .btp-barre::before,.btp .btp-tampon,.btp .btp-joue,.btp .btp-reperes{height:5px!important}
  .btp .btp-curseur{height:16px!important;width:16px!important}
  .btp .btp-gros{height:56px!important;width:56px!important}
  .btp .btp-gros svg{height:25px!important;width:25px!important}
}

/* Le menu Reglages ne doit jamais deborder du lecteur : dans la fenetre de seance
   il passait par-dessus la croix de fermeture (PJ 08/11). */
.btp .btp-menu{max-height:calc(100% - 64px)!important;overflow:auto}

/* [BT 11/11/2026] Plein ecran perdu sur les anciens programmes (signale par un client
   sur Wolf 1). Le cadre de ces gabarits est prevu pour une iframe :
   « .embedresize div { height:0; padding-bottom:56.25% } » donne le ratio au parent, et
   l iframe venait le remplir en absolu. La regle « .embedresize div > .btp » ci-dessus
   remet bien le lecteur maison en absolu, MAIS « .embedresize div » matche aussi le
   lecteur (c est un div) et lui imposait height:0 : la barre de controle, donc le
   bouton plein ecran, tombait hors du cadre. On lui rend sa hauteur. */
.embedresize div > .btp{height:auto}

/* 12/11/2026 : lecteur pose a la place d'une iframe en position:absolute,
   dans une boite a ratio (padding:177.78%). Il doit remplir la boite :
   sans ca il tombait sous elle et laissait un grand vide a la place de
   la video, et il imposait un 16/9 a des videos verticales. */
.btp.btp-cale{position:absolute;top:0;left:0;width:100%;height:100%;aspect-ratio:auto}
