Restructuration du code (navigation.js)