/* Articles classiques et Sélection V2. */

.hmv2-single {
	--hmv2-ink: #171717;
	--hmv2-cream: #fbf6ee;
	--hmv2-sage: #dfe6d8;
	--hmv2-blue: #cceff5;
	--hmv2-yellow: #ffe8b6;
	--hmv2-teal: #6dadad;
	--hmv2-coral: #e9977e;
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 !important;
	background: #fff;
	color: var(--hmv2-ink);
	font-family: "Cormorant Garamond", Georgia, serif;
}

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

.hmv2-single a { color: inherit; }

.hmv2-single .hmv2-article-hero__image,
.hmv2-single .hmv2-article-block,
.hmv2-single .hmv2-selection-intro,
.hmv2-single .hmv2-related {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: none;
	margin-right: -50vw;
	margin-left: -50vw;
}

.hmv2-article-hero {
	position: relative;
	padding-bottom: clamp(170px, 13vw, 245px);
}

.hmv2-article-hero__image {
	width: 100%;
	height: clamp(480px, 46vw, 780px);
	overflow: hidden;
}

.hmv2-article-hero__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hmv2-article-hero__card {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: min(calc(100% - 48px), 1050px);
	padding: clamp(32px, 3.5vw, 62px) clamp(34px, 5vw, 94px) clamp(30px, 3.3vw, 58px);
	transform: translateX(-50%);
	background: #fff;
	text-align: center;
}

.hmv2-article-hero--without-image {
	min-height: 420px;
	padding: 0;
}

.hmv2-article-hero--without-image .hmv2-article-hero__card {
	top: 50%;
	bottom: auto;
	transform: translate(-50%, -50%);
}

.hmv2-article-hero__date {
	margin: 0 0 18px;
	font-family: "Poppins", Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	text-transform: none;
	opacity: .62;
}

.hmv2-article-hero h1 {
	margin: 0;
	font-family: "Canela", "Cormorant Garamond", Georgia, serif;
	font-size: clamp(36px, 3.4vw, 66px);
	font-weight: 600;
	line-height: 1.02;
}

.hmv2-article-hero__chapo {
	font-size: clamp(18px, 1.25vw, 23px);
	line-height: 1.38;
}

.hmv2-article-hero__chapo::before {
	display: block;
	width: 116px;
	height: 1px;
	margin: 30px auto;
	background: currentColor;
	content: "";
}

.hmv2-article-hero__chapo > :first-child,
.hmv2-article-hero__chapo > :last-child { margin-block: 0; }

.hmv2-article-hero__author {
	margin: 25px 0 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.hmv2-article-content { width: 100%; }

.hmv2-article-block {
	position: relative;
	width: 100%;
	padding: clamp(56px, 5.2vw, 96px) 0;
	background: transparent;
	color: var(--hmv2-ink);
}

.hmv2-article-block--bg-transparent { background: transparent !important; }
.hmv2-article-block--bg-cream { background: var(--hmv2-cream) !important; }
.hmv2-article-block--bg-sage { background: var(--hmv2-sage) !important; }
.hmv2-article-block--bg-blue { background: var(--hmv2-blue) !important; }
.hmv2-article-block--bg-yellow { background: var(--hmv2-yellow) !important; }
.hmv2-article-block--bg-teal { background: var(--hmv2-teal) !important; }
.hmv2-article-block--bg-coral { background: var(--hmv2-coral) !important; }
.hmv2-article-block--text-dark { color: var(--hmv2-ink) !important; }
.hmv2-article-block--text-light { color: #fff !important; }

.hmv2-article-block__inner {
	width: min(calc(100% - 72px), 1260px);
	margin-inline: auto;
}

.hmv2-article-block--section-col_images .hmv2-article-block__inner,
.hmv2-article-block--section-image-large .hmv2-article-block__inner {
	width: min(calc(100% - 144px), 1260px);
}

.hmv2-richtext {
	font-size: clamp(18px, 1.15vw, 21px);
	line-height: 1.52;
}

.hmv2-richtext > :first-child { margin-top: 0; }
.hmv2-richtext > :last-child { margin-bottom: 0; }
.hmv2-richtext h2,
.hmv2-richtext h3,
.hmv2-richtext h4 {
	font-family: "Canela", "Cormorant Garamond", Georgia, serif;
	font-weight: 600;
	line-height: 1.08;
}
.hmv2-richtext h2 { font-size: clamp(32px, 2.4vw, 46px); }
.hmv2-richtext h3 { font-size: clamp(27px, 1.9vw, 36px); }

.hmv2-article-two-columns,
.hmv2-article-text-image {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: clamp(50px, 7vw, 124px);
}

.hmv2-article-two-columns + .hmv2-article-two-columns,
.hmv2-article-text-image + .hmv2-article-text-image { margin-top: clamp(60px, 6vw, 108px); }

.hmv2-article-text-image.is-reversed .hmv2-richtext { order: 2; }
.hmv2-article-text-image.is-reversed figure { order: 1; }

.hmv2-article-text-image figure,
.hmv2-article-image-large,
.hmv2-article-gallery figure,
.hmv2-article-video { margin: 0; }

.hmv2-article-text-image img,
.hmv2-article-image-large img,
.hmv2-article-gallery img {
	display: block;
	width: 100%;
	height: auto;
}

.hmv2-article-block figcaption {
	margin-top: 8px;
	font-family: "Poppins", Arial, sans-serif;
	font-size: 11px;
	line-height: 1.35;
	opacity: .7;
}

.hmv2-article-gallery {
	position: relative;
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 42px;
	align-items: center;
	gap: 24px;
}

.hmv2-article-gallery.is-static {
	grid-template-columns: minmax(0, 1fr);
}

.hmv2-article-gallery__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 42px) / 2);
	gap: 42px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.hmv2-article-gallery__track::-webkit-scrollbar { display: none; }
.hmv2-article-gallery__track figure { scroll-snap-align: start; }
.hmv2-article-gallery.is-static .hmv2-article-gallery__track {
	grid-auto-flow: initial;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hmv2-article-gallery button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: 300 54px/1 Georgia, serif;
	cursor: pointer;
}

.hmv2-article-shopping {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(30px, 3.2vw, 52px);
}

.hmv2-article-shopping article {
	min-width: 0;
	text-align: center;
}
.hmv2-article-shopping a { text-decoration: none; }
.hmv2-article-shopping img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
}
.hmv2-article-shopping h3 {
	margin: 16px 0 0;
	font-family: "Canela", "Cormorant Garamond", Georgia, serif;
	font-size: 15px !important;
	font-weight: 600;
	line-height: 1.25;
}
.hmv2-article-shopping p {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.3;
}

.hmv2-article-video video {
	display: block;
	width: 100%;
	height: auto;
}

.hmv2-article-image-large img { max-height: 820px; object-fit: contain; }

.hmv2-article-quote {
	width: min(100%, 980px);
	margin: 0 auto;
	padding: 0;
	border: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(32px, 2.5vw, 48px) !important;
	font-style: italic;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.hmv2-article-quote p {
	margin: 0;
	font: inherit !important;
	color: inherit;
}

.hmv2-article-ad {
	display: none;
	width: min(calc(100% - 48px), 1100px);
	min-height: 0;
	margin: 0 auto;
	text-align: center;
}
.hmv2-article-ad.has-ad { display: block; padding: 40px 0; }

/* Article Sélection : chaque flèche est un lien, donc un rechargement complet. */
.hmv2-selection-intro {
	padding: clamp(54px, 5vw, 88px) 24px;
	font-size: clamp(23px, 1.8vw, 34px);
	line-height: 1.25;
	text-align: center;
}
.hmv2-selection-intro > * { width: min(100%, 900px); margin-inline: auto; }
.hmv2-selection-intro > :first-child { margin-top: 0; }
.hmv2-selection-intro > :last-child { margin-bottom: 0; }
.hmv2-selection-item { padding: clamp(70px, 7vw, 126px) 0; }
.hmv2-selection-item { scroll-margin-top: 72px; }
.hmv2-selection-item h2 {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 24px clamp(48px, 4.5vw, 76px);
	font-family: "Canela", "Cormorant Garamond", Georgia, serif;
	font-size: clamp(34px, 3vw, 58px);
	font-weight: 600;
	line-height: 1.05;
	text-align: center;
}
.hmv2-selection-item h2::after {
	width: 112px;
	height: 1px;
	margin-top: 26px;
	background: currentColor;
	content: "";
}
.hmv2-selection-item__gallery {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) 58px;
	align-items: center;
	gap: 24px;
	width: min(calc(100% - 48px), 1570px);
	margin-inline: auto;
}
.hmv2-selection-item__images {
	display: grid;
	grid-column: 2;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(30px, 4vw, 68px);
}
.hmv2-selection-item__images.is-single { grid-template-columns: minmax(0, 1fr); }
.hmv2-selection-item__images figure {
	display: grid;
	place-items: center;
	height: clamp(430px, 49vw, 780px);
	margin: 0;
	overflow: hidden;
}
.hmv2-selection-item__images img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hmv2-selection-item__images.is-single figure,
.hmv2-selection-item__images figure:only-child {
	display: flex;
	align-items: center;
	flex-direction: column;
	height: auto;
	min-height: 0;
	overflow: visible;
}
.hmv2-selection-item__images.is-single img,
.hmv2-selection-item__images figure:only-child img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: clamp(380px, 62vh, 650px);
	object-fit: contain;
	object-position: center;
}
.hmv2-selection-item__nav {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: #fff;
	color: var(--hmv2-ink);
	font: 400 44px/1 Georgia, serif;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}
.hmv2-selection-item__nav:hover,
.hmv2-selection-item__nav:focus-visible {
	background: var(--hmv2-ink);
	color: #fff;
}
.hmv2-selection-item__nav--next { grid-column: 3; }
.hmv2-selection-item__text {
	width: min(calc(100% - 72px), 1270px);
	margin-inline: auto;
	font-size: clamp(18px, 1.15vw, 21px);
	line-height: 1.48;
}
.hmv2-selection-item__text { margin-top: 76px; }
.hmv2-selection-item__counter {
	margin: 52px 0 0;
	font-family: "Poppins", Arial, sans-serif;
	font-size: 13px;
	text-align: center;
}

/* Plus d'inspiration. */
.hmv2-related {
	padding: clamp(44px, 4.5vw, 78px) 0 clamp(68px, 6vw, 108px);
	background: #fff;
}
.hmv2-related > h2 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(20px, 2.4vw, 44px);
	margin: 0 0 clamp(48px, 4.2vw, 66px);
	font-family: "Canela", "Cormorant Garamond", Georgia, serif;
	font-size: clamp(30px, 2.4vw, 40px);
	font-weight: 500;
	line-height: 1;
}
.hmv2-related > h2::before,
.hmv2-related > h2::after {
	width: clamp(44px, 4.5vw, 82px);
	height: 1px;
	background: currentColor;
	content: "";
}
.hmv2-related__grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: flex-start;
	gap: 32px;
	width: min(calc(100% - 96px), 1480px);
	margin-inline: auto;
}
.hmv2-related-card {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 100% !important;
	margin: 0 !important;
	justify-self: stretch !important;
	box-sizing: border-box !important;
}
.hmv2-related-card__image {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #eee9e2;
}
.hmv2-related-card__image img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.hmv2-related-card p { margin: 12px 0 9px; padding-bottom: 8px; border-bottom: 1px solid currentColor; font-size: 16px; line-height: 1.3; }
.hmv2-related-card h3 { margin: 0; font-size: clamp(18px, 1.25vw, 21px); font-weight: 600; line-height: 1.28; }
.hmv2-related-card h3 a { text-decoration: none; }

@media (max-width: 900px) {
	.hmv2-article-shopping { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hmv2-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 42px 32px;
		width: min(calc(100% - 64px), 720px);
	}
}

@media (max-width: 700px) {
	.hmv2-article-hero { padding-bottom: 250px; }
	.hmv2-article-hero__image { height: 72vw; min-height: 360px; }
	.hmv2-article-hero__card { width: calc(100% - 36px); padding: 28px 23px; }
	.hmv2-article-hero h1 { font-size: 34px; }
	.hmv2-article-hero__chapo { font-size: 17px; }
	.hmv2-article-block { padding-block: 52px; }
	.hmv2-article-block__inner { width: min(calc(100% - 40px), 560px); }
	.hmv2-article-block--section-col_images .hmv2-article-block__inner,
	.hmv2-article-block--section-image-large .hmv2-article-block__inner { width: calc(100% - 40px); }
	.hmv2-article-two-columns,
	.hmv2-article-text-image { grid-template-columns: 1fr; gap: 34px; }
	.hmv2-article-text-image.is-reversed .hmv2-richtext,
	.hmv2-article-text-image.is-reversed figure { order: initial; }
	.hmv2-article-gallery { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 8px; }
	.hmv2-article-gallery__track { grid-auto-columns: 82%; gap: 18px; }
	.hmv2-article-gallery.is-static .hmv2-article-gallery__track { grid-template-columns: 1fr; }
	.hmv2-article-gallery button { width: 28px; font-size: 42px; }
	.hmv2-selection-item__gallery { grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 8px; width: calc(100% - 20px); }
	.hmv2-selection-item__images { grid-template-columns: 1fr; gap: 20px; }
	.hmv2-selection-item__images figure { height: min(58vh, 520px); }
	.hmv2-selection-item__images.is-single figure,
	.hmv2-selection-item__images figure:only-child { height: auto; }
	.hmv2-selection-item__images.is-single img,
	.hmv2-selection-item__images figure:only-child img { max-height: min(58vh, 520px); }
	.hmv2-selection-item__images img { object-fit: contain; }
	.hmv2-selection-item__nav { width: 46px; height: 46px; font-size: 36px; }
	.hmv2-selection-item__text { width: calc(100% - 40px); margin-top: 52px; }
}

@media (max-width: 480px) {
	.hmv2-related__grid { grid-template-columns: minmax(0, 1fr); width: min(calc(100% - 40px), 320px); }
	.hmv2-article-shopping { grid-template-columns: 1fr; }
}

/* Typographies mobiles plus proches des proportions de la maquette. */
@media (max-width: 700px) {
	.single-post .hmv2-single .hmv2-article-hero h1 {
		font-size: 22px !important;
		line-height: 1.08;
	}

	.single-post .hmv2-single .hmv2-article-content .hmv2-richtext h2 {
		font-size: 21px !important;
		line-height: 1.12;
	}

	.single-post .hmv2-single .hmv2-selection-item h2 {
		font-size: 22px !important;
		line-height: 1.08;
	}

	.hmv2-article-shopping {
		gap: 30px 22px;
	}

	.hmv2-article-shopping h3 {
		margin-top: 12px;
		font-size: 14px !important;
		line-height: 1.2;
	}

	.hmv2-article-shopping p {
		margin-top: 5px;
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.single-post .hmv2-single .hmv2-article-hero h1 {
		font-size: 20px !important;
	}

	.single-post .hmv2-single .hmv2-article-content .hmv2-richtext h2 {
		font-size: 19px !important;
	}

	.single-post .hmv2-single .hmv2-selection-item h2 {
		font-size: 20px !important;
	}
}
