The aim of the study is to visualize the evolution of diaphragm thickness by echography during Mechanical Ventilation for patients with septic shock or acute respiratory distress syndrome and to compare with the evolution for patients under non-invasive ventilation and those with spontaneous ventilation. Measurements will be performed at day 1, day 5 and day 10 (if patient still under a mode of ventilation or in the unit).