PHP refactoring, CSS, connexion - in progress