% !TeX TXS-program:compile = txs:///lualatex

\documentclass[a4paper,french,11pt]{article}
\usepackage[margin=1cm]{geometry}
\usepackage{ProfLycee}
\usepackage{unicode-math}
\setmainfont{OpenDyslexic}
\setmathfont{Fira Math}
\setmathfont{OpenDyslexic Italic}[range=it/{Latin,latin}]
\setmathfont{OpenDyslexic}[range={"01-"FF,up}]
\setmonofont{OpenDyslexicMono}
\setsansfont{OpenDyslexic}
\usepackage[most]{tcolorbox}
\definecolor{JauneFonce}{HTML}{F2CB62}
\definecolor{BleuTitre}{HTML}{0D61AF}
\usepackage{lipsum}
\usetikzlibrary{decorations,decorations.pathmorphing}

\newtcolorbox{BoiteDys}[1]{%
	enhanced,empty,boxrule=1.25pt,%
	before skip=0.5em,after skip=0.5em,top=4mm,%
	underlay={%
		\tikzset{overlay=false}
		\draw[draw=black,fill=JauneFonce,decorate,decoration={random steps,segment length=10mm,amplitude=0.6pt},ultra thick] (frame.north west) rectangle (frame.south east) ;
		\node[inner sep=4pt,rounded corners=3pt,draw=BleuTitre,line width=1.25pt,rectangle,fill=BleuTitre,anchor=west,xshift=2.5mm,text=white] at (frame.north west) {#1} ;
		}%
}

\begin{document}

\begin{BoiteDys}{Mon titre}
\lipsum[1][1-3]

$f(x)=2x+1 +\dfrac{1}{x}$ ; $g(x)=\left(x^2+1\right)^3$.

$\displaystyle\int_0^4 x \rm{d}x = ?$.

$A = \dfrac{\rm{base} \times \rm{hauteur}}{2}$.
\end{BoiteDys}

\begin{CodePythonLstAlt}*[0.75\linewidth]{flush right}
nb = int(input("Saisir un entier Python positif"))
if (nb %7 == 0) :
	print(f"{nb} est bien divisible par 7")
#endif

def f(x) :
	return x**2
\end{CodePythonLstAlt}

\end{document}