/*
 * mobile-advertisers-marquee.css — VERSION FINALE
 * ════════════════════════════════════════════════════════════
 * UNE SEULE bulle blanche opaque pour toute la section,
 * alignée sur la grille des licences (max-w-7xl), rounded-xl 12px.
 * Visible <1280px uniquement.
 * ════════════════════════════════════════════════════════════ */

/* ─── Cards logos : fond 100% OPAQUE ─── */
html body .sf-mobile-marquee-section .sf-marquee-logo-card {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

.sf-mobile-marquee-section {
  display: none;
}

@media (max-width: 1279px) {
  /* Container principal = LA bulle blanche unique */
  /* Spécificité ID maximale pour battre les règles globales */
  #sf-partners-marquee.sf-mobile-marquee-section {
    display: block;
    max-width: 80rem; /* max-w-7xl */
    margin: 6px auto 8px auto;
    padding: 10px 0;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
  }
  /* Marges latérales identiques à la grille licences */
  body #sf-partners-marquee.sf-mobile-marquee-section {
    margin-left: 0.75rem;  /* px-3 */
    margin-right: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }
  @media (min-width: 640px) {
    body #sf-partners-marquee.sf-mobile-marquee-section {
      margin-left: 1.5rem;  /* sm:px-6 */
      margin-right: 1.5rem;
      max-width: calc(100% - 3rem);
    }
  }
  @media (min-width: 1024px) {
    body #sf-partners-marquee.sf-mobile-marquee-section {
      margin-left: 2rem;  /* lg:px-8 */
      margin-right: 2rem;
      max-width: calc(100% - 4rem);
    }
  }
}

/* Wrapper inner : maintenant simplement un container vide (pas de double bulle) */
.sf-mobile-marquee-inner {
  background: transparent;
}

.sf-mobile-marquee-header {
  padding: 0 14px 6px 14px;
}

.sf-mobile-marquee-title {
  font-size: 11px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.sf-mobile-marquee-track-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
          mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
}

.sf-mobile-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: sf-mobile-marquee-scroll 38s linear infinite;
  will-change: transform;
}

.sf-mobile-marquee-track-wrapper.paused .sf-mobile-marquee-track {
  animation-play-state: paused;
}
.sf-mobile-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes sf-mobile-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .sf-mobile-marquee-track {
    animation: none;
  }
  .sf-mobile-marquee-track-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
