/* Rejoin — écran de restauration.
   Feuille dédiée : le projet garde le style hors du HTML, et ces règles ne
   servent qu'à cette page. */

.rj-wrap {
  max-width: 820px;
  padding: 48px 20px 80px;
}

.rj-titre {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 8px;
}

.rj-intro {
  margin: 0 0 32px;
}

.rj-bloc {
  padding: 24px;
  margin-bottom: 16px;
}

.rj-groupe {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}

.rj-groupe legend {
  font-weight: 600;
  margin-bottom: 12px;
  padding: 0;
}

/* --- Une carte par ancien serveur ---------------------------------------
   Chaque serveur a SES accords : la séparation visuelle porte cette règle.
   Un menu déroulant laisserait croire à un stock commun. */
.rj-source {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid var(--border, #2a2a35);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.rj-source:hover {
  border-color: var(--accent, #5b6ef0);
}

.rj-source:has(input:checked) {
  border-color: var(--accent, #5b6ef0);
  background: color-mix(in srgb, var(--accent, #5b6ef0) 8%, transparent);
}

/* Repli pour les navigateurs sans :has() — la classe est posée par le script. */
.rj-source.est-choisi {
  border-color: var(--accent, #5b6ef0);
  background: color-mix(in srgb, var(--accent, #5b6ef0) 8%, transparent);
}

.rj-source input {
  margin: 0;
  flex: none;
}

.rj-source-corps {
  min-width: 0;
  flex: 1;
}

.rj-source-nom {
  font-weight: 600;
  display: block;
  overflow-wrap: anywhere;
}

.rj-source-detail {
  font-size: 13px;
  margin: 2px 0 0;
}

.rj-source-compte {
  font-size: 22px;
  font-weight: 600;
  flex: none;
}

/* --- Avertissement ------------------------------------------------------ */
.rj-avert {
  padding: 20px 24px;
  margin-bottom: 20px;
  border-left: 3px solid var(--warn, #e0a020);
}

.rj-avert p {
  margin: 0;
  font-size: 14px;
}

.rj-erreur {
  color: var(--danger, #e05555);
  margin: 12px 0 0;
}

/* --- Progression -------------------------------------------------------- */
.rj-barre-fond {
  background: var(--bg-3, #222);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.rj-barre {
  height: 100%;
  width: 0;
  background: var(--accent, #5b6ef0);
  transition: width .4s;
}

.rj-chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin: 0;
}

.rj-chiffres dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.rj-chiffres dd {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .rj-barre,
  .rj-source {
    transition: none;
  }
}
