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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #1E5959 0%, #3B8C6E 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.page-title {
    animation: fadeInDown 1s ease-out;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    animation: fadeInUp 1s ease-out 0.2s backwards;
    font-size: 1.2rem;
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3B8C6E;
}

.blog-image-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

/* Blog Badge */
.blog-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: linear-gradient(135deg, #89D99D 0%, #3B8C6E 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-badge-light {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Blog Meta */
.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.blog-meta i {
    color: #3B8C6E;
}

.article-meta-hero {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* Bouton outline blog */
.btn-outline-blog {
    border: 2px solid #3B8C6E;
    color: #3B8C6E;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-blog:hover {
    background: linear-gradient(135deg, #89D99D 0%, #3B8C6E 100%);
    color: white;
    border-color: transparent;
}

/* Article Detail */
.article-content {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    color: #1E5959;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.article-content ul {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.6rem;
}

.article-content a {
    color: #3B8C6E;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(59, 140, 110, 0.3);
    transition: border-color 0.3s ease;
}

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

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, #89D99D 0%, #3B8C6E 100%);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box .btn {
    position: relative;
    z-index: 1;
}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .cta-box {
        padding: 2rem;
    }

    .blog-image-placeholder {
        height: 160px;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-content h2 {
        font-size: 1.3rem;
    }
}
