/* Article Enriched Styles - Amélioration visuelle des articles */

/* Introduction avec hook visuel */
.article-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-intro .hook-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-intro .promise {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    margin-top: 1.5rem;
}

/* Table des matières interactive */
.toc-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc-container h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: #667eea;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toc-list a:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

/* Sections d'article */
.article-section {
    margin: 3rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.article-section:last-child {
    border-bottom: none;
}

.article-section h2 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
}

.article-section h2:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: #667eea;
    border-radius: 2px;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(to right, #ffeaa7 0%, #fdcb6e 100%);
    border-left: 5px solid #fdcb6e;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.highlight-box p {
    margin: 0;
    font-size: 1.1rem;
    color: #2d3636;
    font-weight: 500;
}

/* Expert Insight Box */
.expert-insight {
    background: #f1f3f5;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.expert-insight h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.expert-insight .metric {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin-top: 1rem;
}

/* CTA Inline */
.cta-inline {
    text-align: center;
    margin: 2.5rem 0;
}

.btn-cta-soft {
    background: #e9ecef;
    color: #495057;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-cta-soft:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-cta-inline {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-cta-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* Case Study Box */
.case-study-box {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.case-study-box h3 {
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.case-grid > div {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.case-grid h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.case-grid .before {
    border-top: 3px solid #e74c3c;
}

.case-grid .solution {
    border-top: 3px solid #667eea;
}

.case-grid .after {
    border-top: 3px solid #00b894;
}

.case-grid .results {
    font-weight: 600;
    color: #00b894;
}

/* FAQ Section */
.faq-section {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
}

.faq-section h2 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 2.5rem;
}

.faq-section > div {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.faq-section > div:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-section h3 {
    color: #495057;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.faq-section p {
    color: #6c757d;
    line-height: 1.7;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 16px;
    margin: 4rem 0 2rem;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.final-cta h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.btn-primary-large {
    background: white;
    color: #667eea;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary-large:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-intro {
        padding: 2rem;
    }
    
    .article-intro .hook-text {
        font-size: 1.25rem;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .final-cta {
        padding: 3rem 1.5rem;
    }
    
    .final-cta h3 {
        font-size: 1.5rem;
    }
    
    .btn-primary-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .article-intro {
        background: linear-gradient(135deg, #4c5c96 0%, #5a3f7e 100%);
    }
    
    .toc-container {
        background: #1a202c;
        border-color: #2d3748;
    }
    
    .toc-container h3 {
        color: #e2e8f0;
    }
    
    .highlight-box {
        background: linear-gradient(to right, #c79e3b 0%, #b68834 100%);
        border-left-color: #b68834;
    }
    
    .highlight-box p {
        color: #f7fafc;
    }
    
    .expert-insight {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .expert-insight h4 {
        color: #e2e8f0;
    }
    
    .case-study-box {
        background: #2d3748;
    }
    
    .case-grid > div {
        background: #1a202c;
    }
    
    .faq-section {
        background: #2d3748;
        border-color: #4a5568;
    }

    .faq-section h2 {
        color: #e2e8f0;
    }

    .faq-section h3 {
        color: #e2e8f0;
    }

    .faq-section p {
        color: #a0aec0;
    }
}

/* Animation des éléments au scroll */
.article-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.article-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Script d'animation au scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}