/* ============================================================
   Partenaires Slider – CSS Front-End
   ============================================================ */

.ps-wrapper {
    width: 100%;
    padding: 36px 0 28px;
    box-sizing: border-box;
    overflow: hidden;
    font-family: inherit;
}

/* Titre de section */
.ps-title {
    text-align: center;
    margin: 0 0 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}
.ps-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #c8a84b;   /* accent doré comme le site BNDE */
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Conteneur masquant */
.ps-track-wrapper {
    overflow: hidden;
    /* Masques de fondu sur les bords */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Piste défilante */
.ps-track {
    display: flex;
    align-items: center;
    gap: var(--ps-gap, 40px);
    width: max-content;
    animation: ps-scroll var(--ps-speed, 5000ms) linear infinite;
}

/* Pause au survol */
.ps-wrapper[data-pause="true"] .ps-track-wrapper:hover .ps-track {
    animation-play-state: paused;
}

/* Un item */
.ps-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-item img {
    height: var(--ps-logo-h, 70px);
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.ps-item a {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mode niveaux de gris */
.ps-track.ps-grayscale .ps-item img {
    filter: grayscale(100%) opacity(0.65);
}
.ps-track.ps-grayscale .ps-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.07);
}

/* Couleur normale – léger hover */
.ps-track:not(.ps-grayscale) .ps-item:hover img {
    transform: scale(1.07);
    opacity: 0.85;
}

/* Animation infinie */
@keyframes ps-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .ps-item img {
        height: calc(var(--ps-logo-h, 70px) * 0.8);
        max-width: 110px;
    }
    .ps-wrapper {
        padding: 24px 0 18px;
    }
}
