/* Page Références clients */
.page-references .ref-intro {
  padding: 56px 0 24px;
}

.page-references .ref-intro .ref-kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff5a2c;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: "Bookman Old Style", Bookman, "URW Bookman L", "Palatino Linotype", Georgia, serif;
}

.page-references .ref-intro h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #333146;
  margin-bottom: 14px;
  font-family: "Bookman Old Style", Bookman, "URW Bookman L", "Palatino Linotype", Georgia, serif;
}

.page-references .ref-intro .ref-line {
  width: 56px;
  height: 4px;
  background: #ff5a2c;
  border-radius: 2px;
  margin-bottom: 18px;
}

.page-references .ref-intro p {
  color: #6a7a83;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0;
}

.page-references .ref-grid-section {
  padding: 24px 0 88px;
  background: #ffffff;
}

.page-references .ref-logo-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 14px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border: 1px solid rgba(33, 63, 101, 0.08);
  box-shadow: 0 6px 24px rgba(47, 47, 47, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.page-references .ref-logo-card:hover {
  box-shadow: 0 12px 36px rgba(33, 63, 101, 0.12);
  transform: translateY(-3px);
}

.page-references .ref-logo-card img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(8%);
}

.page-references .ref-logo-card:hover img {
  filter: none;
}

@media (max-width: 575px) {
  .page-references .ref-logo-card {
    min-height: 88px;
    padding: 14px 10px;
  }
}

/* Bandeau défilant des références (avant le footer) */
.ref-ticker {
  background: #f5f7fa;
  padding: 28px 0 32px;
  border-top: 1px solid rgba(17, 27, 81, 0.08);
  overflow: hidden;
}

.ref-ticker__label {
  margin: 0 0 18px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff5a2c;
  font-weight: 700;
  font-family: "Bookman Old Style", Bookman, "URW Bookman L", "Palatino Linotype", Georgia, serif;
}

.ref-ticker__viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.ref-ticker__track {
  display: flex;
  width: max-content;
  animation: ref-ticker-scroll 45s linear infinite;
}

.ref-ticker__track:hover {
  animation-play-state: paused;
}

.ref-ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ref-ticker__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 72px;
  padding: 0 20px;
}

.ref-ticker__item img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.ref-ticker__item img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

@keyframes ref-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .ref-ticker {
    padding: 22px 0 26px;
  }

  .ref-ticker__track {
    animation-duration: 35s;
  }

  .ref-ticker__item {
    width: 110px;
    height: 60px;
    padding: 0 14px;
  }

  .ref-ticker__item img {
    max-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ref-ticker__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 8px 0;
  }

  .ref-ticker__group[aria-hidden="true"] {
    display: none;
  }

  .ref-ticker__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
