1import{u as w,a as g,i as k,r as p,s as b,j as e,B as n,L as c}from"./index-CzCo1uEy.js";import{C as x,a as u}from"./card-ilnJWVEg.js";import{g as C}from"./pricing.functions-MXnxNiFc.js";import{H as S,h as j}from"./HomeVideoSection-DyZAZfgF.js";import{S as I,U as P}from"./upload-D2NnuzgI.js";import"./package-B_Cy-qow.js";import"./image-WARZ6ISt.js";import"./mail-C3K955Ry.js";const q="/assets/hero-illustration-BQ7V8s7c.jpg",f=s=>({locale:s,hero:{tagline:"",title:"",subtitle:"",ctaPrimary:"",ctaSecondary:""},video:{enabled:!1,title:"",subtitle:"",url:"",autoplay:!1},features:{title:"",cards:[]},pricing:{title:"",subtitle:""},footer:{text:""},objects:null});function _(){const{t:s,i18n:N}=w(),d=N.language.slice(0,2),{data:y}=g({...k(d),placeholderData:f(d),retry:1}),r=y??f(d),{data:v}=g({queryKey:["credit-packs"],queryFn:()=>C()}),[o,h]=p.useState("/auth");p.useEffect(()=>{b.auth.getSession().then(({data:a})=>{h(a.session?"/create":"/auth")});const{data:t}=b.auth.onAuthStateChange((a,m)=>{h(m?"/create":"/auth")});return()=>t.subscription.unsubscribe()},[]);const i=r.hero,l=r.objects;return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsxs("section",{id:"description",className:"relative overflow-hidden scroll-mt-20",children:[e.jsx("div",{className:"absolute inset-0 -z-10 bg-gradient-to-b from-secondary/40 via-background to-background"}),e.jsxs("div",{className:"container mx-auto grid gap-12 px-4 py-16 md:grid-cols-2 md:py-24 md:items-center",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-border bg-card/60 px-3 py-1 text-xs font-medium text-muted-foreground backdrop-blur",children:[e.jsx(I,{className:"h-3.5 w-3.5 text-primary"}),i.tagline||s("landing.hero.tagline")]}),e.jsx("h1",{className:"text-4xl font-bold tracking-tight text-foreground md:text-6xl",children:i.title||s("landing.hero.title")}),e.jsx("p",{className:"max-w-xl text-lg text-muted-foreground",children:i.subtitle||s("landing.hero.subtitle")}),e.jsxs("div",{className:"flex flex-wrap gap-3 pt-2",children:[e.jsx(n,{size:"lg",asChild:!0,children:e.jsx(c,{to:o,children:i.ctaPrimary||s("landing.hero.ctaPrimary")})}),e.jsx(n,{size:"lg",variant:"outline",asChild:!0,children:e.jsx(c,{to:"/pricing",children:i.ctaSecondary||s("landing.hero.ctaSecondary")})})]})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute -inset-4 -z-10 rounded-3xl bg-gradient-to-tr from-primary/15 via-accent/20 to-transparent blur-2xl"}),e.jsx("img",{src:i.imageUrl||q,alt:i.title||"Illustration aquarelle d'un voyageur avec son appareil photo",width:1024,height:1024,className:"aspect-square w-full rounded-3xl border border-border/60 object-cover shadow-2xl"})]})]})]}),e.jsx(S,{block:r.video}),e.jsxs("section",{id:"explanations",className:"container mx-auto px-4 py-16 md:py-24 scroll-mt-20",children:[e.jsx("h2",{className:"mx-auto max-w-2xl text-center text-3xl font-bold tracking-tight md:text-4xl",children:r.features.title||s("landing.features.title")}),e.jsx("div",{className:"mt-12 grid gap-6 md:grid-cols-3",children:r.features.cards.map((t,a)=>{const m=j(t.icon);return e.jsx(x,{className:"border-border/60 bg-card/60 backdrop-blur transition hover:border-primary/40 hover:shadow-md",children:e.jsxs(u,{className:"space-y-3 pt-6",children:[e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-primary/10 text-primary",children:e.jsx(m,{className:"h-5 w-5"})}),e.jsx("h3",{className:"text-lg font-semibold",children:t.title}),e.jsx("p",{className:"text-sm leading-relaxed text-muted-foreground",children:t.body})]})},`${t.title}-${a}`)})})]}),l?.enabled!==!1&&e.jsx("section",{id:"objects",className:"border-t border-border/60 bg-card/40 scroll-mt-20",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 md:py-24",children:[e.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[e.jsx("h2",{className:"text-3xl font-bold tracking-tight md:text-4xl",children:l?.title||s("landing.objects.title")}),e.jsx("p",{className:"mt-3 text-muted-foreground",children:l?.subtitle||s("landing.objects.subtitle")})]}),e.jsx("div",{className:"mt-12 grid gap-6 md:grid-cols-3",children:(l?.cards.filter(t=>t.enabled)??[]).map(t=>{const a=j(t.icon);return e.jsx(x,{className:"border-border/60 bg-background/70",children:e.jsxs(u,{className:"space-y-3 pt-6",children:[e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-primary/10 text-primary",children:e.jsx(a,{className:"h-5 w-5"})}),e.jsx("h3",{className:"text-lg font-semibold",children:t.title}),e.jsx("p",{className:"text-sm leading-relaxed text-muted-foreground",children:t.body})]})},t.id)})}),e.jsxs("div",{className:"mx-auto mt-8 flex max-w-2xl flex-col items-center gap-4 text-center",children:[e.jsxs("p",{className:"inline-flex items-start gap-2 rounded-lg bg-secondary/50 p-3 text-sm text-muted-foreground",children:[e.jsx(P,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),e.jsx("span",{children:l?.ownImage||s("landing.objects.ownImage")})]}),e.jsx(n,{asChild:!0,children:e.jsx(c,{to:o,children:l?.ctaLabel||s("landing.objects.cta")})})]})]})}),e.jsx("section",{id:"pricing",className:"border-t border-border/60 bg-secondary/30 scroll-mt-20",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 md:py-24",children:[e.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[e.jsx("h2",{className:"text-3xl font-bold tracking-tight md:text-4xl",children:r.pricing.title||s("landing.pricing.title")}),e.jsx("p",{className:"mt-3 text-muted-foreground",children:r.pricing.subtitle||s("landing.pricing.subtitle")})]}),e.jsx("div",{className:"mt-12 grid gap-6 md:grid-cols-3",children:(v??[]).map((t,a)=>e.jsx(x,{className:a===1?"border-primary shadow-lg":"border-border/60",children:e.jsxs(u,{className:"space-y-4 pt-6 text-center",children:[e.jsx("div",{className:"text-sm font-medium uppercase tracking-wider text-muted-foreground",children:t.id}),e.jsxs("div",{className:"text-4xl font-bold",children:[t.price_eur.toFixed(2)," â¬"]}),e.jsx("div",{className:"text-muted-foreground",children:s("landing.pricing.creditsLabel",{count:t.credits})}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("landing.pricing.perUnit",{count:t.credits,price:(t.price_eur/t.credits).toFixed(2)})}),e.jsx(n,{className:"w-full",variant:a===1?"default":"outline",asChild:!0,children:e.jsx(c,{to:o==="/create"?"/credits":"/auth",children:s("landing.pricing.select")})})]})},t.id))})]})})]})}export{_ as component};
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.