/* =====================================================================
   KEMTY BD — ZOOM RÉEL DU LECTEUR
   À charger après bd.css. Le JS injecte aussi les règles critiques en fin
   de <head> pour éviter les conflits de priorité avec les anciens patchs.
===================================================================== */
body.bd-page .bd-real-zoom-controls {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  min-height: 36px !important;
  padding: 0.22rem !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  white-space: nowrap !important;
}

body.bd-page .bd-real-zoom-btn,
body.bd-page .bd-real-zoom-reset {
  min-width: 36px !important;
  height: 32px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--bd-text, #fff) !important;
  background: transparent !important;
  font: inherit !important;
  font-size: 0.88rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body.bd-page .bd-real-zoom-btn:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

body.bd-page .bd-real-zoom-reset {
  min-width: 64px !important;
  padding: 0 0.55rem !important;
  color: #041018 !important;
  background: linear-gradient(135deg, var(--bd-cyan, #00e5ff), var(--bd-green, #36e29b)) !important;
}

body.bd-page .bd-free-reader-modal.bd-real-zoomed .bd-reader-page-img {
  user-select: none !important;
  -webkit-user-drag: none !important;
}

body.bd-page .bd-free-reader-modal.bd-real-zoomed:not(.bd-real-panning) #bdReaderMain,
body.bd-page .bd-free-reader-modal.bd-real-zoomed:not(.bd-real-panning) #bdReaderPages,
body.bd-page .bd-free-reader-modal.bd-real-zoomed:not(.bd-real-panning) .bd-reader-page-img {
  cursor: grab !important;
}

body.bd-page .bd-free-reader-modal.bd-real-panning,
body.bd-page .bd-free-reader-modal.bd-real-panning * {
  cursor: grabbing !important;
  user-select: none !important;
}

body.bd-page .bd-free-reader-modal.bd-real-pinching #bdReaderMain {
  touch-action: none !important;
  user-select: none !important;
}

@media (max-width: 720px) {
  body.bd-page .bd-real-zoom-controls {
    width: 100% !important;
    grid-column: 1 / -1 !important;
    order: 30 !important;
  }

  body.bd-page .bd-real-zoom-btn {
    min-width: 42px !important;
  }

  body.bd-page .bd-real-zoom-reset {
    min-width: 76px !important;
  }
}
