/* ─── Polices — celles de qernia.com, servies par le thème : aucun appel à Google (25/09) ─── */
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/gNMKW3F-SZuj7xmR-HYoEoeyxMI.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/gNMKW3F-SZuj7xmf-HYoEoey.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/gNMKW3F-SZuj7xmR-HYoEoeyxMI.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/gNMKW3F-SZuj7xmf-HYoEoey.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/gNMKW3F-SZuj7xmR-HYoEoeyxMI.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/gNMKW3F-SZuj7xmf-HYoEoey.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/gNMKW3F-SZuj7xmR-HYoEoeyxMI.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/gNMKW3F-SZuj7xmf-HYoEoey.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwWa-xo6eeI7fM.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwV6-xo6eeIw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwWa-xo6eeI7fM.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwV6-xo6eeIw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwWa-xo6eeI7fM.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwV6-xo6eeIw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Variables ──────────────────────────────────────────────────────────
   Repris le 10/09 sur la charte de la V0 du site qernia.com
   (`Pages/PAGE_Qernia.html`) : mêmes jetons OKLCH, mêmes polices (Onest/Sora).
   Les NOMS de variable restent ceux d'origine (--gold, --navy…) pour que les
   ~700 lignes qui les consomment se rethèment sans être touchées une par une —
   seule leur VALEUR change. --gold garde son rôle d'accent, --navy son rôle de
   fond sombre/texte de titre : c'est le sens qui compte, pas le nom hérité. */
:root {
    --bg:          oklch(98.5% 0.008 255);
    --bg-card:     oklch(100% 0.004 255);
    --bg-mid:      oklch(96% 0.035 255);
    --text:        oklch(19% 0.04 260);
    --text-mid:    oklch(43% 0.035 260);
    --text-muted:  oklch(61% 0.025 260);
    --gold:        oklch(54% 0.23 263);
    --gold-hover:  oklch(43% 0.23 263);
    --navy:        oklch(19% 0.04 260);
    --lime:        oklch(84% 0.19 142);
    --border:      oklch(89% 0.018 255);
    --line-strong: oklch(78% 0.045 255);
    --blue-light:  oklch(88% 0.08 255);
    --surface-blue: oklch(96% 0.035 255);
    --shadow-soft: 0 24px 70px -36px oklch(35% 0.12 260 / 0.26);
    --radius-card: 1.25rem;
    --font-serif:  'Sora', system-ui, sans-serif;
    --font-sans:   'Onest', system-ui, sans-serif;
    --radius:      10px;
    --max-w:       800px;
    --max-w-wide:  1080px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.62; overflow-x: hidden; }
/* Les halos bleu et vert de qernia.com, fixés derrière la page */
body::before {
    position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none;
    background: radial-gradient(circle at 10% 5%, oklch(91% 0.09 255 / .62), transparent 27rem),
                radial-gradient(circle at 88% 12%, oklch(92% 0.1 145 / .5), transparent 24rem);
}
h1, h2, h3 { letter-spacing: -0.03em; text-wrap: balance; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* La pastille de surtitre — « tous les surtitres sous forme de pastille » (Jérôme, 25/09, qernia.com) */
.eyebrow, .post-primary-tag {
    display: inline-flex; align-items: center; width: fit-content;
    padding: .42rem .85rem; border: 1px solid var(--blue-light); border-radius: 999px;
    background: var(--surface-blue); color: var(--gold);
    font-family: var(--font-sans); font-size: .75rem; font-weight: 700;
    letter-spacing: .14em; line-height: 1.2; text-transform: uppercase;
}
/* Le point final en bleu, comme « mise au travail. » sur qernia.com */
.point { color: var(--gold); }
/* 30/09 (Jérôme) : titres en deux temps, comme qernia.com — la fin du titre porte l'idée, en bleu. */
.accent { color: var(--gold); }
.accent + .point { color: var(--navy); }   /* 30/09 : point noir derrière une fin de titre bleue */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Layout ─────────────────────────────────────────────── */
.container      { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 24px; }
.container-text { max-width: var(--max-w);      margin: 0 auto; padding: 0 24px; }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: oklch(98.5% 0.008 255 / 0.86);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-logo {
    font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700;
    color: var(--navy); letter-spacing: -0.04em;
    display: flex; align-items: center;
}
.site-logo span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
    font-size: 0.88rem; font-weight: 600;
    color: var(--text-mid); transition: color 0.2s;
}
.site-nav a:not(.btn-subscribe):hover { color: var(--gold); }
/* Bouton en pilule, encre, qui passe au bleu au survol — le .nav-cta de qernia.com */
.btn-subscribe {
    display: inline-flex; align-items: center; min-height: 2.6rem;
    background: var(--navy); color: var(--bg-card) !important;
    font-weight: 700; font-size: 0.88rem !important;
    padding: .6rem 1.1rem; border-radius: 999px;
    transition: transform .22s cubic-bezier(.16,1,.3,1), background .22s, box-shadow .22s;
    cursor: pointer;
}
.btn-subscribe:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 30px -16px var(--gold); }

/* ─── Homepage Hero : clair, sur les halos, comme qernia.com ── */
.site-hero { padding: clamp(4rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem); }
.site-hero .eyebrow { margin-bottom: 1.4rem; }
.site-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 5vw, 3.9rem);
    font-weight: 700; line-height: 1.03; letter-spacing: -0.045em;
    color: var(--navy); margin-bottom: 1.4rem; max-width: 18ch;
}
.site-hero p {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5;
    color: var(--text-mid); max-width: 56ch; margin-bottom: .6rem;
}

/* ─── Tag Navigation ─────────────────────────────────────── */
.tag-nav { padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: oklch(100% 0.004 255 / .55); }
.tag-nav .container-text { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag-nav-item {
    font-size: 0.74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-mid);
    background: var(--bg-card); border: 1px solid var(--border);
    padding: .38rem .85rem; border-radius: 999px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tag-nav-item:hover { color: var(--gold); border-color: var(--blue-light); }
.tag-nav-all, .tag-nav-item.active { color: var(--gold); background: var(--surface-blue); border-color: var(--blue-light); }

/* ─── Post Card Featured ─────────────────────────────────── */
.post-card-featured {
    display: block;
    padding: 0 0 40px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.post-card-featured-image {
    width: 100%; height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.post-card-featured-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700; line-height: 1.25;
    color: var(--navy); margin-bottom: 14px;
    transition: color 0.2s;
}
.post-card-featured:hover .post-card-featured-title { color: var(--gold); }
.post-card-featured-excerpt {
    -webkit-line-clamp: 4 !important;
    font-size: 1rem;
    margin-bottom: 16px;
}

/* ─── Post List ──────────────────────────────────────────── */
.post-list { padding: 56px 0; }
.post-list-header {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 32px;
}
.post-feed { display: flex; flex-direction: column; gap: 0; }

/* ─── Post Card ──────────────────────────────────────────── */
.post-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: opacity 0.15s;
}
.post-card:first-child { padding-top: 0; }
.post-card:hover .post-card-title { color: var(--gold); }
.post-card-tag {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--gold); margin-bottom: 8px;
    display: block;
}
.post-card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem; font-weight: 700;
    line-height: 1.3; color: var(--navy);
    margin-bottom: 10px;
    transition: color 0.2s;
}
.post-card-excerpt {
    font-size: 0.95rem; color: var(--text-mid);
    line-height: 1.65; margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; color: var(--text-muted);
}
.post-card-meta-dot { opacity: 0.4; }
.post-card-image {
    width: 120px; height: 90px;
    object-fit: cover; border-radius: var(--radius);
    flex-shrink: 0; align-self: center;
}
.post-card-image-placeholder {
    width: 120px; height: 90px;
    background: var(--bg-mid);
    border-radius: var(--radius);
    align-self: center;
}

/* ─── Post Grid (homepage) ───────────────────────────────── */
.post-feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card-grid-item {
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow .22s, transform .22s cubic-bezier(.16,1,.3,1), border-color .22s;
}
.post-card-grid-item:hover { transform: translateY(-3px); border-color: var(--blue-light); box-shadow: 0 34px 90px -38px oklch(50% 0.22 263 / 0.48); }
.post-card-grid-image, .post-card-grid-image-placeholder { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card-grid-image-placeholder { background: var(--bg-mid); }
.post-card-grid-content { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card-grid-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: .6rem; display: block; }
.post-card-grid-title {
    font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700;
    line-height: 1.2; letter-spacing: -0.02em;
    color: var(--navy); margin-bottom: .7rem; transition: color 0.2s;
}
.post-card-grid-item:hover .post-card-grid-title { color: var(--gold); }
.post-card-grid-excerpt {
    font-size: 0.93rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.post-card-grid-tag {
    margin-top: auto; align-self: flex-start;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--gold); background: var(--surface-blue); border: 1px solid var(--blue-light);
    padding: .25rem .6rem; border-radius: 999px;
}

/* ─── Pagination ─────────────────────────────────────────── */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; padding: 48px 0;
}
.pagination a, .pagination span {
    font-size: 0.9rem; color: var(--text-muted);
    padding: 8px 16px; border: 1px solid var(--border);
    border-radius: var(--radius);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .page-number { border: none; font-weight: 600; color: var(--text-mid); }

/* ─── Single Post ────────────────────────────────────────── */
.post-header { padding: 56px 0 40px; }
.post-primary-tag { margin-bottom: 1.1rem; }
.post-title {
    font-family: var(--font-serif);
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 700; line-height: 1.05; letter-spacing: -0.045em;
    color: var(--navy); margin-bottom: 20px;
}
.post-excerpt {
    font-size: 1.15rem; line-height: 1.7;
    color: var(--text-mid); margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    font-style: italic;
}
.post-byline {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.post-author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--bg-mid);
    flex-shrink: 0;
}
.post-author-avatar-placeholder {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--surface-blue); border: 1px solid var(--blue-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-weight: 700; font-size: 1rem;
    flex-shrink: 0;
}
.post-byline-meta { font-size: 0.85rem; }
.post-author-name { font-weight: 600; color: var(--navy); display: block; }
.post-byline-details { color: var(--text-muted); font-size: 0.85rem; align-self: center; }

/* ─── Featured Image ─────────────────────────────────────── */
.post-featured-image {
    width: 100%; max-width: var(--max-w);
    margin: 0 auto 40px;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border); box-shadow: var(--shadow-soft);
}
.post-featured-image img { width: 100%; }

/* ─── Post Content ───────────────────────────────────────── */
.post-content { padding: 40px 0 56px; }
.gh-content { color: var(--text-mid); line-height: 1.85; }
.gh-content h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem; font-weight: 700; letter-spacing: -0.035em;
    color: var(--navy); margin: 64px 0 20px;
    line-height: 1.15;
}
.gh-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem; font-weight: 600;
    color: var(--gold); margin: 44px 0 14px;
}
.gh-content h4 {
    font-size: 1rem; font-weight: 600;
    color: var(--text); margin: 28px 0 8px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.gh-content p { margin-bottom: 24px; }
.gh-content a { color: var(--gold); border-bottom: 1px solid var(--blue-light); transition: border-color 0.2s; }
.gh-content a:hover { border-color: var(--gold); }
.gh-content ul, .gh-content ol { margin: 0 0 24px 24px; }
.gh-content li { margin-bottom: 8px; }
.gh-content blockquote {
    /* Un encadré, jamais un filet latéral épais */
    margin: 32px 0; padding: 1.3rem 1.6rem;
    background: var(--surface-blue); border: 1px solid var(--blue-light); border-radius: var(--radius-card);
    font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.02em;
    font-size: 1.2rem; line-height: 1.4;
    color: var(--navy);
}
.gh-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
    background: var(--bg-mid);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--navy);
}
.gh-content pre {
    background: var(--navy);
    color: oklch(92% 0.02 255);
    padding: 24px;
    border-radius: 14px;
    overflow-x: auto;
    margin: 32px 0;
}
.gh-content pre code {
    background: none; padding: 0;
    color: inherit; font-size: 0.9rem;
}
.gh-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}
.gh-content img {
    border-radius: var(--radius);
    margin: 32px auto;
}
.gh-content figure { margin: 32px 0; }
.gh-content figcaption {
    text-align: center;
    font-size: 0.82rem; color: var(--text-muted);
    margin-top: 8px;
}
.gh-content table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 0.95rem; }
.gh-content th {
    background: var(--surface-blue); color: var(--navy);
    padding: 12px 16px; text-align: left; font-weight: 700;
    border-bottom: 1px solid var(--blue-light);
}
.gh-content td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.gh-content tr:nth-child(even) td { background: var(--bg-mid); }

/* ─── Post Tags ──────────────────────────────────────────── */
.post-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}
.post-tag {
    font-size: 0.74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-mid);
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 4px 12px; border-radius: 999px;
    transition: color 0.2s;
}
.post-tag:hover { color: var(--gold); }

/* ─── Author Bio ─────────────────────────────────────────── */
.author-bio {
    display: flex; gap: 24px; align-items: flex-start;
    padding: 1.75rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    margin: 48px 0;
}
.author-bio-avatar {
    width: 72px; height: 72px;
    border-radius: 50%; object-fit: cover;
    flex-shrink: 0;
}
.author-bio-avatar-placeholder {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--surface-blue); border: 1px solid var(--blue-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-weight: 700; font-size: 1.4rem;
    flex-shrink: 0;
}
.author-bio-name {
    font-family: var(--font-serif);
    font-size: 1.1rem; font-weight: 700;
    color: var(--navy); margin-bottom: 8px;
}
.author-bio-desc { font-size: 0.92rem; color: var(--text-mid); line-height: 1.65; }

/* ─── Newsletter CTA : la section .fin de qernia.com (encre, pastille et bouton lime) ── */
.newsletter-cta {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--navy); color: var(--bg);
    padding: clamp(3.5rem, 8vw, 5rem) 24px;
    text-align: center; margin: 56px 0 0;
}
.newsletter-cta::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 15% 0%, oklch(54% 0.23 263 / .35), transparent 26rem),
                radial-gradient(circle at 90% 100%, oklch(84% 0.19 142 / .18), transparent 24rem);
}
.newsletter-label {
    display: inline-flex; margin-bottom: 1rem;
    padding: .42rem .85rem; border-radius: 999px;
    border: 1px solid oklch(84% .19 142 / .35); background: oklch(84% .19 142 / .12);
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--lime);
}
.newsletter-cta h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.045em;
    font-weight: 700; margin-bottom: 12px; color: #fff;
}
.newsletter-cta > p:not(.newsletter-label) {
    font-size: 1.05rem; color: oklch(92% 0.02 255 / .8);
    max-width: 480px; margin: 0 auto 32px; line-height: 1.6;
}
.newsletter-form { max-width: 420px; margin: 0 auto; }
.newsletter-fields { display: flex; flex-direction: column; gap: 12px; }
.newsletter-input {
    width: 100%; padding: 13px 18px;
    border: 1px solid oklch(100% 0 0 / .18); border-radius: 999px;
    background: oklch(100% 0 0 / .08); color: #fff;
    font-size: 0.98rem; font-family: var(--font-sans);
    transition: border-color 0.2s, background 0.2s;
}
.newsletter-input::placeholder { color: oklch(92% 0.02 255 / .5); }
.newsletter-input:focus { outline: none; border-color: var(--lime); background: oklch(100% 0 0 / .12); }
.newsletter-cta .btn-subscribe-cta {
    display: block; width: 100%; margin-top: 4px;
    background: var(--lime); color: var(--navy);
    font-weight: 700; font-size: 0.95rem;
    padding: 14px 32px; border-radius: 999px; border: none; cursor: pointer;
    transition: background .22s, transform .22s cubic-bezier(.16,1,.3,1);
}
.newsletter-cta .btn-subscribe-cta:hover { background: #fff; transform: translateY(-2px); }
.newsletter-feedback { display: none; margin-top: 20px; font-size: 0.95rem; }
.newsletter-form.success .newsletter-fields { display: none; }
.newsletter-form.success .newsletter-success { display: block; color: var(--lime); }
.newsletter-form.error .newsletter-error { display: block; color: oklch(80% 0.14 34); }
.newsletter-cta { scroll-margin-top: 80px; }
.point-lime { color: var(--lime); }
.newsletter-note { margin-top: 1.5rem; font-size: 0.9rem; color: oklch(92% 0.02 255 / .65); }
/* « Se connecter » reste visible sur mobile : c'est la porte des acheteurs vers la FAQ */
.nav-signin { cursor: pointer; }

/* ─── Footer : clair, un filet, comme qernia.com ─────────── */
.site-footer {
    background: var(--bg); color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding: 2rem 0; font-size: 0.88rem;
}
.site-footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-logo { font-family: var(--font-serif); font-weight: 700; letter-spacing: -0.04em; color: var(--navy); }
.footer-logo span { color: var(--gold); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-mid); font-weight: 600; transition: color 0.2s; }
.footer-nav a:hover, .footer-logo:hover { color: var(--gold); }

/* ─── Tag / Archive Page ─────────────────────────────────── */
.tag-header { padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.tag-header h1 {
    font-family: var(--font-serif);
    font-size: 2rem; font-weight: 700;
    color: var(--navy); margin-bottom: 8px;
}
.tag-header p { color: var(--text-muted); font-size: 1rem; }

/* ─── Error Page ─────────────────────────────────────────── */
.error-page { text-align: center; padding: 120px 24px; }
.error-page h1 {
    font-family: var(--font-serif);
    font-size: 3rem; color: var(--navy); margin-bottom: 16px;
}
.error-page p { color: var(--text-muted); margin-bottom: 32px; }
.btn-back {
    display: inline-block;
    background: var(--navy); color: var(--bg-card);
    font-weight: 700; padding: 12px 28px; border-radius: 999px;
    transition: background .22s, transform .22s;
}
.btn-back:hover { background: var(--gold); transform: translateY(-2px); }

/* ─── Koenig Editor (required) ──────────────────────────── */
.kg-width-wide  { margin: 32px -48px; }
.kg-width-full  { margin: 32px calc(50% - 50vw); width: 100vw; }
.kg-image-card  { margin: 32px 0; }
.kg-image-card img { border-radius: var(--radius); }
.kg-gallery-container { margin: 32px 0; }
.kg-gallery-row { display: flex; gap: 8px; margin-bottom: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.kg-bookmark-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 24px 0; }
.kg-callout-card { background: var(--bg-mid); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; display: flex; gap: 16px; }
.kg-toggle-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 24px 0; }
.kg-video-card { margin: 32px 0; }
.kg-video-card video { width: 100%; border-radius: var(--radius); }
.kg-audio-card { background: var(--bg-mid); border-radius: var(--radius); padding: 16px; margin: 24px 0; }
.kg-embed-card { margin: 32px 0; }
.kg-embed-card iframe { width: 100%; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .post-feed-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    html { font-size: 16px; }
    .site-nav a:not(.btn-subscribe):not(.nav-signin):not(.nav-faq) { display: none; }
    .post-card { grid-template-columns: 1fr; }
    .post-card-image, .post-card-image-placeholder { display: none; }
    .post-feed-grid { grid-template-columns: 1fr; }
    .author-bio { flex-direction: column; padding: 24px; }
    .site-footer .container { flex-direction: column; text-align: center; }
    .footer-nav { justify-content: center; }
}
@media (max-width: 480px) {
    .post-title { font-size: 1.6rem; }
}

/* ─── FAQ (zone gated) ───────────────────────────────────── */
.faq-hero {
    padding: clamp(3.5rem, 8vw, 5rem) 0 32px;
    text-align: center;
}
.faq-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.045em;
    color: var(--navy); margin-bottom: 12px;
}
.faq-hero p { color: var(--text-mid); }

.faq-tag-crumb { padding: 20px 24px 0; }
.faq-tag-crumb a { color: var(--text-muted); font-size: 0.9rem; }
.faq-tag-crumb a:hover { color: var(--navy); }

.faq-topics {
    padding: 40px 0 64px;
}
.faq-topics .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.faq-topic-tile {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}
.faq-topic-tile:hover { border-color: var(--blue-light); transform: translateY(-2px); }
.faq-topic-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}
.faq-topic-tile h2 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 6px;
}
.faq-topic-count { font-size: 0.85rem; color: var(--text-muted); }

.faq-search { padding: 24px; max-width: var(--max-w-wide); margin: 0 auto; }
#faq-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--bg-card);
}
#faq-search-input:focus { outline: none; border-color: var(--gold); }
.faq-search-results {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.faq-search-empty { color: var(--text-muted); grid-column: 1 / -1; }

.faq-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}
.faq-card:hover { border-color: var(--blue-light); }
.faq-card-question {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 4px;
}
.faq-card-excerpt { font-size: 0.9rem; color: var(--text-mid); }

.faq-paywall {
    padding: 96px 0;
    text-align: center;
}
.faq-paywall h1 { font-family: var(--font-serif); margin-bottom: 12px; }
.faq-paywall p { color: var(--text-mid); margin-bottom: 24px; }

.faq-post .post-tags { margin-top: 24px; }

/* ─── FAQ — questions liées (bloc "wiki" de fin d'article) ─── */
/* Bandeau « / ou $ » (17/09) : sous Codex, une commande commence par $. */
.faq-commandes {
    margin: 20px 0 28px;
    padding: 14px 18px;
    background: var(--bg-mid);
    border: 1px solid oklch(84% .19 142 / .45);
    border-radius: 14px;
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.55;
}
.faq-commandes strong { color: var(--text); }
.faq-commandes code {
    font-size: 0.9em;
    padding: 1px 5px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}

.faq-related {
    margin-top: 48px;
    padding: 24px 28px;
    background: var(--surface-blue);
    border: 1px solid var(--blue-light);
    border-radius: var(--radius-card);
}
.faq-related-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 14px;
}
.faq-related-list { list-style: none; }
.faq-related-list li { margin-bottom: 10px; line-height: 1.5; }
.faq-related-list li::before {
    content: "→";
    color: var(--gold);
    margin-right: 10px;
}
.faq-related-list a { color: var(--text-mid); }
.faq-related-list a:hover { color: var(--navy); text-decoration: underline; }
.faq-related-all {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.faq-related-all:hover { color: var(--gold-hover); }

/* ─── FAQ — navigation (26/09) : fil « FAQ › Thème » + pastilles ─── */
.faq-nav { padding: 1rem 0; border-bottom: 1px solid var(--border); background: oklch(100% 0.004 255 / .55); }
.faq-fil { font-size: 0.9rem; font-weight: 600; margin-bottom: .7rem; color: var(--text-muted); }
.faq-fil a { color: var(--gold); }
.faq-fil a:hover { color: var(--gold-hover); text-decoration: underline; }
.faq-fil-sep { margin: 0 .5rem; color: var(--text-muted); }
.faq-nav-themes { display: flex; gap: 8px; flex-wrap: wrap; }

.faq-post-fin {
    display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline;
    margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
}
.faq-post-fin .faq-related-all { margin-top: 0; font-size: 0.95rem; font-weight: 600; color: var(--gold); }
.faq-retour-lien, .faq-retour a { font-size: 0.95rem; font-weight: 600; color: var(--text-mid); }
.faq-retour-lien:hover, .faq-retour a:hover { color: var(--navy); text-decoration: underline; }
.faq-retour { margin: 32px 0 64px; }

/* Page d'un thème */
.faq-theme-header { padding: clamp(2.5rem, 6vw, 3.5rem) 0 24px; }
.faq-theme-header h1 {
    font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    letter-spacing: -0.04em; color: var(--navy); margin-bottom: 8px;
}
.faq-theme-header p { color: var(--text-mid); }
.faq-theme-liste { padding: 0; }

/* Mur : pas connecté, ou connecté sans achat */
.faq-reservee { color: var(--text-mid); margin-bottom: 8px; }
.faq-mur {
    margin: 28px 0; padding: 24px 28px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.faq-mur-compte { border-color: var(--blue-light); background: var(--surface-blue); }
.faq-mur h2 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.faq-mur p { color: var(--text-mid); margin-bottom: 10px; }
.faq-mur strong { color: var(--text); word-break: break-all; }
.faq-mur-actions, .faq-promo-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 16px; }
.faq-mur-lien { font-size: 0.9rem; font-weight: 600; color: var(--gold); }
.faq-mur-lien:hover { color: var(--gold-hover); text-decoration: underline; }

/* Ce qui vient avec Qernia */
.faq-promo { margin: 40px 0 72px; }
.faq-promo-titre { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -0.03em; color: var(--navy); margin-bottom: 10px; }
.faq-promo-intro { color: var(--text-mid); margin-bottom: 20px; max-width: 60ch; }
.faq-promo-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.faq-promo-carte {
    padding: 20px 22px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-soft);
}
.faq-promo-carte h3 { font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.faq-promo-carte p { font-size: 0.93rem; color: var(--text-mid); line-height: 1.55; }

/* ─── Parcours de formation (27/09) : sa page, et la suite des modules sous chaque module ─── */
.parcours-liste { list-style: none; padding: 0; margin: 8px 0 48px; display: grid; gap: 18px; counter-reset: none; }
.parcours-carte { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 22px; align-items: center;
    padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-card);
    color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.parcours-carte:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.parcours-carte-image { width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.parcours-carte-texte { display: grid; gap: 6px; }
.parcours-carte-texte strong { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.25; }
.parcours-carte-texte span { color: var(--text-mid); font-size: .95rem; line-height: 1.5; }
@media (max-width: 640px) { .parcours-carte { grid-template-columns: 1fr; } }
.parcours-suite { margin: 48px 0 72px; padding-top: 24px; border-top: 1px solid var(--border); }
.parcours-suite-liste { padding-left: 1.2em; display: grid; gap: 8px; }
.parcours-suite-liste a { color: var(--gold); }
.parcours-suite-liste a.active { color: var(--text); font-weight: 700; pointer-events: none; }
