Tunnels are good too, but even if we had tunnels/bridges every X meters, I think most pedestrians would just cross the road without going to them (I saw that in Egypt for example, they find it too far away, and they have to go up stairs).