/* ==========================================================================
   FinRadar — home-signals.css
   Les signaux (#produit) : la scène « même dirigeant » de la deuxième carte,
   puis le tag des plus lus sous les trois cartes. Les deux autres scènes
   (arbre, annonce BODACC) sont dans home-story.css.
   Aucune couleur brute : tout vient de tokens.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Même dirigeant — le client, la société qu'il vient de créer, et le fil qui
   les relie : la personne.
   -------------------------------------------------------------------------- */
.match {
  gap: var(--space-2);
}

.match__link {
  position: relative;
  display: flex;
  align-items: center;
  align-self: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
  border: 1px solid var(--c-accent);
  border-radius: var(--radius-pill);
  background-color: var(--c-panel-raised);
  box-shadow: var(--shadow-ui);
  font-size: var(--fs-ui-xs);
  font-weight: var(--fw-bold);
  color: var(--c-ink-accent);
}

.match__link .avatar {
  width: 24px;
  height: 24px;
  background-image: var(--g-brand);
  color: var(--c-on-accent);
}

/* Le fil, en deux segments qui ne touchent pas la pastille : animée, elle
   forme son propre contexte d'empilement, un trait dessous la traverserait.
   Chaque segment couvre l'écart (.match gap) jusqu'à la ligne voisine. */
.match__link::before,
.match__link::after {
  content: '';
  position: absolute;
  left: 50%;
  height: var(--space-2);
  border-left: 2px dashed var(--c-accent);
}

.match__link::before {
  bottom: 100%;
}

.match__link::after {
  top: 100%;
}

/* --------------------------------------------------------------------------
   Catalogue — un tag : les noms défilent, deux ou trois lisibles à la fois.
   -------------------------------------------------------------------------- */
.count {
  width: max-content;
  border-color: var(--c-accent-line);
  background-color: var(--c-accent-soft);
  font-weight: var(--fw-bold);
  color: var(--c-accent-light);
}

.catalog {
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.catalog__tag {
  overflow: hidden;
  height: calc(3 * var(--fs-h3) * var(--lh-h3));
  border: 1px solid var(--c-accent-line);
  border-radius: var(--radius-pill);
  background-color: var(--c-accent-soft);
  -webkit-mask-image: linear-gradient(transparent, black 28%, black 72%, transparent);
  mask-image: linear-gradient(transparent, black 28%, black 72%, transparent);
}

.catalog__list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.catalog__list li {
  width: 100%;
  padding-inline: var(--space-5);
  font-size: var(--fs-h3);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-h3);
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1080px) {
  .section__head--split .count {
    grid-column: 1;
  }

  .catalog {
    margin-top: var(--space-7);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .catalog__list {
    animation: catalog-rise var(--loop-catalog) linear infinite;
  }
}

@keyframes catalog-rise {
  to { transform: translateY(-50%); }
}
