/* ===== 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;
}
.page-id-4235 .site-header {
    display: none !important;
}
/* Page A4C : bannière pleine largeur */
.page-id-4235 #primary {
    width: 100% !important;
    float: none !important;
}

/* Cache la sidebar uniquement sur A4C */
.page-id-4235 #secondary {
    display: none !important;
}

/* Étire le contenu */
.page-id-4235 .site-content {
    max-width: 100% !important;
}

/* Bloc bannière pleine largeur */
.page-id-4235 .wp-block-cover,
.page-id-4235 .wp-block-image {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Supprime le titre "Carburant Corse" si inutile */
.page-id-4235 .type-page > .entry-header .entry-title {
    display: none !important;
}
/* ===== A4C MOBILE UNIQUEMENT ===== */
@media (max-width: 768px) {

    /* bannière moins haute sur smartphone */
    .page-id-4235 .wp-block-cover {
        min-height: 320px !important;
    }

    /* texte bannière plus compact */
    .page-id-4235 .wp-block-cover h1,
    .page-id-4235 .wp-block-cover h2 {
        font-size: 34px !important;
        line-height: 1.2 !important;
    }

    .page-id-4235 .wp-block-cover p {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    /* boutons plus propres sur mobile */
    .page-id-4235 .wp-block-buttons {
        justify-content: center !important;
    }

    .page-id-4235 .wp-block-button {
        width: 100%;
        max-width: 300px;
        margin: 8px auto;
    }

    .page-id-4235 .wp-block-button__link {
        width: 100%;
        text-align: center;
    }
}
/* A4C : masquer partage/j'aime */
.page-id-4235 .sharedaddy,
.page-id-4235 .sd-sharing-enabled,
.page-id-4235 .sd-like {
    display: none !important;
}

/* A4C mobile : boutons moins énormes */
@media (max-width: 768px) {
    .page-id-4235 .wp-block-button {
        max-width: 260px !important;
        margin: 6px auto !important;
    }

    .page-id-4235 .wp-block-button__link {
        font-size: 22px !important;
        padding: 10px 18px !important;
    }
}
@media (max-width: 768px) {
    .page-id-4235 .wp-block-button {
        max-width: 240px !important;
        margin: 5px auto !important;
    }

    .page-id-4235 .wp-block-button__link {
        font-size: 20px !important;
        padding: 8px 16px !important;
    }
}
/* Zone boutons A4C collée à la bannière */
.page-id-4235 .wp-block-buttons {
    background: #183b6b;
    padding: 20px 25px;
    margin-top: 0 !important;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Boutons A4C */
.page-id-4235 .wp-block-button__link {
    background: #ffffff !important;
    color: #183b6b !important;
    border-radius: 25px !important;
    font-weight: bold;
    padding: 10px 18px !important;
}

/* Mobile */
@media (max-width: 768px) {
    .page-id-4235 .wp-block-buttons {
        padding: 15px;
        gap: 10px;
    }

    .page-id-4235 .wp-block-button {
        width: 100%;
        max-width: 260px;
    }
}
/* CTA principal pétition */
.page-id-4235 .petition-btn .wp-block-button__link {
    background: #d62828 !important;
    color: white !important;
}
.page-id-4235 .retour-btn .wp-block-button__link {
    background: #ffffff !important;
    color: #183b6b !important;
}
.page-id-4235 .wp-block-buttons {
    justify-content: flex-start !important;
    padding-left: 20px !important;
}
body:has(article.category-a4c) .site-header {
    display: none !important;
}
body:has(article.category-a4c) .wp-block-buttons {
    margin-top: 25px;
}
.nav-a4c-article {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    margin-top: 25px;
}

.nav-a4c-article .wp-block-buttons {
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-a4c-article .wp-block-button {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.nav-a4c-article .wp-block-button__link {
    line-height: 1.2 !important;
}
body:has(article.category-a4c) .nav-a4c-article {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    margin-top: 25px;
}

body:has(article.category-a4c) .nav-a4c-article .wp-block-buttons {
    margin: 0 !important;
    padding: 0 !important;
}
/* ===== PAGE 4718 ===== */

.page-id-4718 .site-header {
    display: none !important;
}

.page-id-4718 #primary {
    width: 100% !important;
    float: none !important;
}

.page-id-4718 #secondary {
    display: none !important;
}

.page-id-4718 .site-content {
    max-width: 100% !important;
}

.page-id-4718 .type-page > .entry-header .entry-title {
    display: none !important;
}

.page-id-4718 .wp-block-cover,
.page-id-4718 .wp-block-image {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.page-id-4718 .sharedaddy,
.page-id-4718 .sd-sharing-enabled,
.page-id-4718 .sd-like {
    display: none !important;
}

/* Boutons page 4718 */
.page-id-4718 .wp-block-buttons {
    background: #183b6b;
    padding: 20px 25px;
    margin-top: 0 !important;
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 12px;
}

.page-id-4718 .wp-block-button__link {
    background: #ffffff !important;
    color: #183b6b !important;
    border-radius: 25px !important;
    font-weight: bold;
    padding: 10px 18px !important;
}

.page-id-4718 .petition-btn .wp-block-button__link {
    background: #d62828 !important;
    color: white !important;
}

/* Mobile */
@media (max-width: 768px) {

    .page-id-4718 .wp-block-cover {
        min-height: 320px !important;
    }

    .page-id-4718 .wp-block-cover h1,
    .page-id-4718 .wp-block-cover h2 {
        font-size: 34px !important;
        line-height: 1.2 !important;
    }

    .page-id-4718 .wp-block-cover p {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    .page-id-4718 .wp-block-buttons {
        padding: 15px;
        gap: 10px;
    }

    .page-id-4718 .wp-block-button {
        width: 100%;
        max-width: 240px !important;
        margin: 5px auto !important;
    }

    .page-id-4718 .wp-block-button__link {
        width: 100%;
        text-align: center;
        font-size: 20px !important;
        padding: 8px 16px !important;
    }
.page-id-4718 .wp-block-latest-posts.is-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 25px;
}

.page-id-4718 .wp-block-latest-posts.is-grid li {
    background: #ffffff;
    border: 1px solid #e1e6ef;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.page-id-4718 .wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.page-id-4718 .wp-block-latest-posts__post-title {
    font-weight: bold;
    min-height: auto !important;
    margin-top: 10px;
}

.page-id-4718 .wp-block-latest-posts__post-excerpt {
    font-size: 15px;
    line-height: 1.45;
}

.page-id-4718 .wp-block-latest-posts__post-date {
    margin-top: auto;
    font-size: 13px;
    color: #666;
}

/* Mobile */
@media (max-width: 768px) {
    .page-id-4718 .wp-block-latest-posts.is-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-id-4718 .wp-block-latest-posts__featured-image img {
        height: 200px;
    }
}
/* Bloc titre + extrait = max 7 lignes visuelles */
.page-id-4718 .wp-block-latest-posts__post-full-content {
    min-height: 170px;
    max-height: 170px;
    overflow: hidden;
}

/* Titre */
.page-id-4718 .wp-block-latest-posts__post-title {
    display: block;
    line-height: 1.35;
    margin-bottom: 8px;
}

/* Extrait */
.page-id-4718 .wp-block-latest-posts__post-excerpt {
    line-height: 1.45;
    overflow: hidden;
}
.page-id-4718 .wp-block-latest-posts__post-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}

.page-id-4718 .wp-block-latest-posts__post-excerpt {
    display: -webkit-box !important;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}