Statics and kinematics in the failable zone of a granular material