Physics and biology of the habitable zone of a star