:root {
	--hd-project-navy: #30465f;
	--hd-project-cyan: #20b9d7;
	--hd-project-soft: #f5f8fa;
	--hd-project-border: #dce8ee;
	--hd-project-muted: #61758a;
	--hd-project-radius: 8px;
}

/* ==========================================================================
   STRUCTURE
   Blocksy gère désormais le conteneur principal de la publication.
   Les shells internes ne redéfinissent donc plus une largeur de page.
   ========================================================================== */

.hd-single-project,
.hd-single-project__article {
	background: #fff;
}

.hd-project-shell {
	width: 100%;
	max-width: none;
	margin: 0;
}


/* ==========================================================================
   HERO — IMAGE PLEINE LARGEUR
   ========================================================================== */

.hd-project-hero {
	position: relative;
	left: 50%;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 100vw;
	min-height: min(820px, 82vh);
	margin-left: -50vw;
	padding-block: clamp(70px, 8vw, 110px);
	overflow: hidden;
}

.hd-project-hero__visual {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	background: var(--hd-project-navy);
	overflow: hidden;
}

.hd-project-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.hd-project-hero__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #3b536c, #23384d);
}

/*
 * Le dégradé préserve la fresque à gauche et assure la lisibilité du
 * contenu à droite sans ajouter de carte opaque sur l'image.
 */
.hd-project-hero__visual::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(
		90deg,
		rgb(24 42 61 / 7%) 0%,
		rgb(24 42 61 / 15%) 35%,
		rgb(24 42 61 / 72%) 68%,
		rgb(24 42 61 / 92%) 100%
	);
	pointer-events: none;
}

.hd-project-hero__content {
	position: relative;
	z-index: 1;
	width: min(570px, 46vw);
	max-width: 570px;
	margin-right: max(
		24px,
		calc((100vw - var(--theme-normal-container-max-width, 1280px)) / 2)
	);
	color: #fff;
}

.hd-project-hero h1 {
	margin: 14px 0 0 !important;
	color: #fff;
	font-size: clamp(36px, 3.4vw, 56px);
	letter-spacing: -0.025em;
	line-height: 1.08;
	text-shadow: 0 3px 20px rgb(0 0 0 / 22%);
}

.hd-project-breadcrumb {
	margin-bottom: 30px;
}

.hd-project-hero .ct-breadcrumbs,
.hd-project-hero .ct-breadcrumbs a,
.hd-project-hero .ct-breadcrumbs span {
	color: #fff;
}

.hd-project-hero .ct-breadcrumbs a:hover {
	color: var(--hd-project-cyan);
}

.hd-project-eyebrow,
.hd-project-section-kicker {
	margin: 0;
	color: var(--hd-project-cyan);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hd-project-eyebrow {
	color: #fff;
}

.hd-project-lead {
	margin: 24px 0 0;
	color: rgb(255 255 255 / 88%);
	line-height: 1.75;
}


/* ==========================================================================
   MÉTADONNÉES
   ========================================================================== */

.hd-project-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 32px 0 28px;
	border: 0;
	background: transparent;
}

.hd-project-facts__item {
	min-width: 0;
	padding: 14px 15px;
	border: 1px solid rgb(255 255 255 / 17%);
	border-radius: 7px;
	background: rgb(255 255 255 / 11%);
	box-shadow: none;
	-webkit-backdrop-filter: blur(9px);
	backdrop-filter: blur(9px);
}

.hd-project-facts dt {
	margin: 0 0 5px;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.055em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hd-project-facts dd {
	margin: 0;
	color: rgb(255 255 255 / 76%);
	font-size: 0.9rem;
	line-height: 1.45;
}

.hd-project-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 22px;
	border-radius: 3px;
	background: var(--hd-project-cyan);
	color: #fff;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.075em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 180ms ease, transform 180ms ease;
}

.hd-project-button:hover {
	background: #149db8;
	color: #fff;
	transform: translateY(-2px);
}


/* ==========================================================================
   CONTENU ÉDITORIAL
   ========================================================================== */

.hd-project-story {
	padding: clamp(64px, 8vw, 110px) 24px;
	background: var(--hd-project-soft);
}

.hd-project-reading {
	width: min(820px, 100%);
	margin-inline: auto;
}

.hd-project-reading > h2 {
	margin: 10px 0 30px;
}

.hd-single-project__content > *:first-child {
	margin-top: 0;
}

.hd-single-project__content > *:last-child {
	margin-bottom: 0;
}

.hd-single-project__content h2,
.hd-single-project__content h3 {
	margin-top: 1.8em;
	color: var(--hd-project-navy);
}

.hd-project-story-quote {
	margin: 2rem 0 0;
	padding: 1.1rem 0 1.1rem 1.5rem;
	border-left: 3px solid var(--hd-project-cyan);
	color: var(--hd-project-navy);
	font-family: serif !important;
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-style: italic;
	line-height: 1.55;
}


/* ==========================================================================
   GALERIE
   Motif desktop : 2 grandes images, puis 3 images, puis répétition.
   ========================================================================== */

.hd-project-gallery-section {
	padding: clamp(72px, 9vw, 124px) 0;
}

.hd-project-section-heading {
	margin-bottom: 38px;
	text-align: center;
}

.hd-project-section-heading h2 {
	margin: 8px 0 0;
}

.hd-project-key-number {
	display: inline-grid;
	align-items: baseline;
	gap: 0.2rem;
	margin: 30px 0 0;
	padding: 1.15rem 1.55rem;
	border-radius: 999px;
	background: var(--hd-project-navy);
	color: #fff;
	text-align: center;
}

.hd-project-key-number strong {
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1;
}

.hd-project-key-number span {
	line-height: 1.45;
}

.hd-project-gallery {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
}

.hd-project-gallery__item {
	position: relative;
	grid-column: span 4;
	min-height: 280px;
	border-radius: var(--hd-project-radius);
	background: #e8eef1;
	overflow: hidden;
}

.hd-project-gallery__item:nth-child(5n + 1),
.hd-project-gallery__item:nth-child(5n + 2) {
	grid-column: span 6;
	min-height: 390px;
}

/* Une image seule sur la dernière ligne occupe toute la largeur. */
.hd-project-gallery__item:only-child,
.hd-project-gallery__item:nth-child(5n + 1):last-child,
.hd-project-gallery__item:nth-child(5n + 3):last-child {
	grid-column: 1 / -1;
	min-height: clamp(420px, 52vw, 700px);
}

/* Deux images restantes après une ligne de trois : 50 / 50. */
.hd-project-gallery__item:nth-child(5n + 3):nth-last-child(2),
.hd-project-gallery__item:nth-child(5n + 4):last-child {
	grid-column: span 6;
	min-height: 390px;
}

.hd-project-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	object-fit: cover;
	transition: transform 320ms ease;
}

.hd-project-gallery__item:hover .hd-project-gallery__image {
	transform: scale(1.025);
}

.hd-project-gallery__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 68px;
	filter: drop-shadow(0 8px 18px rgb(29 48 67 / 28%));
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.hd-project-gallery__play svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hd-project-gallery__play circle {
	fill: rgb(255 255 255 / 92%);
}

.hd-project-gallery__play path {
	fill: var(--hd-project-cyan);
}


/* ==========================================================================
   PAGE PILIER ASSOCIÉE
   ========================================================================== */

.hd-project-pillar {
	/*padding: clamp(50px, 7vw, 90px) 0;*/
	background: #fff;
}

.hd-project-pillar__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(40px, 7vw, 90px);
	padding: clamp(34px, 4vw, 52px);
	border-left: 4px solid var(--hd-project-cyan);
	background: var(--theme-palette-color-5);
}

.hd-project-pillar__content {
	max-width: 760px;
}

.hd-project-pillar__content .hd-project-section-kicker {
	margin-bottom: 10px;
}

.hd-project-pillar__content h2 {
	margin: 0;
	color: var(--hd-project-navy);
	font-size: clamp(25px, 2.7vw, 37px);
	font-weight: 650;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.hd-project-pillar__content > p:last-child {
	max-width: 700px;
	margin: 15px 0 0;
	color: var(--hd-project-muted);
	line-height: 1.7;
}

.hd-project-pillar__link {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 13px;
	padding: 8px 0;
	border-bottom: 2px solid var(--hd-project-cyan);
	color: var(--hd-project-navy);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: color 180ms ease, border-color 180ms ease;
}

.hd-project-pillar__link span {
	color: var(--hd-project-cyan);
	font-size: 20px;
	line-height: 1;
	transition: transform 180ms ease;
}

.hd-project-pillar__link:hover {
	border-color: var(--hd-project-navy);
	color: var(--hd-project-cyan);
}

.hd-project-pillar__link:hover span {
	transform: translateX(4px);
}


/* ==========================================================================
   PROJETS SIMILAIRES
   ========================================================================== */

.hd-related-projects {
	padding: clamp(72px, 9vw, 124px) 0;
	background: var(--hd-project-soft);
}

.hd-related-projects__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 42px);
}

.hd-related-project {
	min-width: 0;
}

.hd-related-project__image-link {
	display: block;
	height: clamp(300px, 31vw, 440px);
	border-radius: var(--hd-project-radius);
	background: #e8eef1;
	overflow: hidden;
}

.hd-related-project__image,
.hd-related-project__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 320ms ease;
}

.hd-related-project__image-link:hover .hd-related-project__image {
	transform: scale(1.025);
}

.hd-related-project__content {
	padding-top: 19px;
}

.hd-related-project__taxonomy {
	margin: 0 0 7px;
	color: var(--hd-project-cyan);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hd-related-project h3 {
	margin: 0;
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 650;
	letter-spacing: -0.015em;
	line-height: 1.35;
}

.hd-related-project h3 a {
	color: var(--hd-project-navy);
	text-decoration: none;
}

.hd-related-project h3 a:hover {
	color: var(--hd-project-cyan);
}

.hd-related-project__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 13px;
	color: var(--hd-project-navy);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.hd-related-project__link span {
	color: var(--hd-project-cyan);
	font-size: 18px;
	transition: transform 180ms ease;
}

.hd-related-project__link:hover {
	color: var(--hd-project-cyan);
}

.hd-related-project__link:hover span {
	transform: translateX(4px);
}


/* ==========================================================================
   RESPONSIVE — TABLETTE
   ========================================================================== */

@media (max-width: 1024px) {
	.hd-project-hero__content {
		width: min(540px, 52vw);
		margin-right: 30px;
	}

	.hd-project-gallery__item,
	.hd-project-gallery__item:nth-child(5n + 1),
	.hd-project-gallery__item:nth-child(5n + 2),
	.hd-project-gallery__item:nth-child(5n + 3):nth-last-child(2),
	.hd-project-gallery__item:nth-child(5n + 4):last-child {
		grid-column: span 6;
		min-height: 320px;
	}

	.hd-project-gallery__item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		min-height: 420px;
	}
}


/* ==========================================================================
   RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 760px) {
	.hd-project-hero {
		display: block;
		min-height: 0;
		padding: 0;
		overflow: visible;
		background: var(--hd-project-navy);
	}

	.hd-project-hero__visual {
		position: relative;
		inset: auto;
		z-index: 0;
		height: clamp(330px, 64vw, 480px);
	}

	.hd-project-hero__visual::after {
		background: linear-gradient(
			180deg,
			transparent 55%,
			rgb(24 42 61 / 45%) 100%
		);
	}

	.hd-project-hero__content {
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 34px 20px 56px;
		background: var(--hd-project-navy);
	}

	.hd-project-breadcrumb {
		margin-bottom: 24px;
		font-size: 11px;
	}

	.hd-project-hero h1 {
		font-size: clamp(32px, 10vw, 44px);
	}

	.hd-project-lead {
		font-size: 16px;
	}

	.hd-project-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hd-project-button {
		width: 100%;
	}

	.hd-project-story {
		padding: 58px 20px;
	}

	.hd-project-gallery {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.hd-project-gallery__item,
	.hd-project-gallery__item:nth-child(5n + 1),
	.hd-project-gallery__item:nth-child(5n + 2),
	.hd-project-gallery__item:nth-child(5n + 3):last-child,
	.hd-project-gallery__item:nth-child(5n + 3):nth-last-child(2),
	.hd-project-gallery__item:nth-child(5n + 4):last-child,
	.hd-project-gallery__item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		min-height: min(72vw, 390px);
	}

	.hd-project-key-number {
		border-radius: 12px;
	}

	.hd-project-pillar__card {
		grid-template-columns: 1fr;
		gap: 25px;
		padding: 30px 26px;
	}

	.hd-project-pillar__link {
		justify-self: start;
	}

	.hd-related-projects__grid {
		grid-template-columns: 1fr;
	}

	.hd-related-project__image-link {
		height: min(78vw, 390px);
	}
}

@media (max-width: 430px) {
	.hd-project-facts {
		grid-template-columns: 1fr;
	}

	.hd-project-pillar {
		padding: 42px 0 58px;
	}

	.hd-project-pillar__card {
		padding: 27px 22px;
	}
}


/* ==========================================================================
   ACCESSIBILITÉ
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.hd-project-button,
	.hd-project-gallery__image,
	.hd-project-pillar__link,
	.hd-project-pillar__link span,
	.hd-related-project__image,
	.hd-related-project__link span {
		transition: none;
	}
}