/* Grille des teasers Instagram, page /vj-mapping/teasers/ (posée par scripts/poser-teasers.mjs).
   Même registre que la fiche After TV : encre sur blanc, filets, la seule couleur vient des vidéos. */

.tsr {
  --tsr-encre: oklch(20% 0 0);
  --tsr-encre-douce: oklch(45% 0 0);
  --tsr-filet: oklch(20% 0 0 / 0.16);
  --tsr-ecran: oklch(13% 0 0);
  padding: clamp(1rem, 3vw, 2.5rem) 6vw clamp(3rem, 6vw, 5rem);
  font-family: aktiv-grotesk, sans-serif;
  color: var(--tsr-encre);
  display: grid;
  justify-items: center;
}
.tsr-bloc { width: 100%; max-width: 72rem; min-width: 0; }
.tsr .tsr-titre { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.2; text-align: center; text-wrap: balance; }
.tsr-grille { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 3.5vw, 3rem) clamp(1rem, 2.5vw, 2rem); }
@media (min-width: 48rem) { .tsr-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tsr-item { margin: 0; min-width: 0; }
.tsr-ecran { aspect-ratio: 16 / 9; background: var(--tsr-ecran); }
.tsr-ecran video { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Légende = petite fiche : nom (gras) + œuvre (italique) / lieu · nature / crédits, l'année et Instagram en colonne à droite.
   Chaque valeur est dans son élément ; les séparateurs sont posés ici, seulement entre éléments présents. */
.tsr-legende { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--tsr-filet); display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: baseline; column-gap: 0.75rem; }
/* Colonne Instagram toujours réservée : l'année reste alignée d'une carte à l'autre, avec ou sans lien. */
.tsr-fiche { grid-column: 1; min-width: 0; }
.tsr-fiche p { margin: 0; overflow-wrap: break-word; text-wrap: pretty; }
.tsr-tete { font-size: 1rem; line-height: 1.4; }
.tsr-nom { font-weight: 700; }
.tsr-oeuvre { font-style: italic; margin-left: 0.1em; }
.tsr-fiche .tsr-contexte { margin-top: 0.15rem; font-size: 0.875rem; line-height: 1.45; }
.tsr-contexte span + span::before { content: " · "; color: var(--tsr-encre-douce); }
.tsr-fiche .tsr-credits { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.45; color: var(--tsr-encre-douce); }
.tsr-credits span { display: block; }
.tsr-annee { grid-column: 2; grid-row: 1; font-size: 0.875rem; color: var(--tsr-encre-douce); font-variant-numeric: tabular-nums; }
/* Cible de 44px, icône de 18px centrée sur la première ligne (1rem × 1.4) et collée au bord droit du filet. */
.tsr-insta { grid-column: 3; grid-row: 1; align-self: start; display: inline-flex; align-items: center; justify-content: flex-end; width: 44px; height: 44px; margin: calc((1.4rem - 44px) / 2) 0; color: var(--tsr-encre-douce); transition: color 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.tsr-insta svg { transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.tsr-insta:hover { color: var(--tsr-encre); }
.tsr-insta:active svg { transform: scale(0.9); }
.tsr a:focus-visible { outline: 2px solid var(--tsr-encre); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tsr-insta, .tsr-insta svg { transition: none; } }
