/* ===== NOUVELLE SECTION BLOG - VERSION FINALE ===== */
/* Fichier CSS dédié pour éviter les conflits */

/* 1. CONTENEUR PRINCIPAL */
.new-blog-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
    min-height: 100vh;
}

/* 2. EFFET DE FOND LUMINEUX */
.new-blog-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(0, 224, 255, 0.12) 0%, rgba(0, 224, 255, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    animation: new-blog-glow-pulse 10s ease-in-out infinite;
}

@keyframes new-blog-glow-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

/* 3. EN-TÊTE DE LA SECTION */
.new-blog-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.new-blog-badge {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(0, 224, 255, 0.1);
    border: 1px solid rgba(0, 224, 255, 0.3);
    border-radius: 30px;
    color: #00E0FF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(10px);
}

.new-blog-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #00E0FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.new-blog-header p {
    font-size: 1.3rem;
    color: #b0b0b0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 4. GRILLE PRINCIPALE DES ARTICLES */
.new-blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* 5. CARTES D'ARTICLES */
.new-blog-card {
    background: linear-gradient(135deg, rgba(15, 25, 45, 0.9) 0%, rgba(5, 15, 25, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(15px);
    display: block;
}

.new-blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.new-blog-card:hover::before {
    opacity: 1;
}

.new-blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 224, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 224, 255, 0.15);
}

/* 6. ARTICLE PRINCIPAL (FEATURED) */
.featured-card {
    grid-column: 1 / 3; /* Occupe les deux colonnes */
    display: flex;
    min-height: 400px;
}

.featured-card .card-image-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.featured-card .card-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 7. ARTICLES SECONDAIRES */
.secondary-card {
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.secondary-card .card-image-wrapper {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.secondary-card .card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 8. IMAGES DES CARTES */
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.new-blog-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* 9. CONTENU DES CARTES */
.card-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 224, 255, 0.2);
    color: #00E0FF;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 224, 255, 0.3);
}

.featured-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.secondary-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.4;
}

.card-content p {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* 10. MÉTADONNÉES DES CARTES */
.card-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-meta span {
    color: #888;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-meta i {
    color: #00E0FF;
}

.card-read-more {
    color: #00E0FF !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.new-blog-card:hover .card-read-more {
    color: #ffffff !important;
}

/* 11. BOUTON CTA */
.new-blog-cta-button {
    display: block;
    width: auto;
    margin: 0 auto;
    padding: 16px 40px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #00E0FF;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    max-width: 300px;
}

.new-blog-cta-button:hover {
    border-color: #00E0FF;
    color: #00E0FF;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 224, 255, 0.2);
    border-radius: 50px;
}

.new-blog-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.1), transparent);
    transition: left 0.6s ease;
    border-radius: 50px;
}

.new-blog-cta-button:hover::before {
    left: 100%;
    border-radius: 50px;
}

/* 12. RESPONSIVITÉ */

/* Tablette */
@media (max-width: 992px) {
    .new-blog-header h2 {
        font-size: 3rem;
    }
    
    .featured-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .featured-card .card-image-wrapper {
        height: 250px;
    }
    
    .featured-card .card-content {
        padding: 30px;
    }
    
    .featured-card h3 {
        font-size: 1.8rem;
    }
    
    .new-blog-section {
        padding: 100px 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .new-blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .featured-card {
        grid-column: 1;
    }
    
    .new-blog-header h2 {
        font-size: 2.5rem;
    }
    
    .new-blog-header p {
        font-size: 1.1rem;
    }
    
    .featured-card .card-content,
    .secondary-card .card-content {
        padding: 25px;
    }
    
    .featured-card h3 {
        font-size: 1.6rem;
    }
    
    .secondary-card h4 {
        font-size: 1.2rem;
    }
    
    .new-blog-section {
        padding: 80px 0;
    }
    
    .new-blog-cta-button {
        padding: 16px 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .new-blog-header h2 {
        font-size: 2rem;
    }
    
    .featured-card .card-content,
    .secondary-card .card-content {
        padding: 20px;
    }
    
    .card-content p {
        font-size: 1rem;
    }
    
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}