/*
 * Petits Chevaux : guides, page des guides et page du plateau à imprimer. La
 * mise en page vient de article.css et blog.css partagés ; ici, le fil
 * d'Ariane, les sections du hub, les figures du plateau, les tableaux et la FAQ.
 */
.breadcrumb { margin-bottom: 16px; font-size: 0.85rem; color: #94a3b8; }
.breadcrumb a { color: var(--color-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.cluster-section { margin-bottom: 48px; }
.cluster-section:last-child { margin-bottom: 24px; }
.cluster-header { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cluster-header h2 { font-size: 1.4rem; font-weight: 700; color: var(--color-accent); margin: 0 0 6px; }
.cluster-header p { font-size: 0.92rem; color: #94a3b8; margin: 0; line-height: 1.5; }
.blog-card h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.blog-card h3 a { color: var(--color-accent); text-decoration: none; }
.blog-card h3 a:hover { color: var(--color-light); }
.guides-vide { grid-column: 1 / -1; text-align: center; color: #a8b0bb; padding: 30px 0; line-height: 1.6; }
.guides-vide a, .guides-suite a { color: var(--color-light); }
.guides-suite { text-align: center; color: #a8b0bb; margin-top: 8px; }

/* Figures : des positions calculées par le moteur et dessinées par le plateau du jeu. */
.figure-plateau { margin: 18px auto 22px; max-width: 420px; text-align: center; }
.figure-plateau img { display: block; width: 100%; height: auto; border-radius: 12px; }
.figure-plateau figcaption { margin-top: 8px; font-size: 0.88rem; line-height: 1.5; color: #a8b0bb; }

.table-defilante { overflow-x: auto; margin: 12px 0 16px; }
.table-regles { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.table-regles th, .table-regles td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-regles thead th { color: var(--color-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table-regles tbody th { color: #f0f3f6; }

.article-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.faq-section { display: grid; gap: 8px; margin-top: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); 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; }
.faq-answer[hidden] { display: none; }

/* ================= PLATEAU À IMPRIMER ================= */

.imprimer-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0 20px; }
.feuille { background: #fff; color: #1b1209; border-radius: 10px; padding: 18px; margin: 0 0 18px; }
.feuille h2 { color: #1b1209; margin: 0 0 10px; font-size: 1.2rem; }
.feuille img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; }
.feuille ol, .feuille ul { margin: 0 0 10px; padding-left: 22px; line-height: 1.55; color: #1b1209; }
.feuille li { margin-bottom: 5px; color: #1b1209; }
.feuille p { color: #1b1209; line-height: 1.55; margin: 0 0 10px; }
.feuille table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 0.95rem; }
.feuille th, .feuille td { border: 1px solid #b9a98c; padding: 6px 8px; text-align: left; color: #1b1209; }
.feuille .feuille-pied { font-size: 0.8rem; color: #6b5a41; text-align: center; margin: 12px 0 0; }
/* La feuille est claire : les gras et les en-têtes clairs de l'article y seraient invisibles. */
.article-card .feuille strong, .article-card .feuille th { color: #1b1209; font-weight: 700; }
.article-card .feuille th { background: #f3e9d6; white-space: nowrap; }
.article-card .feuille li { padding-left: 0; }
.article-card .feuille li::before { content: none; }
.article-card .feuille ol { list-style: decimal; }

@media print {
  html, body { background: #fff !important; }
  body { padding: 0 !important; min-height: 0 !important; }
  .container { max-width: none !important; border: 0 !important; background: #fff !important; padding: 0 !important; margin: 0 !important; }
  .jeu-banner, .back-link, .breadcrumb, .sans-impression, footer, .auth-nav, #auth-nav, .bandeau-infos-wrap, .bloc-jeux-une-wrap, .article-meta { display: none !important; }
  .article-card { border: 0 !important; background: #fff !important; padding: 0 !important; box-shadow: none !important; }
  .feuille { border-radius: 0; padding: 0; margin: 0; page-break-after: always; break-after: page; }
  .feuille:last-of-type { page-break-after: auto; break-after: auto; }
  .feuille img { max-width: 175mm; }
  @page { size: A4 portrait; margin: 14mm; }
}
