Hamas is at the same time a religious idea, a social movement, a political party, a government and a hybrid militia wedded to terrorism.