/* Print stylesheet for FoncierDirect  optimized for documents like CGV */
@media print {
  /* Basics */
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #000 !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Hide navigation and non-essential UI */
  header, .announcement-bar, .subnav, .search-row, .promo-scroller, .partners, .trust-strip, .mobile-menu, .overlay, nav, .megamenu, .cookie-banner, .fd-cookie-banner, .fd-cookie-panel { display: none !important; }

  /* Keep main content full width for printing */
  .container { max-width: 100% !important; padding: 0 !important; }
  main.container, main { padding: 0 !important; }

  /* Text sizing for readability */
  h1, h2, h3 { color: #000 !important; }
  h1 { font-size: 20pt; }
  h2 { font-size: 14pt; }
  h3 { font-size: 12pt; }
  p, li { font-size: 11pt; color: #000; }

  /* Links: show URL after link text */
  a[href]:after { content: " (" attr(href) ")"; font-size: 9pt; color: #000; }

  /* Prevent background colors from interfering; remove shadows */
  * { box-shadow: none !important; background: transparent !important; }

  /* Page breaks: allow sections to start on new page when needed */
  h2, h3 { page-break-after: avoid; }
  section { page-break-inside: avoid; }
  .page-break { display: block; page-break-before: always; break-before: page; }

  /* Ensure pre/code wrap for long lines */
  pre, code { white-space: pre-wrap; word-wrap: break-word; }

  /* Footer: show a simple copyright line at bottom of last page */
  footer { display: block !important; position: static !important; background: transparent !important; color: #000 !important; }
  .footer-grid { display:block !important; }
  .footer-column { break-inside: avoid; }

  /* Hide interactive controls */
  button, input, select, textarea { display: none !important; }

  @page { margin: 18mm; }
}
