/* ══════════════════════════════════════════
   ITS Rugby — Le pendu du rugby ([its_pendu])
   Charte It's : angles droits, teal / vanilla / g-bright, Noto Sans héritée
══════════════════════════════════════════ */

.its-pd {
  margin: 2rem 0;
  border: 1px solid #1C3D34;
  border-radius: 0;
  background: #fff;
}

/* ── Barre score / actions ── */
.its-pd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.6rem 1rem;
  background: #1C3D34;
  color: #F2E5D2;
  border-radius: 0;
}
.its-pd-score {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #8ED968;
  letter-spacing: 0.02em;
}
.its-pd-actions {
  display: flex;
  gap: 0.5rem;
}
.its-pd-btn {
  border: 1px solid #8ED968;
  border-radius: 0;
  background: #8ED968;
  color: #1C3D34;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.4em 1.1em;
  cursor: pointer;
}
.its-pd-btn:hover,
.its-pd-btn:focus-visible {
  background: #F2E5D2;
  border-color: #F2E5D2;
}
.its-pd-btn:focus-visible {
  outline: 2px solid #F2E5D2;
  outline-offset: 2px;
}

/* ── Scène SVG (poteaux sur trame de série) ── */
.its-pd-scene {
  background: #1C3D34;
  border-radius: 0;
  padding: 0.75rem 0 0.25rem;
  text-align: center;
}
.its-pd-scene svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.its-pd-scene .pd-el {
  visibility: hidden;
}
.its-pd-scene .pd-el.pd-on {
  visibility: visible;
}
.its-pd-scene .pd-ballon {
  transition: transform 0.7s ease-out;
}

/* ── Panneau vanille : statut, indice, mot à trous ── */
.its-pd-info {
  background: #F2E5D2;
  padding: 1rem 1.25rem 1.25rem;
  text-align: center;
}
.its-pd-statut {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1C3D34;
}
.its-pd-statut.pd-gagne {
  color: #2e7d32;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.its-pd-statut.pd-perdu {
  color: #b3261e;
  font-size: 1.125rem;
}
.its-pd-indice {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: #1C3D34;
  font-style: italic;
}
.its-pd-mot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
}
.its-pd-case {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.6rem;
  background: #fff;
  border: 2px solid #1C3D34;
  border-radius: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: #1C3D34;
}
.its-pd-case.pd-vide {
  background: transparent;
  border-style: dashed;
  border-width: 1px;
}
.its-pd-case.pd-revele {
  background: #8ED968;
}

/* ── Clavier ── */
.its-pd-clavier {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr));
  gap: 6px;
  max-width: 620px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.25rem;
}
.its-pd-touche {
  border: 1px solid #1C3D34;
  border-radius: 0;
  background: #fff;
  color: #1C3D34;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 0.5em 0;
  cursor: pointer;
}
.its-pd-touche:hover,
.its-pd-touche:focus-visible {
  background: #F2E5D2;
}
.its-pd-touche:focus-visible {
  outline: 2px solid #8ED968;
  outline-offset: 1px;
}
.its-pd-touche:disabled {
  cursor: default;
  opacity: 1;
}
.its-pd-touche.pd-bonne {
  background: #8ED968;
  border-color: #1C3D34;
}
.its-pd-touche.pd-mauvaise {
  background: #1C3D34;
  color: #F2E5D2;
  opacity: 0.35;
}

/* ── Bilan ── */
.its-pd-bilan {
  margin: 0 1.25rem 1.25rem;
  border: 1px solid #1C3D34;
  border-left: 4px solid #8ED968;
  border-radius: 0;
  padding: 1rem;
}
.its-pd-bilan-titre {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  color: #1C3D34;
}
.its-pd-bilan-grade {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: #1C3D34;
}
.its-pd-bilan-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.7;
}
.its-pd-bilan-liste .pd-t {
  color: #2e7d32;
  font-weight: 700;
}
.its-pd-bilan-liste .pd-r {
  color: #b3261e;
}

@media (max-width: 480px) {
  .its-pd-case {
    width: 1.9rem;
    height: 2.2rem;
    font-size: 1.125rem;
  }
  .its-pd-clavier {
    grid-template-columns: repeat(auto-fill, minmax(2.2rem, 1fr));
  }
}
