/* ─── Blog — styles publics ─────────────────────────────────────────────────── */

/* Section preview accueil */
.blog-preview {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.blog-preview .section-header {
    text-align: center;
    margin-bottom: 48px;
    margin-left: auto;
    margin-right: auto;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.blog-preview-cta {
    text-align: center;
}

/* Carte article */
.article-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.article-card-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background-color: #edebe8;
}

.article-card-cover-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #edebe8 0%, #d8d5d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-cover-placeholder svg {
    width: 48px;
    height: 48px;
    fill: #298e55;
    opacity: 0.4;
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-card-category {
    display: inline-block;
    background-color: rgba(41, 142, 85, 0.1);
    color: rgb(41, 142, 85);
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 2px;
}

.article-card-date {
    font-size: 13px;
    color: rgb(100, 110, 120);
}

.article-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: rgb(17, 24, 39);
    line-height: 1.4;
    margin: 0;
}

.article-card-excerpt {
    font-size: 14px;
    color: rgb(62, 70, 82);
    line-height: 1.65;
    flex: 1;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(41, 142, 85);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.15s ease;
}

.article-card-link:hover {
    gap: 10px;
}

/* ─── Page blog.php ──────────────────────────────────────────────────────────── */

.blog-hero {
    background-color: #424242;
    padding: 60px 0 0;
    color: #fff;
}

.blog-hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin-bottom: 36px;
}

/* ─── Tabs catégories dans le hero ───────────────────────────────────────────── */

.blog-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    flex-wrap: wrap;
    border-bottom: none;
}

.blog-tab {
    padding: 12px 22px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.blog-tab:hover {
    color: rgba(255, 255, 255, 0.9);
}

.blog-tab.active {
    color: #fff;
    border-bottom-color: rgb(41, 142, 85);
}

.blog-main {
    padding: 60px 0 80px;
    background-color: #f5f5f5;
    min-height: 400px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: rgb(100, 110, 120);
    font-size: 15px;
}

/* ─── Page article.php ───────────────────────────────────────────────────────── */

.article-hero {
    background-color: #424242;
    padding: 48px 0 40px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.article-breadcrumb a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: #fff;
}

.article-breadcrumb span {
    color: rgba(255,255,255,0.4);
}

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.article-hero-category {
    display: inline-block;
    background-color: rgba(41, 142, 85, 0.2);
    color: rgb(100, 220, 150);
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 2px;
}

.article-hero-date {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.article-hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    max-width: 800px;
}

.article-cover-wrapper {
    background-color: #f5f5f5;
    padding: 40px 0 0;
}

.article-cover-wrapper img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 4px;
}

.article-body {
    padding: 48px 0 80px;
    background-color: #f5f5f5;
}

.article-content-wrapper {
    max-width: 800px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: rgb(40, 50, 60);
}

.article-content h2 {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: rgb(17, 24, 39);
    margin: 40px 0 16px;
}

.article-content h3 {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: rgb(17, 24, 39);
    margin: 32px 0 12px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    color: rgb(17, 24, 39);
    font-weight: 600;
}

.article-content a {
    color: rgb(41, 142, 85);
    text-decoration: underline;
}

.article-back {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #ddd;
}

/* ─── Partage article ────────────────────────────────────────────────────────── */

.article-share {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e0e0e0;
}

.article-share-label {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgb(100, 110, 120);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.article-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 3px;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.15s ease;
    background: #fff;
}

.share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.share-linkedin {
    color: #0077b5;
    border-color: #0077b5;
}
.share-linkedin:hover {
    background-color: #0077b5;
    color: #fff;
}

.share-twitter {
    color: #000;
    border-color: #000;
}
.share-twitter:hover {
    background-color: #000;
    color: #fff;
}

.share-facebook {
    color: #1877f2;
    border-color: #1877f2;
}
.share-facebook:hover {
    background-color: #1877f2;
    color: #fff;
}

.share-copy {
    color: rgb(41, 142, 85);
    border-color: rgb(41, 142, 85);
}
.share-copy:hover,
.share-copy.copied {
    background-color: rgb(41, 142, 85);
    color: #fff;
}

/* ─── Pagination ─────────────────────────────────────────────────────────────── */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 40px 0 0;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1.5px solid #d0d0d0;
    background: #fff;
    border-radius: 3px;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgb(62, 70, 82);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.disabled):not(.active) {
    border-color: rgb(41, 142, 85);
    color: rgb(41, 142, 85);
}

.page-btn.active {
    background-color: rgb(41, 142, 85);
    border-color: rgb(41, 142, 85);
    color: #fff;
    cursor: default;
}

.page-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .blog-preview-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 48px 0 0;
    }

    .blog-preview-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-main {
        padding: 40px 0 60px;
    }

    .blog-tabs {
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 1px;
    }

    .blog-tab {
        font-size: 12px;
        padding: 10px 16px;
        white-space: nowrap;
    }

    .article-share-buttons {
        gap: 8px;
    }

    .share-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}
