/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding-block: 72px;
	background: var(--color-secondary);
}

/* L'image de fond démarre en haut de page (derrière le header transparent),
   pas seulement derrière le hero : elle déborde vers le haut de sa propre
   hauteur (--header-height) grâce à un top négatif (contenu-accueil-stratium.md).
   z-index:0 la place sous le header (z-index:500, cf. header-footer.css) qui
   passe en fond plein au scroll et la recouvre naturellement. */
.hero__bg {
	position: absolute;
	top: calc(-1 * var(--header-height));
	left: 0;
	right: 0;
	height: calc(100% + var(--header-height));
	z-index: 0;
	overflow: hidden;
}

.hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: center;
}

.hero__visual {
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero__visual img {
	max-width: 70%;
	height: auto;
	display: block;
	animation: stratium-float 5s ease-in-out infinite;
}

@keyframes stratium-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

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

/* ---------- Présentation agence ---------- */
.agency-intro__inner {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 48px;
	align-items: center;
}

.agency-intro__visual {
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.agency-intro__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Carrousel logos (marquee) ---------- */
.logos-marquee {
	overflow: hidden;
}

.logos-marquee__track {
	display: flex;
	gap: 48px;
	width: max-content;
	animation: stratium-marquee 24s linear infinite;
}

.logos-marquee__item {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 72px;
	padding: 14px 28px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-secondary);
}

.logos-marquee__item img {
	max-height: 100%;
	max-width: 160px;
	width: auto;
	object-fit: contain;
}

@keyframes stratium-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

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

/* ---------- Accordéon des pôles ---------- */
/* Cible du lien « Nos expertises » de la page 404 (/#expertises) : décalage sous le header sticky. */
#expertises {
	scroll-margin-top: calc(var(--header-height) + 16px);
}

.poles__accordion {
	display: flex;
	gap: 4px;
	height: 420px;
}

.pole-band {
	position: relative;
	flex: 1 1 0;
	min-width: 64px;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	overflow: hidden;
	transition: flex-grow 0.4s ease, border-color 0.3s ease;
}

.pole-band.is-active {
	flex: 6 1 0;
	border-color: var(--color-primary);
}

.pole-band__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.pole-band__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(18, 20, 43, 0.35) 0%, rgba(18, 20, 43, 0.75) 100%);
	transition: background 0.3s ease;
}

.pole-band.is-active .pole-band__overlay {
	background: linear-gradient(0deg, rgba(18, 20, 43, 0.85) 0%, rgba(18, 20, 43, 0.25) 60%);
}

.pole-band__toggle {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 24px 16px;
}

.pole-band.is-active .pole-band__toggle {
	align-items: flex-start;
	justify-content: flex-start;
}

.pole-band__title {
	display: inline-block;
	font-size: var(--fs-lg);
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.pole-band.is-active .pole-band__title {
	writing-mode: horizontal-tb;
	transform: none;
	white-space: normal;
}

.pole-band__content {
	position: absolute;
	z-index: 2;
	left: 20px;
	right: 20px;
	bottom: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease 0.15s, visibility 0.25s ease 0.15s;
}

.pole-band.is-active .pole-band__content {
	opacity: 1;
	visibility: visible;
}

.pole-band__content p {
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--fs-sm);
	margin: 0 0 12px;
}

.pole-band__link {
	display: inline-block;
	font-weight: 700;
	font-size: var(--fs-sm);
	color: var(--color-primary);
}

/* ---------- Témoignages ---------- */
.testimonials__grid {
	grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
	margin: 0;
	padding: 24px;
	border-radius: var(--radius-md);
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
}

.testimonial-card__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 14px;
}

.testimonial-card p {
	margin: 0;
}

.testimonial-card footer {
	margin-top: 14px;
	font-weight: 600;
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hero__inner,
	.agency-intro__inner {
		grid-template-columns: 1fr;
	}

	.hero__visual,
	.agency-intro__visual {
		order: -1;
	}

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

@media (max-width: 900px) {
	.poles__accordion {
		flex-direction: column;
		height: auto;
		gap: 8px;
	}

	.pole-band {
		flex: none;
		min-width: 0;
	}

	.pole-band.is-active {
		flex: none;
	}

	.pole-band__toggle {
		position: static;
		justify-content: flex-start;
		align-items: center;
		padding: 16px 20px;
	}

	.pole-band.is-active .pole-band__toggle {
		align-items: center;
	}

	.pole-band__title,
	.pole-band.is-active .pole-band__title {
		writing-mode: horizontal-tb;
		transform: none;
	}

	.pole-band__content {
		position: static;
		opacity: 1;
		visibility: visible;
		max-height: 0;
		overflow: hidden;
		padding: 0 20px;
		transition: max-height 0.3s ease, padding 0.3s ease;
	}

	.pole-band.is-active .pole-band__content {
		max-height: 220px;
		padding: 0 20px 20px;
	}
}

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

/* Mention « traduit du français » sous les témoignages (version anglaise). */
.testimonials__note {
	margin: 16px 0 0;
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
	text-align: center;
}
