/* Couleurs et police reprises de humansmile.be. Les sélecteurs doublés passent devant les styles de boutons du thème Hello Elementor. */
.hsc-card {
	--hsc-primary: #2375a6;
	--hsc-primary-dark: #1b5c83;
	--hsc-green: #1cb57b;
	--hsc-green-dark: #0c6b47;
	--hsc-red: #c8102e;
	--hsc-text: #081c24;
	--hsc-muted: #4f6068;
	--hsc-border: #c9d5db;

	box-sizing: border-box;
	max-width: 520px;
	margin: 0 auto;
	padding: 32px;
	background: #fff;
	border-top: 5px solid var(--hsc-primary);
	border-radius: 10px;
	box-shadow: 0 8px 30px rgba(8, 28, 36, .1);
	color: var(--hsc-text);
	font-family: Alexandria, Inter, Arial, sans-serif;
	text-align: left;
}

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

.hsc-card .hsc-title {
	margin: 0 0 8px;
	color: var(--hsc-primary);
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
}

.hsc-card .hsc-text {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.5;
}

.hsc-form .hsc-field {
	margin-bottom: 16px;
}

.hsc-form .hsc-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
}

.hsc-form .hsc-optional {
	color: var(--hsc-muted);
	font-weight: 400;
}

.hsc-form .hsc-field input {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--hsc-border);
	border-radius: 6px;
	color: var(--hsc-text);
	font-family: inherit;
	font-size: 16px;
}

.hsc-form .hsc-field input:focus {
	border-color: var(--hsc-primary);
	outline: 2px solid var(--hsc-primary);
	outline-offset: 1px;
}

.hsc-form .hsc-field input[aria-invalid="true"] {
	border-color: var(--hsc-red);
}

.hsc-form .hsc-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
}

.hsc-form .hsc-check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--hsc-primary);
}

.hsc-form .hsc-check input[aria-invalid="true"] {
	outline: 2px solid var(--hsc-red);
	outline-offset: 1px;
}

.hsc-form button.hsc-button {
	display: block;
	width: 100%;
	min-height: 50px;
	margin-top: 8px;
	padding: 12px 20px;
	background: var(--hsc-primary);
	border: 0;
	border-radius: 6px;
	color: #fff;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s;
}

.hsc-form button.hsc-button:hover,
.hsc-form button.hsc-button:focus {
	background: var(--hsc-primary-dark);
	color: #fff;
}

.hsc-form button.hsc-button:focus-visible {
	outline: 2px solid var(--hsc-text);
	outline-offset: 2px;
}

.hsc-form button.hsc-button[disabled] {
	opacity: .7;
	cursor: wait;
}

.hsc-form .hsc-status {
	margin: 12px 0 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

.hsc-form .hsc-status:empty {
	display: none;
}

.hsc-form .hsc-status.is-error {
	color: var(--hsc-red);
}

.hsc-form .hsc-legal {
	margin: 14px 0 0;
	color: var(--hsc-muted);
	font-size: 12.5px;
	line-height: 1.45;
}

.hsc-form .hsc-legal a {
	color: inherit;
	text-decoration: underline;
}

/* Champ piège : invisible pour les visiteurs, rempli par les robots. */
.hsc-form .hsc-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* État après inscription */
.hsc-card .hsc-success {
	padding: 16px;
	background: #e8f8f1;
	border-left: 4px solid var(--hsc-green);
	border-radius: 6px;
	color: var(--hsc-green-dark);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
}

.hsc-card a.hsc-gift {
	display: block;
	margin-top: 16px;
	padding: 14px 20px;
	background: var(--hsc-primary);
	border-radius: 6px;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.hsc-card a.hsc-gift:hover,
.hsc-card a.hsc-gift:focus {
	background: var(--hsc-primary-dark);
	color: #fff;
}

/* Pop-up */
.hsc-dialog {
	width: min(520px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	overflow: auto;
	background: transparent;
	border: 0;
}

.hsc-dialog::backdrop {
	background: rgba(8, 28, 36, .6);
}

.hsc-dialog button.hsc-close {
	position: absolute;
	top: 12px;
	right: 10px;
	z-index: 1;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: #4f6068;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.hsc-dialog button.hsc-close:hover,
.hsc-dialog button.hsc-close:focus {
	background: #eef3f6;
	color: #081c24;
}

@media (max-width: 480px) {
	.hsc-card {
		padding: 24px 20px;
	}

	.hsc-card .hsc-title {
		padding-right: 24px;
		font-size: 22px;
	}
}

/* Bulle animée --------------------------------------------------------- */
.hsc-bubble-wrap {
	--hsc-bubble: #2375a6;
	--hsc-bubble-dark: #1b5c83;
	--hsc-bubble-ring: rgba(35, 117, 166, .45);

	position: fixed;
	right: max(20px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 9990; /* Sous le bandeau cookies, qui doit rester accessible. */
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: Alexandria, Inter, Arial, sans-serif;
}

.hsc-bubble-wrap[hidden] {
	display: none;
}

.hsc-bubble-wrap--green {
	--hsc-bubble: #0f8a5c; /* Vert du site assombri : le blanc reste lisible dessus. */
	--hsc-bubble-dark: #0b6b47;
	--hsc-bubble-ring: rgba(28, 181, 123, .45);
}

.hsc-bubble-wrap--red {
	--hsc-bubble: #d91a33;
	--hsc-bubble-dark: #b01329;
	--hsc-bubble-ring: rgba(239, 35, 60, .4);
}

.hsc-bubble-wrap button.hsc-bubble {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: 64px;
	height: 64px;
	padding: 0;
	background: var(--hsc-bubble);
	border: 0;
	color: #fff;
	box-shadow: 0 8px 24px rgba(8, 28, 36, .28);
	cursor: pointer;
	animation: hsc-float 3.6s ease-in-out infinite;
	transition: background-color .15s, transform .15s;
}

.hsc-bubble-wrap button.hsc-bubble--round,
.hsc-bubble-wrap button.hsc-bubble--round::after {
	border-radius: 50%;
}

.hsc-bubble-wrap button.hsc-bubble--square,
.hsc-bubble-wrap button.hsc-bubble--square::after {
	border-radius: 16px;
}

.hsc-bubble-wrap button.hsc-bubble::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: 0 0 0 0 var(--hsc-bubble-ring);
	animation: hsc-pulse 2.4s ease-out infinite;
	pointer-events: none;
}

.hsc-bubble-wrap button.hsc-bubble:hover,
.hsc-bubble-wrap button.hsc-bubble:focus {
	background: var(--hsc-bubble-dark);
	color: #fff;
}

.hsc-bubble-wrap button.hsc-bubble:focus-visible {
	outline: 3px solid #081c24;
	outline-offset: 3px;
}

.hsc-bubble-icon {
	display: block;
	animation: hsc-wiggle 4.8s ease-in-out infinite;
}

.hsc-teaser {
	position: relative;
	max-width: 220px;
	padding: 10px 16px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(8, 28, 36, .18);
	color: #081c24;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	opacity: 0;
	transform: translateX(8px);
	pointer-events: none;
	transition: opacity .3s, transform .3s;
}

.hsc-teaser::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -5px;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	background: #fff;
	transform: rotate(45deg);
}

.hsc-bubble-wrap.is-teasing .hsc-teaser,
.hsc-bubble-wrap:hover .hsc-teaser,
.hsc-bubble-wrap:focus-within .hsc-teaser {
	opacity: 1;
	transform: none;
}

@keyframes hsc-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

@keyframes hsc-pulse {
	0% { box-shadow: 0 0 0 0 var(--hsc-bubble-ring); }
	70%, 100% { box-shadow: 0 0 0 18px rgba(0, 0, 0, 0); }
}

@keyframes hsc-wiggle {
	0%, 82%, 100% { transform: rotate(0); }
	85% { transform: rotate(-12deg); }
	88% { transform: rotate(10deg); }
	91% { transform: rotate(-7deg); }
	94% { transform: rotate(4deg); }
}

/* Template ------------------------------------------------------------- */
html.hsc-lock {
	overflow: hidden;
}

.hsc-dialog.hsc-panel-dialog {
	width: min(900px, calc(100vw - 48px));
	max-width: none;
	max-height: min(680px, calc(100dvh - 48px));
	margin: auto;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(8, 28, 36, .4);
}

.hsc-dialog.hsc-panel-dialog[open] {
	display: block;
	animation: hsc-panel-in .28s ease-out;
}

.hsc-panel,
.hsc-panel-media,
.hsc-panel-body {
	box-sizing: border-box;
}

.hsc-panel {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	max-height: inherit;
	background: #fff;
	color: #081c24;
	font-family: Alexandria, Inter, Arial, sans-serif;
	text-align: left;
}

.hsc-panel-media {
	position: relative;
	min-height: 100%;
	overflow: hidden;
	background: linear-gradient(150deg, #2375a6 0%, #1b5c83 55%, #1cb57b 130%);
}

.hsc-panel-media img.hsc-panel-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
}

.hsc-panel-body {
	min-width: 0;
	max-height: min(680px, calc(100dvh - 48px));
	padding: 40px 36px 32px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.hsc-panel-body .hsc-panel-kicker {
	margin: 0 0 6px;
	padding-right: 36px;
	color: #0f7f55;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.hsc-panel-body .hsc-panel-title {
	margin: 0 0 10px;
	padding-right: 36px;
	color: #2375a6;
	font-family: inherit;
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 700;
	line-height: 1.2;
}

.hsc-panel-text {
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.55;
}

.hsc-panel-text p {
	margin: 0 0 10px;
}

.hsc-panel-text > :last-child {
	margin-bottom: 0;
}

.hsc-panel-text a {
	color: #2375a6;
	text-decoration: underline;
}

.hsc-card.hsc-card--bare {
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.hsc-panel-dialog button.hsc-close {
	top: 12px;
	right: 12px;
	z-index: 2;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 1px 6px rgba(8, 28, 36, .2);
}

@keyframes hsc-panel-in {
	from { opacity: 0; transform: translateY(16px) scale(.98); }
	to { opacity: 1; transform: none; }
}

/* Tablette : la largeur reste suffisante pour deux colonnes, l'image se réduit. */
@media (max-width: 900px) {
	.hsc-panel {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}

	.hsc-panel-body {
		padding: 32px 28px 24px;
	}
}

/* Mobile : panneau en bas d'écran, image en bandeau. */
@media (max-width: 767px) {
	.hsc-dialog.hsc-panel-dialog {
		width: 100vw;
		max-height: 92dvh;
		margin: auto 0 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		border-radius: 18px 18px 0 0;
	}

	.hsc-dialog.hsc-panel-dialog[open] {
		animation-name: hsc-sheet-in;
	}

	/* Le bouton reste visible pendant le défilement du formulaire. */
	.hsc-panel-dialog button.hsc-close {
		position: sticky;
		top: 12px;
		right: auto;
		display: block;
		margin: 12px 12px -52px auto;
	}

	.hsc-panel {
		display: block;
		max-height: none;
	}

	.hsc-panel-media {
		height: 72px;
		min-height: 0;
	}

	.hsc-panel.has-image .hsc-panel-media {
		height: clamp(130px, 22dvh, 190px);
	}

	.hsc-panel-body {
		max-height: none;
		padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
		overflow: visible;
	}

	.hsc-panel-body .hsc-panel-kicker,
	.hsc-panel-body .hsc-panel-title {
		padding-right: 0;
	}

	.hsc-teaser {
		display: none;
	}

	.hsc-bubble-wrap button.hsc-bubble {
		width: 58px;
		height: 58px;
	}
}

@keyframes hsc-sheet-in {
	from { transform: translateY(40px); opacity: .6; }
	to { transform: none; opacity: 1; }
}

/* Les personnes sensibles aux mouvements ne voient pas d'animation. */
@media (prefers-reduced-motion: reduce) {
	.hsc-bubble-wrap button.hsc-bubble,
	.hsc-bubble-wrap button.hsc-bubble::after,
	.hsc-bubble-icon,
	.hsc-dialog.hsc-panel-dialog[open] {
		animation: none;
	}

	.hsc-teaser {
		transition: none;
	}
}
