/* Maquette : 1728px, contenu 1630px (x49 → x1679). Les % sont rapportés à ces 1630px. */

.home-main > * {
	width: min(100% - 2 * var(--gutter), var(--content-max));
	margin-inline: auto;
}

.home-section { border-top: var(--divider); }


/* ---------- Hero ---------- */

.home-hero__heading {
	padding-top: clamp(2.5rem, 5.4398vw, 5.875rem);
	text-align: center;
}
.home-hero__kicker { line-height: 2.5; }
.home-hero__title {
	max-width: 10.44em;
	margin: clamp(0.25rem, 0.5093vw, 0.55rem) auto 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--fs-hero);
	line-height: var(--lh-hero);
	color: var(--color-green);
}

.home-hero__stage { margin-top: clamp(1.5rem, 2.7315vw, 2.95rem); }

.home-hero__decor { position: relative; }
.home-hero__canvas {
	position: relative;
	aspect-ratio: 1630 / 1141;
}

.home-hero__photo {
	position: absolute;
	left: 20.7975%;
	top: 5.1709%;
	width: 58.4049%;
	height: 55.6529%;
	overflow: hidden;
}
.home-hero__photo--cutout { z-index: 2; }
.home-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-hero__letter {
	position: absolute;
	z-index: 1;
	left: 2.5153%;
	top: 0;
	width: 62.7541%;
}

.home-hero__contact,
.home-hero__rdv {
	position: absolute;
	z-index: 3;
}
.home-hero__contact { left: 14.6626%; top: 31.4636%; }
.home-hero__rdv { left: 12.2086%; top: 37.7739%; }

.home-hero__card {
	position: relative;
	z-index: 3;
	width: 42.0245%;
	aspect-ratio: 685 / 595;
	margin: -36.5031% 0 0 57.9755%;
	padding: 7.3313% 4.9693% 4.7853% 4.2331%;
	background: var(--color-sage);
}
.home-hero__seal {
	position: absolute;
	left: 0;
	top: 0;
	width: 23.4548%;
	transform: translate(-50%, -50%);
}
/* Maquette : lignes de 45px pour le nom (60px) et la fonction (18px). Marges
   négatives/positives équivalentes, pour garder un interligne normal si le texte passe sur deux lignes. */
.home-hero__name {
	margin-block: -0.125em;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--fs-title);
	line-height: 1;
}
.home-hero__name em { font-style: italic; }
@media (min-width: 1200px) {
	.home-hero__name { white-space: nowrap; }
}
/* Figma cale un texte de 60px sur 45px d'interligne ~7px plus haut que le navigateur. */
.home-hero__name { position: relative; top: -0.1167em; }
.home-hero__role { padding-block: 0.8889em 0.2222em; }
.home-hero__bio {
	max-width: clamp(20rem, 27.8356vw, 30.0625rem);
	margin-top: clamp(1.25rem, 2.0544vw, 2.2188rem);
	color: var(--color-muted);
}

/* ---------- Expertises ---------- */

.home-expertises {
	display: grid;
	grid-template-columns: 31.2270% minmax(0, 1fr);
	align-items: start;
	margin-top: clamp(4rem, 7.6389vw, 8.25rem);
	padding-block: clamp(3rem, 5.1505vw, 5.5625rem) clamp(3.5rem, 7.1759vw, 7.75rem);
}

.home-expertises__list {
	display: grid;
	grid-template-columns: 41.9269% 35.5040% minmax(0, 1fr);
	row-gap: clamp(2.5rem, 3.6458vw, 3.9375rem);
}

/* ---------- Notariat à taille humaine ---------- */

.home-values {
	display: grid;
	grid-template-columns: 41.2270% 1fr;
	padding-block: clamp(3rem, 5.3819vw, 5.8125rem);
}

.home-values__list {
	display: flex;
	align-self: end;
	justify-content: space-between;
	margin-bottom: 0.25rem;
}
.value {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.value__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.5rem;
}
.value__img { max-width: none; }
.value__label {
	margin-top: 0.8125rem;
	color: var(--color-muted);
	white-space: nowrap;
	transition: color var(--transition);
}
.value:hover .value__label { color: var(--color-green); }

.home-values__quote {
	grid-column: 1 / -1;
	margin-top: clamp(2.5rem, 4.4560vw, 4.8125rem);
	font-family: var(--font-display);
	font-size: var(--fs-quote);
	line-height: var(--lh-quote);
	color: var(--color-green);
}

/* ---------- Approche ---------- */

.home-approach {
	display: grid;
	grid-template-columns: 38.5276% 1fr;
	padding-block: clamp(3.5rem, 6.6551vw, 7.1875rem) clamp(4.5rem, 10.7060vw, 11.5625rem);
}
.home-approach__text {
	max-width: clamp(20rem, 26.2153vw, 28.3125rem);
	margin-top: clamp(1.5rem, 2.4306vw, 2.625rem);
	color: var(--color-muted);
}
.home-approach__subtitle {
	margin-left: 2.1956%;
	padding-top: clamp(1.5rem, 3.1829vw, 3.4375rem);
}
.home-approach__list {
	display: flex;
	justify-content: space-between;
	margin-top: clamp(1.5rem, 1.9676vw, 2.125rem);
}
.feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.feature__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.875rem;
}
.feature__img { max-width: none; }
.feature__label {
	margin-top: 0.5625rem;
	line-height: var(--lh-body-tight);
	color: var(--color-muted);
	white-space: nowrap;
}

/* ---------- Accès ---------- */

.home-access__heading {
	padding-top: clamp(6rem, 9.4907vw, 10.25rem);
	text-align: center;
}
.home-access__heading .section-subtitle { margin-top: clamp(0.5rem, 0.8102vw, 0.875rem); }
.home-access__text {
	margin-top: clamp(1rem, 1.3889vw, 1.5rem);
	color: var(--color-muted);
}
.home-access .map { margin-top: clamp(2.5rem, 3.6458vw, 3.9375rem); }

/* ---------- Tablette ---------- */

@media (max-width: 1199px) {
	.home-expertises,
	.home-values,
	.home-approach { grid-template-columns: 1fr; }

	.home-expertises__list {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem 1.5rem;
		margin-top: 2.5rem;
	}

	.home-values__list {
		display: grid;
		grid-template-columns: repeat(6, 1fr);
		gap: 2rem 1rem;
		margin-top: 2.5rem;
	}
	.value__label { white-space: normal; text-align: center; }

	.home-approach__features { margin-top: 2.5rem; }
	.home-approach__subtitle { margin-left: 0; padding-top: 0; }
	.home-approach__list {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 2rem 1rem;
	}
	.feature__label { white-space: normal; }

}

/* Hero en pile : la composition est recadrée sur la photo (zoom), la lettre déborde jusqu'aux bords. */
@media (max-width: 1199px) {
	.home-hero__stage { --zoom: 1.6; }
	.home-hero__decor {
		container-type: inline-size;
		margin-inline: calc(-1 * var(--gutter));
		overflow: hidden;
	}
	.home-hero__canvas {
		width: calc(var(--zoom) * 100%);
		margin-left: calc((100% - 58.4049% * var(--zoom)) / 2 - 20.7975% * var(--zoom));
		margin-bottom: calc(-2.9% * var(--zoom));
	}
	/* Boutons centrés ; « Nous contacter » à cheval sur le bord bas de la photo (bas photo = 60,82 % du canevas, soit 42,577cqw × zoom). */
	.home-hero__actions {
		position: absolute;
		z-index: 3;
		top: calc(42.577cqw * var(--zoom));
		left: 50%;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
		transform: translate(-50%, -1.25rem);
	}
	.home-hero__actions .btn {
		height: 2.5rem;
		min-height: 0;
		padding-block: 0;
	}
	.home-hero__contact,
	.home-hero__rdv { position: static; }
	.btn--lg {
		min-width: clamp(12rem, 15.7986vw, 17.0625rem);
		min-height: clamp(2.25rem, 2.8356vw, 3.0625rem);
		font-weight: 400;
		font-size: var(--fs-body);
		line-height: 1.7;
		text-transform: none;
		padding: 0.375rem clamp(1rem, 1.5046vw, 1.625rem);
	}

	/* Carte remontée sous les boutons : le haut du sceau se cale 1,5rem sous « Prendre rendez-vous ».
	   Bas des boutons = 42,577vw × zoom + 4,5rem ; bas du décor = 67,1vw × zoom. */
	.home-hero__card {
		width: 100%;
		aspect-ratio: auto;
		margin: calc(var(--zoom) * -24.523vw + 9.125rem) 0 0;
		padding: 4.5rem clamp(1.5rem, 6vw, 3rem) 2.5rem;
	}
	.home-hero__seal {
		left: 50%;
		width: 6.25rem;
		transform: translate(-50%, -50%);
	}
	.home-hero__bio { max-width: 42rem; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
	.home-hero__stage { --zoom: 1.3; }
}

@media (max-width: 1023px) {
	.home-values__list { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.home-hero__letter,
	.home-hero__photo--cutout { display: none; }

	/* Domaines en liste : pastille à gauche, texte à droite. */
	.home-expertises__list {
		grid-template-columns: 1fr;
		row-gap: 2rem;
	}

	.home-values__list { gap: 1.5rem 0.5rem; }

	.home-approach__list { grid-template-columns: repeat(2, 1fr); }
}
