/* Section logos d'entreprises - Style ultra moderne avec défilement infini */
.logos-section {
    position: relative;
    padding: 20px 0 20px 0; /* Réduction du padding top et bottom */
    overflow: hidden;
    background-color: #FFFFFF; /* Assurer un fond blanc */
    z-index: 2;
    margin-top: -20px; /* Rapproche davantage de la section vidéo */
}

.logos-section:before {
    content: "";
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
    z-index: 2;
}

.logos-headline {
    text-align: center;
    margin-bottom: 15px; /* Réduction de l'espace */
    position: relative;
}

.logos-headline h3 {
    font-family: 'Rubik', sans-serif; /* Utilisation explicite de Rubik pour les titres */
    font-weight: 600;
    font-size: 1.5rem;
    color: #000B10; /* Noir comme demandé */
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

/* Suppression de la ligne sous le titre */
.logos-headline h3:after {
    display: none;
}

/* Conteneur principal du slider */
.logos-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* Créer un effet d'ombre sur les côtés pour suggérer la continuité */
.logos-slider-container:before,
.logos-slider-container:after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logos-slider-container:before {
    left: 0;
    background: linear-gradient(to right, #FFFFFF, rgba(255, 255, 255, 0));
}

.logos-slider-container:after {
    right: 0;
    background: linear-gradient(to left, #FFFFFF, rgba(255, 255, 255, 0));
}

/* Slider infiniment défilant */
.logos-slider {
    display: flex;
    animation: scrollX 40s linear infinite;
    width: max-content;
}

.logos-slider:hover {
    animation-play-state: paused;
}

@keyframes scrollX {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-120px * 16)); /* Largeur d'un élément * nombre de logos (16) */
    }
}

/* Chaque élément logo */
.logo-item {
    flex: 0 0 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 30px;
}

/* Style subtil de focus au survol */
.logo-item:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, rgba(124, 137, 255, 0), #7C89FF, rgba(124, 137, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-item:hover:after {
    opacity: 1;
}

/* Styles pour les logos */
.logo-svg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.logo-img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(0.5) brightness(0.8);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-item:hover .logo-img {
    filter: grayscale(0) contrast(1) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

/* Suppression de la ligne décorative sous le carrousel */
.slider-decoration {
    display: none;
}

/* Suppression des bulles décoratives */
.slider-bubble {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .logos-section {
        padding: 30px 0;
    }
    
    .logo-item {
        flex: 0 0 150px;
        margin: 0 30px;
    }
    
    .logos-slider-container:before,
    .logos-slider-container:after {
        width: 60px;
    }
    
    @keyframes scrollX {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 16)); /* Ajusté pour 16 logos en mobile */
        }
    }
}
