/* Conteneur des logos */
.logos-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 30px 0;
}

/* Piste des logos */
.logos-track {
    display: flex;
    gap: 80px;
    animation: scroll 90s linear infinite;
    padding: 30px 50px;
    width: max-content;
}

/* Conteneur de chaque logo */
.logo-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Images des logos */
.logo-item img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

/* Tooltip */
.logo-item::before {
    content: attr(data-name);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.logo-item::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.logo-item:hover::before,
.logo-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Effets au survol */
.logo-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.logo-item:hover {
    transform: translateY(-5px);
}

/* Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

/* Pause au survol de la piste */
.logos-track:hover {
    animation-play-state: paused;
}

/* Modal pour le zoom */
.logo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -10px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ff6b6b;
}

#modal-name {
    color: white;
    font-size: 20px;
    margin-top: 20px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .logos-track {
        gap: 60px;
    }
    
    .logo-item img {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .logos-track {
        gap: 40px;
        animation-duration: 120s;
        padding: 25px 40px;
    }
    
    .logo-item img {
        height: 60px;
    }
    
    .logo-item::before {
        font-size: 12px;
        padding: 6px 10px;
        bottom: -35px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    #modal-name {
        font-size: 18px;
    }
}