Master switch to turn on and off independent lights
You will not be able to do the last step without resetting relays (costly, not easy to find), complex logic circuit (hardware intensive) or a microcontroller. A microcontroller solution with push buttons will be super easy. On/off switches will require slightly more code but pretty easy too.

The microcontroller solution can be cheap, and consist of nothing more than the switches and some resistor + Transistor pairs (and your leds of course). Depending on how many lights you could skip the transistors too. The internal Pull-Ups are enough for the inputs, but external ones can be used too.







simulate this circuit &ndash; Schematic created using CircuitLab

Code would be simple:

Boot/Power On{
  turn all lights on, set inputs;
  Wait for button press{
    At button press toggle light;
    At master button turn all lights off;
    At second master button, go to boot.
  }
}


Or skip the master button and use a hard power switch turning the microcontroller off. When turned on it starts at boot. Cuts down on some of the coding.







simulate this circuit