Lebanon and Cyprus have signed a maritime demarcation deal, paving the way for energy cooperation between the two countries, including exploration of offshore gas fields in the Mediterranean.