* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display: grid;
  grid-template-columns: 4fr 5fr 4fr;
  align-items: center;
  min-height: 100vh;
  gap: 10px;
}
.sudoku {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.txtError {
  font-size: 26px;
  color: red;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.regles {
  background: #f5f5f5;
  border: 0.5px solid #ddd;
  border-radius: 12px;
  padding: 1.25rem;
  width: fit-content;
  margin: 1rem;
}
.regles h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
}
.regles > p:first-of-type {
  font-size: 14px;
  color: #666;
  margin: 0 0 1rem;
}
.regles > p:last-of-type {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.regles ul {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.regles ul li {
  font-size: 13px;
  color: #555;
}

input:focus {
  outline: none;
}
main {
  display: grid;
  grid-template-columns: repeat(3, 3fr);
  width: 400px;
  height: 400px;
  border-top: 3px solid black;
  border-left: 3px solid black;
}
main div {
  border-right: 3px solid black;
  border-bottom: 3px solid black;
  display: grid;
  grid-template-columns: repeat(3, 3fr);
}
main input {
  width: 100%;
  height: 100%;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  border-top: none;
  border-left: none;
  text-align: center;
  font-size: 22px;
  cursor: pointer;
  position: relative;
  z-index: 0;
  caret-color: transparent;
}

.activeBorderNormal {
  box-shadow: inset 0 0 0 2px #6e9eff;
  z-index: 2;
}
.activeBgNormal {
  background-color: #e9f2ff;
  box-shadow: inset 0 0 0 2px #4a90e2;
  z-index: 3;
}
.activeBorderBrouillon {
  box-shadow: inset 0 0 0 2px #34ea55;
  z-index: 2;
}
.activeBgBrouillon {
  background-color: #e4ffe9;
  box-shadow: inset 0 0 0 2px #41ff64;
  z-index: 3;
}

.section-btn {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 50px;
}
button {
  width: 100px;
}

.affiche {
  background-color: #8b8b8b21;
  color: rgba(0, 0, 0, 0.685);
  cursor: not-allowed;
  user-select: none;
}
.bon {
  background-color: #26ff005f;
  color: black;
}
.mauvais {
  background-color: #ff00004e;
  color: black;
}
.indice {
  background-color: #009dff21;
  color: rgb(0, 0, 0);
  cursor: not-allowed;
}

button {
  background-color: #4a90e2;
  height: 38px;
  width: 120px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(74, 144, 226, 0.4);
  transition: all 0.3s ease;
}
button:active {
  background-color: #3874b9;
  transform: translateY(1px);
}

.numbers {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  width: 100%;
}
.numbers .nb-child {
  width: calc(100% / 9.5);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid black;
  border-radius: 5px;
  user-select: none;
  font-size: 24px;
}
.numbers .nb-child:hover {
  cursor: pointer;
}
