/* CRECIB - Elargissement et centrage */

@media screen and (min-width: 1000px) {

    .site {
        width: 96% !important;
        max-width: 1500px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.page .site-content {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }

    body.page .content-wrapper {
        width: 92% !important;
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 35px !important;
        padding-right: 35px !important;
        box-sizing: border-box;
    }

    body.page .content-wrapper.full-width .content-area,
    body.page:not(:has(.sidebar-widget-area)) .content-area {
        width: 100% !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
        box-sizing: border-box;
    }

    body.page .entry-content {
        width: 100% !important;
        max-width: none !important;
    }

    body.page .post-thumbnail {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.page .post-thumbnail img {
        width: 100% !important;
        height: auto !important;
    }
}

/* Adaptation des tableaux */

.wp-block-table {
    max-width: 100%;
    overflow-x: auto;
}
/* CRECIB - Bannière sur toute la largeur */

body.page .hero,
body.page .entry-thumbnail {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

body.page .hero .entry-thumbnail img,
body.page .entry-thumbnail img.wp-post-image {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    object-fit: cover;
}
/* CRECIB - Harmonisation des pages */

/* Suppression de la colonne latérale */

body.page .sidebar-widget-area {
    display: none !important;
}

/* Elargissement et centrage du contenu */

body.page .content-wrapper .content-area {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

body.page .entry-content,
body.page .entry-header {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}