/* ============================================================
   WBTP – DÉFILEMENT DE LOGOS
   Animation CSS pure — aucun JS requis
   ============================================================ */

/* ── Variables par défaut ── */
.wbtp-lg-wrap {
    --lg-vitesse:   30s;
    --lg-hauteur:   60px;
    --lg-gap:       60px;
    --lg-opacite:   0.6;
    --lg-opacite-h: 1;
    --lg-filtre:    grayscale(100%);
    --lg-accent:    #bc1818;
    width: 100%;
    overflow: hidden;
    padding: 32px 0;
    box-sizing: border-box;
}

/* ── Styles de bandeau ── */
.wbtp-lg-simple  { background: transparent; }
.wbtp-lg-card    { background: #fff; border-radius: 16px; padding: 36px 0; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.wbtp-lg-dark    { background: #1a1f22; border-radius: 16px; padding: 36px 0; }
.wbtp-lg-border  { border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; padding: 32px 0; }

/* ── En-tête ── */
.wbtp-lg-header  { text-align: center; margin-bottom: 28px; padding: 0 20px; }
.wbtp-lg-titre   { font-size: clamp(20px,3vw,30px); font-weight: 800; margin: 0 0 8px; line-height: 1.2; }
.wbtp-lg-sous-titre { font-size: 15px; color: #777; margin: 0 0 12px; }
.wbtp-lg-underline {
    width: 48px; height: 4px;
    border-radius: 2px;
    margin: 0 auto;
}
.wbtp-lg-dark .wbtp-lg-titre       { color: #fff !important; }
.wbtp-lg-dark .wbtp-lg-sous-titre  { color: rgba(255,255,255,.6); }

/* ── Viewport avec dégradés masque ── */
.wbtp-lg-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Dégradés gauche/droite pour effet de fondu */
.wbtp-lg-fade {
    position: absolute;
    top: 0; bottom: 0;
    width: clamp(60px, 10%, 120px);
    z-index: 2;
    pointer-events: none;
}
.wbtp-lg-fade-left  { left: 0;  }
.wbtp-lg-fade-right { right: 0; }

/* Couleur du fond selon le style */
.wbtp-lg-simple  .wbtp-lg-fade-left,
.wbtp-lg-border  .wbtp-lg-fade-left  { background: linear-gradient(to right, #fff, transparent); }
.wbtp-lg-simple  .wbtp-lg-fade-right,
.wbtp-lg-border  .wbtp-lg-fade-right { background: linear-gradient(to left,  #fff, transparent); }

.wbtp-lg-card .wbtp-lg-fade-left  { background: linear-gradient(to right, #fff, transparent); }
.wbtp-lg-card .wbtp-lg-fade-right { background: linear-gradient(to left,  #fff, transparent); }

.wbtp-lg-dark .wbtp-lg-fade-left  { background: linear-gradient(to right, #1a1f22, transparent); }
.wbtp-lg-dark .wbtp-lg-fade-right { background: linear-gradient(to left,  #1a1f22, transparent); }

/* ── Inner : les deux tracks côte à côte ── */
.wbtp-lg-inner {
    display: flex;
    width: max-content;
}

/* ── Track animé ── */
.wbtp-lg-track {
    display: flex;
    align-items: center;
    gap: var(--lg-gap);
    padding: 0 calc(var(--lg-gap) / 2);
    /* L'animation est définie en inline depuis PHP pour l'ID unique */
}

/* Animation keyframe globale */
@keyframes wbtp-lg-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ── Item logo ── */
.wbtp-lg-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wbtp-lg-item img,
.wbtp-lg-item a img {
    height: var(--lg-hauteur);
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    opacity: var(--lg-opacite);
    filter: var(--lg-filtre);
    transition: opacity .35s ease, filter .35s ease, transform .35s ease;
}
.wbtp-lg-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.wbtp-lg-item:hover img,
.wbtp-lg-item a:hover img {
    opacity: var(--lg-opacite-h);
    filter: none;
    transform: scale(1.08);
}

/* ── Responsive ── */
@media(max-width:767px){
    .wbtp-lg-item img { max-width: 110px; }
    .wbtp-lg-fade { width: 40px; }
}
