.pt-page,
.pt-marquee {
  --pt-orange: #e58008;
  --pt-cyan: #00cde5;
  --pt-blue: #047dda;
  --pt-ink: #14181c;
  --pt-stone: #6b675f;
  --pt-line: rgba(20, 24, 28, 0.1);
}

/* ============ Composant partagé : logo + effet de survol ============ */
/* Reproduit le pattern de medianet-group.com/fr/etudes-de-cas : pas de
   zoom sur l'image, un scrim qui apparaît, le texte ancré en haut à
   gauche, et un bouton pilule bleu qui apparaît sous le texte. */

.pt-logo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.pt-logo__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pt-logo__placeholder {
  font-weight: 700;
  color: var(--pt-ink);
  text-align: center;
}

.pt-logo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 28, 0.55) 0%, rgba(20, 24, 28, 0.72) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pt-logo__caption {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.3s ease 0.05s, opacity 0.3s ease 0.05s;
}

.pt-logo__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  background: var(--pt-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  border-radius: 999px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.3s ease 0.1s, opacity 0.3s ease 0.1s, background-color 0.2s ease;
}

.pt-logo__cta:hover {
  background: #0364b0;
}

.pt-logo:hover .pt-logo__overlay,
.pt-card:hover .pt-logo__overlay,
.pt-marquee__item:hover .pt-logo__overlay {
  opacity: 1;
}

.pt-logo:hover .pt-logo__caption,
.pt-card:hover .pt-logo__caption,
.pt-marquee__item:hover .pt-logo__caption,
.pt-logo:hover .pt-logo__cta,
.pt-card:hover .pt-logo__cta,
.pt-marquee__item:hover .pt-logo__cta {
  transform: translateY(0);
  opacity: 1;
}

/* ============ Page /partenaires ============ */

.pt-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 90px;
}

.pt-header {
  text-align: center;
  margin-bottom: 40px;
}

.pt-header__eyebrow {
  color: var(--pt-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin: 0 0 10px;
}

.pt-header__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--pt-orange);
  margin: 0;
  border-left: 4px solid var(--pt-orange);
  padding-left: 18px;
  display: inline-block;
  text-align: left;
}

/* Grille "mosaïque" bord-à-bord, sans espace ni coin arrondi. */
.pt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--pt-line);
}

.pt-card {
  display: block;
  position: relative;
  border-right: 1px solid var(--pt-line);
  border-bottom: 1px solid var(--pt-line);
  text-decoration: none;
}

.pt-card .pt-logo {
  aspect-ratio: 4 / 3;
}

.pt-empty {
  text-align: center;
  color: var(--pt-stone);
}

/* ============ Bande défilante (page d'accueil) ============ */

.pt-marquee {
  overflow: hidden;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 0;
  -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);
}

.pt-marquee__track {
  margin: 0 auto;
}

.pt-marquee__track {
  display: flex;
  width: max-content;
  animation: pt-marquee-scroll 28s linear infinite;
}

.pt-marquee:hover .pt-marquee__track {
  animation-play-state: paused;
}

.pt-marquee__item {
  width: 200px;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  border-right: 1px solid var(--pt-line);
}

@keyframes pt-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    /* La liste est dupliquée une fois dans le template : -50% ramène
       exactement au début visuel, ce qui boucle sans coupure. */
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .pt-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .pt-marquee__item {
    width: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-marquee__track {
    animation: none;
  }

  .pt-logo__overlay,
  .pt-logo__caption,
  .pt-logo__cta {
    transition: none;
  }
}
