/* Vidéo de l'accueil Azspa (Vincent Laville, 26/11/2026) */

/* ---------- Grand bandeau : vidéo en fond sur écran en hauteur (téléphone) ---------- */
.vl-bandeau__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease-in-out;
	pointer-events: none;
}
.vl-bandeau__video.est-visible {
	opacity: 1;
}
.vl-bandeau--cache .vl-bandeau__video {
	transition: none;
}

/* ---------- Partie « Visite en vidéo » (ordinateur et écran en largeur) ---------- */
.vl-visite {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: clamp(64px, 8vw, 120px) 24px;
	background: #121114;
	color: #e9e4da;
	overflow: hidden;
}
.vl-visite__interieur {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(40px, 7vw, 120px);
	max-width: 1100px;
	margin: 0 auto;
}
.vl-visite__texte {
	flex: 0 1 420px;
}
.vl-visite__texte h2 {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(32px, 3.6vw, 48px);
	line-height: 1.15;
	font-weight: 400;
	color: #fff;
}
.vl-visite__texte h2::after {
	content: "";
	display: block;
	width: 54px;
	height: 1px;
	margin: 24px 0 0;
	background: var(--vl-or);
}
.vl-visite__texte p {
	margin: 28px 0 36px;
	font-size: 17px;
	line-height: 1.9;
	color: #cfc8bb;
}
.vl-visite__bouton {
	display: inline-block;
	padding: 14px 30px;
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, .85);
	transition: background .35s, color .35s;
}
.vl-visite__bouton:hover,
.vl-visite__bouton:focus-visible {
	background: #fff;
	color: var(--vl-encre) !important;
}
.vl-visite__cadre {
	position: relative;
	flex: 0 0 auto;
	width: min(380px, calc((100vh - 120px) * 9 / 16));
	min-width: 260px;
	aspect-ratio: 9 / 16;
	padding: 10px;
	border: 1px solid rgba(201, 171, 116, .55);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.vl-visite__video {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	background: #000;
}
.vl-visite__pause {
	position: absolute;
	right: 22px;
	bottom: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 50%;
	background: rgba(10, 10, 10, .45);
	color: #fff;
	cursor: pointer;
	transition: background .3s;
}
.vl-visite__pause[hidden] {
	display: none;
}
.vl-visite__pause:hover,
.vl-visite__pause:focus-visible {
	background: rgba(10, 10, 10, .75);
}
.vl-visite__pause svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.vl-visite__pause .vl-icone-lecture,
.vl-visite__pause.est-en-pause .vl-icone-pause {
	display: none;
}
.vl-visite__pause.est-en-pause .vl-icone-lecture {
	display: block;
}

/* Écran en largeur mais étroit (tablette en largeur) : texte au-dessus, vidéo dessous */
@media (max-width: 900px) {
	.vl-visite__interieur {
		flex-direction: column;
		text-align: center;
	}
	.vl-visite__texte {
		flex-basis: auto;
	}
	.vl-visite__texte h2::after {
		margin-left: auto;
		margin-right: auto;
	}
}

/* Écran en hauteur (téléphone, tablette debout) : la vidéo est déjà dans le grand bandeau */
@media (max-aspect-ratio: 3/4) {
	.vl-visite {
		display: none;
	}
}
