Quebec has set a 2040 deadline to remove fossil fuels from all buildings, except those in the industrial sector.