/* ========================================
   INFINITE LOGO MARQUEE - PREUVE SOCIALE
   Style Antigravity : Mouvement lent, luxueux
   ======================================== */

/* Conteneur principal du Marquee */
.logo-marquee-section {
    margin: 0;
    /* Espace externe supprimé */
    padding: 20px 0;
    /* Espace interne réduit */
    overflow: hidden;
    position: relative;
    background: var(--he-bg-tertiary);
    /* Ajout d'un fond subtil pour l'effet "card" */
}

/* Masques de dégradé sur les bords - Effet fondu élégant */
.logo-marquee-section::before,
.logo-marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 10;
    pointer-events: none;
}

.logo-marquee-section::before {
    left: 0;
    background: linear-gradient(to right,
            var(--color-bg-light) 0%,
            var(--color-bg-light) 10%,
            transparent 100%);
}

.logo-marquee-section::after {
    right: 0;
    background: linear-gradient(to left,
            var(--color-bg-light) 0%,
            var(--color-bg-light) 10%,
            transparent 100%);
}

/* Container de défilement */
.logo-marquee {
    display: flex;
    width: max-content;
    animation: marqueeScroll 60s linear infinite;
    transition: opacity 0.4s ease;
    opacity: 0.7;
}

/* Pause au survol */
.logo-marquee-section:hover .logo-marquee {
    animation-play-state: paused;
    opacity: 1;
}

/* Groupe de logos (dupliqué pour boucle parfaite) */
.logo-marquee-group {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 40px;
}

/* Style des logos individuels */
.marquee-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    /* Un peu réduit pour éviter trop de vide */
    height: 100px;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.marquee-logo svg {
    width: 100%;
    height: 100%;
    max-width: 140px;
    max-height: 45px;
    fill: #555555;
    transition: all 0.4s ease;
}

/* Hover sur logo individuel */
.marquee-logo:hover {
    filter: grayscale(0%);
}

.marquee-logo:hover svg {
    fill: var(--color-primary);
    transform: scale(1.05);
}

.marquee-label {
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    opacity: 0.6;
    font-weight: 600;
}

/* Animation de défilement infini */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .logo-marquee-section {
        padding: 10px 0;
        /* Espace réduit au minimum */
    }

    .logo-marquee-group {
        gap: 20px;
        /* Plus serré */
        padding: 0 10px;
    }

    .marquee-logo {
        min-width: 100px;
        height: 50px;
    }

    /* Mobile adjustments for images */
    .marquee-logo img {
        height: 40px !important;
    }
}

/* =========================================
   AJUSTEMENTS DE TAILLE DES LOGOS (IMAGES)
   ========================================= */

/* 1. Base pour toutes les images */
.marquee-logo img {
    height: 80px;
    /* Hauteur standard par défaut */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* 2. AJUSTEMENTS INDIVIDUELS 
   Changez la valeur 'height' pour agrandir ou réduire un logo spécifique 
*/

/* Colibris Mau */
img[src*="Colibris"] {
    height: 90px;
}

/* Iscome */
img[src*="Iscome"] {
    height: 80px;
}

/* Commune Zio */
img[src*="Commune_Zio"] {
    height: 90px;
}

/* Ministère Sport (attention à l'accent dans le nom du fichier) */
img[src*="Minitère_sport"] {
    height: 90px;
}

/* Omel */
img[src*="Omel"] {
    height: 50px;
}

/* Ambassade France */
img[src*="AMbassade_France"] {
    height: 85px;
}

/* =========================================
   HOVER EFFECT (Images)
   ========================================= */
.marquee-logo:hover img {
    transform: scale(1.1);
    /* Zoom au survol */
    filter: grayscale(0%);
    /* Retour couleur */
    cursor: pointer;
}

/* ============ MOBILE : COULEUR FORCEE & UX ============ */
@media (max-width: 768px) {

    /* Il faut cibler le conteneur parent qui a le filtre grayscale */
    .marquee-logo {
        filter: grayscale(0%) !important;
        opacity: 1 !important;
    }

    .marquee-logo img {
        filter: none !important;
        /* Plus nécessaire mais on laisse au cas où */
        opacity: 1 !important;
    }

    /* Empêcher la pause au toucher/scroll sur mobile */
    .logo-marquee-section:hover .logo-marquee {
        animation-play-state: running !important;
    }
}