1import{u as i,j as e}from"./query-DUb7tUyD.js";import{d as c,D as d,s as m}from"./index-N3_VRWQ8.js";import{u as x}from"./i18n-BWx4t1Tl.js";import"./vendor-CdI7Z9yY.js";import"./ui-CH0d2Tgn.js";import"./supabase-CxJxhLEm.js";const o=["bg-sage/20 group-hover:bg-sage/40","bg-ocean/20 group-hover:bg-ocean/40","bg-rose/30 group-hover:bg-rose/50","bg-terracotta/20 group-hover:bg-terracotta/40"],v=()=>{const{data:n}=i({queryKey:["public-menus"],queryFn:async()=>{const{data:s,error:a}=await m.from("menu_cards").select("*").order("sort_order");if(a)throw a;return s}}),t=(n??[]).filter(s=>s.is_active!==!1),{t:r}=x(),{t:l}=c(t.map(s=>s.label));return t.length===0?null:e.jsxs("section",{id:"carte",className:"relative overflow-hidden",children:[e.jsx("div",{className:"w-full h-14 pattern-diamond opacity-60"}),e.jsx("div",{className:"py-20 lg:py-32 bg-background relative",children:e.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("p",{className:"font-script text-xl text-rose-dark mb-2",children:r("menus.discover")}),e.jsx("h2",{className:"font-display text-4xl lg:text-5xl text-sage-dark tracking-wide mb-4",children:r("menus.title")}),e.jsxs("div",{className:"flex items-center justify-center gap-4 mb-6",children:[e.jsx("div",{className:"w-20 h-0.5 bg-sage"}),e.jsx("div",{className:"w-3 h-3 rounded-full bg-rose"}),e.jsx("div",{className:"w-20 h-0.5 bg-sage"})]}),e.jsx("p",{className:"font-body text-lg text-muted-foreground max-w-2xl mx-auto",children:r("menus.description")})]}),e.jsx("div",{className:`grid sm:grid-cols-2 ${t.length>=4?"lg:grid-cols-4":t.length===3?"lg:grid-cols-3":""} gap-6 lg:gap-8 max-w-4xl mx-auto`,children:t.map((s,a)=>e.jsxs("a",{href:s.pdf_url,target:"_blank",rel:"noopener noreferrer",className:"group relative bg-card rounded-3xl p-8 shadow-elegant hover-lift text-center flex flex-col items-center gap-4",children:[e.jsx("div",{className:`w-16 h-16 rounded-full flex items-center justify-center transition-colors duration-300 ${o[a%o.length]}`,children:e.jsx(d,{name:s.icon||"file-text",className:"w-7 h-7 text-foreground"})}),e.jsx("h3",{className:"font-display text-lg tracking-wider text-foreground",children:l(s.label)}),e.jsx("span",{className:"font-body text-sm text-muted-foreground group-hover:text-sage transition-colors duration-300",children:r("menus.viewMenu")})]},s.id))})]})}),e.jsx("div",{className:"w-full h-14 pattern-diamond opacity-60"})]})};export{v as default}; 2//# sourceMappingURL=MenuSection-DjCevvWQ.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.