The present invention provides methods and systems for a biomaterial medical implant device for treating patients with I IF and/or intractable dyrhythmia. It either is implanted inside the cardiac cavity(ies), ICI, or after their removal, TAH. Could be extrapericardiac or introduced through percutaneous technique or transapical approach. The embodiment consists of 2 layers. Layer 1 ( 1 6) is immobile and adherent to the basement. Layer 2 ( 1 7) reflects from layer 1 and faces the cavity. Layer 2 moves inwards (systole) and backwards (diastole) by between-layers Concertina-like clastic fibers and/or a spring (22), on-surface diagonally crossing elastic fibers (27), or sheets (29&30) of electromagnetic coils (34), that are adherent to both layers from the inside. Layer 2 moves through the electromagnetic coil causing its attraction to layer 1, when polarities are different and repulsion when polarities are similar.La présente invention concerne des procédés et des systèmes pour un dispositif dimplant médical à base de biomatériau pour traiter des patients ayant un IIF et/ou une dysrythmie incurable. Limplant est soit implanté à lintérieur de la ou des cavités cardiaques, ICI, ou après leur retrait, TAH. Il pourrait être extra péricardique ou introduit par lintermédiaire dune technique percutanée ou dune approche transapicale. Le mode de réalisation comprend 2 couches. La couche 1 (16) est immobile et adhère au socle. La couche 2 (17) est réfléchie à partir de la couche 1 et est tournée vers la cavité. La couche 2 se déplace vers lintérieur (systole) et vers larrière (diastole) par des fibres plastiques de type Concertina et/ou un ressort (22) entre les couches, des fibres élastiques se croisant en diagonale sur la surface (27), ou des feuilles (29 & 30) de bobines électromagnétiques (34), qui adhèrent aux deux couches à partir de lintérieur. La couche 2 se déplace à travers la bobine électromagnétique entraînant son attraction vers la couche 1, lorsque les polarités s