/* =============================================================================
 * /livre-blanc — page dédiée livre blanc (teaser + CTA vers landing SmartP).
 * Chargée uniquement sur cette route (cf. layout.ts). Tokens DS2 uniquement.
 * ========================================================================== */

/* --- Hero : texte à gauche sur fond blanc, couverture du livre blanc à droite
       (image entière, réduite, occupant le reste du bandeau). --- */
.lb-hero {
	background: var(--color-bg);
}

/* Bandeau pleine largeur : texte calé à gauche (aligné sur le logo nav),
   image à droite occupant toute la moitié droite, pleine hauteur. */
.lb-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	align-items: stretch;
	min-height: clamp(440px, 56vh, 580px);
}

.lb-hero__content {
	align-self: center;
	justify-self: center;
	min-width: 0;
	max-width: 38rem;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
}

.lb-eyebrow {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.35rem 0.85rem;
	border-radius: var(--fg-radius-pill, 999px);
	background: color-mix(in srgb, var(--fg-cta) 12%, transparent);
	color: var(--fg-cta);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lb-hero__title {
	margin: 0 0 1.25rem;
	color: var(--color-brand);
	font-size: clamp(1.9rem, 4vw, 2.9rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.lb-hero__lead {
	margin: 0 0 2rem;
	max-width: 46ch;
	color: var(--fg-text-muted, #4a4f6a);
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.6;
}

.lb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Couverture : remplit toute la moitié droite du bandeau, pleine hauteur.
   object-fit cover + position pour garder le livre entièrement visible. */
.lb-hero__cover {
	position: relative;
	overflow: hidden;
}

.lb-hero__cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Fondu de la frontière gauche de l'image vers le fond blanc pour adoucir
   la jointure entre la partie texte et la partie image. */
.lb-hero__cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		var(--color-bg) 0%,
		color-mix(in srgb, var(--color-bg) 50%, transparent) 12%,
		transparent 28%
	);
}

/* --- Corps d'article --- */
.lb-body {
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--fg-section-x, 1.5rem);
}

.lb-body__inner {
	max-width: 44rem;
	margin-inline: auto;
}

.lb-body__intro {
	margin: 0 0 2.5rem;
	color: var(--color-brand);
	font-size: clamp(1.1rem, 1.8vw, 1.3rem);
	font-weight: 500;
	line-height: 1.6;
}

.lb-article h2,
.lb-highlights__title {
	margin: 2.5rem 0 0.85rem;
	color: var(--color-brand);
	font-size: clamp(1.3rem, 2.2vw, 1.6rem);
	font-weight: 800;
	line-height: 1.25;
}

.lb-article p {
	margin: 0 0 1.25rem;
	color: var(--fg-space, #1f2340);
	font-size: 1.05rem;
	line-height: 1.75;
}

/* --- Bloc « À découvrir » --- */
.lb-highlights {
	margin-top: 3rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--fg-border-soft, #e4e6f0);
	border-left: 4px solid var(--fg-cta);
	border-radius: var(--fg-radius-card, 16px);
	background: color-mix(in srgb, var(--fg-cta) 4%, var(--color-surface, #fff));
}

.lb-highlights__title {
	margin-top: 0;
}

.lb-highlights__intro {
	margin: 0 0 1rem;
	color: var(--fg-space, #1f2340);
	font-size: 1.05rem;
}

.lb-highlights__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.75rem;
}

.lb-highlights__list li {
	position: relative;
	padding-left: 1.9rem;
	color: var(--fg-space, #1f2340);
	font-size: 1.05rem;
	line-height: 1.5;
}

.lb-highlights__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: var(--radius-full, 50%);
	background: color-mix(in srgb, var(--fg-cta) 20%, transparent);
	box-shadow: inset 0 0 0 2px var(--fg-cta);
}

/* --- CTA final (bandeau navy) --- */
.lb-cta {
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--fg-section-x, 1.5rem);
}

.lb-cta__inner {
	max-width: var(--fg-max-width, 1180px);
	margin-inline: auto;
}

.lb-cta__card {
	padding: clamp(2rem, 5vw, 3.5rem);
	border-radius: var(--fg-radius-card, 16px);
	background: linear-gradient(
		150deg,
		var(--color-brand),
		color-mix(in srgb, var(--color-brand) 82%, #000)
	);
	color: #fff;
	text-align: center;
}

.lb-cta__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	font-weight: 800;
}

.lb-cta__desc {
	margin: 0 auto 1.75rem;
	max-width: 44ch;
	color: color-mix(in srgb, #fff 82%, transparent);
	font-size: 1.05rem;
	line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 860px) {
	.lb-hero__inner {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.lb-hero__content {
		padding: clamp(2rem, 8vw, 3rem) var(--fg-section-x, 1.5rem);
	}
	.lb-hero__cover {
		order: -1;
		min-height: 300px;
	}
	.lb-hero__cover::before {
		display: none;
	}
}
