2576. The insurer is liable only for losses directly caused by a peril insured against.
The insurer is not liable for any such loss caused by the wilful misconduct of the insured, but he is liable if it is caused by the misconduct of the master or crew.