* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  color: #333;
  margin-bottom: 10px;
}

#plateau {
  display: grid;
  grid-template-columns: repeat(10, 50px);
  grid-template-rows: repeat(10, 50px);
  gap: 1px;
  background: #5b3a1f;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,.3);
}

.case {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}

.case-claire {
  background: #deb887;
}

.case-foncee {
  background: #8b4513;
}

.case:hover {
  filter: brightness(1.08);
}

.pion {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #222;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pion-j1 {
  background: #ffffff;
}

.pion-j2 {
  background: #111111;
}

.pion.selectionne {
  transform: scale(1.12);
  box-shadow: 0 0 12px yellow;
}

.case-possible {
  box-shadow: inset 0 0 0 3px rgba(0,255,0,.5);
}

/* Point vert indiquant un déplacement possible */
.move-point {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00ff00;
  position: absolute;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 8px #00ff00;
}

.info-jeu {
  margin-top: 20px;
  text-align: center;
}

#nouvelle-partie {
  margin-top: 10px;
  padding: 10px 20px;
  background: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}

#nouvelle-partie:hover {
  background: #45a049;
}

footer {
  margin-top: 20px;
  color: #666;
  text-align: center;
}

.dame {
  border: 4px solid gold;
  box-shadow: 0 0 10px gold;
}

@keyframes capture {
  0% {
      transform: scale(1);
      opacity: 1;
  }

  50% {
      transform: scale(1.25);
  }

  100% {
      transform: scale(0);
      opacity: 0;
  }
}

.capture {
  animation: capture .5s forwards;
}