
.menu-langue, .jeu {
	margin: 0 auto;
	background: #fafaf8;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.grille {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 2px;
	margin: 20px auto;
	max-width: 400px;
}

.case {
	aspect-ratio: 1;
	background: #fff;
	border: 1px solid #ddd;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.3s;
}

.case.selected {
	background-color: #ffffcc !important;
}

#mots-anglais {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Colonnes flexibles */
	gap: 10px; /* Espacement entre les mots */
	margin: 20px auto;
	max-width: 100%; /* Ne dépasse pas la largeur de l'écran */
	padding: 0 10px;
}

.mot-anglais {
	padding: 10px;
	background: #f0f0f0;
	border-radius: 5px;
	text-align: center;
	break-inside: avoid; /* Évite de couper un mot en deux */
	cursor: pointer;
}

.mot-anglais.trouve {
	text-decoration: line-through;
	color: #888;
	background: #eee;
}

button {
	padding: 10px 20px;
	background: #4CAF50;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	margin: 10px;
}

button:hover {
	background: #45a049;
}

/* Overlay pour flouter la grille */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 100;
}

.modal {
	background: white;
	padding: 20px;
	border-radius: 10px;
	max-width: 500px;
	text-align: center;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal h2 {
	color: #4CAF50;
}

/* Style pour le modal d'indices */
.modal-hint {
	text-align: center;
	padding: 20px;
}

.hint-options {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 20px;
}

.hint-button {
	padding: 16px 15px;
	margin: 14px 0;
	background-color: #e3b835;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s, transform 0.2s;
}

.hint-button:hover {
	background-color: #f1c645;
	transform: scale(1.05);
}

.hint-info {
	padding: 15px;
	background-color: #f0f8ff;
	border-radius: 5px;
	font-size: 18px;
	border: 1px solid #d1e7ff;
	margin: 10px 0;
}

.hint-info .highlight {
	font-weight: bold;
	color: #0066cc;
	font-size: 20px;
}

.word-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
}

.word-option {
	padding: 10px;
	background: #f0f0f0;
	cursor: pointer;
	border-radius: 5px;
}

.word-option:hover {
	background: #e0e0e0;
}

.word-option.correct {
	background: #aaffaa;
}

.word-option.wrong {
	background: #ffaaaa;
}
