/* === Masquer toute l'UI PDF.js (sans casser le JS) === */
#toolbarContainer,
#toolbarViewer,
#secondaryToolbar,
#secondaryToolbarToggle,
#sidebarContainer,
#sidebarToggle,
#findbar,
#viewFind,
#presentationMode,
#openFile,
#print,
#download,
#editorModeButtons,
#editorModeSeparator,
#cursorToolButtons,
#cursorToolButtonsContainer,
#scrollModeButtons,
#spreadModeButtons,
#pageNumber,
#numPages,
#scaleSelectContainer,
#zoomIn,
#zoomOut {
  display: none !important;
}

/* Cache les overlays annexes (selon builds) */
#documentPropertiesDialog,
#documentPropertiesOverlay,
#passwordOverlay {
  display: none !important;
}

/* === Plein écran du contenu === */
#outerContainer,
#mainContainer,
#viewerContainer {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* Important : PDF.js utilise le scroll.
   On garde le scroll, mais on masque la scrollbar. */
#viewerContainer {
  overflow: auto !important;
  scrollbar-width: none;              /* Firefox */
}
#viewerContainer::-webkit-scrollbar {
  width: 0 !important;                /* Chrome/Safari/Edge */
  height: 0 !important;
}

/* Option: empêche sélection/copie de texte (souvent souhaité) */
.textLayer {
  display: none !important;
}