/*
 * Casse-brique : identité de la page d'accueil. Tout le reste (hero-jeu,
 * hero-flex, cartes de modes, FAQ) vient du CSS partagé chargé avant.
 */
.deco-brique-a { background: #ef4444; border-radius: 4px; width: 44px; height: 18px; }
.deco-brique-b { background: #fbbf24; border-radius: 4px; width: 44px; height: 18px; }
.deco-balle    { background: #f8fafc; }

.rules { --rules-symbole: '\25A0'; }

.mode-card .mode-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-solo         { background: rgba(249, 115, 22, 0.18); color: #fdba74; }
.badge-defi         { background: rgba(251, 191, 36, 0.18); color: #fcd34d; }
.badge-action       { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.badge-entrainement { background: rgba(96, 165, 250, 0.18); color: #93c5fd; }
.badge-classement   { background: rgba(192, 132, 252, 0.18); color: #d8b4fe; }

a.mode-card { text-decoration: none; display: block; }
a.mode-card h2 { margin: 6px 0 4px; }

.reprise-accueil {
  text-align: center;
  margin: 0 auto 18px;
  padding: 10px 16px;
  max-width: 560px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  line-height: 1.5;
}
.reprise-accueil a { font-weight: 700; }

/* 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: #fdba74; }
.faq-question[aria-expanded="true"]::after { content: '−'; }
.faq-question:focus-visible { outline: 2px solid #fdba74; 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: #fdba74; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.table-regles tbody th { white-space: nowrap; }
.table-regles tr.malus th { color: #fca5a5; }
