Developement of near infrared and visible Kinetic Inductance Detectors for astronomy,