Hello,
With this

\startsubsection
   [title={\darkred Recherche d'une fonction sous contraintes},
    sectionsegments=subsection:subsection,
    numbercommand={\darkred}]


it does not work.
Thanks
Fabrice