body {
  background-image: url('fond.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: sans-serif;
  padding: 40px;
  text-align: center;
}

#zone-saisie {
  margin: 50px auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

textarea {
  width: 300px;
  height: 150px;
  font-size: 16px;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  text-align: center;
  resize: none;
}
textarea::placeholder {
  text-align: center;
  color: #888;
}

button {
  margin-top: 10px;
  padding: 12px 25px;
  font-size: 16px;
  cursor: pointer;
  background: linear-gradient(to right, #8b4513, #e19a33) !important;
  border: none !important;
  border-radius: 10px !important;
  color: white !important;
  font-weight: bold !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

#main-zone {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;
}

.liste-box {
  background: #d6c49c;
  border: 2px solid #b8a173;
  border-radius: 10px;
  padding: 15px;
  width: 25%;
  height: 360px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  box-sizing: border-box;
  overflow: hidden;
}
.liste-box p {
  background: linear-gradient(to bottom right, #c6b085, #e6d5ae);
  border: 1px solid #a48d63;
  border-radius: 6px;
  padding: 6px 10px;
  margin: 6px auto 10px;
  width: 80%;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: #4b3b1f;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), 0 2px 4px rgba(0,0,0,0.2);
}



.liste-box h3 {
  margin-top: 0;
  text-align: center;
  flex-shrink: 0;
}

.liste-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  overflow-y: auto;
  flex-grow: 1;
}

.liste-box li {
  margin: 4px 0;
  word-break: break-word;
}


#roulette-container {
  height: 360px;
  width: 300px;
  border: 2px solid #333;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

#roulette-container::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 40px;
  background-color: rgba(255, 0, 0, 0.5);
  pointer-events: none;
  z-index: 10;
}

#roulette {
  position: absolute;
  width: 100%;
  top: 0;
  transition: top 2s ease-in-out;
}

.pseudo {
  height: 40px;
  line-height: 40px;
  font-size: 18px;
  text-align: center;
}

.gris-clair {
  background-color: #f5c28b; /* orange clair */
}

.gris-fonce {
  background-color: #a85b2a; /* marron doux */
}
.elimine {
  background-color: #ff3b3b !important;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 15px 5px rgba(255,0,0,0.6);
  transform: scale(1.1);
}
.expulse {
  animation: expulsion 0.8s ease-out forwards;
}
@keyframes expulsion {
  0% {
    transform: translateX(0) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateX(300px) rotate(20deg) scale(1);
    opacity: 0;
  }
}

.flou {
  filter: blur(1px);
  opacity: 0.6;
}
.focus {
  filter: none;
  opacity: 1;
  outline: 2px solid black;
}
