/* Menus de cantine — page publique. Aucune ressource externe (polices système). */
:root {
  --accent: #c94a2f;          /* tomate (couleur de la cantine, modifiable) */
  --sun: #f5b83d;             /* jaune soleil */
  --peach: #f7d3c1;
  --ink: #2c2a33;
  --muted: #6f6a66;
  --paper: #fff8ef;
  --card: #ffffff;
  --line: #f0e0cf;
  --veg: #3f8f3a;
  --radius: 18px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.45;
  background: var(--paper) radial-gradient(circle at 1px 1px, rgba(201,74,47,.07) 1px, transparent 0) 0 0 / 22px 22px; }
body.embed { background: transparent; }
a { color: var(--accent); }

/* En-tête illustré */
.site-head { background: linear-gradient(180deg, #fff1e4 0%, #ffe6d6 100%); border-bottom: 3px solid var(--peach); }
.head-in { max-width: 1200px; margin: 0 auto; padding: 22px 16px 14px; display: flex; align-items: center; gap: 18px; }
.head-text { flex: 1; min-width: 0; }
.site-logo { height: 72px; width: auto; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.site-head h1 { margin: 2px 0; font-size: clamp(1.7rem, 4.4vw, 2.6rem); letter-spacing: -.01em; color: var(--accent); line-height: 1.05; }
.eyebrow { margin: 0; display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; font-weight: 800;
  background: var(--sun); color: #5b3a00; padding: 3px 10px; border-radius: 999px; }
.sub { margin: 4px 0 0; font-weight: 600; color: #6b4a3a; }
.head-art { height: 150px; width: auto; flex: 0 0 auto; border-radius: 16px; }
.frise { height: 28px; background: url("deco/frise-legumes.webp") repeat-x center / auto 24px; opacity: .9; margin: 6px 0 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }
body.embed .wrap { padding: 8px 0 16px; }

.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.week-nav h2 { margin: 0; font-size: clamp(1.05rem, 2.6vw, 1.35rem); text-align: center; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; border: 2px solid var(--accent); background: var(--card);
  text-decoration: none; color: var(--accent); font-size: .92rem; font-weight: 700;
}
.nav-btn:hover { background: var(--accent); color: #fff; }
.nav-btn span[aria-hidden] { font-size: 1.3em; line-height: 1; }

.notice { background: #fff4d6; border: 1px solid #f0d58a; padding: 10px 14px; border-radius: 10px; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); background: var(--card); border-radius: var(--radius); border: 2px dashed var(--peach); }
.empty img { width: 72px; height: auto; } .empty p { margin: 8px 0 0; font-weight: 600; }

.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.day {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 0 0 14px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 3px 0 var(--line);
}
.day.is-today { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.day-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 16px; background: var(--accent); color: #fff;
}
.day-name { font-weight: 800; font-size: 1.15rem; }
.day-date { font-size: .9rem; opacity: .9; }
.day.is-veg .day-head { background: var(--veg); }
.day.is-off { background: rgba(255,255,255,.5); border-style: dashed; box-shadow: none; }
.day.is-off .day-head { background: #e9e1d7; color: var(--muted); }
.off { margin: auto; padding: 28px 16px; text-align: center; color: var(--muted); font-weight: 600; }
.off span { font-weight: 400; font-size: .9rem; }

.day-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.theme { font-size: .8rem; padding: 3px 9px; border-radius: 999px; background: #fff0c7; color: #7a4d00; font-weight: 700; }
.veg-tag { font-size: .8rem; padding: 3px 9px; border-radius: 999px; background: var(--veg); color: #fff; font-weight: 700; }
.veg-tag::before { content: "🌱 "; }

.courses { margin: 0; padding: 4px 16px 0; }
.courses dt { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 800; }
.cat-ico { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.courses dd { margin: 2px 0 0 32px; font-size: 1rem; }
.dish { font-weight: 600; }
.marks { display: inline-flex; flex-wrap: wrap; gap: 3px; vertical-align: middle; margin-left: 4px; }

.lbl {
  display: inline-block; font-size: .64rem; font-weight: 800; line-height: 1; letter-spacing: .02em;
  padding: 3px 5px; border-radius: 4px; color: #fff; background: var(--c, #555); vertical-align: middle;
}
.lbl-logo { height: 20px; width: auto; vertical-align: middle; }
.alg {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px;
  border-radius: 999px; border: 1px solid #c9c2b5; color: var(--muted); font-size: .66rem; font-weight: 700; vertical-align: middle;
}

.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
  margin-top: 22px; padding: 16px 18px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); }
.legend h3 { margin: 0 0 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .9rem; }

.foot { margin-top: 24px; color: var(--muted); font-size: .9rem; text-align: center; }
.foot-art { display: block; width: min(316px, 80%); height: auto; margin: 0 auto 10px; }
.foot .small { font-size: .8rem; }

@media (max-width: 720px) { .head-art { height: 96px; } }
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .head-in { padding-top: 16px; flex-wrap: wrap; }
  .head-art { order: -1; width: 100%; height: auto; max-height: 140px; object-fit: contain; }
  .site-logo { height: 52px; }
}

.credit { margin: 18px 0 0; font-size: .82rem; color: var(--muted); }
.credit a { color: inherit; }
.credit strong { color: var(--accent); }
.credit.compact { margin-top: 10px; font-size: .75rem; }
.wc-credit { display: inline-flex; align-items: center; gap: 4px; color: #1B365D !important; text-decoration: none; }
.wc-credit img { width: 16px; height: 16px; }
.wc-credit strong { color: #1B365D; } .wc-credit:hover strong { text-decoration: underline; }
