/* ==========================================================================
   Site4 — page d'accueil
   Cotes reprises de la maquette Figma (frame 43:565, desktop 1440 px).
   ========================================================================== */

/* Contenu centré dans les grandes boîtes */
.presentation__inner,
.activities__inner,
.projects__inner,
.news__inner {
	margin-inline: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	width: min(1372.5px, 100% - 2 * 33.75px);
	height: 683.25px;
	margin: 26.85px auto 0;
	padding-left: 75.25px;
	overflow: hidden;
	border-radius: 11.25px;
	color: #fff;
}

.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Slider : seule l'image active est visible (fondu enchaîné, voir main.js) */
.hero__bg:not(.is-active) {
	opacity: 0;
}

.hero::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.73) 0.747%, rgba(0, 0, 0, 0.18) 68.467%, rgba(102, 102, 102, 0) 98.195%);
}

.hero__content {
	position: relative;
	z-index: 2;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 3.75px 11.25px;
	border: 0.3px solid #c0c0c0;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(12.55px);
	backdrop-filter: blur(12.55px);
	font-size: 12px;
	line-height: 18px;
	letter-spacing: -0.12px;
	white-space: nowrap;
}

.hero__title {
	margin-top: 22.5px;
	font-size: 51px;
	font-weight: 700;
	line-height: 56.1px;
	text-transform: capitalize;
	white-space: nowrap;
}

.hero__text {
	margin-top: 14.3px;
	font-size: 16px;
	line-height: 18px;
	letter-spacing: -0.12px;
}

.hero .btn {
	min-width: 170.39px;
	margin-top: 41px;
}

/* ==========================================================================
   Présentation
   ========================================================================== */

.presentation {
	width: var(--box);
	margin: 0 auto;
	padding: 90px 0 137.5px;
	border-radius: var(--radius);
	background: #fff;
}

.presentation__inner {
	display: grid;
	grid-template-columns: 474.94px 472.5px;
	justify-content: space-between;
	width: min(982.5px, 100% - 2 * var(--inner-gutter));
}

.presentation__img {
	width: 474.94px;
	height: 475px;
	object-fit: cover;
}

.presentation__since {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 37px;
	font-size: 21px;
	font-weight: 600;
	line-height: 25.2px;
	letter-spacing: -0.84px;
	color: var(--ink);
}

.presentation__since img {
	width: 25.28px;
	height: 25.28px;
	margin: -0.64px;
}

.presentation__text {
	max-width: 472.5px;
	margin-top: 23.25px;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: -0.12px;
	color: var(--ink-80);
}

/* Dans la maquette le libellé (86 px) déborde de son cadre (79 px) : on reproduit l'encombrement réel */
.presentation .btn {
	justify-content: space-between;
	width: 136.06px;
	margin-top: 37.5px;
	padding: 7.5px 5.78px 7.5px 15.78px;
}

.presentation__content {
	padding-top: 33px;
}

.presentation__title {
	max-width: 448px;
	margin-top: 18.48px;
}

.stats {
	display: grid;
	grid-template-columns: repeat(2, 228.75px);
	gap: 15px;
	align-items: start;
	margin-top: 41.25px;
}

.stat {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 30px;
	height: 219.3px;
	padding: 22.5px;
	overflow: hidden;
	border-radius: var(--radius);
}

.stat__icon {
	display: flex;
	align-items: flex-start;
	height: 48.75px;
}

.stat__body {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.stat__value {
	font-size: 39px;
	font-weight: 700;
	line-height: 46.8px;
	letter-spacing: -1.17px;
}

.stat__label {
	padding-top: 15px;
	border-top: 0.75px solid var(--line);
	font-size: 12px;
	line-height: 18px;
	letter-spacing: -0.12px;
}

.stat--light {
	background: var(--grey-bg);
}

.stat--light .stat__value {
	color: var(--navy);
}

.stat--light .stat__label {
	color: #555e62;
}

.stat--blue,
.stat--navy {
	color: #fff;
}

.stat--blue {
	background: var(--blue-deep);
}

.stat--navy {
	background: var(--navy);
}

.stat--blue .stat__label,
.stat--navy .stat__label {
	border-top-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Nos activités
   ========================================================================== */

.activities {
	width: min(1365px, 100% - 2 * 37.5px);
	margin: 0 auto;
	padding: 90px 0;
	border-radius: var(--radius);
	background: var(--grey-bg);
}

.activities__inner {
	width: min(990px, 100% - 2 * var(--inner-gutter));
}

.activities__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.activities__title {
	width: 544.5px;
	margin-top: -0.75px;
}

.activities__track {
	display: flex;
	gap: 18px;
	/* Marges intérieures compensées : laissent la place à l'élévation et à l'ombre des cartes au survol,
	   que le défilement horizontal rognerait sinon. */
	margin: calc(81px - 16px) 0 -24px;
	padding: 16px 0 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	cursor: grab;
}

.activities__track::-webkit-scrollbar {
	display: none;
}

.activities__track.is-dragging {
	scroll-snap-type: none;
	cursor: grabbing;
	user-select: none;
}

.activity {
	position: relative;
	flex: none;
	width: 315px;
	height: 431.25px;
	padding: 86.11px 18.75px 11.25px;
	background: url("../img/home/activity-card.png") center / 100% 100% no-repeat;
	scroll-snap-align: start;
}

.activity__arrow {
	position: absolute;
	top: 0;
	left: 50%;
	display: grid;
	place-items: center;
	width: 51px;
	height: 51px;
	border-radius: 27.75px;
	background: #2b2e31;
	transform: translateX(-50%);
	transition: background-color 0.2s;
}

.activity__arrow--green {
	background: #275129;
}

.activity__arrow--navy {
	background: var(--navy);
}

.activity__arrow:hover {
	background: var(--blue-deep);
}

.activity__arrow img,
.project__link img {
	width: 21.5px;
	height: 21.5px;
	transform: rotate(-136.32deg);
}

.activity__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22.5px;
	height: 108.89px;
	padding: 0 7.5px;
	text-align: center;
}

.activity__title {
	font-size: 21px;
	font-weight: 600;
	line-height: 25.2px;
	letter-spacing: -0.84px;
	color: var(--navy);
}

.activity__desc {
	font-size: 12px;
	line-height: 18px;
	letter-spacing: -0.12px;
	color: var(--ink-80);
}

.activity__img {
	width: 276.75px;
	height: 202.5px;
	margin: 22.5px 0 0 0.375px;
	overflow: hidden;
	border-radius: 11.25px;
	pointer-events: none;
}

.activities__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: min(980px, 100%);
	min-height: 49px;
	margin-top: 26.25px;
	padding: 0 19px;
	border-radius: 11.25px;
	background: #fff;
}

.activities__bar p {
	display: flex;
	align-items: center;
	gap: 3.75px;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: -0.12px;
	color: var(--ink-80);
}

.activities__bar p img {
	width: 18.75px;
	height: 18.75px;
	flex: none;
}

.activities__bar a {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	font-family: "Manrope", var(--font);
	font-size: 10.985px;
	font-weight: 600;
	line-height: 16.48px;
	color: var(--blue);
}

.activities__bar a img {
	width: 11px;
	height: 9.79px;
	transform: rotate(-90deg);
}

.activities__bar a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Vidéo
   ========================================================================== */

.video {
	position: relative;
	width: var(--box);
	margin: 122.34px auto 0;
}

.video__img {
	width: 100%;
	height: 562.5px;
	border-radius: 15px 15px 0 0;
	object-fit: cover;
}

.video__badge {
	position: absolute;
	top: -54.9px;
	left: 50%;
	display: grid;
	place-items: center;
	width: 154.8px;
	height: 154.8px;
	border-radius: 50%;
	background: #fff;
	transform: translateX(-50%);
}

.video__disc {
	position: relative;
	width: 134.4px;
	height: 134.4px;
	border-radius: 50%;
	background: var(--blue-deep);
}

/* Anneau de texte : boîte de 99.6 px à 17.4 px du bord, le SVG déborde de cette boîte */
.video__ring {
	position: absolute;
	top: 10.52px;
	left: 8.33px;
	width: 115.625px;
	height: 115.462px;
	max-width: none;
}

.video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 44.4px;
	height: 44.4px;
	border-radius: 50%;
	background: #fff;
	transform: translate(-50%, -50%);
	transition: transform 0.2s;
}

.video__play:hover {
	transform: translate(-50%, -50%) scale(1.08);
}

.video__play img {
	width: 15.6px;
	height: 15.6px;
}

/* ==========================================================================
   Projets
   ========================================================================== */

.projects {
	width: var(--box);
	margin: 55.5px auto 0;
	padding: 43.5px 0 87px;
	border-radius: 0 0 var(--radius) var(--radius);
	background: var(--grey-bg);
}

.projects__inner {
	width: min(982.5px, 100% - 2 * var(--inner-gutter));
}

.projects__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.projects__head .tag {
	height: 23.25px;
}

.projects__title {
	margin-top: 17.25px;
}

.btn-all {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	flex: none;
	padding: 12px 16px 12px 26px;
	border-radius: var(--pill);
	background: var(--blue-deep);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 21px;
	white-space: nowrap;
	transition: background-color 0.2s;
}

.btn-all:hover {
	background: var(--navy);
}

.btn-all__circle {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 15px;
	background: rgba(255, 255, 255, 0.15);
}

.btn-all__circle img {
	width: 14.67px;
	height: 16.5px;
	transform: rotate(-136.32deg);
}

.projects__list {
	display: flex;
	flex-direction: column;
	gap: 18.75px;
	margin-top: 72px;
}

.project {
	display: flex;
	gap: 22.5px;
	height: 379.8px;
}

.project--reverse {
	flex-direction: row-reverse;
}

.project__card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 26.25px;
	flex: none;
	width: 570px;
	padding: 37.5px;
	border-radius: 18px;
	background: #fff;
}

.project__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 30px;
}

.project__top > img {
	width: 116px;
	height: 35.35px;
}

.project__link {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: var(--pill);
	background: var(--blue-deep);
	transition: background-color 0.2s;
}

.project__link:hover {
	background: var(--navy);
}

.project__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 75px;
	/* 221.55 px de contenu + le séparateur et son espacement au-dessus */
	height: calc(221.55px + 26.25px + 0.75px);
	padding-top: 26.25px;
	border-top: 0.75px solid var(--line);
}

.project__title {
	max-width: 300px;
	font-size: 27px;
	font-weight: 500;
	line-height: 32.4px;
	letter-spacing: -0.54px;
	color: var(--ink);
}

.project__desc {
	max-width: 375px;
	margin-top: 22.5px;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: -0.12px;
	color: var(--ink-80);
}

.project__body .tag {
	align-self: flex-start;
}

.project__img {
	flex: 1;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	border-radius: var(--radius);
}

/* ==========================================================================
   Actualités
   ========================================================================== */

.news {
	padding: 75.16px 0;
}

.news__inner {
	width: min(970px, 100% - 2 * (var(--gutter) + var(--inner-gutter)));
}

.news__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.news__title {
	padding-top: 15px;
	color: var(--ink-2);
}

.news__title span {
	color: var(--blue-deep);
}

.news__intro {
	padding-top: 12px;
	font-size: 12px;
	line-height: 21.6px;
	color: var(--muted);
}

.btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	flex: none;
	min-height: 53px;
	padding: 12px 18px;
	border: 1px solid #cbd6ea;
	border-radius: 40px;
	color: var(--blue-deep);
	font-size: 11px;
	font-weight: 500;
	line-height: 16.5px;
	transition: background-color 0.2s;
}

.btn-outline:hover {
	background: #eef2fa;
}

.news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 38px;
}

.news-card {
	overflow: hidden;
	border: 1px solid #e3e8ef;
	border-radius: var(--radius);
	background: #fff;
}

.news-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.news-card__media {
	position: relative;
	height: 234px;
	overflow: hidden;
	background: #e1e6eb;
}

.news-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.news-card__link:hover .news-card__media img {
	transform: scale(1.04);
}

.news-card__chip {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 7px 11px;
	border-radius: 30px;
	background: #fff;
	color: var(--blue-deep);
	font-size: 10px;
	font-weight: 500;
	line-height: 15px;
}

.news-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 23px 22px 18px;
}

.news-card__meta {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 8px;
	line-height: 12px;
	color: #687386;
}

.news-card__date {
	font-size: 9px;
	font-weight: 600;
	line-height: 13.5px;
	letter-spacing: 0.6px;
	color: var(--blue-deep);
}

.news-card__sep {
	width: 12px;
	height: 1px;
	background: #cbd3df;
}

.news-card__title {
	padding-top: 15px;
	font-size: 19.5px;
	font-weight: 600;
	line-height: 25px;
	letter-spacing: -0.45px;
	color: var(--ink-2);
}

.news-card__text {
	padding: 12px 0 24px;
	font-size: 11px;
	line-height: 19.8px;
	color: var(--muted);
}

.news-card__more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid #e8ecf2;
	color: var(--blue-deep);
	font-size: 10px;
	font-weight: 500;
	line-height: 15px;
}

.news-card__arrow {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 15px;
	background: #eef2fa;
	transition: background-color 0.2s, color 0.2s;
}

.news-card__link:hover .news-card__arrow {
	background: var(--blue-deep);
	color: #fff;
}

/* ==========================================================================
   Nous suivre
   ========================================================================== */

.follow {
	width: min(1366px, 100% - 2 * 33px);
	margin: 56.6px auto 0;
	padding: 75.91px 40.49px;
	border-radius: 15.18px 15.18px 0 0;
	background: var(--grey-bg);
}

.follow__inner {
	display: grid;
	grid-template-columns: 397.75px 508.25px;
	justify-content: center;
	align-items: center;
	gap: 64px;
}

.follow__title {
	padding-top: 16px;
	font-size: 36px;
	font-weight: 700;
	line-height: 45px;
	letter-spacing: -1.1px;
	color: var(--ink-2);
}

.follow__lead {
	padding-top: 20px;
	font-size: 21px;
	line-height: 31.5px;
	letter-spacing: -0.4px;
	color: #172b4c;
}

.follow__text {
	max-width: 320px;
	padding-top: 14px;
	font-size: 12px;
	line-height: 22.8px;
	color: var(--muted);
}

.follow__list {
	display: grid;
	gap: 12px;
}

.social-card {
	display: grid;
	grid-template-columns: 48px 1fr 32px;
	align-items: center;
	gap: 18px;
	padding: 22px;
	border: 1px solid #e4e6eb;
	border-radius: var(--radius);
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.social-card:hover {
	border-color: #cbd6ea;
	box-shadow: 0 8px 24px rgba(14, 47, 62, 0.06);
}

.social-card__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: var(--radius);
	background: #eef2fa;
}

.social-card__icon img {
	width: 21px;
	height: 21px;
}

.social-card__text {
	display: flex;
	flex-direction: column;
}

.social-card__name {
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--ink-2);
}

.social-card__desc {
	padding-top: 5px;
	font-size: 12px;
	line-height: 21.6px;
	color: var(--muted);
}

.social-card__arrow {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	color: var(--blue-deep);
}

/* ==========================================================================
   Tablette (< 1200 px)
   ========================================================================== */

@media (max-width: 1199px) {
	.hero {
		width: var(--box);
		padding-left: 56px;
	}

	.hero__title {
		font-size: 44px;
		line-height: 50px;
	}

	.presentation__inner {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}

	.presentation__img {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}

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

	.activities {
		width: var(--box);
	}

	.activities__title {
		width: auto;
		max-width: 544.5px;
	}

	/* 3 cartes visibles, qui se partagent la largeur disponible */
	.activity {
		width: calc((100% - 2 * 18px) / 3);
	}

	.activity__img {
		width: 100%;
		margin-left: 0;
	}

	.project__card {
		flex: 1 1 58%;
		width: auto;
		min-width: 0;
	}

	.project__img {
		flex: 1 1 42%;
	}

	.follow {
		width: calc(100% - 2 * var(--gutter));
	}

	.follow__inner {
		grid-template-columns: 1fr 1.25fr;
		gap: 48px;
	}
}

/* ==========================================================================
   Petite tablette (< 1024 px)
   ========================================================================== */

@media (max-width: 1023px) {
	.hero {
		height: 600px;
		padding: 0 40px;
	}

	.hero__title {
		font-size: 40px;
		line-height: 46px;
	}

	.presentation {
		padding: 64px 0 80px;
	}

	.presentation__inner {
		grid-template-columns: 1fr;
		gap: 56px;
	}

	.presentation__media {
		max-width: 520px;
	}

	.presentation__content {
		padding-top: 0;
	}

	.presentation__title {
		max-width: 560px;
	}

	.stats {
		max-width: 560px;
	}

	.activities {
		padding: 64px 0;
	}

	.activities__head {
		flex-direction: column;
		gap: 16px;
	}

	.activities__track {
		margin-top: calc(48px - 16px);
	}

	.video {
		margin-top: 96px;
	}

	.video__img {
		height: 440px;
	}

	.project,
	.project--reverse {
		flex-direction: column;
		height: auto;
	}

	.project__card {
		flex: none;
	}

	.project__img {
		flex: none;
		width: 100%;
		height: 340px;
	}

	/* 2 cartes et demie visibles : la suivante se devine au défilement */
	.activity {
		width: 300px;
	}

	.news {
		padding: 64px 0;
	}

	/* Les 3 cartes défilent horizontalement */
	.news__grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(280px, 45%);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	.news__grid::-webkit-scrollbar {
		display: none;
	}

	.news-card {
		scroll-snap-align: start;
	}

	.follow {
		margin-top: 32px;
		padding: 64px 40px;
	}

	.follow__inner {
		grid-template-columns: 1fr;
		gap: 40px;
		max-width: 620px;
		margin: 0 auto;
	}
}

/* ==========================================================================
   Mobile (< 768 px)
   ========================================================================== */

@media (max-width: 767px) {
	.hero {
		height: auto;
		min-height: 540px;
		margin-top: 16px;
		padding: 48px 20px;
	}

	.hero::before {
		background: linear-gradient(90deg, rgba(0, 0, 0, 0.73) 0%, rgba(0, 0, 0, 0.35) 100%);
	}

	.hero__badge {
		height: auto;
		font-size: 11px;
		white-space: normal;
	}

	.hero__title {
		font-size: 32px;
		line-height: 38px;
		white-space: normal;
	}

	.hero__text {
		font-size: 15px;
		line-height: 21px;
	}

	.hero .btn {
		margin-top: 32px;
	}

	.presentation {
		padding: 48px 0 56px;
	}

	.presentation__since {
		margin-top: 28px;
	}

	/* Cartes d'une même rangée : même hauteur ; chiffre et trait alignés quelle que soit la longueur du libellé */
	.stats {
		gap: 10px;
		align-items: stretch;
		margin-top: 32px;
	}

	.stat {
		justify-content: flex-start;
		gap: 20px;
		height: auto;
		min-height: 190px;
		padding: 16px;
	}

	.stat__icon {
		height: 40px;
	}

	.stat__icon img {
		max-height: 40px;
		width: auto;
	}

	.stat__value {
		font-size: 30px;
		line-height: 36px;
	}

	.stat__label {
		padding-top: 10px;
		font-size: 11px;
		line-height: 16px;
	}

	.stat__body {
		gap: 10px;
	}

	.activities {
		padding: 48px 0;
	}

	.activities__track {
		margin-top: calc(40px - 16px);
	}

	.activity {
		width: min(315px, 82vw);
	}

	.activity__img {
		width: 100%;
		margin-left: 0;
	}

	.activities__bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 14px 16px;
	}

	.activities__bar p {
		align-items: flex-start;
	}

	.video {
		margin-top: 80px;
	}

	.video__img {
		height: 280px;
	}

	.video__badge {
		top: -40px;
		transform: translateX(-50%) scale(0.75);
		transform-origin: top center;
	}

	.projects {
		margin-top: 32px;
		padding: 40px 0 48px;
	}

	.projects__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.projects__list {
		margin-top: 40px;
	}

	.project__card {
		padding: 24px;
	}

	.project__body {
		gap: 32px;
		height: auto;
		padding-top: 20px;
	}

	.project__card {
		gap: 20px;
	}

	.project__title {
		max-width: none;
		font-size: 22px;
		line-height: 28px;
	}

	.project__desc {
		max-width: none;
		margin-top: 14px;
	}

	.project__img {
		height: 260px;
	}

	.news {
		padding: 48px 0;
	}

	.news__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.news__grid {
		grid-auto-flow: row;
		grid-template-columns: 1fr;
		grid-auto-columns: auto;
		overflow: visible;
		margin-top: 32px;
	}

	.follow {
		padding: 48px 20px;
	}

	.follow__title {
		font-size: 30px;
		line-height: 36px;
	}

	.follow__lead {
		font-size: 18px;
		line-height: 27px;
	}

	.social-card {
		grid-template-columns: 44px 1fr 24px;
		gap: 14px;
		padding: 16px;
	}

	.social-card__icon {
		width: 44px;
		height: 44px;
	}
}

/* ==========================================================================
   Animations de l'accueil
   (apparition au défilement et boutons communs : voir main.css)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

	/* Hero : entrée au chargement, sans attendre le JavaScript */
	.hero__bg:first-of-type {
		animation: site4-zoom-out 1.8s var(--ease-out) backwards;
	}

	/* Slider : fondu enchaîné ; l'image qui arrive se resserre lentement (effet « Ken Burns ») */
	.hero__bg {
		transition: opacity 1.4s ease-in-out, transform 7s var(--ease-out);
	}

	.hero__bg:not(.is-active) {
		transform: scale(1.06);
		transition: opacity 1.4s ease-in-out, transform 0s 1.4s;
	}

	.hero__badge,
	.hero__title,
	.hero__text,
	.hero .btn {
		animation: site4-rise 0.9s var(--ease-out) both;
	}

	.hero__badge {
		animation-delay: 0.15s;
	}

	.hero__title {
		animation-delay: 0.28s;
	}

	.hero__text {
		animation-delay: 0.42s;
	}

	.hero .btn {
		animation-delay: 0.56s;
	}

	/* Chiffres clés */
	.stat {
		transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
	}

	.stat:hover {
		transform: translateY(-4px);
		box-shadow: 0 14px 30px rgba(14, 47, 62, 0.1);
	}

	.stat__icon img {
		transition: transform 0.4s var(--ease-out);
	}

	.stat:hover .stat__icon img {
		transform: scale(1.08);
	}

	/* Activités : la carte se soulève (l'ombre suit la découpe de la carte), l'image zoome */
	.activity {
		transition: transform 0.45s var(--ease-out), filter 0.45s;
	}

	.activity:hover {
		filter: drop-shadow(0 14px 22px rgba(14, 47, 62, 0.1));
		transform: translateY(-6px);
	}

	.activity__img img,
	.project__img img {
		transition: transform 0.8s var(--ease-out);
	}

	.activity:hover .activity__img img,
	.project:hover .project__img img {
		transform: scale(1.06);
	}

	.activity__arrow {
		transition: background-color 0.3s, transform 0.4s var(--ease-out);
	}

	.activity:hover .activity__arrow {
		transform: translateX(-50%) scale(1.06);
	}

	/* Glissement fluide du carrousel (défilement automatique et clavier) */
	.activities__track {
		scroll-behavior: smooth;
	}

	.activities__track.is-dragging {
		scroll-behavior: auto;
	}

	.activities__bar a img {
		transition: transform 0.3s var(--ease-out);
	}

	.activities__bar a:hover img {
		transform: rotate(-90deg) translateY(3px);
	}

	/* Vidéo : le texte circulaire tourne lentement, le bouton de lecture « respire » */
	.video__ring {
		transform-origin: 58.87px 56.68px; /* centre du disque bleu */
		animation: site4-spin 24s linear infinite;
	}

	.video__badge:hover .video__ring {
		animation-duration: 8s;
	}

	.video__play::before {
		content: "";
		position: absolute;
		inset: 0;
		border-radius: 50%;
		background: #fff;
		animation: site4-pulse 2.4s var(--ease-out) infinite;
		z-index: -1;
	}

	/* Projets */
	.project__card {
		transition: box-shadow 0.4s;
	}

	.project:hover .project__card {
		box-shadow: 0 16px 36px rgba(14, 47, 62, 0.08);
	}

	.project__link,
	.btn-all__circle img {
		transition: background-color 0.3s, transform 0.35s var(--ease-out);
	}

	.project:hover .project__link {
		transform: scale(1.1);
	}

	.btn-all {
		transition: background-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
	}

	.btn-all:hover {
		transform: translateY(-2px);
		box-shadow: 0 10px 24px rgba(0, 48, 151, 0.22);
	}

	.btn-all:hover .btn-all__circle img {
		transform: translate(2px, -2px) rotate(-136.32deg);
	}

	/* Actualités */
	.news-card {
		transition: transform 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.3s;
	}

	.news-card:hover {
		border-color: #cbd6ea;
		box-shadow: 0 18px 40px rgba(14, 47, 62, 0.1);
		transform: translateY(-6px);
	}

	.news-card__media img {
		transition: transform 0.8s var(--ease-out);
	}

	.news-card__link:hover .news-card__media img {
		transform: scale(1.06);
	}

	.btn-outline .icon,
	.news-card__arrow .icon,
	.social-card__arrow .icon {
		transition: transform 0.35s var(--ease-out);
	}

	.btn-outline:hover .icon,
	.news-card__link:hover .news-card__arrow .icon,
	.social-card:hover .social-card__arrow .icon {
		transform: translate(2px, -2px);
	}

	/* Nous suivre */
	.social-card {
		transition: border-color 0.2s, box-shadow 0.3s, transform 0.4s var(--ease-out);
	}

	.social-card:hover {
		transform: translateY(-3px);
	}

	.social-card__icon {
		transition: transform 0.4s var(--ease-out);
	}

	.social-card:hover .social-card__icon {
		transform: scale(1.06);
	}
}

@keyframes site4-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 24px, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes site4-zoom-out {
	from {
		transform: scale(1.08);
	}

	to {
		transform: none;
	}
}

@keyframes site4-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes site4-pulse {
	from {
		opacity: 0.55;
		transform: scale(1);
	}

	to {
		opacity: 0;
		transform: scale(1.7);
	}
}

/* ==========================================================================
   Nos activités — texte des cartes limité à 3 lignes, terminé par « … »
   (le texte complet reste dans la page, pour les lecteurs d'écran et le référencement)
   ========================================================================== */

.activity__desc {
	display: -webkit-box;
	flex-shrink: 0; /* sinon le bloc texte, de hauteur fixe, le réduit à 2 lignes sans « … » */
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

/* Chiffres clés : avec un nombre impair de cartes, la dernière occupe les 2 colonnes (pas de case vide). */
.stats > .stat:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}
