Translations for conceited in French

Here are paragraphs from public domain books translated:
I was drinking in his words and smiling away, as conceited as a cock upon a walk, when, all in a breath, back went his right hand over his shoulder. Something sung like an arrow through the air; I felt a blow and then a sharp pang, and there I was pinned by the shoulder to the mast. In the horrid pain and surprise of the moment—I scarce can say it was by my own volition, and I am sure it was without a conscious aim—both my pistols went off, and both escaped out of my hands. They did not fall alone; with a choked cry the cockswain loosed his grasp upon the shrouds, and plunged head first into the water. Je buvais ses paroles en souriant, aussi vain qu’un coq sur un mur, quand, tout d’une haleine, il ramena sa main droite par-dessus son épaule. Quelque chose siffla en l’air comme une flèche ; je sentis un choc suivi d’une douleur aiguë, et me trouvai cloué au mât par l’épaule. Dans l’excès de ma douleur et dans la surprise du moment — je ne puis dire si ce fut de mon plein gré, et je suis en tout cas certain que je ne visai pas — mes pistolets partirent tous les deux à la fois, et tous les deux m’échappèrent des mains. Ils ne tombèrent pas seuls : avec un cri étouffé, le quartier-maître lâcha les haubans et plongea dans l’eau la tête la première.
Treasure Island, by Robert Louis Stevenson L’Île au trésor, de Robert Louis Stevenson