Mideast cannot overcome instabilities if solution is only about security: French president