/* === Rebondingue : identité de l'accueil ===
   Le patron (.hero-jeu, .motif-*, .deco-flottante, .rules::before) vient de
   fichiers-partages-des-jeux/css/accueil.css. On ne fournit ici que les
   couleurs des trois balles décoratives et le symbole des règles. */

:root {
  --rules-symbole: '●';
}

.deco-gomme {
  background: radial-gradient(circle at 35% 35%, #ffd0c8, #ff5a4f 45%, #a4232a);
}

.deco-pierre {
  background: radial-gradient(circle at 35% 35%, #f1f1f6, #a3a3ae 50%, #4c4c57);
}

/* Questions fréquentes en accordéon (script partagé faq-accordeon.js). */
.faq-section { margin: 34px 0 10px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--surface-1);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: none;
  border: 0;
  color: #f1f5f9;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover { background: color-mix(in srgb, var(--color-mid) 12%, transparent); }
.faq-question:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* Chevron piloté par aria-expanded. */
.faq-question::after {
  content: '';
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-light);
  border-bottom: 2px solid var(--color-light);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }

.faq-answer { padding: 0 18px 16px; color: var(--texte-doux); line-height: 1.7; }
.faq-answer[hidden] { display: none; }

.deco-bulle {
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(143, 227, 255, 0.35) 55%, rgba(143, 227, 255, 0.85));
  box-shadow: inset 0 0 0 2px rgba(200, 240, 255, 0.7);
}

/* Tableau des matières (section des règles) : il défile dans son cadre sur
   téléphone au lieu d'élargir la page. */
.table-defilante { overflow-x: auto; margin: 14px 0 12px; }
.rb-table-matieres { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rb-table-matieres caption { text-align: left; font-weight: 700; margin-bottom: 6px; color: var(--color-light); }
.rb-table-matieres th, .rb-table-matieres td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rb-table-matieres thead th { color: var(--color-light); white-space: nowrap; }
.rb-table-matieres tbody th { color: var(--texte-doux); font-weight: 600; white-space: nowrap; }
