/* ==========================================================================
   ESE — Pages de lecture (texte, épisode, conseil, actualité).
   Ambiance selon l’espace : sombre (créatif), bleu (pro), clair (actualités).
   ========================================================================== */

/* ---------- En-tête ---------- */
.read-hero { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 96px; }
.read-hero--dark { color: #fff; padding-bottom: 120px; }
.read-hero--dark .waves--hero { bottom: -30px; }
.read-hero--blue { background: var(--ese-bleu-pro); color: #fff; }
.read-hero--light { border-bottom: 1px solid var(--ese-bordure); }
.read-hero--blue::before, .read-hero--light::before {
	content: "";
	position: absolute;
	inset: 0 0 0 58%;
	z-index: -1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%23fff'/%3E%3C/svg%3E");
	opacity: .16;
}
.read-hero--light::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%231F6FB2'/%3E%3C/svg%3E"); }
.read-hero .back { margin-bottom: 28px; }
.read-hero--dark .back, .read-hero--blue .back { color: #fff; }
.read-hero--light .back { color: var(--ese-texte-3); opacity: 1; }
.read-hero--blue .eyebrow { color: var(--ese-bleu-pale); }
.read-hero--light .eyebrow { color: var(--ese-bleu-pro); }
.read-hero__title { font-size: clamp(36px, 5.2vw, 72px); max-width: 960px; margin-top: 16px; }
.read-hero--light .read-hero__title { color: var(--ese-texte); }

.read-facts { display: flex; flex-wrap: wrap; gap: 16px 44px; margin: 36px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); max-width: 960px; }
.read-facts dt { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ese-texte-4); }
.read-facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.read-hero--blue .read-facts dt { color: var(--ese-bleu-pale); }
.read-hero--light .read-facts { border-top-color: var(--ese-bordure); }
.read-hero--light .read-facts dt { color: var(--ese-texte-3); }
.read-hero--dark .read-facts dd { color: var(--ese-azur); }

.read-actions { margin-top: 28px; }
.read-listen { gap: 10px; }
.read-listen .listen__icon--play { margin-left: 0; }
.read-listen .listen__icon--pause { gap: 3px; }
.read-listen .listen__icon--pause i { width: 3px; height: 12px; }
.read-copy {
	min-height: 46px;
	padding: 0 18px;
	border-radius: var(--radius-btn);
	border: 1.5px solid rgba(255, 255, 255, .3);
	background: transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	transition: border-color var(--dur-sm), background-color var(--dur-sm), color var(--dur-sm);
}
.read-copy:hover { border-color: #fff; }
.read-hero--light .read-copy { border-color: var(--ese-bordure-2); color: var(--ese-texte-2); background: #fff; }
.read-hero--light .read-copy:hover { border-color: var(--ese-bleu-pro); color: var(--ese-bleu-pro); }
.copy-btn__done { display: none; }
.copy-btn.is-copied .copy-btn__idle { display: none; }
.copy-btn.is-copied .copy-btn__done { display: inline; }

/* ---------- Colonne de lecture + rail ---------- */
.read-sheet { padding-top: 64px; }
.read-sheet.sheet { padding: 64px 0 0; }
.read-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); column-gap: 56px; }
.read-rail { grid-column: 1; justify-self: end; align-self: start; position: sticky; top: calc(var(--admin-bar) + 100px); width: 150px; }
.read-rail__label { font-size: 10.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ese-bleu-pro); }
.read-rail__num { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--ese-bleu-pro); margin-top: 8px; font-variant-numeric: tabular-nums; }
.read-rail__progress { height: 2px; margin-top: 20px; background: var(--ese-bordure-2); }
.read-rail__progress span { display: block; height: 100%; background: var(--ese-bleu-pro); transform: scaleX(var(--read, 0)); transform-origin: left; }
.read-rail__by { margin-top: 18px; font-size: 12.5px; line-height: 1.5; color: var(--ese-texte-3); }
.read-rail__by span { color: var(--ese-bleu-pro); font-weight: 600; }
.read-main { grid-column: 2; padding-bottom: 72px; min-width: 0; }

.read-epigraph {
	position: relative;
	margin: 0 0 40px;
	padding-left: 24px;
	font-size: 24px;
	font-style: italic;
	line-height: 1.45;
	color: var(--ese-texte);
	text-wrap: pretty;
}
.read-epigraph::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 2px; background: var(--ese-bleu-pro); }

.read-content { padding-bottom: 0; font-size: 18px; line-height: 1.8; color: var(--ese-texte); }
.read-content h2 { font-size: 26px; margin-top: 2em; }
.read-content h3 { font-size: 20px; margin-top: 1.6em; }
.read-content a { text-underline-offset: 3px; }
.read-content--lit { font-size: 19.5px; line-height: 1.85; }
/* Lettrine pour les textes littéraires */
.read-content--lit > p:first-child::first-letter {
	float: left;
	font-size: 4.1em;
	line-height: .82;
	font-weight: 700;
	margin: .06em .12em 0 0;
	color: var(--ese-bleu-pro);
}

.author {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 56px;
	padding: 18px 22px;
	border: 1px solid var(--ese-bordure);
	border-radius: var(--radius-panel);
	background: #fff;
}
.author__mark { width: 48px; height: 48px; border-radius: 12px; background: var(--ese-bleu-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.author__mark .ese-mark__cut, .author__mark .ese-mark__cut-line { fill: var(--ese-bleu-tint); stroke: var(--ese-bleu-tint); }
.author__mark .ese-mark__drop { fill: var(--ese-bleu-pro); }
.author__mark .ese-mark__stand { stroke: var(--ese-sombre-creatif); }
.author__text strong { display: block; font-size: 15.5px; }
.author__text strong span { color: var(--ese-bleu-pro); }
.author__text small { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ese-texte-3); margin-top: 3px; }
.author .link { margin-left: auto; }

/* ---------- Épisodes voisins ---------- */
.ep-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 96px; }
.ep-nav__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 160px;
	padding: 28px 32px;
	border: 1px solid var(--ese-bordure);
	border-radius: 20px;
	background: #fff;
	color: var(--ese-texte);
	text-decoration: none;
	transition: transform var(--dur-md) var(--ease-out), box-shadow var(--dur-md) var(--ease-out), border-color var(--dur-sm);
}
a.ep-nav__card:hover { color: var(--ese-texte); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(38, 41, 46, .09); border-color: var(--ese-bleu-pro); }
.ep-nav__card small { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ese-texte-3); }
.ep-nav__num { font-size: 44px; font-weight: 700; line-height: 1; color: var(--ese-bleu-pro); font-variant-numeric: tabular-nums; margin-top: 6px; transition: transform var(--dur-md) var(--ease-out); }
.ep-nav__card strong { font-size: 20px; line-height: 1.3; }
.ep-nav__card--next { align-items: flex-end; text-align: right; grid-column: 2; }
a.ep-nav__card--prev:hover .ep-nav__num { transform: translateX(-6px); }
a.ep-nav__card--next:hover .ep-nav__num { transform: translateX(6px); }
.ep-nav__card.is-soon { background: transparent; border: 1.5px dashed var(--ese-bordure-2); color: var(--ese-texte-3); }
.ep-nav__card.is-soon .ep-nav__num { color: var(--ese-texte-4); }
.ep-nav__card .eps__badge { margin-top: 6px; }

/* ---------- À lire aussi ---------- */
.read-related { padding-top: 24px; padding-bottom: 96px; }
.read-related .eyebrow { color: var(--ese-bleu-pro); }
.read-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.read-layout { grid-template-columns: minmax(0, 720px); justify-content: center; }
	.read-rail { display: none; }
	.read-main { grid-column: 1; }
	.read-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.read-hero { padding: 36px 0 64px; }
	.read-hero--dark { padding-bottom: 88px; }
	.read-facts { gap: 14px 28px; }
	.read-facts dd { font-size: 15.5px; }
	.read-content { font-size: 17px; }
	.read-content--lit { font-size: 18px; }
	.read-epigraph { font-size: 20px; }
	.read-related__grid, .ep-nav { grid-template-columns: 1fr; }
	.ep-nav__card--next { grid-column: auto; }
	.author { flex-wrap: wrap; }
}

/* ---------- Liens « Partager » / « Commenter » de l’en-tête ---------- */
.read-jump { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.read-hero--dark .read-jump, .read-hero--blue .read-jump { color: #fff; }
.read-hero--dark .read-jump:hover, .read-hero--blue .read-jump:hover { color: #fff; }

/* ---------- Barre de partage ---------- */
.share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px 20px;
	margin-top: 48px;
	padding: 18px 0;
	border-top: 1px solid var(--ese-bordure);
	border-bottom: 1px solid var(--ese-bordure);
}
.share__label { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ese-texte-3); }
.share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__list li:has(> [hidden]) { display: none; }
.share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--ese-bordure-2);
	border-radius: 50%;
	background: #fff;
	color: var(--ese-texte);
	text-decoration: none;
	transition: background-color var(--dur-sm), color var(--dur-sm), border-color var(--dur-sm), transform var(--dur-xs);
}
.share__btn:hover { background: var(--ese-bleu-pro); border-color: var(--ese-bleu-pro); color: #fff; }
.share__btn:active { transform: scale(.94); }
.share__copy { border-radius: 22px; padding: 0 16px 0 14px; font-size: 13.5px; font-weight: 600; }
.share__copy.is-copied { background: var(--ese-bleu-tint); border-color: var(--ese-bleu-pro); color: var(--ese-bleu-pro); }
.share__btn--native { border-color: var(--ese-bleu-pro); color: var(--ese-bleu-pro); }

/* ---------- Commentaires ---------- */
.comments { margin-top: 64px; scroll-margin-top: 96px; }
.comments__head { padding-bottom: 18px; border-bottom: 1.5px solid var(--ese-texte); }
.comments__head .eyebrow { color: var(--ese-bleu-pro); }
.comments__title { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.01em; margin-top: 8px; }
.comments__list, .comments__list .children { list-style: none; margin: 0; padding: 0; }
.comments__list .children { margin-left: 56px; border-left: 2px solid var(--ese-bordure); padding-left: 20px; }
.cmt { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--ese-bordure); }
.cmt__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ese-bleu-tint);
	color: var(--ese-bleu-pro);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .5px;
}
.is-author > .cmt .cmt__avatar { background: var(--ese-bleu-pro); color: #fff; }
.cmt__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.cmt__name { font-size: 15.5px; }
.cmt__badge { padding: 2px 8px; border-radius: 20px; background: var(--ese-bleu-pro); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cmt__date { font-size: 12.5px; color: var(--ese-texte-3); text-decoration: none; }
.cmt__date:hover { color: var(--ese-bleu-pro); }
.cmt__pending { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: var(--ese-bleu-tint); color: var(--ese-bleu-pro); font-size: 13.5px; }
.cmt__text { margin-top: 8px; font-size: 16px; line-height: 1.7; color: var(--ese-texte); }
.cmt__text p + p { margin-top: .8em; }
.cmt__reply { margin-top: 10px; }
.cmt__reply a { font-size: 13px; font-weight: 600; color: var(--ese-bleu-pro); text-decoration: none; }
.cmt__reply a::before { content: "↳ "; }
.cmt__reply a:hover { text-decoration: underline; text-underline-offset: 3px; }

.comments__form { margin-top: 32px; padding: 28px 32px 32px; background: #fff; border: 1px solid var(--ese-bordure); border-radius: var(--radius-panel); }
.comments__list + .comments__form, .comments__list ~ .comments__form { margin-top: 40px; }
.comment-reply-title { font-size: 21px; }
.comment-reply-title small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; }
.comment-reply-title small a { color: var(--ese-texte-3); }
.comment-notes, .logged-in-as { font-size: 13.5px; color: var(--ese-texte-3); margin: 6px 0 20px; }
.comment-form { gap: 16px; }
.comment-form p { margin: 0; }
.comment-form .req { color: var(--ese-bleu-pro); }
.comment-form textarea { min-height: 140px; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ese-texte-3); }
.comment-form-cookies-consent input { margin-top: 3px; accent-color: var(--ese-bleu-pro); }
.comment-form-cookies-consent label { font-weight: 400 !important; margin: 0 !important; font-size: 13px !important; }
.comment-form .form-submit { margin-top: 4px; }
.comments__list .comment-respond { margin: 16px 0 24px 60px; padding: 24px; background: #fff; border: 1px solid var(--ese-bordure); border-radius: var(--radius-panel); }
.comments__closed { margin-top: 20px; font-size: 14px; color: var(--ese-texte-3); }
.comments .nav-links { display: flex; gap: 8px; margin-top: 20px; }

@media (max-width: 767px) {
	.comments__list .children { margin-left: 16px; padding-left: 14px; }
	.comments__form { padding: 22px 20px; }
	.comments__list .comment-respond { margin-left: 0; }
}
