/* =========================================================
   STYLE SPÉCIFIQUE - SÉANCE 2 : Types caractère & chaîne de caractères
   Analyseur indicé de chaînes de caractères (Base 0)
   ========================================================= */

.char-pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  padding: 1.25rem;
  background: #0f172a;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.char-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.char-cell:hover {
  transform: translateY(-2px);
}

.char-cell.is-prefix {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.char-cell.is-sep {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.28);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
}

.char-cell.is-suffix {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.18);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.char-val {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
}

.char-idx {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: monospace;
  font-weight: 600;
  margin-top: 2px;
}
