/* =============================================
   Theme: Interactive Services Carousel
   ============================================= */

.services-carousel-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    overflow: hidden; /* Pour le carrousel */
}

.services-carousel-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-carousel-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a202c;
}

.services-carousel-header p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.services-carousel-wrapper {
    position: relative;
}

.services-carousel {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    cursor: grab;
    overflow-x: auto; /* Fallback pour le scroll */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.services-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.service-card-v2 {
    flex: 0 0 320px; /* Largeur fixe pour chaque carte */
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
    text-align: center;
}

.services-carousel.is-dragging .service-card-v2 {
    pointer-events: none;
}

.service-card-v2:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon-v2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.service-title-v2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 1rem;
}

.service-description-v2 {
    color: #4a5568;
    line-height: 1.6;
}

/* --- Navigation Buttons --- */
.carousel-nav {
    text-align: center;
    margin-top: 2rem;
}

.carousel-nav button {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    color: #343a40;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.carousel-nav button:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: scale(1.1);
}

.carousel-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
