/* ==========================================================
   SINGLE ARTICLE — PHAR'EAUX
   ========================================================== */

.sgl-article {
	position: relative;
	background-color: #FFFFFF;
	color: #06172D;
}

/* ==========================================================
   HERO
   ========================================================== */

.sgl-hero {
	position: relative;
	padding: 176px 0 96px;
	background-color: #E9F5FB;
}

.sgl-hero__content {
	max-width: 980px;
	margin: 0 auto 48px;
	text-align: center;
}

.sgl-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;

	margin-bottom: 28px;
}

.sgl-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 40px;
	padding: 8px 16px;

	border: 1px solid rgba(6, 23, 45, 0.16);
	border-radius: 999px;

	background-color: #FFFFFF;
	color: #06172D;

	font-family: "Montserrat", sans-serif;
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1;
}

.sgl-tag--accent {
	border-color: #9AD3EE;
	background-color: #9AD3EE;
	font-weight: 700;
}

.sgl-tag--time {
	color: #2E73B7;
}

.sgl-hero__title {
	margin: 0;

	color: #06172D;

	font-family: "Gotham", sans-serif;
	font-size: 6.4rem;
	font-weight: 700;
	line-height: 1.06;
}

.sgl-hero__thumb {
	overflow: hidden;

	width: 100%;
	aspect-ratio: 16 / 7;

	border-radius: 32px;

	background-color: #DDEFF8;
}

.sgl-hero__thumb.imgcropCtn {
	width: 100%;
	aspect-ratio: 16 / 7;
}

.sgl-hero__thumb-img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
}

/* ==========================================================
   CONTENU
   ========================================================== */

.sgl-content {
	position: relative;
	padding: 96px 0;
	background-color: #FFFFFF;
}

/* ==========================================================
   SIDEBAR
   ========================================================== */

.sgl-sidebar {
	position: relative;
}

.sgl-sidebar__inner {
	position: sticky;
	top: 120px;

	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.sgl-toc {
	width: 100%;
	padding: 32px;

	border-radius: 24px;

	background-color: #E9F5FB;
}

.sgl-toc__title {
	margin: 0 0 24px;

	color: #06172D;

	font-family: "Gotham", sans-serif;
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.2;
}

.sgl-toc__list {
	display: flex;
	flex-direction: column;
	gap: 14px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.sgl-toc__item {
	margin: 0;
	padding: 0;
}

.sgl-toc__item--sub {
	padding-left: 18px;
}

.sgl-toc__link {
	position: relative;

	display: inline-flex;
	align-items: flex-start;
	gap: 9px;

	color: rgba(6, 23, 45, 0.62);

	font-family: "Montserrat", sans-serif;
	font-size: 1.4rem;
	font-weight: 500;
	line-height: 1.45;
	text-decoration: none;

	transition:
		color 0.3s ease,
		transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sgl-toc__link::before {
	content: "";

	flex: 0 0 auto;

	width: 6px;
	height: 6px;
	margin-top: 7px;

	border-radius: 50%;

	background-color: #9AD3EE;

	opacity: 0;
	transform: scale(0);

	transition:
		opacity 0.3s ease,
		transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sgl-toc__item--sub .sgl-toc__link {
	font-size: 1.3rem;
}

.sgl-toc__link:hover,
.sgl-toc__link.is-active {
	color: #06172D;
	transform: translateX(3px);
}

.sgl-toc__link.is-active::before {
	opacity: 1;
	transform: scale(1);
}

.sgl-contact-btn.btn {
	background-color: #2E73B7;
	border-color: #2E73B7;
	color: #FFFFFF;
}

.sgl-contact-btn.btn:hover {
	background-color: #06172D;
	border-color: #06172D;
	color: #FFFFFF;
}

/* ==========================================================
   RÉSUMÉ
   ========================================================== */

.sgl-summary-box {
	margin-bottom: 48px;
	padding: 32px;

	border-radius: 24px;

	background-color: #E9F5FB;
}

.sgl-summary-box__title {
	margin: 0 0 16px;

	color: #06172D;

	font-family: "Gotham", sans-serif;
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.2;
}

.sgl-summary-box__text,
.sgl-summary-box__text p {
	color: #06172D;

	font-family: "Montserrat", sans-serif;
	font-size: 1.6rem;
	line-height: 1.7;
}

.sgl-summary-box__text > :first-child {
	margin-top: 0;
}

.sgl-summary-box__text > :last-child {
	margin-bottom: 0;
}

/* ==========================================================
   CORPS DE L'ARTICLE
   ========================================================== */

.sgl-entry-content {
	color: #06172D;

	font-family: "Montserrat", sans-serif;
	font-size: 1.6rem;
	line-height: 1.8;
}

.sgl-entry-content h2,
.sgl-entry-content h3 {
	color: #06172D;
	font-family: "Gotham", sans-serif;
	scroll-margin-top: 140px;
}

.sgl-entry-content h2 {
	margin: 64px 0 24px;

	font-size: 3.2rem;
	font-weight: 700;
	line-height: 1.15;
}

.sgl-entry-content h2:first-child {
	margin-top: 0;
}

.sgl-entry-content h3 {
	margin: 40px 0 16px;

	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.2;
}

.sgl-entry-content p,
.sgl-entry-content li {
	color: #06172D;

	font-size: 1.6rem;
	line-height: 1.8;
}

.sgl-entry-content p {
	margin: 0 0 24px;
}

.sgl-entry-content ul,
.sgl-entry-content ol {
	margin: 0 0 28px;
	padding-left: 24px;
}

.sgl-entry-content li + li {
	margin-top: 8px;
}

.sgl-entry-content a:not(.btn) {
	color: #2E73B7;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;

	transition: color 0.3s ease;
}

.sgl-entry-content a:not(.btn):hover {
	color: #06172D;
}

.sgl-entry-content strong {
	font-weight: 700;
}

.sgl-entry-content blockquote {
	margin: 40px 0;
	padding: 24px 32px;

	border-left: 4px solid #9AD3EE;
	border-radius: 0 20px 20px 0;

	background-color: #E9F5FB;
}

.sgl-entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.sgl-entry-content img {
	display: block;

	max-width: 100%;
	height: auto;
	margin: 40px 0;

	border-radius: 24px;
}

.sgl-entry-content figure {
	margin: 40px 0;
}

.sgl-entry-content figure img {
	margin: 0;
}

.sgl-entry-content figcaption {
	margin-top: 10px;

	color: rgba(6, 23, 45, 0.6);

	font-size: 1.3rem;
	line-height: 1.5;
	text-align: center;
}

/* ==========================================================
   ARTICLES ASSOCIÉS
   Même identité que Liste contenus / template Blog.
   ========================================================== */

.sgl-related {
	padding-top: 120px;
}

.sgl-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;

	margin-bottom: 40px;
}

.sgl-related__title {
	margin: 0;

	color: #06172D;

	font-family: "Gotham", sans-serif;
	font-size: 4.8rem;
	font-weight: 700;
	line-height: 1.1;
}

.sgl-related__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 48px 16px;
}

.sgl-related__card {
	display: flex;
	flex: 0 1 calc((100% - 32px) / 3);
	flex-direction: column;

	min-width: 0;

	color: #06172D;
	text-decoration: none;

	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sgl-related__thumb {
	position: relative;
	overflow: hidden;

	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 18px;

	border-radius: 24px;

	background-color: #E9F5FB;
}

.sgl-related__thumb::after {
	content: "";

	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;

	width: 52px;
	height: 52px;

	background-image: url("./assets/btnPharEaux.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;

	pointer-events: none;

	transition:
		transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sgl-related__thumb-img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition:
		transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sgl-related__cat {
	align-self: flex-start;

	margin-bottom: 8px;

	color: #2E73B7;

	font-family: "Montserrat", sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.sgl-related__card-title {
	margin: 0;

	color: #06172D;

	font-family: "Gotham", sans-serif;
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.18;

	transition:
		color 0.3s ease,
		transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sgl-related__card:hover {
	color: #06172D;
	transform: translateY(-4px);
}

.sgl-related__card:hover .sgl-related__thumb-img {
	transform: scale(1.055);
}

.sgl-related__card:hover .sgl-related__thumb::after {
	transform: translate(5px, -5px) rotate(3deg);
}

.sgl-related__card:hover .sgl-related__card-title {
	color: #2E73B7;
	transform: translateX(3px);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1199.98px) {
	.sgl-hero__title {
		font-size: 5.6rem;
	}

	.sgl-related__title {
		font-size: 4rem;
	}
}

@media (max-width: 991.98px) {
	.sgl-hero {
		padding: 144px 0 80px;
	}

	.sgl-hero__title {
		font-size: 4.8rem;
	}

	.sgl-hero__thumb,
	.sgl-hero__thumb.imgcropCtn {
		aspect-ratio: 16 / 9;
		border-radius: 28px;
	}

	.sgl-content {
		padding: 80px 0;
	}

	.sgl-sidebar__inner {
		position: relative;
		top: 0;

		margin-bottom: 56px;
	}

	.sgl-related {
		padding-top: 96px;
	}

	.sgl-related__card {
		flex-basis: calc((100% - 16px) / 2);
	}
}

@media (max-width: 767.98px) {
	.sgl-hero {
		padding: 120px 0 64px;
	}

	.sgl-hero__content {
		margin-bottom: 36px;
	}

	.sgl-hero__title {
		font-size: 4rem;
	}

	.sgl-hero__meta {
		margin-bottom: 22px;
	}

	.sgl-hero__thumb,
	.sgl-hero__thumb.imgcropCtn {
		border-radius: 24px;
	}

	.sgl-content {
		padding: 64px 0;
	}

	.sgl-toc,
	.sgl-summary-box {
		padding: 24px;
		border-radius: 20px;
	}

	.sgl-entry-content h2 {
		margin-top: 48px;
		font-size: 2.8rem;
	}

	.sgl-entry-content h3 {
		margin-top: 32px;
		font-size: 2.2rem;
	}

	.sgl-related {
		padding-top: 80px;
	}

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

	.sgl-related__title {
		font-size: 3.2rem;
	}

	.sgl-related__grid {
		gap: 40px;
	}

	.sgl-related__card {
		flex-basis: 100%;
	}

	.sgl-related__thumb {
		border-radius: 20px;
	}
}

@media (max-width: 479.98px) {
	.sgl-hero__title {
		font-size: 3.6rem;
	}

	.sgl-tag {
		min-height: 36px;
		padding: 7px 13px;
	}

	.sgl-related__thumb::after {
		top: 12px;
		right: 12px;

		width: 46px;
		height: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sgl-toc__link,
	.sgl-toc__link::before,
	.sgl-related__card,
	.sgl-related__thumb-img,
	.sgl-related__thumb::after,
	.sgl-related__card-title {
		transition: none;
	}
}