/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0.0
*/

/* ==========================================
   HOMEPAGE - Masquage lien commentaire
   ========================================== */
.home .entry-meta .comments-link,
.blog .entry-meta .comments-link {
    display: none !important;
}

/* ==========================================
   TEMPLATE ARTICLE NEWS TANK
   ========================================== */

/* Container principal */
.article-newstank {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.newstank-article {
    background: #fff;
}

/* En-tête article */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

/* Image mise en avant */
.article-featured-image {
    margin: 2rem auto;
    max-width: 400px;
}

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

/* Métadonnées */
.article-meta {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin-top: 1.5rem;
}

.meta-location {
    font-weight: 600;
    color: #333;
}

.meta-separator {
    margin: 0 0.5rem;
    color: #999;
}

.meta-article-id,
.meta-date {
    color: #666;
}

.meta-audio {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.meta-audio:hover {
    color: #c2185b;
    text-decoration: underline;
}

/* Contenu article */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 3rem;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content p:first-child::first-letter {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    float: left;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    color: #1a1a1a;
}

.article-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.article-content a {
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: border-color 0.2s;
}

.article-content a:hover {
    border-bottom-color: #0073aa;
}

/* Citations */
.article-content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #e91e63;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

/* Listes */
.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Footer article */
.article-footer {
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.875rem;
    color: #666;
}

.article-categories,
.article-tags {
    margin-bottom: 1rem;
}

.article-categories a,
.article-tags a {
    color: #0073aa;
    text-decoration: none;
    margin-right: 0.5rem;
}

.article-categories a:hover,
.article-tags a:hover {
    text-decoration: underline;
}

/* Navigation articles */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    transition: color 0.2s;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: #0073aa;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .article-newstank {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        font-size: 0.8rem;
    }
    
    .article-content {
        text-align: left;
        font-size: 0.95rem;
    }
    
    .article-content p:first-child::first-letter {
        font-size: 2.5rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
}

/* Desktop : colonnes pour long texte */
@media (min-width: 1024px) {
    .article-content {
        column-count: 2;
        column-gap: 3rem;
        column-rule: 1px solid #e0e0e0;
    }
    
    .article-content p:first-child::first-letter {
        font-size: 3.5rem;
    }
    
    /* Éviter la coupure des éléments entre colonnes */
    .article-content p,
    .article-content blockquote,
    .article-content ul,
    .article-content ol {
        break-inside: avoid;
    }
}
