/* ==========================================
   4. SERVICES - DARK CAROUSEL STYLES
   ========================================== */

.cst-service-dark-area {
    background-color: #0d0d0d;
    color: #ffffff;
    overflow: hidden;
}

/* En-tête de section */ 
.service-pill {
    border: 1px solid #a1c346;
    border-radius: 40px;
    padding: 14px 40px;
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    color: #a1c346;
    padding-bottom: 12px;
    margin-bottom: 10px;
}

.cst-service-dark-area .section-title-accent {
    line-height: 1.2;
    color: #d4f25e;
}

.cst-service-dark-area .section-title-accent span {
    color: #ffffff;
}

/* Carrousel Principal */
.cst-service-dark-area .services-main-swiper {
    overflow: visible;
    position: relative;
}

.cst-service-dark-area .services-main-swiper .swiper-slide {
    width: 85%;
    max-width: 800px;
    margin-right: 40px;
}

/* Cartes de Services */
.cst-service-dark-area .service-card-dark {
    background-color: #1a1a1a;
    border-radius: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cst-service-dark-area .service-card-title {
    max-width: 70%;
    line-height: 1.2;
    color: #ffffff;
}

.cst-service-dark-area .service-icon-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cst-service-dark-area .service-icon-wrapper img {
    width: 24px;
}

/* Mini Carrousel Interne */
.cst-service-dark-area .nested-image-swiper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.cst-service-dark-area .nested-image-swiper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 16px;
}

/* Pagination Swiper (Puces) */
#services .swiper-pagination-bullet {
    background-color: #ffffff;
    opacity: 0.4;
    transition: all 0.3s ease;
}

#services .swiper-pagination-bullet-active {
    background-color: #d4f25e;
    opacity: 1;
    width: 12px;
    height: 12px;
}

#services .nested-image-swiper .swiper-pagination {
    position: unset;
    bottom: 2px;
}

/* Séparateur et Éléments de Bas de Carte */
.cst-service-dark-area .service-card-hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 25px 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.cst-service-dark-area .service-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cst-service-dark-area .service-tag-bullet {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
}

/* Titre de la section avec taille fluide (Responsive) */
.cst-service-dark-area .section-title-accent {
    font-size: clamp(32px, 5vw, 40px);
    line-height: 1.2;
    color: #d4f25e;
}

/* ==========================================
   AJOUT POUR EMPILER LES CARTES SUR MOBILE (CORRIGÉ)
   ========================================== */
@media (max-width: 767px) {
    /* 1. On tue le flexbox du parent pour le forcer en blocs simples */
    .cst-service-dark-area .services-main-swiper > .swiper-wrapper {
        display: block !important;
        transform: none !important;
    }
    
    /* 2. On empile les cartes principales avec une marge en bas */
    .cst-service-dark-area .services-main-swiper > .swiper-wrapper > .swiper-slide {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 30px !important;
    }

    /* 3. On blinde le carrousel ENFANT pour qu'il reste obligatoirement en ligne */
    .cst-service-dark-area .nested-image-swiper .swiper-wrapper {
        display: flex !important;
        flex-direction: row !important;
    }
    
    /* 4. On s'assure que les images ne récupèrent pas la marge du bas */
    .cst-service-dark-area .nested-image-swiper .swiper-slide {
        margin-bottom: 0 !important;
    }

    /* 5. On réduit la taille des titres de cartes et on leur donne plus de place */
    .cst-service-dark-area .service-card-title {
        font-size: 26px !important;
        max-width: 100%;
    }

    /* 6. CORRECTION : On centre le titre en hauteur par rapport à l'icône */
    .cst-service-dark-area .service-card-dark > .d-flex {
        align-items: center !important;
    }
}