/**
 * Theros Partners Slider - Front CSS
 * Path: modules/therospartnersslider/views/css/front.css
 */

.theros-partners-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.theros-partners-header {
    text-align: left;
    margin-bottom: 50px;
}

.theros-partners-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #008080;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 5px solid #008080;
    line-height: 1.2;
}

.theros-partners-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #666;
    max-width: 100%;
    margin: 0;
    font-weight: 400;
}

.theros-partners-slider-wrapper {
    position: relative;
    margin-top: 60px;
}

.theros-partners-slider {
    margin: 0 -20px;
}

.theros-partner-slide {
    padding: 0 20px;
    outline: none;
}

.theros-partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.theros-partner-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 128, 128, 0.12);
    border-color: rgba(0, 128, 128, 0.1);
}

.theros-partner-logo {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(80%) brightness(1.1);
    opacity: 0.75;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theros-partner-link:hover .theros-partner-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* Slick Slider Customization */
.theros-slider-dots {
    text-align: center;
    margin-top: 45px;
}

.theros-slider-dots .slick-dots {
    position: relative;
    bottom: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.theros-slider-dots .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}

.theros-slider-dots .slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    font-size: 0;
    transition: all 0.3s ease;
    position: relative;
}

.theros-slider-dots .slick-dots li button:hover {
    background: #b0b0b0;
    transform: scale(1.1);
}

.theros-slider-dots .slick-dots li.slick-active button {
    background: #008080;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: scale(1);
}

.theros-slider-dots .slick-dots li button:before {
    display: none;
}

/* Slick Track */
.theros-partners-slider .slick-track {
    display: flex;
    align-items: stretch;
}

.theros-partners-slider .slick-slide {
    height: auto;
    display: flex;
}

.theros-partners-slider .slick-slide > div {
    width: 100%;
}

/* Largeur des slides pour correspondre à la maquette */
.theros-partners-slider .slick-list {
    margin: 0 -20px;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .theros-partners-title {
        font-size: 2.25rem;
    }
    
    .theros-partners-subtitle {
        font-size: 1.0625rem;
    }
}

@media (max-width: 992px) {
    .theros-partners-section {
        padding: 60px 0;
    }
    
    .theros-partners-title {
        font-size: 2rem;
        padding-left: 16px;
        border-left-width: 4px;
    }
    
    .theros-partners-subtitle {
        font-size: 1rem;
    }
    
    .theros-partner-link {
        height: 120px;
        padding: 25px;
    }
    
    .theros-partner-logo {
        max-height: 60px;
    }
}

@media (max-width: 768px) {
    .theros-partners-section {
        padding: 50px 0;
    }
    
    .theros-partners-title {
        font-size: 1.75rem;
        padding-left: 14px;
    }
    
    .theros-partners-subtitle {
        font-size: 0.9375rem;
    }
    
    .theros-partner-link {
        height: 110px;
        padding: 20px;
    }
    
    .theros-partner-logo {
        max-height: 55px;
    }
    
    .theros-slider-dots {
        margin-top: 35px;
    }
}

@media (max-width: 480px) {
    .theros-partners-section {
        padding: 40px 0;
    }
    
    .theros-partners-title {
        font-size: 1.5rem;
        padding-left: 12px;
        border-left-width: 3px;
    }
    
    .theros-partners-subtitle {
        font-size: 0.875rem;
    }
    
    .theros-partner-link {
        height: 100px;
        padding: 18px;
    }
    
    .theros-partner-logo {
        max-height: 50px;
    }
    
    .theros-slider-dots {
        margin-top: 30px;
    }
    
    .theros-slider-dots .slick-dots li button {
        width: 10px;
        height: 10px;
    }
    
    .theros-slider-dots .slick-dots li.slick-active button {
        width: 10px;
        height: 10px;
    }
}

/* Animation d'entrée */
.theros-partners-section {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.theros-partners-slider {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.theros-partners-slider.slick-initialized {
    opacity: 1;
}

/* Effet de focus pour l'accessibilité */
.theros-partner-link:focus {
    outline: 2px solid #008080;
    outline-offset: 4px;
}

.theros-partner-link:focus:not(:focus-visible) {
    outline: none;
}

/* Espacement entre les slides égal comme sur la maquette */
.theros-partners-slider .slick-slide {
    margin: 0;
}

/* Container ajustement */
@media (min-width: 1200px) {
    .theros-partners-section .container {
        max-width: 1200px;
    }
}

@media (min-width: 1400px) {
    .theros-partners-section .container {
        max-width: 1320px;
    }
}
img.theros-partner-logo {
    filter: none !important;
}

.theros-partners-slider:not(.slick-initialized) {
    opacity: 1 !important;
}

.theros-partner-link {width: fit-content;cursor: pointer;}