/* Blog Modern Design - XYZ Agency */
/* Direction artistique alignée avec le site principal */

/* Reset et base */
.blog-page {
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

/* Hero Section Blog */
.blog-hero {
    padding: 120px 0 40px !important;
    text-align: left !important;
    background: linear-gradient(180deg, rgba(230, 65, 0, 0.02) 0%, rgba(255, 255, 255, 1) 100%) !important;
    display: block !important;
    visibility: visible !important;
}

h1.blog-hero-title {
    font-size: clamp(28px, 4vw, 38px) !important;
    font-weight: 400 !important;
    margin-bottom: 16px !important;
    color: #1a1a1a !important;
    line-height: 1.2 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: left !important;
    position: relative !important;
    z-index: 2 !important;
}

p.blog-hero-subtitle {
    font-size: clamp(13px, 1.5vw, 15px) !important;
    color: #666 !important;
    max-width: 800px !important;
    margin: 0 0 40px 0 !important;
    line-height: 1.6 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: left !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Blog Grid - Modern Card Design */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin: 20px 0;
}

/* Blog Cards - Premium Style */
.blog-card {
    background: #ffffff;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    aspect-ratio: 1 / 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(230, 65, 0, 0.1);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 65, 0, 0.6);
    box-shadow: 0 20px 40px rgba(230, 65, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Image Section */
.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2a2a2a 0%, #3d1e0d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(150, 150, 150, 0.1) 0%, transparent 70%);
}

.blog-card-image i {
    width: 24px;
    height: 24px;
    z-index: 1;
}

.blog-card-image i svg {
    width: 24px !important;
    height: 24px !important;
}

.blog-card-image svg {
    width: 24px !important;
    height: 24px !important;
}

/* Content Section */
.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.blog-card-category {
    color: #E64100;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: rgba(230, 65, 0, 0.08);
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-card-date {
    color: #999;
    font-size: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #FF6B35;
}

.blog-card-excerpt {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #FF6B35;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: gap 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-card-read-more:hover {
    gap: 10px;
}

.blog-card-read-time {
    color: #999;
    font-size: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
}

/* Filters - Modern Pills */
.blog-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    color: #666;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(230, 65, 0, 0.05);
    border-color: #E64100;
    color: #E64100;
}

.filter-btn.active {
    background: linear-gradient(135deg, #E64100 0%, #FF6B35 100%);
    color: white;
    border-color: #E64100;
    box-shadow: 0 4px 12px rgba(230, 65, 0, 0.25);
}

/* Article Page Styles */
.article-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(230, 65, 0, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
}

.article-category {
    display: inline-block;
    color: #E64100;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    background: rgba(230, 65, 0, 0.08);
    border-radius: 6px;
    margin-bottom: 20px;
}

.article-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 40px;
}

.article-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 60px 20px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 60px 0 24px;
    color: #1a1a1a;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #1a1a1a;
}

.article-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #333;
}

.article-content ul,
.article-content ol {
    margin: 24px 0;
    padding-left: 30px;
}

.article-content li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #333;
}

.article-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.article-content a {
    color: #E64100;
    text-decoration: none;
    border-bottom: 1px solid rgba(230, 65, 0, 0.3);
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: #E64100;
}

.article-content blockquote {
    border-left: 4px solid #E64100;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #666;
}

.article-content code {
    background: rgba(230, 65, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #E64100;
}

/* Schema.org structured data for SEO */
.schema-article {
    display: none;
}

/* Search and Filter Controls */
.blog-controls {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 20px;
    background: rgba(250, 250, 250, 0.8);
    border-radius: 12px;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 350px;
    min-width: 250px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #999;
    pointer-events: none;
}

#searchInput {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#searchInput:focus {
    outline: none;
    border-color: #E64100;
    box-shadow: 0 2px 12px rgba(230, 65, 0, 0.2);
}

#filterToggleBtn {
    padding: 12px 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

#filterToggleBtn:hover {
    background: rgba(230, 65, 0, 0.05);
    border-color: #E64100;
    box-shadow: 0 2px 12px rgba(230, 65, 0, 0.2);
}

#filterToggleBtn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
}

#filtersPanel {
    display: none;
    margin-top: 16px;
    padding: 24px;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.filters-inner {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

#sortSelect,
#dateFilterSelect {
    width: 100%;
    padding: 12px 36px 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3e%3cpath fill=%27%23333%27 d=%27M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z%27/%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

#sortSelect:focus,
#dateFilterSelect:focus {
    outline: none;
    border-color: #E64100;
    box-shadow: 0 2px 8px rgba(230, 65, 0, 0.2);
}

#resetFiltersBtn {
    padding: 12px 20px;
    background: rgba(230, 65, 0, 0.1);
    border: 2px solid rgba(230, 65, 0, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: #E64100;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#resetFiltersBtn:hover {
    background: rgba(230, 65, 0, 0.2);
    border-color: #E64100;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 20px 40px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 40px 20px;
    }

    .article-header {
        padding: 80px 20px 40px;
    }

    .article-content {
        padding: 40px 20px;
    }

    .article-content h2 {
        font-size: 28px;
        margin: 40px 0 20px;
    }

    .article-content h3 {
        font-size: 22px;
    }

    .article-content p,
    .article-content li {
        font-size: 16px;
    }
}
