/* =========================================================================
 * Proposition de page d'accueil — page-accueil-proposition.php
 * Couleur d'accent du site : #9ca71f (reports/design-origine.md).
 * ====================================================================== */

.hp {
	--hp-accent: #9ca71f;
	--hp-accent-ink: #6f7815;
	--hp-ink: #151515;
	--hp-text: #2b2b2b;
	--hp-muted: #6b6b6b;
	--hp-line: #e7e7e7;
	--hp-soft: #f5f6ee;
	--hp-dark: #14170b;
	padding: 34px 0 70px;
	color: var(--hp-text);
}
.hp ul,
.hp ol { margin: 0; padding: 0; list-style: none; }
.hp a { text-decoration: none; }

/* ------------------------------------------------------------ éléments */

.hp-img {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: 3px;
	background: #e9eadf;
}
.hp-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.hp a:hover .hp-img img,
.hp article:hover .hp-img img,
.hp li:hover > a .hp-img img { transform: scale(1.04); }
.hp-img--empty {
	background:
		linear-gradient(135deg, rgba(156, 167, 31, .18), rgba(156, 167, 31, .04)),
		repeating-linear-gradient(45deg, transparent 0 14px, rgba(0, 0, 0, .025) 14px 28px),
		#eef0e3;
}

.hp-cat {
	display: inline-block;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hp-accent-ink);
}
.hp-cat::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--hp-cat, var(--hp-accent));
	vertical-align: 1px;
}

.hp-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--hp-ink);
}
.hp-title a { color: inherit; }
.hp-title a:hover { color: var(--hp-accent-ink); }
.hp-title--xl { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.25; }
.hp-title--sm { font-size: 15px; line-height: 1.4; }

.hp-excerpt {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--hp-muted);
}
.hp-date {
	display: block;
	font-size: 12px;
	color: var(--hp-muted);
}

.hp-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 22px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--hp-line);
	position: relative;
}
.hp-head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 56px;
	height: 3px;
	background: var(--hp-accent);
}
.hp-head__title {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
	color: var(--hp-ink);
}
.hp-head__title small {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hp-accent-ink);
}
.hp-head__more {
	flex: none;
	font-size: 13px;
	font-weight: 700;
	color: var(--hp-ink);
	white-space: nowrap;
}
.hp-head__more:hover { color: var(--hp-accent-ink); }

.hp-section { margin-top: 64px; }

/* ---------------------------------------------------------------- pôles */

.hp-poles__list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
}
/* Sous-grille : la zone « Dernier article » démarre à la même hauteur sur
   toutes les tuiles d'une rangée, quelle que soit la longueur des libellés. */
.hp-pole {
	display: grid;
	grid-row: span 2;
	grid-template-rows: subgrid;
	row-gap: 0;
	border: 1px solid var(--hp-line);
	border-top: 3px solid var(--hp-accent);
	border-radius: 3px;
	background: #fff;
	transition: box-shadow .2s, transform .2s;
}
.hp-pole:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .07); transform: translateY(-2px); }
.hp-pole__link {
	display: grid;
	gap: 4px;
	padding: 16px 16px 12px;
	color: var(--hp-ink);
}
.hp-pole__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--hp-soft);
	color: var(--hp-accent-ink);
}
.hp-pole__name { font-size: 15px; font-weight: 800; line-height: 1.25; }
.hp-pole__desc { font-size: 12.5px; line-height: 1.45; color: var(--hp-muted); }
.hp-pole__count { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-accent-ink); }
.hp-pole__last {
	align-self: start;
	padding: 11px 16px 14px;
	border-top: 1px dashed var(--hp-line);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--hp-text);
}
.hp-pole__last em {
	font-style: normal;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hp-pole__last span {
	display: block;
	margin-bottom: 3px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hp-muted);
}
.hp-pole__last:hover { color: var(--hp-accent-ink); }

/* ----------------------------------------------- fil + colonne latérale */

.hp-news {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	margin-top: 60px;
	align-items: start;
}

.hp-feed__lead {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 26px;
	align-items: center;
	padding-bottom: 26px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--hp-line);
}
.hp-feed__lead .hp-img { aspect-ratio: 4 / 3; }

.hp-row {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--hp-line);
}
.hp-row:last-child { border-bottom: 0; }
.hp-row .hp-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-row--compact { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
.hp-row--compact .hp-title { margin-bottom: 4px; }

.hp-aside { display: grid; gap: 28px; position: sticky; top: 24px; }

.hp-popular__list { counter-reset: hp-rank; }
.hp-popular__list li {
	counter-increment: hp-rank;
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	padding: 12px 0;
	border-bottom: 1px solid var(--hp-line);
}
.hp-popular__list li::before {
	content: counter(hp-rank);
	grid-row: span 2;
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	color: var(--hp-accent);
}
.hp-popular__list .hp-title { margin-bottom: 3px; }

.hp-ad {
	display: grid;
	place-content: center;
	gap: 4px;
	padding: 20px;
	border: 1px dashed #c9cbb8;
	border-radius: 3px;
	background: var(--hp-soft);
	text-align: center;
	color: var(--hp-muted);
	font-size: 13px;
	transition: border-color .2s, background .2s;
}
.hp-ad:hover { border-color: var(--hp-accent); background: #eff1e1; color: var(--hp-muted); }
.hp-ad strong { font-size: 18px; color: var(--hp-ink); }
.hp-ad__tag {
	justify-self: center;
	padding: 2px 8px;
	border-radius: 2px;
	background: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hp-muted);
}
.hp-ad--box { aspect-ratio: 6 / 5; }
.hp-ad--leader { min-height: 110px; margin: 64px auto 0; max-width: 970px; }

.hp-follow {
	padding: 18px 20px;
	border-radius: 3px;
	background: var(--hp-ink);
	color: #ddd;
}
.hp-follow p { margin: 0 0 12px; font-weight: 700; color: #fff; }
.hp-follow div { display: flex; gap: 10px; }
.hp-follow a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
}
.hp-follow a:hover { background: var(--hp-accent); color: #fff; }

/* -------------------------------------------- bandeau sombre (rail) */

.hp-band {
	margin-top: 70px;
	padding: 48px 0 52px;
	background: var(--hp-dark);
	/* Pleine largeur sans débordement horizontal. */
	box-shadow: 0 0 0 100vmax var(--hp-dark);
	clip-path: inset(0 -100vmax);
	color: #c9cbc0;
}
.hp-band .hp-head { border-color: rgba(255, 255, 255, .14); }
.hp-band .hp-head__title,
.hp-band .hp-head__more,
.hp-band .hp-title { color: #fff; }
.hp-band .hp-head__title small { color: var(--hp-accent); }
.hp-band .hp-title a:hover,
.hp-band .hp-head__more:hover { color: var(--hp-accent); }
.hp-band .hp-excerpt,
.hp-band .hp-date { color: #a3a69a; }
.hp-band__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 40px;
}
.hp-band__lead .hp-img { aspect-ratio: 16 / 9; margin-bottom: 18px; }
.hp-band .hp-row { border-color: rgba(255, 255, 255, .1); }
.hp-band .hp-row:first-child { padding-top: 0; }
.hp-band__chip { padding-top: 18px; }
.hp-band__chip a {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--hp-accent);
	border-radius: 30px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
}
.hp-band__chip a:hover { background: var(--hp-accent); }

/* ----------------------------------------- mosaïque grands chantiers */

.hp-mosaic {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(2, 230px);
	gap: 14px;
}
.hp-tile {
	position: relative;
	overflow: hidden;
	border-radius: 3px;
}
.hp-tile--big { grid-column: span 2; grid-row: span 2; }
.hp-tile .hp-img { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.hp-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .82));
	pointer-events: none;
}
.hp-tile__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 18px;
}
.hp-tile--big .hp-tile__body { padding: 28px; }
.hp-tile .hp-title { color: #fff; margin-bottom: 6px; }
.hp-tile .hp-title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--hp-accent); text-underline-offset: 4px; }
.hp-tile .hp-title a::after { content: ""; position: absolute; inset: 0; }
.hp-tile .hp-date { color: #d0d0d0; }

/* ------------------------------------------------------- trois rubriques */

.hp-trio {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
	margin-top: 64px;
}
.hp-card .hp-img { margin-bottom: 14px; }
.hp-links li { padding: 12px 0; border-top: 1px solid var(--hp-line); }
.hp-links .hp-title { margin: 0; font-weight: 600; }
.hp-trio .hp-card { margin-bottom: 14px; }

/* ------------------------------------------------------------- salons */

.hp-salons {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}
.hp-salon {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--hp-line);
	border-radius: 3px;
	overflow: hidden;
	background: #fff;
}
.hp-salon .hp-img { border-radius: 0; aspect-ratio: 16 / 10; }
.hp-salon__body { display: grid; gap: 4px; padding: 16px 18px 18px; }
.hp-salon__name {
	font-size: 19px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--hp-ink);
}
.hp-salon__name:hover { color: var(--hp-accent-ink); }
.hp-salon__count {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hp-accent-ink);
	margin-bottom: 8px;
}
.hp-salon .hp-title { margin-bottom: 4px; font-weight: 600; }

/* ------------------------------------------------------ matériels (4) */

.hp-grid4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

/* ---------------------------------------------------------------- CTA */

.hp-cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 70px;
}
.hp-cta__card {
	padding: 34px 36px;
	border-radius: 3px;
	background: var(--hp-soft);
	border-left: 4px solid var(--hp-accent);
}
.hp-cta__card h2 { margin: 0 0 10px; font-size: 23px; color: var(--hp-ink); }
.hp-cta__card p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--hp-muted); }
.hp-cta__card--dark { background: var(--hp-ink); }
.hp-cta__card--dark h2 { color: #fff; }
.hp-cta__card--dark p { color: #bdbdbd; }

.hp-btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 3px;
	background: var(--hp-accent-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}
.hp-btn:hover { background: #555d10; color: #fff; }
.hp-btn--light { background: #fff; color: var(--hp-ink); }
.hp-btn--light:hover { background: var(--hp-accent); color: #fff; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1200px) {
	.hp-poles__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hp-news { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
	.hp-row { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 960px) {
	.hp-news { grid-template-columns: 1fr; }
	.hp-aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
	.hp-aside .hp-popular { grid-column: 1 / -1; }
	.hp-feed__lead { grid-template-columns: 1fr; }
	.hp-band__grid { grid-template-columns: 1fr; }
	.hp-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 300px repeat(2, 200px); }
	.hp-trio { grid-template-columns: 1fr; gap: 48px; }
	.hp-salons,
	.hp-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hp-cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.hp { padding-top: 24px; }
	.hp-poles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hp-pole__desc { display: none; }
	.hp-pole__last em { -webkit-line-clamp: 3; }
	.hp-head__title { font-size: 21px; }
	.hp-row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.hp-row .hp-excerpt { display: none; }
	.hp-aside { grid-template-columns: 1fr; }
	.hp-ad--box { aspect-ratio: auto; min-height: 200px; }
	.hp-mosaic { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
	.hp-tile--big { grid-column: auto; grid-row: auto; }
	.hp-salons { grid-template-columns: 1fr; }
	.hp-grid4 { gap: 18px 14px; }
	.hp-cta__card { padding: 26px 22px; }
}
