/* ===============================================
   ATYPIKIA — CSS PAGE BLOG v6
   Migré depuis bloc <style> inline blog.php
   =============================================== */

.blog-modern-page {
    background: #FAFAF8;
    min-height: 100vh;
    margin-top: -160px;
}

/* Header blog */
.modern-blog-header {
    position: relative;
    height: auto;
    margin-top: -80px;
    padding: 80px 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #FAFAF8;
}

.blog-hero-particles,
.blog-hero-shapes,
.blog-particle,
.floating-shape { display: none; }

.blog-header-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* Badge */
.blog-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13,115,119,0.08);
    border: 1px solid rgba(13,115,119,0.2);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    margin-bottom: 1rem;
    font-size: 10px;
    font-weight: 600;
    color: #0D7377;
}
.blog-badge-icon { font-size: 1rem; color: #F97316; }

/* Titre hero */
.hero-title-modern {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.title-line { display: block; }
.text-gradient { color: #0D7377; }

.hero-subtitle-modern {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    line-height: 1.6;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Filtres */
.blog-filters-modern { display: flex; justify-content: center; }
.filters-pills { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.filter-pill {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 1.1rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-weight: 500;
    font-size: 0.9rem;
}
.filter-pill:hover,
.filter-pill.active {
    background: #F97316;
    border-color: #F97316;
    color: white;
}

/* Section articles */
.blog-articles-main {
    padding: 4rem 0;
    background: #FAFAF8;
}
.blog-articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Grid */
.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Cards */
.blog-article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
}
.blog-article-card.featured { grid-column: span 2; }

/* Image */
.blog-card-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.blog-article-card.featured .blog-card-image-container { height: 300px; }
.blog-card-image { width: 100%; height: 100%; object-fit: cover; }
.blog-image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.25) 100%);
}

/* Badges sur image */
.blog-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #0D7377;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.blog-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.blog-status-badge.draft { background: #F97316; }
.blog-status-badge.scheduled { background: #059669; }

/* Contenu card */
.blog-card-content { padding: 1.5rem; }
.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6B7280;
    flex-wrap: wrap;
}
.blog-meta-item { display: flex; align-items: center; gap: 0.4rem; }
.blog-meta-divider { opacity: 0.4; }

.blog-article-title { margin-bottom: 0.75rem; line-height: 1.3; }
.blog-article-title a {
    color: #111827;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    transition: color 0.15s ease;
}
.blog-article-card.featured .blog-article-title a { font-size: 1.4rem; }
.blog-article-title a:hover { color: #0D7377; }

.blog-article-excerpt {
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Footer card */
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid #E5E7EB;
}
.blog-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #6B7280;
}
.blog-author-avatar { font-size: 1.6rem; color: #0D7377; }
.blog-read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0D7377;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: opacity 0.15s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(13,115,119,0.08);
    white-space: nowrap;
}
.blog-read-more:hover { opacity: 0.8; }

/* État vide */
.blog-empty-state {
    text-align: center;
    padding: 6rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}
.blog-empty-icon { font-size: 4rem; color: #94a3b8; margin-bottom: 1.5rem; }
.blog-empty-state h3 { font-size: 1.6rem; color: #111827; margin-bottom: 1rem; font-weight: 700; }
.blog-empty-state p { color: #6B7280; margin-bottom: 2rem; line-height: 1.6; font-size: 1rem; }

/* Animations légères (conservées car purement cosmétiques, pas de vibe) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .modern-blog-header { height: auto; padding: 80px 0 1.5rem; }
    .filters-pills { justify-content: flex-start; overflow-x: auto; padding-bottom: 0.5rem; }
    .filter-pill { white-space: nowrap; flex-shrink: 0; padding: 0.45rem 0.9rem; font-size: 0.85rem; }
    .blog-articles-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .blog-article-card.featured { grid-column: span 1; }
    .blog-card-image-container,
    .blog-article-card.featured .blog-card-image-container { height: 200px; }
    .blog-card-content { padding: 1.25rem; }
    .blog-card-footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
@media (max-width: 480px) {
    .blog-header-container { padding: 0 1rem; }
    .blog-article-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
