.sgn-institution-overview {
	padding: 105px 0 110px;
	background: #fff;
	font-family:
		var(--wp--preset--font-family--cooper-hewitt),
		"Cooper Hewitt",
		Arial,
		sans-serif;
}

.sgn-institution-overview__header {
	max-width: 820px;
	margin: 0 auto 58px;
	text-align: center;
}

.sgn-section-kicker {
	margin: 0 0 14px;
	color: #009fe3;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
}

.sgn-section-kicker::after {
	content: "";
	display: block;
	width: 46px;
	height: 3px;
	margin: 14px auto 0;
	background: #ffed00;
}

.sgn-institution-overview__title {
	margin: 0;
	color: #071e3a;
	font-size: clamp(34px, 3vw, 46px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.sgn-institution-overview__intro {
	max-width: 720px;
	margin: 22px auto 0;
	color: #536172;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.65;
}

.sgn-institution-overview__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid #dce4eb;
	border-left: 1px solid #dce4eb;
}

.sgn-institution-card {
	position: relative;
	min-height: 335px;
	display: flex;
	flex-direction: column;
	padding: 38px 34px 34px;
	border-right: 1px solid #dce4eb;
	border-bottom: 1px solid #dce4eb;
	background: #fff;
	overflow: hidden;
	transition:
		background-color 220ms ease,
		transform 220ms ease;
}

.sgn-institution-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 4px;
	background: #009fe3;
	transition: width 300ms ease;
}

.sgn-institution-card:hover {
	background: #f7fbfd;
}

.sgn-institution-card:hover::before {
	width: 100%;
}

.sgn-institution-card__number {
	position: absolute;
	top: 24px;
	right: 28px;
	color: #e4ebf0;
	font-size: 42px;
	font-weight: 700;
	line-height: 1;
}

.sgn-institution-card__label {
	position: relative;
	z-index: 1;
	margin: 0 0 17px;
	color: #009fe3;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.sgn-institution-card__title {
	position: relative;
	z-index: 1;
	max-width: 300px;
	margin: 0;
	color: #071e3a;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.35;
}

.sgn-institution-card__description {
	margin: 20px 0 28px;
	color: #5f6b78;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
}

.sgn-institution-card__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	color: #174899;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.sgn-institution-card__link span {
	font-size: 18px;
	transition: transform 180ms ease;
}

.sgn-institution-card__link:hover span,
.sgn-institution-card__link:focus-visible span {
	transform: translateX(4px);
}

@media (max-width: 1000px) {
	.sgn-institution-overview__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.sgn-institution-overview {
		padding: 75px 0 80px;
	}

	.sgn-institution-overview__header {
		margin-bottom: 40px;
		text-align: left;
	}

	.sgn-section-kicker::after {
		margin-left: 0;
	}

	.sgn-institution-overview__title {
		font-size: 32px;
	}

	.sgn-institution-overview__intro {
		font-size: 16px;
	}

	.sgn-institution-overview__grid {
		grid-template-columns: 1fr;
	}

	.sgn-institution-card {
		min-height: 0;
		padding: 32px 26px;
	}
}

/* =========================================================
   Carousel institutionnel SGN
   Desktop : 3 cartes
   Tablette : 2 cartes
   Mobile : 1 carte
   ========================================================= */

.sgn-institution-overview__carousel {
	position: relative;
	width: 100%;
}

.sgn-institution-overview__viewport {
	width: 100%;
	overflow: hidden;
	scroll-snap-type: x mandatory;
}

.sgn-institution-overview__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 40px) / 3);
	gap: 20px;
	width: 100%;
}

/*
 * On conserve le design actuel des cartes.
 * On neutralise seulement les anciennes bordures de grille.
 */
.sgn-institution-overview__carousel .sgn-institution-card {
	width: auto;
	min-width: 0;
	min-height: 335px;
	border: 1px solid #dce4eb;
	scroll-snap-align: start;
}

/* Navigation sous les cartes */

.sgn-institution-overview__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 36px;
}

.sgn-institution-overview__arrow {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;

	padding: 0;

	border: 1px solid #d7e0e7;
	background: #fff;
	color: #174899;

	font-family:
		var(--wp--preset--font-family--cooper-hewitt),
		"Cooper Hewitt",
		Arial,
		sans-serif;

	font-size: 22px;
	cursor: pointer;

	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease;
}

.sgn-institution-overview__arrow:hover:not(:disabled),
.sgn-institution-overview__arrow:focus-visible:not(:disabled) {
	background: #174899;
	border-color: #174899;
	color: #fff;
}

.sgn-institution-overview__arrow:disabled {
	opacity: .32;
	cursor: default;
}

.sgn-institution-overview__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 48px;
}

.sgn-institution-overview__dot {
	width: 8px;
	height: 8px;

	padding: 0;
	border: 0;

	background: #cbd4dc;
	cursor: pointer;

	transition:
		width 180ms ease,
		background-color 180ms ease;
}

.sgn-institution-overview__dot.is-active {
	width: 24px;
	background: #ffed00;
}

.sgn-institution-overview__status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Tablette : 2 cartes */

@media (max-width: 1000px) {
	.sgn-institution-overview__track {
		grid-auto-columns: calc((100% - 18px) / 2);
		gap: 18px;
	}
}

/* Mobile : 1 carte */

@media (max-width: 680px) {
	.sgn-institution-overview__track {
		grid-auto-columns: 100%;
		gap: 14px;
	}

	.sgn-institution-overview__carousel .sgn-institution-card {
		min-height: 0;
	}

	.sgn-institution-overview__controls {
		margin-top: 26px;
		gap: 14px;
	}

	.sgn-institution-overview__arrow {
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sgn-institution-overview__viewport {
		scroll-behavior: auto;
	}
}

/* Slider institution — comportement uniquement */

.sgn-institution-overview [hidden],
.sgn-home-presentation [hidden] {
	display: none !important;
}

.sgn-institution-overview article,
.sgn-home-presentation article {
	animation: sgn-institution-slide-in .22s ease;
}

@keyframes sgn-institution-slide-in {
	from {
		opacity: 0;
		transform: translateY(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sgn-institution-overview .is-disabled,
.sgn-home-presentation .is-disabled {
	opacity: .45;
}

.sgn-institution-overview [class*="pagination"] .is-active,
.sgn-institution-overview [class*="dots"] .is-active,
.sgn-home-presentation [class*="pagination"] .is-active,
.sgn-home-presentation [class*="dots"] .is-active {
	background: #ffed00 !important;
	opacity: 1 !important;
}

/* ==========================================
   HOME PRESENTATION / INSTITUTION SLIDER
   Transition + pagination jaune
   ========================================== */

.sgn-institution-overview article,
.sgn-home-presentation article,
[class*="institution-overview"] article {
	transition:
		opacity .28s ease,
		transform .28s ease,
		box-shadow .28s ease;
	will-change: opacity, transform;
}

.sgn-institution-overview article[hidden],
.sgn-home-presentation article[hidden],
[class*="institution-overview"] article[hidden] {
	display: none !important;
}

.sgn-institution-overview article.is-slide-visible,
.sgn-home-presentation article.is-slide-visible,
[class*="institution-overview"] article.is-slide-visible {
	opacity: 1;
	transform: translateX(0);
}

.sgn-institution-overview article.is-slide-enter-right,
.sgn-home-presentation article.is-slide-enter-right,
[class*="institution-overview"] article.is-slide-enter-right {
	opacity: 0;
	transform: translateX(34px);
}

.sgn-institution-overview article.is-slide-enter-left,
.sgn-home-presentation article.is-slide-enter-left,
[class*="institution-overview"] article.is-slide-enter-left {
	opacity: 0;
	transform: translateX(-34px);
}

.sgn-institution-overview article.is-slide-leave-left,
.sgn-home-presentation article.is-slide-leave-left,
[class*="institution-overview"] article.is-slide-leave-left {
	opacity: 0;
	transform: translateX(-34px);
}

.sgn-institution-overview article.is-slide-leave-right,
.sgn-home-presentation article.is-slide-leave-right,
[class*="institution-overview"] article.is-slide-leave-right {
	opacity: 0;
	transform: translateX(34px);
}

/* Pagination type bulle + trait jaune */
.sgn-overview-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 26px 0 18px;
	width: 100%;
}

.sgn-overview-dot {
	width: 10px;
	height: 10px;
	border: 0;
	border-radius: 999px;
	background: #d9dfe6;
	padding: 0;
	cursor: pointer;
	transition: all .25s ease;
	box-shadow: none;
}

.sgn-overview-dot:hover {
	background: #c7d0db;
	transform: scale(1.08);
}

.sgn-overview-dot.is-active {
	width: 30px;
	height: 6px;
	border-radius: 999px;
	background: #f3db00;
}

/* Boutons flèches : un peu plus propres */
.sgn-institution-overview .swiper-button-prev,
.sgn-institution-overview .swiper-button-next,
.sgn-home-presentation .swiper-button-prev,
.sgn-home-presentation .swiper-button-next,
[class*="institution-overview"] .swiper-button-prev,
[class*="institution-overview"] .swiper-button-next {
	transition: all .22s ease;
}

.sgn-institution-overview .swiper-button-prev:hover,
.sgn-institution-overview .swiper-button-next:hover,
.sgn-home-presentation .swiper-button-prev:hover,
.sgn-home-presentation .swiper-button-next:hover,
[class*="institution-overview"] .swiper-button-prev:hover,
[class*="institution-overview"] .swiper-button-next:hover {
	transform: translateY(-1px);
}

/* Slider — flèches + indicateurs sur une seule ligne */
.sgn-overview-controls-inline {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
}

.sgn-overview-controls-inline .sgn-overview-pagination {
	display: flex;
	align-items: center;
	justify-content: center;

	width: auto;
	margin: 0 6px;
	gap: 7px;
}
