Header problems in fullwidth environment in tufte-book

I'm working under tufte-book documentclass, and I want to have my backmatter (Bibliography, Glossary, Index and TOC) in a fullwidth environment. For this, I use the following code (example for bibliography):

\documentclass[symmetric,justified,marginals=raggedouter]{tufte-book}
\begin{document}
\backmatter
\newgeometry{left=1in,right=1in}
\bibliographystyle{plain-fr}
\bibliography{sample-handout}
\clearpage
\restoregeometry

\end{document}

Unfortunatly, the headers go outside the page margins as follows:

I tried the following code, proposed in the answer of the question Bibliography on multiple pages :

\documentclass[symmetric,justified,marginals=raggedouter]{tufte-book}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{tcolorbox}[enhanced, breakable, colback=white, colframe=white, check odd page, toggle left and right, grow to right by=\marginparwidth+\marginparsep, toggle enlargement=evenpage]
\bibliography{sample-handout}
\bibliographystyle{plain-fr}
\end{tcolorbox}
\end{document}

But it doesn't work well as the headers remain those of the previous chapter, and not those of the Bibliography !

Who can help me ?

• Have you tried this here: tex.stackexchange.com/questions/46298/… – DG' May 26 '20 at 9:59
• I don't understant why, but \printbibliography is an undefined control sequence... so it doesn't work. – Phil8544 May 26 '20 at 10:22
• Oh, you you need to use BibLaTeX for that – DG' May 26 '20 at 10:56

I found a solution which works until now only for the bibliography chapter (the use of tcolorbox does not seems to work for Index, Glossary and TOC as I think modifications are needed in the preambule to allow it, but I don't know how to fix the problem...). This is the code to obtain the following result:

\documentclass[nobib,twoside,symmetric,justified,marginals=raggedouter]{tufte-book}
\usepackage{csquotes}
\usepackage[backend=biber,style=authoryear-icomp]{biblatex}
\makeatletter
\iffieldundef{shorthand}
{\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
{\usebibmacro{cite:ibid}}
{\iffieldequals{namehash}{\cbx@lasthash}
{\setunit{\compcitedelim}}
{\printnames{labelname}%
\setunit*{\printdelim{nameyeardelim}}%
\printlabeldateextra
\setunit*{\printdelim{nametitledelim}}%
\savefield{namehash}{\cbx@lasthash}}%
\usebibmacro{cite:title}}}%
{\usebibmacro{cite:shorthand}%
\usebibmacro{cite:reinit}}%
\setunit{\multicitedelim}}
\makeatother

\newbibmacro*{cite:title}{%
\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}

{\usebibmacro{cite:init}%
\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
{}
{\usebibmacro{cite:postnote}}

{\setunit{\multicitedelim}}

\usepackage[most]{tcolorbox}

\defbibenvironment{bibliography}
{\list{}{\parsep\bibparsep}}
{\endlist}
{\item}

\AtEveryBibitem{\hskip-\bibhang}

\chapter*{#1}\markboth{#1}{}%
}

\PassOptionsToPackage{hyphens}{url}

\usepackage{glossaries}
\makeglossaries
\defglsentryfmt[main]{\glsgenentryfmt\ifglsused{\glslabel}{}{*}}
\usepackage{imakeidx}

\makeindex[name=piece,title={Index des \oe uvres},columns=2]
\makeindex[title=Index,columns=2]

\marginparsep\relax}
#1

\begin{document}

\backmatter

\begin{tcolorbox}[enhanced, breakable, colback=white, colframe=white, check odd page, toggle left and right, grow to right by=\marginparwidth+\marginparsep, toggle enlargement=evenpage]

\end{tcolorbox}

\printglossaries
\clearpage

\printindex
\clearpage

\printindex[piece]
\clearpage

\tableofcontents
\clearpage

\end{document}

The figure shows the result: it is possible to have a fullwidth environment for bibliography in a tufte-book documentclass, with good headers and footers: