/* ==========================================================
   MARIUS - ARTICLES ASSOCIÉS SUR FICHE PRODUIT
   Carrousel Marius - sans Slick
   ========================================================== */

/* ==========================================================
   ESPACEMENT DU BLOC
   ========================================================== */

.page-product
.ybc-blog-related-posts.marius-related-blog {
    margin: 2em 0 2rem !important;
}


/* ==========================================================
   CONTENEUR GLOBAL
   ========================================================== */

.page-product
.ybc-blog-related-posts.marius-related-blog {
    position: relative;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 2em 0 2rem !important;
    padding: 0 !important;

    float: none !important;
}


/* ==========================================================
   TITRE STYLE ONGLET
   ========================================================== */

.page-product
.ybc-blog-related-posts.marius-related-blog::before {
    content: "";

    position: absolute;

    top: 35px;
    left: 0;
    right: 0;

    height: 1px;

    background: #5f8e2f;

    z-index: 0;
}


.page-product
.ybc-blog-related-posts
.marius-related-blog__title {
    position: relative;
    z-index: 1;

    display: table !important;

    width: auto !important;

    margin: 0 !important;
    padding: 8px 18px !important;

    font-family: "Montserrat", sans-serif;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    letter-spacing: .15px;

    text-transform: uppercase;
    white-space: nowrap;

    color: #fff !important;

    background:
        linear-gradient(
            to bottom,
            #6fb828 0%,
            #5f8e2f 100%
        ) !important;

    border: 1px solid #5f862f !important;
    border-bottom: 0 !important;
    border-radius: 5px 5px 0 0 !important;

    box-shadow:
        0 0 4px rgba(0, 0, 0, .27) !important;

    float: none !important;
}


.page-product
.ybc-blog-related-posts
.marius-related-blog__title::after {
    content: none !important;
}


/* ==========================================================
   WRAPPER CARROUSEL
   ========================================================== */

.page-product
.ybc-blog-related-posts
.ybc-blog-related-posts-wrapper.marius-related-blog__wrapper {
    position: relative;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;

    background: #fff;

    border-top: 1px solid #5f8e2f;
    border-right: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    border-left: 1px solid #ebebeb;

    border-radius: 0 0 5px 5px;

    overflow: hidden !important;

    box-sizing: border-box;
}


/* ==========================================================
   PISTE HORIZONTALE MARIUS
   Neutralise complètement la grille YBC
   ========================================================== */

.page-product
.ybc-blog-related-posts
.marius-accessories-slider
> .ybc-blog-related-posts-list.marius-related-blog__list {
    position: relative;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;

    gap: 16px !important;

    width: 100% !important;
    max-width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 12px 12px 22px !important;

    float: none !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    scroll-behavior: smooth;

    overscroll-behavior-x: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    box-sizing: border-box;
}


.page-product
.ybc-blog-related-posts
.marius-accessories-slider
> .marius-related-blog__list::before,
.page-product
.ybc-blog-related-posts
.marius-accessories-slider
> .marius-related-blog__list::after {
    content: none !important;

    display: none !important;
}


.page-product
.ybc-blog-related-posts
.marius-accessories-slider
> .marius-related-blog__list::-webkit-scrollbar {
    display: none;
}


/* ==========================================================
   CARTES - DESKTOP : 3 ARTICLES
   ========================================================== */

.page-product
.ybc-blog-related-posts
.marius-accessories-slider
> .marius-related-blog__list
> .marius-related-blog__item {
    position: relative;

    display: flex !important;
    flex-direction: column !important;

    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: calc((100% - 32px) / 3) !important;

    width: calc((100% - 32px) / 3) !important;
    max-width: calc((100% - 32px) / 3) !important;
    min-width: 0 !important;

    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;

    clear: none !important;

    overflow: hidden;

    background: #fff !important;

    border: 1px solid #e1e5e8 !important;
    border-radius: 5px !important;

    box-shadow: none !important;

    scroll-snap-align: start;

    box-sizing: border-box;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


/* ==========================================================
   HOVER CARTE
   ========================================================== */

@media (hover: hover) and (pointer: fine) {

    .page-product
    .ybc-blog-related-posts
    .marius-accessories-slider
    > .marius-related-blog__list
    > .marius-related-blog__item:hover {
        transform: translateY(-6px);

        box-shadow:
            0 10px 22px -4px
            rgba(0, 0, 0, .18) !important;
    }

}


/* ==========================================================
   IMAGE
   ========================================================== */

.page-product
.ybc-blog-related-posts
.marius-related-blog__image-link {
    position: relative;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;

    overflow: hidden;

    background: #fff;

    text-decoration: none !important;
}


.page-product
.ybc-blog-related-posts
.marius-related-blog__image {
    position: relative;

    display: block;

    width: 100% !important;
    max-width: 100% !important;

    aspect-ratio: 16 / 9;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

    background: #f7f7f7;
}


.page-product
.ybc-blog-related-posts
.marius-related-blog__image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;

    transform: none !important;
    transition: none !important;
}


/* ==========================================================
   BADGE ARTICLE DE BLOG
   ========================================================== */

.page-product
.ybc-blog-related-posts
.marius-related-blog__flags {
    position: absolute;

    top: 6px;
    left: 6px;
    z-index: 2;

    margin: 0 !important;
    padding: 0 !important;
}

/* MOBILE - MEME TAILLE QUE RADIO */

@media (max-width: 767px) {
    .page-product
	.ybc-blog-related-posts
	.marius-related-blog__flags {
		top: 6px;
		left: 6px;
    }
}

@media (max-width: 389.98px) {
    .page-product
	.ybc-blog-related-posts
	.marius-related-blog__flags {
		top: 6px;
		left: 6px;
    }
}

/* ==========================================================
   CONTENU ARTICLE
   ========================================================== */

.page-product
.ybc-blog-related-posts
.marius-related-blog__content {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;

    width: 100% !important;
    max-width: 100% !important;

    min-width: 0;

    margin: 0 !important;
    padding: 14px 12px 15px;

    box-sizing: border-box;
}


/* ==========================================================
   TITRE ARTICLE
   ========================================================== */

.page-product
.ybc-blog-related-posts
.marius-related-blog__post-title {
    width: 100%;

    margin: 0 0 10px !important;
    padding: 0 !important;

    font-family: "Montserrat", sans-serif;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;

    text-transform: uppercase;
}


.page-product
.ybc-blog-related-posts
.marius-related-blog__post-title a {
    color: #222 !important;

    text-decoration: none !important;
}


.page-product
.ybc-blog-related-posts
.marius-related-blog__post-title a:hover {
    color: #5f8e2f !important;
}


/* ==========================================================
   CATÉGORIES + DATE
   ========================================================== */

.page-product
.ybc-blog-related-posts
.ybc-blog-sidear-post-meta {
    margin: 0 0 8px;

    color: #777;

    font-size: 11px;
    line-height: 1.4;
}


.page-product
.ybc-blog-related-posts
.ybc-blog-sidear-post-meta a {
    color: #666;

    text-decoration: none;
}


.page-product
.ybc-blog-related-posts
.ybc-blog-sidear-post-meta a:hover {
    color: #5f8e2f;
}


/* ==========================================================
   VUES / LIKES / COMMENTAIRES
   ========================================================== */

.page-product
.ybc-blog-related-posts
.ybc-blog-latest-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 5px 12px;

    margin: 0 0 8px;
    padding: 0;

    color: #777;

    font-size: 11px;
    line-height: 1.3;
}


.page-product
.ybc-blog-related-posts
.ybc-blog-latest-toolbar span {
    margin: 0;
}


.page-product
.ybc-blog-related-posts
.ybc-blog-latest-toolbar .ets_svg {
    display: inline-flex;
    align-items: center;

    margin-right: 3px;
}


.page-product
.ybc-blog-related-posts
.ybc-blog-latest-toolbar svg {
    width: 13px;
    height: 13px;
}


/* ==========================================================
   DESCRIPTION
   ========================================================== */

.page-product
.ybc-blog-related-posts
.blog_description {
    margin: 0 0 12px;

    color: #666;

    font-size: 11px;
    line-height: 1.5;
}


/* ==========================================================
   BOUTON LIRE LA SUITE
   ========================================================== */

.page-product
.ybc-blog-related-posts
.read_more {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;

    align-self: flex-start;

    margin-top: 12px;
    padding: 7px 14px;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;

    color: #fff !important;

    background:
        linear-gradient(
            to bottom,
            #6fb828 0%,
            #5f8e2f 100%
        );

    border: 1px solid #5f862f;
    border-radius: 5px;

    text-decoration: none !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.page-product
.ybc-blog-related-posts
.read_more:hover,
.page-product
.ybc-blog-related-posts
.read_more:focus {
    color: #fff !important;

    background: #5f8e2f !important;
    background-image: none !important;

    border-color: #527b29;

    text-decoration: none !important;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, .15);
}


/* ==========================================================
   FLÈCHES CARROUSEL MARIUS
   ========================================================== */

.page-product
.ybc-blog-related-posts
.marius-accessories-prev,
.page-product
.ybc-blog-related-posts
.marius-accessories-next {
    position: absolute;

    top: 50%;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;

    transform: translateY(-50%);

    color: #212529;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 50%;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, .12);
}


.page-product
.ybc-blog-related-posts
.marius-accessories-prev {
    left: 12px;
}


.page-product
.ybc-blog-related-posts
.marius-accessories-next {
    right: 12px;
}


.page-product
.ybc-blog-related-posts
.marius-accessories-prev:hover,
.page-product
.ybc-blog-related-posts
.marius-accessories-next:hover {
    background: #f5f5f5;
}


/* ==========================================================
   TABLETTE : 2 ARTICLES
   ========================================================== */

@media (max-width: 991.98px) {

    .page-product
    .ybc-blog-related-posts
    .marius-accessories-slider
    > .marius-related-blog__list
    > .marius-related-blog__item {
        flex-basis:
            calc((100% - 16px) / 2) !important;

        width:
            calc((100% - 16px) / 2) !important;

        max-width:
            calc((100% - 16px) / 2) !important;
    }

}


/* ==========================================================
   MOBILE
   Une grande carte + aperçu de la suivante
   ========================================================== */

@media (max-width: 575.98px) {

    .page-product
    .ybc-blog-related-posts
    .marius-accessories-slider
    > .marius-related-blog__list {
        padding:
            12px
            8px
            18px !important;

        scroll-padding-inline: 8px;
    }


    .page-product
    .ybc-blog-related-posts
    .marius-accessories-slider
    > .marius-related-blog__list
    > .marius-related-blog__item {
        flex-basis: 85% !important;

        width: 85% !important;
        max-width: 85% !important;
    }


    .page-product
    .ybc-blog-related-posts
    .marius-related-blog__content {
        padding: 12px 10px 14px;
    }


    .page-product
    .ybc-blog-related-posts
    .marius-related-blog__post-title {
        font-size: 13px !important;
    }


    /*
     * Navigation tactile sur mobile.
     */

    .page-product
    .ybc-blog-related-posts
    .marius-accessories-prev,
    .page-product
    .ybc-blog-related-posts
    .marius-accessories-next {
        display: none !important;
    }

}