/* ==========================================================================
   CONSOLES VINTAGE v1 — thème « Jaquette PAL »
   Crème chaud, orange, bleu ciel, jaune, encre brune.
   Titres : Unbounded · Texte : Archivo · Étiquettes : Silkscreen
   ========================================================================== */

:root {
    --bg: #F7E9D4;
    --paper: #FFF8EE;
    --ink: #1A1410;
    --ink-soft: #2E2620;
    --muted: #5B4A3E;
    --line-soft: #E3D5C0;

    --orange: #EE5A24;
    --orange-text: #A8360E;
    --sky: #5C94FC;
    --gold: #F8B800;

    --font-display: 'Unbounded', 'Archivo Black', sans-serif;
    --font-body: 'Archivo', -apple-system, system-ui, sans-serif;
    --font-pixel: 'Silkscreen', ui-monospace, monospace;
    --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

    --content-w: 720px;
    --wide-w: 1180px;
    --gutter: clamp(1.1rem, 5vw, 3rem);
    --radius: 18px;
    --radius-lg: 22px;
    --border: 3px solid var(--ink);
    --shadow: 5px 5px 0 var(--ink);
    --shadow-lg: 8px 8px 0 var(--ink);

    /* compatibilité avec main.js */
    --text-secondary: var(--muted);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.tv-sep { opacity: 0.5; margin: 0 0.35rem; }
.tv-main { min-height: 60vh; }

/* ---------- Boutons, badges, pilules ---------- */
.tv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 44px; padding: 0.7rem 1.4rem;
    font-family: var(--font-body); font-weight: 800; font-size: 0.95rem;
    text-decoration: none; border-radius: 999px; border: 2px solid var(--ink);
    background: var(--paper); color: var(--ink); cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}
.tv-btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.tv-btn--primary { background: var(--ink); color: var(--bg); }
.tv-btn--primary:hover { color: var(--bg); }
.tv-btn--orange { background: var(--orange); color: var(--ink); }

.tv-badge {
    display: inline-block;
    font-family: var(--font-pixel); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ink); text-decoration: none;
}
.tv-badge--chip {
    background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 0.3rem 0.85rem;
}

.tv-cat-pill {
    display: inline-flex; align-items: center; gap: 0.6rem;
    min-height: 44px; padding: 0.55rem 1.1rem;
    font-weight: 800; font-size: 0.95rem; text-decoration: none;
    border: 2px solid var(--ink); border-radius: 999px;
    background: var(--paper); color: var(--ink);
    transition: transform 0.12s, box-shadow 0.12s;
}
.tv-cat-pill:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.tv-cat-pill__count { font-family: var(--font-display); font-weight: 900; }
.tv-categories__inner .tv-cat-pill:nth-child(5n+1) { background: var(--orange); }
.tv-categories__inner .tv-cat-pill:nth-child(5n+2) { background: var(--sky); }
.tv-categories__inner .tv-cat-pill:nth-child(5n+3) { background: var(--ink); color: var(--bg); }
.tv-categories__inner .tv-cat-pill:nth-child(5n+4) { background: var(--gold); }
.tv-cat-pill--sm { min-height: 36px; padding: 0.35rem 0.9rem; font-size: 0.85rem; }

/* ---------- Tranche PAL ---------- */
.tv-pal {
    background: var(--ink); color: var(--bg);
    font-family: var(--font-pixel); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.tv-pal__inner {
    max-width: var(--wide-w); margin: 0 auto; padding: 0.45rem var(--gutter);
    display: flex; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap;
}

/* ---------- En-tête ---------- */
.tv-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg); border-bottom: 3px solid var(--ink);
}
.tv-header__inner {
    max-width: var(--wide-w); margin: 0 auto; padding: 0.9rem var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.tv-logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.tv-logo:hover { color: var(--ink); }
.tv-logo img { max-height: 44px; width: auto; }
.tv-logo__star { width: 28px; height: 28px; flex-shrink: 0; }
.tv-logo__text {
    font-family: var(--font-display); font-weight: 900; font-size: 1.3rem;
    text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
}

.tv-nav__list, .tv-mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.tv-nav__list { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.tv-nav__list a, .tv-mobile-menu__list a { font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.tv-nav__list .nav-current a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--orange); }

.tv-header__actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.tv-header__link { font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.tv-nav-toggle {
    display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
    background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); cursor: pointer;
}
.tv-mobile-menu { display: none; border-top: 3px solid var(--ink); background: var(--paper); padding: 1rem var(--gutter) 1.25rem; }
.tv-mobile-menu.is-open { display: block; }
.tv-mobile-menu__list li { border-bottom: 2px dashed var(--line-soft); }
.tv-mobile-menu__list a { display: block; padding: 0.75rem 0; }
.tv-mobile-menu__actions { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }

@media (max-width: 1024px) {
    .tv-nav { display: none; }
    .tv-nav-toggle { display: inline-flex; }
    .tv-header__actions .tv-header__link { display: none; }
}
@media (max-width: 520px) {
    .tv-header__actions .tv-btn { display: none; }
}

/* ---------- Hero jaquette (accueil) ---------- */
.tv-jacket-wrap { max-width: var(--wide-w); margin: 1.5rem auto 0; padding: 0 var(--gutter); }
.tv-jacket {
    position: relative; overflow: hidden;
    background: var(--orange); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.tv-jacket__spine {
    position: absolute; left: 0; top: 0; bottom: 0; width: 46px; background: var(--ink);
    display: flex; align-items: center; justify-content: center;
}
.tv-jacket__spine span {
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-family: var(--font-pixel); color: var(--bg); font-size: 0.8rem; letter-spacing: 0.08em; white-space: nowrap;
}
.tv-jacket__band {
    position: absolute; right: -8%; top: -20%; width: 44%; height: 140%;
    background: var(--sky); transform: skewX(-14deg); border-left: var(--border);
}
.tv-jacket__stripe {
    position: absolute; right: 31%; top: -20%; width: 26px; height: 140%;
    background: var(--gold); transform: skewX(-14deg); border-left: var(--border); border-right: var(--border);
}
.tv-jacket__inner {
    position: relative; padding: 3.25rem 3rem 3.25rem 5.75rem;
    display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center;
}
.tv-jacket__text { flex: 999 1 460px; min-width: 0; }
.tv-jacket__title {
    margin: 1.2rem 0 0;
    font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 0.98; letter-spacing: -0.02em;
}
.tv-jacket__title em { font-style: italic; }
.tv-jacket__desc { margin: 1.3rem 0 0; font-size: 1.18rem; line-height: 1.55; font-weight: 500; max-width: 34rem; }
.tv-jacket__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.tv-jacket__card {
    flex: 1 1 290px; max-width: 360px; display: block; overflow: hidden;
    text-decoration: none; color: var(--ink);
    background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink);
    transform: rotate(2.5deg); transition: transform 0.15s;
}
.tv-jacket__card:hover { color: var(--ink); transform: rotate(0deg) translateY(-3px); }
.tv-jacket__card-img { aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.tv-jacket__card-img img { width: 100%; height: 100%; object-fit: cover; }
.tv-jacket__card-body { padding: 1.1rem 1.25rem 1.3rem; }
.tv-jacket__card-kicker { font-family: var(--font-pixel); font-size: 0.78rem; text-transform: uppercase; color: var(--orange-text); }
.tv-jacket__card-title { margin: 0.45rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.tv-jacket__card-meta { margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--muted); }

@media (max-width: 700px) {
    .tv-jacket__inner { padding: 2.25rem 1.4rem 2.25rem 4rem; }
    .tv-jacket__spine { width: 34px; }
    .tv-jacket__band { width: 60%; right: -30%; }
    .tv-jacket__stripe { display: none; }
    .tv-jacket__card { transform: none; max-width: none; }
}

/* ---------- Rayons ---------- */
.tv-categories { max-width: var(--wide-w); margin: 0 auto; padding: 3rem var(--gutter) 0.5rem; }
.tv-categories__inner { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* ---------- Grille d'articles ---------- */
.tv-feed { padding: 2.5rem 0 1.5rem; }
.tv-feed__inner { max-width: var(--wide-w); margin: 0 auto; padding: 0 var(--gutter); }
.tv-feed__heading {
    margin: 0 0 1.75rem;
    font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -0.02em;
}
.tv-feed__heading .tv-outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.tv-feed__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
@media (max-width: 960px) { .tv-feed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tv-feed__grid { grid-template-columns: 1fr; } }

.tv-card {
    background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden; transition: transform 0.12s, box-shadow 0.12s;
}
.tv-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.tv-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.tv-card__link:hover { color: var(--ink); }
.tv-card__image { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--border); background: var(--ink); }
.tv-card__image img { width: 100%; height: 100%; object-fit: cover; }
.tv-card__placeholder {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--border);
    background: var(--sky); display: flex; align-items: flex-end; padding: 0.9rem 1rem;
}
.tv-card__placeholder::after {
    content: ""; position: absolute; right: 18%; top: -20%; width: 22px; height: 140%;
    background: var(--gold); transform: skewX(-14deg); border-left: var(--border); border-right: var(--border);
}
.tv-card__placeholder span {
    position: relative; z-index: 1;
    font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase;
    font-size: 1.6rem; line-height: 1.05; color: var(--ink);
}
.tv-feed__grid .tv-card:nth-child(3n+2) .tv-card__placeholder { background: var(--orange); }
.tv-feed__grid .tv-card:nth-child(3n+3) .tv-card__placeholder { background: var(--ink); }
.tv-feed__grid .tv-card:nth-child(3n+3) .tv-card__placeholder span { color: var(--bg); }
.tv-feed__grid .tv-card:nth-child(3n+3) .tv-card__placeholder::after { background: var(--orange); border: 0; }
.tv-card__body { padding: 1.05rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.tv-card__title { margin: 0; font-family: var(--font-body); font-weight: 800; font-size: 1.15rem; line-height: 1.28; }
.tv-card__excerpt { margin: 0; font-size: 0.93rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv-card__meta { margin-top: auto; font-size: 0.85rem; color: var(--muted); }

/* ---------- Club (abonnement) ---------- */
.tv-cta { max-width: var(--wide-w); margin: 0 auto; padding: 2.5rem var(--gutter) 4rem; }
.tv-cta__box {
    background: var(--paper); border: var(--border); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--sky);
    padding: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center;
}
.tv-cta__box > .tv-cta__title, .tv-cta__box > .tv-cta__desc, .tv-cta__box > .tv-cta__note { flex: 1 1 100%; margin: 0; }
.tv-cta__text { flex: 999 1 380px; min-width: 0; }
.tv-cta__actions { flex: 1 1 auto; }
.tv-cta__title {
    margin: 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.1;
}
.tv-cta__desc { margin: 0.6rem 0 0; font-size: 1.05rem; line-height: 1.55; color: #3E3229; }
.tv-cta__form { flex: 1 1 100%; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tv-cta__input {
    flex: 1 1 220px; min-height: 50px; padding: 0 1.1rem;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: #fff; border: 2px solid var(--ink); border-radius: 999px;
}
.tv-cta__submit {
    min-height: 50px; padding: 0 1.4rem; cursor: pointer;
    font: inherit; font-weight: 800; font-size: 1rem;
    background: var(--orange); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
}
.tv-cta__note { font-family: var(--font-pixel); font-size: 0.75rem; text-transform: uppercase; color: var(--muted); }
[data-members-form].success .tv-cta__note::before { content: "C'est noté, vérifie ta boîte mail · "; }
[data-members-form].loading .tv-cta__submit { opacity: 0.6; }

/* ---------- Pagination ---------- */
.tv-pagination {
    max-width: var(--wide-w); margin: 0 auto; padding: 0 var(--gutter) 3rem;
    display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.tv-pagination__link {
    min-height: 44px; padding: 0.6rem 1.2rem; display: inline-flex; align-items: center;
    font-weight: 800; text-decoration: none; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
}
.tv-pagination__link:hover { color: var(--ink); background: var(--gold); }
.tv-pagination__current { font-family: var(--font-pixel); font-size: 0.8rem; text-transform: uppercase; }

/* ---------- Archives (tag, auteur) ---------- */
.tv-archive__header {
    max-width: var(--wide-w); margin: 1.5rem auto 0; padding: 2.5rem var(--gutter) 1rem;
}
.tv-archive__header > * { max-width: 46rem; }
.tv-archive__title {
    margin: 0.6rem 0 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.02em;
}
.tv-archive__desc { margin: 1rem 0 0; font-size: 1.12rem; line-height: 1.6; color: #3E3229; }
.tv-archive__count, .tv-archive__location { display: inline-block; margin-top: 1rem; font-family: var(--font-pixel); font-size: 0.8rem; text-transform: uppercase; color: var(--muted); }
.tv-archive__header--author { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.tv-archive__avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: var(--border); box-shadow: var(--shadow); }

/* ---------- Article ---------- */
.tv-article__header { padding: 3rem var(--gutter) 1.5rem; }
.tv-article__header-inner { max-width: 860px; margin: 0 auto; }
.tv-article__title {
    margin: 0.8rem 0 0; font-family: var(--font-display); font-weight: 900;
    font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.02em;
}
.tv-article__excerpt { margin: 1.1rem 0 0; font-size: 1.22rem; line-height: 1.55; color: #3E3229; }
.tv-article__byline { margin-top: 1.6rem; }
.tv-author { display: flex; align-items: center; gap: 0.8rem; }
.tv-author__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.tv-author__name { font-weight: 800; text-decoration: none; }
.tv-author__meta { font-size: 0.88rem; color: var(--muted); }
.tv-article__header .tv-badge {
    background: var(--orange); border: 2px solid var(--ink); border-radius: 999px; padding: 0.3rem 0.85rem;
}

.tv-article__feature { max-width: 1000px; margin: 0.5rem auto 0; padding: 0 var(--gutter); }
.tv-article__feature img { width: 100%; border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.tv-article__feature figcaption { margin-top: 0.8rem; text-align: center; font-size: 0.85rem; color: var(--muted); }

.tv-article__body { max-width: var(--content-w); margin: 0 auto; padding: 2.5rem var(--gutter) 1rem; box-sizing: content-box; }
.tv-article__footer { max-width: var(--content-w); margin: 0 auto; padding: 1rem var(--gutter) 1rem; box-sizing: content-box; }
.tv-article__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 1.5rem; border-top: 2px dashed var(--line-soft); }
.tv-cta--compact .tv-cta__box { max-width: 860px; margin: 0 auto; }

/* ---------- Sommaire ---------- */
.tv-toc { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 2.25rem; }
.tv-toc__header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.tv-toc__title { font-family: var(--font-pixel); font-size: 0.85rem; text-transform: uppercase; }
.tv-toc__icon { font-size: 0.9rem; }
.tv-toc__list { margin: 0.8rem 0 0; padding: 0; list-style: none; }
.tv-toc__item--sub { padding-left: 1.1rem; }
.tv-toc__link {
    display: block; padding: 0.3rem 0.6rem; font-size: 0.92rem; line-height: 1.45; text-decoration: none;
    border-left: 3px solid transparent; border-radius: 0 8px 8px 0;
}
.tv-toc__link:hover { border-left-color: var(--orange); background: var(--bg); color: var(--ink); }
.tv-toc__link.is-active { border-left-color: var(--orange); background: var(--bg); font-weight: 700; }
.tv-toc__item--sub .tv-toc__link { font-size: 0.86rem; color: var(--muted); }

/* ---------- Bouton de langue ---------- */
.tv-lang-toggle { margin: 0 0 2rem; }
.tv-lang-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; min-height: 44px;
    font: inherit; font-weight: 700; color: var(--ink); background: var(--paper);
    border: 2px solid var(--ink); border-radius: 999px; padding: 0.7rem 1.4rem; cursor: pointer;
}
.tv-lang-btn:hover { background: var(--gold); }
.tv-lang-btn__flag { font-size: 1.3rem; line-height: 1; }

/* ---------- Contenu des articles (Ghost) ---------- */
.gh-content { font-size: 1.08rem; line-height: 1.75; }
.gh-content > * + * { margin-top: 1.4rem; }
.gh-content > :first-child { margin-top: 0; }
.gh-content h2 {
    margin-top: 3rem; font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.2; letter-spacing: -0.01em;
}
.gh-content h3 { margin-top: 2.2rem; font-family: var(--font-body); font-weight: 800; font-size: 1.28rem; line-height: 1.3; }
.gh-content h4 { margin-top: 1.8rem; font-family: var(--font-pixel); font-weight: 400; font-size: 0.95rem; text-transform: uppercase; }
.gh-content h2 + *, .gh-content h3 + * { margin-top: 0.8rem; }
.gh-content p, .gh-content li { font-size: 1.08rem; }
.gh-content strong { font-weight: 800; }
.gh-content a {
    color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange);
    text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.gh-content a:hover { color: var(--orange-text); }
.gh-content ul, .gh-content ol { padding-left: 1.4rem; }
.gh-content li + li { margin-top: 0.4rem; }
.gh-content li::marker { color: var(--orange-text); font-weight: 800; }
.gh-content blockquote {
    margin-left: 0; margin-right: 0; padding: 1.2rem 1.4rem;
    background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--gold);
    font-size: 1.12rem; font-weight: 500;
}
.gh-content blockquote p { margin: 0; }
.gh-content hr { border: 0; height: 3px; background: var(--ink); margin: 3rem 0; }
.gh-content code { font-family: var(--font-mono); font-size: 0.9em; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 6px; padding: 0.1em 0.35em; }
.gh-content pre { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 1.1rem 1.25rem; overflow-x: auto; font-size: 0.9rem; }
.gh-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.gh-content th, .gh-content td { padding: 0.6rem 0.8rem; border: 2px solid var(--ink); text-align: left; vertical-align: top; }
.gh-content th { background: var(--gold); font-weight: 800; }
.gh-content tr:nth-child(even) td { background: var(--paper); }
.gh-content figure { margin: 2rem 0; }
.gh-content figure img { border: var(--border); border-radius: var(--radius); }
.gh-content figcaption { margin-top: 0.6rem; text-align: center; font-size: 0.85rem; color: var(--muted); }

/* Cartes Ghost obligatoires */
.gh-content .kg-width-wide { position: relative; width: min(1000px, 100vw - 2 * var(--gutter)); left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full img { border-radius: 0; border-left: 0; border-right: 0; }
.kg-image { margin: 0 auto; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 0.75rem; }
.kg-gallery-row { display: flex; gap: 0.75rem; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
.kg-embed-card { display: flex; justify-content: center; }

.gh-content .kg-callout-card {
    display: flex; gap: 0.8rem; padding: 1.1rem 1.3rem;
    background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
}
.gh-content .kg-callout-card-accent { background: var(--gold); }
.gh-content .kg-callout-emoji { font-size: 1.3rem; line-height: 1.5; }
.gh-content .kg-callout-text { font-size: 1.02rem; }

.gh-content .kg-button-card { display: flex; }
.gh-content .kg-button-card.kg-align-center { justify-content: center; }
.gh-content .kg-btn, .gh-content .btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.5rem;
    font-weight: 800; text-decoration: none; color: var(--ink);
    background: var(--orange); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
}
.gh-content .kg-btn:hover, .gh-content .btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.gh-content .kg-toggle-card { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); padding: 1rem 1.2rem; }
.gh-content .kg-toggle-heading { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.gh-content .kg-toggle-heading-text { margin: 0; font-size: 1.05rem; font-weight: 800; }
.gh-content .kg-toggle-card-icon { background: none; border: 0; width: 28px; height: 28px; cursor: pointer; }
.gh-content .kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none; }

.gh-content .kg-bookmark-card { margin: 2rem 0; }
.gh-content .kg-bookmark-container {
    display: flex; text-decoration: none; color: var(--ink);
    background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 4px 4px 0 var(--ink);
}
.gh-content .kg-bookmark-content { flex: 1; padding: 1rem 1.2rem; min-width: 0; }
.gh-content .kg-bookmark-title { font-weight: 800; font-size: 1rem; }
.gh-content .kg-bookmark-description { margin-top: 0.3rem; font-size: 0.88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-content .kg-bookmark-metadata { margin-top: 0.5rem; display: flex; gap: 0.4rem; align-items: center; font-size: 0.8rem; color: var(--muted); }
.gh-content .kg-bookmark-icon { width: 18px; height: 18px; border: 0; border-radius: 4px; }
.gh-content .kg-bookmark-thumbnail { width: 180px; flex-shrink: 0; border-left: 2px solid var(--ink); }
.gh-content .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
@media (max-width: 560px) { .gh-content .kg-bookmark-thumbnail { display: none; } }

.gh-content .kg-header-card { padding: 3rem 1.5rem; text-align: center; border: var(--border); border-radius: var(--radius-lg); }
.gh-content .kg-product-card-container, .gh-content .kg-file-card-container {
    border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); padding: 1.1rem;
}

/* ---------- Page d'erreur ---------- */
.tv-error { padding: 5rem var(--gutter); }
.tv-error__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.tv-error__code {
    display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 16vw, 9rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 3px var(--ink);
}
.tv-error__title { margin: 1rem 0 0; font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; text-transform: uppercase; }
.tv-error__desc { margin: 0.8rem 0 1.8rem; color: var(--muted); font-size: 1.1rem; }

/* ---------- Sol en briques + pied de page ---------- */
.tv-ground {
    height: 48px; background-color: var(--orange);
    background-image:
        linear-gradient(var(--ink) 2px, transparent 2px),
        linear-gradient(90deg, var(--ink) 2px, transparent 2px),
        linear-gradient(90deg, var(--ink) 2px, transparent 2px);
    background-size: 100% 24px, 48px 24px, 48px 24px;
    background-position: 0 0, 0 0, 24px 12px;
    border-top: 3px solid var(--ink);
}
.tv-footer { background: var(--ink); color: var(--line-soft); }
.tv-footer a { color: var(--line-soft); text-decoration: none; }
.tv-footer a:hover { color: #fff; text-decoration: underline; }
.tv-footer__inner { max-width: var(--wide-w); margin: 0 auto; padding: 3rem var(--gutter) 2rem; }
.tv-footer__top { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.tv-footer__brand { flex: 1 1 280px; max-width: 26rem; }
.tv-footer__site-name { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; text-transform: uppercase; color: var(--bg); }
.tv-footer__logo { max-height: 44px; width: auto; }
.tv-footer__desc { margin: 0.8rem 0 0; font-size: 0.95rem; line-height: 1.6; }
.tv-footer__links { display: flex; gap: 3rem; flex-wrap: wrap; }
.tv-footer__heading { display: block; margin-bottom: 0.7rem; font-family: var(--font-pixel); font-size: 0.78rem; text-transform: uppercase; color: var(--gold); }
.tv-footer__col ul { list-style: none; margin: 0; padding: 0; }
.tv-footer__col li { margin-bottom: 0.45rem; font-size: 0.95rem; }
.tv-footer__bottom {
    margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #3A3029;
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem;
}

/* ---------- Utilitaires ---------- */
.tv-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tv-archive__header .tv-badge { background: var(--sky); border: 2px solid var(--ink); border-radius: 999px; padding: 0.3rem 0.85rem; }
