/* Base document */
.ftr-wrap { margin: 2rem auto; max-width: 70rem; }
.ftr-page { background: #fff; color: #777; width: 100%; min-height: auto; padding: 2rem; box-sizing: border-box; position: relative; }
strong { font-weight: 600; color: #B3B3B3; }
.ftr-page p { margin: 0; }

/* Page breaks (si tu en remets plus tard) */
.ftr-pagebreak { page-break-before: always; }

/* Header line + text mask + logo */
.ftr-topline { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px 0; padding-right: 2rem; }
.ftr-topline:before { content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 3px; background: #6B7D9C; z-index: 0; }
.ftr-topline-left { color: #6A6A6A; position: relative; z-index: 1; background: #fff; padding: 2px 8px; margin-left: 2rem; font-size: 17px; font-weight: 600; line-height: 1; height: calc(1em + 4px); display: inline-flex; align-items: center; }
.ftr-topline-right { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; }
.ftr-topline-logo { width: 5rem; height: auto; border-radius: 999px; background: #fff; border: 5px solid #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ftr-topline-logo img { width: 100%; height: auto; object-fit: contain; display: block; }

/* Bands */
.ftr-band { width: 100%; margin: 10px 0; }
.ftr-band-inner { padding: 6px 10px; text-align: center; font-weight: 700; }
.ftr-band-black { background: #000; color: #fff; font-size: 18px; letter-spacing: .5px; }
.ftr-band-yellow { background: #f1c40f; color: #fff; font-size: 14px; letter-spacing: .2px; }
.ftr-band-blue { background: #6B7D9C; color: #fff; font-size: 14px; letter-spacing: .2px; }
.ftr-band-red { background: #c0392b; color: #fff; font-size: 1rem; }
.ftr-band-green { background: #2aa00d;  color: #fff; font-size: 1rem; }
.ftr-download-link { color: #fff; text-decoration: underline; }

/* Blocks */
.ftr-block { margin: 10px 0; }
.ftr-block-title { font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }

/* Intro */
.ftr-intro p { margin: 0 0 6px 0; }
.ftr-artist-logo { display:flex; justify-content:center; margin:10px 0; }
.ftr-artist-logo img { max-height:15rem; width:auto; height:auto; display:block; }
/* Preserve lines */
.ftr-preserve-nl { white-space: pre-wrap; }

/* Contacts */
.ftr-contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ftr-contact { margin-bottom: 10px; text-align: center; }
.ftr-contact-role { font-weight: 700; text-decoration: underline; font-size: 11px; margin-bottom: 2px; }
.ftr-contact-line { font-size: 11px; }
.ftr-contact-line a { color: #1e5bd9; text-decoration: underline; }

/* Section titles */
.ftr-section-title { font-size: 16px; font-weight: 800; margin: 2rem 0 6px; padding: 2rem 8px; border-top: 2px solid #6B7D9C; border-bottom: 2px solid #6B7D9C; color: #6B7D9C; text-align: center; }

/* Sub blocks */
.ftr-subblock { margin-bottom: 10px; }
.ftr-subtitle { font-weight: 800; margin: 1rem 0; }

/* Checklist */
.ftr-check { list-style: none; padding: 0; margin: 0; }
.ftr-check li { display: flex; gap: 6px; margin-bottom: 3px; }
.ftr-tick { font-weight: 800; display: none; }

/* Tables */
.ftr-table { width: 100%; border-collapse: collapse; font-size: 10px; margin-top: 4px; table-layout: fixed; }
.ftr-table th, .ftr-table td { border: 1px solid #000; padding: 2px 4px; text-align: left; vertical-align: top; line-height: 1.05; }
.ftr-table th { font-weight: 800; }

/* Notes */
.ftr-note { margin-top: 6px; font-size: 10px; }

/* Plan */
.ftr-plan-img { max-width: 100%; height: auto; display: block; margin-top: 6px; }
.ftr-caption { margin-top: 4px; font-size: 10px; text-align: center; }

/* Signature */
.ftr-signature { margin-top: 16px; }
.ftr-signature-line { margin-bottom: 6px; font-size: 11px; }
.ftr-signature-box { margin-top: 18px; height: 75px; border: 1px solid #000; }

/* Footer */
.ftr-footer { margin-top: 1rem !important; display: flex; justify-content: space-between; font-size: 10px; font-style: italic; }
.ftr-page-number:before { content: counter(page); }
.ftr-footer-right {display:none;}

/* Actions */
.ftr-actions { margin: 0 auto 10px; max-width: 70rem; }

/* Print */
@media print {
  @page { size: A4 portrait; margin: 12mm; }

  html, body { margin: 0 !important; padding: 0 !important; font-family: arial  !important;}
  #wpadminbar { display: none !important; }
  .ftr-actions { display: none !important; }

  /* OnePager pattern: masquage cible uniquement (pas de visibility hidden global) */
  header, footer, nav, aside { display: none !important; }
  .site-header, .site-footer, .site-navigation, .sidebar, .widget-area { display: none !important; }
  .entry-header, .entry-footer { display: none !important; }

  /* On imprime le flux tel qu'a l'ecran (pas de pages forcees par section) */
  .ftr-wrap { margin: 0 !important; max-width: none !important; }
  .ftr-page { width: auto !important; min-height: auto !important; height: auto !important; padding: 12mm !important; box-shadow: none !important; border: 0 !important; position: relative !important; }

  /* Footer: ne pas reserver artificiellement une "fin de page" */
  .ftr-footer { position: static !important; left: auto !important; right: auto !important; bottom: auto !important; margin-top: 12mm !important; }

  /* Couleurs de fond dans Chrome */
  html, body, .ftr-wrap, .ftr-page { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .ftr-band, .ftr-band * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  .ftr-band-black { background: #000 !important; color: #fff !important; }
  .ftr-band-blue { background: #6B7D9C !important; color: #fff !important; }
  .ftr-band-yellow { background: #f1c40f !important; color: #fff !important; }
  .ftr-band-red { background: #c0392b !important; color: #fff !important; }

  .ftr-band-black .ftr-band-inner, .ftr-band-blue .ftr-band-inner, .ftr-band-yellow .ftr-band-inner, .ftr-band-red .ftr-band-inner { color: #fff !important; }
  .ftr-tick { display: none !important; }
}
