%!TEX lualatex

\documentclass{article}
\usepackage{fontspec}
\usepackage{customenvs}
\usepackage{couleurs-fr}
\definecolor{TitreMarron}{rgb}{0.64,0.16,0.16}
\definecolor{TitreBleu}{rgb}{0,0,0.6}
\usepackage{lipsum}

%====sectionning
\usepackage{titlesec}
\titleformat{\section}[hang]{\color{TitreBleu}\LARGE\bfseries\sffamily}{\Roman{section}.}{1ex}{}
\titlespacing{\section}{3mm}{0.15\baselineskip}{0.15\baselineskip}
\titleformat{\subsection}[hang]{\color{VertForet}\Large\bfseries\sffamily}{\hspace{6mm}\Roman{section}.\arabic{subsection}.}{1ex}{}
\titlespacing{\subsection}{6mm}{0.15\baselineskip}{0.15\baselineskip}
\titleformat{\subsubsection}[hang]{\color{purple}\large\bfseries\sffamily}{\hspace{9mm}\Roman{section}.\arabic{subsection}.\alph{subsubsection}.}{1ex}{}
\titlespacing{\subsubsection}{9mm}{0.15\baselineskip}{0.15\baselineskip}

%====boxes
\usepackage[normalulem]{CreationBoites}
\setKVdefault[cpaltboites]{SouligneLabel=true}
\newfontfamily\policetititreboite{MintSpirit}[Scale=MatchLowercase]
\renewcommand\policetitreboite{\large\bfseries\policetititreboite}
\CreationBoiteAltResetSection[SaumonClair]{cintro}{cbcptintro}{Intro}{Intros}{\char"2023\,}%
\CreationBoiteAltResetSection[VertForet]{cdefi}{cbcptdef}{Définition}{Définitions}{\char"2023\,}%
\CreationBoiteAltResetSection[BleuNuit]{cexo}{cbcptexo}{Exercice}{Exercices}{\char"2023\,}%
\CreationBoiteAltResetSection[Saumon]{cprop}{cbcptprop}{Propriété}{Propriétés}{\char"2023\,}%
\CreationBoiteAltResetSection[Saumon]{ccscq}{cbcptcscq}{Conséquence}{Conséquences}{\char"2023\,}%
\CreationBoiteAltResetSection[Brique]{cthm}{cbcptthm}{Théorème}{Théorèmes}{\char"2023\,}%
\CreationBoiteAltResetSection[BleuNuit]{crmq}{cbcptrmq}{Remarque}{Remarques}{\char"2023\,}%
\CreationBoiteAltResetSection[TurquoiseInter]{cexemple}{cbcptexemple}{Exemple}{Exemples}{\char"2023\,}%
\begin{document}

\tkzBannerTri[maincolor=TitreMarron,type=CH,blockwidth=auto,logo=\faAddressBook,swap]{07}{Mon document}

\section{Ma première section}

\subsection{Ma première sous-section}

\begin{cintro}
\lipsum[1][1-2]
\end{cintro}

\begin{cdefi}
\lipsum[1][1-2]
\end{cdefi}

\begin{cdefi}
\lipsum[1][1-2]
\end{cdefi}

\subsection{Ma deuxième sous-section}

\begin{cintro}
\lipsum[1][1-2]
\end{cintro}

\begin{cprop}
\lipsum[1][1-2]
\end{cprop}

\section{Ma deuxième section}

\subsection{Ma première sous-section}

\begin{cintro}
\lipsum[1][1-2]
\end{cintro}

\begin{cdefi}
\lipsum[1][1-2]
\end{cdefi}

\begin{cdefi}
\lipsum[1][1-2]
\end{cdefi}

\subsection{Ma deuxième sous-section}

\begin{cintro}
\lipsum[1][1-2]
\end{cintro}

\begin{cprop}
\lipsum[1][1-2]
\end{cprop}

\end{document}