/* Styles pour la page de détail d'article */
.article-detail-section {
    padding: 4rem 0;
    background-color: var(--color-sand);
}

.article-detail-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-charcoal);
    margin: 1rem 0;
    line-height: 1.2;
}

.article-detail-image-container {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-detail-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 500px;
}

.article-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.article-detail-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--color-charcoal);
    margin: 1.5rem 0 1rem;
    font-size: 1.8rem;
}

.article-detail-content p {
    margin-bottom: 1.2rem;
}

.article-detail-content ul, 
.article-detail-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.article-detail-content li {
    margin-bottom: 0.5rem;
}

.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.article-share {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    flex: 1; /* pour qu’il prenne l’espace disponible */
}

.article-share h3,
.article-comment-like h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-charcoal);
    line-height: 1.2;
}

/* Container global partage + commentaire */
.article-share-comment {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* aligne les titres en haut */
    gap: 20px;
}

/* Partie commentaire à droite */
.article-comment-like {
    min-width: 300px;
    display: flex;
    flex-direction: column; /* titre au-dessus, formulaire en dessous */
}

/* Container formulaire */
.comment-form-container {
    width: 100%;
}

/* Formulaire : input + bouton alignés horizontalement */
#commentForm {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

#commentForm input[type="text"] {
    flex: 1;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

#commentForm button {
    padding: 6px 12px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

/* Boutons de partage */
.share-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center; /* aligne verticalement les icônes */
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    font-size: 1.1rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1DA1F2;
}

.share-linkedin {
    background-color: #0077B5;
}

.share-whatsapp {
    background-color: #25D366;
}

/* Responsiveness */
@media (max-width: 768px) {
    .article-detail-section {
        padding: 2rem 0;
    }
    
    .article-detail-container {
        padding: 1.5rem;
    }
    
    .article-detail-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-stats {
        margin-top: 1rem;
    }
    
    .article-views, .article-likes {
        margin-left: 0;
        margin-right: 1.5rem;
    }
    
    .article-detail-content {
        font-size: 1rem;
    }
    
    .article-detail-content h2 {
        font-size: 1.5rem;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    /* Passe en colonne, blocs prennent toute la largeur */
    .article-share-comment {
        flex-direction: column;
        align-items: stretch;
    }

    .article-comment-like {
        min-width: auto;
        margin-top: 20px;
    }
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #777;
    font-size: 1rem;
    transition: color 0.3s;
}

.like-btn i {
    color: #777; /* gris par défaut */
    transition: color 0.3s;
}

.like-btn.active,
.like-btn.active i {
    color: var(--color-safran); /* couleur du cœur quand actif */
}
