/* Cam3D — Fiche réalisation */

.wcam-projet__header {
	padding-top: 56px;
	padding-bottom: 40px;
}

.wcam-projet__header-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.wcam-projet__header-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	min-width: 0;
}

.wcam-projet__specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 460px;
	flex-shrink: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--wcam-line);
	border-radius: var(--wcam-radius);
	background: var(--wcam-white);
}

.wcam-projet__spec {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
}

.wcam-projet__spec:nth-child(even) {
	border-left: 1px solid var(--wcam-line);
}

.wcam-projet__spec:nth-child(n + 3) {
	border-top: 1px solid var(--wcam-line);
}

.wcam-projet__spec dt {
	color: var(--wcam-muted);
	font-family: var(--wcam-font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.wcam-projet__spec dd {
	margin: 0;
	font-family: var(--wcam-font-title);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.wcam-projet__visual {
	padding-bottom: 96px;
}

.wcam-projet__visual img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1360 / 640;
	object-fit: cover;
	border-radius: var(--wcam-radius);
}

/* Photo principale utilisée faute de grand visuel : format d'origine, centrée, jamais agrandie. */
.wcam-projet__visual--photo img {
	/* Hauteur connue avant le chargement : 640 px au plus, ou la hauteur qui tient dans la largeur disponible. */
	width: auto;
	height: min(640px, calc((100vw - 2 * var(--wcam-gutter)) / var(--wcam-photo-ratio, 0.75)));
	max-width: 100%;
	margin-inline: auto;
	aspect-ratio: var(--wcam-photo-ratio, auto);
	object-fit: contain;
}

.wcam-projet__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding-bottom: 96px;
}

.wcam-projet__step {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 32px;
	border-radius: var(--wcam-radius);
	background: var(--wcam-white);
}

.wcam-projet__step-title {
	font-family: var(--wcam-font-title);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.wcam-projet__step-text {
	color: var(--wcam-muted);
	font-size: 15.5px;
	line-height: 1.55;
}

.wcam-projet__ba {
	padding-bottom: 96px;
}

.wcam-projet__ba-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	margin-bottom: 32px;
}

.wcam-projet__ba-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.wcam-projet__ba-card {
	margin: 0;
	padding: 8px;
	border-radius: var(--wcam-radius);
	background: var(--wcam-white);
}

.wcam-projet__ba-card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 656 / 420;
	object-fit: cover;
}

.wcam-projet__ba-card figcaption {
	padding: 16px 12px 8px;
	color: var(--wcam-ink);
	font-family: var(--wcam-font-mono);
	font-size: 12px;
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

@media (max-width: 1023px) {
	.wcam-projet__header-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.wcam-projet__specs {
		width: 100%;
		max-width: 560px;
	}

	.wcam-projet__steps {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.wcam-projet__header {
		padding-top: 32px;
	}

	.wcam-projet__visual,
	.wcam-projet__steps,
	.wcam-projet__ba {
		padding-bottom: 64px;
	}

	.wcam-projet__visual img {
		aspect-ratio: 4 / 3;
	}

	.wcam-projet__step {
		padding: 24px 20px;
	}

	.wcam-projet__ba-grid {
		grid-template-columns: 1fr;
	}
}
