/* V11 — rouge ESTH, noir et blanc, mouvement discret et photographies mises en valeur */
:root {
	--motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.history-background {
	background-image: linear-gradient(90deg, #090b10d4, #090b1048), url("../images/club-hero-restaure-1920.webp");
	background-position:
		center,
		center 38%;
}
.history-content {
	max-width: 840px;
}
.history-content h1 {
	text-wrap: balance;
}
/* Signature du pied de page */
.footer-word > span {
	font: 600 clamp(1rem, 2vw, 1.7rem)/1.25 var(--head);
	letter-spacing: 0.1em;
	color: #fff;
}
.site-footer .social-icon {
	width: 58px;
	height: 58px;
}
.site-footer .social-icon svg {
	width: 29px;
	height: 29px;
}
.footer-signature .site-credit,
.footer-signature .site-credit a,
.footer-signature .credit-link,
.footer-signature .site-credit a:hover,
.footer-signature .credit-link:hover {
	color: inherit;
	text-decoration: none;
}
.site-footer .social-icon:focus-visible,
.credit-link:focus-visible,
.carousel-arrow:focus-visible,
.carousel-viewport:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 5px;
}
/* Cadres : les bords disparaissent progressivement, sans teinte rose */
.label-card,
.function-card,
.stadium,
.ground-teaser {
	position: relative;
	border: 1px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, #d8212b, #18191c30 42%, #18191c08 80%) border-box;
}
.label-card {
	padding: 36px;
	height: 100%;
	box-shadow: 0 16px 45px #17191d06;
}
.label-card img {
	max-height: 155px;
	object-fit: contain;
}
.function-card {
	transition:
		border-color 0.25s,
		box-shadow 0.25s,
		transform 0.35s var(--motion-ease);
}
.ground-teaser {
	background:
		linear-gradient(#f3f3f0, #f3f3f0) padding-box,
		linear-gradient(135deg, #d8212b, #18191c15, transparent) border-box;
}
.timeline article {
	position: relative;
	border: 0;
	padding: 30px 0;
}
.timeline article:after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, #d8212b, #18191c25 40%, transparent);
}
.timeline article > div {
	min-width: 0;
}
.timeline strong {
	color: var(--red);
}
/* Aplats décalés, indépendants des dimensions de l’image */
.photo-accent {
	position: relative;
	isolation: isolate;
}
.photo-accent:before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 16px -12px -12px 18%;
	background: var(--red);
	transition: transform 0.65s var(--motion-ease);
	pointer-events: none;
}
.photo-accent > img {
	position: relative;
	display: block;
}
.team-cover.photo-accent:before {
	bottom: 30px;
	right: -10px;
}
.team-cover.photo-accent {
	margin-right: 12px;
}
.story-image.photo-accent {
	overflow: visible;
	margin-right: 12px;
}
.story-offset .photo-accent:before {
	background: #18191c;
	inset: 18px -12px -12px 20%;
}
.stadium-photo.photo-accent:before {
	bottom: 35px;
}
.stage-promo .photo-accent {
	margin: 0 14px 14px 0;
}
.stage-promo .photo-accent img {
	width: 100%;
	height: auto;
}
/* Cartes valeurs : grandes initiales ESTH et fins contours */
.club-shared-values {
	position: relative;
	overflow: hidden;
}
.club-shared-values .value {
	position: relative;
	min-height: 255px;
	padding: 32px 24px;
	border: 1px solid transparent;
	background:
		linear-gradient(#1b1d20, #1b1d20) padding-box,
		linear-gradient(140deg, #fff8, #fff1 50%, #fff0) border-box;
	overflow: hidden;
	height: 100%;
}
.club-shared-values .value:before {
	content: "";
	position: absolute;
	left: 24px;
	bottom: 26px;
	width: 38px;
	height: 4px;
	background: var(--red);
	transition: width 0.4s var(--motion-ease);
}
.club-shared-values .value:after {
	content: attr(data-initial);
	position: absolute;
	right: 12px;
	bottom: -22px;
	font: 700 10rem/1 var(--head);
	color: #ffffff06;
	pointer-events: none;
}
.club-shared-values .value > span {
	display: block;
	color: #fff;
	font: 600 0.8rem Inter;
	margin-bottom: 55px;
}
.club-shared-values .value h3 {
	font-size: clamp(1.8rem, 2.7vw, 2.5rem);
	position: relative;
	z-index: 1;
}
/* Embla — disposition statique complète tant que le JS n’est pas disponible */
.esth-carousel {
	--slide-gap: 24px;
	position: relative;
}
.carousel-controls[hidden] {
	display: none;
}
.carousel-ready .carousel-viewport {
	overflow: hidden;
}
.carousel-ready .carousel-track {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--slide-gap);
	margin: 0;
	touch-action: pan-y pinch-zoom;
}
.carousel-ready .carousel-slide {
	flex: 0 0 calc((100% - var(--slide-gap) * 2) / 3);
	min-width: 0;
	margin: 0;
	padding: 0;
}
.carousel-ready .carousel-slide img {
	user-select: none;
	-webkit-user-drag: none;
}
.carousel-ready .carousel-viewport {
	cursor: grab;
}
.carousel-ready .carousel-viewport:active {
	cursor: grabbing;
}
.carousel-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 26px;
}
.carousel-position {
	font: 600 0.72rem Inter;
	letter-spacing: 0.12em;
}
.carousel-buttons {
	display: flex;
	gap: 10px;
}
.carousel-arrow {
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 1.4rem;
	transition:
		background 0.25s,
		color 0.25s,
		transform 0.25s;
}
.carousel-arrow:disabled {
	opacity: 0.25;
	cursor: default;
}
.carousel-arrow:not(:disabled):hover {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}
.carousel-values .carousel-slide {
	flex-basis: calc((100% - var(--slide-gap) * 3) / 4);
}
.carousel-logos .carousel-slide {
	flex-basis: calc((100% - var(--slide-gap) * 3) / 4);
	padding: 18px 10px;
}
.carousel-logos .carousel-controls {
	max-width: 320px;
	margin: 20px auto 0;
}
.carousel-logos .partner-logos a {
	border: 0;
}
.carousel-squads .squad-card {
	height: 100%;
}
.carousel-gallery .carousel-slide {
	padding-bottom: 4px;
}
.carousel-gallery .photo-grid {
	grid-template-columns: none;
}
.carousel-gallery figure a {
	overflow: hidden;
	display: block;
}
.carousel-gallery figure img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	transition: transform 0.6s var(--motion-ease);
}
.carousel-gallery figcaption {
	line-height: 1.6;
	padding-top: 14px;
	border-top: 1px solid #18191c15;
	margin-top: 12px;
}
/* Les contenus ne sont animés que lorsque le script les observe */
.reveal-item {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity 0.7s var(--motion-ease),
		transform 0.85s var(--motion-ease);
}
.reveal-item.is-visible {
	opacity: 1;
	transform: none;
}
.btn-club {
	transition:
		background-color 0.25s,
		color 0.25s,
		transform 0.25s,
		box-shadow 0.25s;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.btn-club:hover {
		transform: translateY(-3px);
		box-shadow: 0 10px 22px #0002;
	}
	.label-card,
	.stadium,
	.ground-teaser {
		transition:
			transform 0.5s var(--motion-ease),
			box-shadow 0.5s;
	}
	.label-card:hover,
	.stadium:hover,
	.ground-teaser:hover,
	.function-card:hover {
		transform: translateY(-5px);
		box-shadow: 0 18px 45px #17191d0d;
	}
	.photo-accent:hover:before {
		transform: translate(3px, 3px);
	}
	.club-shared-values .value:hover:before {
		width: calc(100% - 48px);
	}
	.carousel-gallery figure a:hover img {
		transform: scale(1.035);
	}
	.site-footer .social-icon:hover {
		background: #fff;
		color: #17191d;
	}
}
@media (prefers-reduced-motion: no-preference) {
	.hero-content h1,
	.history-content h1,
	.partners-hero-content h1 {
		animation: hero-arrive 0.9s var(--motion-ease) both;
	}
	@keyframes hero-arrive {
		from {
			opacity: 0;
			transform: translateY(18px);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}
@media (max-width: 991px) {
	.carousel-ready .carousel-slide {
		flex-basis: calc((100% - var(--slide-gap)) / 2);
	}
	.carousel-values .carousel-slide {
		flex-basis: calc((100% - var(--slide-gap)) / 2);
	}
	.carousel-logos .carousel-slide {
		flex-basis: calc((100% - var(--slide-gap) * 2) / 3);
	}
}
@media (max-width: 767px) {
	.footer-word > span {
		font-size: 1.15rem;
		line-height: 1.3;
		letter-spacing: 0.06em;
	}
	.site-footer .social-icon {
		width: 54px;
		height: 54px;
	}
	.site-footer .social-icon svg {
		width: 28px;
		height: 28px;
	}
	.esth-carousel {
		--slide-gap: 18px;
	}
	.carousel-ready .carousel-slide {
		flex-basis: 87%;
	}
	.carousel-logos .carousel-slide {
		flex-basis: calc((100% - var(--slide-gap)) / 2);
	}
	.carousel-values .carousel-slide {
		flex-basis: 83%;
	}
	.club-shared-values .value {
		min-height: 235px;
	}
	.photo-accent:before {
		right: -8px;
		bottom: -8px;
	}
	.label-card {
		padding: 26px;
	}
	.history-background {
		background-position:
			center,
			55% center;
	}
	.carousel-controls {
		margin-top: 20px;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.reveal-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.btn-club,
	.photo-accent:before,
	.carousel-gallery figure img,
	.function-card,
	.carousel-arrow {
		transition: none;
	}
}
@media print {
	.reveal-item {
		opacity: 1;
		transform: none;
	}
	.carousel-ready .carousel-track {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		transform: none !important;
	}
	.carousel-controls {
		display: none;
	}
}
