/* Page « Règlement des tournois » : ce que site.css n'a pas déjà. */

/* Parcours d'un tournoi, du premier tour au vainqueur */
.parcours {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  list-style: none;
  margin: 20px 0 6px;
  padding: 0;
}

.parcours li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0;
  padding: 14px 4px 12px;
  border-radius: var(--rayon-s);
  background: var(--surface-forte);
  border: 1px solid var(--bordure);
  text-align: center;
}

.parcours li + li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--bordure-forte);
}

.parcours strong {
  display: grid;
  place-items: center;
  min-height: 34px;
  font-family: var(--titre);
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--or);
}

.parcours strong svg {
  width: 26px;
  height: 26px;
}

.parcours span {
  color: var(--texte-doux);
  font-size: clamp(0.68rem, 2.6vw, 0.9rem);
  line-height: 1.2;
}

.parcours .gagne {
  background: rgba(226, 166, 85, 0.14);
  border-color: var(--bordure-forte);
}

.parcours .gagne span {
  color: var(--or-clair);
}

.parcours-note {
  font-size: 0.9rem;
  color: var(--texte-faible) !important;
}

.tournoi-wiyao {
  margin-top: 22px;
}

/* Sommaire : deux portes d'entrée */
.sommaire {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .sommaire {
    grid-template-columns: 1fr 1fr;
  }
}

.sommaire a {
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  gap: 14px;
  align-items: center;
  padding: 18px 18px;
  border-radius: var(--rayon);
  background: var(--surface);
  border: 1px solid var(--bordure);
  color: var(--beige);
  text-decoration: none;
  transition: border-color 250ms var(--ease), background-color 250ms var(--ease);
}

.sommaire a:active,
.sommaire a:focus-visible {
  border-color: var(--bordure-forte);
  background: var(--surface-forte);
}

.sommaire .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(226, 166, 85, 0.14);
  color: var(--or);
}

.sommaire svg {
  width: 22px;
  height: 22px;
}

.sommaire strong {
  display: block;
  font-family: var(--titre);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.sommaire small {
  color: var(--texte-doux);
  font-size: 0.9rem;
}

.sommaire .fleche {
  color: var(--or);
}

.sommaire .argent {
  border-color: var(--bordure-forte);
  background: linear-gradient(135deg, rgba(226, 166, 85, 0.12), var(--surface) 70%);
}

/* Articles numérotés */
.articles {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  counter-reset: article var(--depart, 0);
}

.articles > li {
  counter-increment: article;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  align-items: center;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--bordure);
}

/* Sur téléphone, le texte prend toute la largeur sous le numéro et le titre */
.articles > li > div {
  display: contents;
}

.articles > li > div > * {
  grid-column: 1 / -1;
}

.articles > li > div > h3 {
  grid-column: 2;
}

@media (min-width: 640px) {
  .articles > li > div > * {
    grid-column: 2;
  }
}

.articles > li:first-child {
  border-top: 0;
  padding-top: 6px;
}

.articles > li:last-child {
  padding-bottom: 0;
}

.articles > li::before {
  content: counter(article);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--bordure-forte);
  color: var(--or);
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.articles h3 {
  margin: 0 0 0;
  font-size: 1.15rem;
  color: var(--beige);
}

.articles p {
  margin: 10px 0 0;
}

.articles p + p {
  margin-top: 0.7em;
}

.articles .score-table {
  margin: 10px 0 0;
}

.articles .score-table td:last-child {
  font-size: 1.05rem;
}

/* Les quatre joueurs récompensés */
.lots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  margin: 12px 0 0 !important;
  padding: 0 !important;
}

.lots li {
  margin: 0;
  padding: 12px 8px;
  border-radius: var(--rayon-s);
  background: var(--surface-forte);
  border: 1px solid var(--bordure);
  text-align: center;
}

.lots b {
  display: block;
  font-family: var(--titre);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--or);
}

.lots span {
  display: block;
  margin-top: 2px;
  color: var(--beige);
  font-size: 0.86rem;
  line-height: 1.25;
}

/* Bloc « lot en argent » : mis en avant */
.panel--or {
  border-color: var(--bordure-forte);
  background: linear-gradient(160deg, rgba(226, 166, 85, 0.1), var(--surface) 45%);
}

.pastille {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--bordure-forte);
  color: var(--or);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.9rem;
}

.etapes {
  margin: 18px 0 8px;
}

.etapes .ico {
  font-family: var(--titre);
  font-weight: 800;
  font-size: 1.1rem;
}

.alerte {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  margin: 18px 0 6px;
  padding: 14px 16px;
  border-radius: var(--rayon-s);
  background: rgba(210, 91, 66, 0.12);
  border: 1px solid rgba(210, 91, 66, 0.5);
}

.alerte svg {
  width: 24px;
  height: 24px;
  color: #F0907A;
}

.alerte p {
  margin: 0;
  color: var(--beige);
}

.maj {
  text-align: center;
  color: var(--texte-faible);
  font-size: 0.9rem;
  margin: 4px 0 0;
}
