/* ===================================
   PAGE ARTICLE DÉTAIL
   =================================== */

.article-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* Fil d'Ariane */
.breadcrumb {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.938rem;
}

.breadcrumb a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0891b2;
}

.breadcrumb span {
    color: #94a3b8;
}

.breadcrumb span:last-child {
    color: #64748b;
    font-weight: 500;
}

/* Article détail */
.article-detail {
    padding: 3rem 0;
}

.article-detail .container {
    max-width: 1200px;
}

/* Header de l'article */
.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-categorie-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-lead {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto;
}

.article-info > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.938rem;
}

.article-info i {
    color: #1e40af;
    font-size: 1.125rem;
}

.article-author span,
.article-date span,
.article-stats span {
    font-weight: 500;
}

/* Image principale */
.article-featured-image {
    margin: 3rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Contenu de l'article */
.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    margin-top: 3rem;
}

.article-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2.5rem 0 1.25rem;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #334155;
    margin: 2rem 0 1rem;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 4px solid #1e40af;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

.article-content a {
    color: #1e40af;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #0891b2;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-source {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 1rem;
}

.article-source a {
    color: #1e40af;
    font-weight: 600;
    text-decoration: none;
}

.article-source a:hover {
    color: #0891b2;
    text-decoration: underline;
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.social-share,
.article-tags-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.social-share h3,
.article-tags-box h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-share i,
.article-tags-box i {
    color: #1e40af;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.share-btn i {
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    transform: translateY(-2px);
}

/* Articles similaires */
.articles-similaires {
    padding: 4rem 0;
    background: white;
}

.articles-similaires h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.articles-similaires i {
    color: #1e40af;
}

.similaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.similaire-card {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.similaire-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.2);
}

.similaire-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.similaire-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.similaire-card:hover .similaire-image img {
    transform: scale(1.1);
}

.similaire-content {
    padding: 1.5rem;
}

.similaire-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.similaire-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.similaire-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.similaire-content h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.similaire-content h3 a:hover {
    color: #1e40af;
}

.similaire-content p {
    color: #64748b;
    font-size: 0.938rem;
    line-height: 1.6;
}

/* Bouton retour */
.back-to-news {
    padding: 3rem 0;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        max-width: 600px;
        margin: 0 auto;
    }

    .social-share,
    .article-tags-box {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.875rem;
    }

    .article-lead {
        font-size: 1.125rem;
    }

    .article-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .article-content {
        padding: 2rem 1.5rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1rem;
    }

    .similaires-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-lead {
        font-size: 1rem;
    }

    .article-content {
        padding: 1.5rem 1rem;
    }

    .breadcrumb .container {
        font-size: 0.813rem;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }
}

