* =========================================================
   CSS additionnel - site principal uniquement
   fpoletti.fr
   ========================================================= */

/* =========================================================
   1. Derniers articles
   ========================================================= */

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

.wp-block-latest-posts__featured-image {
    margin-bottom: 5px !important;
}

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

.wp-block-latest-posts__post-title {
    display: block;
    min-height: 90px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .wp-block-latest-posts__featured-image {
        display: none;
    }
}

/* =========================================================
   2. Sidebar / 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;
}

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

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

#secondary input[type="submit"],
.widget-area input[type="submit"],
#secondary button,
.widget-area button {
    background: #2f2a7c !important;
    color: #ffffff !important;
    border: 0 !important;
    padding: 10px 15px;
}

#secondary input[type="email"],
.widget-area input[type="email"] {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #cfd6e4 !important;
}

@media (min-width: 769px) {
    #secondary {
        margin-top: 37px;
    }
}

/* =========================================================
   3. Page d'accueil
   ========================================================= */

.home .entry-title {
    display: none;
}

.home .entry-content > p:first-of-type {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 500;
}

.home .wp-block-columns,
.home .wp-block-latest-posts.is-grid {
    background: #f8f9fc;
    border-radius: 8px;
}

.home .wp-block-columns {
    padding: 15px 25px !important;
    margin: 30px 0;
}

.home .wp-block-columns img {
    border-radius: 6px;
}

.home .wp-block-latest-posts.is-grid {
    padding: 25px 25px 10px;
    margin-top: 20px;
}

/* =========================================================
   4. Boutons / cartes
   ========================================================= */

.wp-block-button__link {
    border-radius: 25px !important;
    padding: 12px 22px !important;
}

.carte-dossier,
.carte-pauvrete,
.carte-fiscalite {
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.carte-dossier {
    background: #f5f7fa;
}

.carte-pauvrete {
    background: #eef5fb;
}

.carte-fiscalite {
    background: #f8f3e8;
}

.page .entry-thumbnail.apostrophe-2-thumb {
    display: none !important;
}

/* =========================================================
   5. Articles les plus lus
   ========================================================= */

.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;
}

/* =========================================================
   6. Réseaux sociaux
   ========================================================= */

.wp-social-link-x a,
.wp-social-link-facebook a,
.wp-social-link-linkedin a,
.wp-social-link-tiktok a,
.wp-social-link-youtube a {
    background: #ffffff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 50% !important;
}

/* =========================================================
   7. Menu principal
   ========================================================= */

.menu-a4c > a {
    color: #b22234 !important;
    font-weight: 700;
}

/* =========================================================
   8. Pages dossiers / A4C
   ========================================================= */

.page-id-3932 h1.entry-title,
.page-id-5352 h1.entry-title,
.page-id-5300 h1.entry-title,
.page-id-5215 h1.entry-title,
.page-id-4103 h1.entry-title,
.page-id-4159 h1.entry-title {
    display: none !important;
}

.a4c-hero-inner h1 {
    max-width: 330px !important;
}

@media (max-width: 768px) {
    body .a4c-site .a4c-hero .a4c-hero-inner h1 {
        max-width: 220px !important;
    }
}

.page-id-5215 .wpnbha.has-more-button button,
.page-id-5215 .wpnbha.has-more-button .wp-block-button__link,
.fp-articles-propres.has-more-button > button.wp-block-button__link {
    background: #2f3e5c !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: fit-content !important;
    line-height: 1.2 !important;
}

.page-id-5215 .wpnbha.has-more-button button:hover {
    opacity: 0.9;
}

.page-id-5215 .wp-block-image img {
    transition: filter 0.3s ease, transform 0.3s ease;
}

.page-id-5215 .wp-block-image a:hover img {
    filter: brightness(0.82);
    transform: scale(1.015);
}

@media (max-width: 768px) {
    .page-id-5215 .wp-block-newspack-blocks-homepage-articles img {
        max-height: 240px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .page-id-5215 .wp-block-newspack-blocks-homepage-articles article {
        margin-bottom: 28px !important;
    }
}

.page-id-5215 .wp-block-newspack-blocks-homepage-articles .entry-content {
    min-height: 110px !important;
}

/* =========================================================
   9. Bloc articles réutilisable
   ========================================================= */

.fp-articles-propres article {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
}

.fp-articles-propres img {
    display: block;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
}

.fp-articles-propres .entry-meta {
    position: absolute;
    top: 180px;
    left: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.68);
    color: #ffffff !important;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
}

.fp-articles-propres .entry-meta a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.fp-articles-propres .entry-title {
    margin-top: 14px;
    min-height: 96px !important;
}

.fp-articles-propres .entry-content {
    min-height: 96px !important;
}

.page-id-5352 .fp-articles-propres .entry-title {
    min-height: 72px !important;
}

@media (max-width: 768px) {
    .fp-articles-propres .entry-title {
        min-height: auto !important;
        margin-bottom: 10px !important;
    }

    .fp-articles-propres .entry-content {
        min-height: auto !important;
    }
}

/* =========================================================
   10. Partage et likes Jetpack
   ========================================================= */

.page-id-5215 .sharedaddy,
.page-id-5215 .jp-sharing-input-touch,
.page-id-5215 .sd-like,
.page-id-5352 .sharedaddy,
.page-id-5352 .jp-sharing-input-touch,
.page-id-5352 .sd-like,
.page-id-4235 .sharedaddy,
.page-id-4235 .jp-sharing-input-touch,
.page-id-4235 .sd-like,
.page-id-4769 .sharedaddy,
.page-id-4769 .jp-sharing-input-touch,
.page-id-4769 .sd-like,
.page-id-4718 .sharedaddy,
.page-id-4718 .jp-sharing-input-touch,
.page-id-4718 .sd-like,
.page-id-2973 .sharedaddy,
.page-id-2973 .jp-sharing-input-touch,
.page-id-2973 .sd-like {
    display: none !important;
}

/* =========================================================
   11. Cartes observatoire
   ========================================================= */

.carte-observatoire {
    background: #f8f3e8;
    padding: 24px;
    border-radius: 10px;
    margin-top: 20px;
}

.carte-observatoire.carte-bdr {
    background: #eef7f2 !important;
}

.carte-observatoire.carte-regions {
    background: #eef4fa !important;
}

.carte-observatoire + .carte-observatoire {
    margin-top: 30px;
}

.carte-observatoire .wp-block-columns {
    display: flex;
    align-items: flex-start;
    gap: 42px;
    margin-bottom: 0;
}

.carte-observatoire .wp-block-column {
    min-width: 0;
}

.carte-observatoire .wp-block-column:first-child {
    flex-basis: 40% !important;
}

.carte-observatoire .wp-block-column:last-child {
    display: flex;
    flex-basis: 60% !important;
    flex-direction: column;
    max-width: 520px;
    min-height: 380px;
}

.carte-observatoire img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 4px;
}

.carte-observatoire h3 {
    color: #07233b;
    font-size: 22px;
    line-height: 1.25;
    margin: 4px 0 18px;
}

.carte-observatoire p {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 13px;
}

.carte-observatoire .wp-block-button {
    margin-top: auto;
    padding-top: 20px;
}

.carte-observatoire .wp-block-button__link {
    background: #0078b8 !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px !important;
    border-radius: 24px !important;
}

@media (max-width: 768px) {
    .carte-observatoire .wp-block-columns {
        display: block;
    }

    .carte-observatoire .wp-block-column:last-child {
        max-width: none;
        min-height: 0;
    }

    .carte-observatoire img {
        max-width: 100%;
        margin-bottom: 18px;
    }
}
.home .wp-block-latest-posts__featured-image img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 1200 / 630 !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
}