/* Aides à la lecture de la position : les cases et les tracés Chessground restent libres. */
.aides-echiquier {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  color: #292349;
  font-family: var(--sans, Nunito, "Trebuchet MS", sans-serif);
}

.aides-echiquier[hidden],
.suite-mat[hidden] {
  display: none;
}

.aides-echiquier__option {
  box-sizing: border-box;
  display: inline-flex;
  flex: 1 1 10rem;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  min-height: 44px;
  padding: .6rem .85rem;
  border: 1px solid #d1c4ee;
  border-radius: 12px;
  background: #fff;
  color: #493c6f;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition: background .16s, border-color .16s, box-shadow .16s;
}

.aides-echiquier__option:hover {
  border-color: #8b6ad1;
  background: #f4edff;
}

.aides-echiquier__option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: #6a4bc4;
  cursor: inherit;
}

.aides-echiquier__option input[type="checkbox"]:focus-visible {
  outline: 3px solid #c24b32;
  outline-offset: 3px;
}

.aides-echiquier__option:has(input:disabled) {
  border-color: #ddd7e8;
  background: #f3f1f6;
  color: #625b70;
  cursor: not-allowed;
}

.aides-echiquier__option input:disabled {
  cursor: not-allowed;
}

.aides-echiquier__aide {
  flex-basis: 100%;
  margin: 0 2px;
  color: #625773;
  font-size: .8rem;
  line-height: 1.4;
}

.suite-mat {
  box-sizing: border-box;
  min-width: 0;
  padding: 18px 20px;
  border: 2px solid #e3d4fa;
  border-top: 6px solid #ffbb52;
  border-radius: 20px;
  background: #fff;
  color: #292349;
  box-shadow: 0 5px 0 #e9dff8, 0 12px 28px #5c488816;
  font-family: var(--sans, Nunito, "Trebuchet MS", sans-serif);
  overflow-wrap: anywhere;
}

.suite-mat__titre {
  margin: 0 0 .4rem;
  color: #3d2c75;
  font: 600 1.2rem var(--display, Fredoka, "Trebuchet MS", sans-serif);
}

.suite-mat__description {
  margin: 0 0 .75rem;
  color: #51486a;
  font-size: .95rem;
  line-height: 1.5;
}

.suite-mat__liste {
  margin: .5rem 0;
  padding: .7rem .8rem .7rem 2.2rem;
  border-radius: 12px;
  background: #f4f0ff;
  color: #493c6f;
  font-weight: 700;
  line-height: 1.6;
}

.suite-mat__etat {
  margin: .65rem 0 0;
  color: #625773;
  font-size: .88rem;
  line-height: 1.45;
}

@media (max-width: 400px) {
  .aides-echiquier__option {
    flex-basis: 100%;
  }

  .suite-mat {
    padding: 15px 16px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aides-echiquier__option {
    transition: none;
  }
}
