/* ── Styles d'impression ──────────────────────────────── */
@media print {
  /* Masquer les éléments inutiles */
  .site-header,
  .site-footer,
  .breadcrumb,
  .recette-actions,
  .recette-tags,
  .section-liees,
  .btn-favorite,
  .btn-favorite-page,
  #btn-imprimer,
  .astuce-chef,
  .nav-overlay,
  .btn-burger,
  #header-search-wrapper {
    display: none !important;
  }

  /* Reset global */
  body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  /* Layout 1 colonne */
  .recette-hero,
  .recette-layout {
    display: block !important;
  }
  .recette-aside {
    display: block !important;
    position: static !important;
    margin-top: 1.5rem;
  }
  .ingredients-box { background: #f4f4f4 !important; }

  /* Titre */
  .recette-titre {
    font-size: 18pt;
    margin-bottom: .4cm;
  }
  .recette-sous-titre {
    font-size: 11pt;
    color: #555;
    margin-bottom: .5cm;
  }

  /* Badges méta → affichage inline */
  .recette-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .3cm;
    margin-bottom: .6cm;
  }
  .badge {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: .1cm .3cm;
    font-size: 9pt;
  }
  .badge--saison { background: #4A7C59 !important; color: #fff !important; }

  /* Image hero */
  .recette-hero-img {
    max-height: 8cm;
    page-break-inside: avoid;
  }
  .recette-hero-img img {
    max-height: 8cm;
    object-fit: cover;
  }

  /* Sidebar widgets */
  .sidebar-widget {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: .5cm;
    margin-bottom: .5cm;
    page-break-inside: avoid;
  }

  /* Ingrédients */
  .ingredients-list {
    column-count: 2;
    column-gap: 1cm;
  }
  .ingredient-item {
    border-bottom: none;
    padding: .05cm 0;
    break-inside: avoid;
  }
  .ingredient-qte { font-weight: 700; }

  /* Étapes */
  .etapes-list { list-style: none; }
  .etape-item {
    page-break-inside: avoid;
    border-bottom: 1px solid #eee;
    padding: .4cm 0;
  }
  .etape-num {
    display: inline-block;
    width: 22px; height: 22px;
    background: #4A7C59;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 9pt;
    margin-right: .3cm;
  }
  .etape-img { max-height: 4cm; }

  /* Nutrition */
  .nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .nutrition-item {
    border: 1px solid #eee;
    padding: .2cm;
    text-align: center;
  }

  /* Astuce chef */
  .astuce-chef {
    border: 1px dashed #aaa;
    padding: .4cm;
    background: none;
  }

  /* Liens → afficher l'URL */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #666;
  }
  .btn::after, .tag-item::after { content: none; }

  /* Pas de saut de page dans les sections clés */
  .recette-header,
  .sidebar-ingredients,
  .sidebar-nutrition { page-break-inside: avoid; }

  /* URL du site en pied de page */
  .recette-page::after {
    content: "Recette publiée sur journalcuisine.fr";
    display: block;
    margin-top: 1cm;
    padding-top: .5cm;
    border-top: 1px solid #ddd;
    font-size: 8pt;
    color: #888;
    text-align: center;
  }
}
