/* CTA Hero */
html body .contact-button.read_more {
    background: #e6aa21;
    width: fit-content;
    color: white;
    margin: 0 auto;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 1.8rem;
    outline: none;
}

html body .contact-button.read_more::before {
    border-color: #FFFFFF;
    color: #FFFFFF;
}


html body .contact-button.read_more:hover::before {
    border-color: #222;
    color: #222;
}

/* Reinsurance block slider */
html body .reinsurance-block {
    border: none;
}

/* Category grid */
html body .categ-grid .content_row_wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

html body .categ-grid .vc_col-sm-4 {
    float: none !important;
    display: flex !important;
    padding: 12px;
    box-sizing: border-box;
}

html body .categ-grid .vc_col-sm-4 > .wpb_wrapper {
    display: flex !important;
    flex: 1;
    flex-direction: column;
    width: 100%;
    gap: 0 !important;
}

html body .categ-grid .box_cat_home,
html body .categ-grid .vc_cta3-container {
    margin: 0 !important;
    padding: 0 !important;
}

html body .categ-grid .vc_general.vc_cta3 {
    margin: 0 !important;
}

html body .categ-grid .box_cat_home.image-content-box {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

html body .categ-grid .vc_cta3-container {
    display: flex;
    flex: 1;
}


html body .categ-grid .featured_image_holder {
    flex-shrink: 0;
}

html body .categ-grid .wpb_wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

html body .box_cat_home.image-content-box,
html body .box_cat_home.image-content-box .featured_image_holder {
    margin-bottom: 0 !important;
}

html body .box_cat_home.image-content-box .featured_image_holder img {
    border-radius: 8px 8px 0 0;
}

/* Posts grid */

html body .blog_list .row::before,
html body .blog_list .row::after,
html body .blog_list .row .col::before,
html body .blog_list .row .col::after {
    display: none !important;
}

html body .blog_list .row {
    display: flex !important;
    flex-wrap: wrap;
    gap: 24px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 24px !important;
}

html body .blog_list .row .col {
    flex: 0 0 100%;
    float: none !important;
    padding: 20px !important;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

html body .blog_list article .featured_media a {
    width: 100% !important;
}

@media (min-width: 640px) {
    html body .blog_list .row .col {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (min-width: 1024px) {
    html body .blog_list .row .col {
        flex: 0 0 calc(33.333% - 16px);
    }
}

html body .blog_list .row .col:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
}

/* Sub categories grid */
html body .sub-categ-grid .content_row_wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

html body .sub-categ-grid .content_row_wrapper > .vc_col-sm-4 {
    float: none !important;
    display: flex !important;
    padding: 12px;
    box-sizing: border-box;
}

html body .sub-categ-grid .content_row_wrapper > .vc_col-sm-4 > .wpb_wrapper {
    display: flex !important;
    width: 100%;
}

html body .sub-categ-grid .sub-categ-card {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

html body .sub-categ-grid .sub-categ-card .wpb_wrapper {
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    height: 100%;
}

html body .sub-categ-card .wpb_wrapper h3 {
    border-color: #E6AA21;
}

html body .sub-categ-card .wpb_wrapper h3 a {
    text-decoration: none;
    color: #E6AA21;
    font-weight: 500;
}

.ban_home .text-holder .heading a {
    color: #ffffff;
}

.box_cat_home .text-holder h3 {
    font-size: 25px;
    font-weight: 300;
    color: rgb(230, 170, 33);
    border-left: none !important;
    padding-left: 0;
    margin-top: 12px;
}
/* Products grid */
html body .products-grid .content_row_wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

html body .products-grid .vc_col-sm-2 {
    float: none !important;
    display: flex !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    padding: 8px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    html body .products-grid .vc_col-sm-2 {
        flex: 0 0 33.333% !important;
        width: 33.333% !important;
    }
}

@media (min-width: 1024px) {
    html body .products-grid .vc_col-sm-2 {
        flex: 0 0 16.666% !important;
        width: 16.666% !important;
    }
}

html body .products-grid .vc_col-sm-2 > .wpb_wrapper {
    display: flex !important;
    width: 100%;
}

html body .products-grid .product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

html body .products-grid .product-card .featured_image_holder {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
}

html body .products-grid .product-card .featured_image_holder a {
    display: block;
    width: 100%;
    height: 100%;
}

html body .products-grid .product-card .featured_image_holder img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
    display: block;
    margin: 0 auto;
}

/* Lien couvrant toute la carte */
html body .products-grid .product-card .featured_image_holder a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

html body .products-grid .product-card .text-holder {
    position: relative;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

html body .products-grid .product-card .text-holder p {
    margin-top: auto;
    margin-bottom: 0;
}

html body .products-grid .product-card:hover .text-holder h4,
html body .products-grid .product-card:hover .text-holder p {
    color: #E6AA21;
    transition: color 0.2s ease;
}
