/* ==========================================================
   Widget Elementor : Partenaires — Maison Blondin
   Carrousel manuel de logos.
   ========================================================== */

/* ── Titre ── */
.mb-pt__title {
  font-family: var(--mb-font-heading, 'Playfair Display', Georgia, serif);
  color: var(--mb-brown, #572400);
  margin: 0 0 2rem;
  line-height: 1.2;
}

/* ── Logo ── */
.mb-pt__logo {
  display: block;
  width: auto;
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  transition: filter var(--mb-transition, .3s ease), opacity var(--mb-transition, .3s ease);
}

.mb-pt__logo--grayscale {
  filter: grayscale(100%);
  opacity: .6;
}

.mb-pt__slide:hover .mb-pt__logo--grayscale,
.mb-pt__link:hover .mb-pt__logo--grayscale {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==========================================================
   Carrousel manuel
   ========================================================== */
.mb-pt--carousel {
  width: 100%;
}

.mb-pt__carousel {
  position: relative;
  width: 100%;
}

.mb-pt__stage {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.mb-pt__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.mb-pt__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 48px;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

/* Repli avant l'exécution du JS : ~5 logos visibles */
.mb-pt__slide {
  flex: 0 0 calc((100% - 4 * 48px) / 5);
  min-width: 0;
  box-sizing: border-box;
  list-style: none;
}

.mb-pt__slide,
.mb-pt__slide .mb-pt__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ── Nom ── */
.mb-pt__name {
  display: block;
  margin-top: 12px;
  font-family: var(--mb-font-body, 'Open Sans', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--mb-brown, #572400);
  text-align: center;
  letter-spacing: .03em;
  line-height: 1.3;
}

.mb-pt__link:hover .mb-pt__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Flèches ── */
.mb-pt__arrow {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mb-sand, #eeddd6);
  border-radius: 50%;
  background: var(--mb-white, #fff);
  color: var(--mb-brown, #572400);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(87, 36, 0, .06);
  transition: background var(--mb-transition, .3s ease),
              color var(--mb-transition, .3s ease),
              border-color var(--mb-transition, .3s ease),
              opacity var(--mb-transition, .3s ease);
}

.mb-pt__arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}

.mb-pt__arrow:hover {
  background: var(--mb-brown, #572400);
  border-color: var(--mb-brown, #572400);
  color: #fff;
}

.mb-pt__arrow:disabled {
  opacity: .35;
  cursor: default;
  box-shadow: none;
}

.mb-pt__arrow:disabled:hover {
  background: var(--mb-white, #fff);
  border-color: var(--mb-sand, #eeddd6);
  color: var(--mb-brown, #572400);
}

/* ── Points ── */
.mb-pt__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.mb-pt__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--mb-blush, #e4c3bf);
  cursor: pointer;
  transition: background var(--mb-transition, .3s ease),
              transform var(--mb-transition, .3s ease);
}

.mb-pt__dot:hover {
  background: var(--mb-brown, #572400);
}

.mb-pt__dot.is-active {
  background: var(--mb-pink, #ff66c4);
  transform: scale(1.4);
}

/* ── Tablette ── */
@media (max-width: 1024px) {
  .mb-pt__track { gap: 32px; }
  .mb-pt__slide { flex-basis: calc((100% - 2 * 32px) / 3); }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .mb-pt__stage { gap: 10px; }

  .mb-pt__track { gap: 24px; }

  .mb-pt__slide { flex-basis: calc((100% - 24px) / 2); }

  .mb-pt__arrow {
    width: 38px;
    height: 38px;
  }

  .mb-pt__arrow svg {
    width: 18px;
    height: 18px;
  }
}
