Models of interstellar clouds. I - The Zeta Ophiuchi cloud