/* ============================================
   CAROUSEL SECTION STYLES
   ============================================ */

.usecase-carousel-wrapper {
    position: relative;
    padding: 0 60px;
    margin: 0 auto;
    max-width: 1400px;
}

.usecase-carousel-container {
    overflow: hidden;
    width: 100%;
}

.usecase-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slides du carrousel */
.usecase-slide {
    flex: 0 0 calc((100% - 60px) / 3); /* 3 slides visibles sur desktop */
    min-width: 300px;
    scroll-snap-align: start;
}

.usecase-slide-content {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.usecase-slide-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 188, 212, 0.25);
}

.usecase-slide-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.usecase-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.usecase-slide-content:hover .usecase-slide-image img {
    transform: scale(1.1);
}

.usecase-slide-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -35px auto 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.usecase-slide-icon i {
    font-size: 2rem;
    color: white;
}

.usecase-slide-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin: 1.5rem 2rem 1rem;
    text-align: center;
}

.usecase-slide-text {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    padding: 0 2rem 2rem;
    text-align: center;
    flex-grow: 1;
}

/* Boutons de navigation */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn:hover {
    background: linear-gradient(135deg, #000, #010102);
    border-color: #00BCD4;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:hover i {
    color: white;
}

.carousel-nav-btn i {
    font-size: 1.5rem;
    color: #2d3748;
    transition: color 0.3s ease;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Points de navigation (dots) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 3rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e9ecef;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: #cbd5e0;
    transform: scale(1.2);
}

.carousel-dot.active {
    background: linear-gradient(135deg, #000, #010102);
    width: 32px;
    border-radius: 6px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablettes */
@media (max-width: 1199px) {
    .usecase-slide {
        flex: 0 0 calc((100% - 30px) / 2); /* 2 slides visibles sur tablette */
    }
}

/* Mobile */
@media (max-width: 767px) {
    .usecase-carousel-wrapper {
        padding: 0 50px;
    }
    
    .usecase-slide {
        flex: 0 0 100%; /* 1 slide visible sur mobile */
        min-width: 100%;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav-btn i {
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: -5px;
    }
    
    .next-btn {
        right: -5px;
    }
    
    .usecase-slide-title {
        font-size: 1.2rem;
    }
    
    .usecase-slide-text {
        font-size: 0.95rem;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .usecase-carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-nav-btn i {
        font-size: 1rem;
    }
    
    .usecase-slide-image {
        height: 200px;
    }
    
    .usecase-slide-icon {
        width: 60px;
        height: 60px;
        margin: -30px auto 0;
    }
    
    .usecase-slide-icon i {
        font-size: 1.6rem;
    }
}

/* Animation d'apparition */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.usecase-slide {
    animation: slideIn 0.6s ease-out;
}

/* Empêcher la sélection de texte lors du drag */
.usecase-carousel-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}