/* ==========================================================================
   HARD DÉCO — SÉLECTION DE RÉALISATIONS SUR LA PAGE D'ACCUEIL
   ========================================================================== */

.hd-home-projects {
	position: relative;

	margin-inline: calc(50% - 50vw);
	padding-block: clamp(64px, 8vw, 118px);
	background: #fff;
}

.hd-home-projects__inner {
	
	margin-inline: auto;
}

.hd-home-projects__header {
	max-width: 760px;
	margin: 0 auto clamp(42px, 6vw, 82px);
	text-align: center;
}

.hd-home-projects__kicker,
.hd-home-project__eyebrow {
	margin: 0;
	color: var(--theme-palette-color-1, #20b9d7);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.105em;
	text-transform: uppercase;
}

.hd-home-projects__title {
	max-width: 720px;
	margin: 10px auto 0;
	color: var(--theme-headings-color, #314a65);
	font-size: clamp(2rem, 4vw, 3.45rem);
	line-height: 1.08;
}

.hd-home-projects__intro {
	max-width: 650px;
	margin: 22px auto 0;
	color: var(--theme-text-color, #587087);
	font-size: clamp(1rem, 1.25vw, 1.12rem);
	line-height: 1.75;
}

/* Mosaïque éditoriale */
.hd-home-projects__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(24px, 4vw, 54px);
	row-gap: clamp(54px, 7vw, 94px);
	align-items: start;
}

.hd-home-project {
	min-width: 0;
	margin: 0;
}

.hd-home-project--pattern-1,
.hd-home-project--pattern-4 {
	grid-column: span 7;
}

.hd-home-project--pattern-2,
.hd-home-project--pattern-3 {
	grid-column: span 5;
}

.hd-home-project__image-link {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 7px;
	background: #edf2f5;
}

.hd-home-project--pattern-1 .hd-home-project__image-link,
.hd-home-project--pattern-4 .hd-home-project__image-link {
	aspect-ratio: 16 / 10;
}

.hd-home-project--pattern-2 .hd-home-project__image-link,
.hd-home-project--pattern-3 .hd-home-project__image-link {
	aspect-ratio: 4 / 3;
}

.hd-home-project__image,
.hd-home-project__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.hd-home-project__image {
	object-fit: cover;
	transition: transform 650ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.hd-home-project__image-link:hover .hd-home-project__image,
.hd-home-project__image-link:focus-visible .hd-home-project__image {
	transform: scale(1.025);
}

.hd-home-project__content {
	padding-top: 21px;
}

.hd-home-project__eyebrow {
	margin-bottom: 8px;
}

.hd-home-project__title {
	margin: 0;
	color: var(--theme-headings-color, #314a65);
	font-size: clamp(1.25rem, 1.8vw, 1.72rem);
	line-height: 1.25;
}

.hd-home-project__title a {
	color: inherit;
	text-decoration: none;
}

.hd-home-project__title a:hover,
.hd-home-project__title a:focus-visible {
	color: var(--theme-palette-color-1, #20b9d7);
}

.hd-home-project__link {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin-top: 14px;
	color: var(--theme-headings-color, #314a65);
	font-size: 0.87rem;
	font-weight: 700;
	text-decoration: none;
}

.hd-home-project__link span:last-child {
	color: var(--theme-palette-color-1, #20b9d7);
	transition: transform 180ms ease;
}

.hd-home-project__link:hover span:last-child,
.hd-home-project__link:focus-visible span:last-child {
	transform: translateX(4px);
}

.hd-home-projects__footer {
	display: flex;
	justify-content: center;
	margin-top: clamp(52px, 7vw, 90px);
}

.hd-home-projects__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 13px;
	min-height: 48px;
	padding: 13px 23px;
	border: 1px solid var(--theme-palette-color-1, #20b9d7);
	border-radius: 3px;
	color: var(--theme-palette-color-1, #20b9d7);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.075em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 180ms ease, background-color 180ms ease;
}

.hd-home-projects__all:hover,
.hd-home-projects__all:focus-visible {
	color: #fff;
	background: var(--theme-palette-color-1, #20b9d7);
}

.hd-home-projects__empty {
	padding: 20px;
	border-left: 3px solid var(--theme-palette-color-1, #20b9d7);
	background: #f3f6f8;
}

/* Tablette */
@media (max-width: 999px) {
	.hd-home-projects__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 25px;
		row-gap: 55px;
	}

	.hd-home-project--pattern-1,
	.hd-home-project--pattern-2,
	.hd-home-project--pattern-3,
	.hd-home-project--pattern-4 {
		grid-column: span 1;
	}

	.hd-home-project__image-link,
	.hd-home-project--pattern-1 .hd-home-project__image-link,
	.hd-home-project--pattern-2 .hd-home-project__image-link,
	.hd-home-project--pattern-3 .hd-home-project__image-link,
	.hd-home-project--pattern-4 .hd-home-project__image-link {
		aspect-ratio: 4 / 3;
	}
}

/* Mobile */
@media (max-width: 689px) {
	.hd-home-projects {
		padding-block: 54px 66px;
	}

	.hd-home-projects__header {
		margin-bottom: 38px;
		text-align: left;
	}

	.hd-home-projects__title,
	.hd-home-projects__intro {
		margin-left: 0;
		margin-right: 0;
	}

	.hd-home-projects__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 46px;
	}

	.hd-home-project__content {
		padding-top: 17px;
	}

	.hd-home-projects__footer {
		justify-content: flex-start;
		margin-top: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hd-home-project__image,
	.hd-home-project__link span:last-child,
	.hd-home-projects__all {
		transition: none;
	}
}