:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #17110c; color: #ede0c3; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
.outils { max-width: 1120px; margin: 0 auto; padding: 28px 22px; }
.retour { color: #cdb58b; font-size: .9rem; text-decoration: none; }
h1 { margin: 18px 0 10px; font-family: Georgia, serif; font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.outils p { color: #cdbb9d; line-height: 1.5; margin: 8px 0 16px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 12px; }
button, .bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid #c6a56d; border-radius: 6px; background: #d7b479; color: #231609; font: 600 1rem system-ui, sans-serif; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .5; cursor: wait; }
.secondaire { background: transparent; color: #e3c78f; }
button:hover:not(:disabled), .bouton:hover { filter: brightness(1.12); }
button:focus-visible, a:focus-visible { outline: 3px solid #f1d59f; outline-offset: 4px; }
.outils .conseil { font-size: .85rem; color: #b6a487; }
#planches { padding: 0 18px; }
.feuille { width: min(1120px, 100%); aspect-ratio: 297 / 210; margin: 0 auto 26px; padding: min(3.367vw, 37.71px); background: white; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: min(2.02vw, 22.63px); box-shadow: 0 8px 32px #0006; }
.badge { margin: 0; min-width: 0; min-height: 0; }
.badge svg { display: block; width: 100%; height: 100%; }
.credits { font-size: .75rem; color: #9e8b6e; }
.sans-script { text-align: center; padding: 24px; }
@page { size: A4 landscape; margin: 0; }
@media print {
  :root { color-scheme: light; background: white; }
  html, body { margin: 0; padding: 0; background: white; }
  .outils, .sans-script { display: none !important; }
  #planches { margin: 0; padding: 0; }
  .feuille { width: 297mm; height: 210mm; aspect-ratio: auto; margin: 0; padding: 10mm; gap: 6mm; box-shadow: none; break-inside: avoid; overflow: hidden; }
  .feuille:not(:last-child) { break-after: page; }
  .badge { width: 135.5mm; height: 92mm; }
  svg { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
