/**
 * Reader UX — lisibilité, hiérarchie, parcours lecteur, moins de friction.
 * Chargé en dernier (après premium-magazine / footer-smart).
 */

:root {
	--reader-prose-measure: 42rem;
	--reader-meta-min: 0.75rem;
	--reader-section-title: clamp(1.0625rem, 2.4vw, 1.25rem);
	--reader-card-title: clamp(0.875rem, 2.2vw, 0.9375rem);
}

/* ── Skip link (AR) ── */
.skip-link:focus {
	position: fixed;
	top: 8px;
	inset-inline-start: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	overflow: visible;
	background: var(--news-charcoal, #1a1a1a);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.3;
	border-radius: var(--news-radius-sm, 8px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	text-decoration: none;
}

/* ═══════════════════════════════════════════
   1. Lisibilité articles
   ═══════════════════════════════════════════ */
body.single-lachtv .single-post {
	display: flex;
	flex-direction: column;
}

body.single-lachtv .single-post .entry-header {
	order: 1;
}

body.single-lachtv .single-post .entry-thumbnail {
	order: 2;
	margin-top: clamp(10px, 2vw, 16px);
}

body.single-lachtv .single-post .entry-share--top,
body.single-lachtv .single-post .entry-share--enhanced {
	order: 3;
	margin: clamp(10px, 2vw, 14px) 0 0;
	padding: 0;
	border: none;
	background: transparent;
}

body.single-lachtv .single-post .entry-content {
	order: 4;
	max-width: var(--reader-prose-measure);
	margin-inline: auto;
	width: 100%;
	font-size: clamp(1.0625rem, 2.8vw, 1.125rem);
	line-height: 1.9 !important;
	color: var(--news-ink);
	hyphens: auto;
	-webkit-hyphens: auto;
}

body.single-lachtv .single-post .entry-footer {
	order: 5;
	max-width: var(--reader-prose-measure);
	margin-inline: auto;
	width: 100%;
}

body.single-lachtv .single-post .entry-content p {
	margin-bottom: 1.35em;
}

body.single-lachtv .single-post .entry-content p + p {
	margin-top: 0;
}

body.single-lachtv .single-post .entry-content a {
	color: var(--news-blue, #1a5f9e);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	font-weight: 600;
}

body.single-lachtv .single-post .entry-content a:hover {
	color: var(--news-red, #e60000);
}

body.single-lachtv .single-post .entry-content ul,
body.single-lachtv .single-post .entry-content ol {
	margin: 0 0 1.25em;
	padding-inline-start: 1.35em;
}

body.single-lachtv .single-post .entry-content li {
	margin-bottom: 0.45em;
	line-height: 1.85;
}

body.single-lachtv .single-post .entry-content blockquote {
	margin: 1.5em 0;
	padding: 0.85em 1em;
	border-inline-start: 3px solid var(--news-gold, #ffcc00);
	background: var(--news-border-subtle, #eef0f4);
	border-radius: 0 var(--news-radius-xs, 6px) var(--news-radius-xs, 6px) 0;
	color: var(--news-text);
	font-size: 0.98em;
	line-height: 1.75;
}

body.single-lachtv .single-post .entry-content h2 {
	margin-top: 2em;
	padding-top: 0.75em;
	border-top: 1px solid var(--news-border-subtle);
	font-size: clamp(1.2rem, 3.5vw, 1.4375rem);
	font-weight: 800;
	line-height: 1.4;
	color: var(--news-ink);
}

body.single-lachtv .single-post .entry-content h3 {
	margin-top: 1.65em;
	font-size: clamp(1.0625rem, 3vw, 1.1875rem);
	font-weight: 800;
	line-height: 1.45;
	color: var(--news-ink);
}

body.single-lachtv .single-post .entry-content h4 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--news-text);
}

body.single-lachtv .single-post .entry-title {
	max-width: var(--reader-prose-measure);
	margin-inline: auto;
	width: 100%;
	letter-spacing: -0.02em;
}

body.single-lachtv .single-post .entry-meta {
	max-width: var(--reader-prose-measure);
	margin-inline: auto;
	width: 100%;
}

body.single-lachtv .single-post .entry-meta > span {
	font-size: max(var(--reader-meta-min), var(--type-meta));
}

/* Moins de duplication partage en bas sur mobile */
@media (max-width: 768px) {
	body.single-lachtv .single-post .entry-cta {
		display: none;
	}
}

/* ═══════════════════════════════════════════
   2. Hiérarchie des titres (accueil + archives)
   ═══════════════════════════════════════════ */
.front-page .home-premium-title,
.front-page .home-premium-title a,
.front-page .most-viewed-heading,
.front-page .section-header .section-title {
	font-size: var(--reader-section-title) !important;
	font-weight: 800 !important;
	letter-spacing: -0.015em;
}

.front-page .hero-slide-title,
.front-page .home-cat-featured-title,
.front-page .home-cat-featured-title a {
	font-size: clamp(1.125rem, 3.2vw, 1.375rem) !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
}

.front-page .home-mosaic-tile-title,
.front-page .home-mosaic-tile-title a,
.front-page .home-tri-list-title a,
.front-page .home-feed-item-title a,
.front-page .post-card-title a {
	font-size: var(--reader-card-title) !important;
	font-weight: 700 !important;
	line-height: 1.45 !important;
}

.front-page .home-feed-time,
.front-page .home-zone-label,
.front-page .most-viewed-views,
.breaking-ticker .breaking-item,
.single-post .entry-meta > span,
.post-card-meta,
.related-post__time {
	font-size: max(var(--reader-meta-min), var(--type-meta)) !important;
}

.related-posts__title {
	font-size: clamp(1.125rem, 3vw, 1.3125rem) !important;
	font-weight: 800 !important;
}

.related-post__title {
	font-size: var(--reader-card-title) !important;
	font-weight: 700 !important;
	line-height: 1.45 !important;
}

/* ═══════════════════════════════════════════
   3. Découverte — cartes plus scannables
   ═══════════════════════════════════════════ */
.front-page .home-feed-item a,
.front-page .home-highlight-card a,
.front-page .home-tri-list-item a {
	text-decoration: none;
}

.front-page .home-feed-item a:focus-visible,
.front-page .home-highlight-card a:focus-visible,
.front-page .home-mosaic-tile a:focus-visible {
	outline: 2px solid var(--news-gold, #ffcc00);
	outline-offset: 2px;
	border-radius: 4px;
}

body.single-lachtv .single-post .category-badge {
	font-size: max(var(--reader-meta-min), var(--type-meta));
	font-weight: 700;
	letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════
   4. Réduire les distractions
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
	.site-main.front-page > .home-reveal,
	.site-main.front-page .home-category-sections > .home-reveal {
		--mag-reveal-distance: 8px;
		filter: none !important;
		transform: translateY(8px) scale(1) !important;
	}

	.site-main.front-page > .home-reveal.is-visible,
	.site-main.front-page .home-category-sections > .home-reveal.is-visible {
		transform: translateY(0) !important;
	}

	.front-page .home-premium-block:hover,
	.front-page .most-viewed-section:hover,
	.front-page .home-national-block:hover {
		transform: none !important;
		box-shadow: var(--news-shadow, 0 2px 14px rgba(26, 26, 26, 0.06)) !important;
	}

	.front-page a:hover .home-mosaic-tile-img,
	.front-page a:hover .most-viewed-card-img,
	.front-page a:hover .home-cat-featured-img {
		transform: none !important;
	}

	.home-youtube-banner {
		animation: none !important;
	}

	/* Header visible pendant la lecture article */
	body.single-lachtv .site-header--magazine.is-hidden {
		transform: translateY(0) !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}
}

/* Mode lecture article — moins de pression conversion */
body.single-lachtv .notification-popup {
	display: none !important;
}

body.single-lachtv .home-youtube-banner {
	display: none !important;
}

/* ═══════════════════════════════════════════
   5. Parcours lecteur — fil d'Ariane + related
   ═══════════════════════════════════════════ */
body.single-lachtv .lachtv-breadcrumb {
	margin-bottom: clamp(8px, 1.5vw, 12px);
}

body.single-lachtv .related-posts--lachtv {
	margin-top: clamp(20px, 3vw, 28px);
	padding-top: clamp(16px, 2.5vw, 22px);
	border-top: 1px solid var(--news-border-subtle);
}

body.single-lachtv .related-posts__header {
	margin-bottom: 12px;
}

/* Dark mode */
body.dark-mode.single-lachtv .single-post .entry-content blockquote {
	background: rgba(255, 255, 255, 0.04);
	border-inline-start-color: var(--news-gold, #ffcc00);
}

body.dark-mode.single-lachtv .single-post .entry-content h2 {
	border-top-color: var(--news-border);
}

@media (prefers-reduced-motion: reduce) {
	.site-main.front-page > .home-reveal,
	.site-main.front-page .home-category-sections > .home-reveal {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		transition: none !important;
	}
}
