/* Vivagro Catalogue Flipbook 1.0.0 */

.vcf-viewer {
	--vcf-green: #0a4a1f;
	--vcf-lime: #8cc21f;
	--vcf-height: 80vh;
	--vcf-bg: #eceee9;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: var(--vcf-height);
	min-height: 420px;
	margin: 1.5em 0;
	background: var(--vcf-bg);
	border-radius: 10px;
	overflow: hidden;
	box-sizing: border-box;
	outline: none;
}
.vcf-viewer *, .vcf-viewer *::before, .vcf-viewer *::after { box-sizing: border-box; }
.vcf-viewer:focus-visible { box-shadow: 0 0 0 3px var(--vcf-lime); }

.vcf-viewer:fullscreen { height: 100%; margin: 0; border-radius: 0; }
.vcf-viewer:-webkit-full-screen { height: 100%; margin: 0; border-radius: 0; }
.vcf-viewer.vcf-pseudo-fs {
	position: fixed;
	inset: 0;
	z-index: 999999;
	height: 100% !important;
	margin: 0;
	border-radius: 0;
}
body.vcf-lock { overflow: hidden; }

/* Zone du livre */
.vcf-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.vcf-viewer .vcf-book { position: absolute; inset: 14px 14px 10px; }

/* Chargement / erreur */
.vcf-loader {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	text-align: center;
	color: var(--vcf-green);
	background: var(--vcf-bg);
	font-size: 15px;
}
.vcf-viewer.is-ready .vcf-loader { display: none; }
.vcf-loader__bar {
	position: relative;
	width: min(260px, 70%);
	height: 4px;
	overflow: hidden;
	background: rgba(10, 74, 31, .16);
	border-radius: 2px;
}
.vcf-loader__fill {
	display: block;
	width: 0;
	height: 100%;
	background: var(--vcf-green);
	transition: width .2s linear;
}
.vcf-loader.is-indeterminate .vcf-loader__fill {
	width: 40%;
	animation: vcf-slide 1.2s ease-in-out infinite;
}
@keyframes vcf-slide {
	0%   { transform: translateX(-100%); }
	100% { transform: translateX(260%); }
}
.vcf-error { margin: 0; max-width: 34em; }
.vcf-error__link {
	padding: 9px 16px;
	border-radius: 6px;
	background: var(--vcf-green);
	color: #fff;
	text-decoration: none;
}
.vcf-error__link:hover { background: #07361a; color: #fff; }

/* Pages */
.vcf-page { background: #fff; overflow: hidden; }
.vcf-page img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: fill;
	opacity: 0;
	transition: opacity .25s ease;
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}
.vcf-page img.is-ready { opacity: 1; }

/* Barre d'outils */
.vcf-bar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 10px;
	background: var(--vcf-green);
	color: #fff;
}
.vcf-bar__group { display: flex; align-items: center; gap: 2px; }
.vcf-bar__label {
	min-width: 6.5em;
	padding: 0 8px;
	text-align: center;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.vcf-viewer .vcf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease;
}
.vcf-viewer .vcf-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .14); color: #fff; }
.vcf-viewer .vcf-btn:focus-visible { outline: 2px solid var(--vcf-lime); outline-offset: 1px; }
.vcf-viewer .vcf-btn:disabled { opacity: .35; cursor: default; }

@media (max-width: 520px) {
	.vcf-viewer .vcf-btn--first,
	.vcf-viewer .vcf-btn--last { display: none; }
	.vcf-viewer .vcf-book { inset: 8px 8px 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.vcf-loader.is-indeterminate .vcf-loader__fill { animation: none; width: 100%; }
	.vcf-page img { transition: none; }
}

/* Règles de base requises par StPageFlip (non fournies dans le build navigateur) */
.stf__parent {
	position: relative;
	display: block;
	box-sizing: border-box;
	transform: translateZ(0);
	-ms-touch-action: pan-y;
	touch-action: pan-y;
}
.stf__wrapper { position: relative; width: 100%; height: 100%; box-sizing: border-box; }
.stf__parent canvas { position: absolute; width: 100%; height: 100%; left: 0; top: 0; }
.stf__block {
	position: absolute;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	perspective: 2000px;
}
.stf__item { display: none; position: absolute; transform-style: preserve-3d; }
.stf__outerShadow,
.stf__innerShadow,
.stf__hardShadow,
.stf__hardInnerShadow { position: absolute; left: 0; top: 0; }
