.total-row {
  background-color: #f8f9fa;
  font-weight: bold;
}

.score-table {
  margin-top: 1rem;
}

.score-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-table th,
.score-table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: center;
}

.score-table th {
  background: #f8f9fa;
}
.letter.marked-for-deletion::after {
  content: "×";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(220, 53, 69, 0.3);
  color: #dc3545;
  font-size: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}
body {
  font-family: system-ui, sans-serif;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  background-color: #f5f5f5;
}
.container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.board {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.grid {
  display: grid;
  grid-template-columns: repeat(15, 32px);
  grid-template-rows: repeat(15, 32px);
  gap: 1px;
  background: #333;
  padding: 1px;
}
.cell {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  position: relative;
  cursor: pointer;
}
.letter {
  position: absolute;
  width: 30px;
  height: 30px;
  background: #e4d03b;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-weight: bold;
  cursor: pointer;
}
.letter.latest {
  background: #ffd700;
}
/* Style pour les jokers */
.letter.joker {
  background: linear-gradient(135deg, #ffd700 0%, #ff9800 100%);
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}
.letter.joker.latest {
  background: linear-gradient(135deg, #ffd700 0%, #ffa726 100%);
  box-shadow: 0 0 4px rgba(255, 152, 0, 0.5);
}
.letter.joker small {
  color: rgba(255, 255, 255, 0.9);
  font-weight: bold;
}
/* Fin du style des jokers */

.letter small {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.6rem;
}
.TW {
  background: #e41e3f;
  color: white;
}
.DW {
  background: #ff99aa;
}
.TL {
  background: #0033cc;
  color: white;
}
.DL {
  background: #99ccff;
}

.controls {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 300px;
}
input,
button,
select {
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}
button {
  background: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
  margin-right: 0.5rem;
}
button:hover {
  background: #45a049;
}
button.danger {
  background: #dc3545;
}
button.danger:hover {
  background: #c82333;
}
.score {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2196f3;
}
.selected {
  outline: 2px solid #4caf50;
  background: #e8f5e9;
}
#wordInput {
  font-size: 1.2rem;
  width: 200px;
}
.error {
  color: red;
  margin-top: 0.5rem;
}
.instructions {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
}
/* Ajouter à styles.css */
.direction-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cell.selected .direction-arrow {
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.word-list {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.word-list h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

#wordsList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#wordsList li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

#wordsList li:last-child {
  border-bottom: none;
}

.bonus-word {
  color: #2c5282;
  font-weight: bold;
}
.invalid-word {
  color: red;
}
