:root {
	/* Un seul monde : bleu d'encre, cases blanches, le fil en pointilles jaunes. Une colonne. */
	color-scheme: dark;
	--encre: #1b2f8f;
	--encre-fonce: #13226b;
	--case: #ffffff;
	--texte-case: #13226b;
	--fil: #ffd23f;
	--clair: #e8ecff;
	--vert: #37c871;
	--jaune: #ffd23f;
	--orange: #ff9a3d;
	--violet: #b78cff;
	--titre: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
	--corps: "Atkinson Hyperlegible", Verdana, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
	background: var(--encre);
	color: var(--clair);
	font-family: var(--corps);
	font-size: 17px;
	line-height: 1.45;
}
main {
	max-width: 440px;
	margin: 0 auto;
	padding: 20px 16px 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
header { display: flex; flex-direction: column; gap: 6px; }
h1 {
	font-family: var(--titre);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	margin: 0;
	color: var(--fil);
	letter-spacing: -0.5px;
}
h2 { font-family: var(--titre); font-size: 24px; margin: 0; color: var(--fil); text-wrap: balance; }
p { margin: 0; }
.numero { font-size: 15px; opacity: 0.85; }
.chaine { display: flex; flex-direction: column; }
.mot {
	display: flex;
	gap: 5px;
	padding: 8px;
	border-radius: 12px;
	border: 2px solid transparent;
	background: none;
	font: inherit;
	color: inherit;
	text-align: left;
	width: 100%;
}
button.mot { cursor: pointer; }
button.mot:focus-visible { outline: 3px solid var(--fil); outline-offset: 2px; }
.mot.choisi { border-color: var(--fil); background: var(--encre-fonce); }
.lettre {
	width: 34px;
	height: 42px;
	border-radius: 7px;
	background: var(--case);
	color: var(--texte-case);
	font-family: var(--titre);
	font-weight: 800;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.lettre.vide { background: rgba(255, 255, 255, 0.16); }
.mot.e0 .lettre { background: var(--vert); }
.mot.e1 .lettre { background: var(--jaune); }
.mot.e2 .lettre { background: var(--orange); }
.mot.e3 .lettre { background: var(--violet); }
.lien {
	min-height: 26px;
	margin-left: 24px;
	padding-left: 14px;
	border-left: 4px dotted var(--fil);
	font-size: 15px;
	display: flex;
	align-items: center;
}
form { display: flex; gap: 8px; }
input[type="text"] {
	flex: 1;
	min-width: 0;
	height: 52px;
	border-radius: 12px;
	border: 2px solid var(--case);
	background: var(--case);
	color: var(--texte-case);
	font-family: var(--titre);
	font-weight: 700;
	font-size: 22px;
	padding: 0 14px;
	text-transform: uppercase;
}
input[type="text"]:focus-visible { outline: 3px solid var(--fil); outline-offset: 2px; }
.bouton {
	min-height: 52px;
	padding: 0 18px;
	border-radius: 12px;
	border: 0;
	background: var(--fil);
	color: var(--texte-case);
	font-family: var(--titre);
	font-weight: 800;
	font-size: 18px;
	cursor: pointer;
}
.bouton:focus-visible { outline: 3px solid var(--case); outline-offset: 2px; }
.message { min-height: 26px; font-weight: 700; }
.compte { display: flex; gap: 18px; font-size: 15px; flex-wrap: wrap; }
.compte b { font-family: var(--titre); font-size: 22px; color: var(--fil); font-variant-numeric: tabular-nums; }
.fin, .hier {
	background: var(--encre-fonce);
	border-radius: 16px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.palier { font-family: var(--titre); font-size: 20px; font-weight: 800; }
.carres { font-size: 28px; letter-spacing: 3px; }
.rang { font-weight: 700; }
.partage {
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	white-space: pre-wrap;
	user-select: all;
	font-size: 16px;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; text-align: center; }
.stats dt { font-size: 13px; opacity: 0.85; }
.stats dd { margin: 0; font-family: var(--titre); font-size: 24px; color: var(--fil); font-variant-numeric: tabular-nums; }
.discret { font-size: 15px; opacity: 0.85; }
footer { display: flex; gap: 16px; font-size: 14px; }
a { color: var(--clair); }
a:focus-visible { outline: 3px solid var(--fil); outline-offset: 2px; }
[hidden] { display: none !important; }
.texte { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 380px) {
	.lettre { width: 30px; height: 38px; font-size: 21px; }
	h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: no-preference) {
	.mot.secoue { animation: secoue 0.3s; }
	@keyframes secoue {
		25% { transform: translateX(-5px); }
		75% { transform: translateX(5px); }
	}
}
