Higher structures in rational homotopy theory, I