:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #0ea5e9;
    --accent-color: #06b6d4;
    --text-dark: #0f172a;
    --text-light: #475569;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

/* Hero Section */
.blog-hero {
    background: var(--gradient-primary);
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(14, 165, 233, 0.9) 100%);
}

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

.blog-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blog-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.meta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.meta-item i {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Blog Content */
.blog-content-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.blog-content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-content-card {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.blog-content-header {
    padding: 40px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.blog-content-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-content-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.content-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.content-meta-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.blog-content-body {
    padding: 40px;
}

.blog-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* TinyMCE Styling - Garder le style original qui fonctionne */
#myTextarea {
    width: 100%;
    resize: none;
    overflow: hidden;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
    
    .blog-meta {
        gap: 16px;
        margin-bottom: 30px;
    }
    
    .meta-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .blog-content-header,
    .blog-content-body {
        padding: 30px 24px;
    }
    
    .blog-content-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 80px 0 50px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .meta-item {
        width: 100%;
        justify-content: center;
    }
    
    .blog-content-header,
    .blog-content-body {
        padding: 24px 20px;
    }
    
    .blog-content-title {
        font-size: 1.75rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-hero-content,
.blog-content-card {
    animation: fadeInUp 0.8s ease-out;
}

.meta-item {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

.meta-item:nth-child(1) { --animation-order: 1; }
.meta-item:nth-child(2) { --animation-order: 2; }
.meta-item:nth-child(3) { --animation-order: 3; }