body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: rgb(42, 143, 194);
    color: white;
    padding: 15px;
    margin: 0;
  }
  
  button {
    padding: 15px 25px;
    margin: 10px 0;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background-color: rgb(209, 97, 0);
    color: #fff;
    transition: background 0.2s;
  }
  
  button:hover {
    background-color: #555;
  }
  
  input {
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    text-align: center;
  }
  
  input[type="number"] {
    width: 80px;
  }
  
  input[type="text"] {
    width: 250px;
  }
  
  #playerTitle {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  #role {
    font-size: 18px;
    margin: 15px 0;
    white-space: pre-line; /* pour garder les sauts de ligne entre lieu et rôle */
    padding: 15px;
    border-radius: 15px;
    background: #222;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }
  
  #placesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 20px;
  }
  
  .place-card {
    background: #f5f5f5;
    color: #111;
    padding: 18px 10px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    word-wrap: break-word; /* pour que les textes longs ne dépassent pas */
  }
  
  #revealZone {
    margin-top: 30px;
  }
  
  #realPlace {
    background: #111;
    color: #fff;
    padding: 25px;
    border-radius: 20px;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
    word-wrap: break-word;
  }
  
  /* Ajustements pour très petits écrans */
  @media screen and (max-width: 400px) {
    button {
      font-size: 16px;
      padding: 12px 20px;
    }
    #role {
      font-size: 16px;
      padding: 12px;
    }
    .place-card {
      font-size: 14px;
      padding: 15px 8px;
    }
    #realPlace {
      font-size: 22px;
      padding: 20px;
    }
  }
  
  /* Bloc stylé pour chaque joueur révélé */
.reveal-card {
  background: #111;
  color: #fff;
  padding: 20px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
  margin: 15px auto;
  max-width: 500px;
  word-wrap: break-word;
}

/* cartes pour la liste des lieux sur la page d'accueil */
#placesSetup {
  margin-top: 15px;
}

#placesSetup h3 {
  margin-bottom: 10px;
}

#placesGridSetup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

/* Les .place-card sont déjà stylées, rien de plus à faire */