/**
 * Page « Qui sommes-nous ? »
 */

.qsn :is(h1, h2, h3, h4, h5, h6) {
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	font-weight: 400;
}

.qsn {
	--qsn-accent: #fed170;
	--qsn-surface: #e8f4f8;
}

/* -------------------------------------------------------------------------- */
/* Hero */
/* -------------------------------------------------------------------------- */

.qsn-hero {
	position: relative;
	overflow: hidden;
	min-height: 320px;
}

.qsn-hero__media {
	position: absolute;
	inset: 0;
}

.qsn-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.qsn-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 78, 144, 0.82) 0%, rgba(0, 78, 144, 0.45) 55%, rgba(0, 78, 144, 0.2) 100%);
}

.qsn-hero__inner.container {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	padding: 96px 20px 88px;
}

.qsn-hero__title {
	position: relative;
	max-width: 520px;
	margin: 0 0 18px;
	padding-top: 22px;
	color: #fff;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.qsn-hero__title::before {
	content: "";
	position: absolute;
	top: -0.25em;
	left: -1em;
	width: 48px;
	height: 48px;
	border-top: 4px solid #fff;
	border-left: 4px solid #fff;
}

.qsn-hero__text {
	max-width: 560px;
	margin: 0;
	color: rgba(255, 255, 255, 0.94);
	font-family: 'Segoe UI', sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.7;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------------------- */
/* Titres : voir bcom-section-title.css */

/* -------------------------------------------------------------------------- */
/* Histoire + timeline */
/* -------------------------------------------------------------------------- */

.qsn-history {
	padding: 72px 0;
	background: #fff;
}

.qsn-history__container {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 48px;
	align-items: center;
	max-width: 1200px;
}

.qsn-history__media {
	position: relative;
}

.qsn-history__img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0 24px 0 24px;
	box-shadow: 0 16px 40px rgba(18, 43, 84, 0.12);
}

.qsn-history__badge {
	position: absolute;
	left: 20px;
	bottom: -18px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 14px 20px;
	background: var(--qsn-accent);
	border-radius: 0 12px 0 12px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.qsn-history__badge-value {
	color: var(--hp-primary);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
}

.qsn-history__badge-label {
	color: var(--hp-primary);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.qsn-history__title {
	margin: 0 0 28px;
	color: var(--hp-blue);
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.35;
}

.qsn-timeline__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 24px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--qsn-surface);
	box-shadow: inset 0 0 0 1px rgba(0, 78, 144, 0.08);
}

.qsn-timeline__tab {
	flex: 1 1 auto;
	min-width: 0;
	padding: 14px 16px;
	border: 0;
	background: transparent;
	color: var(--hp-primary);
	font-family: 'Segoe UI', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.qsn-timeline__tab.is-active {
	background: var(--hp-secondary);
	color: var(--hp-primary);
}

.qsn-timeline__tab:hover,
.qsn-timeline__tab:focus-visible {
	background: rgba(139, 205, 211, 0.55);
	outline: none;
}

.qsn-timeline__panel {
	margin: 0;
	color: var(--hp-text);
	font-family: 'Segoe UI', sans-serif;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.75;
}

.qsn-timeline__panel[hidden] {
	display: none;
}

.qsn-timeline__panel p {
	margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Chiffres clés */
/* -------------------------------------------------------------------------- */

.qsn-stats {
	padding: 72px 0 80px;
	background: #f7f9fb;
}

.qsn-stats__container {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 40px;
	align-items: center;
	max-width: 1200px;
}

.qsn-stats__lead {
	margin: -12px 0 28px;
	color: var(--hp-text);
	font-family: 'Segoe UI', sans-serif;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.7;
}

.qsn-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.qsn-stat {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 110px;
	padding: 18px 16px;
	border-radius: 0 14px 0 14px;
	background: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-blue) 100%);
	color: #fff;
	text-align: center;
	box-shadow: 0 10px 24px rgba(0, 78, 144, 0.18);
}

.qsn-stat__value {
	font-size: 34px;
	font-weight: 700;
	line-height: 1.1;
}

.qsn-stat__label {
	margin-top: 6px;
	font-family: 'Segoe UI', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-transform: lowercase;
}

.qsn-stats__media {
	display: flex;
	justify-content: center;
}

.qsn-stats__img {
	width: 100%;
	max-width: 420px;
	height: auto;
	display: block;
	border-radius: 50%;
	aspect-ratio: 1;
	object-fit: cover;
	box-shadow: 0 18px 42px rgba(18, 43, 84, 0.14);
}

/* -------------------------------------------------------------------------- */
/* Équipe */
/* -------------------------------------------------------------------------- */

.qsn-team {
	padding: 72px 0 80px;
	background: #fff;
}

.qsn-team__inner.container {
	max-width: 1200px;
}

.qsn-team__featured {
	padding: 40px 32px;
	background: linear-gradient(180deg, var(--qsn-surface) 0%, #f7fbfd 100%);
	border-radius: 16px;
}

.qsn-team__spacer {
	height: 64px;
}

.qsn-team__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.qsn-team__grid--featured {
	grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
	justify-content: center;
	gap: 32px;
}

.qsn-member {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(18, 43, 84, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qsn-member:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(0, 115, 186, 0.14);
}

.qsn-member--featured {
	box-shadow: 0 14px 36px rgba(0, 78, 144, 0.12);
}

.qsn-member--featured .qsn-member__photo {
	min-height: 320px;
}

.qsn-member--featured .qsn-member__img {
	max-height: 300px;
}

.qsn-member--featured .qsn-member__name {
	font-size: 22px;
}

.qsn-member__photo-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.qsn-member__photo {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 280px;
	padding: 24px 16px 0;
	background: linear-gradient(180deg, var(--qsn-surface) 0%, #f0f6f9 100%);
	overflow: hidden;
}

.qsn-member__img {
	width: auto;
	max-width: 100%;
	max-height: 260px;
	height: auto;
	object-fit: contain;
	object-position: bottom center;
	display: block;
}

.qsn-member__body {
	position: relative;
	padding: 20px 20px 24px;
	text-align: center;
	background: #fff;
}

.qsn-member__name {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.qsn-member__name a {
	color: var(--hp-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.qsn-member__name a:hover,
.qsn-member__name a:focus-visible {
	color: var(--hp-blue);
}

.qsn-member__role {
	margin: 0 0 4px;
	color: var(--hp-blue);
	font-family: 'Segoe UI', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.qsn-member__city {
	margin: 0;
	color: var(--qsn-accent);
	font-family: 'Segoe UI', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.qsn-member__linkedin {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--qsn-surface);
	color: var(--hp-primary);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.qsn-member__linkedin:hover,
.qsn-member__linkedin:focus-visible {
	background: var(--hp-primary);
	color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Responsive */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.qsn-history__container,
	.qsn-stats__container {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.qsn-stats__media {
		order: -1;
	}

	.qsn-stats__img {
		max-width: 320px;
	}

	.qsn-team__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qsn-team__featured {
		padding: 32px 20px;
	}
}

@media (max-width: 767px) {
	.qsn-hero__inner.container {
		padding: 72px 16px 64px;
	}

	.qsn-hero__title {
		font-size: 32px;
	}

	.qsn-history {
		padding: 56px 0;
	}

	.qsn-history__badge {
		left: 12px;
		bottom: -12px;
		padding: 10px 14px;
	}

	.qsn-timeline__nav {
		flex-direction: column;
		border-radius: 12px;
	}

	.qsn-timeline__tab {
		width: 100%;
		text-align: left;
	}

	.qsn-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qsn-stat__value {
		font-size: 28px;
	}

	.qsn-team__grid,
	.qsn-team__grid--featured {
		grid-template-columns: 1fr;
	}

	.qsn-team__featured {
		padding: 24px 16px;
	}

	.qsn-team__spacer {
		height: 40px;
	}
}
