They included a military presence in Muslim countries such as Djibouti , participation in the Nato-led war in Afghanistan and France 's attachment to secularism , highlighted most vividly by its ban on the wearing of headscarves in schools .