/* Styles de la SECTION table (fiches + plateau) de l'app unifiee. Les tokens,
   le reset et le body vivent dans bd/styles/base.css (source unique) : ce
   fichier ne contient plus que les classes .table-*. */

.table-shell {
  /* Dans le body flex-colonne de l'app unifiee : occupe la hauteur restante
     et defile normalement. */
  flex: 1 0 auto;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.4rem clamp(0.8rem, 3vw, 2rem) 4rem;
}

.table-header {
  display: flex;
  align-items: center;
  /* Plus de bloc de marque (il vit dans le rail site-nav) : les controles
     (selecteur « Vue » du MJ) s'alignent a droite. */
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.table-brand {
  display: grid;
  gap: 0.1rem;
}

.table-brand strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.table-eyebrow {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.table-error {
  border: 1px solid rgba(192, 90, 76, 0.5);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  color: var(--text);
  background: rgba(192, 90, 76, 0.12);
}

.table-loading {
  color: var(--muted);
}

/* Bandeau flottant : il ne doit jamais decaler la mise en page. */
.table-notice {
  position: fixed;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  max-width: min(34rem, calc(100vw - 7rem));
  margin: 0;
  border: 1px solid rgba(226, 180, 93, 0.4);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--text);
  background: rgba(23, 18, 12, 0.95);
  font-size: 0.82rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.table-notice[hidden] {
  display: none;
}

/* Mobile : presque toute la largeur (moins de retours a la ligne) et coins
   doux — la pilule 999px sur plusieurs lignes devient un gros ballon. */
@media (max-width: 40rem) {
  .table-notice {
    max-width: calc(100vw - 1.2rem);
    width: max-content;
    border-radius: 12px;
    padding: 0.45rem 0.8rem;
    font-size: 0.76rem;
  }
}

/* Ecran de connexion Discord : bloc centre dans la page. */
.table-login {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 26rem;
  margin: clamp(2rem, 14vh, 6rem) auto 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem;
  background: var(--surface-soft);
  text-align: center;
}

.table-login p {
  margin: 0;
  line-height: 1.5;
}

.table-login-button {
  border: 1px solid #5865f2;
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  color: #fff;
  background: #5865f2;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.table-login-button:hover,
.table-login-button:focus-visible {
  filter: brightness(1.1);
  outline: none;
}

.table-login-hint {
  color: var(--muted);
  font-size: 0.78rem;
}

