Hello, both of you!
I think Christophe's sentences are related to reported speech in the past, not to subjonctive.
Direct speech: "But you are my friend!" (more or less!)
Rep speech: "I thought that you were my friend"
On the other hand, this would be a subjunctive:
"He always behaved as if he...