1import{j as e}from"./vendor-query-DFKzjVri.js";import{u as S,r as v}from"./vendor-react-B9UTwVUJ.js";import{L as A}from"./Layout-U3hfl5tA.js";import{S as L}from"./SEO-DL9ijUL0.js";import{j as P,u as _,k as d,l as x,B as a,m as z,n as R,o as D,p as T,q as V,v as E,s as M,i as y}from"./index-BmRjENVC.js";import{C as r,a as G,b as U,d as i,e as H}from"./card-CwhdHZ1t.js";import{B as I}from"./badge-DnwlTu3o.js";import{A as $,a as u,b as h,c as p}from"./accordion-D8-osc-u.js";import{toast as w}from"./index-CqtmjIGR.js";import{N as J}from"./NativePurchaseRestore-DT2WJ3Fg.js";import{S as k}from"./SubscriptionTermsLinks-DbafYYNQ.js";import{O as B}from"./Orthography1990Notice-C2IRobaX.js";import{C as Y}from"./crown-Ulhw-YL6.js";import{C as t}from"./check-DR_4ma0J.js";import{M as K}from"./map-BRlKdpu7.js";import{U as O}from"./users-DDvM2Vv6.js";import{S as Q}from"./sparkles-Cy9dIcCr.js";import"./use-toast-tfTEdvO_.js";import"./sheet-CR4W5BFg.js";import"./vendor-ui-5lK0Gku8.js";import"./dialog-DtmeHtV9.js";import"./createLucideIcon-DcuJWPyU.js";import"./separator-DO-uaT3r.js";import"./engagementMilestones-JMZ1KSvC.js";import"./settings-k-fEU8RX.js";import"./vendor-supabase-IraqMp5m.js";import"./index-BYAMzom5.js";import"./chevron-down-nkNNnCWc.js";import"./refresh-cw-DHMSkzDk.js";function Ce(){const o=S(),{user:f}=P(),{subscribed:c}=_(),[n,j]=v.useState(!1);v.useEffect(()=>{d("premium_offer_viewed",{dedupeKey:`premium_offer_viewed:${x()}`,source:new URLSearchParams(window.location.search).get("source")}),new URLSearchParams(window.location.search).get("checkout")==="canceled"&&d("checkout_canceled",{dedupeKey:`checkout_canceled:${x()}`})},[]);const b=async()=>{z("premium_click",{source:"abonnement_page"});const s=new URLSearchParams(window.location.search).get("source"),g=R()?.source==="cherinette_et_cherinet",m=s==="preview",q=g?"/histoires/la-porte-0":m?D():s==="child-story-library"?T():null;if(!f){V(m?"/abonnement?source=preview":g?`/abonnement${window.location.search}`:"/abonnement"),o(m?"/auth?tab=signup&plan=free&source=preview":"/auth?tab=premium");return}j(!0);try{const l=E();d("checkout_started",{dedupeKey:`checkout_started:${f.id}:${x()}`,storyId:l.story_id||null,sequenceId:l.sequence_id||null,readingMode:l.reading_mode||null});const{data:N,error:C}=await M.functions.invoke("create-checkout",{body:{return_path:q,...l}});!C&&N?.url?window.location.href=N.url:y()||w.error("Erreur lors de la redirection vers le paiement")}catch{y()||w.error("Erreur lors de la souscription")}finally{j(!1)}};return e.jsxs(A,{children:[e.jsx(L,{title:"Abonnement & Tarifs - Capitaine Aventure",description:"Abonnez-vous à 3,99â¬/mois. Histoires illimitées, 6 profils enfants, Grand Voyage complet, audio, mode DYS."}),e.jsxs("div",{className:"container mx-auto px-3 sm:px-4 py-6 sm:py-10 max-w-4xl",children:[e.jsxs("div",{className:"text-center mb-8 sm:mb-12",children:[e.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-3 leading-tight",children:"⨠Découvrez lâexpérience Premium"}),e.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto text-sm sm:text-base",children:"Accédez à toutes les histoires, tous les profils, tous les modes - sans limite."})]}),e.jsx("section",{className:"mb-10 sm:mb-14",children:e.jsx("div",{className:"max-w-md mx-auto",children:e.jsxs(r,{className:`border-2 relative flex flex-col items-start ${c?"border-primary bg-primary/5":"border-primary/60"}`,children:[e.jsx("div",{className:"absolute -top-3 left-6",children:e.jsx(I,{className:"bg-amber-500 text-white px-3 py-1 text-xs font-semibold",children:"Tarif fondateur - garanti à vie pour les 100 premiers abonnés"})}),e.jsxs(G,{className:"pt-8 text-left w-full",children:[e.jsx(Y,{className:"w-8 h-8 text-primary mb-2"}),e.jsx(U,{className:"text-xl",children:"Abonnement Premium"}),e.jsxs("div",{className:"mt-2",children:[e.jsx("p",{className:"text-sm text-muted-foreground line-through",children:"5,90â¬/mois"}),e.jsxs("p",{className:"text-2xl sm:text-3xl font-bold text-primary",children:["3,99â¬",e.jsx("span",{className:"text-sm sm:text-base font-normal text-muted-foreground",children:"/mois"})]})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Sans engagement · Résiliable à tout moment"})]}),e.jsx(i,{className:"w-full",children:e.jsxs("ul",{className:"space-y-2 text-sm w-full text-left",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-primary mt-0.5 shrink-0"}),e.jsx("span",{className:"flex-1 font-bold text-primary",children:"Histoires illimitées"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-primary mt-0.5 shrink-0"}),e.jsx("span",{className:"flex-1 font-bold text-primary",children:"Jusquâà 6 profils enfants"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-primary mt-0.5 shrink-0"}),e.jsx("span",{className:"flex-1",children:"Atelier de création dâhistoires âï¸"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-primary mt-0.5 shrink-0"}),e.jsxs("span",{className:"flex-1",children:["Mode ",e.jsx("span",{className:"font-bold text-primary",children:"Grand Voyage"})," complet ð§"]})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-primary mt-0.5 shrink-0"}),e.jsx("span",{className:"flex-1",children:"Audio inclus"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-primary mt-0.5 shrink-0"}),e.jsx("span",{className:"flex-1",children:"Mode Dyslexie & TDAH"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-primary mt-0.5 shrink-0"}),e.jsx("span",{className:"flex-1",children:"Sans publicité"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(t,{className:"w-4 h-4 text-primary mt-0.5 shrink-0"}),e.jsx("span",{className:"flex-1",children:"Sans engagement - résiliable à tout moment"})]})]})}
1),e.jsxs(H,{className:"flex flex-col gap-3 w-full",children:[c?e.jsxs(a,{variant:"outline",disabled:!0,className:"w-full",children:[e.jsx(t,{className:"w-4 h-4 mr-2"})," Vous êtes abonné"]}):e.jsx(a,{onClick:b,disabled:n,className:"w-full text-sm sm:text-base text-left",size:"lg",children:n?"Redirection...":"S'abonner : 3,99â¬/mois â"}),e.jsx(J,{className:"w-full"}),e.jsxs("p",{className:"text-[10px] sm:text-xs text-muted-foreground text-left leading-relaxed",children:["Abonnement à renouvèlement automatique · 3,99 â¬/mois · Résiliable à tout moment.",e.jsx("br",{}),"En vous inscrivant, vous acceptez les ",e.jsx(k,{}),"."]})]})]})})}),e.jsxs("section",{className:"mb-10 sm:mb-14","aria-labelledby":"premium-proof-title",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsx("h2",{id:"premium-proof-title",className:"text-xl sm:text-2xl font-bold",children:"Une routine lecture choisie par les enfants"}),e.jsx("p",{className:"text-sm sm:text-base text-muted-foreground mt-2",children:"3,99 â¬/mois · sans publicité · sans engagement"})]}),e.jsx("div",{className:"grid gap-3 sm:grid-cols-3",children:[{quote:"C'est la première fois qu'il accepte une routine lecture, sans rechigner.",author:"Laure"},{quote:"Application très sympa et sans pub !",author:"Sébastien"},{quote:"Les histoires interactives sont top, ma fille adore.",author:"Yoann"}].map(s=>e.jsx(r,{className:"bg-primary/5",children:e.jsxs(i,{className:"pt-5",children:[e.jsx("p",{className:"text-amber-500 mb-2","aria-label":"5 étoiles",children:"â
â
â
â
â
"}),e.jsxs("blockquote",{className:"text-sm leading-relaxed",children:["« ",s.quote," »"]}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-3",children:["â ",s.author,", avis Google Play"]})]})},s.author))}),e.jsxs("div",{className:"mt-4 text-center text-sm text-muted-foreground",children:[e.jsx("a",{href:"https://mediatheque.cahm.net/pratique/capitaine-aventure-histoires-interactives",target:"_blank",rel:"noreferrer",className:"underline underline-offset-4 hover:text-primary",children:"Partenaire de lecture du réseau des médiathèques Hérault Méditerranée"})," (",e.jsx("a",{href:"https://www.agglo-heraultmediterranee.net/accueil/nos-competences/loisirs/le-reseau-des-mediatheques/",target:"_blank",rel:"noreferrer",className:"underline underline-offset-4 hover:text-primary",children:"11 médiathèques"}),")"," · ",e.jsx("a",{href:"https://play.google.com/store/apps/details?id=com.vibecro.capitaineaventure&hl=fr",target:"_blank",rel:"noreferrer",className:"underline underline-offset-4 hover:text-primary",children:"Voir les avis Google Play"})]})]}),e.jsxs("section",{className:"mb-10 sm:mb-14",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsxs("h2",{className:"text-xl sm:text-2xl font-bold flex items-center justify-center gap-2",children:[e.jsx(K,{className:"w-5 h-5 sm:w-6 sm:h-6 text-primary"})," Le Grand Voyage"]}),e.jsx("p",{className:"text-sm sm:text-base text-muted-foreground mt-2 max-w-lg mx-auto",children:"Une aventure en chapitres progressifs, répartie sur plusieurs mondes à explorer. Intégralement accessible avec l'abonnement Premium."})]}),e.jsx("div",{className:"grid gap-3 sm:gap-4 grid-cols-1 sm:grid-cols-3",children:[{emoji:"ðºï¸",title:"Plusieurs mondes",desc:"Chaque monde a sa thématique, ses personnages et ses défis uniques."},{emoji:"ð",title:"Chapitres progressifs",desc:"L'histoire avance avec l'enfant - tous les chapitres sont accessibles avec l'abonnement Premium."},{emoji:"ð",title:"Récompenses",desc:"Mini-jeux bonus, badges et surprises au fil de l'aventure."}].map(s=>e.jsx(r,{className:"text-center",children:e.jsxs(i,{className:"pt-6",children:[e.jsx("span",{className:"text-3xl",children:s.emoji}),e.jsx("h3",{className:"font-semibold mt-2 mb-1",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.desc})]})},s.title))}),e.jsx("div",{className:"text-center mt-4",children:e.jsx(a,{onClick:()=>o("/aventure"),variant:"outline",children:"Découvrir le Grand Voyage â"})})]}),e.jsxs("section",{className:"mb-10 sm:mb-14",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsxs("h2",{className:"text-xl sm:text-2xl font-bold flex items-center justify-center gap-2",children:[e.jsx(O,{className:"w-5 h-5 sm:w-6 sm:h-6 text-primary"})," Lecture en Duo"]}),e.jsx("p",{className:"text-sm sm:text-base text-muted-foreground mt-2 max-w-lg mx-auto",children:"Lisez ensemble ! Un parent et un enfant, chacun son rôle dans l'histoire."})]}),e.jsx("div",{className:"grid gap-3 sm:gap-4 grid-cols-1 sm:grid-cols-3",children:[{emoji:"ð¨âð©âð§",title:"Partagez la lecture",desc:"Le texte alterne entre les passages enfant et les passages parent."},{emoji:"ð",title:"Chacun son rôle",desc:"Narration, dialogues de personnages - chacun lit sa partie à voix haute."},{emoji:"ð¬",title:"Moment complice",desc:"Transformez la lecture en un moment d'échange et de complicité."}].map(s=>e.jsx(r,{className:"text-center",children:e.jsxs(i,{className:"pt-6",children:[e.jsx("span",{className:"text-3xl",children:s.emoji}),e.jsx("h3",{className:"font-semibold mt-2 mb-1",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.desc})]})},s.title))})]}),e.jsxs("section",{className:"mb-10 sm:mb-14",children:[e.jsxs("h2",{className:"text-xl sm:text-2xl font-bold text-center mb-6",children:[e.jsx(Q,{className:"w-5 h-5 sm:w-6 sm:h-6 text-primary inline mr-2"}),"Tout ce qui est inclus"]}),e.jsxs("div",{className:"grid gap-3 sm:gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",children:[e.jsx(r,{className:"border-2 border-primary/30 bg-primary/5 sm:col-span-2 lg:col-span-3",children:e.jsxs(i,{className:"pt-6 flex flex-col sm:flex-row items-center gap-4",children:[e.jsx("span",{className:"text-4xl",children:"ð§"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-base mb-1",children:"Narration audio adaptée au texte"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Les histoires sont lues automatiquement à partir du texte affiché. Quatre histoires de démonstration disposent aussi dâune narration humaine enregistrée par Stéphanie."})]})]})}),[{emoji:"ð¸",title:"Yuki",desc:"Le chat magique qui évolue avec les lectures : nourris-le avec les poissons gagnés."}
1,{emoji:"ð±",title:"Jardin secret",desc:"Des graines cachées dans chaque histoire font pousser un jardin unique."},{emoji:"âï¸",title:"J'écris mon histoire",desc:"L'enfant crée ses propres histoires illustrées et les partage avec ses proches."},{emoji:"ð",title:"Dictionnaire intégré",desc:"Les mots difficiles sont expliqués d'un tap : l'enfant enrichit son vocabulaire."},{emoji:"ð",title:"Sac à dos",desc:"Chaque aventure laisse un objet symbolique à collectionner."},{emoji:"ð§ ",title:"DYS & TDAH",desc:"Syllabes colorées, police adaptée, texte simplifié : la lecture pour tous."}].map(s=>e.jsx(r,{children:e.jsxs(i,{className:"pt-6",children:[e.jsx("span",{className:"text-2xl",children:s.emoji}),e.jsx("h3",{className:"font-semibold mt-2 mb-1",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.desc})]})},s.title))]})]}),e.jsx(B,{}),e.jsxs("section",{className:"mb-10 sm:mb-14 max-w-2xl mx-auto",children:[e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-center mb-6",children:"â Questions fréquentes"}),e.jsxs($,{type:"single",collapsible:!0,className:"w-full text-sm sm:text-base",children:[e.jsxs(u,{value:"lifetime",children:[e.jsx(h,{children:"Mes histoires restent-elles après résiliation ?"}),e.jsx(p,{children:"L'accès illimité au catalogue et au Grand Voyage est actif pendant toute la durée de votre abonnement. Les histoires achetées individuellement ou dans un pack restent quant à elles accessibles à vie."})]}),e.jsxs(u,{value:"unlimited",children:[e.jsx(h,{children:"Combien d'histoires puis-je lire par mois ?"}),e.jsx(p,{children:"Avec l'abonnement Premium, vous accédez à toutes les histoires du catalogue sans limite, ainsi qu'au Grand Voyage en entier. Aucun quota mensuel : lisez autant que vous le souhaitez."})]}),e.jsxs(u,{value:"duo",children:[e.jsx(h,{children:"Comment fonctionne la lecture en duo ?"}),e.jsx(p,{children:"Activez le mode Duo avant de commencer la lecture. Le texte alterne entre les passages pour l'enfant et ceux pour le parent, transformant la lecture en un moment de partage. Disponible sur toutes les histoires du catalogue."})]})]})]}),e.jsxs("section",{className:"text-center bg-gradient-to-b from-primary/5 to-transparent rounded-2xl p-5 sm:p-8",children:[e.jsx("h2",{className:"text-xl sm:text-2xl font-bold mb-2",children:"Prêt à embarquer ?"}),e.jsx("p",{className:"text-sm sm:text-base text-muted-foreground mb-4 sm:mb-6",children:"Rejoignez les premiers abonnés à tarif fondateur."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[c?e.jsxs(a,{variant:"outline",disabled:!0,size:"lg",children:[e.jsx(t,{className:"w-4 h-4 mr-2"})," Vous êtes déjà abonné"]}):e.jsx(a,{onClick:b,disabled:n,size:"lg",children:n?"Redirection...":"S'abonner : 3,99â¬/mois â"}),e.jsx(a,{onClick:()=>o("/bibliotheque"),variant:"outline",size:"lg",children:"Voir le catalogue â"})]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-4",children:e.jsx(k,{})})]})]})]})}export{Ce as default};
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.