/* ============================================================================
 * Print — export PDF d'une recette (bouton imprimante du détail)
 * Masque le chrome de l'app et met en page le détail recette.
 * ============================================================================ */

@media print {
  /* Chrome applicatif masqué */
  .fr-tabbar,
  .fr-sidebar,
  .fr-fab,
  .fr-banner-slot,
  .glass-btn,
  .fr-cook-cta,
  .fr-comment-composer,
  #comment-photo-preview,
  .portions-card .stepper,
  .fr-toast {
    display: none !important;
  }

  body,
  .fr-app,
  .fr-page {
    background: white !important;
    padding: 0 !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .fr-recipe-detail { max-width: none !important; margin: 0 !important; }

  /* Hero : image réduite, pas de scrim */
  .fr-recipe-detail .hero {
    height: 220px !important;
    border-radius: 8px;
  }
  .fr-recipe-detail .hero .scrim { display: none !important; }

  .fr-recipe-detail .title-card {
    box-shadow: none !important;
    border: none !important;
    margin: 12px 0 0 !important;
    padding: 12px 0 !important;
  }

  .fr-recipe-detail .section {
    break-inside: avoid;
    padding: 0 !important;
    margin: 14px 0 !important;
  }

  /* Checklist ingrédients : cases vides imprimées (pratique en cuisine) */
  .fr-ingredient { border: none !important; box-shadow: none !important; }
  .fr-ingredient .checkbox {
    border: 1.5px solid #999 !important;
    background: white !important;
  }
  .fr-ingredient.is-checked .checkbox svg { display: none !important; }

  .fr-step { break-inside: avoid; }

  /* Commentaires et médias : coupés de l'export */
  .fr-media-strip,
  #comments-mount,
  .fr-comment-list { display: none !important; }
  .section:has(#comments-mount) { display: none !important; }

  a { color: black !important; text-decoration: none !important; }
}
