/* ================================================================
   RADE ONG — Blog Public CSS
================================================================ */

/* ── HERO BLOG ──────────────────────────────────────────────── */
.blog-hero {
    position: relative;
    padding: 9rem 0 5rem;
    background: linear-gradient(135deg, #1a3409 0%, #2d5016 55%, #4a7c59 100%);
    margin-top: 70px;
    overflow: hidden;
}

.blog-hero-overlay {
    position: absolute; inset: 0;
    background: url('../../images/hero-bg.jpg') center/cover;
    opacity: 0.12;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(127,176,105,0.2);
    border: 1px solid rgba(127,176,105,0.4);
    color: #7fb069;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.blog-hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.blog-hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    max-width: 580px;
    margin: 0 auto 2rem;
}

/* Recherche */
.blog-search-wrap {
    display: flex;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 0.4rem 0.4rem 0.4rem 1.25rem;
    backdrop-filter: blur(10px);
    gap: 0.75rem;
}

.blog-search-wrap i { color: rgba(255,255,255,0.7); flex-shrink: 0; }

.blog-search-wrap input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.blog-search-wrap input::placeholder { color: rgba(255,255,255,0.55); }

.blog-search-wrap button {
    padding: 0.65rem 1.5rem;
    background: #7fb069;
    color: #1a3409;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.22s;
    white-space: nowrap;
}

.blog-search-wrap button:hover { background: #fff; }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
    align-items: start;
}

.blog-main { display: flex; flex-direction: column; gap: 2.5rem; }

/* ── ARTICLE À LA UNE ───────────────────────────────────────── */
.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    background: #fff;
    transition: all 0.3s ease;
}

.blog-featured:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.15); }

.blog-featured-img { display: block; overflow: hidden; }
.blog-featured-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.blog-featured:hover .blog-featured-img img { transform: scale(1.05); }

.blog-featured-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.blog-featured-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.25;
    color: #2d5016;
}

.blog-featured-body h2 a { color: inherit; }
.blog-featured-body h2 a:hover { color: #7fb069; }
.blog-featured-excerpt { font-size: 0.95rem; color: #5a6a5a; line-height: 1.7; }

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.blog-meta span { display: flex; align-items: center; gap: 0.35rem; }
.blog-meta i { color: #7fb069; }

/* ── BADGES CATÉGORIE ───────────────────────────────────────── */
.blog-cat-badge {
    display: inline-flex;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

/* ── GRILLE D'ARTICLES ──────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }

.blog-card-img-wrap {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
}

.blog-card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.blog-card:hover .blog-card-img-wrap img { transform: scale(1.06); }

.blog-card-no-img {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #2d5016, #4a7c59);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.25);
}

.blog-card-cat {
    position: absolute;
    bottom: 0.75rem; left: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.blog-card-body h3 { font-size: 1.05rem; line-height: 1.35; }
.blog-card-body h3 a { color: #2d5016; font-weight: 600; }
.blog-card-body h3 a:hover { color: #7fb069; }
.blog-card-body p { font-size: 0.875rem; color: #5a6a5a; line-height: 1.6; flex: 1; }

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f2f0;
}

.blog-card-date { font-size: 0.78rem; color: #7f8c8d; display: flex; align-items: center; gap: 0.35rem; }
.blog-card-date i { color: #7fb069; }
.blog-card-read {
    font-size: 0.82rem;
    font-weight: 600;
    color: #7fb069;
    display: flex; align-items: center; gap: 0.35rem;
    transition: gap 0.2s;
}

.blog-card-read:hover { gap: 0.6rem; color: #2d5016; }

/* ── RÉSULTATS RECHERCHE ────────────────────────────────────── */
.blog-search-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(127,176,105,0.1);
    border: 1px solid rgba(127,176,105,0.3);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #2d5016;
}

.blog-search-info i { color: #7fb069; }
.blog-search-info a { margin-left: auto; color: #e74c3c; display: flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; }

/* ── VIDE ───────────────────────────────────────────────────── */
.blog-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: #7f8c8d;
}

.blog-empty i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; display: block; }
.blog-empty h3 { font-size: 1.3rem; color: #2c3e50; margin-bottom: 0.5rem; }

/* ── PAGINATION PUBLIQUE ────────────────────────────────────── */
.blog-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.75rem; }

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f2f0;
}

.sidebar-title i { color: #7fb069; }

/* Catégories sidebar */
.sidebar-cats { display: flex; flex-direction: column; gap: 0.3rem; }
.sidebar-cats a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #2c3e50;
    transition: all 0.2s;
}

.sidebar-cats a:hover, .sidebar-cats a.active {
    background: rgba(45,80,22,0.07);
    color: #2d5016;
}

.cat-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cat-count {
    margin-left: auto;
    background: #f0f2f0;
    color: #7f8c8d;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
}

/* Articles récents sidebar */
.sidebar-recent { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar-recent a {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.4rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.sidebar-recent a:hover { background: #f8f9fa; }

.sidebar-recent img {
    width: 52px; height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-no-img {
    width: 52px; height: 52px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2d5016, #4a7c59);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 1rem;
    flex-shrink: 0;
}

.recent-title {
    display: block;
    font-size: 0.845rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.recent-date { font-size: 0.75rem; color: #7f8c8d; }

/* About sidebar */
.sidebar-about { text-align: center; }
.sidebar-about img {
    width: 64px; height: 64px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 2px solid rgba(127,176,105,0.3);
}

.sidebar-about h4 { font-size: 1.05rem; color: #2d5016; margin-bottom: 0.5rem; }
.sidebar-about p { font-size: 0.845rem; color: #7f8c8d; line-height: 1.6; margin-bottom: 1rem; }

/* Cat link sidebar article */
.sidebar-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d5016;
    transition: all 0.2s;
}

.sidebar-cat-link:hover { background: rgba(45,80,22,0.06); }

/* Section articles similaires bas de page */
.related-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.related-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    color: #2d5016;
    font-size: 1.8rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured-img { height: 220px; }
    .blog-sidebar { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
}
