/* Blog Design System - Premium Edition */
:root {
    --blog-primary: #1e40af;
    --blog-secondary: #0f172a;
    --blog-accent: #3b82f6;
    --blog-bg: #f8fafc;
    --blog-card-bg: #ffffff;
    --blog-text-dark: #0f172a;
    --blog-text-muted: #64748b;
    --blog-radius: 16px;
    --blog-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --blog-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero Section */
.blog-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.8));
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.blog-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.blog-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 400;
}

/* CTA Boxes */
.blog-ctas {
    padding: 5rem 0;
    background: white;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.cta-box {
    background: var(--blog-bg);
    padding: 3rem;
    border-radius: 24px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cta-box:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: var(--blog-shadow-hover);
    border-color: var(--blog-accent);
}

.cta-box h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blog-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.cta-box h3 i {
    font-size: 1.5rem;
    margin-right: 15px;
    opacity: 0.8;
}

.cta-box p {
    color: var(--blog-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Blog Grid */
.blog-section {
    padding: 6rem 0;
    background: var(--blog-bg);
}

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

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

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

.blog-card {
    background: white;
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--blog-shadow-hover);
}

.blog-image-container {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.08);
}

.category-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: white;
    color: var(--blog-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--blog-text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.blog-excerpt {
    color: var(--blog-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    margin-top: auto;
    color: var(--blog-primary);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    transition: gap 0.3s ease;
}

.blog-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(5px);
}

/* Category Badge Colors */
.badge-commerce {
    border-bottom: 4px solid #3b82f6;
}

.badge-logistique {
    border-bottom: 4px solid #10b981;
}

.badge-bureau {
    border-bottom: 4px solid #8b5cf6;
}

.badge-investissement {
    border-bottom: 4px solid #f59e0b;
}

.badge-finance {
    border-bottom: 4px solid #ef4444;
}

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

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero {
        height: 40vh;
    }
}