/* Styles pour la page d'article */

.article-page {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 40px;
    margin: 40px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-header {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.article-breadcrumb {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    margin-left: 0;
}

.article-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    margin-left: 0;
    line-height: 1.2;
    padding-left: 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
    font-size: 0.95em;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-author {
    font-weight: 600;
    color: var(--primary-color);
}

.article-date {
    color: #666;
}

.article-updated {
    color: #999;
    font-size: 0.9em;
}

.article-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

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

.article-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 40px;
}

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

.article-content h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.article-content h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.article-footer {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 40px;
}

.article-tags {
    margin-bottom: 30px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9em;
    color: #666;
    margin-right: 10px;
    margin-bottom: 10px;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.article-share span {
    font-weight: 600;
    color: var(--dark-color);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
}

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

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.article-back {
    text-align: center;
    margin: 40px 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Section Dernières publications */
.article-news-section {
    margin-top: 60px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.article-news-section h2 {
    font-size: 2em;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-news-section h2 i {
    color: var(--primary-color);
}

.article-news-section .section-subtitle {
    color: #5a6c7d;
    margin-bottom: 30px;
    font-size: 1em;
}

.article-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-date {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.news-card-excerpt {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .article-page {
        padding: 20px;
        margin: 20px 0;
    }
    
    .article-header {
        padding: 20px;
        border-radius: 12px;
    }
    
    .article-title {
        font-size: 1.8em;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-content {
        font-size: 1em;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .article-news-section {
        margin-top: 40px;
        padding: 0 15px;
    }
    
    .article-news-section h2 {
        font-size: 1.5em;
    }
    
    .article-news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .news-card-content {
        padding: 15px;
    }
    
    .news-card-title {
        font-size: 1.1em;
    }
    
    .news-card-excerpt {
        font-size: 0.9em;
    }
}

