/* Blog Article Styles - Enhanced Design & Accessibility */

/* Hero Article - Plus petit */
.hero-article {
    padding: 6rem 0 2rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: auto;
    position: relative;
    margin-top: 80px;
}

.hero-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #5ba3f5, #6bb6ff);
}

.hero-content-article {
    text-align: left;
    max-width: 800px;
    position: relative;
}

.hero-content-article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #f8f9fa;
    font-weight: 700;
    line-height: 1.2;
}

/* Article Content Section */
.article-content-section {
    padding: 3rem 0;
    background: #0f172a;
}

.article-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #e2e8f0;
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid #334155;
}

.article-text h2 {
    color: #ffffff;
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem 0;
    border-bottom: 3px solid #2563eb;
    padding-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
}

.article-text h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

.article-text h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.article-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

.article-text h4 {
    color: #2563eb;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 600;
    position: relative;
    padding-left: 0.75rem;
}

.article-text h4::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-size: 0.8rem;
}

.article-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
    word-wrap: break-word;
}

.article-text ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.article-text li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    position: relative;
    padding-left: 2rem;
}

.article-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
    font-size: 1.1rem;
    top: 0;
}



.article-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

.article-text a:hover,
.article-text a:focus {
    background: rgba(37, 99, 235, 0.2);
    border-bottom-color: #2563eb;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Breadcrumb amélioré */
.breadcrumb {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    background: #2563eb;
    color: white;
    transform: translateX(-2px);
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.breadcrumb a::before {
    content: '←';
    font-weight: bold;
}

/* Article meta amélioré */
.article-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-date {
    color: #e2e8f0;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: #1e293b;
    border-radius: 20px;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-category {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Article placeholder amélioré */
.article-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px dashed #dee2e6;
    position: relative;
    overflow: hidden;
}

.article-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(74, 144, 226, 0.05) 10px,
        rgba(74, 144, 226, 0.05) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(0px) translateY(0px); }
}

.article-placeholder h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.article-placeholder p {
    color: #666;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Focus indicators pour l'accessibilité */
*:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Skip link pour l'accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Amélioration du contraste pour l'accessibilité */
.article-text strong {
    color: #60a5fa;
    font-weight: 600;
}



/* Responsive amélioré */
@media (max-width: 768px) {
    .hero-article {
        padding: 2rem 0 1rem 0;
    }
    
    .hero-content-article h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .article-text {
        font-size: 1rem;
        padding: 1.5rem 1rem;
        margin: 0 1rem;
        border-radius: 8px;
    }
    
    .article-text h2 {
        font-size: 1.7rem;
        margin: 2rem 0 1rem 0;
    }
    
    .article-text h3 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.8rem 0;
    }
    
    .article-text h4 {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .breadcrumb a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Mode sombre (préférence utilisateur) */
@media (prefers-color-scheme: dark) {
    .article-text {
        background: #1a1a1a;
        color: #e9ecef;
        border-color: #333;
    }
    
    .article-text h2,
    .article-text h3 {
        color: #f8f9fa;
    }
    
    .article-text h4 {
        color: #5ba3f5;
    }
    
    .article-date {
        background: #2d3748;
        color: #e9ecef;
        border-color: #4a5568;
    }
}

/* Réduction de mouvement pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .article-text > *,
    .article-placeholder::before,
    .breadcrumb a,
    .article-text li {
        animation: none;
        transition: none;
    }
}