/*
Theme Name: Le Sac du Randonneur
Description: Thème personnalisé pour Le Sac du Randonneur
Version: 1.0
Text Domain: sacdurandonneur
*/

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

:root {
    --green:      #2d6a4f;
    --green-dark: #1b4332;
    --header-bg:  #1a2e1f;
    --nav-bg:     #243d2f;
    --text:       #374151;
    --heading:    #111827;
    --light:      #f3f4f6;
    --border:     #e5e7eb;
    --muted:      #6b7280;
    --max-w:      1180px;
    --sidebar-w:  280px;
    --gap:        2rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    font-size: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page { flex: 1; display: flex; flex-direction: column; }
.site-content { flex: 1; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.site-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== HEADER ========== */
.site-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
}

.site-branding { display: flex; align-items: center; gap: 0.9rem; }

.site-branding img,
.custom-logo { height: 60px; width: auto; }

.branding-text .site-title {
    display: block;
    font-family: 'Amatic SC', 'Helvetica Neue', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
}
.branding-text .site-title a { color: #fff; text-decoration: none; }
.branding-text .site-description {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.15rem;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* Search */
.header-search form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}
.header-search input[type="search"] {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.45rem 0.8rem;
    font-size: 0.88rem;
    outline: none;
    width: 190px;
}
.header-search input[type="search"]::placeholder { color: rgba(255,255,255,0.45); }
.header-search button {
    background: var(--green);
    border: none;
    color: #fff;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.header-search button:hover { background: var(--green-dark); }
.header-search button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* Social icons in header */
.header-social { display: flex; align-items: center; gap: 0.65rem; }
.header-social a {
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.header-social a:hover { color: #fff; text-decoration: none; }
.header-social svg { width: 19px; height: 19px; fill: currentColor; }

/* Navigation */
.main-navigation {
    background: var(--nav-bg);
    border-top: 3px solid var(--green);
}
.main-navigation .nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}
.main-navigation ul { list-style: none; display: flex; flex-wrap: wrap; }
.main-navigation ul li a {
    display: block;
    color: rgba(255,255,255,0.8);
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-ancestor > a {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.main-navigation ul ul { display: none; }
.home .menu-item-home,
.front-page .menu-item-home { display: none; }

/* Burger button — caché sur desktop */
.menu-toggle { display: none; }

/* ========== Burger mobile ========== */
@media (max-width: 640px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.3rem 0.2rem;
        width: auto;
        align-items: center;
        flex-shrink: 0;
    }
    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: rgba(255,255,255,0.8);
        border-radius: 2px;
        transition: transform 0.25s, opacity 0.25s;
    }
    .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .main-navigation .menu { display: none; flex-direction: column; width: 100%; padding-bottom: 0.5rem; }
    .main-navigation .menu.nav-open { display: flex; }
    .main-navigation .menu li { width: 100%; }
    .main-navigation .menu li a { padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.85rem; }
}

/* Pas de barre de nav sur la page d'accueil */
.home .main-navigation,
.front-page .main-navigation { display: none; }

/* ========== LAYOUT ========== */
.site-content { padding: 0; }

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: 0;
    align-items: stretch;
    max-width: var(--max-w);
    margin: 0 auto;
}

.main-col {
    padding: 2rem 1.5rem 3rem;
}

.content-full-width {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== SECTION LABEL ========== */
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
}

/* ========== PAGES RESSOURCES ========== */
.section-resources { margin-bottom: 2.5rem; }

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}
@media (max-width: 700px) {
    .resources-grid { grid-template-columns: 1fr; }
}

.resource-card {
    border: 1px solid #c8e6d4;
    border-radius: 8px;
    padding: 1rem 1.15rem 1.1rem;
    background: #edf7f1;
    display: flex;
    flex-direction: column;
}
.resource-tags {
    margin-top: 0.5rem;
}
.resource-card-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 0.65rem;
}
.resource-card-title a { color: inherit; text-decoration: none; }
.resource-card-title a:hover { color: var(--green); }
.resource-card-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.45;
    margin-bottom: 0.6rem;
}

.resource-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.75rem;
}
.resource-tag {
    display: block;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #c8e6d4;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a4030;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}
.resource-tag:hover { background: var(--green); color: #fff; text-decoration: none; }
.resource-tag:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ========== LISTE D'ARTICLES ========== */
.section-articles { margin-bottom: 1.5rem; }

.article-list { display: flex; flex-direction: column; gap: 0.75rem; }

.article-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    column-gap: 1.1rem;
    row-gap: 0.2rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #eaecef;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}
.article-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.12); }

.article-thumb-link { grid-column: 1; grid-row: 1 / 4; display: block; align-self: start; }
.article-card-header { grid-column: 2; grid-row: 1; }
.article-card > .article-excerpt { grid-column: 2; grid-row: 2; }
.article-card > .article-readmore { grid-column: 2; grid-row: 3; align-self: start; }

.article-thumb-link img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 5px;
}
.article-thumb-placeholder {
    width: 110px;
    height: 110px;
    background: var(--light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-thumb-placeholder svg { width: 24px; height: 24px; color: var(--border); }

.article-date {
    font-size: 0.77rem;
    color: var(--muted);
    margin-bottom: 0.2rem;
    text-transform: capitalize;
}
.article-title {
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}
.article-title a { color: var(--heading); text-decoration: none; }
.article-title a:hover { color: var(--green); }

.article-excerpt {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-readmore {
    font-size: 0.82rem;
    color: var(--green);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.article-readmore:hover { color: var(--green-dark); text-decoration: underline; }

.all-articles-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--green);
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 1.25rem;
    text-decoration: none;
}
.all-articles-link:hover { color: var(--green-dark); text-decoration: underline; }

/* ========== PAGINATION ========== */
.pagination { margin-top: 2rem; }
.pagination ul.page-numbers {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pagination ul.page-numbers li { margin: 0; }
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.88rem;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.pagination .page-numbers:hover { border-color: var(--green); color: var(--green); }
.pagination .page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }

/* ========== SIDEBAR ========== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f5f5f5;
    padding: 2rem 1.25rem 3rem;
}

.widget-title,
.widgettitle {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green);
}

/* Sidebar widgets */
.sidebar-widget { padding-bottom: 2rem; }

.sidebar-books-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.sidebar-book-item { text-align: center; }
.sidebar-book-link { display: block; margin-bottom: 0.35rem; }
.sidebar-book-link img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: contain;
    border-radius: 6px;
    background: #1a2e1f;
}
.sidebar-book-label { font-size: 0.75rem; color: var(--muted); margin: 0; }
.sidebar-logo-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sidebar-logo-btn .sidebar-btn { flex: 1; }
.sidebar-partner-logo-link { display: block; flex-shrink: 0; }
.sidebar-partner-logo-link img { max-height: 36px; width: auto; }
.sidebar-book-desc { font-size: 0.83rem; color: var(--muted); margin-bottom: 0.75rem; }

.sidebar-widget-text { font-size: 0.83rem; color: var(--muted); margin-bottom: 0.75rem; line-height: 1.5; }

.sidebar-btn {
    display: block;
    text-align: center;
    background: var(--green);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.sidebar-btn:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.sidebar-btn-outline {
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
}
.sidebar-btn-outline:hover { background: var(--green); color: #fff; }

.sidebar-newsletter { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-newsletter input[type="email"] {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.88rem;
    outline: none;
    color: var(--text);
}
.sidebar-newsletter input[type="email"]:focus { border-color: var(--green); }
.sidebar-newsletter button {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}
.sidebar-newsletter button:hover { background: var(--green-dark); }

/* Newsletter plugin dans la sidebar */
.sidebar-widget-newsletter .tnp-subscription { background: none !important; padding: 0 !important; border: none !important; }
.sidebar-widget-newsletter .tnp-field { margin: 0 0 0.5rem !important; padding: 0 !important; }
.sidebar-widget-newsletter label { display: none !important; }
.sidebar-widget-newsletter .tnp-email {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 0.7rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 5px !important;
    font-size: 0.85rem !important;
    color: var(--text) !important;
    box-sizing: border-box !important;
    background: #fff !important;
    box-shadow: none !important;
}
.sidebar-widget-newsletter .tnp-email:focus { border-color: var(--green) !important; outline: none !important; }
.sidebar-widget-newsletter .tnp-submit {
    display: block !important;
    width: 100% !important;
    background: var(--green) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.6rem 1rem !important;
    border-radius: 5px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    box-shadow: none !important;
}
.sidebar-widget-newsletter .tnp-submit:hover { background: var(--green-dark) !important; }
.sidebar-widget-newsletter .tnp-field-button { text-align: left !important; }

/* Partners: 2 colonnes côte à côte */
.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.6rem;
    transition: border-color 0.2s;
}
.partner-logo:hover { border-color: var(--green); }
.partner-logo img { width: 100%; height: auto; max-height: 50px; object-fit: contain; }
.partners-grid .widget { margin: 0 !important; }
.partners-grid .widget img { width: 100%; height: auto; border-radius: 5px; border: 1px solid var(--border); }

/* ========== ARTICLE INDIVIDUEL (pleine largeur) ========== */
.single-article { width: 100%; }

.single-article-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* ========== PAGE RESSOURCE ========== */
.page-article-header { margin-bottom: 1.75rem; border-bottom: 2px solid var(--border); padding-bottom: 1rem; }

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}
.page-breadcrumb a { color: var(--green); text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; }
.page-breadcrumb span { color: var(--muted); }

.entry-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.3;
    margin-bottom: 0.6rem;
}
.entry-meta {
    font-size: 0.83rem;
    color: var(--muted);
    margin-bottom: 2rem;
}
.entry-meta a { color: var(--muted); text-decoration: underline; }

.featured-image-wrap {
    position: relative;
    width: 100%;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    margin-top: 0;
}
.featured-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}
.featured-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.featured-image-overlay .entry-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.9);
}
.featured-image-overlay .entry-meta {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.featured-image-overlay .entry-meta a { color: rgba(255,255,255,0.9); }

.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
}
.entry-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green-dark);
    margin: 2.25rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border);
}
.entry-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; color: var(--heading); }
.entry-content p { margin-bottom: 1.25rem; text-align: left; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.25rem 1.5rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content img { border-radius: 5px; }
.entry-content a { color: var(--green); }

/* Blocs boutons Gutenberg → style pills */
.entry-content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.entry-content .wp-block-button__link {
    background: #edf7f1 !important;
    color: #1a4030 !important;
    border: 1px solid #c8e6d4 !important;
    border-radius: 6px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    padding: 0.45rem 1rem !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s !important;
    box-shadow: none !important;
}
.entry-content .wp-block-button__link:hover {
    background: var(--green) !important;
    color: #fff !important;
    border-color: var(--green) !important;
}

.entry-content blockquote {
    border-left: 3px solid var(--green);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--light);
    border-radius: 0 5px 5px 0;
    color: var(--muted);
    font-style: italic;
}

/* ========== FOOTER ========== */
.site-footer { background: var(--header-bg); }

.footer-widgets {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2rem 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.85rem;
}

.footer-social { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.footer-social a {
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    transition: all 0.2s;
}
.footer-social a:hover { color: #fff; border-color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }

/* Newsletter footer */
.footer-newsletter { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-newsletter input[type="email"] {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
}
.footer-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input[type="email"]:focus { border-color: var(--green); }
.footer-newsletter button {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}
.footer-newsletter button:hover { background: var(--green-dark); }

/* Newsletter widget dans le footer */
.footer-widgets .widget { color: rgba(255,255,255,0.8); }
.footer-widgets .widget label { display: block; font-size: 0.83rem; margin-bottom: 0.4rem; }
.footer-widgets .widget input[type="email"] {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 4px;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    outline: none;
}
.footer-widgets .widget input[type="submit"],
.footer-widgets .widget button[type="submit"] {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}
.footer-widgets .widget input[type="submit"]:hover,
.footer-widgets .widget button[type="submit"]:hover { background: var(--green-dark); }

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.2s;
}
.footer-contact-link:hover { color: #fff; border-color: rgba(255,255,255,0.5); text-decoration: none; }

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

.footer-menu ul { list-style: none; display: flex; gap: 1.5rem; }
.footer-menu a { color: rgba(255,255,255,0.5); font-size: 0.82rem; text-decoration: none; }
.footer-menu a:hover { color: rgba(255,255,255,0.85); }

/* ========== BLOC WP LATEST POSTS ========== */
.wp-block-latest-posts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.wp-block-latest-posts__list li {
    background: #fff;
    border: 1px solid #eaecef;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    padding: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.wp-block-latest-posts__list li:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.12); }

.wp-block-latest-posts__featured-image.alignright {
    float: right;
}
.wp-block-latest-posts__featured-image img {
    border-radius: 5px;
    display: block;
}
.wp-block-latest-posts__post-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--heading);
    text-decoration: none;
    margin-bottom: 0.2rem;
    line-height: 1.4;
}
.wp-block-latest-posts__post-title:hover { color: var(--green); text-decoration: none; }
.wp-block-latest-posts__post-date {
    display: block;
    font-size: 0.77rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}
.wp-block-latest-posts__post-excerpt {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
}

/* ========== 404 / Recherche ========== */
.error-404, .search-results-header { text-align: center; padding: 4rem 1rem; }
.error-404 h1 { font-size: 5rem; color: var(--border); font-weight: 700; }
.error-404 h2 { font-size: 1.5rem; color: var(--heading); margin-bottom: 1rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
    .footer-menu ul { justify-content: center; flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 640px) {
    .header-inner { flex-wrap: wrap; }
    .header-right {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .header-social { order: -1; }
    .header-search input[type="search"] { width: 130px; }
    .entry-title { font-size: 1.4rem; }
    .resources-grid { grid-template-columns: 1fr; }
    .article-card { grid-template-columns: 90px 1fr; }
    .article-thumb-link { grid-column: 1; grid-row: 1; }
    .article-card-header { grid-column: 2; grid-row: 1; }
    .article-card > .article-excerpt { grid-column: 1 / -1; grid-row: 2; }
    .article-card > .article-readmore { grid-column: 1 / -1; grid-row: 3; }
}
