The invention relates to a system for the thermal comfort of animals in a farm enclosure. Said system comprises: (a) at least one comfort mattress (2) which comprises at least one elastomer layer (3) including a plurality of sealed cavities (4) intended for containing a heat-transfer fluid; (b) a heat-transfer fluid circuit (5) intended for containing said heat-transfer fluid; (c) a watering fluid circuit (6); and (d) heat-exchange means (7) installed between said heat-transfer fluid circuit (5) and said watering fluid circuit (6) in order to provide heat exchanges between said heat-transfer fluid and the watering water.