/* ============================================
   SECTION PARTENAIRES
   ============================================ */

.partners-section {
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(135deg, #F8FAFF 0%, #FFFFFF 50%, #F8FAFF 100%);
    overflow: hidden;
}

/* Pattern de fond */
.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

/* Film strip en bas */
.partners-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='filmStripPartners' x='0' y='0' width='120' height='120' patternUnits='userSpaceOnUse'%3E%3Crect width='120' height='120' fill='none'/%3E%3Crect x='5' y='0' width='15' height='120' fill='%23FFD700' fill-opacity='0.04'/%3E%3Crect x='95' y='0' width='15' height='120' fill='%23FFD700' fill-opacity='0.04'/%3E%3Crect x='30' y='0' width='3' height='120' fill='%23FF0000' fill-opacity='0.03'/%3E%3Crect x='45' y='0' width='3' height='120' fill='%23FF0000' fill-opacity='0.03'/%3E%3Crect x='70' y='0' width='3' height='120' fill='%230a7734' fill-opacity='0.03'/%3E%3Crect x='85' y='0' width='3' height='120' fill='%230a7734' fill-opacity='0.03'/%3E%3Ccircle cx='12' cy='20' r='3' fill='%23FFFFFF' fill-opacity='0.05'/%3E%3Ccircle cx='12' cy='60' r='3' fill='%23FFFFFF' fill-opacity='0.05'/%3E%3Ccircle cx='12' cy='100' r='3' fill='%23FFFFFF' fill-opacity='0.05'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23filmStripPartners)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 120px 120px;
    opacity: 0.3;
    pointer-events: none;
}

.partners-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Badge */
.partners-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FFD700, #DAA520);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon i {
    font-size: 0.9rem;
    color: #000;
}

.partners-badge span:last-child {
    font-size: 0.85rem;
    font-weight: 600;
    color: #DAA520;
    letter-spacing: 1px;
}

/* Header */
.partners-header {
    text-align: center;
    margin-bottom: 3rem;
}

.partners-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #1F2937;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.title-wave {
    animation: wave 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

.partners-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.partners-divider .divider-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0a7734, #085c28, transparent);
}

.partners-divider i {
    font-size: 1.2rem;
    color: #FF0000;
}

.partners-subtitle {
    font-size: 1rem;
    color: #6B7280;
    margin-top: 1rem;
}

/* ============================================
   CARROUSEL PARTENAIRES
   ============================================ */

.partners-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 2rem 0;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

/* Animation de défilement continu */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause au survol */
.partners-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* Élément partenaire */
.partner-item {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(10%);
    opacity: 0.7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

/* Contrôles du carrousel */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #DAA520;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.carousel-btn i {
    font-size: 1.2rem;
}

.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E5E7EB;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 30px;
    border-radius: 5px;
    background: linear-gradient(90deg, #FFD700, #DAA520);
}

.dot:hover {
    background: #DAA520;
    transform: scale(1.2);
}

/* Indicateur de progression */
.scroll-indicator {
    width: 200px;
    height: 3px;
    background: #E5E7EB;
    border-radius: 3px;
    margin: 2rem auto 0;
    overflow: hidden;
}

.scroll-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FFD700, #FF0000, #0a7734);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .partner-item {
        width: 150px;
        height: 85px;
    }
    
    .partner-logo img {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 3rem 0;
    }
    
    .partners-container {
        padding: 0 1rem;
    }
    
    .partner-item {
        width: 130px;
        height: 75px;
    }
    
    .partner-logo {
        padding: 0.8rem;
    }
    
    .partner-logo img {
        max-height: 150px;
    }
    
    .carousel-controls {
        gap: 1rem;
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .partner-item {
        width: 110px;
        height: 65px;
    }
    
    .partner-logo img {
        max-height: 100px;
    }
    
    .partners-subtitle {
        font-size: 0.85rem;
    }
}