/* ============================================================
   Impression des pages légales (cgv.html, mentions-legales.html)
   Chargée avec media="print" sur ces deux pages seulement : les autres pages
   et l'affichage écran ne sont pas concernés.
   ============================================================ */

@page { size: A4; margin: 18mm 16mm 20mm; }

/* ---- Noir sur blanc ---- */
html, body { background: #FFFFFF !important; color: #000000 !important; }
*, *::before, *::after {
  color: #000000 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  animation: none !important;
  transition: none !important;
}

/* ---- Ni navigation ni en-tête fixe, ni pied de page, ni barre de rappel ;
   le grain de fond (body::after, fixé) se répéterait sur chaque page ---- */
.nav, .nav__mobile, .rappel, .footer, .csv-modal { display: none !important; }
body::before, body::after { content: none !important; display: none !important; }

/* ---- Contenu révélé au défilement : visible d'emblée, sinon tout ce qui est
   sous le premier écran s'imprime en pages blanches ---- */
.reveal { opacity: 1 !important; transform: none !important; visibility: visible !important; }

/* ---- Mise en page : sans les marges écran (style en ligne du <main>) ---- */
main { padding: 0 !important; margin: 0 !important; }
main .container { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.section-marker::before, .section-marker::after { display: none !important; }

body { font-size: 10.5pt; line-height: 1.5; }
.h1 { font-size: 20pt !important; line-height: 1.2; }
.legal-body h2 { font-size: 12.5pt !important; margin: 14pt 0 5pt !important; }
.legal-body p, .legal-body li { font-size: 10.5pt !important; }
a { text-decoration: underline !important; }

/* ---- Coupures de page ---- */
h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
li, tr { break-inside: avoid; page-break-inside: avoid; }
p, li { orphans: 3; widows: 3; }
