/* === Dame de pique : 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 trois cartes
   décoratives (un cœur, la dame de pique, un pique), le symbole des règles et la FAQ
   en accordéon. */

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

.deco-flottante.deco-carte {
  display: flex; align-items: center; justify-content: center;
  background: #fdfdfb; border-radius: 14%;
  font-weight: 800; line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
}
.deco-coeur { color: #c62828; }
.deco-dame { color: #15171c; font-size: 0.8rem; }
.deco-pique { color: #15171c; }

/* Partie laissée en cours */
.reprise-accueil {
  display: flex; flex-direction: column; gap: 2px;
  margin: 0 0 24px; padding: 14px 18px; border-radius: 10px;
  background: rgba(242, 193, 78, 0.1); border: 1px solid rgba(242, 193, 78, 0.45);
  color: #fde9b0; text-decoration: none; text-align: center;
}
.reprise-accueil strong { font-size: 1rem; }
.reprise-accueil span { font-size: 0.86rem; color: #e7d9a8; }
.reprise-accueil:hover { background: rgba(242, 193, 78, 0.16); }

a.mode-card { text-decoration: none; color: inherit; display: block; }

.lien-classement-accueil {
  display: block; margin: 8px 0 28px; padding: 14px 18px; min-height: 48px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-forte);
  color: #fde9b0; font-weight: 700; font-size: 0.95rem; text-align: center; text-decoration: none;
}
.lien-classement-accueil:hover { border-color: #f2c14e; }
.lien-classement-accueil:focus-visible, .reprise-accueil:focus-visible { outline: 3px solid #f2c14e; outline-offset: 3px; }

.regles-liste { padding-left: 18px; line-height: 1.6; }
.regles-liste li { margin-bottom: 8px; }

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

/* 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; }
.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; }