Emergence of long-range phase coherence in nonlocal fluids of light