/*
Theme Name: Digital Green — DOWNS
Author: DIGITAL.GREEN
Description: Thème vierge, codé à la main (ACF Pro, sans builder).
Version: 1.0.0
Requires PHP: 8.0
Text Domain: digitalgreen
*/

/* Styles du projet. Tokens : assets/css/variables.css. Typo : assets/css/typography.css. */

.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.screen-reader-text:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 8px 16px;
	clip-path: none;
	background: var(--color-bg);
}

/* ==========================================================================
   Boutons — Figma Composants homepage (15:287) : Button / Bleu & Blanc (345:765),
   Button / Noir & Blanc (387:644), Button / Filet / Typo noir (353:1275),
   Button blanc / Filet blanc / Typo blanche (372:2228).
   Annotation Figma : remplissage au survol façon « pill-nav » (vue-bits.dev) — un disque monte
   depuis le bas. Filet bleu → bleu plein ; plein bleu → blanc ; filet blanc → blanc plein.
   ========================================================================== */

.btn {
	--btn-fill: var(--color-blue);
	--btn-hover-color: var(--color-white);
	position: relative;
	z-index: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	overflow: hidden;
	padding: 8px 20px;
	border: 2px solid transparent;
	font-family: var(--font-body);
	font-size: var(--btn-large);
	line-height: var(--btn-large-lh);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: color .35s ease;
}

.btn::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: -1;
	width: max(200%, 120px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--btn-fill);
	transform: translate(-50%, -50%) scale(0);
	transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.btn:hover,
.btn:focus-visible { color: var(--btn-hover-color); }
.btn:hover::before,
.btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }

.btn--blue { --btn-fill: var(--color-white); --btn-hover-color: var(--color-blue); border-color: var(--color-blue); background: var(--color-blue); color: var(--color-white); }
.btn--black { --btn-fill: var(--color-white); --btn-hover-color: var(--color-black); border-color: var(--color-black); background: var(--color-black); color: var(--color-white); }
.btn--outline-blue { --btn-fill: var(--color-blue); --btn-hover-color: var(--color-white); border-color: var(--color-blue); color: var(--color-black); }
.btn--outline-white { --btn-fill: var(--color-white); --btn-hover-color: var(--color-red); border-color: var(--color-white); color: var(--color-white); }

/* Bouton aligné à droite sous une section (Figma : pt 32, aligné à droite) */
.section-cta {
	display: flex;
	justify-content: flex-end;
	padding-top: 32px;
}

/* Flèche « Accéder » (433:2110), orientée vers la droite */
.icon-acceder {
	display: inline-flex;
	flex-shrink: 0;
	transform: rotate(-90deg);
}
.icon-acceder__blanc { display: none; }

/* ==========================================================================
   Topbar — Header noir (345:716)
   ========================================================================== */

.topbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	height: 50px;
	padding-inline: var(--gutter);
	background: var(--color-black);
}

.topbar__nav { display: flex; gap: 24px; }

.topbar__link {
	padding: 4px 0 8px;
	color: var(--color-white);
	font-weight: 700;
	text-decoration: none;
}
.topbar__link:hover, .topbar__link[aria-current] { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Header — Header Desktop / Logo & Menu (345:801 / 387:651)
   Variantes : --photo (sur la photo du hero, CTA bleu), --rouge (sur hero rouge, CTA noir),
   --plein (fond gris 1, dans le flux : pages sans hero).
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 50;
	width: min(100% - 2 * var(--gutter), var(--container));
	margin: 32px auto 0;
	color: var(--color-white);
}

.site-header--photo,
.site-header--rouge {
	position: absolute;
	top: 32px;
	left: 50%;
	margin: 0;
	transform: translateX(-50%);
}
.topbar + .site-header--photo,
.topbar + .site-header--rouge { top: 82px; }

.site-header__bar {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color .2s;
}
.site-header--plein .site-header__bar,
.site-header.is-open .site-header__bar { background: var(--color-grey-1); }

.site-header__logo { display: block; padding: 32px; }
.site-header__logo img { width: 195px; height: auto; }

.site-header__burger { display: none; }

.site-nav {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 32px 32px 32px 0;
}

.site-nav__list { display: flex; align-items: center; gap: 32px; }

.site-nav__link {
	display: block;
	padding: 4px 0;
	border-bottom: 4px solid transparent;
	color: var(--color-white);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.site-nav__link:hover,
.site-nav__item.is-current > .site-nav__link,
.site-nav__toggle[aria-expanded="true"] { border-bottom-color: var(--color-white); }

.site-nav__secondary { display: none; }

/* Méga-menu — Menu illustré (815:15447) */
.mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 32px 32px 56px;
	border-top: 1px solid rgb(255 255 255 / .15);
	background: var(--color-grey-1);
}

.mega__head { display: flex; justify-content: space-between; align-items: center; }

.mega__eyebrow {
	color: var(--color-grey-2);
	font-size: var(--caption-size);
	line-height: var(--caption-lh);
	font-weight: 800;
	text-transform: uppercase;
}

.mega__close {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #afafb7;
	font-size: var(--text-sm-size);
	line-height: var(--text-sm-lh);
}
.mega__close:hover { color: var(--color-white); }

.mega__groups { display: flex; gap: 32px; }
.mega__group { display: flex; flex: 1 1 0; flex-direction: column; gap: 20px; min-width: 0; }
.mega__groups--2 .mega__group:first-child { flex: 0 0 calc(50% - 16px); }

.mega__title {
	font-family: var(--font-heading);
	font-size: var(--h3-size);
	line-height: var(--h3-lh);
	font-weight: 700;
}

.mega__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mega__groups--2 .mega__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega__groups--2 .mega__group--photo .mega__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mega-tile {
	display: flex;
	flex-direction: column;
	color: var(--color-white);
	text-decoration: none;
	transition: background-color .2s;
}

.mega-tile__label { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.mega-tile__text { flex: 1; min-width: 0; }

.mega-tile--picto {
	justify-content: space-between;
	height: 116px;
	padding: 20px;
	background: #303036;
}

.mega-tile__picto {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 4px;
	background: var(--color-blue-pastel);
}

.mega-tile__img { width: 100%; height: 184px; object-fit: cover; }
.mega-tile--photo .mega-tile__label { height: 64px; padding: 16px; background: #303036; transition: background-color .2s; }

.mega-tile--picto:hover,
.mega-tile--picto:focus-visible,
.mega-tile--photo:hover .mega-tile__label,
.mega-tile--photo:focus-visible .mega-tile__label { background: var(--color-blue); }

.mega-tile:hover .icon-acceder__bleu,
.mega-tile:focus-visible .icon-acceder__bleu { display: none; }
.mega-tile:hover .icon-acceder__blanc,
.mega-tile:focus-visible .icon-acceder__blanc { display: block; }

/* ==========================================================================
   Barre latérale fixe — Button / Services (353:974)
   ========================================================================== */

.side-widget {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 40;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 8px;
	background: var(--color-white);
	transform: translateY(-50%);
}

.side-widget__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	transition: background-color .2s;
}
/* Survol (Figma 815:13533) : onglet rouge, picto blanc, libellé rouge qui sort à gauche */
.side-widget__tab { position: relative; }
.side-widget__tab:hover, .side-widget__tab:focus-visible { background: var(--color-red); }
.side-widget__tab:hover img, .side-widget__tab:focus-visible img { filter: brightness(0) invert(1); }

.side-widget__label {
	position: absolute;
	top: 50%;
	right: calc(100% + 16px);
	padding: 8px 16px;
	background: var(--color-red);
	color: var(--color-white);
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translate(8px, -50%);
	transition: opacity .2s, transform .2s;
}
.side-widget__tab:hover .side-widget__label,
.side-widget__tab:focus-visible .side-widget__label { opacity: 1; transform: translate(0, -50%); }

.side-widget__tab + .side-widget__tab::before {
	content: "";
	position: absolute;
	top: -4.5px;
	left: 6px;
	width: 32px;
	height: 1px;
	background: var(--color-grey-2);
}

/* ==========================================================================
   Bandeau contact — 512:6162
   ========================================================================== */

.contact-band {
	padding-block: 40px;
	background: var(--color-red);
	color: var(--color-white);
	text-align: center;
}

.contact-band__inner { display: flex; flex-direction: column; align-items: center; }

.contact-band__title {
	font-size: var(--h3-size);
	line-height: var(--h3-lh);
	font-weight: 700;
}

.contact-band__text { max-width: 644px; margin-top: 8px; }

.contact-band__ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
}

/* ==========================================================================
   Footer — Footer desktop (372:2254)
   ========================================================================== */

.site-footer {
	padding-block: 50px;
	background: var(--color-black);
	color: var(--color-white);
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 50px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--color-white);
}

.site-footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 385px; }
.site-footer__brand img { width: 158px; height: auto; }

.site-footer__cols { display: flex; gap: 50px; }
.site-footer__col { width: 145px; }
.site-footer__col-title { font-weight: 700; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 23px;
}

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ==========================================================================
   Responsive header / footer (pas de maquette mobile : adaptation maison)
   ========================================================================== */

@media (max-width: 1279px) {
	.site-nav, .site-nav__list { gap: 20px; }
}

@media (max-width: 1100px) {
	.topbar { display: none; }
	.topbar + .site-header--photo,
	.topbar + .site-header--rouge { top: 16px; }
	.site-header--photo,
	.site-header--rouge { top: 16px; }
	.site-header { margin-top: 16px; }

	.site-header__logo { padding: 20px; }
	.site-header__logo img { width: 140px; }

	.site-header__burger {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		margin-right: 12px;
	}

	.site-header__burger-lines,
	.site-header__burger-lines::before,
	.site-header__burger-lines::after {
		display: block;
		width: 24px;
		height: 2px;
		background: var(--color-white);
		transition: transform .2s, background-color .2s;
	}
	.site-header__burger-lines { position: relative; }
	.site-header__burger-lines::before,
	.site-header__burger-lines::after { content: ""; position: absolute; left: 0; }
	.site-header__burger-lines::before { top: -7px; }
	.site-header__burger-lines::after { top: 7px; }
	.site-header__burger[aria-expanded="true"] .site-header__burger-lines { background: transparent; }
	.site-header__burger[aria-expanded="true"] .site-header__burger-lines::before { transform: translateY(7px) rotate(45deg); }
	.site-header__burger[aria-expanded="true"] .site-header__burger-lines::after { transform: translateY(-7px) rotate(-45deg); }

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		padding: 8px 20px 24px;
		border-top: 1px solid rgb(255 255 255 / .15);
		background: var(--color-grey-1);
	}
	.site-header.is-open .site-nav { display: flex; }

	.site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav__item { border-bottom: 1px solid rgb(255 255 255 / .15); }

	.site-nav__link {
		width: 100%;
		padding: 14px 0;
		border-bottom: 0;
		text-align: left;
	}
	.site-nav__toggle { display: flex; justify-content: space-between; align-items: center; }
	.site-nav__toggle::after {
		content: "";
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform .2s;
	}
	.site-nav__toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
	.site-nav__item.is-current > .site-nav__link { color: var(--color-white); text-decoration: underline; text-underline-offset: 6px; }

	.mega {
		position: static;
		gap: 20px;
		padding: 0 0 20px;
		border-top: 0;
	}
	.mega__head { display: none; }
	.mega__groups { flex-direction: column; gap: 24px; }
	.mega__groups--2 .mega__group:first-child { flex-basis: auto; }
	.mega__title { font-size: var(--h4-size); line-height: var(--h4-lh); }
	.mega__tiles,
	.mega__groups--2 .mega__tiles,
	.mega__groups--2 .mega__group--photo .mega__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.mega-tile--picto { height: auto; gap: 16px; padding: 16px; }
	.mega-tile__img { height: 120px; }
	.mega-tile--photo .mega-tile__label { height: auto; padding: 12px; }

	.site-header__cta { align-self: flex-start; }

	.site-nav__secondary { display: flex; gap: 24px; }
	.site-nav__secondary-link { color: var(--color-white); font-weight: 700; text-decoration: none; }

	.side-widget { gap: 4px; padding: 4px; }
	.side-widget__tab { width: 36px; height: 36px; }
	.side-widget__tab + .side-widget__tab::before { top: -2.5px; left: 2px; }
}

@media (max-width: 767px) {
	.site-footer__top { flex-direction: column; gap: 32px; }
	.site-footer__cols { flex-wrap: wrap; gap: 32px 24px; }
}

@media (max-width: 479px) {
	.mega__tiles,
	.mega__groups--2 .mega__tiles,
	.mega__groups--2 .mega__group--photo .mega__tiles { grid-template-columns: minmax(0, 1fr); }
	.mega-tile__img { height: 140px; }
	.site-footer__col { width: calc(50% - 12px); }
}

/* ==========================================================================
   Gabarit générique (page.php, single.php, 404.php) : pages légales notamment
   ========================================================================== */

.page-default { padding-block: 60px var(--section-gap); }
.page-default__title { margin-bottom: 40px; }
.page-default .richtext { max-width: 860px; }
.page-default .richtext h2 { font-size: var(--h3-size); line-height: var(--h3-lh); font-weight: 700; }
.page-default .richtext h3 { font-size: var(--h4-size); line-height: var(--h4-lh); }

/* ==========================================================================
   Composants (template-parts/components/)
   ========================================================================== */

/* Subtitle (353:1175) */
.subtitle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	line-height: 28px;
	font-weight: 800;
	text-transform: uppercase;
}
.subtitle--light { color: var(--color-white); }
.subtitle__forme { transform: scaleX(-1); }

/* Filtre + Date (372:2006) */
.filtre-date { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

.filtre-date__label,
.filtre-date__date {
	font-size: var(--caption-size);
	line-height: var(--caption-lh);
	font-weight: 800;
	text-transform: uppercase;
}

.filtre-date__label { display: flex; align-items: center; gap: 8px; }
.filtre-date__forme { transform: scaleX(-1); }

.filtre-date__date {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding-inline: 12px;
	background: var(--color-red);
	color: var(--color-white);
}

/* Bouton plein penché (815:13489) — survol : bouton blanc (annotation Figma) */
.bouton-penche {
	display: inline-flex;
	align-items: stretch;
	height: 36px;
	color: var(--color-white);
	font-weight: 700;
	text-decoration: none;
}

.bouton-penche__biseau {
	width: 11px;
	background: var(--color-blue);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	transition: background-color .3s;
}

.bouton-penche__label {
	display: flex;
	align-items: center;
	padding: 8px 20px 8px 9px;
	background: var(--color-blue);
	transition: background-color .3s, color .3s;
}

.bouton-penche__fleche {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	background: var(--color-white);
	transition: background-color .3s;
}
.bouton-penche__fleche img { transform: rotate(-90deg); transition: transform .3s, filter .3s; }

.bouton-penche:hover .bouton-penche__biseau,
.bouton-penche:focus-visible .bouton-penche__biseau,
.bouton-penche:hover .bouton-penche__label,
.bouton-penche:focus-visible .bouton-penche__label { background: var(--color-white); color: var(--color-blue); }
.bouton-penche:hover .bouton-penche__fleche,
.bouton-penche:focus-visible .bouton-penche__fleche { background: var(--color-blue); }
.bouton-penche:hover .bouton-penche__fleche img,
.bouton-penche:focus-visible .bouton-penche__fleche img { filter: brightness(0) invert(1); transform: rotate(-90deg) translateY(3px); }

/* Carte machine (Bloc élément 795:12428) */
.machine-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--color-text);
	text-decoration: none;
}

.machine-card__media { height: 200px; overflow: hidden; background: var(--color-grey-3); }
.machine-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

.machine-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding-top: 24px;
	background: var(--color-grey-3);
}
.machine-card__body > .filtre-date { padding-inline: 24px; }

.machine-card__title {
	display: flex;
	flex-direction: column;
	padding-inline: 24px;
	font-family: var(--font-heading);
	font-size: 18px;
	line-height: 24px;
	text-transform: uppercase;
}
.machine-card__type { font-weight: 500; }
.machine-card__nom { font-weight: 800; }

.machine-card__fleche {
	display: flex;
	align-self: flex-end;
	margin-top: auto;
	padding-top: 8px;
}
.machine-card__biseau { width: 21px; height: 32px; transform: scaleX(-1); }

.machine-card__carre {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 33px;
	height: 32px;
	margin-left: -10.5px;
	background: var(--color-white);
	transition: background-color .3s;
}
.machine-card__carre img { transform: rotate(-90deg); transition: transform .3s, filter .3s; }

.machine-card:hover .machine-card__img,
.machine-card:focus-visible .machine-card__img { transform: scale(1.05); }
.machine-card:hover .machine-card__carre,
.machine-card:focus-visible .machine-card__carre { background: var(--color-blue); }
.machine-card:hover .machine-card__carre img,
.machine-card:focus-visible .machine-card__carre img { filter: brightness(0) invert(1); transform: rotate(-90deg) translateY(3px); }

/* Lien fiche (Button / Fiche client 353:1619) */
.fiche-lien {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 24px 32px;
	background: var(--color-white);
	color: var(--color-text);
	text-decoration: none;
	transition: box-shadow .3s;
}

.fiche-lien__picto {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 4px;
	background: var(--color-blue-pastel);
	align-self: flex-start;
}

.fiche-lien__text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.fiche-lien__titre { font-family: var(--font-heading); font-size: 18px; line-height: 24px; font-weight: 700; }
.fiche-lien__desc { font-size: var(--text-sm-size); line-height: var(--text-sm-lh); }
.fiche-lien__fleche { flex-shrink: 0; transform: rotate(-90deg); transition: transform .3s; }

a.fiche-lien:hover,
a.fiche-lien:focus-visible { box-shadow: inset 0 -4px 0 var(--color-red); }
a.fiche-lien:hover .fiche-lien__fleche,
a.fiche-lien:focus-visible .fiche-lien__fleche { transform: rotate(-90deg) translateY(4px); }

/* Chiffres clés (Chiffre clé 815:13580) */
.chiffres-cles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.chiffre-cle { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-inline: 32px; }

.chiffre-cle__valeur {
	padding-bottom: 12px;
	border-bottom: 6px solid var(--color-red);
	font-family: var(--font-heading);
	font-size: 62px;
	line-height: 71.3px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.chiffre-cle__label { color: #6c6863; }

/* Carte actualité (Blog Petite / Grande section 372:2060 / 372:2015) */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__media { height: 200px; overflow: hidden; background: var(--color-grey-3); }
.post-card__img { width: 100%; height: 100%; object-fit: cover; }

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 32px 24px;
	background: var(--color-grey-3);
}
.post-card__body > .filtre-date { margin-bottom: 8px; }

.post-card__title { font-size: 18px; line-height: 24px; font-weight: 700; }

.post-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.post-card__btn { align-self: flex-start; margin-top: auto; }
.post-card__excerpt { margin-bottom: 16px; }

/* ==========================================================================
   Page d'accueil — HOMEPAGE (793:10675)
   ========================================================================== */

/* Hero (815:13525) : 1320×702, dégradés sombres à gauche et en haut */
.home-hero {
	position: relative;
	display: flex;
	align-items: center;
	width: min(100% - 2 * var(--gutter), var(--container));
	min-height: 702px;
	margin: 32px auto 0;
	padding: 100px 32px 0 112px;
	overflow: hidden;
	background: #1e1e1e;
}

.home-hero::before,
.home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.home-hero::before { background: linear-gradient(90deg, #1e1e1e 5%, rgb(30 30 30 / 0) 60%); }
.home-hero::after { bottom: auto; height: 83px; background: linear-gradient(180deg, #1e1e1e, rgb(30 30 30 / 0)); }

.home-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.home-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 536px;
}

.home-hero__title { color: var(--color-white); }

.home-hero__btn { position: absolute; right: 0; bottom: 0; z-index: 2; }

/* Gamme (815:13537 / 815:13539) */
.home-gamme { padding-top: 56px; }
.home-gamme .title-duo { margin-bottom: 32px; }

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

/* Configuration (815:13558 / 815:13505 / 815:13562) */
.home-config {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 538px;
	column-gap: 32px;
	padding-top: 56px;
}

.home-config__text { display: flex; flex-direction: column; gap: 24px; padding-top: 0; }

.home-config__media { position: relative; height: 425px; margin: 56px 0 0; }
.home-config__img { width: 100%; height: 100%; object-fit: cover; }
.home-config__decor { position: absolute; bottom: 73px; left: 0; width: 64px; height: auto; }

.home-config__caption {
	position: absolute;
	bottom: 73px;
	left: 66px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0 0 32px 24px;
	color: var(--color-white);
	text-shadow: 0 1px 8px rgb(0 0 0 / .4);
}
.home-config__caption span { font-size: var(--text-sm-size); }

.home-config__quote {
	position: relative;
	z-index: 1;
	grid-column: 1 / -1;
	width: min(872px, 100%);
	margin: -73px 0 0 336px;
	padding: 32px;
	background: var(--color-red);
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: var(--lead-size);
	line-height: var(--lead-lh);
	font-style: italic;
}

/* Chiffres clés (815:13578) : pt 32 (sous le bouton) / pb 56 */
.home-chiffres { padding-block: 56px; }
.section-cta + .home-chiffres { padding-top: 32px; }

/* Services (804:12634) */
.home-services { padding-block: 60px; background: var(--color-grey-1); color: var(--color-white); }

.home-services__inner { display: flex; justify-content: space-between; gap: 48px; }
.home-services__text { display: flex; flex-direction: column; gap: 24px; max-width: 536px; }
.home-services__list { display: flex; flex-direction: column; gap: 24px; width: min(648px, 100%); }

/* Actualités (806:13290) */
.home-actus { padding-block: 56px; }
.home-actus .title-duo { margin-bottom: 32px; }
.home-actus__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ==========================================================================
   Responsive page d'accueil et composants (adaptation maison)
   ========================================================================== */

@media (max-width: 1279px) {
	.home-config { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
	.home-config__quote { margin-left: 15%; width: auto; }
}

@media (max-width: 1100px) {
	.home-hero { margin-top: 16px; }
}

@media (max-width: 1023px) {
	.home-gamme__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.home-config { grid-template-columns: minmax(0, 1fr); }
	.home-config__media { height: 380px; margin-top: 32px; }
	.home-config__quote { margin: -40px 20px 0; }

	.home-services__inner { flex-direction: column; }
	.home-services__list { width: 100%; }

	.home-actus__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.home-actus__grid > li:nth-child(3) { display: none; }

	.chiffre-cle { padding: 0 16px 32px; }
	.chiffre-cle__valeur { font-size: 48px; line-height: 56px; }
}

@media (max-width: 767px) {
	.home-hero { min-height: 560px; padding: 110px 20px 72px; align-items: flex-end; }
	.home-hero::before { background: linear-gradient(0deg, #1e1e1e 0%, rgb(30 30 30 / .6) 50%, rgb(30 30 30 / .2) 100%); }
	.home-hero__content { gap: 20px; }
	.subtitle { font-size: 15px; line-height: 24px; }

	.home-gamme__grid,
	.home-actus__grid { grid-template-columns: minmax(0, 1fr); }
	.home-actus__grid > li:nth-child(3) { display: block; }

	.home-config__media { height: 300px; }
	.home-config__decor { width: 44px; }
	.home-config__quote { margin: -32px 0 0; padding: 24px; }

	.home-services { padding-block: 48px; }
	.fiche-lien { gap: 16px; padding: 20px; }

	.chiffres-cles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chiffre-cle__valeur { font-size: 40px; line-height: 48px; border-bottom-width: 4px; }
}
