My arduino's EEPROM loses data when I reset or when I turn off the board

Are you saying that without pushing any buttons valeur is different on the first pass of loop that what it was when the power was cut?

int valeur = EEPROM.read(0); 
   Serial.println(valeur);

What happens if you add a delay(1000) at the end of setup()?

1 Like