How to invert a circuit
Depending on the switch you used it might have 3 terminals, two of these might close when the other terminals close.

If not maybe you can replace the switch with a 3 terminal one.

If that is also not possible a solution would be an electronic switch for the lamp with a TRIAC or a relay.