/* Volet formulaire HubSpot — monte depuis le bas, laisse un espace en haut */
.yhs-panel {
	position: fixed;
	top: 15%;            /* espace conservé en haut, comme l'ancien site */
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99998;
	background: var(--c-bg, #FAF3EB);
	border-radius: 24px 24px 0 0;
	box-shadow: 0 -12px 30px rgba(0, 0, 0, .12);
	transform: translateY(100%);
	transition: transform .5s cubic-bezier(.22, 1, .36, 1), visibility .5s;
	overflow: hidden;
	visibility: hidden;
}
.yhs-panel.is-open {
	transform: translateY(0);
	visibility: visible;
}

.yhs-panel__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: var(--c-navy, #1A0B4D);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	transition: transform .25s ease;
}
.yhs-panel__close:hover { transform: rotate(90deg); }
.yhs-panel__close svg { width: 22px; height: 22px; }

.yhs-panel__inner {
	height: 100%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 880px;
	margin: 0 auto;
	padding: 80px 24px 64px;
}
.yhs-panel__title {
	margin: 0 0 32px;
	text-align: center;
	font-family: var(--ff-accent, 'Fraunces'), serif;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
	color: var(--c-navy, #1A0B4D);
}
.yhs-panel__title[hidden] { display: none; }

/* Curseur main sur le CTA déclencheur (le bouton n'a pas de lien réel) */
.createFormHubSpot,
.createFormHubSpot a,
.createFormHubSpot .elementor-button { cursor: pointer; }

/* Blocage du scroll de la page quand le volet est ouvert */
body.yhs-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.yhs-panel { transition: transform .2s ease, visibility .2s; }
}
