/* Page Newsletter V2. */

.hmv2-newsletter-page {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: #fff;
	color: #171717;
	font-family: "Cormorant Garamond", Georgia, serif;
}

/* Neutralise le padding blanc de 5em imposé par le template du thème parent. */
body.page-template .site-main.hmv2-newsletter-page {
	padding-bottom: 0;
}

body.hmv2-newsletter-view .site-main.hmv2-newsletter-page {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.hmv2-newsletter-page *,
.hmv2-newsletter-page *::before,
.hmv2-newsletter-page *::after {
	box-sizing: border-box;
}

.hmv2-newsletter-page__header {
	display: grid;
	place-items: center;
	min-height: clamp(170px, 13vw, 250px);
	padding: 42px 24px;
	background: #fff;
}

.hmv2-newsletter-page__header h1 {
	display: flex;
	align-items: center;
	gap: clamp(22px, 2.6vw, 48px);
	margin: 0;
	font-family: "Canela", "Cormorant Garamond", Georgia, serif;
	font-size: clamp(36px, 2.8vw, 54px);
	font-weight: 500;
	line-height: 1;
	text-align: center;
}

.hmv2-newsletter-page__header h1::before,
.hmv2-newsletter-page__header h1::after {
	width: clamp(48px, 5vw, 92px);
	height: 1px;
	background: currentColor;
	content: "";
}

.hmv2-newsletter-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
	align-items: center;
	gap: clamp(70px, 7vw, 140px);
	width: min(calc(100% - 96px), 1540px);
	margin-inline: auto;
	padding: 0 0 clamp(76px, 6vw, 112px);
}

.hmv2-newsletter-intro__visual {
	width: 100%;
	aspect-ratio: .89 / 1;
	overflow: hidden;
	background: #f1eee8;
}

.hmv2-newsletter-intro__visual img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.hmv2-newsletter-intro__visual.is-empty {
	background: #f1eee8;
}

.hmv2-newsletter-intro__copy {
	width: min(100%, 620px);
}

.hmv2-newsletter-intro__copy h2 {
	margin: 0 0 clamp(28px, 2.6vw, 48px);
	font-family: "Canela", "Cormorant Garamond", Georgia, serif;
	font-size: clamp(38px, 3.05vw, 58px);
	font-weight: 600;
	line-height: 1.04;
}

.hmv2-newsletter-intro__text {
	font-size: clamp(21px, 1.55vw, 29px);
	line-height: 1.34;
}

.hmv2-newsletter-intro__text > :first-child {
	margin-top: 0;
}

.hmv2-newsletter-intro__text > :last-child {
	margin-bottom: 0;
}

.hmv2-newsletter-intro__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	min-height: 50px;
	margin-top: clamp(28px, 2.5vw, 44px);
	padding: 11px 28px;
	border: 1px solid currentColor;
	color: inherit;
	font-family: "Poppins", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.1;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.hmv2-newsletter-intro__button:hover,
.hmv2-newsletter-intro__button:focus-visible {
	background: #171717;
	color: #fff;
}

.hmv2-newsletter-form {
	width: 100%;
	padding: clamp(70px, 7vw, 130px) 48px;
	background: #fbf6ee;
}

.hmv2-newsletter-form__title {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 0 clamp(14px, 1.2vw, 22px);
	font-family: "Canela", "Cormorant Garamond", Georgia, serif;
	font-size: clamp(34px, 2.6vw, 50px);
	font-weight: 600;
	line-height: .98;
	text-align: center;
}

.hmv2-newsletter-form__title::after {
	width: clamp(42px, 3.4vw, 64px);
	height: 1px;
	margin-top: clamp(14px, 1vw, 20px);
	background: currentColor;
	content: "";
}

.hmv2-newsletter-form__content {
	width: min(100%, 760px);
	margin-inline: auto;
}

.hmv2-newsletter-form__content > :first-child {
	margin-top: 0;
}

.hmv2-newsletter-form__content > :last-child {
	margin-bottom: 0;
}

.hmv2-newsletter-form__content > p {
	margin-inline: auto;
}

.hmv2-newsletter-form iframe {
	display: block;
	width: 100% !important;
	max-width: 640px !important;
	margin-inline: auto !important;
	border: 0;
}

/* Sépare discrètement le formulaire et le footer, qui partagent le même fond. */
.hmv2-newsletter-page + .hmv2-site-footer {
	margin-top: 0 !important;
}

body.hmv2-newsletter-view .hmv2-newsletter-page + .hmv2-site-footer {
	margin: 0 !important;
	padding: 0 !important;
	border-top: 0 !important;
}

.hmv2-newsletter-page + .hmv2-site-footer .hmv2-site-footer__main {
	padding-top: 0;
}

.hmv2-newsletter-page + .hmv2-site-footer .hmv2-site-footer__inner {
	padding-top: clamp(48px, 4vw, 68px);
	border-top: 1px solid rgba(23, 23, 23, .35);
}

@media (max-width: 900px) {
	.hmv2-newsletter-intro {
		gap: 54px;
		width: min(calc(100% - 64px), 820px);
	}

	.hmv2-newsletter-intro__copy h2 {
		font-size: clamp(42px, 5vw, 58px);
	}
}

@media (max-width: 700px) {
	.hmv2-newsletter-page__header {
		min-height: 145px;
		padding: 34px 20px;
	}

	.hmv2-newsletter-page__header h1 {
		gap: 15px;
		font-size: 34px;
	}

	.hmv2-newsletter-page__header h1::before,
	.hmv2-newsletter-page__header h1::after {
		width: 34px;
	}

	.hmv2-newsletter-intro {
		grid-template-columns: 1fr;
		gap: 42px;
		width: min(calc(100% - 40px), 560px);
		padding-bottom: 76px;
	}

	.hmv2-newsletter-intro__visual {
		aspect-ratio: .89 / 1;
	}

	.hmv2-newsletter-intro__copy {
		width: 100%;
	}

	.hmv2-newsletter-intro__copy h2 {
		margin-bottom: 22px;
		font-size: 42px;
	}

	.hmv2-newsletter-intro__text {
		font-size: 20px;
	}

	.hmv2-newsletter-form {
		padding: 58px 20px;
	}

	.hmv2-newsletter-form__title {
		margin-bottom: 14px;
		font-size: 34px;
	}

	.hmv2-newsletter-page + .hmv2-site-footer .hmv2-site-footer__inner {
		padding-top: 44px;
	}

	.hmv2-newsletter-form iframe {
		min-height: 620px;
	}
}
