body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 20px;
    
  }
   
  .container {
    display: flex;
    flex-direction: column; /* grille au-dessus, réserve en dessous */
    align-items: center;
    gap: 20px;
    margin: 20px 0;
  }
   
  .grid {
    display: grid;
    grid-template-columns: repeat(6, 140px);
    grid-template-rows: repeat(6, 140px);
    border: 2px solid rgb(206, 249, 255);
    background-image: url("images/back.jpg"); /* chemin de ton image */
    background-repeat: no-repeat;           /* évite la répétition */
    background-size: cover;                 /* couvre tout l’écran */
    background-position: center;            /* centre l’image */
  }
   
  .cell {
    width: 140px;
    height: 140px;
    border: 1px solid rgb(37, 37, 37); /* cadrillage noir visible */
    display: flex;
    align-items: center;
    justify-content: center;
  }
   
  .reserve {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 800px;
    min-height: 100px;
    padding: 10px;
    border: 1px dashed #333;
    background: #c9c9c9;
    border-radius: 5%;
    justify-content: center;
  }
   
  .piece {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;

    cursor: grab;
    user-select: none;
  }
   
  /* Images pour les types */
  .chat.orange {
    background-image: url("images/chat_orange.png");
  }
   
  .chat.gray {
    background-image: url("images/chat_gray.png");
  }
   
  .chaton.orange {
    background-image: url("images/chaton_orange.png");
  }
   
  .chaton.gray {
    background-image: url("images/chaton_gray.png");
  }
   
  .dragging {
    opacity: 0.5;
  }
   
  .controls {
    margin-top: 20px;
  }
   
  button {
    margin: 2px;
    padding: 5px 10px;
    font-size: 20px;
  }