An effective description of dark matter and dark energy in the mildly non-linear regime