\documentclass{article}
\makeatletter
\@removefromreset{subsection}{section}
\makeatother
\begin{document}
\section{Bonjour}
\subsection{Hello}
\subsection{Good morning}
\section{Comment ça va ?}
\subsection{How are you?}
\end{document}\end{document}
![alt text][1]
[1]: https://texnique.fr/osqa/upfiles/Screenshot_2023-08-01_at_14.03.23.png