Flat photonics for broadband light-trapping