/* Blog : articles importés de BabyLoveGrowth (tool/blog/sync_blog.py),
   affichés avec les couleurs et les polices du site. Les jetons (--bg,
   --text, --primary…) viennent de /site/guide/guide.css, clair et sombre. */

.cfb { min-height: 100vh; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); }
.cfb a { color: var(--primary); }
.cfb header.top { position: sticky; top: 0; z-index: 10; background: rgb(var(--bg-rgb) / .9); border-bottom: 1px solid rgb(var(--ink) / .08); backdrop-filter: blur(14px); }
.cfb nav { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.cfb nav a.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; text-decoration: none; }
.cfb nav a.brand img { width: 24px; height: 24px; border-radius: 6px; }
.cfb nav .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.cfb nav .right a { padding: 6px 10px; border-radius: 6px; color: var(--text); font-size: 12.5px; background: rgb(var(--ink) / .06); text-decoration: none; }
.cfb main { width: min(100% - 32px, 760px); margin: 0 auto; padding: 32px 0 64px; }
.cfb main.wide { width: min(100% - 32px, 1040px); }
.cfb .crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.cfb .crumb a { color: var(--muted); text-decoration: none; }
.cfb .kicker { margin: 0 0 10px; color: var(--primary); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.cfb h1 { margin: 0; font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.cfb .meta { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.cfb .hero { display: block; width: 100%; height: auto; margin: 24px 0 8px; border-radius: 14px; border: 1px solid rgb(var(--ink) / .08); }

/* Contenu de l'article */
.cfb .article { margin-top: 24px; }
.cfb .article h2 { margin: 2.2em 0 .6em; font-size: 1.45rem; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.cfb .article h3 { margin: 1.8em 0 .5em; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.cfb .article h4 { margin: 1.5em 0 .4em; font-size: 1rem; font-weight: 600; }
.cfb .article p, .cfb .article li { color: rgb(var(--ink) / .86); }
.cfb .article p { margin: 0 0 1.1em; }
.cfb .article ul, .cfb .article ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.cfb .article li { margin: .35em 0; }
.cfb .article strong { color: var(--text); }
.cfb .article img { max-width: 100%; height: auto; border-radius: 10px; }
.cfb .article blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 3px solid var(--primary); background: var(--card); border-radius: 0 10px 10px 0; color: var(--muted); }
.cfb .article table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14px; }
.cfb .article th, .cfb .article td { padding: 10px 12px; border-bottom: 1px solid rgb(var(--ink) / .1); text-align: left; vertical-align: top; }
.cfb .article th { color: var(--muted); font-weight: 600; }
.cfb .article code { font-family: "Roboto Mono", ui-monospace, monospace; font-size: .9em; padding: 1px 5px; border-radius: 5px; background: rgb(var(--ink) / .07); }
.cfb .article pre { overflow-x: auto; padding: 14px; border-radius: 10px; background: var(--card); }
.cfb .article hr { border: 0; border-top: 1px solid rgb(var(--ink) / .1); margin: 2em 0; }

/* Appel à l'action en fin d'article */
.cfb .cta { margin-top: 44px; padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid rgb(var(--ink) / .08); }
.cfb .cta h2 { margin: 0 0 6px; font-size: 1.2rem; }
.cfb .cta p { margin: 0 0 16px; color: var(--muted); }
.cfb .cta .buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cfb .cta a { padding: 11px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.cfb .cta a.main { background: var(--primary); color: #fff; }
.cfb .cta a.alt { background: rgb(var(--ink) / .07); color: var(--text); }

/* Liste des articles */
.cfb .lead { max-width: 640px; margin: 14px 0 0; color: var(--muted); }
.cfb .filters { display: flex; gap: 8px; margin: 28px 0 18px; }
.cfb .filters button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgb(var(--ink) / .14); background: transparent; color: var(--text); cursor: pointer; }
.cfb .filters button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.cfb .posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cfb .posts li[hidden] { display: none; }
.cfb .post { display: flex; flex-direction: column; height: 100%; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid rgb(var(--ink) / .08); color: var(--text); text-decoration: none; }
.cfb .post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: rgb(var(--ink) / .05); }
.cfb .post .body { padding: 14px 16px 16px; }
.cfb .post h2 { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.35; font-weight: 600; }
.cfb .post p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.cfb .post .when { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* Encadrés d'appel insérés dans les articles par BabyLoveGrowth
   (data-blg-cta), refaits par sync_blog.py avec les couleurs du site. */
.cfb .article .cfb-promo { position: relative; margin: 28px 0; padding: 20px 20px 20px 24px; border-radius: 16px; background: var(--card); border: 1px solid rgb(var(--ink) / .1); overflow: hidden; }
.cfb .article .cfb-promo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--primary); }
.cfb .article .cfb-promo p { margin: 0; }
.cfb .article .cfb-promo-brand { display: inline-block; margin-bottom: 10px !important; padding: 3px 10px; border-radius: 999px; background: rgb(77 159 255 / .14); color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cfb .article .cfb-promo-title { color: var(--text); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.cfb .article .cfb-promo-text { margin-top: 8px !important; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.cfb .article .cfb-promo-btn { display: inline-block; margin-top: 16px; padding: 10px 16px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.cfb .article .cfb-promo-btn:hover { filter: brightness(1.08); }
