Self-assembly of amphiphilic polymers and bio-inspired functions