Using automotive relays and guidance in my project.

Where safety is a concern, modern automobiles must use real switches to control head lights, tail lights. But all others are controlled by the computer system. When the lights work as the OP describes, I think the switch is just signaling a computer to turn those lights on.

Of course, the fog lights may be after-market lights and will the computer will know nothing of the operation.

Paul