/**
 * Categorie Carousel - Styles principaux (pro, minimal, compatible Swiper & Divi)
 * Par Les Colleurs de Plastik - Dev Senior
 */

/* Container principal */
.ccwc-category-carousel {
    margin: 0 auto 48px auto;
    max-width: 1280px;
    padding-left: 54px;
    padding-right: 54px;
    position: relative;
    background: none;
    box-sizing: border-box;
}

/* Swiper root */
.ccwc-swiper {
    width: 100%;
    padding-bottom: 48px;
    box-sizing: border-box;
    position: relative;
    background: none;
    overflow: hidden;
}

/* Slide (carte) */
.ccwc-slide {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Lien carte */
.ccwc-slide-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    color: #1A1A1A;
}

/* Image wrapper */
.ccwc-slide-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1; /* carré */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f8;
    margin: 0 auto 16px auto;
    box-sizing: border-box;
}

/* Image de la catégorie */
.ccwc-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: transform 0.15s;
}

/* Hover effet image (zoom léger) */
.ccwc-slide-link:hover .ccwc-slide-img,
.ccwc-slide-link:focus .ccwc-slide-img {
    transform: scale(1.035);
}

/* Titre H3 */
.ccwc-slide-title {
    display: block;
    text-align: center;
    font-family: 'StardosStencil-Bold', Helvetica, Arial, Lucida, sans-serif;
    font-size: 24px !important;
    font-weight: 700;
    color: #4F82C7;
    margin: 0 auto;
    padding: 0;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* Swiper arrows */
.ccwc-swiper-prev,
.ccwc-swiper-next {
    background: #4F82C7;
    color: #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    box-shadow: 0 1px 6px 0 rgba(79,130,199,0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 42%;
    cursor: pointer;
    transition: background 0.14s;
    z-index: 10;
    border: none;
}

.ccwc-swiper-prev:hover,
.ccwc-swiper-next:hover {
    background: #37609a !important;
}

.ccwc-swiper-prev { left: 0; }
.ccwc-swiper-next { right: 0; }
.ccwc-swiper-prev:hover,
.ccwc-swiper-next:hover,
.ccwc-swiper-prev:focus,
.ccwc-swiper-next:focus {
    background: #EFF4FB;
    outline: none;
}

/* Swiper pagination dots */
.ccwc-swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0; 
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #AAB0B1;
    opacity: 1;
    margin: 0 3px;
    transition: background 0.2s;
}
.swiper-pagination-bullet-active,
.ccwc-swiper-dot-active {
    background: #4F82C7 !important;
}

/* Swiper base styles fix */
.ccwc-swiper .swiper-wrapper {
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.ccwc-swiper .swiper-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Responsive */
@media (max-width: 1024px) {
    .ccwc-category-carousel {
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }
    .ccwc-slide-title { font-size: 19px; }
    .ccwc-swiper-prev { left: 4px; }
    .ccwc-swiper-next { right: 4px; }
}
@media (max-width: 700px) {
    .ccwc-category-carousel {
        padding-left: 0;
        padding-right: 0;
    }
    .ccwc-slide-img-wrap { aspect-ratio: 1 / 1; }
    .ccwc-slide-title { font-size: 16px; }
    .ccwc-swiper-prev, .ccwc-swiper-next { width: 32px; height: 32px; }
    .ccwc-swiper-prev { left: 4px; }
    .ccwc-swiper-next { right: 4px; }
}
@media (max-width: 430px) {
    .ccwc-slide-title { font-size: 13px; }
}

.ccwc-slide-img {
  box-shadow: 0 4px 12px 0 rgba(0,0,0,0.25);
}

.ccwc-category-carousel,
.et_pb_column,
.et_pb_module,
.et_pb_row,
body {
    overflow: visible !important;
}
.ccwc-swiper-prev,
.ccwc-swiper-next {
    z-index: 99 !important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 12px !important;
}