/* ==========================================================
   BLOG PUBLIC — extrait de pages/includes/blog_text.php
   (2026-08-29) : les styles vivent maintenant dans un fichier
   dédié comme le reste du site (catalogue.css, services.css...),
   plus dans un <style> embarqué dans le template.
   ========================================================== */

.article-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: .35s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .12);
}

.article-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .6s;
}

.article-card:hover img {
    transform: scale(1.08);
}

.article-category {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    color: #0d6efd;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
}

.article-content {
    padding: 24px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    font-size: .85rem;
    margin-bottom: 16px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
}

.article-title a {
    color: #1f2937;
    text-decoration: none;
}

.article-title a:hover {
    color: #0d6efd;
}

.article-excerpt {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 24px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f3f5;
    padding-top: 18px;
    color: #6c757d;
    font-size: .9rem;
}

.article-engagement i {
    color: #adb5bd;
}

.read-more {
    text-decoration: none;
    font-weight: 600;
    color: #0d6efd;
}

/* ----------------------------------------------------------
   Barre d'onglets par type + recherche (remplace les cases à
   cocher multi-critères)
   ---------------------------------------------------------- */

.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.blog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tab {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #495057;
    border-radius: 100px;
    padding: 8px 18px;
    font-size: .9rem;
    font-weight: 600;
    transition: .2s;
    cursor: pointer;
}

.blog-tab:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.blog-tab.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.blog-search {
    max-width: 320px;
}

.blog-grid-loading,
.blog-grid-empty {
    text-align: center;
    padding: 48px 0;
    color: #6c757d;
}

/* ----------------------------------------------------------
   Mention "j'aime" + commentaires (page de détail)
   ---------------------------------------------------------- */

.blog-like-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 100px;
    padding: 8px 20px;
    font-weight: 600;
    color: #495057;
    transition: .2s;
}

.blog-like-btn:hover {
    border-color: #dc3545;
}

.blog-like-btn.liked {
    background: #fef2f2;
    border-color: #dc3545;
    color: #dc3545;
}

.blog-comments-section {
    margin-top: 48px;
    border-top: 1px solid #f1f3f5;
    padding-top: 32px;
}

.blog-comment img {
    background: #f1f3f5;
}
