@font-face {
	font-family: 'Alan Sans';
	src: url('/font/Alan_Sans/static/AlanSans-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'Alan Sans';
	src: url('/font/Alan_Sans/static/AlanSans-Bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}
@font-face {
	font-family: 'Playwrite NO';
	src: url('/font/Playwrite_NO/static/PlaywriteNO-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

:root {
	--coul-txt: #4d2912;
	--coul-fond: #ffefdb;
	--coul-acc: red;
}

* {
	box-sizing: border-box;
}
html, body {
	margin: 0;
	padding: 0;
	width: 100%;
}
body {
	color: var(--coul-txt);
	background-color: var(--coul-fond);
	text-align: center;
	font-family: "Alan Sans", sans-serif;
}
.ligne {
	--s: 25px;
	--b: 8px;

	height: calc(2*var(--s));
	display: grid;
}
.ligne::before {
	content: "";
	--_g: calc(-.6*var(--s)), #0000 calc(99% - var(--b)),var(--coul-acc) calc(101% - var(--b)) 99%,#0000 101%;
	--_r: calc(1.166*var(--s) + var(--b)/2) at left 50%;
	background :
		radial-gradient(var(--_r) bottom var(--_g)) 
			calc(50% - var(--s)) calc(50% - var(--s))/calc(4*var(--s)) calc(2*var(--s)),
		radial-gradient(var(--_r) top    var(--_g)) 
			calc(50% + var(--s)) calc(50% + var(--s))/calc(4*var(--s)) calc(2*var(--s));
}
main {
	width: 630px;
	margin: 0 auto;
	padding: 0 15px;
}

h1 {
	font-family: 'Playwrite NO', cursive;
	font-size: 2rem;
	color: var(--coul-acc);
}
h2 {
	font-family: 'Playwrite NO', cursive;
	text-align: center;
}
h3 {
	margin-bottom: 10px;
}
h4 {
	font-size: 1.8rem;
	margin-bottom: 10px;
}
p {
	font-size: 1.2rem;
}
a,
a:hover,
a:active,
a:visited {
	color: var(--coul-txt);
}
.cadre {
	margin: auto;
	margin-top: 1.5rem;
	border: solid 3px var(--coul-txt);
	border-radius: 30px;
	text-align: left;
	padding: 0 15px 15px 15px;
}
.cadre input {
	margin-top: 15px;
}
.cadre input[type="range"] {
	width: 100%;
}
.cadre label {
	padding-left: 5px;
}
button {
	margin: 1.5rem auto;
	border: solid 3px var(--coul-txt);
	background-color: var(--coul-fond);
	color: var(--coul-txt);
	font-family: 'playwrite no', cursive;
	font-size: 1.2rem;
	border-radius: 16px;
	padding: 15px;
	cursor: pointer;
}
button:hover {
	background-color: var(--coul-txt);
	color: var(--coul-fond);
}
.modele3d {
	width: 100%;
	height: min(600px, 100cqw);
}
.stats {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 30px auto;
}
.stats-ligne {
	display: flex;
	margin: auto;
	width: fit-content;
	gap: 20px;
}
.stats .texte--haut,
.stats .texte--bas {
	letter-spacing: .1em;
	text-align: center;
	margin: 0;
}
.stats-ligne .texte--gauche,
.stats-ligne .texte--droite {
	writing-mode: vertical-lr;
	text-orientation: upright;
	letter-spacing: -.3em;
	text-align: center;
	margin: auto;
}
.graphique {
	position: relative;
	width: 360px;
	height: 240px;
	margin: 0;
	border: solid 3px var(--coul-txt);
	border-radius: 20px;
}
.graphique .axe_x,
.graphique .axe_y {
	position: absolute;
	border: dashed 2px var(--coul-txt);
}
.graphique .axe_x {
	width: 100%;
	height: 0;
	top: 50%;
	left: 0;
}
.graphique .axe_y {
	width: 0;
	height: 100%;
	top: 0;
	left: 50%;
}
.point {
	position: absolute;
	width: 24px;
	height: 24px;
	transform: translate(-50%, -50%);
}

@media screen and (max-width: 639px)
{
	main {
		width: auto;
	}
}
@media (prefers-color-scheme: dark)
{
	:root {
		--coul-txt: #ffefe7;
		--coul-fond: #362216;
		--coul-acc: #ffba24;
	}
}


