@media print {
  /* Define the @page rules for the overall print margins */
  @page {
    margin-top: 0cm;
    margin-bottom: 1.5cm;
    margin-left: 1.5cm;
    margin-right: 1.5cm;
  }

  /* Optional: Adjustments for Bootstrap and other elements for print */
  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  .container, .container-fluid {
    width: 100% !important; /* Ensure containers use full available width within @page margins */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide elements not meant for print (e.g., navigation, footers, sidebars) */
  .d-print-none {
    display: none !important;
  }

  /* You might need to adjust text colors if they are too light for print */
  .text-light, .text-white {
    color: #000 !important; /* Change light text to black for readability */
  }

  /* Ensure background colors/images are printed if necessary (often disabled by default in browsers) */
  /*
  * {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  */

  /* Control page breaks */
  .no-page-break {
    page-break-inside: avoid !important;
  }

  .new-page {
    page-break-before: always !important;
  }
}

 /* modif */

  .mt-4 {
    margin-top: 0 !important;
  }

  .portfolio {
    margin: 0 !important;
  }
