/**
 * Design tokens, typography and shared component classes for Groupe FM.
 * Ported from design.md (Figma export). Reference tokens, never raw hex, in new CSS.
 */

:root {
	--bg: #0b0d11;
	--surface: #13161c;
	--surface-2: #1c2028;
	--amber: #f5a100;
	--amber-bright: #ffb620;
	--amber-dim: #c47e00;
	--green: #5aab48;
	--teal: #2a7a9b;
	--ice: #71e5fa;
	--text: #f0ede8;
	--muted: #fff;
	--border: rgba(240, 237, 232, 0.08);

	--radius-sm: 4px;
	--radius-md: 6px;
	--section-padding: clamp(4rem, 8vw, 7rem);
	--content-width: 1280px;
	--header-height: 88px;
}

/* Base font scale: everything else in this file is sized in rem,
   so bumping the root size here scales body copy, buttons, nav, etc.
   consistently together. Desktop only — mobile sizes were already fine. */
@media (min-width: 782px) {
	html {
		font-size: 112.5%; /* 18px instead of the 16px browser default */
	}
}

/* Typography
--------------------------------------------- */
body {
	background: var(--bg);
	color: var(--text);
	font-family: 'Barlow', sans-serif;
	font-weight: 300;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	padding-top: var(--header-height);
}

.font-display,
h1,
h2,
h3,
.btn-primary,
.btn-outline,
.eyebrow,
.stat-num {
	font-family: 'Barlow Condensed', sans-serif;
}

h1,
h2,
h3 {
	text-transform: uppercase;
	font-weight: 900;
	line-height: 1;
	margin: 0;
}

h1 {
	font-size: clamp(3.5rem, 9vw, 8rem);
	letter-spacing: -0.01em;
}

h2 {
	font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
	font-size: clamp(1.6rem, 3vw, 2.8rem);
	font-weight: 700;
}

.eyebrow {
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	color: var(--amber);
	font-weight: 600;
}

.stat-num {
	font-weight: 900;
	line-height: 1;
	color: var(--amber);
	font-size: clamp(2.5rem, 4vw, 3.5rem);
	margin: 0 0 0.4rem;
}

.testimonial-quote {
	font-family: 'Barlow', sans-serif;
	font-weight: 300;
	font-style: italic;
	font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

/* Layout
--------------------------------------------- */
.content-width {
	max-width: var(--content-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.section {
	padding-top: var(--section-padding);
	padding-bottom: var(--section-padding);
}

.surface {
	background: var(--surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

/* Buttons
--------------------------------------------- */
.btn-primary,
.btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.08em;
	border-radius: var(--radius-sm);
	padding: 0.9rem 1.75rem;
	text-decoration: none;
	transition: background 0.2s, transform 0.15s, border-color 0.2s, color 0.2s;
	border: 1px solid transparent;
	cursor: pointer;
}

.btn-primary {
	background: var(--amber);
	color: var(--bg);
}

.btn-primary:hover {
	background: var(--amber-bright);
	transform: translateY(-1px);
}

.btn-outline {
	background: transparent;
	color: var(--text);
	border-color: rgba(240, 237, 232, 0.3);
}

.btn-outline:hover {
	border-color: var(--amber);
	color: var(--amber);
}

.btn-group {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Form inputs
--------------------------------------------- */
.fm-input {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 0.9rem 1.1rem;
	color: var(--text);
	font-family: 'Barlow', sans-serif;
	transition: border-color 0.2s;
	width: 100%;
}

.fm-input::placeholder {
	color: var(--muted);
}

.fm-input:focus {
	outline: none;
	border-color: var(--amber);
}

/* Segmented toggle (season pill, services tabs, form service-type)
--------------------------------------------- */
.segmented-toggle {
	display: inline-flex;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.segmented-toggle button,
.segmented-toggle a {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-family: 'Barlow Condensed', sans-serif;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.06em;
	font-size: 0.8rem;
	background: var(--surface-2);
	color: var(--muted);
	border: none;
	text-decoration: none;
	padding: 0.6rem 1.2rem;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.segmented-toggle a:hover {
	color: var(--text);
}

.toggle-icon {
	flex-shrink: 0;
}

.segmented-toggle button[aria-pressed="true"] {
	background: var(--amber);
	color: var(--bg);
}

/* Cards & surfaces
--------------------------------------------- */
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* Utility
--------------------------------------------- */
.img-cover {
	object-fit: cover;
	width: 100%;
	height: 100%;
	display: block;
}

.img-zoom {
	overflow: hidden;
	display: block;
}

.img-zoom img {
	transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
	transform: scale(1.06);
}

.amber-line {
	position: relative;
	display: inline-block;
	padding-bottom: 0.75rem;
}

.amber-line::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 3px;
	background: var(--amber);
}

.service-overlay {
	background: linear-gradient(to top, rgba(11, 13, 17, 0.9) 0%, rgba(11, 13, 17, 0.4) 50%, rgba(11, 13, 17, 0) 100%);
}

.nav-blur {
	backdrop-filter: blur(20px);
	transition: background 0.5s, border-color 0.5s;
}

/* Site header / nav
--------------------------------------------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--header-height);
	background: transparent;
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
	background: rgba(11, 13, 17, 0.85);
	border-bottom-color: var(--border);
}

.site-header__inner {
	height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

/* .site-branding is a plain block div; without its own flex context, the
   inline-flex .site-logo inside it sits on the surrounding line's text
   baseline, leaving descender whitespace below it — the logo looked
   vertically off-center even though .site-header__inner centers .site-branding
   correctly. Giving the wrapper its own flex context removes that gap. */
.site-branding {
	display: flex;
	align-items: center;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.site-logo img {
	width: auto;
	display: block;
}

/* Header: small, monochrome white (over the dark/transparent nav). */
.site-header .site-logo img {
	filter: brightness(0) invert(1);
}
@media (min-width: 782px) {
	.site-header .site-logo img {
	max-height: 98px;
	}
}
/* Footer: 1.5x the header size, full brand colors. */
.footer-about .site-logo img {
	height: 165px;
    max-height: 12vh;
}

.site-logo__text {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 1.3rem;
	color: var(--text);
}

.main-navigation ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 2rem;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	font-family: 'Barlow Condensed', sans-serif;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	color: var(--text);
	text-decoration: none;
	transition: color 0.2s;
}

.main-navigation a:hover {
	color: var(--amber);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.btn-small {
	padding: 0.6rem 1.1rem;
	font-size: 0.72rem;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.7rem;
	background: var(--amber);
	border: 0;
	color: var(--bg);
	border-radius: var(--radius-sm);
	padding: 0.8rem 1.1rem;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.2s;
}

.menu-toggle:hover {
	background: var(--amber-bright);
}

.menu-toggle__icon {
	position: relative;
	display: block;
	width: 20px;
	height: 14px;
}

.menu-toggle__icon span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.25s, opacity 0.2s, top 0.25s;
}

.menu-toggle__icon span:nth-child(1) { top: 0; }
.menu-toggle__icon span:nth-child(2) { top: 6px; }
.menu-toggle__icon span:nth-child(3) { top: 12px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) {
	top: 6px;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) {
	top: 6px;
	transform: rotate(-45deg);
}

/* Desktop: the panel is transparent to layout, and the in-menu CTA is hidden
   (the header's own "Demander une soumission" button is used instead). */
.main-navigation__panel {
	display: contents;
}

.main-navigation .main-navigation__buttons {
	display: none;
}

.main-navigation {
	width: auto;
	margin-left: auto;
}

@media (max-width: 900px) {
	.site-header__inner {
		justify-content: space-between;
	}

	.menu-toggle {
		display: inline-flex;
	}

	/* The header CTA moves into the menu on mobile. */
	.site-header__actions {
		display: none;
	}

	.main-navigation__panel {
		display: none;
		position: absolute;
		top: calc(100% + 0.5rem);
		left: 0.75rem;
		right: 0.75rem;
		height: calc(100dvh - var(--header-height) - var(--banner-height) - 1.5rem);
		flex-direction: column;
		padding: 1.75rem 1.5rem 1.5rem;
		background: rgba(11, 13, 17, 0.55);
		-webkit-backdrop-filter: blur(24px) saturate(150%);
		backdrop-filter: blur(24px) saturate(150%);
		border: 1px solid rgba(255, 255, 255, 0.14);
		border-radius: var(--radius-md);
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
		overflow-y: auto;
	}

	.main-navigation.toggled .main-navigation__panel {
		display: flex;
	}

	.main-navigation ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.main-navigation li a {
		display: block;
		padding: 1.1rem 0;
		font-size: 1.5rem;
		letter-spacing: 0.06em;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.main-navigation {
		margin-left: auto;
	}

	.site-header .site-logo img {
		max-height: 68px;
	}

	.main-navigation .main-navigation__buttons {
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
		margin-top: auto;
		flex-shrink: 0;
	}

	.main-navigation .main-navigation__cta {
		display: flex;
		width: 100%;
		padding: 1.15rem 1.5rem;
		font-size: 1rem;
	}

	/* Underscores' .main-navigation a color would otherwise beat the button
	   text color (and turn the amber button's text light). */
	.main-navigation .btn-primary.main-navigation__cta,
	.main-navigation .btn-primary.main-navigation__cta:hover {
		color: #000;
	}

	.main-navigation .btn-outline.main-navigation__cta {
		color: var(--text);
	}

	.main-navigation .btn-outline.main-navigation__cta:hover {
		color: var(--amber);
	}

	/* Keep the page from scrolling behind the open menu. */
	body.menu-open {
		overflow: hidden;
	}
}

/* Header blur lives on a pseudo-element, not the header itself: a backdrop-filter
   on an ancestor would stop the glass menu panel from blurring the page behind it. */
.site-header.nav-blur {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.site-header::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}

/* Footer
--------------------------------------------- */
.site-footer {
	background: var(--surface);
	border-top: 1px solid var(--border);
	padding-top: clamp(3rem, 6vw, 5rem);
	padding-bottom: 2rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 3rem;
	padding-bottom: 3rem;
}

.footer-about .site-logo {
	margin-bottom: 1.25rem;
}

.footer-about__text {
	color: var(--muted);
	font-size: 0.9rem;
	max-width: 28em;
	margin: 0;
}

.footer-column__title {
	font-family: 'Barlow Condensed', sans-serif;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	margin: 0 0 1rem;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.footer-links a {
	color: var(--muted);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: var(--amber);
}

.footer-social {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: flex;
	gap: 1.25rem;
}

.footer-social a {
	color: var(--text);
	text-decoration: none;
	font-size: 0.85rem;
}

.footer-social a:hover {
	color: var(--amber);
}

.footer-legal {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.8rem;
}

.footer-legal p {
	margin: 0;
}

@media (max-width: 782px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

/* Season-aware blocks
--------------------------------------------- */
[data-season-eyebrow="hiver"] {
	color: var(--amber);
}

[data-season-eyebrow="ete"] {
	color: var(--green);
}

[data-season-word="hiver"] {
	color: var(--amber);
}

[data-season-word="ete"] {
	color: var(--green);
}

/* Season panels: [data-season="hiver|ete"] marks which season a block belongs
   to; .is-active (toggled by js/season-toggle.js, set server-side on first
   render) controls visibility. Both seasons stay in the DOM so the
   visitor-facing pill can crossfade instantly with no reload/fetch. */
[data-season] {
	transition: opacity 0.8s ease;
}

[data-season]:not(.is-active) {
	display: none;
	opacity: 0;
}

[data-season].is-active {
	opacity: 1;
}

/* Services tabs: same active/inactive pattern as [data-season] above, for the
   déneigement/paysagement panels in the "Quatre saisons" block. */
[data-services-panel] {
	transition: opacity 0.5s ease;
}

[data-services-panel]:not(.is-active) {
	display: none;
	opacity: 0;
}

[data-services-panel].is-active {
	opacity: 1;
}

/* Hero section
--------------------------------------------- */
.section-hero {
	position: relative;
	min-height: 90vh;
	margin-top: calc(-1 * var(--header-height));
	display: flex;
	align-items: flex-end;
}

.hero-season-toggle {
	margin-bottom: 1.5rem;
}

.hero-panel {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
}

.hero-panel__image {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-panel__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(11, 13, 17, 1) 0%, rgba(11, 13, 17, 0.55) 40%, rgba(11, 13, 17, 0.2) 100%);
}

.hero-panel__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-bottom: clamp(3rem, 8vw, 6rem);
	padding-top: 8rem;
}

.hero-panel__headline {
	display: flex;
	flex-direction: column;
}

.hero-panel__text {
	max-width: 32em;
	color: var(--muted);
	margin: 1.5rem 0 2rem;
}

/* Services (Quatre saisons) section
--------------------------------------------- */
.services-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 3rem;
}

.services-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 3rem;
	align-items: center;
}

.services-panel__image {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.services-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.service-item {
	display: flex;
	gap: 1.25rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.service-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.service-item__num {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	color: var(--amber);
	font-size: 0.9rem;
}

[data-services-panel="paysagement"] .service-item__num {
	color: var(--green);
}

.service-item__title {
	font-size: 1rem;
	text-transform: uppercase;
	font-weight: 700;
	margin: 0 0 0.4rem;
}

.service-item__text {
	color: var(--muted);
	font-size: 0.9rem;
	margin: 0;
}

@media (max-width: 782px) {
	.services-panel {
		grid-template-columns: 1fr;
	}
}

/* Stats bar
--------------------------------------------- */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 2rem;
}

[data-season="ete"].stats-grid .stat-num {
	color: var(--green);
}

.stat-label {
	color: var(--muted);
	font-size: 0.85rem;
	margin: 0;
}

/* Split panels
--------------------------------------------- */
.section-split-panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.split-panel {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	display: block;
}

.split-panel img {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.split-panel__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(11, 13, 17, 0.85) 0%, rgba(11, 13, 17, 0.1) 60%);
}

.split-panel__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 2rem;
}

.split-panel__content h3 {
	margin-top: 0.4rem;
}

@media (max-width: 782px) {
	.section-split-panels {
		grid-template-columns: 1fr;
	}
}

/* Promise / engagement section
--------------------------------------------- */
.section-promise {
	position: relative;
	overflow: hidden;
}

.section-promise__bg {
	position: absolute;
	inset: 0;
	opacity: 0.07;
	z-index: 0;
}

.section-promise .content-width {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.promise-quote {
	margin: 0;
}

.promise-quote span {
	display: block;
}

.promise-quote .accent {
	color: var(--amber);
}

.promise-text p {
	color: var(--muted);
	margin: 0 0 1.25rem;
}

.promise-badges {
	display: flex;
	gap: 2.5rem;
	margin-top: 2rem;
}

.promise-badge__label {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 900;
	color: var(--amber);
	font-size: 1.3rem;
}

.promise-badge__text {
	color: var(--muted);
	font-size: 0.8rem;
}

@media (max-width: 782px) {
	.section-promise .content-width {
		grid-template-columns: 1fr;
	}
}

/* Testimonials
--------------------------------------------- */
.section-testimonials {
	text-align: center;
}

.section-testimonials .content-width {
	max-width: 56rem;
}

.testimonial-item {
	display: none;
}

.testimonial-item.is-active {
	display: block;
}

.testimonial-author {
	margin-top: 1.5rem;
	text-transform: uppercase;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.testimonial-author__role {
	display: block;
	color: var(--muted);
	text-transform: none;
	font-family: 'Barlow', sans-serif;
	font-weight: 300;
	letter-spacing: normal;
	font-size: 0.85rem;
}

.testimonial-dots {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	margin-top: 2rem;
}

.testimonial-dots button {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: var(--surface-2);
	cursor: pointer;
	padding: 0;
	transition: background 0.3s;
}

.testimonial-dots button[aria-current="true"] {
	background: var(--amber);
}

/* Contact section
--------------------------------------------- */
.section-contact .content-width {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.contact-info {
	margin-top: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact-info p {
	margin: 0;
}

.contact-info__label {
	font-family: 'Barlow Condensed', sans-serif;
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	color: var(--amber);
	font-weight: 700;
	display: block;
	margin-bottom: 0.3rem;
}

.contact-info a,
.contact-info__value {
	color: var(--text);
	font-size: 1.05rem;
	text-decoration: none;
}

.contact-info a:hover {
	color: var(--amber);
}

/* Contact form (real shortcode form, or the static placeholder preview) */
.contact-form.card {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.contact-form-placeholder-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.contact-form__label {
	margin: 0;
}

.contact-service-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
}

.contact-service-toggle button {
	justify-content: center;
}

.contact-service-both {
	width: 100%;
	font-family: 'Barlow Condensed', sans-serif;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.06em;
	font-size: 0.8rem;
	background: var(--surface-2);
	color: var(--muted);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 0.6rem 1.2rem;
	cursor: pointer;
	margin-top: -0.35rem;
}

.fm-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.fm-input:disabled {
	opacity: 1;
	color: var(--text);
	cursor: default;
}

.contact-form__submit {
	width: 100%;
	margin-top: 0.25rem;
}

.contact-form__microcopy {
	text-align: center;
	color: var(--muted);
	font-size: 0.8rem;
	margin: 0;
}

.contact-form-placeholder-note {
	color: var(--muted);
	font-size: 0.75rem;
	text-align: center;
	margin: 1rem 0 0;
	padding-top: 1rem;
	border-top: 1px dashed var(--border);
}

@media (max-width: 782px) {
	.section-contact .content-width {
		grid-template-columns: 1fr;
	}

	.fm-field-row {
		grid-template-columns: 1fr;
	}
}

/* Service page mini-hero
--------------------------------------------- */
.section-hero--service {
	min-height: 60vh;
}

/* Feature trio (3-point banner under a service hero)
--------------------------------------------- */
.section-feature-trio {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

.feature-trio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2rem;
}

.feature-trio-item__title {
	font-family: 'Barlow Condensed', sans-serif;
	text-transform: uppercase;
	font-weight: 800;
	font-size: 2.2rem;
	color: var(--amber);
	margin: 0 0 0.3rem;
}

.feature-trio-item__text {
	color: var(--muted);
	font-size: 0.85rem;
	margin: 0;
}

/* Feature grid (2-column: "Un service complet" / "Qui nous confie")
--------------------------------------------- */
.section-feature-grid__title {
	margin-top: 0.5rem;
	margin-bottom: 3rem;
}

.feature-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 3rem;
	row-gap: 2rem;
}

.feature-grid__num {
	display: block;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	color: var(--amber);
	font-size: 0.85rem;
	margin-bottom: 0.4rem;
}

.feature-grid__item-title {
	font-size: 1rem;
	text-transform: uppercase;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.feature-grid--numbered .feature-grid__item {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.feature-grid--underline .feature-grid__item-title {
	display: inline-block;
	padding-bottom: 0.75rem;
	border-bottom: 3px solid var(--amber);
	margin-bottom: 0.75rem;
}

.feature-grid__item-text {
	color: var(--muted);
	font-size: 0.9rem;
	margin: 0;
}

@media (max-width: 782px) {
	.feature-grid {
		grid-template-columns: 1fr;
	}
}

/* Process steps ("Comment ça fonctionne")
--------------------------------------------- */
.section-process-steps__title {
	margin-top: 0.5rem;
	margin-bottom: 3rem;
}

.process-steps-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.process-step__num {
	display: block;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 900;
	color: var(--amber);
	font-size: 1.8rem;
	margin-bottom: 0.5rem;
}

.process-step__title {
	font-size: 0.95rem;
	text-transform: uppercase;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.process-step__text {
	color: var(--muted);
	font-size: 0.85rem;
	margin: 0;
}

@media (max-width: 900px) {
	.process-steps-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.process-steps-grid {
		grid-template-columns: 1fr;
	}
}

/* Image trio
--------------------------------------------- */
.section-image-trio {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
}

.image-trio__item {
	aspect-ratio: 4 / 3;
}

@media (max-width: 782px) {
	.section-image-trio {
		grid-template-columns: 1fr;
	}
}

/* Text split ("Notre histoire", "Notre territoire", "Notre flotte"…)
--------------------------------------------- */
.text-split-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: flex-start;
}

/* Variant with an image (e.g. "Notre flotte"): bottom-align the two columns
   so the image and the text block sit flush at the same baseline. */
.section-text-split--image .text-split-grid {
	align-items: flex-end;
}

.text-split__image {
	margin-top: 1.5rem;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.text-split__body p {
	color: var(--muted);
	margin: 0 0 1.25rem;
}

.text-split__body p:last-child {
	margin-bottom: 0;
}

@media (max-width: 782px) {
	.text-split-grid {
		grid-template-columns: 1fr;
	}
}

/* CTA banner, split (cross-link, "on embauche")
--------------------------------------------- */
.section-cta-split {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.cta-split-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.cta-split__copy h3 {
	margin-top: 0.4rem;
}

.cta-split__text {
	color: var(--muted);
	margin: 0.4rem 0 0;
}

/* CTA banner, centered (bottom-of-page)
--------------------------------------------- */
.cta-centered-inner {
	max-width: 44rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.cta-centered__text {
	color: var(--muted);
	margin: 1.5rem 0 2rem;
}

.cta-centered__buttons {
	justify-content: center;
}

/* Service page accent theming
   Body class comes from the page's service_hero "service_actif" (see
   groupe_fm_body_classes). Paysagement swaps content accents from amber to
   green; buttons (.btn-*, segmented toggle) intentionally stay amber. */
.service-theme-paysagement .site-main .eyebrow,
.service-theme-paysagement .feature-trio-item__title,
.service-theme-paysagement .process-step__num,
.service-theme-paysagement .feature-grid__num {
	color: var(--green);
}

.service-theme-paysagement .feature-grid--underline .feature-grid__item-title {
	border-bottom-color: var(--green);
}

/* Déneigement accent: snowflake-icon blue instead of amber (buttons stay amber).
   To revert, delete this block. */
.service-theme-deneigement .site-main .eyebrow,
.service-theme-deneigement .feature-trio-item__title,
.service-theme-deneigement .process-step__num,
.service-theme-deneigement .feature-grid__num,
.service-theme-deneigement [data-season-word="hiver"],
.service-theme-deneigement [data-season-eyebrow="hiver"] {
	color: var(--ice);
}

.service-theme-deneigement .feature-grid--underline .feature-grid__item-title {
	border-bottom-color: var(--ice);
}

/* Top banner (Réglages du site > Bannière)
   Fixed black bar above the header. --banner-height is 0 unless the bar is on
   (body.has-banner), so the header and page content shift down only then. */
:root {
	--banner-height: 0px;
}

.has-banner {
	--banner-height: 34px;
}

body {
	padding-top: calc(var(--header-height) + var(--banner-height));
}

.site-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 101;
	height: var(--banner-height);
	background: #000;
	border-bottom: 1px solid var(--border);
}

.site-banner__link {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0 1rem;
	font-family: 'Barlow Condensed', sans-serif;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	color: var(--text);
	text-decoration: none;
}

.site-banner__number {
	font-weight: 800;
	color: var(--amber);
	transition: color 0.2s;
}

.site-banner__link:hover .site-banner__number {
	color: var(--amber-bright);
}

.site-header {
	top: var(--banner-height);
}

/* Standard WordPress pages (no ACF sections set — e.g. Politique de
   confidentialité). Without this, these pages fall back to unstyled browser
   defaults: no max-width (full-bleed body copy), and the global h1 rule
   (hero-sized, clamp(3.5rem, 9vw, 8rem)) applied straight to the page title. */
.standard-page {
	max-width: 48rem;
}

.entry-header {
	margin-bottom: 2.5rem;
}

.entry-title {
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: -0.01em;
}

.entry-content {
	color: var(--muted);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p {
	margin: 0 0 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--text);
	margin: 2.5rem 0 1rem;
}

.entry-content h2 {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.entry-content h3 {
	font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

.entry-content h4 {
	font-family: 'Barlow', sans-serif;
	text-transform: none;
	font-size: 1.1rem;
	font-weight: 600;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.5rem;
	padding-left: 1.5rem;
}

.entry-content li {
	margin-bottom: 0.5rem;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
	transition: color 0.2s;
}

.entry-content a:hover {
	color: var(--amber);
}

.entry-content blockquote {
	margin: 2rem 0;
	padding-left: 1.25rem;
	border-left: 3px solid var(--amber);
	font-style: italic;
	color: var(--text);
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
}

.entry-content th,
.entry-content td {
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	text-align: left;
}

.entry-content hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 2.5rem 0;
}

.page-links {
	margin-top: 2rem;
	font-family: 'Barlow Condensed', sans-serif;
}

.entry-footer {
	margin-top: 2rem;
}

.entry-footer .edit-link a {
	font-size: 0.8rem;
	color: var(--muted);
}
