/**
 * TARMAC — page d'accueil (modèle Accueil, maquette PDF)
 */

/* ---- Sections communes ---- */

.tarmac-home .tarmac-container {
	padding-top: clamp(2.5rem, 5vw, 4rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.tarmac-home-section__header {
	margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
	max-width: 42rem;
}

.tarmac-home-section__header--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	max-width: none;
}

.tarmac-home-section__header--center {
	text-align: center;
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}

.tarmac-home-section__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: var(--tarmac-title-color);
}

.tarmac-home-section__lead {
	margin: 0;
	font-size: 1.05rem;
	color: var(--tarmac-text-color);
}

.tarmac-home-section__link {
	flex-shrink: 0;
	font-weight: 600;
	text-decoration: none;
	color: var(--tarmac-alternative);
	white-space: nowrap;
}

.tarmac-home-section__link:hover,
.tarmac-home-section__link:focus-visible {
	color: var(--tarmac-primary);
}

.tarmac-home-extra {
	padding-top: 0;
}

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

.tarmac-home-hero {
	--tarmac-home-hero-min-height: clamp(480px, 72vh, 640px);
	position: relative;
	min-height: var(--tarmac-home-hero-min-height);
	background: linear-gradient(135deg, #00344d 0%, #14233a 100%);
	color: #fff;
	overflow: hidden;
}

.tarmac-home-hero__slides {
	position: relative;
	min-height: var(--tarmac-home-hero-min-height);
	height: var(--tarmac-home-hero-min-height);
}

.tarmac-home-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: stretch;
	background-color: #00344d;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease, visibility 0.7s ease;
	z-index: 0;
}

.tarmac-home-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.tarmac-home-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.tarmac-home-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transform: scale(1.02);
}

.tarmac-home-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(
			180deg,
			rgb(0 52 77 / 55%) 0%,
			rgb(20 35 58 / 72%) 55%,
			rgb(20 35 58 / 88%) 100%
		),
		linear-gradient(
			90deg,
			rgb(0 52 77 / 82%) 0%,
			rgb(20 35 58 / 45%) 55%,
			rgb(20 35 58 / 25%) 100%
		);
}

.tarmac-home-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	flex: 1;
	width: 100%;
	min-height: var(--tarmac-home-hero-min-height);
	padding-top: clamp(2rem, 5vw, 3rem);
	padding-bottom: clamp(3.5rem, 8vw, 5rem);
}

.tarmac-home-hero .tarmac-container {
	padding-top: 0;
	padding-bottom: 0;
}

.tarmac-home-hero__content-inner {
	max-width: 720px;
}

.tarmac-home-hero__title {
	margin: 0 0 1.25rem;
	font-family: var(--tarmac-alternative-font);
	font-style: var(--tarmac-alternative-font-style);
	font-weight: var(--tarmac-alternative-font-weight);
	font-size: clamp(2.25rem, 6vw, 3.75rem);
	line-height: 1.08;
	color: #fff;
	text-shadow: 0 2px 24px rgb(0 0 0 / 35%);
}

.tarmac-home-hero__text {
	margin: 0 0 1.75rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: rgb(255 255 255 / 92%);
	max-width: 36rem;
	text-shadow: 0 1px 12px rgb(0 0 0 / 30%);
}

.tarmac-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tarmac-btn--hero {
	border-radius: 100px;
	padding: 0.85rem 1.75rem;
	font-size: 0.95rem;
	box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
}

.tarmac-home-hero__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: clamp(1.25rem, 3vw, 2rem);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 0 clamp(1rem, 4vw, 2rem);
	pointer-events: none;
}

.tarmac-home-hero__controls > * {
	pointer-events: auto;
}

.tarmac-home-hero__nav {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgb(255 255 255 / 35%);
	border-radius: 50%;
	background: rgb(0 0 0 / 25%);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.tarmac-home-hero__nav:hover,
.tarmac-home-hero__nav:focus-visible {
	background: rgb(255 255 255 / 15%);
}

.tarmac-home-hero__dots {
	display: flex;
	gap: 0.5rem;
}

.tarmac-home-hero__dot {
	width: 0.65rem;
	height: 0.65rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgb(255 255 255 / 35%);
	cursor: pointer;
}

.tarmac-home-hero__dot.is-active {
	background: var(--tarmac-primary);
	transform: scale(1.25);
}

/* ---- Qui sommes-nous ---- */

.tarmac-home-about {
	background: #fff;
}

.tarmac-home-about__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.tarmac-home-about__intro {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--tarmac-text-color);
}

.tarmac-home-about__tagline {
	margin: 0 0 1.5rem;
	font-family: var(--tarmac-alternative-font);
	font-style: var(--tarmac-alternative-font-style);
	font-weight: var(--tarmac-alternative-font-weight);
	font-size: clamp(1.15rem, 2.5vw, 1.45rem);
	color: var(--tarmac-alternative);
}

.tarmac-home-about__audiences-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--tarmac-title-color);
}

.tarmac-home-about__audiences-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tarmac-home-about__audiences-list li {
	padding: 0.45rem 0.9rem;
	border-radius: 100px;
	background: #f0f4f7;
	color: var(--tarmac-alternative);
	font-size: 0.875rem;
	font-weight: 600;
}

.tarmac-home-about__aside {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tarmac-home-about__image-wrap {
	border-radius: calc(var(--tarmac-radius) + 2px);
	overflow: hidden;
	box-shadow: var(--tarmac-shadow-soft);
}

.tarmac-home-about__image {
	width: 100%;
	height: auto;
	display: block;
}

.tarmac-home-about__highlight {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1.75rem 1.25rem;
	background: var(--tarmac-alternative);
	color: #fff;
	border-radius: calc(var(--tarmac-radius) + 2px);
	box-shadow: var(--tarmac-shadow-soft);
}

.tarmac-home-about__highlight-value {
	font-family: var(--tarmac-alternative-font);
	font-style: var(--tarmac-alternative-font-style);
	font-weight: var(--tarmac-alternative-font-weight);
	font-size: clamp(2.5rem, 5vw, 3.25rem);
	line-height: 1;
	color: var(--tarmac-primary);
}

.tarmac-home-about__highlight-label {
	margin-top: 0.35rem;
	font-size: 0.95rem;
	color: rgb(255 255 255 / 88%);
}

.tarmac-home-about__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgb(20 35 58 / 10%);
	padding-top: clamp(1.5rem, 3vw, 2rem);
}

.tarmac-home-about__stat {
	text-align: center;
	padding: 0.75rem;
}

.tarmac-home-about__stat-value {
	display: block;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	color: var(--tarmac-title-color);
	line-height: 1.1;
}

.tarmac-home-about__stat-label {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.9rem;
	color: var(--tarmac-text-color);
}

/* ---- Missions ---- */

.tarmac-home-missions {
	background: #f8faf9;
}

/* ---- Cohésion d'acteurs ---- */

.tarmac-home-engagement {
	position: relative;
	background: var(--tarmac-alternative);
	color: #fff;
}

.tarmac-home-engagement--has-bg {
	background-color: #00344d;
	background-size: cover;
	background-position: center;
}

.tarmac-home-engagement__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgb(0 52 77 / 92%), rgb(20 35 58 / 88%));
}

.tarmac-home-engagement__inner {
	position: relative;
	z-index: 1;
}

.tarmac-home-engagement .tarmac-home-section__title {
	color: #fff;
}

.tarmac-home-engagement .tarmac-home-section__lead {
	color: rgb(255 255 255 / 85%);
}

.tarmac-home-engagement__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0.85rem;
}

.tarmac-home-engagement__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	min-height: 100%;
	padding: 1.15rem 1.25rem;
	background: rgb(255 255 255 / 8%);
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: calc(var(--tarmac-radius) + 2px);
	color: #fff;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a.tarmac-home-engagement__card:hover,
a.tarmac-home-engagement__card:focus-visible {
	background: rgb(255 255 255 / 14%);
	border-color: var(--tarmac-primary);
	transform: translateY(-2px);
	color: #fff;
}

.tarmac-home-engagement__card-image-wrap {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--tarmac-radius);
	overflow: hidden;
}

.tarmac-home-engagement__card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tarmac-home-engagement__card-label {
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
}

.tarmac-home-engagement__card-arrow {
	margin-top: auto;
	color: var(--tarmac-primary);
	font-weight: 700;
}

/* ---- Organisation ---- */

.tarmac-home-team {
	background: #fff;
}

.tarmac-home-team__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 3vw, 2rem);
}

.tarmac-home-team__member {
	text-align: center;
}

.tarmac-home-team__photo-wrap {
	width: 140px;
	height: 140px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: var(--tarmac-shadow-soft);
}

.tarmac-home-team__photo-wrap--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #00344d, #14233a);
}

.tarmac-home-team__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tarmac-home-team__initials {
	font-size: 2rem;
	font-weight: 700;
	color: var(--tarmac-primary);
}

.tarmac-home-team__name {
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
}

.tarmac-home-team__role {
	margin: 0;
	font-size: 0.9rem;
	color: var(--tarmac-text-color);
}

/* ---- Actualités ---- */

.tarmac-home-news {
	background: #f8faf9;
}

.tarmac-home-news__kicker {
	margin: 0 0 0.35rem;
	font-family: var(--tarmac-header-el-font);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tarmac-primary);
}

.tarmac-home-news__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
	gap: clamp(1.5rem, 4vw, 2.5rem);
	align-items: start;
}

.tarmac-home-news__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.tarmac-home-news__list .tarmac-card {
	box-shadow: var(--tarmac-shadow-soft);
}

.tarmac-home-news__featured {
	background: var(--tarmac-alternative);
	color: #fff;
	border-radius: calc(var(--tarmac-radius) + 2px);
	overflow: hidden;
	box-shadow: var(--tarmac-shadow-soft);
}

.tarmac-home-news__featured-kicker {
	margin: 0;
	padding: 1rem 1.25rem 0;
	font-family: var(--tarmac-header-el-font);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tarmac-primary);
}

.tarmac-home-news__featured-thumb {
	display: block;
	overflow: hidden;
}

.tarmac-home-news__featured-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.tarmac-home-news__featured-title {
	margin: 0;
	padding: 1rem 1.25rem 0.5rem;
	font-size: 1.35rem;
}

.tarmac-home-news__featured-title a {
	color: #fff;
	text-decoration: none;
}

.tarmac-home-news__featured-title a:hover {
	color: var(--tarmac-primary);
}

.tarmac-home-news__featured-excerpt {
	margin: 0;
	padding: 0 1.25rem;
	color: rgb(255 255 255 / 88%);
	font-size: 0.95rem;
}

.tarmac-home-news__featured-link {
	display: inline-block;
	margin: 1rem 1.25rem 1.35rem;
	font-weight: 600;
	color: var(--tarmac-primary);
	text-decoration: none;
}

.tarmac-home-news__featured-link:hover {
	color: #fff;
}

/* ---- FAQ ---- */

.tarmac-home-faq {
	background: #f8faf9;
}

.tarmac-home-faq__list {
	max-width: 860px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.tarmac-home-faq__item {
	background: #fff;
	border: 1px solid rgb(20 35 58 / 10%);
	border-radius: calc(var(--tarmac-radius) + 2px);
	box-shadow: 0 2px 12px rgb(20 35 58 / 4%);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tarmac-home-faq__item.is-open {
	border-color: rgb(190 208 36 / 45%);
	box-shadow: 0 6px 20px rgb(20 35 58 / 8%);
}

.tarmac-home-faq__question {
	margin: 0;
}

.tarmac-home-faq__trigger {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 1.15rem 1.25rem;
	border: none;
	border-left: 4px solid transparent;
	background: #fff;
	color: var(--tarmac-title-color);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tarmac-home-faq__label {
	flex: 1;
	color: inherit;
}

.tarmac-home-faq__trigger:hover {
	background: #f8faf9;
	color: var(--tarmac-title-color);
}

.tarmac-home-faq__trigger:focus {
	outline: none;
	color: var(--tarmac-title-color);
	background: #fff;
}

.tarmac-home-faq__trigger:focus-visible {
	outline: 2px solid var(--tarmac-primary);
	outline-offset: -2px;
	color: var(--tarmac-title-color);
	background: #fff;
}

.tarmac-home-faq__trigger:active {
	color: var(--tarmac-title-color);
	background: #f0f4f7;
}

.tarmac-home-faq__item.is-open .tarmac-home-faq__trigger {
	background: #f8faf9;
	border-left-color: var(--tarmac-primary);
	color: var(--tarmac-title-color);
}

.tarmac-home-faq__item.is-open .tarmac-home-faq__label {
	color: var(--tarmac-title-color);
}

.tarmac-home-faq__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-top: 0.1rem;
	border-radius: 50%;
	background: rgb(20 35 58 / 6%);
	position: relative;
	transition: background 0.2s ease, transform 0.2s ease;
}

.tarmac-home-faq__item.is-open .tarmac-home-faq__icon {
	background: var(--tarmac-primary);
}

.tarmac-home-faq__icon::before,
.tarmac-home-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 2px;
	background: var(--tarmac-alternative);
	border-radius: 1px;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.tarmac-home-faq__item.is-open .tarmac-home-faq__icon::before,
.tarmac-home-faq__item.is-open .tarmac-home-faq__icon::after {
	background: var(--tarmac-alternative);
}

.tarmac-home-faq__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.tarmac-home-faq__item.is-open .tarmac-home-faq__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
	opacity: 0;
}

.tarmac-home-faq__panel {
	padding: 0 1.25rem 1.25rem 1.5rem;
	border-top: 1px solid rgb(20 35 58 / 8%);
	background: #fff;
}

.tarmac-home-faq__answer {
	color: var(--tarmac-text-color);
	font-size: 0.95rem;
	line-height: 1.7;
}

.tarmac-home-faq__answer,
.tarmac-home-faq__answer p,
.tarmac-home-faq__answer li,
.tarmac-home-faq__answer a {
	color: var(--tarmac-text-color);
}

.tarmac-home-faq__answer a:hover,
.tarmac-home-faq__answer a:focus-visible {
	color: var(--tarmac-link-hover);
}

.tarmac-home-faq__answer p:first-child {
	margin-top: 0.85rem;
}

.tarmac-home-faq__answer p:last-child {
	margin-bottom: 0;
}

.tarmac-home-faq__placeholder {
	margin: 0.85rem 0 0;
	padding: 0;
	font-size: 0.9rem;
	font-style: italic;
	color: rgb(89 89 89 / 75%);
}

/* ---- Partenaires ---- */

.tarmac-home .tarmac-partners-carousel-section {
	background: #f8faf9;
}

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

@media (max-width: 1024px) {
	.tarmac-home-about__layout {
		grid-template-columns: 1fr;
	}

	.tarmac-home-about__aside {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: stretch;
	}

	.tarmac-home-about__highlight {
		flex: 1;
		min-width: 200px;
	}

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

	.tarmac-home-news__layout {
		grid-template-columns: 1fr;
	}

	.tarmac-home-news__featured {
		order: -1;
	}
}

@media (max-width: 640px) {
	.tarmac-home-hero {
		--tarmac-home-hero-min-height: clamp(420px, 78vh, 520px);
	}

	.tarmac-home-about__stats {
		grid-template-columns: 1fr;
	}

	.tarmac-home-about__aside {
		flex-direction: column;
	}

	.tarmac-home-team__grid {
		grid-template-columns: 1fr;
	}

	.tarmac-home-engagement__grid {
		grid-template-columns: 1fr;
	}

	.tarmac-home-section__header--row {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tarmac-home-hero__slide,
	.tarmac-home-engagement__card {
		transition: none;
	}
}
