/* Blog / articles du cocon SEO — lecture éditoriale + composants (FAQ, CTA, comparatif). */

.post-wrap { max-width: 760px; margin-inline: auto; }
.blog-shell { max-width: var(--wrap); }

/* Fil d'Ariane (remonte le cocon) */
.blog-crumb { margin: 20px 0 26px; font-size: 0.85rem; }
.blog-crumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; }
.blog-crumb li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.blog-crumb li:not(:last-child)::after { content: "/"; color: var(--faint); }
.blog-crumb a { color: var(--brass-d); border: 0; }
.blog-crumb a:hover { text-decoration: underline; }
.blog-crumb [aria-current="page"] { color: var(--faint); }

/* Mise en page 2 colonnes : volet gauche + contenu */
.blog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 46px; align-items: start; }
.blog-side { position: sticky; top: 88px; }
.blog-side-nav { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.blog-side-head { display: block; padding: 14px 16px; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--brass) 6%, var(--surface)); }
.blog-side-nav ul { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.blog-side-nav li a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.92rem; color: var(--muted); line-height: 1.4; border: 0; }
.blog-side-nav li a:hover { background: var(--bg); color: var(--ink); }
.blog-side-nav li.is-active a { background: var(--brass-d); color: #fff; font-weight: 600; }
.blog-side-nav .side-count { float: right; font-size: 0.78rem; color: var(--faint); font-weight: 400; }
.blog-side-nav li.is-active .side-count { color: rgba(255,255,255,.75); }

/* Article dans la grille : aligné à gauche, largeur de lecture confortable */
.blog-layout .post-single { min-width: 0; }
.blog-layout .post-head { text-align: left; margin-top: 0; }
.blog-layout .post-hero img { aspect-ratio: 16 / 8; }
.blog-layout .post-content { max-width: 720px; }
.blog-head--left { text-align: left; margin: 0 0 28px; }

@media (max-width: 900px) {
	.blog-layout { grid-template-columns: 1fr; gap: 22px; }
	.blog-side { position: static; order: 2; }
	.blog-layout .post-single, .blog-main { order: 1; }
	.blog-side-nav ul { max-height: 260px; overflow-y: auto; }
}
.post-head { text-align: center; margin: clamp(24px, 4vw, 44px) 0 22px; }
.post-cat { display: inline-block; margin-bottom: 8px; border: 0; }
.post-h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.1; color: var(--ink); margin: 0 0 12px; }
.post-meta { color: var(--faint); font-size: 0.9rem; }
.post-hero { margin: 0 0 clamp(24px, 4vw, 40px); }
.post-hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }

/* Encadré « En bref » — réponse directe en tête d'article */
.post-brief {
	margin: 0 0 clamp(24px, 4vw, 34px); padding: 18px 22px;
	background: color-mix(in srgb, var(--brass) 9%, var(--surface));
	border: 1px solid color-mix(in srgb, var(--brass) 30%, var(--line));
	border-left: 4px solid var(--brass-d); border-radius: var(--radius);
}
.post-brief-label {
	display: inline-block; margin-bottom: 6px; font-family: var(--font-sans);
	font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-d);
}
.post-brief p { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.6; }

/* Sources & pour aller plus loin */
.post-sources { margin: 2.4em 0 0; padding-top: 1.6em; border-top: 1px solid var(--line); }
.post-sources h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 12px; color: var(--ink); }
.post-sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.post-sources li { position: relative; padding-left: 22px; font-size: 0.96rem; }
.post-sources li::before { content: "\2197"; position: absolute; left: 0; top: 1px; color: var(--brass-d); }
.post-sources a { color: var(--brass-d); border-bottom: 1px solid var(--brass); }
.post-sources a:hover { color: var(--ink); }

/* Glossaire (accordéon replié) */
.post-glossary { margin: 1.8em 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.post-glossary summary {
	list-style: none; cursor: pointer; padding: 16px 20px; position: relative;
	font-family: var(--font-display); font-size: 1.1rem; color: var(--ink);
}
.post-glossary summary::-webkit-details-marker { display: none; }
.post-glossary summary::after {
	content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
	font-size: 1.4rem; color: var(--brass-d); line-height: 1;
}
.post-glossary[open] summary::after { content: "\2013"; }
.post-glossary dl { margin: 0; padding: 4px 20px 18px; }
.post-glossary dt { font-family: var(--font-sans); font-weight: 700; color: var(--ink); margin-top: 14px; }
.post-glossary dd { margin: 4px 0 0; color: var(--muted); line-height: 1.6; font-size: 0.96rem; }

/* Corps d'article */
.post-content { font-size: 1.06rem; line-height: 1.75; color: var(--ink); }
.post-content > * + * { margin-top: 1.15em; }
.post-content h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin-top: 1.8em; color: var(--ink); scroll-margin-top: 92px; }
.post-content h3 { font-family: var(--font-display); font-size: 1.25rem; margin-top: 1.5em; color: var(--ink); scroll-margin-top: 92px; }
.bleum-faq, .bleum-faq-title { scroll-margin-top: 92px; }
.post-content p { color: var(--ink); }
.post-content a { color: var(--brass-d); border-bottom: 1px solid var(--brass); }
.post-content a:hover { color: var(--ink); }
.post-content ul, .post-content ol { padding-left: 1.3em; color: var(--ink); }
.post-content li { margin: 0.4em 0; }
.post-content li::marker { color: var(--brass); }
.post-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brass); color: var(--muted); font-style: italic; font-size: 1.08rem; }
.post-content img { border-radius: var(--radius); height: auto; }
.post-content figure { margin: 1.6em 0; }
.post-content figcaption { font-size: 0.85rem; color: var(--faint); text-align: center; margin-top: 8px; }

/* Tableau comparatif */
.post-content .bleum-compare { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.96rem; display: block; overflow-x: auto; }
.bleum-compare th, .bleum-compare td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
.bleum-compare thead th { background: var(--surface); font-family: var(--font-sans); font-weight: 700; color: var(--ink); }
.bleum-compare tbody th { background: color-mix(in srgb, var(--brass) 8%, var(--bg)); font-weight: 600; white-space: nowrap; }
.bleum-compare tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }

/* Encart CTA commercial */
.bleum-cta-box {
	margin: 1.8em 0; padding: clamp(20px, 3vw, 28px);
	background: color-mix(in srgb, var(--brass) 10%, var(--surface));
	border: 1px solid color-mix(in srgb, var(--brass) 35%, var(--line));
	border-radius: var(--radius);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
}
.bleum-cta-box .bleum-cta-body { flex: 1 1 300px; }
.bleum-cta-box h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 6px; color: var(--ink); }
.bleum-cta-box p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.bleum-cta-box .btn { flex: 0 0 auto; }

/* Bloc FAQ (accordéon dépliant, en bas d'article) */
.bleum-faq { margin: 2.4em 0 0; padding-top: 1.6em; border-top: 1px solid var(--line); }
.bleum-faq-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 14px; color: var(--ink); }
.bleum-faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
	list-style: none; cursor: pointer; padding: 16px 34px 16px 0; position: relative;
	font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	font-size: 1.4rem; color: var(--brass-d); line-height: 1; transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--brass-d); }
.faq-a { padding: 0 0 18px; color: var(--muted); line-height: 1.7; }
.faq-a p { margin: 0 0 0.7em; }
.faq-a a { color: var(--brass-d); border-bottom: 1px solid var(--brass); }

/* Bandeau de fin d'article (tunnel commercial) */
.post-end { margin: clamp(40px, 6vw, 64px) 0 0; }
.post-end-inner {
	text-align: center; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); padding: clamp(28px, 4vw, 46px);
}
.post-end-inner h2 { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 4px 0 12px; color: var(--ink); }
.post-end-inner p { color: var(--muted); max-width: 52ch; margin: 0 auto 20px; }
.post-end-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 640px) {
	.bleum-cta-box { flex-direction: column; align-items: flex-start; }
}
