/* ========================================
   PRODUCT CAROUSEL STYLES
   ======================================== */

/* Container */
.carousel-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.mt8 {
    margin-top: 8rem;
}

/* Swiper Container */
.swiper-container {
    width: 100%;
    overflow: visible;
}

.products-coll-wrapper {
    overflow: visible;
}

.products-coll-list {
    display: flex;
}

/* Smooth loop transition with custom easing curve */
.swiper-wrapper.tr-anim {
    transition-timing-function: cubic-bezier(0.695, 0, 0.195, 0.99) !important;
}

/* Product Slide */
.products-coll-item {
    width: 30rem;
    flex: none;
    margin-right: 2rem;
}

.products-coll-item.swiper-slide {
    min-width: 28vw;
}

/* Product Packaging */
.product-packaging-wrap {
    cursor: pointer;
    padding-bottom: 122%;
    position: relative;
    overflow: hidden;
}

/* Images - CRUCIAL: L'ordre et les propriétés exactes */
.img-abs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image de fond (toujours visible en dessous) */
.img-abs.product-thumb {
    z-index: 1;
    object-fit: cover;
}

/* Image du premier plan (disparaît au hover) */
.img-abs.product-pack {
    z-index: 10;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.25s, transform 0.5s;
}

/* ANIMATION HOVER PRINCIPALE - L'image du dessus disparaît */
.product-packaging-wrap:hover .product-pack:not(.is-popup) {
    opacity: 0;
    transform: scale(1.05);
}

.img-abs.product-pack.is-popup {
    opacity: 0;
}

/* Image Masks positioning */
.img-mask-wrap {
    z-index: 15;
    color: #FFFBE3;
    position: absolute;
    top: 0%;
    bottom: 0%;
    left: 0%;
    right: 0%;
    pointer-events: none;
}

.img-mask-wrap.is-green {
    color: #329B98;
}

.mask-svg {
    width: 5rem;
    margin-top: -2px;
    margin-right: -2px;
    display: flex;
    position: absolute;
    top: 0%;
    bottom: auto;
    left: auto;
    right: 0%;
}

.mask-svg.is-botton {
    margin: 0 0 -1px -1px;
    top: auto;
    bottom: 0%;
    left: 0%;
    right: auto;
}

.mask-svg.is-smaller {
    width: 4rem;
}

/* Product Text */
.products-coll-item .product-txt-wrap-mt2 {
    margin-top: 2rem;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
    display: block;
    width: 100%;
}

.products-coll-item .product-title-fs4 {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

.products-coll-item .rt-products {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.products-coll-item .rt-products p {
    margin: 0;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

.products-coll-item .product-excerpt-fss-is-ext-mt1 {
    margin-top: 1rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.8;
    text-align: left !important;
}

.products-coll-item .is-product-p {
    max-width: 400px;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

/* Button Styles - Laissons le CSS Webflow gérer les styles de base */

/* Swiper Pagination */
.swiper-pagination {
    position: relative;
    margin-top: 2rem;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #000;
    opacity: 0.3;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #000;
}

/* Responsive - Tablet only (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* IMPORTANT: Garder le layout horizontal pour que Swiper fonctionne sur tablette */
    .products-coll-list {
        flex-direction: row !important;
        grid-column-gap: 0 !important;
        grid-row-gap: 0 !important;
    }

    /* Adapter la taille des items pour tablette */
    .products-coll-item {
        width: clamp(12rem, 28vw, 17rem) !important;
        flex: none !important;
        margin: 0 1rem !important;
    }

    .products-coll-item.swiper-slide {
        min-width: 26vw;
    }

    /* Garder les flèches de navigation visibles sur tablette */
    .products-arrow {
        display: flex !important;
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* Responsive - Tablet et mobile (max 991px) */
@media (max-width: 991px) {
    .mask-svg {
        width: 4rem;
    }

    .mt8 {
        margin-top: 4rem;
    }

    .product-title-fs4 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .mask-svg {
        width: 3rem;
    }

    .mask-svg.is-smaller {
        width: 2.5rem;
    }

    .mt8 {
        margin-top: 3rem;
    }

    .product-title-fs4 {
        font-size: 1.75rem;
    }

    .carousel-container {
        padding: 1rem 0;
    }

    /* Mobile: layout vertical statique (pas de carousel) */
    .products-coll-list {
        flex-direction: column;
        grid-column-gap: 4rem;
        grid-row-gap: 4rem;
    }

    .products-coll-item {
        width: 100% !important;
        flex: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Mobile: Centrer les slides comme le hero */
    .swiper-container {
        margin: 0 auto;
        padding: 0;
    }

    /* Centrer le wrapper swiper en mobile */
    .swiper-wrapper {
        margin: 0 auto;
    }

    /* Centrer chaque slide individuellement */
    .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    /* Garder l'alignement à gauche du texte DANS la slide */
    .products-coll-item .product-txt-wrap-mt2 {
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 479px) {
    .mask-svg {
        width: 2rem;
    }

    .product-title-fs4 {
        font-size: 1.5rem;
    }
}

/* ========================================
   NAVIGATION ARROW BUTTONS
   ======================================== */

.products-arrow {
    position: absolute;
    top: 37%;
    transform: translateY(-50%);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    border: none;
    background: #FFFBE3;
    color: #FF4A16;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    z-index: 35;
}

.products-arrow svg {
    width: 1.8rem;
    height: 1.8rem;
    pointer-events: none;
}

.products-arrow.is-prev {
    left: 5%;
}

.products-arrow.is-next {
    right: 5%;
}

.products-arrow:is(:hover,:focus-visible) {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 18px 32px rgba(20, 18, 12, 0.26);
    background: #fff7d1;
}

/* CRITICAL: Focus outline for accessibility */
.products-arrow:focus-visible {
    outline: 2px solid rgba(255, 83, 22, 0.45);
    outline-offset: 2px;
}

.products-arrow:disabled {
    opacity: 0.35;
    pointer-events: none;
}

@media screen and (max-width: 1280px) {
    .products-arrow {
        width: 4rem;
        height: 4rem;
    }
}

@media screen and (max-width: 767px) {
    .products-arrow {
        display: none;
    }
}

/* ========================================
   PRODUCT CARD OVERLAY BUTTONS
   ======================================== */

/* Style du bouton DÉCOUVRIR dans les cartes */
.products-coll-item .product-card-overlay .button {
    background: #FFFBE3;
    color: #333;
    border-radius: 25px;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-coll-item.is-focused .product-card-overlay .button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Rendre le bouton cliquable sur la carte centrale */
.products-coll-item.is-focused .product-card-overlay .button {
    pointer-events: all !important;
}

/* Remove default button outline on focus (we handle it with box-shadow) */
.button:focus {
    outline: none;
}

/* Add custom focus style for better accessibility */
.button:focus-visible {
    outline: 2px solid rgba(255, 83, 22, 0.45);
    outline-offset: 2px;
}
