/* ============================================
   RACINES SACRÉES — Thème Ghost v1.2
   Univers : Abeilles · Cholq'ij · Homme-Nature
   ============================================ */

/* === Variables === */
:root {
    --color-bg:           #f7efd8;
    --color-surface:      #ede3c0;
    --color-surface-2:    #e2d5a8;
    --color-text:         #1a0a02;
    --color-text-muted:   #4d2d10;
    --color-text-light:   #7a4e28;
    --color-accent:       #c74e12;
    --color-accent-dark:  #a03c0c;
    --color-accent-light: #e07040;
    --color-forest:       #083d1e;
    --color-forest-light: #145e30;
    --color-forest-mid:   #1e7040;
    --color-gold:         #d49610;
    --color-honey:        #e8a818;
    --color-amber:        #f2c040;
    --color-comb:         #c8960c;
    --color-border:       #c4a860;
    --color-border-light: #ddd0a0;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Lora', Georgia, serif;
    --font-ui:      'Jost', system-ui, sans-serif;

    --size-nav-height: 72px;
    --size-inner:      1100px;
    --size-content:    720px;

    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 4px rgba(26, 10, 2, 0.1);
    --shadow-md: 0 4px 20px rgba(26, 10, 2, 0.14);
    --shadow-lg: 0 8px 36px rgba(26, 10, 2, 0.18);

    --transition: 0.2s ease;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }

/* === Layout === */
.inner {
    max-width: var(--size-inner);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 26px;
    border-radius: var(--radius-full);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-honey);
    border-color: var(--color-honey);
}
.btn-outline:hover {
    background: var(--color-honey);
    color: var(--color-forest);
}

.btn-large { padding: 14px 38px; font-size: 1rem; }

/* === Navigation === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-forest);
    border-bottom: 1px solid rgba(232, 168, 24, 0.2);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--size-nav-height);
    max-width: var(--size-inner);
    margin: auto;
    padding: 0 24px;
    gap: 32px;
}

.site-logo-link, .site-title-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo { height: 44px; width: auto; }

.site-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-amber);
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.site-tagline {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    color: rgba(232, 200, 100, 0.6);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-item a {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(242, 192, 64, 0.75);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    letter-spacing: 0.03em;
}
.nav-item a:hover,
.nav-item.active a {
    color: var(--color-amber);
    background: rgba(232, 168, 24, 0.12);
}
.nav-item.nav-cta { margin-left: 8px; }
.nav-item.nav-cta .btn-primary {
    background: var(--color-honey);
    border-color: var(--color-honey);
    color: var(--color-forest);
}
.nav-item.nav-cta .btn-primary:hover {
    background: var(--color-amber);
    border-color: var(--color-amber);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-amber);
    border-radius: 2px;
    transition: all var(--transition);
}

/* === Hero (Home) === */
.site-hero {
    background: var(--color-forest);
    color: var(--color-bg);
    text-align: center;
    padding: 44px 24px 40px;
    position: relative;
    overflow: hidden;
}

/* Honeycomb texture background */
.site-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='116'%3E%3Cpolygon fill='none' stroke='rgba(212,150,16,0.22)' stroke-width='1' points='50,2 94,26 94,74 50,98 6,74 6,26'/%3E%3Cpolygon fill='none' stroke='rgba(212,150,16,0.22)' stroke-width='1' points='50,98 94,122 94,170 50,194 6,170 6,122'/%3E%3Cpolygon fill='none' stroke='rgba(212,150,16,0.22)' stroke-width='1' points='100,2 144,26 144,74 100,98 56,74 56,26'/%3E%3C/svg%3E");
    background-size: 100px 116px;
    pointer-events: none;
    opacity: 0.8;
}

/* Radial glow */
.site-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(212, 150, 16, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

/* Maya sun + hexagon ornament */
.hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.hero-sun {
    width: 52px;
    height: 52px;
    color: var(--color-gold);
    opacity: 0.85;
}

.hero-hex {
    width: 28px;
    height: 28px;
    color: var(--color-comb);
    opacity: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--color-amber);
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}

.hero-description {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(247, 239, 216, 0.7);
    max-width: 580px;
    margin: 0 auto 36px;
    font-style: italic;
    line-height: 1.7;
}

/* Honeycomb cluster SVG under description */
.hero-comb {
    width: 200px;
    margin: 0 auto 12px;
    opacity: 1;
    color: var(--color-honey);
}

.hero-divider {
    width: 160px;
    margin: 0 auto;
    color: var(--color-gold);
    opacity: 0.4;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    color: rgba(247, 239, 216, 0.45);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    animation: hero-bounce 2.2s ease-in-out infinite;
    transition: color 0.2s;
}
.hero-scroll-hint:hover { color: rgba(247, 239, 216, 0.85); }

@keyframes hero-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

/* === Home — Featured Post === */
.home-cover {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.home-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(26, 10, 2, 0.65));
}

.featured-post-section { padding: 72px 0 0; }

.section-label {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-comb);
    margin-bottom: 16px;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.featured-post.has-image .featured-content { padding: 48px; }
.featured-post:not(.has-image) .featured-content {
    grid-column: 1 / -1;
    padding: 48px;
    text-align: center;
}

.featured-image-link { display: block; overflow: hidden; }
.featured-image {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-image-link:hover .featured-image { transform: scale(1.04); }

.featured-tags { margin-bottom: 16px; }

.featured-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}
.featured-title a { color: var(--color-text); }
.featured-title a:hover { color: var(--color-accent); }

.featured-excerpt {
    color: var(--color-text-muted);
    margin-bottom: 28px;
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* === Posts Grid === */
.posts-section { padding: 68px 0 80px; }

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.section-ornament {
    color: var(--color-comb);
    font-size: 1rem;
    opacity: 0.7;
    line-height: 1;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.post-grid--small { gap: 20px; }

/* === Post Card === */
.post-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Hexagonal accent on hover */
.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-forest), var(--color-gold), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.post-card { position: relative; }
.post-card:hover::before { opacity: 1; }

.post-card-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card-image-link:hover .post-card-image { transform: scale(1.05); }

.post-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-tags { margin-bottom: 10px; }

.post-card-tag {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-forest-mid);
}
.post-card-tag:hover { color: var(--color-accent); }

.post-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    flex: 1;
}
.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-accent); }

.post-card-excerpt {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border-light);
    margin-top: auto;
}

.post-card-author { display: flex; align-items: center; gap: 8px; }

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}

.author-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-forest);
    color: var(--color-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.author-name {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--color-text-light);
}
.post-card-sep { opacity: 0.4; }

/* === Tag Pill === */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    background: rgba(8, 61, 30, 0.08);
    color: var(--color-forest-mid);
    border-radius: var(--radius-full);
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all var(--transition);
    border: 1px solid rgba(8, 61, 30, 0.15);
}
.tag-pill:hover {
    background: var(--color-forest);
    color: var(--color-amber);
    border-color: var(--color-forest);
}

/* === Maya step divider (CSS ornament) === */
.maya-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 48px 0;
    color: var(--color-comb);
    opacity: 0.5;
}
.maya-divider::before,
.maya-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border));
}
.maya-divider::after {
    background: linear-gradient(to left, transparent, var(--color-border));
}

/* === Subscribe Banner === */
.subscribe-banner {
    background: var(--color-forest);
    color: var(--color-bg);
    text-align: center;
    padding: 88px 24px;
    position: relative;
    overflow: hidden;
}

/* Subtle honeycomb on banner */
.subscribe-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92'%3E%3Cpolygon fill='none' stroke='rgba(212,150,16,0.06)' stroke-width='1' points='40,2 76,22 76,62 40,82 4,62 4,22'/%3E%3Cpolygon fill='none' stroke='rgba(212,150,16,0.06)' stroke-width='1' points='40,82 76,102 76,142 40,162 4,142 4,102'/%3E%3Cpolygon fill='none' stroke='rgba(212,150,16,0.06)' stroke-width='1' points='80,2 116,22 116,62 80,82 44,62 44,22'/%3E%3C/svg%3E");
    background-size: 80px 92px;
    pointer-events: none;
}

.subscribe-banner--post {
    background: var(--color-surface);
    color: var(--color-text);
    border-top: 1px solid var(--color-border-light);
}
.subscribe-banner--post::before { display: none; }

.subscribe-symbol {
    font-size: 1rem;
    letter-spacing: 0.25em;
    color: var(--color-honey);
    margin-bottom: 24px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}
.subscribe-banner--post .subscribe-symbol { color: var(--color-comb); }

.subscribe-banner h3 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-amber);
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}
.subscribe-banner--post h3 { color: var(--color-text); }

.subscribe-banner p {
    max-width: 480px;
    margin: 0 auto 32px;
    color: rgba(247, 239, 216, 0.7);
    font-style: italic;
    position: relative;
    z-index: 1;
}
.subscribe-banner--post p { color: var(--color-text-muted); }

.subscribe-banner .btn-large {
    position: relative;
    z-index: 1;
    background: var(--color-honey);
    border-color: var(--color-honey);
    color: var(--color-forest);
    font-weight: 500;
}
.subscribe-banner .btn-large:hover {
    background: var(--color-amber);
    border-color: var(--color-amber);
}
.subscribe-banner--post .btn-large {
    background: var(--color-forest);
    border-color: var(--color-forest);
    color: var(--color-amber);
}
.subscribe-banner--post .btn-large:hover {
    background: var(--color-forest-light);
    border-color: var(--color-forest-light);
}

/* === Post Header === */
.post-header {
    padding: 80px 0 52px;
    text-align: center;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
}

.post-tags {
    margin-bottom: 18px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.post-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    max-width: var(--size-content);
    margin: 0 auto 22px;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.post-excerpt {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.65;
    font-family: var(--font-display);
    font-weight: 400;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
}
.post-author:hover { color: var(--color-accent); }
.post-meta-sep { opacity: 0.35; }

/* === Feature Image === */
.post-feature-image { margin: 0; }
.post-feature-image img {
    width: 100%;
    height: auto;
    display: block;
}
.post-feature-image figcaption {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text-light);
    font-style: italic;
    padding: 8px 16px;
}

/* === Post Body / Content === */
.post-body { padding: 72px 0; }

.post-content {
    max-width: var(--size-content);
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.85;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: var(--font-display);
    color: var(--color-text);
    line-height: 1.2;
    margin: 2.2em 0 0.8em;
    font-weight: 600;
}

.post-content h2 { font-size: 1.875rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.1875rem; }

.post-content p { margin-bottom: 1.6em; }

.post-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(199, 78, 18, 0.35);
    text-underline-offset: 3px;
}
.post-content a:hover { text-decoration-color: var(--color-accent); }

.post-content blockquote {
    border-left: 3px solid var(--color-gold);
    padding: 8px 0 8px 28px;
    margin: 2.5em 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-weight: 400;
    position: relative;
}

.post-content blockquote::before {
    content: '⬡';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-bg);
    color: var(--color-gold);
    font-size: 0.75rem;
    padding: 2px 0;
    line-height: 1;
}

.post-content blockquote p:last-child { margin-bottom: 0; }

.post-content img {
    border-radius: var(--radius-md);
    margin: 2.5em auto;
}

.post-content figure { margin: 2.5em 0; }
.post-content figcaption {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 10px;
}

.post-content pre {
    background: var(--color-forest);
    color: var(--color-amber);
    padding: 22px 26px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 2.5em 0;
}

.post-content code {
    font-size: 0.875em;
    background: var(--color-surface-2);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    color: var(--color-accent);
}
.post-content pre code { background: none; padding: 0; color: inherit; }

.post-content ul, .post-content ol {
    padding-left: 1.75em;
    margin-bottom: 1.6em;
}
.post-content li { margin-bottom: 0.5em; }

.post-content hr {
    border: none;
    text-align: center;
    margin: 3.5em 0;
    color: var(--color-comb);
    font-size: 1.125rem;
    letter-spacing: 0.4em;
    opacity: 0.5;
}
.post-content hr::after { content: '⬡ ✦ ⬡'; }

.post-content .kg-card { margin: 2.5em 0; }
.post-content .kg-image-card img { border-radius: var(--radius-md); }

.post-content .kg-callout-card {
    border-radius: var(--radius-md);
    padding: 22px 26px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    gap: 16px;
}

/* === Post Footer === */
.post-footer { padding: 52px 0 72px; }

.post-footer-ornament {
    text-align: center;
    margin-bottom: 36px;
}

.author-card {
    display: flex;
    gap: 24px;
    padding: 36px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    margin-bottom: 36px;
    border: 1px solid var(--color-border-light);
}

.author-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-border);
}

.author-card-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-forest);
    color: var(--color-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-card-content h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}
.author-card-content h4 a { color: var(--color-text); }
.author-card-content h4 a:hover { color: var(--color-accent); }
.author-card-content p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.share-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
}
.share-btn {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 400;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.share-btn:hover {
    background: var(--color-forest);
    color: var(--color-amber);
    border-color: var(--color-forest);
}

.post-tags-footer { display: flex; gap: 8px; flex-wrap: wrap; }

.author-website {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
}

/* === Related Posts === */
.related-posts {
    padding: 64px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-light);
}
.related-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--color-text);
}

/* === Page Template === */
.page-header { padding: 80px 0 52px; text-align: center; }
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    max-width: 700px;
    margin: 0 auto 18px;
    letter-spacing: 0.01em;
}
.page-excerpt {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-display);
}

/* === Tag/Author Headers === */
.tag-header, .author-header {
    padding: 80px 0 52px;
    text-align: center;
    position: relative;
    background: var(--color-forest);
    color: var(--color-bg);
}

.tag-header-image, .author-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.tag-header-overlay, .author-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 61, 30, 0.88);
}
.tag-header-content, .author-profile { position: relative; z-index: 1; }

.tag-label {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-honey);
    margin-bottom: 14px;
    opacity: 0.9;
}

.tag-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: var(--color-amber);
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}
.tag-description {
    max-width: 560px;
    margin: 0 auto 18px;
    color: rgba(247, 239, 216, 0.7);
    font-style: italic;
}
.tag-count {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: rgba(247, 239, 216, 0.5);
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: var(--size-inner);
    margin: auto;
    padding: 0 24px;
    text-align: left;
}
.author-profile-image {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(232, 168, 24, 0.4);
    flex-shrink: 0;
}
.author-profile-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(232, 168, 24, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-amber);
    flex-shrink: 0;
}
.author-name {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-amber);
    margin-bottom: 8px;
}
.author-bio {
    color: rgba(247, 239, 216, 0.7);
    font-style: italic;
    margin-bottom: 8px;
}
.author-location, .author-website {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: rgba(247, 239, 216, 0.55);
}

/* === Error Page === */
.error-template {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.error-symbol {
    color: var(--color-comb);
    font-size: 1.5rem;
    margin-bottom: 16px;
    opacity: 0.5;
}
.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: 16px;
}
.error-message {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-display);
}

/* === Pagination === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border-light);
}
.pagination a {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 9px 22px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--transition);
}
.pagination a:hover {
    border-color: var(--color-forest);
    color: var(--color-forest);
    background: rgba(8, 61, 30, 0.06);
}
.pagination .page-number {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* === Footer === */
.site-footer {
    background: var(--color-forest);
    color: rgba(247, 239, 216, 0.7);
    padding: 72px 0 0;
    position: relative;
}

/* Honeycomb texture in footer too */
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon fill='none' stroke='rgba(212,150,16,0.05)' stroke-width='1' points='30,2 58,18 58,50 30,66 2,50 2,18'/%3E%3Cpolygon fill='none' stroke='rgba(212,150,16,0.05)' stroke-width='1' points='30,66 58,82 58,114 30,130 2,114 2,82'/%3E%3Cpolygon fill='none' stroke='rgba(212,150,16,0.05)' stroke-width='1' points='60,2 88,18 88,50 60,66 32,50 32,18'/%3E%3C/svg%3E");
    background-size: 60px 70px;
    pointer-events: none;
}

.footer-inner {
    max-width: var(--size-inner);
    margin: auto;
    padding: 0 24px 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    position: relative;
    z-index: 1;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-amber);
    margin-bottom: 10px;
    display: block;
    letter-spacing: 0.02em;
}
.footer-description {
    font-size: 0.9375rem;
    font-style: italic;
    color: rgba(247, 239, 216, 0.55);
    margin-bottom: 20px;
    max-width: 320px;
    line-height: 1.7;
}
.footer-symbol {
    color: var(--color-honey);
    opacity: 0.7;
    font-size: 1rem;
    letter-spacing: 0.3em;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.footer-nav-title {
    font-family: var(--font-ui);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(247, 239, 216, 0.4);
    margin-bottom: 16px;
    font-weight: 500;
}
.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav ul a {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: rgba(247, 239, 216, 0.65);
    transition: color var(--transition);
}
.footer-nav ul a:hover { color: var(--color-amber); }
.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 18px;
    color: rgba(247, 239, 216, 0.55);
    font-style: italic;
    line-height: 1.65;
}

.footer-bottom {
    border-top: 1px solid rgba(247, 239, 216, 0.08);
    padding: 20px 24px;
    max-width: var(--size-inner);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.footer-copy {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    color: rgba(247, 239, 216, 0.35);
}
.footer-copy a { color: rgba(247, 239, 216, 0.5); }
.footer-copy a:hover { color: var(--color-amber); }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    color: rgba(247, 239, 216, 0.45);
}
.footer-social a:hover { color: var(--color-amber); }

/* === Responsive === */
@media (max-width: 900px) {
    .featured-post { grid-template-columns: 1fr; }
    .featured-post.has-image .featured-content { padding: 32px; }
    .featured-image-link { min-height: 260px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
    .author-profile { flex-direction: column; text-align: center; }
}

@media (max-width: 680px) {
    :root { --size-nav-height: 60px; }
    .nav-toggle { display: flex; }
    .nav-list {
        display: none;
        position: absolute;
        top: var(--size-nav-height);
        left: 0;
        right: 0;
        background: var(--color-forest);
        border-bottom: 1px solid rgba(212, 150, 16, 0.2);
        flex-direction: column;
        padding: 16px 24px 28px;
        gap: 0;
        box-shadow: var(--shadow-lg);
    }
    .nav-list.open { display: flex; }
    .nav-item a { display: block; padding: 12px 0; }
    .nav-item.nav-cta { margin-left: 0; padding-top: 8px; }
    .site-header { position: relative; }
    .post-grid { grid-template-columns: 1fr; }
    .post-header, .page-header { padding: 52px 0 36px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-columns { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .post-share { justify-content: flex-start; }
    .author-card { flex-direction: column; gap: 16px; }
    .hero-ornament { gap: 10px; margin-bottom: 16px; }
    .hero-sun { width: 40px; height: 40px; }
    .site-hero { padding: 24px 24px 52px; }
    .hero-description { margin: 0 auto 16px; }
    .hero-comb { display: none; }
    .hero-divider { display: none; }
}

/* Hauteur viewport contrainte : paysage mobile, tablettes, laptops */
@media (max-height: 800px) {
    .site-hero { padding: 20px 24px 52px; }
    .hero-ornament { margin-bottom: 14px; }
    .hero-description { margin: 0 auto 14px; }
    .hero-comb { display: none; }
    .hero-divider { display: none; }
}

@media (max-height: 600px) {
    .site-hero { padding: 14px 24px 48px; }
    .hero-ornament { margin-bottom: 10px; }
    .hero-title { margin-bottom: 10px; }
    .hero-description { margin: 0 auto 10px; font-size: 0.9rem; }
}

/* === Ghost Cards === */
.gh-content .kg-width-wide {
    width: min(calc(var(--size-content) + 160px), 100%);
    margin-left: auto;
    margin-right: auto;
}
.gh-content .kg-width-full {
    margin-left: calc(50% - 50vw + 24px);
    width: calc(100vw - 48px);
}
.kg-gallery-container { display: flex; flex-direction: column; max-width: 100%; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: 8px; margin-bottom: 8px; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }

.kg-bookmark-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.kg-bookmark-container { display: flex; color: var(--color-text); text-decoration: none; }
.kg-bookmark-content { flex-grow: 1; padding: 20px; }
.kg-bookmark-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
}
.kg-bookmark-description { font-size: 0.875rem; color: var(--color-text-muted); }
.kg-bookmark-thumbnail { max-width: 200px; overflow: hidden; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; margin: 0; }

/* === Utility === */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
