/* Lecteur de magazines / livres (PDF) — librairie Amstrad.eu. */
.alib-rd-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column;
	background: #1b1d22; color: #f3f3f5; }
/* Barre d'outils bien visible (fond clair contrasté + séparation nette). */
.alib-rd-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	padding: 8px 12px; background: #30343d; border-bottom: 2px solid #565b66; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.alib-rd-title { font: 700 15px/1.3 system-ui, "Segoe UI", Arial, sans-serif; margin-right: auto;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34%; color: #fff; }
.alib-rd-nav, .alib-rd-tools { display: inline-flex; align-items: center; gap: 6px;
	font: 700 14px/1 system-ui, Arial, sans-serif; color: #fff; }
.alib-rd-btn { cursor: pointer; border: 1px solid #6b7180; background: #474d59; color: #fff;
	border-radius: 6px; min-width: 38px; height: 36px; padding: 0 10px; font: inherit; font-size: 18px; }
.alib-rd-btn:hover { background: #5a616f; border-color: #8a90a0; }
.alib-rd-btn:disabled { opacity: .35; cursor: default; }
.alib-rd-close { background: #b23b3b; border-color: #c75050; font-size: 17px; }
.alib-rd-close:hover { background: #c74444; border-color: #e06a6a; }
.alib-rd-page { width: 3.6em; text-align: center; background: #1e2127; color: #fff;
	border: 1px solid #6b7180; border-radius: 6px; height: 36px; font: 700 15px/1 inherit; }
.alib-rd-total { opacity: .9; font-weight: 700; }

/* Barre de recherche plein-texte. */
.alib-rd-findbar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
	padding: 7px 12px; background: #272a31; border-bottom: 1px solid #565b66; }
.alib-rd-findbar[hidden] { display: none; }
.alib-rd-find-in { flex: 1 1 auto; max-width: 440px; height: 34px; padding: 0 10px;
	border: 1px solid #6b7180; border-radius: 6px; background: #1e2127; color: #fff;
	font: 600 14px/1 system-ui, "Segoe UI", Arial, sans-serif; }
.alib-rd-find-in:focus { outline: 2px solid #6a3fb0; outline-offset: 1px; }
.alib-rd-find-ct { color: #cfd2d8; font: 700 13px/1 system-ui, Arial, sans-serif;
	min-width: 5.5em; white-space: nowrap; }

.alib-rd-stage { flex: 1 1 auto; overflow: auto; display: flex; align-items: safe center;
	justify-content: safe center; padding: 12px; cursor: grab; background:
		radial-gradient(circle at 50% 40%, #2a2d34 0%, #1b1d22 70%); }
.alib-rd-stage.alib-rd-grabbing { cursor: grabbing; user-select: none; }
.alib-rd-stage.alib-rd-grabbing .alib-rd-canvas { pointer-events: none; }
.alib-rd-pages { display: inline-flex; gap: 10px; align-items: flex-start; }
.alib-rd-canvas { display: block; background: #fff; box-shadow: 0 6px 30px rgba(0,0,0,.5); border-radius: 2px; }
.alib-rd-loading, .alib-rd-err { color: #c9cbd0; font: 600 15px/1.5 system-ui, Arial, sans-serif; text-align: center; padding: 40px; }
.alib-rd-err { max-width: 420px; }

/* Grandes flèches latérales pour tourner les pages (comme un magazine). */
.alib-rd-side { position: absolute; top: 48px; bottom: 0; width: 11%; min-width: 54px; max-width: 130px;
	border: 0; background: transparent; color: #fff; font: 400 46px/1 system-ui, Arial, sans-serif;
	cursor: pointer; opacity: .3; z-index: 5; display: flex; align-items: center; justify-content: center;
	transition: opacity .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.alib-rd-side-prev { left: 0; }
.alib-rd-side-next { right: 0; }
.alib-rd-side:hover { opacity: 1; }
.alib-rd-side-prev:hover { background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0)); }
.alib-rd-side-next:hover { background: linear-gradient(270deg, rgba(0,0,0,.45), rgba(0,0,0,0)); }
.alib-rd-side:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 820px) {
	.alib-rd-side { opacity: .5; font-size: 34px; }
	.alib-rd-title { max-width: 100%; order: -1; width: 100%; margin: 0 0 2px; }
	.alib-rd-bar { gap: 6px; }
}

.alib-btn--read { background: #6a3fb0; border-color: #6a3fb0; color: #fff; }
.alib-btn--read:hover { background: #5a339c; }
