/* CSS */
/* (Version) By sync - Boulette (V7.0.0)
	Jeu Mots Mêlés
*/
body {
	min-height: 100vh; min-height: 100svh; min-height: 100dvh;
	margin: 0px;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(to right, #dbeafe, #f0f9ff);
	display: flex;
	flex-direction: column;
	user-select: text;
	-webkit-user-select: text;
	-ms-user-select: text;
}

@media screen and (max-width: 768px) {
	#scale-wrapper {
		transform: scale(0.8); /* Réduction de 20% */
		transform-origin: top center;
		width: 125%; /* compense le scale */
		margin: 2 auto;
	}
	html, body {
		overflow-x: hidden;
		min-height: 100vh; min-height: 100svh; min-height: 100dvh;
	}
	body {
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
}

.wrapper {
	flex: 1;
	display: flex;
	justify-content: center;
	gap: 15px;
	padding: 20px;
}

.left {
	flex: 1.1; /* Agrandie un peu la grille */
	background-color: white;
}

.right {
	flex: 0.7;
	background-color: white;
	padding: 10px;
	text-align: center; /* ✅ centre tout le texte */
}

.left, .right {
	border-radius: 12px; /* ou la valeur que tu veux */
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* optionnel pour joli effet */
}

h1, h2 {
	text-align: center;
	color: #1e40af;
}

.grid {
	display: grid;
	grid-template-columns: repeat(10, 40px);
	gap: 4px;
	justify-content: center;
	margin-top: 20px;
}

.cell {
	width: 40px;
	height: 40px;
	background-color: #fff;
	border: 1px solid #ccc;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	user-select: none;
	font-weight: bold;
	font-size: 17px; /* tailles des lettre */
	border-radius: 4px;
	transition: background-color 0.2s, transform 0.1s;
}

.cell:hover {
	background-color: #fef9c3;
	transform: scale(1.05);
}

.cell.selected {
	background-color: #fde047;
	color: #111;
}

.cell.found {
	background-color: #4ade80 !important;
	color: white;
}

.word-list ul {
	list-style: none;
	padding: 0.5em; /* ligne bleu gauche */
	margin: 0px;
}

.word-list li {
	font-size: 18px;
	margin: 2px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 7px;
	background-color: #f1f5f9;
	border-radius: 2px;
}

button {
	display: inline-block;
	width: auto; /* taille réduite */
	min-width: 120px;
	margin: 8px auto; /* marge et centrage */
	padding: 6px 12px;
	font-size: 15px;
	cursor: pointer;
	background-color: #3b82f6;
	color: white;
	border: none;
	border-radius: 5px;
	transition: background-color 0.2s;
	text-align: center;
}

button:hover {
	background-color: #2563eb;
}

#resultMessage {
	margin-top: 20px;
	font-weight: bold;
	text-align: center;
	font-size: 18px;
}

footer {
	max-width: 350px;
	width: 50%;
	margin: 0 auto; /* centre horizontalement dans la page */
	display: flex;
	justify-content: center; /* centre le contenu à l'horizontale */
	align-items: center; /* centre verticalement s’il y a de la hauteur */
	font-size: 12px;
	color: var(--muted);
	text-align: center; /* s’assure que le texte à l’intérieur est centré */
}

#timer {
	font-size: 20px;
	font-weight: bold;
	margin: 10px 0px;
	text-align: center;
}
/* FIN CSS */
