/*
 * Composant : project-spotlight — nouveau composant propre à ce client.
 *
 * Section « Réalisations » : un projet phare (carte pleine largeur, fond foncé,
 * métadonnées techniques) au-dessus d'une grille de réalisations secondaires.
 * Suit les mêmes conventions que card-list / stats-block : filets fins, visuel
 * de repli à rayures, thème foncé aliasé sur --component-color-dark.
 */
.component-project-spotlight {
	padding-top: var(--component-space-large);
	padding-bottom: var(--component-space-large);
	background: var(--component-color-muted);
}

.component-project-spotlight__inner {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.component-project-spotlight__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(36px, 4vw, 64px);
}

.component-project-spotlight__eyebrow {
	margin: 0 0 18px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--component-color-primary);
}

.component-project-spotlight__title {
	margin: 0;
	font-size: clamp(1.9rem, 4vw, 3.4rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	max-width: 20ch;
	color: var(--component-color-dark);
}

.component-project-spotlight__link {
	font-weight: 700;
	color: var(--component-color-dark);
	border-bottom: 2px solid var(--component-color-dark);
	padding-bottom: 6px;
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--component-transition), border-color var(--component-transition);
}

.component-project-spotlight__link:hover,
.component-project-spotlight__link:focus {
	color: var(--component-color-primary);
	border-color: var(--component-color-primary);
}

/* Carte vedette. */
.component-project-spotlight__featured {
	display: grid;
	grid-template-columns: 1fr;
	background: var(--component-color-dark);
	color: var(--component-color-text-invert);
	margin-bottom: 1px;
}

.component-project-spotlight__featured-media {
	position: relative;
	min-height: 320px;
	overflow: hidden;
	background: var(--component-color-dark);
}

.component-project-spotlight__featured-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.component-project-spotlight__tag {
	position: absolute;
	top: 20px;
	left: 20px;
	background: var(--component-color-primary);
	color: var(--component-color-button-font);
	padding: 7px 11px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.component-project-spotlight__featured-body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	padding: clamp(30px, 4vw, 60px);
}

.component-project-spotlight__location {
	margin: 0 0 16px;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	color: color-mix(in srgb, var(--component-color-text-invert) 65%, var(--component-color-dark));
}

.component-project-spotlight__featured-title {
	margin: 0 0 16px;
	font-size: clamp(1.7rem, 3.2vw, 2.9rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.component-project-spotlight__featured-text {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
	max-width: 48ch;
	color: color-mix(in srgb, var(--component-color-text-invert) 82%, var(--component-color-dark));
}

.component-project-spotlight__stats {
	display: flex;
	flex-wrap: wrap;
}

.component-project-spotlight__stat {
	background: var(--component-color-dark);
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 130px;
	min-width: 130px;
	padding: 18px 18px 6px 18px;
	border-left: 1px solid color-mix(in srgb, var(--component-color-text-invert) 14%, var(--component-color-dark));
}

.component-project-spotlight__stat:first-child {
	border-left: none;
	padding-left: 0;
}

.component-project-spotlight__stat-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--component-color-text-invert) 60%, var(--component-color-dark));
}

.component-project-spotlight__stat-value {
	font-size: 1rem;
	font-weight: 600;
}

/* Grille de réalisations secondaires. */
.component-project-spotlight__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background: var(--component-color-border);
	border-top: 1px solid var(--component-color-border);
}

.component-project-spotlight__card {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	background: var(--component-color-light);
	transition: background var(--component-transition);
}

a.component-project-spotlight__card:hover,
a.component-project-spotlight__card:focus-visible {
	background: var(--component-color-muted);
}

a.component-project-spotlight__card:focus-visible {
	outline: 3px solid var(--component-color-primary);
	outline-offset: -3px;
}

.component-project-spotlight__card-media {
	position: relative;
	aspect-ratio: 3 / 2;
	background: var(--component-color-muted);
}

.component-project-spotlight__card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.component-project-spotlight__card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 22px 28px;
}

.component-project-spotlight__card-meta {
	order: -1;
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--component-color-meta);
}

.component-project-spotlight__card-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--component-color-dark);
}

.component-project-spotlight__card-text {
	margin: 0;
	color: var(--component-color-text);
	line-height: 1.55;
	max-width: 42ch;
}

/* Visuel de repli commun (carte vedette et grille secondaire). */
.component-project-spotlight__placeholder {
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		135deg,
		var(--component-color-border) 0,
		var(--component-color-border) 1px,
		transparent 1px,
		transparent 14px
	);
	background-color: var(--component-color-muted);
}

.component-project-spotlight__featured-media .component-project-spotlight__placeholder-caption,
.component-project-spotlight__card-media .component-project-spotlight__placeholder-caption {
	position: absolute;
	bottom: 14px;
	left: 14px;
	font-size: 0.68rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--component-color-text);
	background: var(--component-color-light);
	padding: 7px 9px;
}

@media (min-width: 640px) {
	.component-project-spotlight__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.component-project-spotlight__featured {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.component-project-spotlight__featured-media {
		min-height: 100%;
	}
}

@media (min-width: 1024px) {
	.component-project-spotlight__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
