/* Seneco — page article : confort de lecture (inspiration grands quotidiens). */

.lj-story {
	--fs: 20px;          /* taille du texte, modifiable par A− / A+ */
	--measure: 680px;    /* ~70 caractères par ligne */
	--rail: 64px;
	--side: 300px;
	--gap: 44px;
}
.lj-story[data-fs="0"] { --fs: 17px; }
.lj-story[data-fs="1"] { --fs: 18.5px; }
.lj-story[data-fs="3"] { --fs: 21.5px; }
.lj-story[data-fs="4"] { --fs: 23px; }

/* ---------- En-tête ---------- */
.lj-story-head { padding-top: 34px; }
.lj-story-head > * { max-width: 820px; }
.lj-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.lj-crumb a:hover { color: var(--ac); text-decoration: underline; }
.lj-crumb span { color: #B5B9BF; }
.lj-story-head .lj-kick { margin: 16px 0 0; }
.lj-story-title { font-size: 46px; line-height: 1.1; font-weight: 600; letter-spacing: -0.018em; color: var(--ink); margin: 14px 0 0; text-wrap: balance; }
.lj-story-head .lj-kick + .lj-story-title { margin-top: 6px; }
.lj-story-lead { font-family: "Source Serif 4", Georgia, serif; font-size: 22px; line-height: 1.5; color: #2B2F36; margin: 18px 0 0; text-wrap: pretty; }

.lj-story-by { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 820px; }
.lj-story-by-txt { min-width: 0; }
.lj-au-photo.is-desk { background: var(--ac); }
.lj-story-role { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.lj-story-by .lj-dates { margin: 3px 0 0; }
.lj-story-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.lj-story-read { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.lj-fontsize { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lj-fontsize button { width: 38px; height: 34px; border: 0; background: #fff; color: var(--ink); font-family: "Source Serif 4", Georgia, serif; font-size: 16px; font-weight: 600; cursor: pointer; }
.lj-fontsize button + button { border-left: 1px solid var(--line); font-size: 19px; }
.lj-fontsize button sup { font-family: "Inter", sans-serif; font-size: 10px; margin-left: 1px; }
.lj-fontsize button:hover { background: var(--soft); color: var(--ac); }
.lj-fontsize button:disabled { color: #C4C7CC; cursor: default; background: #fff; }
.lj-story-head > .lj-share2 { margin-top: 16px; }

/* ---------- Image principale ---------- */
.lj-story-hero { max-width: 1200px; margin: 30px auto 0; padding: 0 24px; }
.lj-story-hero img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; border-radius: 3px; }
.lj-story-hero figcaption { font-size: 13px; line-height: 1.5; color: var(--muted); padding: 10px 0 0; max-width: var(--measure); }

/* ---------- Grille : rail de partage | texte | colonne ---------- */
.lj-story-grid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(var(--side), 1fr); gap: var(--gap); margin-top: 38px; align-items: stretch; }
.lj-story-rail { display: none; }
.lj-story-body { min-width: 0; }
.lj-story-side { min-width: 0; max-width: 340px; justify-self: end; width: 100%; }
.lj-story-side-in { position: sticky; top: 84px; }
.lj-story-side .lj-rs-pop li { grid-template-columns: 34px 1fr; padding: 13px 0; }
.lj-story-side .lj-rs-pop h3 { font-size: 15.5px; }

@media (min-width: 1200px) {
	.lj-story-head > *, .lj-story-by { margin-left: calc(var(--rail) + var(--gap)); }
	.lj-story-hero { padding-left: calc(24px + var(--rail) + var(--gap)); }
	.lj-story-grid { grid-template-columns: var(--rail) minmax(0, var(--measure)) minmax(var(--side), 1fr); }
	.lj-story-rail { display: block; height: 100%; }
	.lj-story-rail-in { position: sticky; top: 96px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
	.lj-story-rail-h { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 6px; }
	.lj-story-rail .lj-share2-btns { flex-direction: column; }
}

/* ---------- Texte ---------- */
.lj-prose { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-size: var(--fs); line-height: 1.72; color: #1D2025; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.lj-prose > * { margin: 0 0 1.25em; }
.lj-prose p { text-wrap: pretty; }
.lj-prose strong, .lj-prose b { font-weight: 600; color: var(--ink); }
.lj-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ac); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.lj-prose a:hover { color: var(--ac); }
.lj-prose h2 { font-family: "Fraunces", Georgia, serif; font-size: 1.35em; line-height: 1.25; font-weight: 600; color: var(--ink); margin: 1.8em 0 .6em; letter-spacing: -0.01em; scroll-margin-top: 90px; }
.lj-prose h2::before { content: ""; display: block; width: 32px; height: 3px; background: var(--ac); margin-bottom: 14px; }
.lj-prose h3 { font-family: "Inter", system-ui, sans-serif; font-size: .95em; line-height: 1.35; font-weight: 700; color: var(--ink); margin: 1.6em 0 .5em; scroll-margin-top: 90px; }
.lj-prose h4 { font-family: "Inter", system-ui, sans-serif; font-size: .82em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 1.6em 0 .4em; }
.lj-prose ul, .lj-prose ol { padding-left: 1.3em; }
.lj-prose li { margin-bottom: .45em; padding-left: .2em; }
.lj-prose ul li::marker { color: var(--ac); }
.lj-prose ol li::marker { color: var(--ac); font-family: "Inter", sans-serif; font-weight: 700; font-size: .85em; }
.lj-prose blockquote { position: relative; margin: 1.8em 0; padding: 0 0 0 26px; border-left: 3px solid var(--ac); font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.18em; line-height: 1.45; color: var(--ink); }
.lj-prose blockquote p { margin: 0 0 .5em; }
.lj-prose blockquote cite { display: block; font-family: "Inter", sans-serif; font-style: normal; font-size: .6em; font-weight: 600; color: var(--muted); margin-top: 8px; }
.lj-prose img { display: block; max-width: 100%; height: auto; border-radius: 3px; }
.lj-prose figure, .lj-prose .wp-caption { margin: 1.8em 0; max-width: 100%; }
.lj-prose figcaption, .lj-prose .wp-caption-text { font-family: "Inter", sans-serif; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.lj-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 45%; }
.lj-prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 45%; }
.lj-prose .aligncenter { margin-left: auto; margin-right: auto; }
.lj-prose table { display: block; overflow-x: auto; border-collapse: collapse; font-family: "Inter", sans-serif; font-size: 14.5px; line-height: 1.5; }
.lj-prose th, .lj-prose td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.lj-prose th { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); }
.lj-prose hr { border: 0; text-align: center; margin: 2em 0; }
.lj-prose hr::after { content: "• • •"; color: var(--muted); letter-spacing: .5em; }
.lj-prose iframe, .lj-prose video { max-width: 100%; }
.lj-prose .lj-ad { margin: 2em 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: "Inter", sans-serif; }

/* Encart « À lire aussi » dans le texte */
.lj-inrel { margin: 2em 0; padding: 14px 0 16px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font-family: "Inter", sans-serif; }
.lj-inrel-h { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ac); margin-bottom: 10px; }
.lj-prose .lj-inrel a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; text-decoration: none; }
.lj-prose .lj-inrel a:not(:has(img)) { grid-template-columns: 1fr; }
.lj-inrel img { width: 96px; height: 68px; object-fit: cover; border-radius: 3px; }
.lj-inrel-t { font-family: "Fraunces", Georgia, serif; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.lj-prose .lj-inrel a:hover .lj-inrel-t { color: var(--ac); }

/* Fin de l'article */
.lj-story-end { margin: 6px 0 0; }
.lj-story-end span { display: inline-block; width: 9px; height: 9px; background: var(--ac); }
.lj-story-body .lj-art-foot { margin-top: 26px; }

/* Newsletter en fin d'article */
.lj-story-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; align-items: center; margin-top: 34px; padding: 26px 28px; background: var(--dark); color: #C4C8CF; border-radius: 5px; }
.lj-story-cta .lj-kick { color: #FF8A9B; margin-bottom: 4px; }
.lj-story-cta h2 { font-size: 26px; font-weight: 600; color: #fff; margin: 0 0 6px; }
.lj-story-cta p { font-size: 14px; line-height: 1.55; margin: 0; }
.lj-story-cta .lj-field input { border-color: #2B2F37; }
.lj-story-cta .lj-news-msg { color: #8FE3AE; }

/* À lire aussi (bas de page) */
.lj-story-more { background: var(--soft); margin-top: 60px; padding: 46px 0 54px; border-top: 1px solid var(--line); }
.lj-more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 26px; }
.lj-more-grid .lj-fcard .lj-ph { height: 160px; }
.lj-more-grid .lj-fcard h3 { font-size: 18px; }
.lj-story-more + .lj-foot { margin-top: 0; }

/* ---------- Sommaire (articles avec intertitres) ---------- */
.lj-toc { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.lj-toc .lj-rs-h { font-size: 19px; }
.lj-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.lj-toc li { counter-increment: toc; }
.lj-toc a { display: grid; grid-template-columns: 26px 1fr; padding: 8px 0 8px 10px; border-left: 2px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--body); }
.lj-toc a::before { content: counter(toc, decimal-leading-zero); font-family: "Fraunces", serif; font-style: italic; color: var(--muted); }
.lj-toc a:hover { color: var(--ink); }
.lj-toc a.is-current { border-left-color: var(--ac); color: var(--ink); font-weight: 600; }
.lj-toc a.is-current::before { color: var(--ac); }

/* ---------- Barre de lecture collante ---------- */
.lj-readbar { position: fixed; top: 0; left: 0; right: 0; z-index: 70; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--line); transform: translateY(-105%); transition: transform .25s ease; }
.lj-readbar.is-visible { transform: none; }
.admin-bar .lj-readbar { top: 32px; }
.lj-readbar-in { display: flex; align-items: center; gap: 18px; height: 54px; }
.lj-readbar-brand { font-size: 23px; font-weight: 900; color: var(--ink); flex: 0 0 auto; }
.lj-readbar-brand span { color: var(--ac); }
.lj-readbar-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 18px; border-left: 1px solid var(--line); }
.lj-readbar .lj-share2 { flex: 0 0 auto; }
.lj-readbar .lj-sbtn { width: 34px !important; height: 34px; }
.lj-readbar .lj-sbtn.is-mail, .lj-readbar .lj-sbtn.is-telegram { display: none; }
.lj-readbar-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.lj-readbar-progress span { display: block; height: 100%; width: 0; background: var(--ac); }
@media (prefers-reduced-motion: reduce) { .lj-readbar { transition: none; } }

/* ---------- Tablette ---------- */
@media (max-width: 1000px) {
	.lj-story-head > *, .lj-story-by { max-width: var(--measure); margin-left: auto; margin-right: auto; }
	.lj-story-hero figcaption { margin: 0 auto; }
	.lj-story-grid { grid-template-columns: minmax(0, var(--measure)); justify-content: center; }
	.lj-story-side { max-width: none; justify-self: stretch; }
	.lj-story-side-in { position: static; }
	.lj-toc { display: none; }
	.lj-more-grid { grid-template-columns: 1fr 1fr; }
	.lj-story-title { font-size: 38px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.lj-story { --fs: 18px; }
	.lj-story[data-fs="0"] { --fs: 16px; }
	.lj-story[data-fs="1"] { --fs: 17px; }
	.lj-story[data-fs="3"] { --fs: 19.5px; }
	.lj-story[data-fs="4"] { --fs: 21px; }
	.lj-story-head { padding-top: 22px; }
	.lj-story-title { font-size: 30px; line-height: 1.14; }
	.lj-story-lead { font-size: 18.5px; line-height: 1.5; }
	.lj-story-by { flex-wrap: wrap; row-gap: 12px; }
	.lj-story-by-txt { flex: 1 1 calc(100% - 56px); }
	.lj-story-tools { margin-left: 56px; width: calc(100% - 56px); justify-content: space-between; }
	.lj-story-hero { padding: 0; margin-top: 22px; }
	.lj-story-hero img { border-radius: 0; max-height: 420px; }
	.lj-story-hero figcaption { padding: 8px 16px 0; }
	.lj-story-grid { margin-top: 26px; }
	.lj-prose { line-height: 1.68; hyphens: auto; -webkit-hyphens: auto; }
	.lj-prose .alignleft, .lj-prose .alignright { float: none; margin: 1.4em 0; max-width: 100%; }
	.lj-story-cta { grid-template-columns: 1fr; padding: 22px 18px; }
	.lj-more-grid { grid-template-columns: 1fr; gap: 22px; }
	.lj-more-grid .lj-fcard .lj-ph { height: 190px; }
	.lj-readbar-in { height: 48px; gap: 12px; }
	.lj-readbar-brand { font-size: 20px; }
	.lj-readbar-title { font-size: 13px; padding-left: 12px; }
	.lj-readbar .lj-share2 { display: none; }
	.admin-bar .lj-readbar { top: 0; }
}

/* ---------- Impression ---------- */
@media print {
	.lj-markets, .lj-top, .lj-nav, .lj-breaking, .lj-readbar, .lj-story-rail, .lj-story-side, .lj-share2, .lj-ad, .lj-story-cta, .lj-comments, .lj-story-more, .lj-foot, .lj-fontsize, .lj-inrel { display: none !important; }
	.lj-story-grid { display: block; }
	.lj-prose { font-size: 12pt; color: #000; }
	.lj-story-hero img { max-height: 9cm; }
}

/* Mention de source héritée de l'ancien site (<div class="access">) */
.lj-prose div.access { font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lj-prose div.access::before { content: "Source : "; font-weight: 400; text-transform: none; letter-spacing: 0; }
