#menu-list{
    display: flex;
    list-style: none;
    margin-right: 5px;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.menu-debug {
    position: absolute;
    bottom: 0;
}

.offset-btn {
    left: 20px;
        right: auto;
}


#printImage {
    position: absolute;
    z-index: 100;
    bottom: 0;
    padding: 10px;
}


/* 6x4 pouces demandé au moteur d'impression, aucune marge  */
@page { 
    size: 6in 4in; 
    margin: 0; 
}

@media screen {
    #controls { font-family: system-ui, sans-serif; margin: 24px; }
    #sheet { width: 100%; }
    #sheet canvas { max-width: 100%; }
}


/* Impression : seul le "sheet" visible et plein format 6x4"*/
@media print {
    code, #controls, #preview { 
        display: none !important; 
    }
    html, body { 
        margin: 0; padding: 0;
    }

    /*  Zone à imprimer = page exacte 6x4" (paysage)  */
    #sheet {
        display: block;
        width: 6in;
        height: 4in;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    /*  Le canvas remplit 100% de la page imprimée */
    #sheet > canvas {
        width: 6in;
        height: 4in;
        display: block;
    }
}






/* ===== Mode TEST A4 ===== 
@page { size: A4; margin: 0; }

@media print {
  // Ne rien imprimer d'autre 
  code, #controls, #preview { display: none !important; }
  html, body { margin: 0; padding: 0; }

  // Une seule page A4 sans pagination 
  #sheet {
    position: relative;
    display: block;
    width: 210mm;    // A4 portrait 
    height: 297mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    break-inside: avoid;          // évite la coupe 
    page-break-inside: avoid;
    overflow: hidden;             // pas de débord 
  }
  // Canvas 6×4 centré sur la feuille A4 
  #sheet > canvas {
    width: 150mm;   // 6" = 152,4 mm → 150 mm pour marges non-bordless 
    height: 100mm;  // 4" ≈ 101,6 mm → 100 mm 
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: block;
  }
}
*/