/* ══════════════════════════════════════════════
   LEGALFAMILY — Approfondir avec la formation
   + Articles similaires (maillage interne)
   Brand: #105050 (teal) · #E67E22/#EB6328 (orange) · #EEE8DE (cream)
   ══════════════════════════════════════════════ */

@keyframes lfRelatedReveal {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes lfRelatedUnderline {
	from { width: 0; }
	to { width: 64px; }
}

/* ── "Approfondir avec la formation" ─────────────────── */

.lf-deepen {
	position: relative;
	max-width: 860px;
	margin: 48px auto 0;
	display: flex;
	align-items: stretch;
	gap: 28px;
	background: linear-gradient(155deg, #0d3f3f 0%, #105050 55%, #12615f 100%);
	border-radius: 16px;
	padding: 32px 36px 32px 30px;
	overflow: hidden;
	box-shadow: 0 18px 40px -18px rgba(16, 80, 80, 0.55);
	isolation: isolate;
}

.lf-deepen::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.035) 0px,
		rgba(255, 255, 255, 0.035) 1px,
		transparent 1px,
		transparent 14px
	);
	pointer-events: none;
	z-index: 0;
}

.lf-deepen::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(230, 126, 34, 0.28) 0%, transparent 70%);
	z-index: 0;
}

.lf-deepen__seal {
	position: absolute;
	top: 22px;
	left: 26px;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1.5px solid rgba(230, 126, 34, 0.55);
	color: #f0a862;
	background: rgba(0, 0, 0, 0.12);
	z-index: 1;
}

.lf-deepen__seal svg {
	width: 24px;
	height: 24px;
}

.lf-deepen__media {
	position: relative;
	z-index: 1;
	flex: 0 0 172px;
	aspect-ratio: 16 / 9;
	align-self: center;
	border-radius: 12px;
	overflow: hidden;
	background: #f4f7f7;
	box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
	transform: rotate(-2deg);
	transition: transform 0.35s ease;
}

.lf-deepen:hover .lf-deepen__media {
	transform: rotate(0deg) scale(1.02);
}

.lf-deepen__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.lf-deepen__body {
	position: relative;
	z-index: 1;
	flex: 1;
	min-width: 0;
	padding-left: 54px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lf-deepen__eyebrow {
	font-family: "Anuphan", sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: #f0a862;
}

.lf-deepen__title {
	margin: 0;
	font-family: "Anuphan", sans-serif;
	font-size: 23px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.2px;
}

.lf-deepen__title a {
	color: #fff;
	text-decoration: none;
	background-image: linear-gradient(#fff, #fff);
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 0% 1px;
	transition: background-size 0.3s ease;
}

.lf-deepen__title a:hover {
	background-size: 100% 1px;
}

.lf-deepen__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.lf-deepen__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.72);
}

.lf-deepen__meta-item svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	color: #f0a862;
}

.lf-deepen__footer {
	margin-top: 6px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px 24px;
}

.lf-deepen__price {
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
}

.lf-deepen__price .lf-price-pair__ht {
	color: #fff;
	font-weight: 700;
	font-size: 17px;
}

.lf-deepen__cta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-left: auto;
	padding: 12px 24px;
	background: #E67E22;
	color: #fff;
	font-family: "Anuphan", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 8px;
	transition: background 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.lf-deepen__cta svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.lf-deepen__cta:hover {
	background: #EB6328;
	transform: translateY(-1px);
}

.lf-deepen__cta:hover svg {
	transform: translateX(3px);
}

/* ── "Articles similaires" ───────────────────────────── */

.lf-related {
	margin-top: 64px;
	padding: 56px 20px 64px;
	background: #EEE8DE;
	position: relative;
}

.lf-related::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(16, 80, 80, 0.18) 50%, transparent);
}

.lf-related__inner {
	max-width: 1080px;
	margin: 0 auto;
}

.lf-related__head {
	text-align: center;
	margin-bottom: 36px;
}

.lf-related__eyebrow {
	display: inline-block;
	font-family: "Anuphan", sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: #E67E22;
}

.lf-related__title {
	margin: 6px 0 0;
	font-family: "Anuphan", sans-serif;
	font-size: 30px;
	font-weight: 800;
	color: #105050;
	position: relative;
	display: inline-block;
}

.lf-related__title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -10px;
	transform: translateX(-50%);
	height: 3px;
	width: 64px;
	background: #E67E22;
	border-radius: 2px;
	animation: lfRelatedUnderline 0.6s ease-out 0.15s both;
}

.lf-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 26px;
}

.lf-related__card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 20px -12px rgba(16, 80, 80, 0.22);
	border: 1px solid rgba(16, 80, 80, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	opacity: 0;
	animation: lfRelatedReveal 0.6s ease-out forwards;
	animation-delay: var(--lf-related-delay, 0ms);
}

.lf-related__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 32px -16px rgba(16, 80, 80, 0.32);
}

.lf-related__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.lf-related__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.lf-related__body {
	padding: 18px 20px 22px;
}

.lf-related__badge {
	display: inline-block;
	font-family: "Anuphan", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #105050;
	background: rgba(16, 80, 80, 0.08);
	padding: 5px 12px;
	border-radius: 20px;
	margin-bottom: 10px;
}

.lf-related__card-title {
	margin: 0 0 8px;
	font-family: "Anuphan", sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: #105050;
}

.lf-related__card-title a {
	color: inherit;
	text-decoration: none;
}

.lf-related__card-title a:hover {
	color: #E67E22;
}

.lf-related__excerpt {
	margin: 0 0 14px;
	font-family: "Montserrat", sans-serif;
	font-size: 13.5px;
	line-height: 1.6;
	color: #64748b;
}

.lf-related__read-more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: "Anuphan", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: #E67E22;
	text-decoration: none;
}

.lf-related__read-more svg {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.lf-related__read-more:hover svg {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	.lf-related__card {
		opacity: 1;
		animation: none;
	}

	.lf-related__title::after {
		animation: none;
		width: 64px;
	}
}

/* ── Mobile ───────────────────────────────────────────── */

@media (max-width: 640px) {
	.lf-deepen {
		flex-direction: column;
		max-width: 100%;
		margin: 36px 16px 0;
		padding: 26px 20px 24px;
	}

	.lf-deepen__seal {
		top: 20px;
		left: 20px;
		width: 40px;
		height: 40px;
	}

	.lf-deepen__seal svg {
		width: 20px;
		height: 20px;
	}

	.lf-deepen__media {
		align-self: flex-start;
		flex: 0 0 auto;
		width: 140px;
		transform: rotate(-1.5deg);
		margin-top: 8px;
	}

	.lf-deepen__media img {
		height: 100%;
	}

	.lf-deepen__body {
		padding-left: 0;
	}

	.lf-deepen__title {
		font-size: 20px;
	}

	.lf-deepen__footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.lf-deepen__cta {
		margin-left: 0;
		width: 100%;
		justify-content: center;
	}

	.lf-related {
		padding: 44px 16px 48px;
		margin-top: 48px;
	}

	.lf-related__title {
		font-size: 24px;
	}

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