\documentclass[paper=a4,12pt]{article}
\usepackage[left=2cm,right=1.7cm,
top=1.57cm,bottom=2.3cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{na-border}
\usepackage{contour}
\usepackage{polyglossia}
\makeatletter 
\AtBeginDocument{\bidi@isloaded[]{arabxetex}}
\makeatother
\setdefaultlanguage[calendar=gregorian,locale=algeria]{arabic}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.4]{Amiri}
\newfontfamily\arabicfontsf[Script=Arabic,Scale=1.4]{Amiri}
\newfontfamily
\corna[Script=Arabic,Scale=5]{CornPop}
\usepackage[novoc]{arabxetex}
\setotherlanguage{french}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\headrulewidth}{0pt}
\rhead{ }
\lhead{}
\chead{ }
\pagestyle{fancy}
\parindent=0pt
\cfoot{}
\begin{document} 
\naborder{MidnightBlue}{f}
\vskip1cm
أكتب هنا 
\newpage
\naborder{red!50!black}{d} 
\newpage
\naborder{DarkSlateGray}{f}
\newpage
\naborder{Maroon}{p}  
\newpage
\naborder{Purple4}{E} 
\newpage
\naborder{magenta}{1} 
\newpage
\naborder{green}{h} 
\newpage
\naborder{blue!50!white}{n} 
\newpage
\naborder{DarkSlateGray}{w} 
\newpage
\naborder{red}{b} 
\newpage
\naborder{blue}{o} 

\begin{french}
icrire ici bon courage \\
\centerline{\bordertitle{yellow}{white}{memoire de mathémathéqiue}}
\end{french}
\newpage
\naborder{magenta}{c} 

\begin{french}
icrire ici bon courage \\
\centerline{\bordertitle{yellow}{white}{memoire de mathémathéqiue}}
\end{french}
\newpage
\naborder{magenta}{q} 

\begin{french}
icrire ici bon courage \\
\centerline{\bordertitle{yellow}{white}{memoire de mathémathéqiue}}
\end{french}
\newpage
\naborder{magenta}{x} 

\begin{french}
icrire ici bon courage \\
\centerline{\bordertitle{yellow}{white}{memoire de mathémathéqiue}}
\end{french}
\newpage
\naborder{blue}{l} 

اكتب هنا
\end{document}