/* === Petit BAC — pages d'outils et de contenu ===
   (mots par lettre, générateur de lettre, grille à imprimer, blog vide).
   Le cadre, les titres, la FAQ et les boutons viennent du socle partagé article.css. */
.blog-vide { grid-column: 1 / -1; text-align: center; color: #94a3b8; line-height: 1.5; }
.blog-vide a { color: var(--color-accent); font-weight: 600; }
.outil-intro { font-size: 1.02rem; line-height: 1.55; }

/* Mots par lettre */
.lettres-nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 18px 0 8px; }
.lettres-nav a, .lettres-nav .lettre-ici {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d1fae5;
}
.lettres-nav a:hover { background: rgba(52, 211, 153, 0.16); }
.lettres-nav .lettre-ici { background: var(--color-btn1); border-color: transparent; color: #fff; }
.mots-liste { line-height: 1.75; }
.mots-rares { color: #94a3b8; }
.mots-rares strong { color: #fbbf24; }

/* Générateur de lettre */
.tirage {
  margin: 20px 0 24px;
  padding: 24px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}
.tirage-lettre {
  width: 150px; height: 150px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; font-weight: 900; line-height: 1;
  color: #d1fae5;
  background: #065f46;
  border: 2px solid rgba(110, 231, 183, 0.4);
  border-radius: 20px;
}
.tirage-btn { font-size: 1.1rem; min-width: 220px; min-height: 52px; }
.tirage-etat { margin: 12px 0 6px; color: #94a3b8; font-size: 0.92rem; }
.tirage-option { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 0.95rem; }
.tirage-option input { width: 20px; height: 20px; accent-color: var(--color-mid); }
.tirage-sorties { margin: 6px 0 14px; color: #cbd5e1; letter-spacing: 0.05em; }

/* Grille à imprimer */
.grille-reglages { margin: 16px 0 20px; }
.grille-options { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 0 0 16px; }
.grille-options label { display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; color: #cbd5e1; }
.grille-options select {
  min-height: 44px; padding: 8px 12px;
  background: #0f172a; color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; font-size: 1rem;
}
.grille-reglages .btn { display: block; margin: 0 auto; min-height: 48px; }
.feuille { margin: 0 0 24px; padding: 18px; background: #fff; color: #111; border-radius: 6px; overflow-x: auto; }
.feuille-titre { margin: 0 0 10px; font-weight: 700; color: #111; }
.feuille-pied { margin: 10px 0 0; font-size: 0.72rem; color: #444; }
.grille-bac { width: 100%; border-collapse: collapse; table-layout: fixed; }
.grille-bac th, .grille-bac td { border: 1px solid #222; height: 38px; padding: 2px 4px; color: #111; background: #fff; }
.grille-bac th { font-size: 0.74rem; font-weight: 700; text-align: center; background: #e5e7eb; overflow-wrap: anywhere; }
.grille-bac .col-etroite { width: 58px; }
.grille-bac .grille-total { text-align: right; font-weight: 700; padding-right: 8px; background: #f3f4f6; }

/* À l'impression : la feuille seule, noire sur blanc */
@media print {
  body { background: #fff !important; }
  body * { visibility: hidden; }
  .feuille, .feuille * { visibility: visible; }
  .feuille { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; border-radius: 0; overflow: visible; }
  .grille-bac th, .grille-bac td { height: 11mm; }
  .feuille.paysage .grille-bac th, .feuille.paysage .grille-bac td { height: 9mm; }
}
