Dark energy, gravitation and supernovae