Disclosed is a system for thermal comfort of animal in a livestock farming enclosure, which includes: at least one comfort mattress which includes at least one resilient layer including a plurality of sealed cavities which are parallel to one another; a heat-transfer fluid, intended for filling the sealed cavities; a unit for generating a circulation of the heat-transfer fluid inside the sealed cavities; and optionally a unit for regulating the temperature of the heat-transfer fluid.