/*
 * Backgammon : identité de la page d'accueil. Tout le reste (hero-jeu,
 * hero-flex, cartes de modes, règles, articles) vient du CSS partagé chargé avant.
 */
.deco-pion-clair { background: #f2e6cf; box-shadow: inset 0 0 0 3px #b9a67b; }
.deco-pion-fonce { background: #2b2b30; box-shadow: inset 0 0 0 3px #6b6b76; }
.deco-de {
  border-radius: 7px; background: #f7efe0;
  background-image: radial-gradient(circle at 28% 28%, #2a1810 3px, transparent 3.3px),
                    radial-gradient(circle at 72% 72%, #2a1810 3px, transparent 3.3px),
                    radial-gradient(circle at 50% 50%, #2a1810 3px, transparent 3.3px);
}

.rules { --rules-symbole: '\2680'; }

.mode-card .mode-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-classe { background: rgba(217, 143, 58, 0.18); color: #f0c48a; }
.badge-defi   { background: rgba(251, 191, 36, 0.18); color: #fcd34d; }
.badge-libre  { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }

.modes-header {
  text-align: center;
  font-weight: 700;
  margin: 6px 0 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
a.mode-card { text-decoration: none; display: block; }
a.mode-card h2 { margin: 6px 0 4px; }

/* Le classement, visible sous les modes : on le cherche en arrivant sur le jeu. */
.lien-classement-accueil {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 4px auto 22px;
  padding: 12px 20px;
  min-height: 44px;
  border: 1px solid var(--line-forte);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--texte);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.lien-classement-accueil:hover { border-color: var(--color-light); color: #fff; }

/* Questions fréquentes : accordéon (js/faq-accordeon.js partagé) */
.faq-section { display: grid; gap: 8px; margin-top: 10px; }
.faq-item { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(255, 255, 255, 0.03); overflow: hidden; }
.faq-question {
  display: block; width: 100%; min-height: 48px; padding: 12px 40px 12px 14px; position: relative;
  background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.faq-question::after { content: '+'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--color-light); }
.faq-question[aria-expanded="true"]::after { content: '−'; }
.faq-question:focus-visible { outline: 2px solid var(--color-light); outline-offset: -2px; }
.faq-answer { padding: 0 14px 14px; line-height: 1.6; color: #d6ccc4; }
.faq-answer[hidden] { display: none; }

/* Tableaux des règles : défilent sur eux-mêmes sur un écran étroit, jamais la page. */
.table-defilante { overflow-x: auto; margin: 10px 0 14px; }
.table-regles { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table-regles th, .table-regles td { padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.1); vertical-align: top; }
.table-regles thead th { color: var(--color-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.table-regles tbody th { white-space: nowrap; color: #f0e3cc; }
