.elementor .a4-pdf{padding:0px;background-color:#ffffff;flex-direction:column;@media print {

/* ================= RESET ================= */
body * {
  visibility: hidden !important;
}

.a4-pdf,
.a4-pdf * {
  visibility: visible !important;
}

/* ================= PAGE ================= */
.a4-pdf {
  width: 210mm;
  margin: 0 !important;

  padding: 15mm 15mm 0 15mm !important;

  box-sizing: border-box;
  background: white;
}

/* ================= CONTENU ================= */
.mes_mots {
  padding-bottom: 10mm !important; /* 🔥 zone de sécurité renforcée */
}

/* 🔥 empêche dernière ligne de toucher footer */
.mes_mots > *:last-child {
  margin-bottom: 40mm;
}

/* ================= FOOTER ================= */
.pdf-footer {
  position: fixed;
  bottom: -2mm; /* 🔥 un peu plus bas pour éviter collision */

  left: 0;
  right: 0;

  padding: 3mm 10mm;

  font-size: 12px;
  line-height: 1.3;

  text-align: center;

  background: white;

  border: none !important;

  z-index: 10;
}

/* ================= PAGE BREAK CONTROL ================= */
.mes_mots {
  break-after: auto;
  page-break-after: auto;
}

/* ================= PAGE FORMAT ================= */
@page {
  size: A4;
  margin: 10mm 10mm 35mm 10mm; /* 🔥 marge bas plus grande */
}

.print-btn {
  display: none !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  page-break-inside: auto;
}

tr {
  page-break-inside: avoid;
}
}\n}