/* =========================================================================
   MON-MAGAZINE — Feuille de style principale
   Design : Histoires Crépues — DA crépue, accent vert pistache.
   ========================================================================= */

:root {
    --accent: var(--ghost-accent-color, #cde052);
    --ink: #15150f;
    --paper: #faf8f0;
    --plum: #3a2c5e;
    --line: rgba(21, 21, 15, .14);
    --serif: Georgia, 'Times New Roman', serif;
    --sans: 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Bloque toutes les transitions pendant le chargement initial */
html.hc-loading * { transition: none !important; animation: none !important; }

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.inner { max-width: 1080px; margin: 0 auto; padding: 0 5vw; }
.inner--narrow { max-width: 820px; }
.inner--wide { max-width: 1200px; margin: 0 auto; padding: 0 3vw; }

.d { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
.d--plum { background: var(--plum); }

/* ---------- BARRE FIXE ---------- */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: var(--paper);
    min-height: 52px;
    transition: transform .3s ease;
}
.topbar--hidden { transform: translateY(-100%); }
body { padding-top: 60px; }
.topbar__in {
    padding: .7rem 3vw;
    display: flex; align-items: center;
    min-height: 52px;
    position: relative;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand__logo { max-height: 30px; height: 30px; width: auto; }
.brand__name { font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; line-height: 1; }
.brand__tag {
    font-family: var(--sans); font-size: .62rem; letter-spacing: .22em;
    text-transform: uppercase; color: var(--plum); margin-top: 3px; font-weight: 700;
}

/* ---------- Barre sous-titre du site ---------- */
.site-kicker {
    background: var(--accent);
    color: var(--ink);
    height: 2.4rem;
    line-height: 2.4rem;
    text-align: center;
    padding: 0 1rem;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--ink);
}

/* ---------- Navigation principale ---------- */
.nav {
    display: flex;
    align-items: center;
    font-family: var(--sans);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.topbar__actions {
    margin-left: auto; display: flex; align-items: center; gap: 1.2rem; flex-shrink: 0;
}
.nav__list {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__item {
    position: relative;
}
.nav__item > a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 0;
    position: relative;
    white-space: nowrap;
}
.nav__item > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 3px;
    width: 0;
    background: var(--accent);
    transition: width .25s;
}
.nav__item > a:hover::after {
    width: 100%;
}
.nav__arrow {
    font-size: .8em;
    opacity: .7;
    transition: transform .2s;
}
.nav__item--has-submenu:hover .nav__arrow {
    transform: rotate(180deg);
}

/* Sous-menu déroulant */
.nav__submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 14px;
    list-style: none;
    margin: 0;
    padding: .6rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, visibility .2s, transform .2s;
    z-index: 60;
    box-shadow: 0 10px 30px rgba(21, 21, 15, .12);
}
.nav__item--has-submenu:hover .nav__submenu,
.nav__item--has-submenu:focus-within .nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav__submenu .nav__item > a {
    display: block;
    padding: .55rem 1.2rem;
    text-transform: none;
    letter-spacing: 0;
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
}
.nav__submenu .nav__item > a::after { display: none; }
.nav__submenu .nav__item > a:hover {
    background: var(--accent);
    color: var(--ink);
}

/* Bouton nav mis en valeur : label commençant par "+" dans Ghost admin */
.nav__item[data-label^="+"] > a {
    background: var(--accent);
    color: var(--ink);
    padding: 4px 14px;
    border-radius: 999px;
}
.nav__item[data-label^="+"] > a::after { display: none; }

/* "++" : pill plum (second niveau de mise en valeur) */
.nav__item[data-label^="++"] > a {
    background: var(--plum);
    color: var(--paper);
}
.nav__item[data-label^="++"] > a::after { display: none; }

.btn-sub {
    background: var(--ink); color: var(--paper); text-decoration: none;
    font-family: var(--sans); font-weight: 700; font-size: .7rem;
    letter-spacing: .1em; text-transform: uppercase;
    padding: .42rem .75rem; border-radius: 40px; border: 2px solid var(--ink);
    transition: background .2s, color .2s; white-space: nowrap;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.btn-login {
    display: inline-flex; align-items: center; gap: .35rem;
    text-decoration: none; color: var(--ink);
    font-family: var(--sans); font-weight: 700; font-size: .7rem;
    letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
    padding: .42rem .75rem; border-radius: 40px; border: 2px solid var(--ink);
    transition: background .2s, color .2s;
}
.btn-login:hover { background: var(--ink); color: var(--paper); }
.search-btn { display: none; }
.nav .nav__cta { display: none; }
.btn-sub:hover { background: var(--accent); color: var(--ink); }
/* Bouton toggle dark/clair */
.theme-toggle {
    background: none;
    border: 2px solid var(--ink);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-left: .6rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--ink);
    transition: background .2s, color .2s, border-color .2s;
    flex: none;
}
.theme-toggle:hover {
    background: var(--accent);
}
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }

/* En mode sombre, on affiche le soleil (pour revenir au clair) */
html[data-theme="dark"] .theme-toggle__sun,
html[data-color-scheme="Sombre"] .theme-toggle__sun {
    display: block;
}
html[data-theme="dark"] .theme-toggle__moon,
html[data-color-scheme="Sombre"] .theme-toggle__moon {
    display: none;
}
@media (prefers-color-scheme: dark) {
    html[data-color-scheme="Auto"]:not([data-theme]) .theme-toggle__sun { display: block; }
    html[data-color-scheme="Auto"]:not([data-theme]) .theme-toggle__moon { display: none; }
}
.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 6px;
}
.menu-toggle span { width: 26px; height: 2.5px; background: var(--ink); display: block; }

/* Mode compact déclenché dynamiquement par JS (overflow à n'importe quelle largeur) */
.topbar[data-compact="true"] .nav { display: none !important; }
.topbar[data-compact="true"] .menu-toggle { display: flex; }
.topbar[data-compact="true"] .mob-nav {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 300ms ease-in-out;
    background: var(--paper);
    border-top: 2px solid var(--ink);
    overflow: hidden;
}
.topbar[data-compact="true"] .mob-nav__inner {
    min-height: 0;
    overflow-y: auto;
    max-height: calc(100svh - 52px);
    padding: 0 6vw;
}
.topbar[data-compact="true"]:has(#mobile-nav[data-open='true']) .mob-nav {
    grid-template-rows: 1fr;
}
.topbar[data-compact="true"] .mob-nav__cta { display: inline-flex !important; }
.topbar[data-compact="true"] .mob-nav__actions {
    display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: 1.8rem 0 2rem;
}
.topbar[data-compact="true"] .topbar__in .btn-sub,
.topbar[data-compact="true"] .topbar__in .btn-login { display: none; }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    background: var(--ink); color: var(--paper);
    overflow: hidden;
    border-bottom: 2px solid var(--ink);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 16% 24%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
        radial-gradient(circle at 84% 78%, color-mix(in srgb, var(--plum) 50%, transparent), transparent 55%);
}
.hero__top {
    position: relative; max-width: 1080px; margin: 0 auto;
    padding: 2.8rem 5vw 0; text-align: center;
}
.kicker {
    font-family: var(--sans); text-transform: uppercase; letter-spacing: .32em;
    font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem;
}
.kicker--plum { color: var(--plum); }
.hero__top h1 {
    font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05;
    font-weight: 700; letter-spacing: -.01em; margin-bottom: .6rem;
}
.hero__top h1 em {
    color: var(--ink); background: var(--accent); font-style: italic;
    padding: 0 .18em; border-radius: 8px;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__top p { opacity: .85; max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- CARROUSEL ---------- */
.carousel { position: relative; max-width: 1200px; margin: 2.4rem auto 0; padding: 0 3vw 3rem; }
.carousel__frame {
    position: relative; border: 2px solid var(--accent);
    border-radius: 24px; overflow: hidden; background: #000;
}
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform .6s cubic-bezier(.7, 0, .2, 1); }

.slide { min-width: 100%; position: relative; aspect-ratio: 16/7; display: block; text-decoration: none; }
.slide img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .85; transition: transform 6s ease, opacity .4s;
}
.slide.is-active img { transform: scale(1.06); }
.slide__grad {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(21, 21, 15, .78) 8%, rgba(21, 21, 15, .12) 55%, transparent);
}
.slide__body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 2.4rem clamp(1.5rem, 4vw, 3rem);
}

.badge {
    display: inline-block; font-family: var(--sans); font-size: .7rem;
    font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink); background: var(--accent);
    padding: .35rem .7rem; border-radius: 30px; margin-bottom: 1rem;
}

.slide__title {
    font-family: var(--serif); font-weight: 700;
    font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.08;
    letter-spacing: -.01em; margin-bottom: .7rem; max-width: 18ch;
}
.slide__title span { color: var(--paper); }
.slide:hover .slide__title span { color: var(--paper); }

.slide__meta {
    font-family: var(--sans); font-size: .82rem; letter-spacing: .05em;
    color: rgba(250, 248, 240, .82);
    display: flex; gap: .8rem; align-items: center; flex-wrap: wrap;
}
.slide__meta strong { color: var(--accent); font-weight: 700; }

.car-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
    width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid var(--accent); background: rgba(21, 21, 15, .55);
    color: var(--paper); cursor: pointer; font-size: 1.4rem;
    display: grid; place-items: center;
    transition: background .2s, color .2s; backdrop-filter: blur(4px);
}
.car-btn:hover { background: var(--accent); color: var(--ink); }
.car-btn--prev { left: 16px; }
.car-btn--next { right: 16px; }

.car-dots { display: flex; gap: .6rem; justify-content: center; margin-top: 1.3rem; }
.car-dots button {
    width: 34px; height: 5px; border-radius: 30px; border: 0;
    background: rgba(21, 21, 15, .18); cursor: pointer; padding: 0;
    transition: background .25s;
}
.car-dots button[aria-current="true"] { background: var(--plum); }

/* ---------- TITRES DE SECTION "01 — Derniers articles" ---------- */
.sec { display: flex; align-items: baseline; gap: 1.1rem; margin: 4rem 0 1.8rem; }
.sec-num { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; color: var(--plum); }
.sec h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
.sec h2 span { background: var(--accent); padding: 0 .15em; border-radius: 6px; }
.sec .rule { flex: 1; height: 1px; background: var(--line); align-self: center; }
.sec .more {
    font-family: var(--sans); font-size: .78rem; letter-spacing: .1em;
    text-transform: uppercase; font-weight: 700; text-decoration: none;
    color: var(--plum); white-space: nowrap;
}
.sec .more:hover { color: var(--ink); }

/* ---------- GRILLE D'ARTICLES + CARTES ---------- */
.grid, .pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }

.card {
    border: 2px solid var(--ink); background: #fff;
    border-radius: 22px; overflow: hidden;
    display: flex; flex-direction: column;
    text-decoration: none; color: var(--ink);
    transition: transform .25s, box-shadow .25s, background .25s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(21, 21, 15, .16), 6px 6px 0 var(--accent);
    background: var(--ink); color: var(--paper);
}
.card:hover .card__cat { color: var(--accent); }
.card:hover .card__meta { color: rgba(250, 248, 240, .7); border-top-color: rgba(250, 248, 240, .22); }

.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--line); }
.card__media img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(.35); transition: transform .5s, filter .25s;
}
.card:hover .card__media img { transform: scale(1.05); filter: grayscale(0); }

.card__body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__cat {
    font-family: var(--sans); font-size: .7rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--plum);
    margin-bottom: .7rem; transition: color .25s;
}
.card__title {
    font-family: var(--serif); font-weight: 700;
    font-size: 1.1rem; line-height: 1.22; letter-spacing: -.01em;
    hyphens: none; overflow-wrap: normal; word-break: normal;
}
.card__meta {
    margin-top: 1.1rem; padding-top: .9rem;
    border-top: 1px solid var(--line);
    font-family: var(--sans); font-size: .78rem; letter-spacing: .04em;
    display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
    transition: color .25s, border-color .25s;
    color: rgba(21, 21, 15, .7);
}
.card__meta .d { background: currentColor; opacity: .6; width: 3px; height: 3px; }

/* ---------- FEATURE (choix de l'éditeur) ---------- */
.feature {
    display: grid; grid-template-columns: 1.25fr 1fr;
    border: 2px solid var(--ink); border-radius: 24px; overflow: hidden;
    background: #fff; margin-bottom: 1.4rem;
    transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(21, 21, 15, .16), 6px 6px 0 var(--accent); }
.feature__media { position: relative; min-height: 320px; background: var(--line); display: block; }
.feature__media img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: grayscale(.3);
}
.feature__body { padding: 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.feature__title {
    font-family: var(--serif); font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.1;
    letter-spacing: -.01em; margin: .8rem 0 1rem;
}
.feature__title a { text-decoration: none; color: var(--ink); }
.feature__title a:hover { color: var(--plum); }
.feature__meta {
    font-family: var(--sans); font-size: .82rem; letter-spacing: .05em;
    color: rgba(21, 21, 15, .7);
    display: flex; gap: .7rem; align-items: center; flex-wrap: wrap;
}
.feature__meta strong { color: var(--ink); }

/* ---------- NEWSLETTER ---------- */
.nl {
    position: relative; margin: 4.5rem 0 0;
    background: var(--ink); color: var(--paper);
    border: 2px solid var(--ink); border-radius: 24px;
    padding: 3.4rem 2rem; text-align: center; overflow: hidden;
}
.nl::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 55%),
        radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--plum) 45%, transparent), transparent 55%);
}
.nl__in { position: relative; max-width: 560px; margin: 0 auto; }
.nl h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700;
    letter-spacing: -.01em; margin-bottom: .6rem;
}
.nl h2 em {
    font-style: italic; color: var(--ink); background: var(--accent);
    padding: 0 .15em; border-radius: 8px;
}
.nl p { opacity: .85; margin-bottom: 1.6rem; }
.nl form { display: flex; gap: .7rem; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.nl input {
    flex: 1; min-width: 220px; padding: .9rem 1rem;
    border: 2px solid var(--paper); background: transparent; color: var(--paper);
    font-family: var(--sans); font-size: .95rem; border-radius: 40px;
}
.nl input::placeholder { color: rgba(250, 248, 240, .55); }
.nl button {
    padding: .9rem 1.6rem; background: var(--accent); color: var(--ink);
    border: 2px solid var(--accent); font-family: var(--sans);
    font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase;
    cursor: pointer; border-radius: 40px; transition: transform .15s;
}
.nl button:hover { transform: translateY(-2px); }

/* =========================================================================
   PAGE ARTICLE
   ========================================================================= */

/* HERO NOIR */
.post-hero {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 4.5rem 2rem 5.5rem;
    overflow: hidden;
}
.post-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 18% 28%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
        radial-gradient(circle at 82% 72%, color-mix(in srgb, var(--plum) 45%, transparent), transparent 55%);
}
.post-hero__inner { max-width: 820px; margin: 0 auto; position: relative; }
.post-hero__kicker {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .32em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.2rem;
}
.post-hero__title {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--paper);
    margin-bottom: 1.3rem;
}
.post-hero__title em {
    color: var(--ink);
    background: var(--accent);
    font-style: italic;
    padding: .05em .22em;
    border-radius: 10px;
    line-height: .95;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.post-hero__chapo {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    max-width: 760px;
    margin: 0 auto;
    opacity: .88;
}
.post-hero__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2.2rem;
    font-family: var(--sans);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
}
.post-hero__meta strong { color: var(--accent); font-weight: 700; }
.post-hero__meta .d { background: var(--accent); width: 5px; height: 5px; }

/* IMAGE DE COUVERTURE (chevauche le hero) */
.post-cover-wrap { max-width: 1080px; margin: 0 auto; padding: 0 5vw; }
.post-cover {
    margin-top: -3.5rem;
    position: relative;
    z-index: 2;
    border: 2px solid var(--ink);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(21, 21, 15, .22);
}
.post-cover img { display: block; width: 100%; height: auto; }
.post-cover__credit {
    font-family: var(--sans);
    font-size: .74rem;
    letter-spacing: .06em;
    text-align: right;
    opacity: .6;
    margin: .6rem .2rem 0;
}

/* CORPS DE L'ARTICLE */
.post-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 5vw 4rem;
    font-size: 1.12rem;
    line-height: 1.75;
}
.post-body > p,
.post-body > ul,
.post-body > ol { margin: 0 0 1.5rem; }

/* Lettrine sur le premier paragraphe */
.post-body > p:first-of-type::first-letter {
    float: left;
    font-size: 4.2rem;
    line-height: .82;
    font-weight: 700;
    padding: .35rem .55rem .1rem 0;
    color: var(--plum);
    font-family: var(--serif);
}

/* Intertitres */
.post-body h2 {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 3.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    margin: 3.2rem 0 1.5rem;
}
.post-body h2 em {
    background: var(--accent);
    padding: 0 .15em;
    border-radius: 6px;
    font-style: normal;
    font-weight: 700;
}

/* Gras + italique dans le texte courant → surlignage accent */
.post-body strong em,
.post-body em strong {
    background: var(--accent);
    padding: 0 .15em;
    border-radius: 4px;
    font-style: normal;
    font-weight: 400;
}

.post-body h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin: 2.4rem 0 1rem;
    font-weight: 700;
}

.post-body a {
    color: var(--plum);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.post-body a:hover {
    background: var(--accent);
    color: var(--ink);
    text-decoration: none;
}

/* CITATIONS */
.post-body blockquote {
    margin: 2rem 0;
    padding: 1.6rem 1.8rem;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: #fff;
    position: relative;
    font-size: 1.08rem;
    font-style: italic;
}
.post-body blockquote::before {
    content: "“";
    position: absolute;
    top: -.4rem;
    left: .8rem;
    font-size: 4rem;
    color: var(--accent);
    font-family: var(--serif);
    line-height: 1;
}
.post-body blockquote p { margin: 0 0 .6rem; }
.post-body blockquote p:last-child { margin-bottom: 0; }

/* IMAGES INTRA-ARTICLE — encadré uniquement pour les images dans la colonne */
.post-body figure { margin: 2.4rem 0; }
.post-body figure:not(.kg-width-wide):not(.kg-width-full) img {
    display: block;
    width: 100%;
    border: 2px solid var(--ink);
    border-radius: 18px;
}
.post-body figure figcaption {
    font-family: var(--sans);
    font-size: .74rem;
    letter-spacing: .06em;
    text-align: right;
    opacity: .6;
    margin-top: .5rem;
}

/* SIGNATURE */
.post-sign {
    font-family: var(--sans);
    text-align: right;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .85rem;
    color: var(--plum);
    margin: 2.5rem 0 1rem;
}

/* BLOC AUTEUR */
.post-author-card {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    border: 2px solid var(--ink);
    border-radius: 22px;
    background: #fff;
    padding: 1.6rem;
    margin: 3rem 0 1rem;
}
.post-author-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--plum);
    flex-shrink: 0;
    filter: grayscale(.4);
}
.post-author-card__name {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
}
.post-author-card__role {
    font-family: var(--sans);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--plum);
    margin: .3rem 0 .6rem;
}
.post-author-card p { margin: 0; font-size: .98rem; opacity: .85; }

/* TAGS */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2rem 0;
}

@media (max-width: 520px) {
    .post-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* =========================================================================
   IMAGES LARGES & PLEINE LARGEUR — comportement Ghost natif
   ========================================================================= */
.post-body .kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
}

.post-body .kg-width-full {
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.post-body .kg-width-full img { width: 100%; }

/* =========================================================================
   EMBEDS (YouTube, Vimeo, Instagram, Twitter…)
   ========================================================================= */

/* Conteneur commun */
.post-body .kg-embed-card {
    display: block;
    max-width: 100%;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 18px;
    border: 2px solid var(--ink);
}

/* YouTube / Vimeo : iframe directe → ratio 16:9 */
.post-body .kg-embed-card:has(> iframe) {
    position: relative;
    aspect-ratio: 16 / 9;
}

.post-body .kg-embed-card > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Instagram / TikTok / Facebook : blockquote + script → auto-hauteur, centré */
.post-body .kg-embed-card:has(> blockquote),
.post-body .kg-embed-card:not(:has(> iframe)) {
    position: static;
    aspect-ratio: auto;
    display: flex;
    justify-content: center;
    padding: 1rem;
    border-radius: 18px;
}

.post-body .kg-embed-card blockquote {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 12px !important;
}

/* Les iframes injectées par Instagram/TikTok dans leur blockquote */
.post-body .kg-embed-card blockquote iframe {
    max-width: 100% !important;
    border-radius: 12px !important;
}

/* Twitter/X */
.post-body .kg-embed-card .twitter-tweet { margin: 0 auto !important; }

/* Fallback : iframes orphelines hors kg-embed-card */
.post-body > iframe {
    display: block;
    max-width: 100%;
    border: 0;
    border-radius: 18px;
    margin: 2rem auto;
}

/* =========================================================================
   AUTRES BLOCS KOENIG (bookmark, gallery, code, callout, button, toggle)
   ========================================================================= */

/* Bookmark (lien enrichi) */
.post-body .kg-bookmark-card { margin: 2rem 0; }
.post-body .kg-bookmark-container {
    display: flex;
    border: 2px solid var(--ink);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    transition: transform .25s, box-shadow .25s;
}
.post-body .kg-bookmark-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(21, 21, 15, .12);
    background: var(--ink);
    color: var(--paper);
}
.post-body .kg-bookmark-content {
    padding: 1.2rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.post-body .kg-bookmark-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: .4rem;
}
.post-body .kg-bookmark-description {
    font-family: var(--sans);
    font-size: .9rem;
    opacity: .75;
    margin-bottom: .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-body .kg-bookmark-metadata {
    font-family: var(--sans);
    font-size: .78rem;
    letter-spacing: .04em;
    opacity: .6;
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
}
.post-body .kg-bookmark-icon { width: 16px; height: 16px; }
.post-body .kg-bookmark-thumbnail {
    flex-shrink: 0;
    min-height: 160px;
    max-width: 35%;
}
.post-body .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    margin: 0;
}

/* Gallery */
.post-body .kg-gallery-container { max-width: 100%; }
.post-body .kg-gallery-row { display: flex; gap: .8rem; margin-bottom: .8rem; }
.post-body .kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid var(--ink);
    border-radius: 14px;
    margin: 0;
}

/* Code */
.post-body .kg-code-card pre {
    background: var(--ink);
    color: var(--paper);
    padding: 1.2rem 1.4rem;
    border-radius: 18px;
    overflow-x: auto;
    font-size: .9em;
    border: 2px solid var(--ink);
}
.post-body .kg-code-card pre code { background: none; padding: 0; color: inherit; }
.post-body code {
    background: rgba(0, 0, 0, .06);
    padding: .1em .3em;
    border-radius: 3px;
    font-size: .9em;
}

/* Header card */
.post-body .kg-header-card {
    background: var(--ink);
    color: var(--paper);
    padding: 3rem 2rem;
    border-radius: 18px;
    text-align: center;
}

/* Callout */
.post-body .kg-callout-card {
    border: 2px solid var(--ink);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    background: #fff;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.post-body .kg-callout-emoji { font-size: 1.4rem; flex-shrink: 0; }
.post-body .kg-callout-text { margin: 0; }

/* Button (bloc Ghost) — suit l'accent color */
.post-body .kg-button-card { text-align: center; }
.post-body .kg-btn,
.post-body .kg-btn-accent {
    display: inline-block;
    background: var(--accent) !important;
    color: var(--ink) !important;
    text-decoration: none !important;
    padding: .9rem 1.6rem;
    border-radius: 40px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: transform .15s, opacity .2s;
    border: 2px solid var(--accent) !important;
}
.post-body .kg-btn:hover,
.post-body .kg-btn-accent:hover {
    transform: translateY(-2px);
    opacity: .9;
}

/* Toggle */
.post-body .kg-toggle-card {
    border: 2px solid var(--ink);
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    background: #fff;
}
.post-body .kg-toggle-heading {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.1rem;
    cursor: pointer;
}
.post-body .kg-toggle-content { margin-top: 1rem; }

/* =========================================================================
   PAGES ARCHIVE (tag, author)
   ========================================================================= */
.archive-header { text-align: center; padding: 3rem 0 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.archive-title {
    font-family: var(--serif); font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -.01em;
    margin: .3rem 0 1rem;
}
.archive-title span { background: var(--accent); padding: 0 .15em; border-radius: 8px; }
.archive-desc { color: rgba(21, 21, 15, .7); max-width: 600px; margin: 0 auto; }
.author-archive__avatar {
    width: 120px; height: 120px; border-radius: 50%;
    margin: 0 auto 1rem; object-fit: cover;
}

/* =========================================================================
   PAGE TAG (/tag/xxx)
   ========================================================================= */
.tag-page {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: var(--paper);
    padding-bottom: 4rem;
}

.tag-hero {
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 4.5rem 2rem 4rem;
}

.tag-hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 18% 28%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
        radial-gradient(circle at 82% 72%, color-mix(in srgb, var(--plum) 45%, transparent), transparent 55%);
    pointer-events: none;
}

.tag-hero__inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.kicker--accent {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .32em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 1.2rem;
}

.tag-hero__title {
    font-family: var(--serif);
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.01em;
    margin: 0 0 1.3rem;
    color: var(--paper);
}

.tag-hero__title em {
    font-style: italic;
    color: var(--ink);
    background: var(--accent);
    padding: 0 .18em;
    border-radius: 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.tag-hero__desc {
    font-family: var(--serif);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    max-width: 620px;
    margin: 0 auto 1.8rem;
    opacity: .88;
}

.tag-hero__meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-family: var(--sans);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .75;
}

.tag-hero__meta strong { color: var(--accent); }

.tag-page__body {
    padding-top: 3rem;
}

/* =========================================================================
   PAGE AUTEUR (author.hbs)
   ========================================================================= */
.author-page {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: var(--paper);
    padding-bottom: 4rem;
}

.author-page > .inner {
    max-width: 1080px;
    margin: 0 auto;
    padding-left: 5vw;
    padding-right: 5vw;
}

.author-hero {
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}

.author-hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 30%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 55%),
        radial-gradient(circle at 85% 70%, color-mix(in srgb, var(--plum) 45%, transparent), transparent 55%);
    pointer-events: none;
}

.author-hero__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 3.5rem 5vw 3rem;
    display: flex;
    align-items: flex-start;
    gap: 2.2rem;
    position: relative;
}

.author-hero__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--plum);
    filter: grayscale(.3);
}

.author-hero__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--plum);
    background: color-mix(in srgb, var(--accent) 20%, var(--ink));
    border: 3px solid var(--plum);
}

.author-hero__body {
    flex: 1;
    min-width: 0;
}

.author-hero__name {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.05;
    margin: .5rem 0 .8rem;
    color: var(--paper);
}

.author-hero__name span {
    background: var(--accent);
    color: var(--ink);
    padding: 0 .15em;
    border-radius: 8px;
}

.author-hero__bio {
    font-size: 1.05rem;
    opacity: .85;
    max-width: 560px;
    margin-bottom: 1.2rem;
    font-family: var(--serif);
}

.author-hero__socials {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.author-social {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .32rem .8rem;
    border: 1.5px solid rgba(250, 248, 240, .35);
    border-radius: 40px;
    color: inherit;
    text-decoration: none;
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .7;
    transition: opacity .15s, background .15s, border-color .15s;
}

.author-social:hover {
    opacity: 1;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

/* Section header inside author body */
.author-section-title {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    margin: 3rem 0 1.6rem;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.01em;
}

.author-section-title span:first-child {
    background: var(--accent);
    padding: 0 .15em;
    border-radius: 6px;
}

.author-section-title .hc-rule {
    flex: 1;
    height: 1px;
    background: var(--line);
    align-self: center;
}

.author-empty {
    font-family: var(--sans);
    font-size: .9rem;
    color: rgba(21, 21, 15, .55);
    padding: 2rem 0;
    text-align: center;
}

.author-back {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.author-back a {
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--plum);
}

.author-back a:hover { color: var(--ink); }

@media (max-width: 620px) {
    .author-hero__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.4rem;
    }
    .author-hero__socials { justify-content: center; }
}

/* =========================================================================
   PAGINATION
   ========================================================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 1rem;
    font-family: var(--sans);
}

.page-number {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .5;
}

.older-posts,
.newer-posts {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    border: 2px solid var(--ink);
    padding: .55rem 1.2rem;
    border-radius: 999px;
    transition: background .2s, color .2s, border-color .2s;
}

.older-posts:hover,
.newer-posts:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
    margin-top: 4.5rem;
    border-top: 2px solid var(--ink);
    background: var(--paper);
    padding: 3rem 0 2.4rem;
}
.foot { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; align-items: flex-start; }
.foot__brand { max-width: 300px; }
.foot__brand p {
    font-family: var(--sans); font-size: .85rem;
    color: rgba(21, 21, 15, .7); margin-top: .8rem; line-height: 1.7;
}
.foot__cols { display: flex; gap: 3.4rem; flex-wrap: wrap; }
.foot__col h4 {
    font-family: var(--sans); font-size: .7rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--plum);
    margin-bottom: .9rem; font-weight: 700;
}
.foot__col a {
    display: block; font-family: var(--sans); text-decoration: none;
    color: var(--ink); font-size: .88rem; margin-bottom: .6rem;
}
.foot__col a:hover { color: var(--plum); }
.foot__bot {
    margin-top: 2.4rem; padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-family: var(--sans); font-size: .78rem;
    color: rgba(21, 21, 15, .6);
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.foot__bot a { color: inherit; text-decoration: underline; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
/* ── Mob-nav caché sur desktop ── */
.mob-nav { display: none; }
.mob-nav__cta { display: none; }

@media (max-width: 1100px) {

    /* ── Topbar sur mobile ── */
    .topbar { z-index: 100; contain: none; }
    .topbar__in { position: relative; }

    /* ── Desktop nav masqué sur mobile ── */
    .nav { display: none !important; }

    /* ── Mob-nav : animation grid crimsonV2 ── */
    .mob-nav {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 300ms ease-in-out;
        background: var(--paper);
        border-top: 2px solid var(--ink);
        border-bottom: none;
        overflow: hidden;
    }
    .topbar:has(#mobile-nav[data-open='true']) .mob-nav {
        grid-template-rows: 1fr;
    }
    .mob-nav__inner {
        min-height: 0;
        overflow-y: auto;
        max-height: calc(100svh - 52px);
        padding: 0 6vw;
    }

    /* ── Items de navigation ── */
    .mob-nav__list {
        list-style: none; margin: 0; padding: 1.5rem 0 0;
        display: flex; flex-direction: column; gap: 0;
    }
    .mob-nav__item { width: 100%; }
    .mob-nav__item > a {
        display: block; padding: 1rem 0;
        font-family: var(--sans); font-size: 1.2rem; font-weight: 600;
        letter-spacing: 0; text-transform: none; white-space: normal;
        border-bottom: 1px solid var(--line);
        color: var(--ink); text-decoration: none;
    }
    .mob-nav__item:last-child > a { border-bottom: 0; }

    /* Items enfants (label "-") indentés */
    .mob-nav__item--child > a {
        padding-left: 1.4rem;
        font-size: 1rem; font-weight: 400;
        color: rgba(21,21,15,.65);
    }

    /* ── Boutons en bas du menu mobile ── */
    .mob-nav__actions { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: 1.8rem 0 2rem; }
    .mob-nav__cta { display: inline-flex !important; }

    /* ── Hamburger → X via data-open ── */
    .menu-toggle { display: flex; }
    .menu-toggle span { transition: transform .22s, opacity .22s; }
    #mobile-nav[data-open='true'] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    #mobile-nav[data-open='true'] span:nth-child(2) { opacity: 0; }
    #mobile-nav[data-open='true'] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    /* ── Scroll bloqué quand menu ouvert ── */
    body.no-scroll { overflow: hidden; }

    /* ── Cacher btn-sub et btn-login topbar (pas ceux du mob-nav), montrer search ── */
    .topbar__in .btn-sub,
    .topbar__in .btn-login { display: none; }
    .search-btn {
        display: flex; align-items: center; justify-content: center;
        background: none; border: 0; cursor: pointer; padding: 6px; color: inherit;
    }

    .grid, .pick-grid { grid-template-columns: 1fr 1fr; }
    .feature { grid-template-columns: 1fr; }
    .feature__media { min-height: 230px; }
}
@media (max-width: 560px) {
    .grid, .pick-grid { grid-template-columns: 1fr; }
    .slide { aspect-ratio: 4/5; }
    .post-body .kg-bookmark-container { flex-direction: column; }
    .post-body .kg-bookmark-thumbnail { max-width: 100%; min-height: 160px; }
}

/* =========================================================================
   DARK MODE
   3 sources possibles, par priorité :
   1. data-theme="dark|light" : choix utilisateur via le bouton (localStorage)
   2. data-color-scheme="Sombre" : forcé par l'admin Ghost
   3. data-color-scheme="Auto" + prefers-color-scheme: dark : système
   ========================================================================= */

/* Choix utilisateur explicite "sombre" */
html[data-theme="dark"] {
    --paper: #15150f;
    --ink: #faf8f0;
    --line: rgba(250, 248, 240, .14);
    --accent: var(--dark-accent, var(--ghost-accent-color, #cde052));
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .feature,
html[data-theme="dark"] .post-author-card,
html[data-theme="dark"] .post-body blockquote {
    background: #1f1f17;
}

/* Admin Ghost = "Sombre" et l'utilisateur n'a pas explicitement choisi clair */
html[data-color-scheme="Sombre"]:not([data-theme="light"]) {
    --paper: #15150f;
    --ink: #faf8f0;
    --line: rgba(250, 248, 240, .14);
    --accent: var(--dark-accent, var(--ghost-accent-color, #cde052));
}
html[data-color-scheme="Sombre"]:not([data-theme="light"]) .card,
html[data-color-scheme="Sombre"]:not([data-theme="light"]) .feature,
html[data-color-scheme="Sombre"]:not([data-theme="light"]) .post-author-card,
html[data-color-scheme="Sombre"]:not([data-theme="light"]) .post-body blockquote {
    background: #1f1f17;
}

/* Admin = "Auto" + système en sombre + utilisateur n'a pas explicitement choisi clair */
@media (prefers-color-scheme: dark) {
    html[data-color-scheme="Auto"]:not([data-theme="light"]) {
        --paper: #15150f;
        --ink: #faf8f0;
        --line: rgba(250, 248, 240, .14);
        --accent: var(--dark-accent, var(--ghost-accent-color, #cde052));
    }
    html[data-color-scheme="Auto"]:not([data-theme="light"]) .card,
    html[data-color-scheme="Auto"]:not([data-theme="light"]) .feature,
    html[data-color-scheme="Auto"]:not([data-theme="light"]) .post-author-card,
    html[data-color-scheme="Auto"]:not([data-theme="light"]) .post-body blockquote {
        background: #1f1f17;
    }
}