Hi @Guillaume GRALL
I was just told that client secrets cannot be used in device code flow. Because the device code flow is a native app-specific authentication flow, and a native app (desktop or mobile app) is not a secret app (web app), it cannot use client secrets.
If you want to authenticate your app using client secret, you should create redirect URL under "Web" and use auth code flow to get access token.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.