/*
Theme Name: JBSAN Theme
Theme URI: https://jbsan.fr/
Author: Jean-Bosco Sannier
Author URI: https://jbsan.fr/
Description: Thème WordPress personnalisé basé sur la structure de JBSAN.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom, responsive, minimalist
Text Domain: jbsan-theme
*/

/* Harmonisation du blog avec jbsan.fr */

/* Page liste des articles */
.page#particles {
    margin-top: 150px;
}


#wp-articles .parties {
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
}

/* Carte d’article dans la liste (index.php + AJAX) */
.blog-card {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    box-sizing: border-box;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.blog-card-title {
    margin-bottom: var(--space-xs);
    font-size: 1rem;
    line-height: 1.4;
}

.blog-card-title a {
    text-decoration: none;
    color: inherit;
}

.blog-card-title a:hover {
    color: #2453ff;
}

.blog-card-meta {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.blog-card-excerpt {
    margin-top: var(--space-xs);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.blog-card-footer {
    display: flex;
    justify-content: flex-start;
}

.blog-card-readmore {
    margin: 0;
}

/* Conteneur de liste pour bien séparer les cartes */
#articles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

/* En-tête de section "Derniers articles" */
.blog-section-header {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.blog-section-header h2 {
    font-size: 1.3rem;
    margin: 0;
}

.blog-section-header p {
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Articles seuls */
.blog-article {
    margin-top: 40px;
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
}

.blog-article h1 {
    padding-top: 0;
    font-size: 1.6rem;
    line-height: 1.4;
}

.blog-article-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

.blog-article-content {
    line-height: 1.8;
}

/* Bloc sommaire + image : garder côte à côte au-dessus de 1080px, image bornée */
@media (min-width: 1081px) {
    .blog-article .flex-adapt-space-evenly {
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .blog-article .flex-adapt-space-evenly picture {
        flex: 0 1 700px;
        max-width: 700px;
        min-width: 0;
    }

    .blog-article .flex-adapt-space-evenly picture img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .blog-article #sommaire-article {
        flex: 0 0 auto;
    }
}

/* En dessous de 1080px : image peut prendre plus de place, comportement adaptatif conservé */
@media (max-width: 1080px) and (min-width: 851px) {
    .blog-article .flex-adapt-space-evenly picture {
        max-width: 402px;
    }

    .blog-article .flex-adapt-space-evenly picture img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 850.98px) {
    .blog-article .flex-adapt-space-evenly picture {
        width: 100%;
        max-width: 100%;
    }

    .blog-article .flex-adapt-space-evenly picture img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }
}

/* Sommaire (automenu) déjà stylé par default.css */