/* ============================================================
   DESIGN FINAL "LES-SITES-AU.TOP" - NAVIGATION HARMONISÉE
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Montserrat:wght@700;800;900&display=swap');

/* RESET & BASE */
* { box-sizing: border-box; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }

html, body {
    font-size: 17px !important;
    background-color: #f0f2f5;
    font-family: 'Inter', sans-serif;
    color: #1a2a2d;
    margin: 0; padding: 0;
    line-height: 1.6;
}
.container { max-width: 1100px !important; margin: 0 auto !important; padding: 0 20px !important; }

/* --- NAVIGATION HAUTE (STATIQUES + CATÉGORIES) --- */
.top-bar { 
    background-color: #1a2a2d !important; 
    border-bottom: 4px solid #c5a059 !important; 
    padding: 0 !important; /* On supprime le padding pour aligner les liens */
}

.menu-items { 
    display: flex !important; 
    flex-wrap: wrap !important; /* Permet de passer à la ligne sur petit écran */
    justify-content: center !important; /* CENTRE TOUT LE MENU */
    list-style: none !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}

.menu-items li { display: block !important; }

.menu-items a { 
    color: #fff !important; 
    font-family: 'Montserrat', sans-serif !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    font-size: 0.85rem !important; /* Taille ajustée pour la cohabitation */
    text-decoration: none !important; 
    padding: 15px 20px !important; 
    letter-spacing: 0.5px;
    display: block !important;
}

.menu-items a:hover { 
    color: #c5a059 !important; 
    background-color: rgba(255,255,255,0.05); /* Petit effet de fond au survol */
}

/* --- HEADER --- */
.main-header { background: #fff !important; padding: 60px 0 !important; text-align: center !important; border-bottom: 1px solid #ddd; }
.site-title a { font-family: 'Montserrat', sans-serif !important; font-size: 3.2rem !important; color: #24525a !important; font-weight: 900 !important; text-transform: uppercase !important; text-decoration: none !important; display: inline-block; }

.site-title a:hover { transform: scale(1.05); color: #c5a059 !important; }
.separator { width: 80px; height: 6px; background: #c5a059; margin: 15px auto; }
.main-header:hover .separator { width: 120px; }

/* --- GRILLE ACCUEIL & ARCHIVES --- */
.articles-grid { display: flex !important; flex-wrap: wrap !important; margin: 30px -15px !important; }

.modern-card-cell { 
    background: #fff !important; 
    width: calc(33.33% - 30px) !important; 
    margin: 15px !important; 
    border-radius: 8px !important; 
    border-bottom: 6px solid #24525a !important; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important; 
    overflow: hidden;
    cursor: pointer;
}

.modern-card-cell:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 15px 30px rgba(36, 82, 90, 0.2) !important;
    border-bottom-color: #c5a059 !important;
}

.post-thumbnail { overflow: hidden; height: 200px; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.modern-card-cell:hover .post-thumbnail img { transform: scale(1.1); }

.card-body { padding: 25px !important; }
.post-header h2 { font-size: 1.3rem !important; font-family: 'Montserrat', sans-serif !important; margin: 10px 0 !important; line-height: 1.3; }
.post-header h2 a { text-decoration: none; color: #1a2a2d !important; }

/* --- STYLE PAGE ARTICLE & STATIQUE --- */
.single-article-container { background: #fff; padding: 50px; margin-top: 40px; border-radius: 12px; border: 1px solid #ddd; border-top: 10px solid #24525a; }
.article-header h1 { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; color: #1a2a2d; margin: 20px 0; line-height: 1.2; font-weight: 900; }
.article-content { font-size: 1.1rem; line-height: 1.8; color: #333; }
.category-badge a { background: #c5a059; color: #fff !important; padding: 5px 12px; border-radius: 4px; font-size: 0.8rem; text-transform: uppercase; font-weight: 700; }

/* --- SIDEBAR BAS (HORIZONTAL) --- */
.bottom-sidebar-area { margin: 50px 0 !important; padding: 40px !important; background: #fff !important; border-radius: 10px !important; display: flex !important; justify-content: space-between !important; border-top: 8px solid #24525a !important; }
.aside-block { width: 30% !important; }
.aside-block h3 { font-family: 'Montserrat', sans-serif !important; color: #24525a !important; border-bottom: 3px solid #c5a059 !important; padding-bottom: 8px !important; font-size: 1.1rem !important; text-transform: uppercase !important; font-weight: 800; }
.aside-block li { padding: 8px 0 !important; border-bottom: 1px solid #f2f2f2 !important; font-size: 0.95rem !important; }
.aside-block li:hover { padding-left: 5px; color: #c5a059; }

/* --- FOOTER --- */
.footer { background: #1a2a2d !important; color: #fff !important; padding: 50px 0 !important; text-align: center !important; border-top: 5px solid #c5a059; }
.footer-menu { display: flex !important; justify-content: center !important; list-style: none !important; margin: 0; padding: 0 !important; }
.footer-menu li { margin: 0 15px !important; }
.footer-menu a { color: #c5a059 !important; font-weight: 700 !important; text-transform: uppercase; text-decoration: none; font-size: 0.85rem; }

/* MOBILE */
@media (max-width: 900px) {
    .modern-card-cell, .aside-block { width: 100% !important; }
    .bottom-sidebar-area, .menu-items, .footer-menu { flex-direction: column !important; align-items: center !important; }
    .single-article-container { padding: 25px; }
    .article-header h1 { font-size: 1.8rem; }
}

/* --- BREADCRUMB & PAGINATION --- */
.breadcrumb-container { margin-top: 30px; background: #fff; padding: 15px 25px; border-radius: 8px; border-left: 5px solid #c5a059; }
.breadcrumb { list-style: none; display: flex; margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; }
.pagination-wrapper { margin: 40px 0; text-align: center; }
.pagination-wrapper a, .pagination-wrapper span { padding: 10px 18px; background: #fff; border-radius: 5px; text-decoration: none; color: #1a2a2d; font-weight: bold; border: 1px solid #ddd; }
/* --- SECTION COMMENTAIRES --- */
.comments-wrapper { margin-top: 50px; border-top: 1px solid #eee; padding-top: 30px; }
.section-title { font-family: 'Montserrat', sans-serif; font-weight: 800; color: #24525a; text-transform: uppercase; margin-bottom: 25px; font-size: 1.4rem; }

.comment-item { margin-bottom: 20px; }
.comment-box { background: #fdfdfd; border: 1px solid #eee; padding: 20px; border-radius: 8px; position: relative; }
.comment-meta { margin-bottom: 10px; font-size: 0.9rem; border-bottom: 1px solid #f2f2f2; padding-bottom: 10px; }
.com-author { font-weight: 700; color: #c5a059; margin-right: 10px; }
.com-date { color: #999; font-style: italic; }

.comment-content { color: #444; line-height: 1.6; margin-bottom: 15px; }

.reply-link { font-size: 0.8rem; font-weight: 700; color: #24525a; text-decoration: none; text-transform: uppercase; border: 1px solid #24525a; padding: 4px 10px; border-radius: 4px; }
.reply-link:hover { background: #24525a; color: #fff; }

/* --- FORMULAIRE MODERNE --- */
.modern-form { background: #f9f9f9; padding: 30px; border-radius: 12px; border: 1px solid #eee; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 700; font-family: 'Montserrat'; font-size: 0.85rem; color: #24525a; margin-bottom: 5px; text-transform: uppercase; }
.modern-form input, .modern-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-family: 'Inter'; font-size: 1rem; }
.modern-form input:focus { border-color: #c5a059; outline: none; box-shadow: 0 0 5px rgba(197, 160, 89, 0.2); }

.flex-row { display: flex; gap: 15px; }
.flex-row .form-group { flex: 1; }

.btn-gold { background: #c5a059; color: #fff; border: none; padding: 12px 30px; border-radius: 6px; font-family: 'Montserrat'; font-weight: 800; text-transform: uppercase; cursor: pointer; width: auto; transition: 0.3s; }
.btn-gold:hover { background: #24525a; transform: translateY(-2px); }

.reply-indicator { background: #24525a; color: #fff; padding: 10px; border-radius: 4px; margin-bottom: 15px; display: none; font-size: 0.9rem; }
.cancel-reply { color: #c5a059; text-decoration: none; margin-left: 10px; font-weight: bold; }

@media (max-width: 600px) { .flex-row { flex-direction: column; } }