/* Flipbook PDF */
.fb {
	--fb-bg: transparent;
	--fb-bar: #1d1d1f;
	--fb-bar-fg: #fff;
	position: relative;
	margin: 1.5em 0;
	background: var(--fb-bg);
	outline: none;
}
.fb:focus-visible { box-shadow: 0 0 0 2px #2271b1; }

.fb-stage {
	position: relative;
	min-height: 120px;
	width: 100%;
	margin: 0 auto;
}
.fb-book {
	width: 100%;
	margin: 0 auto;
}

.fb-page {
	background: #fff;
	overflow: hidden;
}
.fb-page canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* Zones cliquables (liens du PDF) */
.fb-links { position: absolute; inset: 0; pointer-events: none; }
.fb-link {
	position: absolute;
	pointer-events: auto;
	border-radius: 2px;
	transition: background .15s ease;
}
.fb-link:hover, .fb-link:focus-visible { background: rgba(255, 213, 0, .25); }

/* Chargement / erreur */
.fb-status {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	justify-content: center;
	font-size: .95em;
	opacity: .75;
}
.fb-status[hidden] { display: none; }

/* Barre de navigation */
.fb-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: max-content;
	max-width: 100%;
	margin: 14px auto 0;
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--fb-bar);
	color: var(--fb-bar-fg);
}
.fb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit !important;
	cursor: pointer;
	transition: background .15s ease;
}
.fb-btn:hover, .fb-btn:focus-visible { background: rgba(255, 255, 255, .15); outline: none; }
.fb-btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.fb-count {
	min-width: 84px;
	text-align: center;
	font: 500 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
	font-variant-numeric: tabular-nums;
}
.fb-sep { width: 1px; height: 20px; margin: 0 4px; background: rgba(255, 255, 255, .25); }

/* Plein écran */
.fb:fullscreen,
.fb:-webkit-full-screen,
.fb.fb-max {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0;
	padding: 20px;
	background: #2a2a2c;
}
.fb.fb-max {
	position: fixed;
	inset: 0;
	z-index: 999999;
}
html.fb-lock, html.fb-lock body { overflow: hidden; }

@media (max-width: 480px) {
	.fb-first, .fb-last { display: none; }
}

/* Protection */
.fb[data-protect="1"] {
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}
.fb[data-protect="1"] canvas { pointer-events: none; }
@media print {
	.fb[data-protect="1"] { display: none !important; }
}
