/* Styles for partner logo rows */
.partenaires-grid {
    display: flex;
    flex-direction: column;
    margin: 40px auto;
    max-width: 1000px;
}

.row-1, .row-2 {
    display: flex;
    flex-wrap: nowrap;
}

.row-1 {
    justify-content: space-between;
    margin-bottom: 40px;
}

.row-2 {
    justify-content: center;
}

.row-2 .partenaire-item {
    margin: 0 20px;
}

/* Override any grid styles from the main CSS */
@media (max-width: 768px) {
    .row-1, .row-2 {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .partenaire-item {
        margin: 10px;
    }
}

/* Services carousel with guaranteed card visibility */
.services-container {
    position: relative;
    padding: 0 50px;
    margin: 0 auto;
    max-width: 1200px;
    overflow: visible;
}

.services-slider {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 20px 10px;
}

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

.services-grid {
    display: flex;
    gap: 30px;
    padding-left: 15px;  /* Critical: ensures first card is visible */
    padding-right: 15px; /* Balance padding on both sides */
}

/* Service card styling */
.service-card {
    flex: 0 0 auto;
    width: 280px;
    min-width: 280px; /* Force minimum width */
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#first-service {
    margin-left: 0; /* Ensure no extra margin */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Navigation buttons */
.services-nav {
    z-index: 100;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.services-prev {
    left: 0;
}

.services-next {
    right: 0;
}

.services-nav:hover,
.services-nav.active {
    background-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.services-nav.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .services-container {
        padding: 0 40px;
    }
    
    .service-card {
        width: 260px;
        min-width: 260px;
        padding: 20px 15px;
    }
    
    .services-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
