/* OFFLINE PREVIEW — vidéo maximisée dynamiquement + emphase phrase FAQ. */
.book-video-overlay{
  padding:clamp(12px,2.4%,22px)!important;
}
.book-video-overlay iframe,
.book-video-overlay video,
.book-video-local-preview{
  width:100%!important;
  max-width:none!important;
  max-height:100%!important;
  aspect-ratio:16/9!important;
}
.book-video-local-preview{
  padding:clamp(16px,3vw,28px)!important;
}
.mobile-scene{
  padding:clamp(10px,2.5vw,16px)!important;
}
.mobile-scene iframe,
.mobile-scene video,
.mobile-scene .book-video-local-preview{
  width:100%!important;
  max-width:none!important;
  aspect-ratio:16/9!important;
}
.book-scroll-emphasis{
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

/* V2 — verrouille strictement la vidéo dans la page droite du livre. */
.book-video-overlay{
  left:50%!important;
  right:0!important;
  top:0!important;
  width:auto!important;
  max-width:none!important;
  height:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  padding:clamp(14px,2.6%,22px)!important;
}
.book-video-overlay > iframe,
.book-video-overlay > video,
.book-video-overlay > .book-video-local-preview{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  max-height:100%!important;
  aspect-ratio:16/9!important;
  box-sizing:border-box!important;
  justify-self:stretch!important;
  align-self:center!important;
  margin:0!important;
}
.book-video-local-preview{
  overflow:hidden!important;
}


/* V9 — vidéo sous la feuille qui tourne, sans placeholder blanc. */
.book-video-overlay{
  z-index:10!important; /* au-dessus de la page droite (z2), sous la feuille tournante (z30) */
  background:var(--paper)!important;
}
.book-video-local-preview{
  display:grid!important;
  place-items:center!important;
  background:#111!important;
  color:#fff!important;
  border-radius:8px!important;
  box-shadow:0 10px 26px rgba(0,0,0,.16)!important;
}
.book-video-local-preview a{
  color:#fff!important;
  text-decoration:none!important;
  font-weight:800!important;
  text-align:center!important;
}


/* V10 — pendant le retournement d'une page vidéo : rectangle noir statique, zéro iframe. */
.book-video-turn-placeholder,
.turn-video-placeholder{
  background:#111!important;
  border-radius:8px!important;
  box-shadow:0 10px 26px rgba(0,0,0,.16)!important;
  aspect-ratio:16/9!important;
}
.book-video-turn-placeholder{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  max-height:100%!important;
  justify-self:stretch!important;
  align-self:center!important;
}
.turn-video-placeholder{
  position:absolute!important;
  z-index:7!important;
  left:2.6%!important;
  right:2.6%!important;
  top:50%!important;
  width:auto!important;
  height:auto!important;
  transform:translateY(-50%)!important;
  pointer-events:none!important;
}
.turn-video-placeholder[hidden]{display:none!important;}
