/**
 * ==================================================================================
 * BLOG ARTICLE - DESIGN PROFESSIONNEL UNIFIÉ
 * ==================================================================================
 * 
 * CSS pour toutes les pages d'articles de blog
 * Design moderne, lecture optimisée, SEO-friendly
 * 
 * Date : 2 janvier 2026
 * Version : 1.0.0
 * ==================================================================================
 */

/* ==================================================================================
   1. CONTAINER GÉNÉRAL
   ================================================================================== */

.blog-article-page {
    background: #ffffff;
}

.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================================================================================
   2. BREADCRUMB ARTICLE
   ================================================================================== */

.article-breadcrumb {
    padding: 20px 0;
}

.article-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.article-breadcrumb .breadcrumb-item {
    display: flex;
    align-items: center;
}

.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 8px;
    color: #6c757d;
}

.article-breadcrumb .breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.article-breadcrumb .breadcrumb-item a:hover {
    background: #f0f2ff;
}

.article-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================================================================================
   3. HEADER ARTICLE
   ================================================================================== */

.article-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 0 40px;
    margin-bottom: 40px;
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 48px;
    line-height: 1.2;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 800;
}

.article-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 15px;
}

.meta-item i {
    color: #667eea;
}

/* Partage Social */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.share-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-facebook {
    background: #3b5998;
}

.share-twitter {
    background: #1da1f2;
}

.share-linkedin {
    background: #0077b5;
}

.share-email {
    background: #6c757d;
}

/* ==================================================================================
   4. IMAGE FEATURED
   ================================================================================== */

.article-featured-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================================================================================
   5. CONTENU ARTICLE
   ================================================================================== */

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
}

/* Excerpt / Chapô */
.article-excerpt {
    font-size: 22px;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-left: 5px solid #667eea;
    border-radius: 8px;
    font-weight: 400;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content strong {
    color: #2c3e50;
    font-weight: 700;
}

.article-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}

.article-content a:hover {
    border-bottom-color: #667eea;
}

/* Titres */
.article-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 60px;
    margin-bottom: 25px;
    line-height: 1.3;
    padding-bottom: 15px;
    border-bottom: 3px solid #e9ecef;
}

.article-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h4 {
    font-size: 22px;
    font-weight: 600;
    color: #495057;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Listes */
.article-content ul,
.article-content ol {
    margin: 25px 0;
    padding-left: 0;
}

.article-content li {
    margin-bottom: 15px;
    line-height: 1.7;
    padding-left: 35px;
    position: relative;
}

.article-content ul li::before {
    content: "→";
    color: #667eea;
    font-weight: 700;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.article-content ol {
    counter-reset: list-counter;
}

.article-content ol li {
    counter-increment: list-counter;
}

.article-content ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* ==================================================================================
   6. BOXES & ENCADRÉS
   ================================================================================== */

/* Box Calcul Générique */
.calculation-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 0;
    border-left: 5px solid #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.calculation-box p {
    margin-bottom: 12px;
    font-size: 17px;
}

.calculation-box p:last-child {
    margin-bottom: 0;
}

.calculation-box strong {
    font-size: 19px;
    color: #2c3e50;
}

/* Box Positive (Économies) */
.calculation-box.positive {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f2 100%);
    border-left-color: #28a745;
}

.calculation-box.positive strong {
    color: #28a745;
}

/* Box Negative (Coûts) */
.calculation-box.negative {
    background: linear-gradient(135deg, #ffebee 0%, #fff0f1 100%);
    border-left-color: #dc3545;
}

.calculation-box.negative strong {
    color: #dc3545;
}

/* Box Astuce */
.tip-box {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 0;
    border-left: 5px solid #ffc107;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

.tip-box::before {
    content: "💡 Astuce Pro";
    display: block;
    font-weight: 700;
    color: #856404;
    margin-bottom: 12px;
    font-size: 16px;
}

/* Box Warning */
.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe5b4 100%);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 0;
    border-left: 5px solid #ff9800;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.warning-box::before {
    content: "⚠️ Important";
    display: block;
    font-weight: 700;
    color: #856404;
    margin-bottom: 12px;
    font-size: 16px;
}

/* Box Exemple */
.example-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 0;
    border-left: 5px solid #2196f3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.example-box::before {
    content: "📋 Exemple Concret";
    display: block;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 12px;
    font-size: 16px;
}

/* Checklist */
.checklist {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 0;
    border-left: 5px solid #28a745;
}

.checklist li {
    padding-left: 40px;
}

.checklist li::before {
    content: "✓";
    color: #28a745;
    font-weight: 700;
    font-size: 22px;
    left: 0;
}

/* ==================================================================================
   7. TAGS
   ================================================================================== */

.article-tags {
    background: #f8f9fa;
    padding: 30px 0;
    margin-top: 60px;
}

.tags-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.tags-label {
    font-weight: 700;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag {
    background: white;
    color: #667eea;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #667eea;
    transition: all 0.3s;
}

.tag:hover {
    background: #667eea;
    color: white;
}

/* ==================================================================================
   8. ARTICLES LIÉS
   ================================================================================== */

.related-articles {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.related-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.related-content {
    padding: 25px;
}

.related-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.related-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.related-title a:hover {
    color: #667eea;
}

.related-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 15px;
}

.related-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.related-link:hover {
    gap: 12px;
}

/* ==================================================================================
   9. CTA RETOUR
   ================================================================================== */

.article-cta {
    padding: 40px 0 60px;
}

.article-cta .container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-back-blog,
.btn-category {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-back-blog {
    background: #667eea;
    color: white;
}

.btn-back-blog:hover {
    background: #5568d3;
    transform: translateX(-5px);
}

.btn-category {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-category:hover {
    background: #667eea;
    color: white;
}

/* ==================================================================================
   10. RESPONSIVE
   ================================================================================== */

@media (max-width: 992px) {
    .article-title {
        font-size: 36px;
    }
    
    .article-content h2 {
        font-size: 30px;
    }
    
    .article-content h3 {
        font-size: 24px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 28px;
    }
    
    .article-excerpt {
        font-size: 18px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-content h2 {
        font-size: 24px;
        margin-top: 40px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .article-cta .container {
        flex-direction: column;
    }
    
    .btn-back-blog,
    .btn-category {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .article-header {
        padding: 40px 0 30px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .calculation-box,
    .tip-box,
    .warning-box,
    .example-box,
    .checklist {
        padding: 20px;
    }
}
