/* ════════════════════════════════════════════════════════════
   SINGLE ARTICLE — MyProd
   Chargé uniquement sur is_singular('post').
   ════════════════════════════════════════════════════════════ */

.sgl-article {
	position: relative;
	background: #fff;
}

/* ───────────────────────────────────────────────
   Utilitaire réutilisable : soulignement animé
   (le trait se dessine de gauche à droite à l'affichage)
   -> candidat à remonter dans global.less si besoin ailleurs.
   Usage : wrapper le texte concerné dans un span
   <span class="u-underline-anim">Texte</span>
   ─────────────────────────────────────────────── */

.u-underline-anim {
	position: relative;
	display: inline-block;
}

.u-underline-anim::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 6px;
	width: 100%;
	height: 1px;
	background: var(--Blue, #021EFE);
	transform: scaleX(0);
	transform-origin: left;
	animation: uUnderlineReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes uUnderlineReveal {
	to {
		transform: scaleX(1);
	}
}

/* ───────────────────────────────────────────────
   1. HERO — effet "volet"
   Fond : même dégradé que body/.site-main (cf. global.less), pour
   rester cohérent avec le reste du site. Plus de calque de glow qui
   suivait la souris (retiré : CSS, markup et JS).
   ─────────────────────────────────────────────── */

.sgl-hero {
	position: relative;
	overflow: hidden;
	z-index: 0;
	background: linear-gradient(90deg, #070D23 0%, #021EFE 100%);
	color: #fff;
}

.sgl-hero__pin {
	position: relative;
	padding-top: 200px;
	transform-origin: center top;
	will-change: transform;
}

.sgl-hero__inner {
	position: relative;
	z-index: 1;
}

.sgl-hero__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 48px;
	flex-wrap: wrap;
}

.sgl-hero__title {
	color: #fff;
	font-weight: 700;
	font-size: clamp(28px, 3.2vw, 48px);
	line-height: 1.15;
	max-width: 640px;
	margin: 0;
}

.sgl-hero__tags {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
	padding-top: 6px;
}

/* Tags — contour blanc transparent, même style que les tags du hero
   principal (.bloc-hero-galerie__tag) : simple, pas d'effet "liquid
   glass" (blur/tramage), pour rester cohérent avec le reste du site. */
.sgl-tag {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 300;
	color: #fff;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	white-space: nowrap;
}

.sgl-tag--accent {
	background: var(--Blue, #021EFE);
	border-color: var(--Blue, #021EFE);
}

.sgl-tag--time {
	opacity: 0.85;
}

.sgl-hero__thumb-wrap {
	margin-top: 8px;
}

.sgl-hero__thumb {
	width: 100%;
	overflow: hidden;
	line-height: 0;
	border-radius: 20px;
}

.sgl-hero__thumb-img {
	width: 100%;
	height: clamp(280px, 45vw, 520px);
	object-fit: cover;
	display: block;
}

/* ───────────────────────────────────────────────
   2. CONTENU — recouvre le hero au scroll
   ─────────────────────────────────────────────── */

.sgl-content {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 20px 20px 0 0;
	margin-top: -20px;
	padding: 76px 0 96px; /* +20px pour compenser le recouvrement négatif */
}

/* Sidebar sticky */
.sgl-sidebar {
	position: relative;
}

.sgl-sidebar__inner {
	position: sticky;
	top: 120px; /* sous la nav flottante */
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.sgl-toc {
	border: 1px solid var(--grey-2, #e6e6e6);
	border-radius: 20px;
	padding: 24px 28px;
}

.sgl-toc__title {
	display: block;
	color: var(--Blue, #021EFE);
	font-weight: 700;
	font-size: 2rem;
	margin-bottom: 32px;
}

.sgl-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

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

.sgl-toc__text {
	display: block;
	color: #08101F;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0.55;
}

.sgl-toc__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.25s ease;

	color: var(--grey-1, #999);
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	margin: 0;
}

.sgl-toc__link::before {
	content: '';
	display: none; /* pas de puce par défaut, seulement sur l'item actif */
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--Blue, #021EFE);
	margin-right: 8px;
	flex-shrink: 0;
}

.sgl-toc__link:hover,
.sgl-toc__link.is-active {
	color: #08101F;
}

.sgl-toc__link.is-active::before {
	display: inline-block;
}

/* Sous-item (H3) du sommaire — indenté, même logique de couleur/puce,
   juste une taille légèrement réduite pour marquer la hiérarchie */
.sgl-toc__item--sub {
	padding-left: 18px;
}

.sgl-toc__item--sub .sgl-toc__link {
	font-size: 13px;
}

.sgl-toc__item--sub .sgl-toc__link::before {
	width: 4px;
	height: 4px;
}

/* Bouton contact perso : réutilise .btn-cta tel quel (dots + fond qui
   se déploie au survol, déjà stylés globalement en bleu par défaut —
   cf. global.less) — juste une largeur 100% pour la sidebar et un
   léger effet de lift au survol. Plus de fond orange/rouge personnalisé
   ici : .btn-cta est DÉJÀ bleu par défaut, pas besoin de le redéfinir. */
.sgl-contact-btn {
	display: flex;
	width: fit-content;
	justify-content: center;
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.sgl-contact-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(2, 30, 254, 0.35);
}

/* Case "En résumé" */
.sgl-summary-box {
	border: 1px solid var(--grey-2, #e6e6e6);
	border-radius: 20px;
	padding: 32px;
	margin-bottom: 40px;
}

.sgl-summary-box__title {
	display: block;
	color: var(--Blue, #021EFE);
	font-weight: 700;
	font-size: 2rem;
	margin-bottom: 14px;
}

.sgl-summary-box__text {
	font-size: 14px;
	line-height: 1.7;
	color: #08101F;
	margin-bottom: 14px;
}

.sgl-summary-box__text p {
	font-size: 14px;
	line-height: 1.7;
	color: #08101F;
	margin-bottom: 14px;
}

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

/* Corps de l'article */
.sgl-entry-content h2,
.sgl-entry-content h3 {
	scroll-margin-top: 140px; /* offset ancre sous la nav flottante */
}

.sgl-entry-content h2 {
	margin: 48px 0 20px;
}

.sgl-entry-content h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 32px 0 14px;
}

.sgl-entry-content p {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 20px;
}

.sgl-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 20px;
}

/* ───────────────────────────────────────────────
   3. ARTICLES SUGGÉRÉS — "À lire également…"
   Cartes alignées sur le même traitement que .sgl-blog-card
   (template-blog.css) : fond marine plein, coins 10px, zoom léger sur
   la vignette au survol — pour rester cohérent entre les deux
   endroits où des cartes d'articles s'affichent sur le site.
   ─────────────────────────────────────────────── */

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

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

.sgl-related__title {
	margin: 0;
	color: #08101F;
}

/* Le style de l'italique/soulignement sur "À lire" est géré ailleurs
   (cohérent avec le reste du thème) — pas de redéfinition ici. */

.sgl-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.sgl-related__card {
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	background: #08101F;
	padding: 16px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.sgl-related__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
	color: inherit;
}

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

.sgl-related__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background-color: #1a2033;
	margin-bottom: 16px;
}

.sgl-related__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sgl-related__cat {
	display: inline-flex;
	align-self: flex-start;
	padding: 8px 16px;
	border-radius: 999px;
	background: transparent;
	border: 1px solid white;
	color: #fff;
	font-size: 16px;
	font-weight: 300;
	white-space: nowrap;
	margin-bottom: 12px;
}

.sgl-related__card-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	color: #fff;
}

@media (max-width: 991px) {
	.sgl-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.sgl-related {
		padding-top: 64px;
	}

	.sgl-related__grid {
		grid-template-columns: 1fr;
	}
}

/* ───────────────────────────────────────────────
   4. RESPONSIVE (hero / contenu)
   ─────────────────────────────────────────────── */

@media (max-width: 991px) {
	.sgl-hero__pin {
		padding-top: 96px;
	}

	.sgl-content {
		margin-top: 0;
		border-radius: 0;
		box-shadow: none;
		padding-top: 56px;
	}

	.sgl-sidebar__inner {
		position: relative;
		top: 0;
		margin-bottom: 40px;
	}

	.sgl-hero__row {
		flex-direction: column;
	}

	.sgl-hero__tags {
		justify-content: flex-start;
	}
}