After 18 years of war, the US and the Taliban signed an agreement in Doha on Saturday that paves the way for a 14-month timetable for the withdrawal of all foreign forces from Afghanistan, provided the militants open talks with Kabul and fulfil other pledges.