/* ===== DERNIERS ARTICLES ===== */

/* Uniformiser les images */
.wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Uniformiser les cartes */
.wp-block-latest-posts.is-grid li {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Uniformiser les titres */
.wp-block-latest-posts__post-title {
    display: block;
    min-height: 120px;
}

/* Aligner les dates */
.wp-block-latest-posts__post-title {
    display: block;
    min-height: 90px;
    margin-bottom: 10px;
}


/* ===== SIDEBAR ===== */

/* Fond des widgets */
#secondary .widget,
.widget-area .widget {
    background: #f7f8fc !important;
    border: 1px solid #dfe3ee !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
    box-shadow: none !important;
}

/* Titres widgets */
#secondary .widget-title,
.widget-area .widget-title {
    color: #1f3c88 !important;
    background: transparent !important;
}

/* Liens sidebar */
#secondary a,
.widget-area a {
    color: #1f3c88 !important;
}

/* Boutons */
#secondary input[type="submit"],
.widget-area input[type="submit"],
#secondary button,
.widget-area button,
input[type="submit"],
button {
    background: #2f2a7c !important;
    color: white !important;
    border: none !important;
    padding: 10px 15px;
}
/* Champ email newsletter plus lisible */
input[type="email"] {
    background: #ffffff !important;
    color: #333 !important;
    border: 1px solid #cfd6e4 !important;
}
/* Bloc dossier phare homepage */
.home .wp-block-columns {
    background: #f8f9fc;
    padding: 15px 25px !important;
    border-radius: 8px;
    margin: 30px 0;
}

/* Image dossier */
.home .wp-block-columns img {
    border-radius: 6px;
}

/* Bouton dossier */
.wp-block-button__link {
    border-radius: 25px !important;
    padding: 12px 22px !important;
}
/* Bloc derniers articles homepage */
.home .wp-block-latest-posts.is-grid {
    background: #f8f9fc;
    padding: 25px 25px 10px 25px;
    border-radius: 8px;
    margin-top: 20px;
}
/* Réduire l’espace entre image et titre */
.wp-block-latest-posts__featured-image {
    margin-bottom: 5px !important;
}
/* Articles les plus lus : rendu propre */
.wpp-list li {
    overflow: hidden;
    margin-bottom: 18px;
    min-height: 75px;
}

/* Miniatures alignées */
.wpp-list img.wpp-thumbnail {
    float: left;
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    margin: 0 15px 0 0 !important;
}

/* Titre + extrait restent ensemble */
.wpp-post-title {
    display: inline !important;
}

.wpp-excerpt {
    display: inline !important;
}
/* Zone image fixe pour articles populaires */
.wpp-list li {
    overflow: hidden;
    margin-bottom: 18px;
    min-height: 75px;
}

.wpp-list img.wpp-thumbnail {
    float: left;
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    margin: 0 20px 0 0 !important;
}
/* Titre au-dessus du widget réseaux sociaux */
.widget_block:has(.wp-social-link)::before {
    content: "Retrouvez-moi aussi ici:";
    display: block;
    text-align: center;
    font-weight: bold;
    color: #1f3c88;
    margin-bottom: 12px;
    font-size: 16px;
}
@media (max-width: 768px) {
    .wp-block-latest-posts__featured-image {
        display: none;
    }
}
.home .entry-content > p:first-of-type {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 500;
}
/* Remonter légèrement la sidebar sur desktop */
@media (min-width: 769px) {
    #secondary {
        margin-top: 37px;
    }
}
/* Corrige uniquement l’icône X */
.wp-social-link-x a {
    background: #ffffff !important;
    border: 1px solid #d9d9d9;
}

.wp-social-link-x svg {
    fill: #000000 !important;
}
/* Icône X lisible ET ronde */
.wp-social-link-x a {
    background: #ffffff !important;
    border: 1px solid #d9d9d9;
    border-radius: 50% !important;
}

.wp-social-link-x svg {
    fill: #000000 !important;
}
/* Icône Facebook plus lisible */
.wp-social-link-facebook a {
    background: #ffffff !important;
    border: 1px solid #d9d9d9;
    border-radius: 50% !important;
}

.wp-social-link-facebook svg {
    fill: #1877F2 !important;
}
/* Fond blanc rond pour LinkedIn */
.wp-social-link-linkedin a {
    background: #ffffff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 50% !important;
}

/* Force la couleur du logo */
.wp-social-link-linkedin svg {
    fill: #0A66C2 !important;
    color: #0A66C2 !important;
}
/* Fond blanc rond pour LinkedIn */
.wp-social-link-linkedin a {
    background: #ffffff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 50% !important;
}

/* Force la couleur du logo */
.wp-social-link-linkedin svg {
    fill: #0A66C2 !important;
    color: #0A66C2 !important;
}
/* TikTok plus cohérent avec les autres */
.wp-social-link-tiktok a {
    background: #ffffff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 50% !important;
}

/* Logo noir */
.wp-social-link-tiktok svg {
    fill: #000000 !important;
    color: #000000 !important;
}
/* Fond blanc rond */
.wp-social-link-youtube a {
    background: #ffffff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 50% !important;
}

/* Force correctement le logo */
.wp-social-link-youtube svg {
    color: #FF0000 !important;
    fill: currentColor !important;
}
.home .entry-title {
    display: none;
}
.carte-dossier {
    background: #f5f7fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}
.page-id-4103 .sharedaddy,
.page-id-4103 .sd-like {
    display: none !important;
}
@media (max-width: 768px) {
    .widget_block:has(.wp-social-link) {
        text-align: center !important;
    }

    .widget_block:has(.wp-social-link) .wp-block-social-links {
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
.carte-pauvrete {
    background: #eef5fb;
    padding: 25px;
    border-radius: 10px;
}

.carte-fiscalite {
    background: #f8f3e8;
    padding: 25px;
    border-radius: 10px;
}
.carte-pauvrete {
    background: #eef5fb;
    padding: 25px;
    border-radius: 10px;
}

.carte-fiscalite {
    background: #f8f3e8;
    padding: 25px;
    border-radius: 10px;
}