/**
 * Livre Hero — charte éditoriale
 * Accents marque (--lh-brand-*) : header, footer, CTA
 */

:root {
	--lh-bg: #f7f6f3;
	--lh-bg-deep: #ebe9e4;
	--lh-surface: #ffffff;
	--lh-ink: #1a1a1a;
	--lh-ink-muted: #5c5c5c;
	--lh-accent: #3d4f5f;
	--lh-accent-soft: #5a6d7e;
	--lh-primary: #3d4f5f;
	--lh-primary-ink: #ffffff;
	--lh-border: rgba(26, 26, 26, 0.12);
	--lh-border-strong: rgba(26, 26, 26, 0.22);
	--lh-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
	--lh-shadow-sm: 0 4px 16px rgba(26, 26, 26, 0.06);
	--lh-radius: 8px;
	--lh-radius-sm: 4px;
	--lh-font-display: "Newsreader", Georgia, "Times New Roman", serif;
	--lh-font-body: "Public Sans", system-ui, sans-serif;
	--lh-max: 1120px;
	--lh-form-max: 560px;
	--lh-space-xs: 0.5rem;
	--lh-space-sm: 0.75rem;
	--lh-space-md: 1rem;
	--lh-space-lg: 1.5rem;
	--lh-space-xl: 2rem;
	--lh-space-2xl: 3rem;
	--lh-touch: 44px;
	--lh-control-h: 2.75rem;
	--lh-header-h: 4.25rem;
	/* Marque (overridées par BrandSession si cookie) */
	--lh-brand-primary: #3d4f5f;
	--lh-brand-secondary: #1a1a1a;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--lh-bg);
	color: var(--lh-ink);
	font-family: var(--lh-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.lh-site {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* —— Header —— */
.lh-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--lh-border);
}

.lh-header.has-brand {
	border-bottom-color: color-mix(in srgb, var(--lh-brand-primary) 45%, var(--lh-border));
	box-shadow: 0 1px 0 color-mix(in srgb, var(--lh-brand-primary) 18%, transparent);
}

.lh-header__inner {
	max-width: var(--lh-max);
	margin: 0 auto;
	min-height: var(--lh-header-h);
	padding: 0.75rem var(--lh-space-lg);
	padding-left: max(var(--lh-space-lg), env(safe-area-inset-left));
	padding-right: max(var(--lh-space-lg), env(safe-area-inset-right));
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--lh-space-md);
	position: relative;
}

.lh-header__brand {
	grid-column: 1;
	justify-self: start;
	min-width: 0;
}

.lh-header__brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.lh-header__brand .custom-logo {
	display: block;
	max-height: 2.5rem;
	width: auto;
}

.lh-site-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--lh-ink);
}

.lh-site-logo__text {
	font-family: var(--lh-font-display);
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.lh-header__partner {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 2.5rem;
	min-width: 0;
}

.lh-partner-logo {
	display: block;
	max-height: 2.5rem;
	width: auto;
	max-width: min(160px, 28vw);
	object-fit: contain;
}

.lh-partner-logo--text {
	font-family: var(--lh-font-display);
	font-size: 0.95rem;
	color: var(--lh-brand-primary);
	font-weight: 500;
}

.lh-nav {
	grid-column: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--lh-space-xs);
	justify-self: center;
}

.lh-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0 0.9rem;
	color: var(--lh-ink-muted);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.875rem;
	border-radius: var(--lh-radius-sm);
	transition: color 0.2s, background 0.2s;
}

.lh-nav__link:hover {
	color: var(--lh-ink);
}

.lh-header.has-brand .lh-nav__link:hover {
	color: var(--lh-brand-secondary);
}

.lh-nav__link--primary {
	background: var(--lh-brand-primary);
	color: #fff;
	font-weight: 600;
}

.lh-nav__link--primary:hover {
	background: color-mix(in srgb, var(--lh-brand-primary) 88%, #000);
	color: #fff;
}

.lh-nav__link--ghost {
	background: transparent;
	border: 1px solid var(--lh-border);
	color: var(--lh-ink-muted);
}

.lh-nav__link--ghost:hover {
	border-color: var(--lh-border-strong);
	color: var(--lh-ink);
}

.lh-skip-link {
	position: absolute;
	top: -100%;
	left: var(--lh-space-md);
	z-index: 200;
	padding: 0.75rem 1rem;
	background: var(--lh-primary);
	color: var(--lh-primary-ink);
	border-radius: var(--lh-radius-sm);
	font-weight: 600;
	text-decoration: none;
}

.lh-skip-link:focus {
	top: var(--lh-space-md);
	outline: 2px solid var(--lh-accent);
	outline-offset: 2px;
}

.lh-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: var(--lh-touch);
	min-height: var(--lh-touch);
	padding: 0 0.85rem;
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius-sm);
	background: #fff;
	color: var(--lh-ink);
	font: inherit;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	grid-column: 3;
	justify-self: end;
}

.lh-nav-toggle__icon {
	width: 1.125rem;
	height: 2px;
	background: currentColor;
	position: relative;
	display: block;
}

.lh-nav-toggle__icon::before,
.lh-nav-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s;
}

.lh-nav-toggle__icon::before { top: -6px; }
.lh-nav-toggle__icon::after { top: 6px; }

.lh-nav-toggle[aria-expanded="true"] .lh-nav-toggle__icon { background: transparent; }
.lh-nav-toggle[aria-expanded="true"] .lh-nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.lh-nav-toggle[aria-expanded="true"] .lh-nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.lh-main { flex: 1; }

/* —— Typography & buttons —— */
.lh-eyebrow {
	font-family: var(--lh-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lh-accent);
	margin: 0 0 0.75rem;
}

.lh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: var(--lh-touch);
	min-height: var(--lh-touch);
	max-height: var(--lh-touch);
	padding: 0 1.5rem;
	margin: 0;
	border-radius: var(--lh-radius-sm);
	font-family: var(--lh-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	box-sizing: border-box;
	line-height: 1;
	vertical-align: middle;
	appearance: none;
	-webkit-appearance: none;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
	-webkit-tap-highlight-color: transparent;
}

.lh-btn:focus-visible,
.lh-nav__link:focus-visible,
.lh-nav-toggle:focus-visible,
.lh-choice-btn:focus-visible,
.lh-chapter-nav__item:focus-visible,
.lh-page-viewer__btn:focus-visible {
	outline: 2px solid var(--lh-brand-primary);
	outline-offset: 3px;
}

.lh-btn--primary {
	background: var(--lh-brand-primary);
	color: #fff;
	border-color: color-mix(in srgb, var(--lh-brand-primary) 75%, #000);
	box-shadow: var(--lh-shadow-sm);
}

.lh-btn--primary:hover {
	background: color-mix(in srgb, var(--lh-brand-primary) 88%, #000);
	color: #fff;
	transform: translateY(-1px);
}

.lh-btn--glow { box-shadow: var(--lh-shadow-sm); }

.lh-btn--ghost {
	background: #fff;
	color: var(--lh-brand-primary);
	border-color: var(--lh-brand-primary);
	box-shadow: none;
}

.lh-btn--ghost:hover {
	background: color-mix(in srgb, var(--lh-brand-primary) 10%, #fff);
	border-color: var(--lh-brand-primary);
	color: var(--lh-brand-primary);
}

.lh-btn--secondary {
	background: #fff;
	color: var(--lh-brand-primary);
	border: 1px solid var(--lh-brand-primary);
	box-shadow: none;
}

.lh-btn--secondary:hover {
	background: color-mix(in srgb, var(--lh-brand-primary) 12%, #fff);
	border-color: var(--lh-brand-primary);
	color: var(--lh-brand-primary);
}

.lh-btn--secondary:visited { color: var(--lh-brand-primary); }
.lh-btn--block { width: 100%; }
.lh-btn--small {
	height: 2.5rem;
	min-height: 2.5rem;
	max-height: 2.5rem;
	padding: 0 0.9rem;
	font-size: 0.8125rem;
}

/* —— Home —— */
.lh-home {
	position: relative;
	max-width: var(--lh-max);
	margin: 0 auto;
	padding: 4.5rem 1.5rem 5rem;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 3.5rem;
	align-items: center;
	min-height: min(82vh, 700px);
}

.lh-home__bg { display: none; }

.lh-home__content { position: relative; }

.lh-home__subtitle {
	font-family: var(--lh-font-display);
	font-size: clamp(1.15rem, 2.2vw, 1.4rem);
	font-style: italic;
	font-weight: 400;
	color: var(--lh-ink-muted);
	margin: 0 0 1.25rem;
	letter-spacing: 0.01em;
	line-height: 1.35;
}

.lh-home__title {
	font-family: var(--lh-font-display);
	font-size: clamp(2.1rem, 4.5vw, 3.25rem);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 1.25rem;
	color: var(--lh-ink);
}

.lh-home__lead {
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--lh-ink-muted);
	max-width: 34rem;
	margin: 0 0 2rem;
}

.lh-home__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-bottom: 2rem;
}

.lh-home__features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.35rem;
	color: var(--lh-ink-muted);
	font-size: 0.9375rem;
}

.lh-home__features li::before {
	content: "";
	display: inline-block;
	width: 0.35rem;
	height: 0.35rem;
	margin-right: 0.55rem;
	border-radius: 50%;
	background: var(--lh-accent);
	vertical-align: middle;
}

.lh-home__cover-frame {
	width: min(100%, 22rem);
	margin: 0 auto;
	padding: 0;
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius);
	box-shadow: var(--lh-shadow);
	background: var(--lh-surface);
	overflow: hidden;
	animation: lh-cover-float 8s ease-in-out infinite;
}

@keyframes lh-cover-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

.lh-home__cover {
	display: block;
	width: 100%;
	height: auto;
}

.lh-home-legends {
	background: var(--lh-surface);
	color: var(--lh-ink);
	padding: 3.5rem 1.5rem;
	border-top: 1px solid var(--lh-border);
}

.lh-home-legends__inner {
	max-width: 40rem;
	margin: 0 auto;
	text-align: center;
}

.lh-home-legends h2 {
	font-family: var(--lh-font-display);
	font-size: 1.75rem;
	font-weight: 500;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.lh-home-legends p {
	margin: 0;
	color: var(--lh-ink-muted);
	line-height: 1.7;
}

/* —— Pages —— */
.lh-page {
	max-width: var(--lh-max);
	margin: 0 auto;
	padding: 3rem 1.5rem 4rem;
}

.lh-page--form {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 3rem;
	align-items: start;
}

.lh-page--inscription {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	max-width: var(--lh-max);
}

.lh-page__intro--wide {
	max-width: 40rem;
}

.lh-page__body--wide {
	width: 100%;
}

.lh-page__body--wide .lh-form-shell {
	max-width: none;
	width: 100%;
	padding: 2rem 2.25rem;
}

.lh-page--centered {
	display: block;
	max-width: calc(var(--lh-form-max) + 6rem);
}

.lh-page--centered .lh-page__intro { text-align: center; margin-bottom: 2rem; }

.lh-page__title {
	font-family: var(--lh-font-display);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
}

.lh-page__lead {
	color: var(--lh-ink-muted);
	margin: 0;
	font-size: 1.0625rem;
}

.lh-form-shell,
.lh-page-viewer,
.lh-reader-page,
.lh-choice-pending__frame,
.lh-choice-shell--grimoire,
.lh-reader-status:not(.lh-reader-status--error) {
	color: var(--lh-ink);
}

.lh-form-shell {
	background: var(--lh-surface);
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius);
	box-shadow: var(--lh-shadow-sm);
	padding: 2rem;
}

.lh-form-shell--narrow { max-width: var(--lh-form-max); margin: 0 auto; }

.lh-wizard-steps {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.75rem;
}

.lh-wizard-step {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 0.8125rem;
	font-weight: 600;
	background: var(--lh-bg-deep);
	color: var(--lh-ink-muted);
}

.lh-wizard-step.is-active,
.lh-wizard-step.is-done {
	background: var(--lh-brand-primary);
	color: #fff;
}

.lh-form-title {
	font-family: var(--lh-font-display);
	font-size: 1.5rem;
	font-weight: 500;
	margin: 0 0 1.5rem;
	letter-spacing: -0.02em;
	color: var(--lh-ink);
}

.lh-form-lead {
	margin: -0.75rem 0 1.5rem;
	color: var(--lh-ink-muted);
}

.lh-field { margin-bottom: 1.25rem; }

.lh-field label,
.lh-label {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.4rem;
	color: var(--lh-ink);
}

.lh-field input[type="text"],
.lh-field input[type="email"],
.lh-field input[type="number"],
.lh-field select {
	width: 100%;
	height: var(--lh-control-h);
	min-height: var(--lh-control-h);
	padding: 0 1rem;
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius-sm);
	background: #fff;
	color: var(--lh-ink);
	font: inherit;
	line-height: 1.25;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.lh-field select,
.lh-child-card select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c5c5c' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3.0 2.3z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 0.75rem;
	padding-right: 2.25rem;
}

.lh-field input[type="number"],
.lh-child-card input[type="number"] {
	-moz-appearance: textfield;
}

.lh-field input[type="number"]::-webkit-outer-spin-button,
.lh-field input[type="number"]::-webkit-inner-spin-button,
.lh-child-card input[type="number"]::-webkit-outer-spin-button,
.lh-child-card input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.lh-field input:focus,
.lh-field select:focus {
	outline: none;
	border-color: var(--lh-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--lh-accent) 18%, transparent);
}

.lh-field-hint {
	font-size: 0.8125rem;
	margin: 0.35rem 0 0;
	color: var(--lh-ink-muted);
}

.lh-hero-photo__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-top: 0.75rem;
}

.lh-hero-photo__actions .lh-btn,
.lh-hero-photo__preview .lh-btn,
.lh-hero-photo__webcam-actions .lh-btn {
	height: 2.5rem;
	min-height: 2.5rem;
	max-height: 2.5rem;
	padding: 0 0.9rem;
	font-size: 0.8125rem;
	box-sizing: border-box;
}

/* Label wrapper : le vrai bouton visuel est le span.lh-btn à l’intérieur */
.lh-hero-photo__upload {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 0;
}

.lh-hero-photo__upload .lh-btn {
	pointer-events: none;
}

.lh-hero-photo__upload input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
	border: 0;
}

/* Desktop : fichier + webcam. Mobile : fichier + appareil photo. */
@media (min-width: 768px) {
	.lh-hero-photo__camera {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.lh-hero-photo__webcam-toggle,
	.lh-hero-photo__webcam {
		display: none !important;
	}
}

.lh-hero-photo__preview {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.lh-hero-photo__preview[hidden] {
	display: none !important;
}

.lh-hero-photo__preview img {
	width: 5.5rem;
	height: 5.5rem;
	object-fit: cover;
	border-radius: var(--lh-radius-sm);
	border: 1px solid var(--lh-border);
	box-shadow: var(--lh-shadow-sm);
}

.lh-hero-photo__webcam {
	margin-top: 0.85rem;
	padding: 0.85rem;
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius-sm);
	background: var(--lh-bg);
}

.lh-hero-photo__webcam video {
	display: block;
	width: 100%;
	max-width: 18rem;
	border-radius: var(--lh-radius-sm);
	background: #111;
}

.lh-hero-photo--child {
	margin-top: 0.85rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--lh-border);
}

.lh-hero-photo--child .lh-label {
	font-size: 0.8125rem;
	margin-bottom: 0.5rem;
}

.lh-hero-photo--child .lh-hero-photo__preview img {
	width: 4.25rem;
	height: 4.25rem;
}

.lh-choice-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

/* —— Universe picker (inscription step 3) —— */
.lh-universe-picker {
	margin: 0 0 1.5rem;
	padding: 0;
	border: 0;
	min-width: 0;
}

.lh-universe-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.lh-universe-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius);
	background: var(--lh-surface);
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.lh-universe-card:hover {
	border-color: color-mix(in srgb, var(--lh-brand-primary) 55%, var(--lh-border));
	transform: translateY(-2px);
	box-shadow: var(--lh-shadow-sm);
}

.lh-universe-card:has(input:checked),
.lh-universe-card:has(input:focus-visible) {
	border-color: var(--lh-brand-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--lh-brand-primary) 28%, transparent);
}

.lh-universe-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.lh-universe-card__visual {
	display: block;
	aspect-ratio: 4 / 3;
	background-color: #2c3a45;
	background-size: cover;
	background-position: center;
	position: relative;
}

.lh-universe-card__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 18, 0.45) 100%);
	pointer-events: none;
}

.lh-universe-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.85rem 0.9rem 1rem;
	min-height: 4.5rem;
}

.lh-universe-card__name {
	font-family: var(--lh-font-display);
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--lh-ink);
}

.lh-universe-card__desc {
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--lh-ink-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lh-universe-card:has(input:checked) .lh-universe-card__name {
	color: var(--lh-brand-primary);
}

/* Visuels de secours (sans image fichier) */
.lh-universe-card__visual--guillaume_tell {
	background-image: linear-gradient(145deg, #1f3a4d 0%, #5a7d8c 48%, #c4a46a 100%);
}
.lh-universe-card__visual--heidi {
	background-image: linear-gradient(145deg, #2f5d4a 0%, #7fa88a 45%, #e8d9b0 100%);
}
.lh-universe-card__visual--dragon_pilate {
	background-image: linear-gradient(145deg, #1a1528 0%, #4a3d6b 40%, #8b5a3c 100%);
}
.lh-universe-card__visual--vouivre_jura {
	background-image: linear-gradient(145deg, #143528 0%, #2f6b4f 42%, #a8c47a 100%);
}
.lh-universe-card__visual--frankenstein_leman {
	background-image: linear-gradient(145deg, #0f1c2e 0%, #3a4f6b 50%, #6e8aa8 100%);
}
.lh-universe-card__visual--barry_saint_bernard {
	background-image: linear-gradient(145deg, #2a3340 0%, #6b7c8f 40%, #f2f4f7 100%);
}
.lh-universe-card__visual--pont_diable {
	background-image: linear-gradient(145deg, #1c1010 0%, #6b2a2a 45%, #c4783a 100%);
}
.lh-universe-card__visual--homme_sauvage {
	background-image: linear-gradient(145deg, #2a2418 0%, #6b5a3a 48%, #b89b6a 100%);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.lh-children-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
	gap: 1rem;
	margin-top: 1rem;
	align-items: start;
}

.lh-child-card {
	margin: 0;
	padding: 1rem 1.1rem 1.15rem;
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius-sm);
	background: var(--lh-bg);
	min-width: 0;
}

.lh-child-card__legend {
	padding: 0 0.25rem;
	font-family: var(--lh-font-display);
	font-size: 1rem;
	font-weight: 500;
	color: var(--lh-ink);
	float: none;
	width: auto;
}

.lh-child-card__row {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 0.65rem;
}

.lh-child-card__row label {
	margin-top: 0.7rem;
}

.lh-child-card .lh-hero-photo__actions .lh-btn {
	height: 2.5rem;
	min-height: 2.5rem;
	max-height: 2.5rem;
	padding: 0 0.9rem;
	font-size: 0.8125rem;
}

.lh-child-card label { display: block; margin-top: 0.7rem; }
.lh-child-card label span {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
	color: var(--lh-ink-muted);
}

.lh-child-card input,
.lh-child-card select {
	width: 100%;
	height: var(--lh-control-h);
	min-height: var(--lh-control-h);
	padding: 0 0.85rem;
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius-sm);
	font: inherit;
	line-height: 1.25;
	box-sizing: border-box;
	background: #fff;
	color: var(--lh-ink);
}

.lh-child-card select {
	padding-right: 2.1rem;
}

.lh-field--children-count > select {
	max-width: 12rem;
}

.lh-choice-card { position: relative; }

.lh-choice-card input { position: absolute; opacity: 0; pointer-events: none; }

.lh-choice-card span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0.75rem;
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius-sm);
	background: var(--lh-bg);
	text-align: center;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.lh-choice-card input:checked + span {
	border-color: var(--lh-brand-primary);
	background: color-mix(in srgb, var(--lh-brand-primary) 12%, #fff);
	color: var(--lh-brand-secondary);
}

.lh-consent {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	font-size: 0.875rem;
	color: var(--lh-ink-muted);
	margin: 1.25rem 0;
}

.lh-consent input { margin-top: 0.2rem; flex-shrink: 0; }

.lh-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.lh-form-actions .lh-btn {
	height: var(--lh-touch);
	min-height: var(--lh-touch);
	max-height: var(--lh-touch);
}

.lh-form-footer-link {
	margin-top: 1.25rem;
	font-size: 0.875rem;
	color: var(--lh-ink-muted);
}

.lh-form-footer-link a { color: var(--lh-primary); font-weight: 600; }

.lh-alert {
	padding: 0.9rem 1rem;
	border-radius: var(--lh-radius-sm);
	margin-bottom: 1.25rem;
	font-size: 0.9375rem;
}

.lh-alert--error {
	background: #fdf2f2;
	border: 1px solid #f0c4c4;
	color: #8a1f1f;
}

.lh-alert--success {
	background: #f1f8f3;
	border: 1px solid #c5e0cc;
	color: #1f5c32;
}

.lh-alert a { color: inherit; font-weight: 600; }

/* —— Mon livre / reader —— */
.lh-mon-livre { max-width: var(--lh-max); margin: 0 auto; }

.lh-mon-livre__title {
	font-family: var(--lh-font-display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	margin: 0 0 0.5rem;
	color: var(--lh-ink);
}

.lh-mon-livre__meta {
	color: var(--lh-ink-muted);
	margin: 0 0 1.5rem;
}

.lh-mon-livre__placeholder {
	padding: 2rem;
	border: 1px dashed var(--lh-border-strong);
	border-radius: var(--lh-radius);
	background: var(--lh-surface);
	color: var(--lh-ink-muted);
	text-align: center;
}

.lh-book-preview {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
	border-radius: var(--lh-radius);
	background: var(--lh-surface);
	border: 1px solid var(--lh-border);
}

.lh-book-preview span { color: var(--lh-ink-muted); font-size: 0.875rem; }

.lh-page--reader { max-width: var(--lh-max); }

.lh-reader-status {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.15rem;
	border-radius: var(--lh-radius-sm);
	background: var(--lh-surface);
	border: 1px solid var(--lh-border);
	margin-bottom: 1rem;
}

.lh-reader-status--error {
	background: #fdf2f2;
	border-color: #f0c4c4;
	color: #8a1f1f;
}

.lh-reader-spinner {
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid var(--lh-border);
	border-top-color: var(--lh-primary);
	border-radius: 50%;
	animation: lh-spin 0.8s linear infinite;
}

@keyframes lh-spin { to { transform: rotate(360deg); } }

.lh-reader-pages { display: grid; gap: 1rem; }

.lh-reader-slide:not(.is-active) { display: none; }

.lh-reader-page {
	background: var(--lh-surface);
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius);
	padding: 1.75rem;
	box-shadow: var(--lh-shadow-sm);
}

.lh-reader-page__num {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lh-accent);
	margin: 0 0 0.75rem;
}

.lh-reader-page__title {
	font-family: var(--lh-font-display);
	font-size: 1.35rem;
	font-weight: 500;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.lh-reader-page__body {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--lh-ink);
}

.lh-reader-page__body p { margin: 0 0 1rem; }
.lh-reader-page__body p:last-child { margin-bottom: 0; }

/* —— Choice —— */
.lh-choice-shell { margin: 0 auto; }

.lh-choice-shell--grimoire {
	background: var(--lh-surface);
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius);
	box-shadow: var(--lh-shadow-sm);
	padding: 2rem;
	position: relative;
}

.lh-choice-shell--grimoire::before { display: none; }

.lh-choice-shell--grimoire .lh-eyebrow { color: var(--lh-accent); }

.lh-choice-shell--grimoire .lh-form-title {
	font-family: var(--lh-font-display);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.lh-choice-shell--grimoire .lh-choice-deadline {
	color: var(--lh-ink-muted);
	font-size: 0.875rem;
}

.lh-choice-shell--grimoire .lh-choice-btn:hover {
	border-color: var(--lh-primary);
	transform: translateY(-1px);
}

.lh-choice-deadline { margin: 0 0 1.25rem; color: var(--lh-ink-muted); }

.lh-choice-form {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.lh-choice-btn {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	width: 100%;
	text-align: left;
	padding: 1rem 1.15rem;
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius-sm);
	background: var(--lh-bg);
	cursor: pointer;
	font: inherit;
	color: var(--lh-ink);
	transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.lh-choice-btn:hover {
	background: #fff;
	border-color: var(--lh-border-strong);
}

.lh-choice-btn__label {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--lh-brand-primary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}

.lh-choice-btn--b .lh-choice-btn__label {
	background: color-mix(in srgb, var(--lh-brand-primary) 70%, #000);
	color: #fff;
}

.lh-choice-btn__text {
	flex: 1;
	font-weight: 500;
	line-height: 1.45;
}

.lh-choice-pending {
	margin: 1.5rem 0;
}

.lh-choice-pending__frame {
	position: relative;
	background: var(--lh-surface);
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius);
	box-shadow: var(--lh-shadow-sm);
	padding: 2rem 1.75rem;
	text-align: center;
	min-height: 10rem;
}

.lh-choice-pending__frame::before,
.lh-choice-pending__frame::after { display: none; }

.lh-choice-pending__seal,
.lh-choice-pending__legend,
.lh-choice-pending__question,
.lh-choice-pending__divider,
.lh-choice-pending__cta {
	position: relative;
	z-index: 1;
}

.lh-choice-pending__seal {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lh-accent);
	margin: 0 0 0.75rem;
}

.lh-choice-pending__legend {
	font-family: var(--lh-font-display);
	font-size: 1.15rem;
	font-weight: 500;
	margin: 0 0 1rem;
	color: var(--lh-ink);
}

.lh-choice-pending__legend::before,
.lh-choice-pending__legend::after { display: none; }

.lh-choice-pending__question { margin: 0 0 1.25rem; }

.lh-choice-pending__question p {
	font-family: var(--lh-font-display);
	font-size: clamp(1.25rem, 3vw, 1.6rem);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--lh-ink);
}

.lh-choice-pending__divider {
	height: 1px;
	background: var(--lh-border);
	margin: 0 auto 1.25rem;
	max-width: 8rem;
	border: none;
}

.lh-choice-pending__divider::before,
.lh-choice-pending__divider::after { display: none; }

.lh-choice-pending__cta {
	display: inline-flex;
	margin-top: 0.25rem;
}

.lh-choice-pending--scene .lh-choice-pending__frame {
	padding: 2.25rem 1.75rem 1.75rem;
}

.lh-choice-pending__book-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	max-width: 5rem;
	text-align: left;
	transform: none;
}

.lh-choice-pending__book-name {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--lh-accent);
}

.lh-choice-pending__book-chapter {
	display: block;
	font-size: 0.7rem;
	color: var(--lh-ink-muted);
	margin-top: 0.15rem;
}

.lh-choice-pending--scene .lh-choice-pending__cta {
	min-height: var(--lh-touch);
	height: var(--lh-touch);
	padding: 0 1.35rem;
	background: var(--lh-brand-primary);
	color: #fff;
	border-radius: var(--lh-radius-sm);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
}

.lh-choice-pending--scene .lh-choice-pending__cta:hover {
	background: color-mix(in srgb, var(--lh-brand-primary) 88%, #000);
	color: #fff;
}

.lh-choice-pending:not(:has(.lh-choice-pending__frame)) {
	background: var(--lh-surface);
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius);
	padding: 1.5rem;
	text-align: center;
}

.lh-choice-pending h3 {
	font-family: var(--lh-font-display);
	font-size: 1.25rem;
	margin: 0 0 0.75rem;
}

.lh-choice-pending > p:not(.lh-choice-pending__legend):not(.lh-choice-pending__seal) {
	color: var(--lh-ink-muted);
}

.lh-chapter-block { margin-bottom: 2rem; }

/* —— Book reader layout —— */
.lh-book-reader {
	display: grid;
	grid-template-columns: 16rem 1fr;
	gap: 1.5rem;
	align-items: start;
}

.lh-book-reader__sidebar {
	position: sticky;
	top: calc(var(--lh-header-h) + 1rem);
	background: var(--lh-surface);
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius);
	padding: 1rem;
	box-shadow: var(--lh-shadow-sm);
}

.lh-chapter-nav__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lh-ink-muted);
	margin-bottom: 0.75rem;
}

.lh-chapter-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.lh-chapter-nav__item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.7rem 0.85rem;
	border: 1px solid transparent;
	border-radius: var(--lh-radius-sm);
	background: transparent;
	color: var(--lh-ink);
	font: inherit;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.lh-chapter-nav__item:hover {
	background: var(--lh-bg);
	border-color: var(--lh-border);
}

.lh-chapter-nav__item.is-active {
	background: color-mix(in srgb, var(--lh-primary) 8%, #fff);
	border-color: color-mix(in srgb, var(--lh-primary) 35%, var(--lh-border));
	color: var(--lh-primary);
}

.lh-chapter-nav__title {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.35;
}

.lh-chapter-nav__badge {
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--lh-ink-muted);
}

.lh-chapter-nav__item.is-active .lh-chapter-nav__badge { color: var(--lh-accent); }

.lh-chapter-nav__badge--pending { color: #a36b00; }
.lh-chapter-nav__item.is-active .lh-chapter-nav__badge--pending { color: #a36b00; }

.lh-book-reader__downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--lh-border);
}

.lh-book-reader__download-chapter { width: 100%; }
.lh-book-reader__download-chapter[hidden] { display: none; }

.lh-book-reader__downloads a { text-decoration: none; }
.lh-book-reader__downloads a:visited { color: inherit; }

.lh-book-reader__main { min-width: 0; }

.lh-page-viewer {
	background: var(--lh-surface);
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius);
	box-shadow: var(--lh-shadow-sm);
	overflow: hidden;
	position: relative;
}

.lh-page-viewer::before { display: none; }

.lh-page-viewer__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--lh-border);
	background: var(--lh-bg);
}

.lh-page-viewer__btn {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius-sm);
	background: #fff;
	color: var(--lh-ink);
	font-size: 1.15rem;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.lh-page-viewer__btn:hover:not(:disabled) {
	border-color: var(--lh-primary);
	color: var(--lh-primary);
}

.lh-page-viewer__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.lh-page-viewer__indicator {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--lh-ink-muted);
}

.lh-page-viewer__stage {
	min-height: 22rem;
	padding: 1.5rem;
}

.lh-chapter-panel__head { margin-bottom: 1rem; }

.lh-chapter-panel__title {
	font-family: var(--lh-font-display);
	font-size: 1.35rem;
	font-weight: 500;
	margin: 0;
	letter-spacing: -0.02em;
}

.lh-chapter-panel .lh-reader-page,
.lh-chapter-panel .lh-reader-illustration {
	border: none;
	box-shadow: none;
	padding: 0;
	background: transparent;
}

.lh-chapter-panel .lh-reader-page.is-active { display: block; }

.lh-chapter-panel .lh-reader-page__body { max-width: 42rem; }

.lh-chapter-panel .lh-reader-illustration__image {
	display: block;
	width: 100%;
	max-height: min(70vh, 640px);
	object-fit: contain;
	border-radius: var(--lh-radius-sm);
	margin: 0 auto;
}

.lh-chapter-block:last-child { margin-bottom: 0; }
.lh-chapter-block.is-focused { outline: none; }

.lh-chapter-block__title {
	font-family: var(--lh-font-display);
	font-size: 1.25rem;
	font-weight: 500;
	margin: 0;
	color: var(--lh-ink);
}

.lh-chapter-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.lh-chapter-block__pdf { flex-shrink: 0; }

.lh-reader-illustration { margin: 1rem 0; }

.lh-reader-illustration__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--lh-radius-sm);
}

.lh-reader-page__image {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--lh-radius-sm);
	margin: 1rem 0;
}

.lh-reader-status--inline { margin: 1rem 0; }

/* —— Footer —— */
.lh-footer {
	background: #fff;
	border-top: 1px solid var(--lh-border);
	padding: 2.5rem 1.5rem;
	padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
	margin-top: auto;
}

.lh-footer.has-brand {
	border-top-color: color-mix(in srgb, var(--lh-brand-primary) 40%, var(--lh-border));
}

.lh-footer__inner {
	max-width: var(--lh-max);
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.lh-footer__partner {
	display: block;
	max-height: 3rem;
	width: auto;
	max-width: min(220px, 70vw);
	object-fit: contain;
}

.lh-footer__partner--text {
	font-family: var(--lh-font-display);
	font-size: 1.1rem;
	color: var(--lh-brand-primary);
	margin: 0;
	font-weight: 500;
}

.lh-footer__copy {
	margin: 0;
	font-size: 0.875rem;
	color: var(--lh-ink-muted);
	line-height: 1.5;
	max-width: 28rem;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
	.lh-home {
		grid-template-columns: 1fr;
		gap: var(--lh-space-2xl);
		min-height: auto;
		padding: var(--lh-space-2xl) var(--lh-space-lg) 3.5rem;
	}

	.lh-home__visual { order: -1; }
	.lh-home__cover-frame { animation: none; }

	.lh-universe-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lh-page--form {
		grid-template-columns: 1fr;
		gap: var(--lh-space-xl);
	}

	.lh-page__body--wide .lh-form-shell {
		padding: var(--lh-space-xl) var(--lh-space-lg);
	}

	.lh-children-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lh-page { padding: var(--lh-space-2xl) var(--lh-space-lg) 3rem; }

	.lh-book-reader {
		grid-template-columns: 1fr;
		gap: var(--lh-space-lg);
	}

	.lh-book-reader__sidebar { position: static; }

	.lh-chapter-nav__list {
		display: flex;
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: var(--lh-space-xs);
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.lh-chapter-nav__item {
		flex: 0 0 auto;
		min-width: 11.5rem;
		scroll-snap-align: start;
	}

	.lh-page-viewer__stage {
		min-height: 18rem;
		padding: var(--lh-space-md);
	}

	.lh-form-shell { padding: var(--lh-space-xl) var(--lh-space-lg); }
}

@media (max-width: 767px) {
	:root { --lh-header-h: 3.75rem; }

	.lh-header__inner {
		grid-template-columns: 1fr auto auto;
		gap: var(--lh-space-sm);
	}

	.lh-nav-toggle {
		display: inline-flex;
		grid-column: 3;
		grid-row: 1;
	}

	.lh-header__partner {
		grid-column: 2;
		grid-row: 1;
	}

	.lh-nav {
		grid-column: 1 / -1;
		display: none;
		position: absolute;
		top: calc(100% + 1px);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: var(--lh-space-xs);
		padding: var(--lh-space-md);
		padding-bottom: calc(var(--lh-space-md) + env(safe-area-inset-bottom));
		background: #fff;
		border-bottom: 1px solid var(--lh-border);
		box-shadow: var(--lh-shadow);
		justify-self: stretch;
		z-index: 20;
	}

	.lh-nav.is-open { display: flex; }

	.lh-nav__link {
		width: 100%;
		justify-content: center;
	}

	.lh-partner-logo { max-height: 2rem; max-width: min(110px, 26vw); }

	.lh-home { padding: var(--lh-space-xl) var(--lh-space-md) 3rem; }
	.lh-home__title { font-size: clamp(1.85rem, 8vw, 2.4rem); }
	.lh-home__lead { font-size: 1.0625rem; margin-bottom: var(--lh-space-xl); }

	.lh-home__actions {
		flex-direction: column;
		margin-bottom: var(--lh-space-xl);
	}

	.lh-home__actions .lh-btn { width: 100%; }

	.lh-home__features {
		flex-direction: column;
		gap: var(--lh-space-sm);
	}

	.lh-page { padding: var(--lh-space-xl) var(--lh-space-md) 2.5rem; }
	.lh-page__title { font-size: clamp(1.5rem, 6vw, 2rem); }

	.lh-form-shell {
		padding: var(--lh-space-lg) var(--lh-space-md);
		border-radius: var(--lh-radius-sm);
	}

	.lh-field input[type="text"],
	.lh-field input[type="email"],
	.lh-field input[type="number"],
	.lh-field select,
	.lh-child-card input,
	.lh-child-card select {
		font-size: 16px;
		height: var(--lh-touch);
		min-height: var(--lh-touch);
	}

	.lh-choice-grid { grid-template-columns: 1fr; }

	.lh-universe-grid {
		grid-template-columns: 1fr;
	}

	.lh-children-list {
		grid-template-columns: 1fr;
	}

	.lh-page__body--wide .lh-form-shell {
		padding: var(--lh-space-lg) var(--lh-space-md);
	}

	.lh-form-actions { flex-direction: column-reverse; }
	.lh-form-actions .lh-btn { width: 100%; }

	.lh-choice-btn {
		padding: var(--lh-space-md);
		min-height: var(--lh-touch);
	}

	.lh-mon-livre__title { font-size: 1.625rem; }

	.lh-reader-page { padding: var(--lh-space-lg) var(--lh-space-md); }

	.lh-page-viewer__toolbar {
		position: sticky;
		bottom: 0;
		z-index: 5;
		border-bottom: none;
		border-top: 1px solid var(--lh-border);
		padding: var(--lh-space-sm) var(--lh-space-md);
		padding-bottom: calc(var(--lh-space-sm) + env(safe-area-inset-bottom));
		background: rgba(247, 246, 243, 0.96);
		backdrop-filter: blur(8px);
	}

	.lh-page-viewer__btn {
		width: 3rem;
		height: 3rem;
		font-size: 1.35rem;
	}

	.lh-page-viewer__stage {
		min-height: 14rem;
		padding: var(--lh-space-md) var(--lh-space-sm);
	}

	.lh-chapter-panel .lh-reader-illustration__image {
		max-height: min(62vh, 520px);
	}

	.lh-book-reader__downloads .lh-btn { width: 100%; }

	.lh-footer {
		padding: var(--lh-space-xl) var(--lh-space-md);
		padding-bottom: calc(var(--lh-space-xl) + env(safe-area-inset-bottom));
	}
}

@media (max-width: 480px) {
	.lh-site-logo__text { font-size: 1.15rem; }
	.lh-wizard-steps { justify-content: center; }
	.lh-chapter-nav__item {
		min-width: 10rem;
		padding: 0.65rem 0.85rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lh-home__cover-frame { animation: none; }
	html { scroll-behavior: auto; }
	.lh-btn:hover { transform: none; }
	.lh-choice-btn:hover { transform: none; }
	.lh-reader-spinner { animation: none; }
}
