/*!
 * ER Chauffage - Page À propos
 * Dépend de homepage.css (tokens, typographie, boutons, hero, CTA communs).
 * Tous les blocs spécifiques sont préfixés « erh-about- » et scopés sous .erh-about.
 */

/* 1. HERO : composant commun en version compacte (.erh-hero--compact, défini dans homepage.css). */

/* =====================================================================
 * 2. NOTRE HISTOIRE
 * =================================================================== */
.erh-about .erh-about-history { padding: 96px 0; overflow: hidden; }
.erh-about .erh-about-history__media {
	position: absolute;
	top: 32px;
	bottom: 32px;
	left: 0;
	width: calc(50% - 32px);
	overflow: hidden;
	border-radius: 0 var(--erh-radius) var(--erh-radius) 0;
	background: #E9F1F0;
}
.erh-about .erh-about-history__img { width: 100%; height: 100%; object-fit: cover; }
.erh-about .erh-about-history__inner { display: grid; grid-template-columns: 1fr 1fr; }
.erh-about .erh-about-history__content { grid-column: 2; padding-left: 32px; }
.erh-about .erh-lead + .erh-lead { margin-top: 14px; }

.erh-about .erh-about-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 36px;
}
.erh-about .erh-about-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 6px 12px;
	text-align: center;
}
.erh-about .erh-about-stats__item + .erh-about-stats__item { border-left: 1px solid var(--erh-border); }
.erh-about .erh-about-stats__icon { width: 34px; height: 34px; margin-bottom: 10px; }
.erh-about .erh-about-stats__item strong { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--erh-text); }
.erh-about .erh-about-stats__item span { font-size: 13px; line-height: 1.4; color: var(--erh-muted); }

/* =====================================================================
 * 3. NOTRE EXPERTISE
 * =================================================================== */
.erh-about .erh-about-expertise { background: linear-gradient(180deg, #fff 0%, var(--erh-bg-soft) 100%); }
.erh-about .erh-about-expertise__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}
.erh-about .erh-about-expertise__content { padding: 24px 0 96px; }
.erh-about .erh-about-expertise__media {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: var(--erh-radius);
	background: #E9F1F0;
}
.erh-about .erh-about-expertise__img { width: 100%; height: 100%; object-fit: cover; }

.erh-about .erh-about-cards {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-top: -64px;
}
.erh-about .erh-about-card { padding: 26px 22px 28px; }
.erh-about .erh-about-card__badge {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 18px rgba(16, 24, 40, .12);
}
.erh-about .erh-about-card__badge .erh-icon { width: 28px; height: 28px; }
.erh-about .erh-about-card__title { margin: 0 0 10px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.erh-about .erh-about-card__title a { color: var(--erh-text); }
.erh-about .erh-about-card:hover .erh-about-card__title a { color: var(--erh-primary-ink); }
.erh-about .erh-about-card__text { font-size: 14px; line-height: 1.6; color: var(--erh-muted); }

/* =====================================================================
 * 4. NOTRE MANIÈRE DE TRAVAILLER
 * =================================================================== */
.erh-about .erh-about-process { overflow: hidden; background: var(--erh-bg-soft); }
.erh-about .erh-about-process__media {
	position: absolute;
	top: 0;
	right: 0;
	width: 56%;
	height: calc(100% - 120px);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%), linear-gradient(180deg, #000 70%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0%, #000 32%), linear-gradient(180deg, #000 70%, transparent 100%);
	mask-composite: intersect;
}
.erh-about .erh-about-process__img { width: 100%; height: 100%; object-fit: cover; }
.erh-about .erh-about-process__inner { position: relative; z-index: 1; }
.erh-about .erh-about-process__content { max-width: 540px; min-height: 250px; }

.erh-about .erh-about-steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 32px;
	margin-top: 40px;
	padding: 30px 32px;
	border-radius: var(--erh-radius);
	background: #fff;
	box-shadow: var(--erh-shadow);
	counter-reset: none;
}
.erh-about .erh-about-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Petite flèche turquoise entre deux étapes */
.erh-about .erh-about-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 22px;
	right: -21px;
	width: 9px;
	height: 9px;
	border-top: 2px solid var(--erh-primary);
	border-right: 2px solid var(--erh-primary);
	transform: rotate(45deg);
}
.erh-about .erh-about-step__head { display: flex; align-items: center; }
.erh-about .erh-about-step__num {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--erh-primary-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}
.erh-about .erh-about-step__icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-left: -6px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 18px rgba(16, 24, 40, .12);
}
.erh-about .erh-about-step__icon .erh-icon { width: 28px; height: 28px; }
.erh-about .erh-about-step__title { margin: 14px 0 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--erh-text); }

/* =====================================================================
 * 5. POURQUOI NOUS CHOISIR
 * =================================================================== */
.erh-about .erh-about-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 56px;
	align-items: start;
}
.erh-about .erh-about-why__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px 56px;
	padding: 8px 0;
	background: linear-gradient(var(--erh-border), var(--erh-border)) center / 1px 100% no-repeat;
}
.erh-about .erh-about-why__item { display: flex; align-items: flex-start; gap: 16px; }
.erh-about .erh-about-why__icon { width: 34px; height: 34px; }
.erh-about .erh-about-why__title { margin: 2px 0 4px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--erh-text); }
.erh-about .erh-about-why__text { font-size: 13.5px; line-height: 1.5; color: var(--erh-muted); }

/* =====================================================================
 * 6. CTA (composant commun) — ajustements
 * =================================================================== */
.erh-about .erh-about-cta { padding-top: 24px; }
.erh-about .erh-about-cta .erh-cta__img { object-position: 75% 35%; }

/* =====================================================================
 * RESPONSIVE
 * =================================================================== */
@media (max-width: 1024px) {
	.erh-about .erh-hero__trust { grid-template-columns: repeat(2, auto); }

	.erh-about .erh-about-history { padding: 72px 0; }
	.erh-about .erh-about-history__content { padding-left: 8px; }

	.erh-about .erh-about-expertise__top { gap: 32px; }
	.erh-about .erh-about-expertise__content { padding-bottom: 0; }
	.erh-about .erh-about-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }

	/* Process : texte, étapes, puis image (évite le texte sur la photo) */
	.erh-about .erh-about-process { display: flex; flex-direction: column; }
	.erh-about .erh-about-process__inner { order: 1; }
	.erh-about .erh-about-process__content { min-height: 0; }
	.erh-about .erh-about-process__media {
		position: relative;
		order: 2;
		width: auto;
		height: auto;
		aspect-ratio: 16 / 10;
		margin: 32px var(--erh-gutter) 0;
		overflow: hidden;
		border-radius: var(--erh-radius);
		-webkit-mask-image: none;
		mask-image: none;
	}
	.erh-about .erh-about-steps { gap: 20px; padding: 24px 18px; }
	.erh-about .erh-about-step:not(:last-child)::after { right: -14px; }
	.erh-about .erh-about-step__title { font-size: 13px; }

	.erh-about .erh-about-why__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767px) {
	/* Hero : texte puis image (logique commune), sans carte flottante */
	.erh-about .erh-hero__trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	/* Histoire : 1 colonne, image puis texte */
	.erh-about .erh-about-history { display: flex; flex-direction: column; padding: 0 0 56px; }
	.erh-about .erh-about-history__media {
		position: relative;
		top: auto;
		bottom: auto;
		width: auto;
		aspect-ratio: 4 / 3;
		margin: 40px var(--erh-gutter) 32px;
		border-radius: var(--erh-radius);
	}
	.erh-about .erh-about-history__inner { display: block; }
	.erh-about .erh-about-history__content { padding-left: 0; }
	.erh-about .erh-about-stats { gap: 0; }
	.erh-about .erh-about-stats__item { padding: 4px 6px; }
	.erh-about .erh-about-stats__item strong { font-size: 14px; }
	.erh-about .erh-about-stats__item span { font-size: 12px; }

	/* Expertise */
	.erh-about .erh-about-expertise__top { grid-template-columns: 1fr; gap: 28px; }
	.erh-about .erh-about-expertise__content { padding-top: 0; }
	.erh-about .erh-about-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }

	/* Process : pile verticale */
	.erh-about .erh-about-steps { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; padding: 22px 20px; }
	.erh-about .erh-about-step { flex-direction: row; gap: 16px; text-align: left; }
	.erh-about .erh-about-step__head { flex-shrink: 0; }
	.erh-about .erh-about-step__title { margin: 0; font-size: 15px; }
	.erh-about .erh-about-step__title br { display: none; }
	.erh-about .erh-about-step:not(:last-child)::after {
		top: auto;
		right: auto;
		bottom: -13px;
		left: 13px;
		width: 8px;
		height: 8px;
		transform: rotate(135deg);
	}

	/* Pourquoi */
	.erh-about .erh-about-why__list { grid-template-columns: 1fr; gap: 22px; background: none; }

	.erh-about .erh-about-cta { padding-top: 8px; }

	/* Titres : on laisse le texte couler naturellement sur petit écran */
	.erh-about .erh-title br,
	.erh-about .erh-cta__title br { display: none; }
}
