#board{
  display:grid;
  grid-template-columns: repeat(8, 70px);
  grid-template-rows: repeat(8, 70px);
  width:570px;
  margin:20px auto;
  border:5px solid #333;
}

/* ===================== */
/* PIONS DE DAMES */
/* ===================== */

.cell {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-session {
    margin-bottom: 15px;
    color: #ddd;
    font-weight: bold;
}

.piece {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* 🔴 PION JOUEUR */
.piece.player {
  background: radial-gradient(circle at top, #ff6b6b, #b30000);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.3),
    inset 0 -4px 6px rgba(0,0,0,0.4),
    0 6px 10px rgba(0,0,0,0.5);
}

/* ⚫ PION IA */
.piece.ai {
  background: radial-gradient(circle at top, #666, #000);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.2),
    inset 0 -4px 6px rgba(0,0,0,0.6),
    0 6px 10px rgba(0,0,0,0.6);
}

/* ✨ SURVOL */
.piece:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

/* ===================== */
/* 👑 DAMES */
/* ===================== */

.piece.king::after {
  content: "♛";
  position: absolute;
  font-size: 28px;
  color: gold;
  text-shadow: 0 0 6px rgba(255,215,0,0.8);
}

/* ===================== */
/* PION SÉLECTIONNÉ */
/* ===================== */

.piece.selected {
  outline: 3px solid #00c8ff;
  outline-offset: 3px;
}


.dark{ background:#4b2e1e; }
.light{ background:#f0d9b5; }

.white{ background:#fff; border:2px solid #ccc; }
.black{ background:#000; border:2px solid #333; }

.selected{
  outline:4px solid gold;
}

.move{
  box-shadow: inset 0 0 0 4px rgba(0,255,0,0.7);
}

.result-ok,.result-no{
  display:none;
  margin:10px auto;
  padding:10px;
  width:560px;
  border-radius:8px;
  text-align:center;
  font-weight:bold;
}

.king{
  box-shadow: 0 0 0 4px gold inset;
}

.result-ok{ border:1px dashed lightgreen; }
.result-no{ border:1px dashed lightcoral; }

.formulaire-input-cat-roulette {
    display: inline-flex;
    position: relative;
    width: fit-content;
	vertical-align: middle;
}

.formulaire-input-cat-roulette label {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: bold;
    color: rgb(169, 169, 173);
    margin-top: 6px;
    background: none;
}

.formulaire-input-cat-roulette span {
    margin: 8px 0px 0px 10px;
}

.form-input-form-mbr-cat-roulette {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgb(255, 255, 255);
    font-size: 12px;
    padding: 10px 10px 10px 40px;
    width: fit-content;
    outline: none;
    background: rgb(26, 26, 26);
    border-radius: 8px;
    height: 38px;
	display: inline-block;
}

@media(max-width:700px){
  #board{
    transform:scale(0.8);
  }
}
