/* =========================================================
   Bare Studio — "livret" de la carte des soins (page Menu)
   Reprend la mise en page d'un livret imprimé : une page à la
   fois, numérotée, que l'on tourne au clic (flèches / points)
   ou en faisant défiler (molette, trackpad, doigt). Construit
   avec CSS scroll-snap — aucune librairie externe.
   Balisage produit par inc/menu-data.php
   (bare_studio_render_menu_html / bare_studio_render_menu_category).
   ========================================================= */

.menu-book {
	position: relative;
	max-width: 760px;
	margin-inline: auto;
	padding-inline: 24px;
}

/* ---------------------------------------------------------
   Fenêtre + piste défilante (une "page" = 100% de la largeur)
   --------------------------------------------------------- */
.menu-book__viewport {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: #fff;
	border: 1px solid var(--color-border);
	box-shadow: 0 24px 60px -30px rgba(33, 30, 26, 0.35);
}
.menu-book__viewport:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

.menu-book__track {
	display: flex;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	/* Cache la scrollbar : la navigation passe par les flèches / points. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.menu-book__track::-webkit-scrollbar { display: none; }

.menu-book__page {
	flex: 0 0 100%;
	max-width: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.menu-book__page-inner {
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem) 1rem;
	display: grid;
	gap: 2.75rem;
}

.menu-book__pagenum {
	text-align: center;
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	color: var(--color-ink-soft);
	padding-block: 0.5rem 1.5rem;
}

/* ---------------------------------------------------------
   Contenu d'une catégorie (identique à l'ancienne carte,
   simplement rejouée une page à la fois)
   --------------------------------------------------------- */
.menu-book__category-title {
	font-size: 1.35rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
}
.menu-book__subcategory {
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-ink-soft);
}
.menu-book__rule {
	width: 56px;
	height: 1px;
	background: var(--color-accent);
	margin: 0.6rem auto 1.4rem;
	opacity: 0.6;
}

.menu-book__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0;
	border-bottom: 1px dashed var(--color-border);
}
.menu-book__category > .menu-book__row:last-of-type,
.menu-book__row:has(+ .menu-book__note) {
	border-bottom: none;
}
.menu-book__label { font-weight: 500; flex: 1; }
.menu-book__duration {
	font-size: 0.82rem;
	color: var(--color-ink-soft);
	white-space: nowrap;
}
.menu-book__price {
	font-weight: 600;
	color: var(--color-accent);
	white-space: nowrap;
	min-width: 4.5em;
	text-align: right;
}
.menu-book__item-note {
	margin: -0.3rem 0 0.6rem;
	font-size: 0.85rem;
	color: var(--color-ink-soft);
}
.menu-book__spacer { height: 0.6rem; }
.menu-book__note {
	margin-top: 1rem;
	font-size: 0.85rem;
	color: var(--color-ink-soft);
	font-style: italic;
}

/* ---------------------------------------------------------
   Navigation : flèches "tourner la page"
   --------------------------------------------------------- */
.menu-book__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: var(--color-ink);
	border: 1px solid var(--color-border);
	border-radius: 50%;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 24px -12px rgba(33, 30, 26, 0.35);
	transition: opacity .15s ease, transform .15s ease;
	z-index: 5;
}
.menu-book__nav:hover { color: var(--color-accent); transform: translateY(-50%) scale(1.05); }
.menu-book__nav:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.menu-book__nav--prev { left: -23px; }
.menu-book__nav--next { right: -23px; }

@media (max-width: 640px) {
	.menu-book__nav { width: 38px; height: 38px; font-size: 1.2rem; }
	.menu-book__nav--prev { left: 4px; }
	.menu-book__nav--next { right: 4px; }
}

/* ---------------------------------------------------------
   Points de pagination
   --------------------------------------------------------- */
.menu-book__dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding-top: 1.6rem;
}
.menu-book__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--color-accent);
	background: transparent;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.menu-book__dot.is-active {
	background: var(--color-accent);
	transform: scale(1.2);
}

.menu-book__hint {
	text-align: center;
	font-size: 0.82rem;
	color: var(--color-ink-soft);
	margin: 0.9rem 0 0;
}
