body .container {
    font-size: 1.8em;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background-color: #f1f5f9;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #e2e8f0;

  font-family: 'Inter', sans-serif;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

header nav {
  font-size: 1rem;
  color: #64748b;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hands {
  text-align: center;
  margin-top: 40px;
}

.cards-chooser {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  list-style: none;
}

.cards-chooser li {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  background-color: #f1f5f9;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.9rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin: 10px;
}

.cards-chooser li:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

.cards-chooser li:active {
  transform: scale(0.95);
}

.cards-chooser li a {
  text-decoration: none;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background-color: #fff;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: transform 0.15s ease;
}

.card-wrapper:hover {
  transform: scale(1.05);
}

.card-value {
  z-index: 1;
  text-align: center;
  line-height: 1;
  /* word wrap */
  word-break: break-word;
}

.card .detail-score span, .card .detail-sum span {
  margin: 5px;
}

.card .detail-score {
  position: absolute;
  bottom: 5px;
  left: 80%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #6b7280; /* gray-500 */
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card .detail-sum {
  position: absolute;
  bottom: 5px;
  left: 20%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #6b7280; /* gray-500 */
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ✨ Badge diagonale améliorée */
.badge {
  position: absolute;
  top: 10px;
  right: -24px;
  transform: rotate(30deg);
  transform-origin: top right;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  color: white;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* 🌈 Variantes de couleurs */
.badge-success {
  background-color: #16a34a; /* green-600 */
}

.badge-warning {
  background-color: #facc15; /* yellow-400 */
  color: #1f2937;
}

.badge-dark {
  background-color: #6b7280; /* gray-500 */
}


.result {
  margin-top: 20px;
  font-size: 1.2em;
}

.result .alert {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.4em;
}

.score-box {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  padding: 20px;
  background-color: #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.score-box .stop,
.score-box .continue {
  flex: 1;
  text-align: center;
  font-size: 1.6em;
  font-weight: bold;
  padding: 10px;
  border-radius: 8px;
}

.score-box .stop {
  background-color: #fee2e2;
  color: #991b1b;
}

.score-box .continue {
  background-color: #dcfce7;
  color: #15803d;
}

.card-0  { color: #1f2937; }   /* gris sombre */
.card-1  { color: #d63384; }   /* violet fuchsia */
.card-2  { color: #facc15; }   /* jaune */
.card-3  { color: #e3342f; }   /* rouge */
.card-4  { color: #3b82f6; }   /* bleu clair */
.card-5  { color: #10b981; }   /* vert */
.card-6  { color: #db2777; }   /* rose magenta */
.card-7  { color: #6d28d9; }   /* violet foncé */
.card-8  { color: #65a30d; }   /* vert clair */
.card-9  { color: #f97316; }   /* orange */
.card-10 { color: #dc2626; }   /* rouge vif */
.card-11 { color: #1e40af; }   /* bleu marine */
.card-12 { color: #4b5563; }   /* gris-violet */

.card a {
  font-weight: bold;
  font-size: 1.5rem;
  color: inherit;
  text-decoration: none;
}
/*
.card:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

.card:active {
  transform: scale(0.96);
}
  */
