/* Wordmark animé — tatouage.online */

/* Lien global : icône + texte */
.tatouage-wordmark-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.tatouage-wordmark-link:hover {
  text-decoration: none;
  opacity: .92;
}

.tatouage-wordmark-icon {
  width: 28px;
  height: 28px;
  flex: none;
  display: block;
  border-radius: 6px;
  object-fit: contain;
}

/* Texte animé */
.tatouage-wordmark {
  display: inline-grid;
  align-items: baseline;
  justify-content: flex-start;
  min-width: 0;
  white-space: nowrap;
  color: var(--st-ink, #ffffff);
  font-family: system-ui, "Inter", "Segoe UI", sans-serif;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.tatouage-wordmark-ext {
  color: var(--st-accent, #ff6a00);
}

.tatouage-wordmark-cursor {
  display: inline-block;
  width: 0;
  height: .86em;
  position: relative;
  align-self: center;
}

.tatouage-wordmark-cursor::after {
  content: "";
  position: absolute;
  left: -.035em;
  top: 0;
  height: 100%;
  border-left: .08em solid currentColor;
  animation: tatouage-cursor-blink .8s step-end infinite;
}

.tatouage-wordmark[data-editing="true"] .tatouage-wordmark-cursor::after {
  animation: none;
}

@keyframes tatouage-cursor-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tatouage-wordmark-cursor::after {
    animation: none;
  }
}

/* Réserver la largeur finale, sans afficher le texte avant la première frappe. */
.tatouage-wordmark::before { content: attr(data-tatouage-wordmark); visibility: hidden; grid-area: 1 / 1; pointer-events: none; }
.tatouage-wordmark > span { grid-area: 1 / 1; }
html[data-wordmark-pending="true"] [data-tatouage-wordmark]:not([data-wordmark-ready="true"]),
html[data-wordmark-js="true"] [data-tatouage-wordmark][data-force-play]:not([data-wordmark-ready="true"]) { visibility: hidden; }
/* Le header ne doit pas repeindre l'extension dans la couleur du texte. */
.tatouage-wordmark .tatouage-wordmark-ext { color: var(--st-accent, #ff6a00); }
.tatouage-wordmark .tatouage-wordmark-cursor { color: var(--st-highlight, #ff9a4d); }
