/* --- Structure générale --- */
.bb-product-home-slider {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
}

/* --- Slider item --- */
.pixelio-slider-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin-top: 70px;
    margin-right: 1000px; /* À adapter si besoin */
}

/* --- Slide produit --- */
.product-slide-home {
    position: relative;
    cursor: pointer;
    display: inline-block;
    border-radius: 10px;
    max-width: 250px;
    min-width: 250px;
    height: 325px;
    margin-right: 5%;
    box-shadow: 5px 12px 50px 0 rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 5px 12px 50px 0 rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 5px 12px 50px 0 rgba(0, 0, 0, 0.25);
}

.product-slide-home:last-child {
    margin-right: 0;
}

.product-slide-home:hover {
    transform: scale(1.1);
    transform-origin: center center;
}

/* --- Ligne de produits --- */
.product-home-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 100px;
}

/* --- Image circulaire --- */
.product-home-img-circle {
    margin: auto;
    display: table;
}

.product-home-img-circle-cell {
    display: table-cell;
    vertical-align: middle;
}

.product-home-img-circle img {
    width: 100%;
    max-height: 200px;
    display: block;
    margin: auto;
}

/* --- Titre produit --- */
.product-title-home {
    text-align: center;
    font-size: 2rem;
    padding: 15px;
    margin-top: 5px;
}

/* --- Liens produits --- */
.product-home-permalink {
    text-decoration: none;
    border: none;
    outline: none;
}

.product-home-permalink:hover,
.product-home-permalink:focus,
.product-home-permalink:active,
.product-home-permalink:focus-visible {
    text-decoration: none;
    border: none;
    outline: none;
}

/* --- Bouton "Plus de détails" --- */
.product-home-cta {
    background-color: #ff6600;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -15px;
    margin: 50px auto 0;
    font-size: 1em;
    color: #fff;
    padding: 8px 15px;
    width: 80%;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.product-home-cta:hover,
.product-home-cta:focus {
    background: #bd591e;
    color: #fff;
    text-decoration: none;
    outline: none;
    border: none;
}

/* --- Bouton CTA bleu --- */
.blue-home-cta {
    width: calc(100% - 100px);
    height: 55px;
    line-height: 55px;
    text-align: center;
    display: block;
    font-weight: 700;
    margin: 50px auto auto;
    border-radius: 50px;
    text-transform: uppercase;
    background: #2F57A3;
    color: #fff;
    transition: background 0.3s ease;
}

.blue-home-cta:hover,
.blue-home-cta:focus {
    background: #264785;
    color: #fff;
    text-decoration: none;
}

/* --- Slick Arrows --- */
.bb-product-home-slider .slick-prev,
.bb-product-home-slider .slick-next {
    width: 40px;
    height: 40px;
    z-index: 10;
    background: #df4d08;
    border: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    line-height: 32px;
}

.bb-product-home-slider .slick-prev:hover,
.bb-product-home-slider .slick-next:hover {
    background: #bd591e;
}

.bb-product-home-slider .slick-prev::before,
.bb-product-home-slider .slick-next::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    padding: 5px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
}

.bb-product-home-slider .slick-prev::before {
    margin-right: -5px;
    transform: rotate(135deg);
}

.bb-product-home-slider .slick-next::before {
    margin-left: -5px;
    transform: rotate(-45deg);
}

.bb-product-home-slider .slick-prev {
    left: 0;
}

.bb-product-home-slider .slick-next {
    right: 0;
}

/* --- Slick Dots --- */
.bb-product-home-slider .slick-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: auto;
    padding: 0;
}

.bb-product-home-slider .slick-dots li {
    margin: 0 5px;
}

.bb-product-home-slider .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    transition: background-color 0.3s ease;
}

.bb-product-home-slider .slick-dots li.slick-active button {
    background-color: #EA5A1B;
}

/* --- Responsive --- */
@media screen and (max-width: 1400px) {
    .bb-product-home-slider .product-home-row {
        margin-bottom: 0;
        width: 100%;
        flex-direction: column;
    }

    .bb-product-home-slider .pixelio-slider-item {
        margin: 0;
        width: 100%;
        flex-direction: column;
    }

    .bb-product-home-slider .slick-slide {
        width: 0;
        display: none !important;
    }

    .bb-product-home-slider .slick-current {
        width: 100%;
        display: block !important;
    }

    .pixelio-hero2-button {
        margin: 35px 0;
    }

    .pixelio-hero-wrapper2,
    .pixelio-hero2-cta-btn {
        position: relative !important;
        display: block;
        bottom: 0 !important;
        width: 100% !important;
    }

    .bb-product-home-slider .product-slide-home,
    .product-slide-home-middle {
        margin-right: 0;
        margin-bottom: 50px;
    }
}
