/**
 * Styles pour le widget Aratice Clients
 * Slider infini de logos clients avec effet noir et blanc
 */

.aratice-clients-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    display: block;
}

.aratice-clients-row {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    display: block;
}

.aratice-clients-row:last-child {
    margin-bottom: 0;
}

/* Masque les bords pour un effet de fondu */
.aratice-clients-row::before,
.aratice-clients-row::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.aratice-clients-row::before {
    left: 0;
    background: linear-gradient(to right, #163C79 0%, transparent 100%)!important;
}

.aratice-clients-row::after {
    right: 0;
    background: linear-gradient(to left, #163C79 0%, transparent 100%)!important;
}

/* Track qui contient les logos */
.aratice-clients-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
}

/* Animation inversée pour la ligne 2 */
.aratice-clients-track-reverse {
    animation-name: scrollRight !important;
}

/* Pause au hover sur la ligne */
.aratice-clients-row:hover .aratice-clients-track {
    animation-play-state: paused;
}

/* Item logo */
.aratice-client-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 50px;
    transition: transform 0.3s ease;
}

/* Logo */
.aratice-client-logo {
    width: 150px;
    height: 60px;
    object-fit: contain;
    transition: all 0.4s ease;
    display: block;
}

/* Hover sur le logo - styles de base (les filtres sont ajoutés dynamiquement) */
.aratice-client-item:hover .aratice-client-logo {
    transition: all 0.4s ease;
}

/* Animations de défilement */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-33.333%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .aratice-client-logo {
        width: 120px;
        height: 50px;
    }
    
    .aratice-client-item {
        margin: 0 30px;
    }
}

@media (max-width: 768px) {
    .aratice-client-logo {
        width: 100px;
        height: 40px;
    }
    
    .aratice-client-item {
        margin: 0 25px;
    }
    
    .aratice-clients-row {
        margin-bottom: 20px;
    }
    
    /* Animation plus rapide sur mobile */
    .aratice-clients-track {
        animation-duration: 20s;
    }
    
    .aratice-clients-track-reverse {
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .aratice-client-logo {
        width: 80px;
        height: 35px;
    }
    
    .aratice-client-item {
        margin: 0 20px;
    }
}

/* Mode éditeur Elementor */
.elementor-editor-active .aratice-clients-track {
    animation-play-state: paused;
}

.elementor-editor-active .aratice-clients-row:hover .aratice-clients-track {
    animation-play-state: running;
}

