/*
Theme Name:   Geometre Confiance Child
Theme URI:    https://geometre-confiance.fr
Description:  Theme enfant GeneratePress - design identique a geometre-confiance.fr
Author:       Geometre Confiance
Template:     generatepress
Version:      1.0.0
Text Domain:  geometre-confiance-child
*/

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    --primary:        #D4AF37;
    --primary-hover:  #B8860B;
    --secondary:      #1A1A1B;
    --accent:         #D4AF37;
    --bg-dark:        #121213;
    --bg-darker:      #0D0D0E;
    --text-light:     #F5F5F5;
    --text-dim:       #A0A0A0;
    --border:         #3A3A3B;
    --card-bg:        #252526;
    --gold-glow:      rgba(212, 175, 55, 0.2);
    --shadow:         0 10px 30px rgba(0,0,0,0.5);
}

/* Reset GeneratePress defaults */
body,
.entry-content,
.page-content,
.site-content,
#content,
#primary,
.hentry,
.entry,
.post {
    background-color: var(--secondary) !important;
    color: var(--text-light) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--secondary) !important;
    color: var(--text-light) !important;
    line-height: 1.6 !important;
    overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4,
.entry-title,
.page-title,
.wp-block-heading {
    font-family: 'Cinzel', serif !important;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

p, li, td, th, label, input, textarea, select {
    font-family: 'Inter', sans-serif;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-light);
}

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

/* ============================================================
   LAYOUT
   ============================================================ */
.gc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Override GeneratePress container */
.inside-article,
.inside-right-sidebar,
.inside-left-sidebar,
.site-main,
#primary {
    max-width: 100%;
    padding: 0;
}

/* Suppress GP's default site structure padding */
.site-content {
    padding: 0 !important;
}

.content-area {
    width: 100% !important;
    float: none !important;
}

/* ============================================================
   HEADER
   ============================================================ */
#gc-site-header {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#gc-site-header.scrolled {
    opacity: 0.82;
}

/* Hide GeneratePress's own header */
#masthead,
.site-header {
    display: none !important;
}

.gc-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gc-nav-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.gc-logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

.gc-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.gc-nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light) !important;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gc-nav-links a:hover,
.gc-nav-links li.current-menu-item > a {
    color: var(--primary) !important;
}

/* Burger button */
.gc-nav-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    flex-shrink: 0;
}

.gc-nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Nav overlay */
.gc-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.gc-gold-text {
    color: var(--primary);
}

/* ============================================================
   CONTENU WORDPRESS (articles, pages)
   ============================================================ */
.gc-wp-content {
    padding: 60px 0 80px;
    background: var(--secondary);
}

.gc-wp-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Article styles */
.gc-wp-inner .entry-title,
.gc-wp-inner h1.page-title {
    font-family: 'Cinzel', serif !important;
    color: var(--primary) !important;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gc-wp-inner .entry-content h2,
.gc-wp-inner .entry-content h3,
.gc-wp-inner .entry-content h4 {
    font-family: 'Cinzel', serif !important;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 2rem 0 1rem;
}

.gc-wp-inner .entry-content h2 { font-size: 1.7rem; }
.gc-wp-inner .entry-content h3 { font-size: 1.35rem; }
.gc-wp-inner .entry-content h4 { font-size: 1.1rem; }

.gc-wp-inner .entry-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.gc-wp-inner .entry-content ul,
.gc-wp-inner .entry-content ol {
    color: var(--text-light);
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.gc-wp-inner .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.gc-wp-inner .entry-content a {
    color: var(--primary);
    text-decoration: underline;
}

.gc-wp-inner .entry-content a:hover {
    color: var(--text-light);
}

.gc-wp-inner .entry-content strong {
    color: var(--text-light);
    font-weight: 700;
}

.gc-wp-inner .entry-content em {
    color: var(--text-dim);
}

.gc-wp-inner .entry-content blockquote {
    border-left: 3px solid var(--primary);
    background: rgba(212,175,55,0.05);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
    color: var(--text-dim);
    font-style: italic;
}

.gc-wp-inner .entry-content img {
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.gc-wp-inner .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.gc-wp-inner .entry-content th {
    background: var(--bg-dark);
    color: var(--primary);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 12px 15px;
    border: 1px solid var(--border);
    text-align: left;
}

.gc-wp-inner .entry-content td {
    padding: 10px 15px;
    border: 1px solid var(--border);
    color: var(--text-light);
    background: var(--card-bg);
}

.gc-wp-inner .entry-content tr:nth-child(even) td {
    background: #2A2A2B;
}

/* Gutenberg blocks */
.wp-block-separator,
.gc-wp-inner hr {
    border-color: var(--border);
    margin: 2rem 0;
}

.wp-block-pullquote {
    border-top: 3px solid var(--primary) !important;
    border-bottom: 3px solid var(--primary) !important;
    color: var(--text-light) !important;
}

.wp-block-code,
.gc-wp-inner pre,
.gc-wp-inner code {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    padding: 0.2em 0.4em;
    font-size: 0.9rem;
}

.gc-wp-inner pre {
    padding: 1.25rem;
    overflow-x: auto;
}

/* Post meta */
.gc-post-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.gc-post-meta a {
    color: var(--text-dim);
}

.gc-post-meta a:hover {
    color: var(--primary);
}

/* Breadcrumb */
.gc-breadcrumb-bar {
    background: var(--bg-darker);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.gc-breadcrumb {
    display: flex;
    list-style: none;
    gap: 10px;
    font-size: 0.85rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.gc-breadcrumb li a { color: var(--text-dim); text-decoration: none; }
.gc-breadcrumb li a:hover { color: var(--primary); }
.gc-breadcrumb li::after { content: "/"; margin-left: 10px; color: var(--border); }
.gc-breadcrumb li:last-child::after { content: ""; }
.gc-breadcrumb li.active { color: var(--primary); font-weight: 700; }

/* Hide GeneratePress breadcrumbs (we use ours) */
.breadcrumb-trail { display: none !important; }

/* ============================================================
   BLOG LISTING (archive /guide/)
   ============================================================ */
.gc-archive-header {
    background: var(--bg-dark);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.gc-archive-header h1 {
    font-family: 'Cinzel', serif !important;
    color: var(--primary) !important;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.gc-archive-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.gc-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.gc-post-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.gc-post-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.gc-post-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.gc-post-card-content .gc-post-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.gc-post-card-content h2 {
    font-family: 'Cinzel', serif !important;
    color: var(--text-light) !important;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.gc-post-card-content h2 a {
    color: inherit !important;
    text-decoration: none;
}

.gc-post-card-content h2 a:hover {
    color: var(--primary) !important;
}

.gc-post-card-content p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.25rem;
}

.gc-post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: auto;
}

.gc-read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.gc-read-more:hover {
    color: var(--text-light) !important;
}

/* Pagination */
.gc-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0 60px;
    flex-wrap: wrap;
}

.gc-pagination a,
.gc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.gc-pagination a:hover,
.gc-pagination span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

/* Hide GeneratePress pagination */
.pagination,
.nav-links.posts-navigation { display: none !important; }

/* ============================================================
   GUIDE — GRILLE DES 5 CATÉGORIES (index.php)
   ============================================================ */
.gc-guide-cats {
    background: var(--bg-darker);
    padding: 50px 0;
    border-bottom: 1px solid var(--border);
}

.gc-guide-cats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.gc-guide-cat-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 8px;
    padding: 24px 20px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background 0.3s;
    gap: 10px;
}

.gc-guide-cat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    background: #2A2A2B;
}

.gc-guide-cat-name {
    font-family: 'Cinzel', serif;
    color: var(--primary) !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    line-height: 1.3;
}

.gc-guide-cat-desc {
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.5;
    flex: 1;
}

.gc-guide-cat-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.gc-guide-cat-arrow {
    color: var(--primary);
    font-size: 1rem;
    transition: transform 0.2s;
}

.gc-guide-cat-card:hover .gc-guide-cat-arrow {
    transform: translateX(4px);
}

/* Label de section (ex: "Tous les articles") */
.gc-section-label {
    font-family: 'Cinzel', serif;
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-top: 40px;
    margin-bottom: -20px;
}

/* ============================================================
   AUTRES CATÉGORIES (bas de page category.php)
   ============================================================ */
.gc-other-cats {
    background: var(--bg-darker);
    padding: 50px 0 70px;
    border-top: 1px solid var(--border);
}

.gc-other-cats .gc-section-label {
    padding-top: 0;
    margin-bottom: 30px;
}

.gc-other-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Message aucun article */
.gc-no-posts {
    text-align: center;
    padding: 80px 0;
}

.gc-no-posts h2 {
    color: var(--text-dim) !important;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.gc-no-posts p {
    color: var(--text-dim);
}

/* ============================================================
   ARTICLE INDIVIDUEL (single.php)
   ============================================================ */

/* Badge catégorie cliquable en haut */
.gc-article-cat-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: background 0.2s;
}
.gc-article-cat-badge:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--primary);
}

/* Header article */
.gc-article-header { margin-bottom: 2rem; }
.gc-article-header .entry-title {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

/* Meta auteur / date / lecture */
.gc-post-meta {
    display: flex;
    gap: 0.5rem 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.gc-meta-sep { color: var(--border); }
.gc-meta-author a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.gc-meta-author a:hover { text-decoration: underline; }
.gc-meta-date { font-style: italic; }

/* Image à la une (sans lien, pleine largeur) */
.gc-article-hero {
    margin-bottom: 2.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.gc-article-hero-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* Sommaire Easy Table of Contents */
.gc-toc-wrapper {
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
}
.gc-toc-wrapper .ez-toc-title {
    color: var(--primary) !important;
    font-family: 'Cinzel', serif !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
.gc-toc-wrapper a { color: var(--text-dim) !important; font-size: 0.9rem; }
.gc-toc-wrapper a:hover { color: var(--primary) !important; }

/* Tags */
.gc-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.gc-tag-pill {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    transition: background 0.2s;
}
.gc-tag-pill:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary);
}

/* CTA Devis */
.gc-cta-devis {
    margin-top: 3rem;
    padding: 2.5rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    text-align: center;
}
.gc-cta-devis h3 {
    font-family: 'Cinzel', serif !important;
    color: var(--primary) !important;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.gc-cta-devis p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Author box */
.gc-author-box {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 3rem;
    padding: 1.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
}
.gc-author-img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: 2px solid var(--primary) !important;
    flex-shrink: 0;
    display: block;
}
.gc-author-info { flex: 1; }
.gc-author-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.gc-author-name {
    display: block;
    font-family: 'Cinzel', serif;
    color: var(--primary) !important;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-bottom: 0.6rem;
}
.gc-author-name:hover { color: var(--text-light) !important; }
.gc-author-bio {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.gc-author-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}
.gc-author-link:hover { color: var(--text-light) !important; }

/* Articles relatifs */
.gc-related-articles {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}
.gc-related-title {
    font-family: 'Cinzel', serif;
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}
.gc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gc-related-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.gc-related-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.gc-related-card-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.gc-related-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
}
.gc-related-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}
.gc-related-card-title {
    font-family: 'Cinzel', serif;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}
.gc-related-card:hover .gc-related-card-title { color: var(--primary); }
.gc-related-card-date {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .gc-related-grid       { grid-template-columns: 1fr; }
    .gc-author-box         { flex-direction: column; }
    .gc-article-header .entry-title { font-size: 1.5rem; }
    .gc-article-layout     { grid-template-columns: 1fr; }
    .gc-article-sidebar    { position: static; }
}

/* ============================================================
   ARTICLE — LAYOUT 2 COLONNES (main + sidebar)
   ============================================================ */
.gc-article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
    padding-top: 60px;
    padding-bottom: 80px;
}

/* single.php uses gc-article-layout which provides its own vertical padding */
.gc-wp-content:has(.gc-article-layout) {
    padding: 0;
}

/* Neutralise les contraintes de .gc-wp-inner dans la grille article */
.gc-article-layout .gc-wp-inner {
    max-width: none;
    margin: 0;
    padding: 0;
}

.gc-article-main {
    min-width: 0;
}

.gc-article-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar widget */
.gc-sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
}

.gc-sidebar-widget-title {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(212, 175, 55, 0.04);
    line-height: 1.4;
}

.gc-sidebar-article {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.2s;
}

.gc-sidebar-article:last-child { border-bottom: none; }

.gc-sidebar-article:hover {
    background: rgba(212, 175, 55, 0.04);
}

.gc-sidebar-article-img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.gc-sidebar-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.gc-sidebar-article-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.gc-sidebar-article-title {
    font-family: 'Cinzel', serif;
    color: var(--text-light);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gc-sidebar-article:hover .gc-sidebar-article-title { color: var(--primary); }

.gc-sidebar-article-date {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* Sidebar CTA */
.gc-sidebar-cta {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 22px 18px;
    text-align: center;
}

.gc-sidebar-cta-title {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.gc-sidebar-cta p {
    color: var(--text-dim);
    font-size: 0.83rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.gc-btn-sidebar {
    padding: 10px 18px;
    font-size: 0.8rem;
    width: 100%;
    display: block;
    box-sizing: border-box;
    text-align: center;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.gc-trust-bar {
    background: var(--bg-dark);
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.gc-trust-badges-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gc-trust-badge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 150px;
    cursor: help;
}

.gc-trust-badge svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    margin-bottom: 10px;
    transition: 0.3s;
    stroke: var(--primary);
}

.gc-trust-badge:hover svg {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.gc-trust-badge span {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.gc-trust-badge .gc-tooltip {
    visibility: hidden;
    width: 200px;
    background-color: var(--card-bg);
    color: var(--text-light);
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    border: 1px solid var(--primary);
    box-shadow: var(--shadow);
    font-size: 0.85rem;
    pointer-events: none;
    line-height: 1.4;
    text-transform: none;
    font-weight: 400;
}

.gc-trust-badge .gc-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
}

.gc-trust-badge:hover .gc-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* ============================================================
   FOOTER
   ============================================================ */

/* Hide GeneratePress footer */
#colophon,
.site-footer {
    display: none !important;
}

#gc-main-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--primary);
    padding: 80px 0 30px;
}

.gc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.gc-footer-col .gc-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light) !important;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.gc-footer-logo-img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

.gc-footer-col p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

.gc-footer-col h4 {
    font-family: 'Cinzel', serif !important;
    color: var(--text-light) !important;
    margin-bottom: 25px;
    font-size: 1.0rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gc-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gc-footer-col li {
    margin-bottom: 12px;
}

.gc-footer-col li a {
    color: var(--text-dim) !important;
    text-decoration: none;
    transition: 0.3s;
}

.gc-footer-col li a:hover {
    color: var(--primary) !important;
    padding-left: 5px;
}

.gc-footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.gc-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--secondary) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.gc-btn:hover {
    background: transparent;
    color: var(--primary) !important;
    transform: translateY(-2px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.gc-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.gc-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .gc-guide-cats-grid    { grid-template-columns: repeat(3, 1fr); }
    .gc-other-cats-grid    { grid-template-columns: repeat(2, 1fr); }
    .gc-article-layout     { grid-template-columns: 1fr 280px; gap: 30px; }
}

@media (max-width: 992px) {
    .gc-footer-grid { grid-template-columns: 1fr 1fr; }
    .gc-archive-header h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    /* Burger visible */
    .gc-nav-burger { display: flex; }

    /* Nav-links : drawer depuis la droite */
    .gc-nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--bg-dark);
        border-left: 1px solid rgba(212, 175, 55, 0.15);
        z-index: 1000;
        flex-direction: column;
        gap: 0;
        padding: 80px 2rem 2rem;
        display: flex;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .gc-nav-links li a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 1.1rem;
    }

    body.gc-menu-open .gc-nav-links { right: 0; }
    body.gc-menu-open .gc-nav-overlay { display: block; }
    body.gc-menu-open .gc-nav-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    body.gc-menu-open .gc-nav-burger span:nth-child(2) { opacity: 0; }
    body.gc-menu-open .gc-nav-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .gc-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .gc-trust-badges-container { justify-content: center; }
    .gc-posts-grid { grid-template-columns: 1fr; }
    .gc-archive-header { padding: 40px 0; }
    .gc-wp-content { padding: 40px 0 60px; }
    .gc-guide-cats-grid    { grid-template-columns: repeat(2, 1fr); }
    .gc-other-cats-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .gc-guide-cats-grid { grid-template-columns: 1fr; }
    .gc-other-cats-grid { grid-template-columns: 1fr; }
}
