Electrical enclosure comprising a front part and a rear part and intended to receive removable functional electrical units (2a, 2b) each comprising electrical devices (200, 201, 202), the said electrical enclosure also comprising: - a dividing wall delimiting: - a cold first thermal zone formed by a first space situated towards the front part of the enclosure, the said cold zone being intended to receive electrical devices or parts of devices which heat up little if at all, and - a heating-up second thermal zone formed by a second space situated towards the rear part of the enclosure, the said hot zone being intended to receive devices or parts of devices which heat up, - the removable functional units (2a, 2b) form the said dividing wall, - the electrical enclosure comprises a device for cooling and for regulating the temperature of the first and second spaces E1, E2, characterized in that the said device comprising: - a cooling source positioned only in contact with the first space in order to cool it; - heat exchange means allowing cold to pass between the first space and the second space in order to cool the heating-up second thermal zone from the cold first thermal zone, the heat exchange means being active and regulated in such a way as to transfer cold according to a fixed ordered temperature into the second space. - a dividing wall delimiting: - a cold first thermal zone formed by a first space situated towards the front part of the enclosure, the said cold zone being intended to receive electrical devices or parts of devices which heat up little if at all, and - a heating-up second thermal zone formed by a second space situated towards the rear part of the enclosure, the said hot zone being intended to receive devices or parts of devices which heat up, - a cold first thermal zone formed by a first space situated towards the front part of the enclosure, the said cold zone being intended to receive electrical devices or parts of devices which heat up little if at all, and - a heating-up second thermal zone formed by a second space situated towards the rear part of the enclosure, the said hot zone being intended to receive devices or parts of devices which heat up, - the removable functional units (2a, 2b) form the said dividing wall, - the electrical enclosure comprises a device for cooling and for regulating the temperature of the first and second spaces E1, E2, characterized in that the said device comprising: - a cooling source positioned only in contact with the first space in order to cool it; - heat exchange means allowing cold to pass between the first space and the second space in order to cool the heating-up second thermal zone from the cold first thermal zone, the heat exchange means being active and regulated in such a way as to transfer cold according to a fixed ordered temperature into the second space. - a cooling source positioned only in contact with the first space in order to cool it; - heat exchange means allowing cold to pass between the first space and the second space in order to cool the heating-up second thermal zone from the cold first thermal zone, the heat exchange means being active and regulated in such a way as to transfer cold according to a fixed ordered temperature into the second space.