/* Styles pour le slider de logos d'entreprises */

.logos-section {
    padding: 2rem 0;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.logos-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.logos-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

@media (max-width: 768px) {
    .logos-slider-container {
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
}

@media (max-width: 480px) {
    .logos-slider-container {
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }
}

.logos-slider {
    display: flex;
    width: fit-content;
    animation: slide 40s linear infinite;
}

.logos-slider.slider-2 {
    animation-direction: reverse;
    margin-top: 1.5rem; /* Espace entre les deux lignes de logos */
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2.5rem; /* Espace entre les logos */
    flex-shrink: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .logo-item {
        padding: 0 1.5rem; /* Espace réduit entre les logos sur mobile */
    }
}

@media (max-width: 480px) {
    .logo-item {
        padding: 0 1rem; /* Espace encore plus réduit sur très petits écrans */
    }
}

.logo-item img {
    max-height: 40px; /* Hauteur maximale pour les logos */
    max-width: 160px; /* Largeur maximale */
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .logo-item img {
        max-height: 35px; /* Logos légèrement plus petits sur mobile */
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .logo-item img {
        max-height: 30px; /* Logos encore plus petits sur très petits écrans */
        max-width: 100px;
    }
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Animation du défilement */
@keyframes slide {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%); /* Défilement de la moitié de la largeur totale */
    }
}

/* Ligne décorative */
.decorative-line {
    width: 80%;
    max-width: 1200px;
    height: 1px;
    background-color: #eee;
    margin: 2.5rem auto 0;
}
/* Styles additionnels pour mobile */
@media (max-width: 768px) {
    .logos-title {
        font-size: 0.8rem;
        margin-bottom: var(--spacing-sm);
    }
}
