Copain in French means mate. The word consists of co-, meaning together (as in coworker), and pain, the French word for bread, making a mate a person with whom one shares a meal, one’s daily bread. The word company has the same origin.