/* =========================================================
   Tarot Africain / Whist 22 — styles complémentaires (complète style.css)
   Pages : tarot-africain.html, tarot-africain-a-3-joueurs.html, whist-22.html
   Aucune règle globale : tout est préfixé .ta-*
   ========================================================= */

/* Listes numérotées dans le contenu éditorial (style.css force « disc » sur .prose li) */
.ta-page .prose ol {
  margin: 0 0 var(--space-3) 1.4rem;
}
.ta-page .prose ol > li {
  list-style: decimal;
}

/* Ligne de signature sous l'introduction */
.ta-meta {
  margin: 0 0 var(--space-2);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.ta-meta a {
  color: var(--gold-dark);
  border-bottom: 1px solid rgba(217, 119, 6, 0.35);
}
.ta-meta a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Encadré « Réponses rapides » */
.ta-quick {
  background: #ffffff;
  border: 1px solid var(--gold-border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
  box-shadow: var(--shadow-card);
}
.prose .ta-quick h2 {
  margin: 0 0 var(--space-2);
  font-size: 1.6rem;
}
.ta-quick dl {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}
.ta-quick dt {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.4;
}
.ta-quick dd {
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-sub);
}
.ta-quick dd a {
  color: var(--gold-dark);
  border-bottom: 1px solid rgba(217, 119, 6, 0.35);
}
.ta-quick dd a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Sommaire en pastilles (réutilise .seo-toc) */
.ta-page .seo-toc {
  margin-bottom: var(--space-4);
}

/* Tableaux : légende, largeur minimale et cellules centrées */
.ta-caption {
  caption-side: top;
  padding: 12px 18px;
  text-align: left;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  border-bottom: 1px solid #e2e8f0;
}
.ta-table--wide {
  min-width: 620px;
}
.ta-table--xwide {
  min-width: 920px;
}
.ta-table--first-nowrap td:first-child {
  white-space: nowrap;
}
.ta-table--num th:not(:first-child),
.ta-table--num td:not(:first-child) {
  text-align: center;
}
.ta-table .ta-total td,
.ta-table .ta-total th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
}
.ta-table .ta-fail {
  color: #b91c1c;
  font-weight: 600;
}
.ta-table .ta-ok {
  color: #166534;
  font-weight: 600;
}

/* Cartes à jouer miniatures (mains, plis) */
.ta-hand {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}
.ta-card {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 2.3em;
  padding: 1px 8px;
  border: 1px solid #d6cfc0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(69, 26, 3, 0.1);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  letter-spacing: 0.5px;
  color: var(--text-main);
}
.ta-card--excuse {
  background: var(--accent-cream);
  border-color: var(--accent-cream-border);
  color: var(--gold-dark);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}
.ta-card--win {
  background: var(--gold-muted);
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* Étapes numérotées (déroulement d'une manche) */
.ta-steps {
  counter-reset: ta-step;
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-4);
  padding: 0;
}
.prose .ta-steps {
  margin-left: 0;
}
.ta-page .prose .ta-steps > li {
  counter-increment: ta-step;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 18px 20px 18px 64px;
  background: #ffffff;
  border: 1px solid #e7e2d9;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(69, 26, 3, 0.04);
}
.ta-steps > li::before {
  content: counter(ta-step);
  position: absolute;
  top: 14px;
  left: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-muted);
  border: 1px solid var(--gold-border);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--gold-dark);
}
.ta-steps > li > strong:first-child {
  display: block;
  margin-bottom: 2px;
  color: var(--text-main);
}

/* Bloc de téléchargement du PDF */
.ta-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.ta-download:hover {
  transform: none;
  border-color: #e7e2d9;
  box-shadow: 0 4px 18px rgba(69, 26, 3, 0.04);
}
.ta-download__text {
  flex: 1 1 280px;
}
.prose .ta-download__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: var(--text-main);
}
.prose .ta-download__desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-sub);
}
.ta-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Encart « KYRAN, la version moderne » */
.ta-kyran {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  margin: var(--space-4) 0;
}
.ta-kyran:hover {
  transform: none;
  border-color: #e7e2d9;
  box-shadow: 0 4px 18px rgba(69, 26, 3, 0.04);
}
.ta-kyran img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e7e2d9;
}
.prose .ta-kyran h2 {
  margin: 0 0 var(--space-1);
  font-size: 1.6rem;
}
.prose .ta-kyran p {
  font-size: 0.95rem;
  margin-bottom: var(--space-1);
}
.ta-kyran__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-2);
}
.ta-kyran__links .btn {
  padding: 11px 22px;
  font-size: 0.9rem;
}
.ta-kyran__links .btn-secondary {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Pages liées en bas d'article */
.ta-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-4);
  padding: 0;
}
.prose .ta-related > li {
  list-style: none;
  margin: 0;
}
.ta-related a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e7e2d9;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-sub);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ta-related a strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-main);
}
.ta-related a:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.1);
}

/* Sources */
.ta-sources {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.ta-sources li {
  margin-bottom: 6px;
}
.prose .ta-sources a {
  color: var(--gold-dark);
  border-bottom: 1px solid rgba(217, 119, 6, 0.35);
}

@media (max-width: 640px) {
  .ta-quick {
    padding: var(--space-3);
  }
  .ta-kyran {
    grid-template-columns: 1fr;
  }
  .ta-kyran img {
    max-width: 150px;
  }
  .ta-page .prose .ta-steps > li {
    padding: 16px 16px 16px 58px;
  }
  .ta-steps > li::before {
    left: 14px;
  }
}
