/* Affiche A4 paysage — imprimable / PDF */
:root { --accent: #c94a2f; --sun: #f5b83d; --peach: #f7d3c1; --cream: #fff6ec; --ink: #2c2a33; --muted: #6f6a66; --line: #ecdccb; --veg: #3f8f3a;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #e9e5de;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }

.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.toolbar button { font: inherit; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer; }

.sheet { position: relative; width: 297mm; min-height: 210mm; margin: 16px auto; padding: 8mm 11mm 9mm; background: #fff;
  display: flex; flex-direction: column; box-shadow: 0 2px 12px rgba(0,0,0,.12);
  border: 2.5mm solid var(--peach); border-radius: 6mm; }

.head { display: flex; align-items: center; gap: 14px; padding: 3mm 5mm; margin-bottom: 4mm; background: var(--cream); border-radius: 5mm; }
.titles { flex: 1; }
.head-art { height: 25mm; width: auto; border-radius: 3mm; }
.logo { height: 22mm; width: auto; }
.eyebrow { margin: 0; display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: 8pt; font-weight: 800;
  background: var(--sun); color: #5b3a00; padding: .6mm 2.5mm; border-radius: 99px; }
h1 { margin: 1mm 0 0; font-size: 25pt; color: var(--accent); line-height: 1.05; }
.week { margin: 2px 0 0; font-size: 13pt; font-weight: 700; }

.grid { width: 100%; border-collapse: separate; border-spacing: 2mm; table-layout: fixed; flex: 1; margin: -2mm; width: calc(100% + 4mm); }
.grid th, .grid td { border-radius: 3mm; vertical-align: top; }
.grid thead th { background: var(--accent); color: #fff; padding: 2.5mm 3mm; text-align: left; font-size: 12pt; border-radius: 3mm 3mm 1.5mm 1.5mm; }
.grid thead th.veg { background: var(--veg); }
.grid thead .corner { background: none; width: 34mm; }
.dn { font-weight: 800; } .dd { font-weight: 400; opacity: .9; font-size: 10pt; }
.grid thead .vegtag, .grid thead .theme { display: block; margin-top: 1mm; font-size: 8.5pt; font-weight: 600; }
.grid tbody th { text-align: center; vertical-align: middle; font-size: 7pt; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; color: var(--accent); font-weight: 800; padding: 1mm; }
.grid tbody th .cat-ico { display: block; width: 9mm; height: 9mm; object-fit: contain; margin: 0 auto .8mm; }
.grid td { background: var(--cream); padding: 2.5mm 3mm; font-size: 11pt; }
.grid td.off { background: repeating-linear-gradient(45deg, #f3f0ea, #f3f0ea 6px, #ebe6dd 6px, #ebe6dd 12px);
  text-align: center; vertical-align: middle; font-weight: 700; color: var(--muted); }
.dish { font-weight: 600; margin-bottom: 1.2mm; }
.dish:last-child { margin-bottom: 0; }
.marks { display: inline-flex; flex-wrap: wrap; gap: 2px; vertical-align: middle; }

.lbl { display: inline-block; font-size: 6.5pt; font-weight: 800; line-height: 1; padding: 2px 4px; border-radius: 3px; color: #fff; background: var(--c, #555); vertical-align: middle; }
.lbl-logo { height: 5mm; width: auto; vertical-align: middle; }
.alg { display: inline-grid; place-items: center; min-width: 4mm; height: 4mm; padding: 0 2px; border-radius: 999px; border: 1px solid #b9b2a5; font-size: 6.5pt; font-weight: 700; color: var(--muted); vertical-align: middle; }
.vegtag { color: inherit; }
.foot .vegtag { display: inline-block; background: var(--veg); color: #fff; font-size: 7pt; font-weight: 800; padding: 2px 5px; border-radius: 3px; }

.foot { margin-top: 6mm; font-size: 8.5pt; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 2mm 5mm; margin-bottom: 1.5mm; align-items: center; }
.msg { margin: 1mm 0 0; }

@page { size: A4 landscape; margin: 0; }
@media print {
  body { background: #fff; }
  .toolbar { display: none; }
  .sheet { margin: 0; box-shadow: none; width: 297mm; height: 210mm; overflow: hidden; }
}
@media screen and (max-width: 1150px) {
  .sheet { width: auto; min-height: 0; margin: 8px; padding: 16px; }
}
.credit { margin: 1mm 0 0; font-size: 7.5pt; color: #8a918e; }
.credit strong { color: var(--accent); }

.foot { position: relative; padding-right: 58mm; min-height: 17mm; }
.foot-art { position: absolute; right: 0; bottom: 0; height: 17mm; width: auto; }
.frise { height: 5mm; margin: 2mm -2mm -2mm; background: url("deco/frise-legumes.webp") repeat-x center / auto 5mm; }
.credit img { height: 3.5mm; width: auto; vertical-align: -0.8mm; margin-right: 1mm; }
.credit strong { color: #1B365D; }
