French president was charming but also sent a message as Beijing searches for an EU partner