Nanophotonic thermal, plasmonic and non-hermitian media : from fundamental limits to applications