Seol mar théacs é seo: Intrinsic alignments of galaxies in the Horizon-AGN cosmological hydrodynamical simulation