/* Keep the localized poster until the existing Rive player is mounted. */
html:lang(fr) #landing-documents .zg-l-anim--documents {
  --zg-chat-poster-image: url("/assets/motion/chat-poster-invoice-fr-58f7111f3d69.webp");
  --zg-chat-poster-alt: "La page 1 de d02-facture.pdf contient le passage « Total TTC : 828,00 € ».";
}
html:lang(fr) #landing-control .zg-l-vision-shot {
  --zg-chat-poster-image: url("/assets/motion/chat-poster-mission-fr-5b9d8a43a076.webp");
  --zg-chat-poster-alt: "Créer la Mission « Recette — Circuit Lune Safran ». Le Chat affiche Confirmer et Refuser. La Mission est en attente de votre décision.";
}
html:lang(en) #landing-documents .zg-l-anim--documents {
  --zg-chat-poster-image: url("/assets/motion/chat-poster-invoice-en-9fb5971e21c1.webp");
  --zg-chat-poster-alt: "The excerpt from page 1 of d02-facture.pdf gives a total of €828.00 including VAT.";
}
html:lang(en) #landing-control .zg-l-vision-shot {
  --zg-chat-poster-image: url("/assets/motion/chat-poster-mission-en-9468cff09868.webp");
  --zg-chat-poster-alt: "Create the “Recette — Circuit Lune Safran” Mission. Chat shows Confirm and Decline. The Mission awaits your decision.";
}
html:lang(es) #landing-documents .zg-l-anim--documents {
  --zg-chat-poster-image: url("/assets/motion/chat-poster-invoice-es-028690f08123.webp");
  --zg-chat-poster-alt: "El extracto de la página 1 de d02-facture.pdf indica un total de 828,00 € con IVA.";
}
html:lang(es) #landing-control .zg-l-vision-shot {
  --zg-chat-poster-image: url("/assets/motion/chat-poster-mission-es-05356c96c2e6.webp");
  --zg-chat-poster-alt: "Crear la Misión «Recette — Circuit Lune Safran». El Chat muestra Confirmar y Rechazar. La Misión queda en espera de tu decisión.";
}

html:is(:lang(fr), :lang(en), :lang(es))
:is(#landing-documents .zg-l-anim--documents, #landing-control .zg-l-vision-shot):not([data-rive-illustration]) {
  display: block;
  position: relative;
  padding: 0;
  min-height: 0;
  aspect-ratio: 5 / 3;
  background-image: var(--zg-chat-poster-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

html:is(:lang(fr), :lang(en), :lang(es))
:is(#landing-documents .zg-l-anim--documents, #landing-control .zg-l-vision-shot):not([data-rive-illustration]) > :not(.zg-rive-controls) {
  display: none;
}

html:is(:lang(fr), :lang(en), :lang(es))
:is(#landing-documents .zg-l-anim--documents, #landing-control .zg-l-vision-shot):not([data-rive-illustration])::before {
  content: var(--zg-chat-poster-alt);
  position: absolute;
  display: block;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
