.sgn-news {
	margin: 0 !important;
	padding: 72px 0 78px;
	background: #fff;
	font-family:
		var(--wp--preset--font-family--cooper-hewitt),
		"Cooper Hewitt",
		Arial,
		sans-serif;
}

.sgn-news__container {
	width: calc(100% - 48px);
	max-width: 1370px;
	margin: 0 auto;
}

/* =========================================================
   Header
   ========================================================= */

.sgn-news__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 36px;
	margin-bottom: 26px;
}

.sgn-news__heading {
	margin: 0;
	color: #101820;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.08;
}

.sgn-news__separator {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 14px;
}

.sgn-news__separator span {
	width: 29px;
	height: 1px;
	background: #337fc1;
}

.sgn-news__separator i {
	width: 6px;
	height: 6px;
	border: 1px solid #337fc1;
	border-radius: 50%;
}

.sgn-news__header-actions {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-bottom: 2px;
}

.sgn-news__all {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #337fc1;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.sgn-news__all span {
	transition: transform 180ms ease;
}

.sgn-news__all:hover span {
	transform: translateX(4px);
}

/* =========================================================
   Filtres catégories
   ========================================================= */

.sgn-news__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 27px;
}

.sgn-news__filter {
	padding: 7px 13px;
	border: 1px solid #dce3e8;
	border-radius: 999px;
	background: #fff;
	color: #66717a;
	cursor: pointer;
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease;
}

.sgn-news__filter:hover,
.sgn-news__filter.is-active {
	border-color: #337fc1;
	background: #337fc1;
	color: #fff;
}

/* =========================================================
   Carousel / grille de 4
   ========================================================= */

.sgn-news__viewport {
	overflow: hidden;
}

.sgn-news__track {
	display: flex;
	gap: 22px;
	transition: transform 300ms cubic-bezier(.22, .75, .3, 1);
	will-change: transform;
}

.sgn-news__track.is-static {
	justify-content: center;
}

.sgn-news-card {
	position: relative;
	flex: 0 0 calc((100% - 66px) / 4);
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #edf0f2;
	box-shadow: 0 7px 22px rgba(7, 30, 58, .045);
	transition:
		transform 200ms ease,
		box-shadow 200ms ease;
}

.sgn-news-card.is-hidden {
	display: none;
}

.sgn-news-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 13px 30px rgba(7, 30, 58, .08);
}

/* =========================================================
   Image
   ========================================================= */

.sgn-news-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #071e3a;
	text-decoration: none;
}

.sgn-news-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			to top,
			rgba(7, 30, 58, .25),
			transparent 55%
		);
	opacity: 0;
	transition: opacity 200ms ease;
}

.sgn-news-card:hover .sgn-news-card__media::after {
	opacity: 1;
}

.sgn-news-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 360ms ease;
}

.sgn-news-card:hover .sgn-news-card__image {
	transform: scale(1.035);
}

.sgn-news-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background:
		linear-gradient(
			135deg,
			#071e3a,
			#123c68
		);
}

.sgn-news-card__placeholder span {
	color: rgba(255, 255, 255, .22);
	font-size: 34px;
	font-weight: 700;
}

/* =========================================================
   Catégorie
   ========================================================= */

.sgn-news-card__category {
	position: absolute;
	z-index: 3;
	left: 14px;
	bottom: 13px;
	padding: 6px 9px;
	background: #337fc1;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.sgn-news-card__media-arrow {
	position: absolute;
	z-index: 3;
	right: 13px;
	bottom: 12px;
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	color: #174899;
	font-size: 15px;
	opacity: 0;
	transform: translateY(6px);
	transition:
		opacity 180ms ease,
		transform 180ms ease;
}

.sgn-news-card:hover .sgn-news-card__media-arrow {
	opacity: 1;
	transform: translateY(0);
}

/* =========================================================
   Texte
   ========================================================= */

.sgn-news-card__content {
	display: flex;
	flex-direction: column;
	min-height: 190px;
	padding: 17px 18px 19px;
}

.sgn-news-card__date {
	margin-bottom: 8px;
	color: #90989e;
	font-size: 10px;
	font-weight: 500;
}

.sgn-news-card__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 10px;
	color: #101820;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.sgn-news-card__title a {
	color: inherit;
	text-decoration: none;
}

.sgn-news-card__title a:hover {
	color: #337fc1;
}

.sgn-news-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: #6d7780;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.sgn-news-card__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 7px;
	margin-top: auto;
	padding-top: 15px;
	color: #101820;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
}

.sgn-news-card__link span {
	color: #337fc1;
	transition: transform 180ms ease;
}

.sgn-news-card__link:hover {
	color: #337fc1;
}

.sgn-news-card__link:hover span {
	transform: translateX(3px);
}

/* =========================================================
   Navigation
   ========================================================= */

.sgn-news__controls {
	display: flex;
	gap: 6px;
}

.sgn-news__controls[hidden] {
	display: none;
}

.sgn-news__arrow {
	display: grid;
	width: 38px;
	height: 38px;
	padding: 0;
	place-items: center;
	border: 1px solid #dce2e6;
	background: #fff;
	color: #071e3a;
	cursor: pointer;
	font-size: 15px;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease;
}

.sgn-news__arrow:hover:not(:disabled),
.sgn-news__arrow:focus-visible:not(:disabled) {
	border-color: #337fc1;
	background: #337fc1;
	color: #fff;
}

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

/* =========================================================
   3 cartes
   ========================================================= */

@media (max-width: 1180px) {

	.sgn-news-card {
		flex-basis: calc((100% - 44px) / 3);
	}
}

/* =========================================================
   2 cartes
   ========================================================= */

@media (max-width: 900px) {

	.sgn-news__container {
		width: calc(100% - 40px);
	}

	.sgn-news-card {
		flex-basis: calc((100% - 22px) / 2);
	}
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 680px) {

	.sgn-news {
		padding: 58px 0 64px;
	}

	.sgn-news__container {
		width: calc(100% - 30px);
	}

	.sgn-news__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
	}

	.sgn-news__heading {
		font-size: 28px;
	}

	.sgn-news__header-actions {
		width: 100%;
		justify-content: space-between;
	}

	.sgn-news__filters {
		margin-bottom: 24px;
	}

	.sgn-news__track {
		gap: 16px;
	}

	.sgn-news-card {
		flex-basis: 100%;
	}

	.sgn-news-card__content {
		min-height: 178px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.sgn-news__track,
	.sgn-news-card,
	.sgn-news-card__image,
	.sgn-news-card__media-arrow,
	.sgn-news-card__link span,
	.sgn-news__all span {
		transition: none;
	}
}

/* =========================================================
   Finition cartes Actualités
   ========================================================= */

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

.sgn-news-card__media {
	flex: 0 0 auto;
}

.sgn-news-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 22px 22px;
}

.sgn-news-card__date {
	margin-bottom: 10px;
}

.sgn-news-card__title {
	margin: 0 0 12px;
	line-height: 1.3;

	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.sgn-news-card__excerpt {
	margin: 0;
	color: #74808b;
	line-height: 1.55;

	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.sgn-news-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;

	margin-top: auto;
	padding-top: 17px;

	color: #17202a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
}

.sgn-news-card__more span {
	color: #009fe3;
	font-size: 17px;
	transition: transform 160ms ease;
}

.sgn-news-card__more:hover,
.sgn-news-card__more:focus-visible {
	color: #174899;
	text-decoration: none;
}

.sgn-news-card__more:hover span,
.sgn-news-card__more:focus-visible span {
	transform: translateX(3px);
}
