/* ============================================================
   EventSuite Ghost Theme — screen.css
   Design cohérent avec eventsuite.fr
   ============================================================ */

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

:root {
    --bg:        #0a0e27;
    --bg-2:      #111827;
    --bg-3:      #1a1f3a;
    --border:    #2a3050;
    --primary:   #4a7fff;
    --primary-2: #64a6ff;
    --gradient:  linear-gradient(135deg, #4a7fff 0%, #64a6ff 100%);
    --text:      #e2e8f0;
    --text-muted:#94a3b8;
    --text-dim:  #6b7280;
    --white:     #ffffff;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow:    0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
    --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

html {
    font-size: 16px;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--white);
}

/* === Layout === */
.es-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}
.es-container--narrow {
    max-width: 760px;
}
.es-main {
    min-height: 80vh;
    padding-top: 72px; /* hauteur navbar */
}

/* ============================================================
   NAVBAR
   ============================================================ */
.es-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 72px;
    background: rgba(10, 14, 39, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.es-navbar.scrolled {
    background: rgba(10, 14, 39, 0.97);
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.es-nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}
.es-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.es-logo img {
    height: 48px;
    width: auto;
}
.es-logo-text {
    display: flex;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.es-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    list-style: none;
}
.es-nav-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}
.es-nav-links a:hover,
.es-nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}
.es-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--gradient);
    color: var(--white) !important;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-radius: 9px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(74,127,255,0.35);
    transition: var(--transition);
    text-decoration: none;
    -webkit-text-fill-color: var(--white);
}
.es-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,127,255,0.5);
}
.es-btn-lg {
    padding: 14px 28px;
    font-size: 0.9rem;
    border-radius: 12px;
}

/* Mobile toggle */
.es-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}
.es-mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    transition: var(--transition);
}
.es-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.es-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.es-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.es-mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(10,14,39,0.98);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    padding: 20px 28px 28px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.es-mobile-nav.active { display: flex; }
.es-mobile-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 11px 12px;
    border-radius: 9px;
    transition: var(--transition);
}
.es-mobile-nav a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.es-mobile-nav .es-mobile-cta {
    margin-top: 12px;
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    border-radius: 10px;
    padding: 13px;
    font-weight: 800;
}

/* ============================================================
   HERO BLOG
   ============================================================ */
.es-blog-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, #0d1330 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.es-blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(74,127,255,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 60%, rgba(100,166,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.es-blog-hero .es-container { position: relative; z-index: 1; }
.es-blog-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.es-blog-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* Section tag badge */
.es-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(74,127,255,0.12);
    color: var(--primary-2);
    border: 1px solid rgba(74,127,255,0.25);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

/* ============================================================
   FEATURED ARTICLE
   ============================================================ */
.es-featured-section {
    padding: 56px 0 0;
}
.es-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}
.es-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.es-featured-card:hover {
    border-color: rgba(74,127,255,0.4);
    box-shadow: 0 8px 40px rgba(74,127,255,0.12);
    transform: translateY(-3px);
}
.es-featured-image {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}
.es-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.es-featured-card:hover .es-featured-image img { transform: scale(1.03); }
.es-featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
.es-featured-content h2 {
    font-size: 1.5rem;
}
.es-featured-content h2 a {
    color: var(--white);
    transition: color 0.2s;
}
.es-featured-content h2 a:hover { color: var(--primary-2); }
.es-featured-content p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   POSTS GRID
   ============================================================ */
.es-posts-section {
    padding: 56px 0 80px;
}
.es-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.es-post-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.es-post-card:hover {
    border-color: rgba(74,127,255,0.35);
    box-shadow: 0 8px 32px rgba(74,127,255,0.1);
    transform: translateY(-4px);
}
.es-card-image {
    display: block;
    height: 200px;
    overflow: hidden;
    background: var(--bg-3);
    position: relative;
}
.es-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.es-post-card:hover .es-card-image img { transform: scale(1.05); }
.es-card-image--placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(74,127,255,0.08), rgba(100,166,255,0.04));
}
.es-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.es-card-body h3 {
    font-size: 1rem;
    line-height: 1.4;
}
.es-card-body h3 a { color: var(--white); transition: color 0.2s; }
.es-card-body h3 a:hover { color: var(--primary-2); }
.es-card-body p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Tag badge */
.es-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(74,127,255,0.1);
    color: var(--primary-2);
    border: 1px solid rgba(74,127,255,0.2);
    border-radius: 6px;
    padding: 2px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}
.es-tag:hover {
    background: rgba(74,127,255,0.18);
    color: var(--white);
}

/* Meta */
.es-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-dim);
    font-size: 0.78rem;
    margin-top: auto;
}
.es-card-meta i { margin-right: 4px; color: var(--primary); }

/* Empty state */
.es-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 24px;
    color: var(--text-dim);
}
.es-empty i { font-size: 3rem; color: var(--border); margin-bottom: 16px; display: block; }
.es-empty h3 { color: var(--text-muted); margin-bottom: 8px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}
.pagination a, .pagination .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary-2);
}
.pagination .page-number { cursor: default; }
.pagination .older-posts, .pagination .newer-posts {
    width: auto;
    padding: 0 16px;
    gap: 6px;
}

/* ============================================================
   ARTICLE (post.hbs)
   ============================================================ */
.es-article-header {
    padding: 72px 0 40px;
    background: linear-gradient(180deg, #0d1330 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.es-article-title {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.es-article-excerpt {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
.es-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.es-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.es-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gradient);
}
.es-author-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
}
.es-author-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
}
.es-article-date {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dim);
}
.es-article-stats {
    color: var(--text-dim);
    font-size: 0.82rem;
}
.es-article-stats i { color: var(--primary); margin-right: 4px; }

/* Article cover image */
.es-article-cover {
    padding: 40px 0;
    background: var(--bg);
}
.es-article-cover img {
    border-radius: var(--radius-lg);
    max-height: 520px;
    width: 100%;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* Article content */
.es-article-content {
    padding: 56px 28px 64px;
}
.es-article-content h1,
.es-article-content h2,
.es-article-content h3,
.es-article-content h4 {
    color: var(--white);
    margin: 40px 0 16px;
    line-height: 1.3;
}
.es-article-content h2 { font-size: 1.6rem; }
.es-article-content h3 { font-size: 1.25rem; }
.es-article-content h4 { font-size: 1.05rem; color: var(--text-muted); }

.es-article-content p {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 20px;
}
.es-article-content a {
    color: var(--primary-2);
    text-decoration: underline;
    text-decoration-color: rgba(100,166,255,0.4);
    transition: color 0.2s;
}
.es-article-content a:hover { color: var(--white); }

.es-article-content ul, .es-article-content ol {
    margin: 20px 0 20px 24px;
    color: var(--text);
    line-height: 1.85;
}
.es-article-content li { margin-bottom: 8px; }

.es-article-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 16px 24px;
    margin: 32px 0;
    background: rgba(74,127,255,0.06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.05rem;
}

.es-article-content img {
    border-radius: var(--radius-md);
    margin: 32px auto;
    border: 1px solid var(--border);
}

.es-article-content pre {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 28px 0;
    font-size: 0.9rem;
}
.es-article-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
    background: rgba(74,127,255,0.1);
    color: var(--primary-2);
    padding: 2px 6px;
    border-radius: 4px;
}
.es-article-content pre code {
    background: none;
    color: var(--text);
    padding: 0;
}

.es-article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

/* Article footer */
.es-article-footer {
    padding: 32px 28px 48px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.es-article-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.es-article-tags span { color: var(--text-dim); font-size: 0.82rem; }

/* Share buttons */
.es-share { display: flex; align-items: center; gap: 8px; }
.es-share span { color: var(--text-dim); font-size: 0.82rem; }
.es-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: var(--transition);
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.es-share-btn:hover { transform: translateY(-2px); color: var(--white); }
.es-share-btn--twitter:hover { background: rgba(29,161,242,0.2); border-color: rgba(29,161,242,0.4); }
.es-share-btn--linkedin:hover { background: rgba(10,102,194,0.2); border-color: rgba(10,102,194,0.4); }
.es-share-btn--facebook:hover { background: rgba(24,119,242,0.2); border-color: rgba(24,119,242,0.4); }

/* ============================================================
   RELATED POSTS NAV
   ============================================================ */
.es-related-nav {
    padding: 48px 28px;
    border-top: 1px solid var(--border);
}
.es-related-nav h3 { font-size: 1rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.es-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.es-related-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}
.es-related-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.es-related-card--next { text-align: right; }
.es-related-label { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }
.es-related-title { font-size: 0.92rem; font-weight: 700; color: var(--white); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.es-cta-section {
    padding: 64px 0 80px;
    background: linear-gradient(180deg, var(--bg) 0%, #0d1330 100%);
}
.es-cta-card {
    background: linear-gradient(135deg, rgba(74,127,255,0.08), rgba(100,166,255,0.04));
    border: 1px solid rgba(74,127,255,0.25);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.es-cta-card::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(74,127,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.es-cta-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: var(--gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(74,127,255,0.4);
}
.es-cta-card h2 {
    font-size: 1.7rem;
    margin-bottom: 14px;
}
.es-cta-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.es-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 56px 0 0;
}
.es-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}
.es-footer-brand .es-logo {
    margin-bottom: 14px;
}
.es-footer-brand .es-logo img { height: 40px; }
.es-footer-brand p {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 280px;
}
.es-footer-links h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 16px;
}
.es-footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.es-footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.2s;
}
.es-footer-links a:hover { color: var(--white); }
.es-footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 28px;
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.es-footer-bottom p { color: var(--text-dim); font-size: 0.82rem; }
.es-footer-legal { display: flex; gap: 20px; }
.es-footer-legal a { color: var(--text-dim); font-size: 0.82rem; transition: color 0.2s; }
.es-footer-legal a:hover { color: var(--white); }

/* ============================================================
   ERROR PAGE
   ============================================================ */
.es-error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 28px;
}
.es-error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}
.es-error-page h1 { margin-bottom: 12px; }
.es-error-page p { color: var(--text-muted); margin-bottom: 32px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.es-post-card, .es-featured-card {
    animation: fadeInUp 0.4s ease both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE — TABLETTE
   ============================================================ */
@media (max-width: 1024px) {
    .es-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .es-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .es-featured-card { grid-template-columns: 1fr; }
    .es-featured-image { min-height: 220px; }
    .es-related-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px) — Safari + Android
   ============================================================ */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; width: 100%; }

    .es-nav-links, .es-navbar > .es-btn-primary { display: none; }
    .es-mobile-toggle { display: flex; }

    .es-nav-inner { gap: 12px; padding: 0 18px; }
    .es-logo img { height: 40px; }

    .es-main { padding-top: 72px; }

    .es-container { padding: 0 18px; }

    .es-blog-hero { padding: 48px 0 40px; }
    .es-blog-hero h1 { font-size: clamp(1.4rem, 7vw, 2rem); }

    .es-posts-grid { grid-template-columns: 1fr; gap: 16px; }
    .es-posts-section { padding: 40px 0 56px; }

    .es-featured-section { padding: 40px 0 0; }
    .es-featured-content { padding: 24px; }
    .es-featured-content h2 { font-size: 1.2rem; }

    .es-article-header { padding: 48px 0 28px; }
    .es-article-content { padding: 32px 18px 40px; }
    .es-article-footer { padding: 24px 18px; flex-direction: column; align-items: flex-start; }

    .es-cta-card { padding: 36px 24px; }
    .es-cta-card h2 { font-size: 1.3rem; }

    .es-footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 0 18px 36px; }
    .es-footer-bottom { flex-direction: column; text-align: center; padding: 16px 18px; }
    .es-footer-legal { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .es-related-grid { grid-template-columns: 1fr; }
    .es-card-image { height: 160px; }
}

/* ============================================================
   GHOST KOENIG EDITOR — Classes requises
   ============================================================ */
.kg-width-wide {
    margin-left: calc(50% - 50vw + 28px);
    margin-right: calc(50% - 50vw + 28px);
    max-width: 1160px;
}
.kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}
.kg-image-card img { border-radius: 12px; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 12px; }
.kg-gallery-row { display: flex; gap: 12px; }
.kg-gallery-image img { border-radius: 10px; width: 100%; height: 100%; object-fit: cover; }
.kg-video-card video { width: 100%; border-radius: 12px; }
.kg-audio-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.kg-bookmark-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.kg-bookmark-container { display: flex; text-decoration: none; color: inherit; }
.kg-bookmark-content { padding: 16px; flex: 1; }
.kg-bookmark-title { font-weight: 700; color: var(--white); margin-bottom: 4px; }
.kg-bookmark-description { color: var(--text-muted); font-size: 0.85rem; }
.kg-bookmark-thumbnail img { width: 160px; object-fit: cover; }
.kg-callout-card { display: flex; gap: 12px; padding: 20px; background: rgba(74,127,255,0.06); border: 1px solid rgba(74,127,255,0.2); border-radius: 12px; margin: 24px 0; }
.kg-callout-emoji { font-size: 1.4rem; }
.kg-callout-text { color: var(--text); }
.kg-toggle-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 16px 0; }
.kg-toggle-heading-text { padding: 14px 16px; cursor: pointer; font-weight: 700; color: var(--white); }
.kg-toggle-content { padding: 0 16px 14px; color: var(--text-muted); }
.kg-product-card { border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.kg-header-card { text-align: center; padding: 48px 24px; background: linear-gradient(135deg, rgba(74,127,255,0.1), rgba(100,166,255,0.05)); border-radius: 16px; margin: 32px 0; }
.kg-header-card-title { font-size: 1.8rem; color: var(--white); margin-bottom: 12px; }
.kg-header-card-subheader { color: var(--text-muted); }
