/* ==========================================================================
   Page Réserver une séance
   Ouverture « Choisis ton moment. » sur le filigrane « Réserver »,
   puis le module Booknetic (WordPress de Mariella) dans une iframe.
   S'appuie sur les variables de style.css (.seance fournit --edge).
   ========================================================================== */

.reservation {
	--page: #f2f1ef;
	--paper: #fff;
	/* Hauteur du module : Booknetic fait 720px de haut quand le cadre dépasse
	   1000px de large, puis s'empile en colonne (voir @container plus bas).
	   Remplacée par la hauteur réelle si le WordPress l'envoie (reservation.js). */
	--rs-h: 720px;
	background: var(--page);
}
.reservation > section { background: var(--page); }

/* ---------- 1. Ouverture ---------- */
.rs-open {
	position: relative; overflow: hidden;
	padding: calc(var(--nav-h) + clamp(40px, 7vh, 96px)) var(--edge) clamp(30px, 5vh, 56px);
}
.rs-open > .rs-open__word {
	position: absolute; z-index: 0; left: calc(var(--edge) + clamp(3rem, 10vw, 12rem)); top: calc(var(--nav-h) + clamp(4px, 2vh, 24px));
	margin: 0; font-family: var(--f-display); font-size: clamp(4.5rem, 13vw, 13rem); line-height: .9;
	white-space: nowrap; color: rgba(33, 33, 33, .07); pointer-events: none; user-select: none;
}
.rs-open > *:not(.rs-open__word) { position: relative; z-index: 1; }
.rs-open__eyebrow {
	font-family: var(--f-title); font-weight: 400; text-transform: uppercase;
	font-size: clamp(.72rem, .68rem + .2vw, .9rem); letter-spacing: .14em; color: var(--grey-700);
}
.rs-open__title {
	margin-top: .15em; max-width: 14ch;
	font-family: var(--f-display); font-size: clamp(3rem, 1.4rem + 5vw, 6.6rem); line-height: 1; color: var(--grey-900);
}
.rs-open__lead { margin-top: clamp(14px, 2vh, 24px); font-weight: 400; font-size: var(--t-lead); line-height: 1.6; max-width: 44rem; }

/* ---------- 2. Module ---------- */
.rs-book { padding: 0 var(--edge) var(--sec-lg); }
.rs-book__head {
	display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px;
	padding-bottom: clamp(16px, 2.6vh, 24px); margin-bottom: clamp(20px, 3vh, 32px);
	border-bottom: 1px solid var(--hair, rgba(33, 33, 33, .15));
}
.rs-book__title { font-family: var(--f-display); font-size: var(--t-h3); line-height: 1.05; color: var(--grey-900); }
.rs-book__out {
	font-family: var(--f-title); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--mahogany); text-underline-offset: .3em; text-decoration-thickness: 1px;
}
.rs-book__out:hover { color: var(--grey-900); }

.rs-frame {
	position: relative; overflow: hidden; container-type: inline-size;
	background: var(--paper); border-radius: 18px;
	box-shadow: 0 30px 60px -36px rgba(33, 33, 33, .45);
}
.rs-frame__iframe {
	display: block; width: 100%; height: var(--rs-h); border: 0;
	background: var(--paper);
	transition: opacity .8s var(--ease);
}
.rs-frame.is-loading .rs-frame__iframe { opacity: 0; }

/* Attente : fine ligne qui file, comme l'écran de chargement */
.rs-frame__wait {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
	font-family: var(--f-title); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-700);
	pointer-events: none; transition: opacity .6s var(--ease);
}
.rs-frame:not(.is-loading) .rs-frame__wait { opacity: 0; }
.rs-frame__wait .ld-line i { animation: rs-wait 1.6s var(--ease) infinite; }
@keyframes rs-wait {
	0% { transform: scaleX(0); transform-origin: left; }
	50% { transform: scaleX(1); transform-origin: left; }
	51% { transform: scaleX(1); transform-origin: right; }
	100% { transform: scaleX(0); transform-origin: right; }
}
.reduced .rs-frame__wait .ld-line i { animation: none; transform: scaleX(.5); }
.rs-frame__noscript { padding: 40px; text-align: center; }

/* Infos pratiques */
.rs-infos {
	list-style: none; margin: clamp(36px, 6vh, 64px) 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px);
}
.rs-infos li { padding-top: 18px; border-top: 1px solid var(--hair, rgba(33, 33, 33, .15)); }
.rs-infos__label {
	display: block; margin-bottom: .7em;
	font-family: var(--f-title); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-700);
}
.rs-infos p { font-size: var(--t-card); line-height: 1.6; }
.rs-infos a { color: inherit; text-underline-offset: .2em; }
.rs-infos a:hover { color: var(--mahogany); }
.rs-cgv { margin-top: clamp(24px, 4vh, 40px); font-size: .85rem; color: var(--grey-700); }
.rs-cgv a { color: inherit; text-underline-offset: .2em; }

/* ---------- Responsive ---------- */
/* Booknetic s'empile sous 1000px de large : hauteurs mesurées le 29/10/2026
   (1518px à 800px de large, 1640px à 366px), avec un peu de marge. */
@container (max-width: 1000px) {
	.rs-frame__iframe { height: 1540px; }
}
@container (max-width: 500px) {
	.rs-frame__iframe { height: 1660px; }
}
@media (max-width: 760px) {
	.rs-infos { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.rs-open > .rs-open__word { left: var(--edge); font-size: 22vw; }
	.rs-book { padding-inline: 12px; }
	.rs-book__head { padding-inline: calc(var(--edge) - 12px); }
	.rs-infos, .rs-cgv { padding-inline: calc(var(--edge) - 12px); }
	.rs-frame { border-radius: 12px; }
}
