/*
 * Animations sobres et rapides (150-250ms, ease-out), coherentes avec
 * une identite industrielle : pas de glassmorphism, pas de dégradés,
 * pas d'easing élastique. Respecte prefers-reduced-motion.
 */

.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 480ms ease-out, transform 480ms ease-out;
	transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--color-grey-100);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--hero-image);
	background-size: cover;
	background-position: center;
	opacity: 0.12;
}

.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 340px;
	align-items: stretch;
	gap: 1.75rem;
	padding-block: 3.5rem;
}

.hero__main {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	padding: 1rem;
}

.hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 700;
	color: var(--color-orange);
	font-size: 0.85rem;
	margin-bottom: 0.75rem;
}

.hero__title {
	max-width: 620px;
}

.hero__subtitle {
	max-width: 560px;
	color: var(--color-text-muted);
	font-size: 1.1rem;
}

.hero__actions {
	display: flex;
	gap: 1rem;
	margin-block: 1.75rem;
	flex-wrap: wrap;
}

.hero__stats {
	display: flex;
	gap: 2.5rem;
	margin-top: 1.5rem;
}

.hero__stat-number {
	display: block;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.8rem;
	color: var(--color-charcoal);
}

.hero__stat-label {
	display: block;
	font-size: 0.82rem;
	color: var(--color-text-muted);
}

.hero__graphic {
	position: absolute;
	right: -30px;
	bottom: -30px;
	z-index: -1;
	pointer-events: none;
	opacity: 0.14;
}

.hero__blade {
	width: 260px;
	animation: bssenergie-spin-slow 18s linear infinite;
	transform-origin: center;
}

.hero__aside {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.hero-tile {
	position: relative;
	border-radius: var(--radius-lg);
	background: var(--color-white);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero-tile--promo {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 1.5rem;
	background: var(--color-charcoal);
	color: var(--color-white);
	min-height: 150px;
	justify-content: flex-end;
}

.hero-tile--promo:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.hero-tile__icon {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	background: rgba(255, 255, 255, 0.9);
	border-radius: var(--radius-pill);
	padding: 0.4rem;
}

.hero-tile--promo .hero-tile__eyebrow {
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: var(--color-orange-light);
	font-weight: 700;
}

.hero-tile--promo .hero-tile__title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.1rem;
}

.hero-tile__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--color-orange-light);
}

.hero-tile--quote {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.hero-tile__icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-pill);
	background: var(--color-orange-light);
	color: var(--color-orange-dark);
}

.hero-tile--quote .hero-tile__title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.05rem;
}

.hero-tile--quote p {
	font-size: 0.87rem;
	color: var(--color-text-muted);
	margin: 0;
}

.hero-tile__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-charcoal);
}

.hero-tile__phone:hover {
	color: var(--color-orange);
}

@media (prefers-reduced-motion: reduce) {
	.hero__blade {
		animation: none;
	}
}

@keyframes bssenergie-spin-slow {
	to {
		transform: rotate(360deg);
	}
}

/* Bandeau CTA */
.cta-banner {
	background: var(--color-charcoal);
	color: var(--color-white);
	margin-block: 4rem 0;
	padding-block: 3.5rem;
}

.cta-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.cta-banner h2 {
	color: var(--color-white);
	margin-bottom: 0.4rem;
}

.cta-banner p {
	color: var(--color-grey-400);
	margin: 0;
}

.cta-banner__actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Pourquoi nous choisir */
.why-us {
	padding-block: 4rem;
	background: var(--color-grey-100);
}

.why-us__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.75rem;
}

.why-us__item {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	text-align: center;
	transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.why-us__item:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.why-us__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: var(--radius-pill);
	background: var(--color-orange-light);
	color: var(--color-orange-dark);
	margin-bottom: 1rem;
}

.why-us__icon .icon {
	width: 1.6rem;
	height: 1.6rem;
}

/* Sections generiques */
.featured-categories,
.featured-products,
.testimonials {
	padding-block: 4rem;
}

/* 404 */
.error-404 {
	text-align: center;
	padding-block: 5rem;
}

.error-404__code {
	display: block;
	font-family: var(--font-heading);
	font-size: 5rem;
	font-weight: 800;
	color: var(--color-orange-light);
}

.error-404__actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-block: 1.5rem;
}

/* Fil d'ariane */
.breadcrumbs {
	padding-block: 1.25rem;
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 0.4rem;
	color: var(--color-grey-400);
}

.breadcrumbs a:hover {
	color: var(--color-orange);
}

@media (max-width: 960px) {
	.hero__grid {
		grid-template-columns: 1fr;
		text-align: center;
		padding-block: 3rem;
	}

	.hero__main {
		align-items: center;
	}

	.hero__actions,
	.hero__stats {
		justify-content: center;
	}

	.hero__graphic {
		display: none;
	}

	.hero-tile--promo {
		align-items: center;
		text-align: center;
	}

	.hero-tile__icon {
		position: static;
		margin-bottom: 0.5rem;
	}

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

@media (max-width: 560px) {
	.why-us__grid {
		grid-template-columns: 1fr;
	}

	.hero__stats {
		flex-wrap: wrap;
		gap: 1.5rem;
	}
}
