/**
 * Dynamiz Theme Slider Brands Module Styles
 * @author Dynamiz
 */

/* Container principal */
.dynamizthemesliderbrands-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
}

/* Titre */
.slider-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

/* Slider de marques */
.brands-slider {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Item de marque */
.brand-item {
    flex: 0 0 auto;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

/* Lien */
.brand-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-5px);
}

/* Cercle de la marque */
.brand-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #1a3a52;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.brand-link:hover .brand-circle {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Logo */
.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Version restreinte : masquer Cofran */
.dynamizthemesliderbrands-container[data-user-category="restricted"] .brand-item-conditional {
    display: none;
}

/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */
@media (min-width: 769px) {
    .slider-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
    
    .brands-slider {
        gap: 50px;
    }
    
    .brand-circle {
        width: 200px;
        height: 200px;
    }
}

/* ========================================
   RESPONSIVE - TABLETTES
   ======================================== */
@media (min-width: 481px) and (max-width: 768px) {
    .brands-slider {
        gap: 40px;
    }
    
    .brand-circle {
        width: 200px;
        height: 200px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 480px) {
    .slider-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .brands-slider {
        gap: 20px;
    }
    
    .brand-circle {
        width: 100px;
        height: 100px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délai d'animation pour chaque item */
.brand-item:nth-child(1) { animation-delay: 0.1s; }
.brand-item:nth-child(2) { animation-delay: 0.2s; }
.brand-item:nth-child(3) { animation-delay: 0.3s; }
.brand-item:nth-child(4) { animation-delay: 0.4s; }
.brand-item:nth-child(5) { animation-delay: 0.5s; }
