The invention relates to a system (1) for thermal comfort of animals in a livestock farming enclosure which comprises: (a) at least one comfort mattress (2) which comprises at least one resilient layer (3) including a plurality of sealed recesses (4) which are parallel to one another (b) a heat transfer fluid intended for filling said sealed recesses (4) (c) means (6) for generating a circulation of said heat transfer fluid inside said sealed recesses (4) and optionally (d) means (5) for regulating the temperature of said heat transfer fluid.