Landscape approach for pinned elastic interfaces