@charset "UTF-8";
/* Image affichée avant le lancement de la partie */
#GamingImage2 {
  position: relative;
  width: 100%;
  max-width: 522px;
  margin-inline: auto;
  border: 2px solid hsl(221, 14%, 91%);
  border-radius: 0.75rem;
  overflow: hidden;
}

#GamingImage2 img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.5;
}

#GamingImage2 > button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 40px;
}

/* Conteneur recevant la grille */
#GamingGrid2 {
  width: 100%;
}

/* Grille Sudoku */
.sudoku-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  width: 100%;
  max-width: 522px;
  aspect-ratio: 1;
  margin-inline: auto;
  border: 2px solid #64748b;
  background: #fff;
}

/* Cellules */
.sudoku-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-right: 1px solid #d9dee7;
  border-bottom: 1px solid #d9dee7;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: clamp(1.1rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1;
  color: #334155;
  cursor: pointer;
  touch-action: manipulation;
}

/* Séparations verticales des blocs 3×3 */
.sudoku-cell[data-col="2"],
.sudoku-cell[data-col="5"] {
  border-right: 2px solid #64748b;
}

/* Séparations horizontales des blocs 3×3 */
.sudoku-cell[data-row="2"],
.sudoku-cell[data-row="5"] {
  border-bottom: 2px solid #64748b;
}

/* Suppression des bordures externes doublées */
.sudoku-cell[data-col="8"] {
  border-right: 0;
}

.sudoku-cell[data-row="8"] {
  border-bottom: 0;
}

/* Chiffres initiaux */
.sudoku-cell.is-fixed {
  font-weight: 600;
  color: #27364d;
  cursor: default;
}

/* Chiffres saisis par le joueur */
.sudoku-cell.is-player {
  color: #3273dc;
  font-weight: 600;
}

/* Ligne / colonne / bloc associés */
.sudoku-cell.is-related {
  background-color: #f3f6fa;
}

/* Même valeur */
.sudoku-cell.is-same-value {
  background-color: #e7eef8;
}

/* Cellule active : priorité visuelle maximale */
.sudoku-cell.is-selected {
  position: relative;
  z-index: 1;
  background-color: #dce8f8;
  outline: 2px solid #3273dc;
  outline-offset: -2px;
}

/* Navigation clavier */
.sudoku-cell:not(.is-fixed):focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #3273dc;
  outline-offset: -2px;
}

/* Pavé numérique */
.sudoku-numbers {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.4rem;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.sudoku-number {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  background-color: #fff;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  color: #27364d;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Chiffre actuellement sélectionné */
.sudoku-number.is-selected {
  border-color: #3273dc;
  background-color: #3273dc;
  color: #fff;
}

/* Navigation clavier */
.sudoku-number:focus-visible {
  outline: 2px solid #3273dc;
  outline-offset: 2px;
}

/* Hover uniquement sur les appareils disposant d'un pointeur */
@media (hover: hover) {
  .sudoku-number:hover {
    border-color: #3273dc;
    background-color: #f3f6fa;
  }
  .sudoku-number.is-selected:hover {
    background-color: #3273dc;
    color: #fff;
  }
}
/* Mobile */
@media screen and (max-width: 768px) {
  .sudoku-numbers {
    gap: 0.25rem;
    max-width: 100%;
  }
  .sudoku-number {
    border-radius: 5px;
    font-size: 1.1rem;
  }
}
/* Chronomètre */
.timer-value {
  letter-spacing: 0.2em;
}

/*# sourceMappingURL=sudoku.css.map */
