/*
 * Cryptogrammes à imprimer (a-imprimer.php). À l'écran : la feuille sur fond papier.
 * À l'impression : seule la feuille, en noir sur blanc, les solutions sur une
 * seconde page.
 */
.imp-titre { font-size: clamp(1.45rem, 4vw, 2rem); margin: 18px 0 8px; color: var(--cg-texte); }
.imp-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; color: var(--cg-texte); font-weight: 600; font-size: 0.9rem; }
.imp-choix select { min-height: 44px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--cg-bordure-forte); background: var(--cg-panel); color: var(--cg-texte); font-family: inherit; }

.feuille {
  margin: 18px 0;
  padding: 22px 20px;
  border-radius: 12px;
  background: #fff;
  color: #111;
}
.feuille-titre { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; }
.feuille-consigne { margin: 0 0 16px; font-size: 0.86rem; line-height: 1.5; color: #333; }
.imp-grille { margin: 0 0 22px; break-inside: avoid; page-break-inside: avoid; }
.imp-numero { margin: 0 0 6px; font-weight: 800; }
.imp-numero span { font-weight: 500; font-size: 0.82rem; color: #555; }
.imp-phrase { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.imp-mot { display: inline-flex; gap: 3px; }
.imp-case { display: inline-flex; flex-direction: column; align-items: center; width: 1.6em; }
.imp-case b { display: block; width: 100%; height: 1.6em; line-height: 1.6em; text-align: center; border-bottom: 1.5px solid #111; font-size: 1.05rem; }
.imp-case i { font-style: normal; font-size: 0.8rem; font-weight: 700; color: #444; margin-top: 3px; }
.imp-signe { align-self: flex-start; font-weight: 800; font-size: 1.05rem; line-height: 1.6em; }
.feuille-pied { margin: 10px 0 0; font-size: 0.74rem; color: #666; text-align: center; }
.imp-solutions { margin: 0; padding-left: 22px; }
.imp-solutions li { margin-bottom: 10px; line-height: 1.5; }
.imp-sol-texte { font-style: italic; }
.imp-sol-auteur { display: block; font-size: 0.82rem; color: #555; }

/* À l'écran, les solutions attendent qu'on les demande. */
@media screen {
  .feuille-solutions:not(.montrees) .imp-solutions { display: none; }
}
.imp-voir { margin: 4px 0 8px; color: #111; border-color: #999; }
.imp-voir:hover { color: #111; background: #f1f1f1; }

@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body { padding: 0 !important; }
  #app { max-width: none; padding: 0; }
  .ecran-seulement, .jeu-banner, .auth-nav, footer, .bandeau-infos-wrap, .bloc-jeux-une-wrap { display: none !important; }
  .feuille { margin: 0; padding: 0; border-radius: 0; }
  .feuille-solutions { break-before: page; page-break-before: always; }
}
