Hi,
I'm trying to get the same pagination as in the attached photos. Using the wiki and Wolfgang's codes I get something interesting but not very elegant (\ACFRAME{}). Only, I don't see how to emphasize the title of each chapter in the same way.
Thanks.
Fabrice

\startcomponent[essai]

\setuplayout
  [
    backspace=28mm,
    topspace=35mm,
    width=140mm
  ]

\setuppagenumbering[alternative=doublesided,location=]

\setupbodyfont[pagella,11pt]

\mainlanguage[fr]

\setcharacterspacing
  [frenchpunctuation]

\startuseMPgraphic{acframeleft}
     fill OverlayBox
         leftenlarged (BackSpace)
         rightenlarged 5mm
         withcolor "lightgray";
     setbounds currentpicture to OverlayBox;
\stopuseMPgraphic

\defineoverlay
   [acframeleft]
   [\useMPgraphic{acframeleft}]


\defineframed
   [ACFRAMELEFT]
   [frame=off,
    width=fit,
    height=1ex,
    background=acframeleft,
    location=,
   ]

\startuseMPgraphic{acframeright}
     fill OverlayBox
         leftenlarged 5mm
         rightenlarged 42mm
         withcolor "lightgray";
     setbounds currentpicture to OverlayBox;
\stopuseMPgraphic

\defineoverlay
   [acframeright]
   [\useMPgraphic{acframeright}]


\defineframed
   [ACFRAMERIGHT]
   [frame=off,
    width=fit,
    height=1ex,
    background=acframeright,
    location=hanging,
   ]

\setupheader[style=\tfx]

\startsetups [header:leftpage]
    \setuplabeltext
     [fr]
     [chapter=\tfx Chapitre]
     \ACFRAMERIGHT{}
     \hfill
     \labeltext{chapter} \getmarking[chapternumber] \getmarking[chapter]
\stopsetups

\startsetups [header:rightpage]
    \getmarking[sectionnumber]
    \space
    \getmarking[section]
    \hfill
    \ACFRAMERIGHT{}
\stopsetups

\setupheadertexts
     [\directsetup{header:rightpage}] [\prefixedpagenumber]
     [\prefixedpagenumber]  [\directsetup{header:leftpage}]



\defineframedtext
   [ChapterFrame]
   [frame=on,
    width=local,
    height=broad,
    after={\blank[2*line]},
    offset=0pt]


\startsetups [section:chapter]
 
\setuphead
   [chapter]
   [align=leftright,
    textcommand=\groupedcommand{\blank[medium]}{},
    numbercolor=,
    textstyle=,
    numberstyle=,
    numbercommand=,
    before=\startChapterFrame,
    after=\stopChapterFrame,
    header=nomarking]

\stopsetups

\startsectionblockenvironment [bodypart]
    \directsetup{section:chapter}
\stopsectionblockenvironment

\doifmode{*component}{\directsetup{section:chapter}}

\setuplabeltext
   [fr]
   [chapter=\tf Chapitre\space]


\startchapter
  [title={Polynômes}]
  \startsection
    [title={Forme réduite et identification}]
    \dorecurse{6}{\input knuth}
  \stopsection
  \startsection
    [title={Polynômes du second degré}]
      \dorecurse{6}{\input knuth}
  \stopsection
\stopchapter
\stopcomponent