/* Accordéon horizontal — Nos domaines d'intervention (Figma Slider-domaines) */

.alpa-domaines {
	--alpa-domaines-green: #c0cf8c;
	--alpa-domaines-cyan: #59cbe8;
	--alpa-domaines-dark: #1d1d1b;
	--alpa-domaines-card-w: 282px;
	--alpa-domaines-card-active-w: 384px;
	--alpa-domaines-gap: 24px;
	--alpa-domaines-card-h: 410px;
	--alpa-domaines-left-inset: 20px;
	position: relative;
	width: 100%;
	margin-top: 64px;
}

.alpa-domaines__header {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	margin-bottom: 44px;
}

.alpa-domaines__title {
	margin: 0;
	color: var(--alpa-domaines-green);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.alpa-domaines__nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-shrink: 0;
}

.alpa-domaines__nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 60px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.alpa-domaines__nav-btn img,
.alpa-domaines__nav-btn svg {
	display: block;
	width: 72px;
	height: 60px;
}

.alpa-domaines__nav-btn:hover:not(:disabled) {
	opacity: 0.75;
}

.alpa-domaines__nav-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.alpa-domaines__nav-btn:not(:disabled) {
	cursor: pointer;
}

.alpa-domaines__viewport {
	overflow: hidden;
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	padding-right: 0;
	min-height: var(--alpa-domaines-card-h);
}

/* Décalage des ancres de la page "Notre expertise"
 * pour compenser le header sticky (~60px).
 */
#strategies-territoriales-et-touristiques,
#etudes-de-marche,
#etudes-opportunite-et-faisabilite,
#strategie-itinerance-pleine-nature,
#organisation-competence-tourisme,
#audit-destination-excellence {
	scroll-margin-top: 120px;
}

.alpa-domaines__track {
	display: flex;
	align-items: stretch;
	gap: var(--alpa-domaines-gap);
	padding-left: var(--alpa-domaines-left-inset);
	padding-right: var(--alpa-domaines-left-inset);
	will-change: transform;
}

.alpa-domaine-card[data-clone] {
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.alpa-domaines__track {
		transition: none !important;
	}

	.alpa-domaine-card {
		transition: none !important;
	}
}

.alpa-domaine-card {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 0 0 var(--alpa-domaines-card-w);
	width: var(--alpa-domaines-card-w);
	min-height: var(--alpa-domaines-card-h);
	padding: 0 32px 32px;
	border: 1px solid var(--alpa-domaines-cyan);
	border-radius: 16px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	overflow: hidden;
	box-sizing: border-box;
	transition:
		flex-basis 0.45s ease,
		width 0.45s ease,
		background-color 0.3s ease,
		color 0.3s ease;
}

.alpa-domaine-card.is-active {
	flex-basis: var(--alpa-domaines-card-active-w);
	width: var(--alpa-domaines-card-active-w);
	min-height: var(--alpa-domaines-card-h);
	background-color: var(--alpa-domaines-cyan);
	color: var(--alpa-domaines-dark);
	border-color: var(--alpa-domaines-cyan);
}

.alpa-domaine-card__pattern {
	position: absolute;
	inset: -1% -3% -11% 8%;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.alpa-domaine-card.is-active .alpa-domaine-card__pattern {
	opacity: 1;
}

.alpa-domaine-card__pattern img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.alpa-domaine-card__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 100%;
	padding-top: 20px;
}

.alpa-domaine-card:not(.is-active) .alpa-domaine-card__body {
	padding-top: 96px;
	padding-bottom: 0;
}

.alpa-domaine-card__num {
	margin: 0 0 24px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
}

.alpa-domaine-card__title {
	margin: 0;
	font-size: 27px;
	font-weight: 700;
	line-height: 1.2;
}

.alpa-domaine-card__extra {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: 1 1 auto;
	gap: 16px;
	margin-top: auto;
	padding-top: 32px;
	width: 100%;
}

.alpa-domaine-card:not(.is-active) .alpa-domaine-card__sub,
.alpa-domaine-card:not(.is-active) .alpa-domaine-card__cta-label {
	display: none;
}

.alpa-domaine-card:not(.is-active) .alpa-domaine-card__cta {
	justify-content: center;
	width: auto;
	min-height: auto;
	align-self: center;
	gap: 0;
}

.alpa-domaine-card__sub {
	margin: 0;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.6;
}

.alpa-domaine-card__cta {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	width: 100%;
	min-height: 60px;
	border-radius: 16px;
	background: transparent;
	color: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s ease;
	box-sizing: border-box;
	pointer-events: auto;
}

.alpa-domaine-card__cta:hover,
.alpa-domaine-card__cta:focus {
	color: inherit;
	opacity: 0.85;
}

.alpa-domaine-card__cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 57px;
	height: 40.5px;
	flex-shrink: 0;
}

.alpa-domaine-card__cta-icon img,
.alpa-domaine-card__cta-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

@media (max-width: 767px) {
	.alpa-domaines {
		margin-top: 40px;
	}

	.alpa-domaines__header {
		flex-wrap: wrap;
		margin-bottom: 32px;
	}

	.alpa-domaines__title {
		white-space: normal;
	}

	.alpa-domaines {
		--alpa-domaines-card-w: min(85vw, 282px);
		--alpa-domaines-card-active-w: min(92vw, 384px);
	}

	.alpa-domaines__track {
		padding-left: var(--alpa-domaines-left-inset);
	}
}
