/* Styles spécifiques pour les pages d'articles */

/* Layout de l'article */
.article-content {
    padding: 60px 0;
}

.article-content .container {
    max-width: 900px;
    margin: 0 auto;
}

/* En-tête de l'article */
.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-meta {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.article-meta .post-category {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-meta .post-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.article-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.article-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.author-info p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Image principale */
.article-featured-image {
    margin-bottom: 30px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Corps de l'article */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

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

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 25px;
}

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

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    background-color: rgba(var(--primary-rgb), 0.05);
    font-style: italic;
}

.article-body blockquote p {
    margin: 0 0 10px;
}

.article-body blockquote cite {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: normal;
    font-weight: 500;
}

.article-image {
    margin: 30px 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-image figcaption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 10px;
}

/* Boutons de partage */
.article-share {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.article-share h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-social i {
    margin-right: 8px;
}

.btn-social.facebook {
    background-color: #3b5998;
    color: white;
}

.btn-social.twitter {
    background-color: #1da1f2;
    color: white;
}

.btn-social.linkedin {
    background-color: #0077b5;
    color: white;
}

.btn-social:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Articles connexes */
.related-posts {
    margin: 40px 0;
}

.related-posts h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post {
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.related-post h4 {
    font-size: 1.1rem;
    margin: 10px 0 5px;
    line-height: 1.4;
}

.related-post a {
    text-decoration: none;
    color: var(--text-primary);
}

.related-post .post-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Commentaires */
.article-comments {
    margin: 40px 0;
}

.article-comments h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.comments-container {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

/* Newsletter section */
.newsletter-section {
    background-color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.newsletter-section h2 {
    margin-bottom: 15px;
}

.newsletter-section p {
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-section .newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-section .newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-section .newsletter-form button {
    border-radius: 0 4px 4px 0;
    padding: 12px 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-social {
        width: 80%;
    }
    
    .newsletter-section .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-section .newsletter-form input[type="email"],
    .newsletter-section .newsletter-form button {
        width: 100%;
        border-radius: 4px;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}