{"version":3,"file":"BlogCards.D6kH5LDg.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/xpAsyEMKXEOlgThDtmYE/sNhSwUSeaxtDWR4m4cBg/BlogCards.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const DEFAULT_CARDS=[{tag:\"Visibilit\\xe9 IA\",title:\"R\\xe9f\\xe9rencement IA (GEO) : comment \\xeatre cit\\xe9 par ChatGPT, Perplexity et Google\",excerpt:\"Sur quoi s’appuient les IA pour r\\xe9pondre, ce que l’on peut influencer, et comment le mesurer.\",link:\"/blog/referencement-ia-geo\"},{tag:\"Budget\",title:\"Combien co\\xfbte le SEO pour une PME, et comment savoir s’il est rentable\",excerpt:\"Les fourchettes de prix, ce qu’elles recouvrent, et le calcul \\xe0 faire avant d’investir.\",link:\"/blog/combien-coute-le-seo-pme\"},{tag:\"Strat\\xe9gie\",title:\"SEO ou SEA : que choisir quand on est une PME B2B ?\",excerpt:\"D\\xe9lais, co\\xfbts et durabilit\\xe9 compar\\xe9s, et les cas o\\xf9 le SEO n’est pas la priorit\\xe9.\",link:\"/blog/seo-ou-sea-pme-b2b\"}];// Articles du site : sert de secours quand le champ « Lien » d'une carte\n// est laissé vide dans le panneau de droite.\nconst LINK_BY_TAG={\"visibilit\\xe9 ia\":\"/blog/referencement-ia-geo\",budget:\"/blog/combien-coute-le-seo-pme\",stratégie:\"/blog/seo-ou-sea-pme-b2b\"};// The grid and the heading size follow the width of the component itself\n// through CSS container queries. Nothing is measured in JavaScript, so the\n// layout is right from the very first paint on every screen (no jump from\n// three columns to one when the page loads on a phone).\nconst CSS=`\n.gr-blog{container-type:inline-size}\n.gr-blog .gr-blog-title{font-size:32px}\n.gr-blog .gr-blog-grid{display:grid;gap:20px;grid-template-columns:minmax(0,1fr)}\n@container (min-width:600px){\n.gr-blog .gr-blog-title{font-size:44px}\n.gr-blog .gr-blog-grid{grid-template-columns:var(--gr-cols-2)}\n}\n@container (min-width:920px){\n.gr-blog .gr-blog-grid{grid-template-columns:var(--gr-cols-3)}\n}\n`;/**\n * Encart d'articles de blog : titre de section et grille de cartes.\n *\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 640\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function BlogCards({eyebrow=\"Ressources\",heading=\"Des r\\xe9ponses concr\\xe8tes pour \\xeatre trouv\\xe9 en ligne\",intro=\"Des articles pour les dirigeants de PME B2B, sans jargon.\",cards=DEFAULT_CARDS,readLabel=\"Lire l’article\",soonLabel=\"\\xc0 para\\xeetre\",background=\"transparent\",cardColor=\"#FAF7F3\",textColor=\"#1B1C19\",mutedColor=\"#5C5A52\",accent=\"#C9C101\",borderColor=\"rgba(27, 28, 25, 0.16)\",radius=20,font,style}){const[hover,setHover]=React.useState(null);// Framer's preview addresses pages as \"?path=/blog/...\" instead of \"/blog/...\".\nconst[preview,setPreview]=React.useState(false);React.useEffect(()=>{try{setPreview(new URL(window.location.href).searchParams.has(\"path\"));}catch{}},[]);const href=path=>{if(!preview||!path.startsWith(\"/\")||path.startsWith(\"//\"))return path;try{const url=new URL(window.location.href);url.searchParams.set(\"path\",path);url.hash=\"\";return url.pathname+url.search;}catch{return path;}};const type={fontFamily:'\"Assistant\", \"PP Neue Montreal Medium\", \"Inter\", sans-serif',...font};const total=Math.max(1,cards.length);const columns=max=>`repeat(${Math.min(max,total)}, minmax(0, 1fr))`;return /*#__PURE__*/_jsxs(\"section\",{className:\"gr-blog\",style:{width:\"100%\",...style,...type,background,color:textColor,display:\"flex\",flexDirection:\"column\",gap:48,boxSizing:\"border-box\",\"--gr-cols-2\":columns(2),\"--gr-cols-3\":columns(3)},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsxs(\"header\",{style:{display:\"flex\",flexDirection:\"column\",gap:14,maxWidth:640},children:[eyebrow&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:13,letterSpacing:\"0.1em\",textTransform:\"uppercase\",color:mutedColor},children:eyebrow}),/*#__PURE__*/_jsx(\"h2\",{className:\"gr-blog-title\",style:{margin:0,lineHeight:1.1,fontWeight:600,letterSpacing:\"-0.02em\"},children:heading}),intro&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:18,lineHeight:1.5,color:mutedColor},children:intro})]}),/*#__PURE__*/_jsx(\"div\",{className:\"gr-blog-grid\",children:cards.map((card,index)=>{const target=card.link&&card.link.trim()||LINK_BY_TAG[(card.tag||\"\").trim().toLowerCase()]||\"\";const live=!!target;const on=hover===index&&live;const Wrapper=live?\"a\":\"article\";return /*#__PURE__*/_jsxs(Wrapper,{...live?{href:href(target)}:{},onMouseEnter:()=>setHover(index),onMouseLeave:()=>setHover(null),onFocus:()=>setHover(index),onBlur:()=>setHover(null),style:{display:\"flex\",flexDirection:\"column\",background:cardColor,border:`1px solid ${on?textColor:borderColor}`,borderRadius:radius,overflow:\"hidden\",color:textColor,textDecoration:\"none\",minWidth:0,transform:on?\"translateY(-4px)\":\"translateY(0)\",transition:\"transform 0.3s ease, border-color 0.3s ease\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{aspectRatio:\"16 / 10\",background:card.image?.src?undefined:`repeating-linear-gradient(90deg, ${accent} 0 26px, rgba(255, 253, 220, 0.35) 26px 28px, ${accent} 28px 54px, rgba(60, 58, 0, 0.14) 54px 56px)`,backgroundColor:accent,overflow:\"hidden\"},children:card.image?.src&&/*#__PURE__*/_jsx(\"img\",{src:card.image.src,srcSet:card.image.srcSet,alt:card.image.alt||\"\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:12,padding:24,flex:1},children:[card.tag&&/*#__PURE__*/_jsx(\"span\",{style:{alignSelf:\"flex-start\",fontSize:12,letterSpacing:\"0.06em\",textTransform:\"uppercase\",padding:\"6px 10px\",borderRadius:999,border:`1px solid ${borderColor}`},children:card.tag}),/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,fontSize:21,lineHeight:1.25,fontWeight:600,letterSpacing:\"-0.01em\"},children:card.title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:15.5,lineHeight:1.5,color:mutedColor,flex:1},children:card.excerpt}),/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:10,fontSize:15,marginTop:6,color:live?textColor:mutedColor},children:[live&&/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{width:32,height:32,borderRadius:\"50%\",display:\"grid\",placeItems:\"center\",background:on?accent:textColor,color:on?textColor:cardColor,transition:\"background 0.3s ease, color 0.3s ease\"},children:\"→\"}),live?readLabel:soonLabel]})]})]},index);})})]});}addPropertyControls(BlogCards,{eyebrow:{type:ControlType.String,title:\"Surtitre\",defaultValue:\"Ressources\"},heading:{type:ControlType.String,title:\"Titre\",defaultValue:\"Des r\\xe9ponses concr\\xe8tes pour \\xeatre trouv\\xe9 en ligne\",displayTextArea:true},intro:{type:ControlType.String,title:\"Introduction\",defaultValue:\"Des articles pour les dirigeants de PME B2B, sans jargon.\",displayTextArea:true},cards:{type:ControlType.Array,title:\"Articles\",maxCount:12,defaultValue:DEFAULT_CARDS,control:{type:ControlType.Object,controls:{tag:{type:ControlType.String,title:\"Th\\xe8me\",defaultValue:\"Th\\xe8me\"},title:{type:ControlType.String,title:\"Titre\",defaultValue:\"Titre de l’article\",displayTextArea:true},excerpt:{type:ControlType.String,title:\"R\\xe9sum\\xe9\",defaultValue:\"R\\xe9sum\\xe9 en une ou deux phrases.\",displayTextArea:true},link:{type:ControlType.Link,title:\"Lien\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"}}}},readLabel:{type:ControlType.String,title:\"Texte lien\",defaultValue:\"Lire l’article\"},soonLabel:{type:ControlType.String,title:\"Sans lien\",defaultValue:\"\\xc0 para\\xeetre\"},background:{type:ControlType.Color,title:\"Fond\",defaultValue:\"transparent\"},cardColor:{type:ControlType.Color,title:\"Carte\",defaultValue:\"#FAF7F3\"},textColor:{type:ControlType.Color,title:\"Texte\",defaultValue:\"#1B1C19\"},mutedColor:{type:ControlType.Color,title:\"Texte secondaire\",defaultValue:\"#5C5A52\"},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#C9C101\"},borderColor:{type:ControlType.Color,title:\"Bordure\",defaultValue:\"rgba(27, 28, 25, 0.16)\"},radius:{type:ControlType.Number,title:\"Arrondi\",defaultValue:20,min:0,max:40,step:1,unit:\"px\"},font:{type:ControlType.Font,title:\"Police\",controls:\"basic\",defaultFontType:\"sans-serif\"}});BlogCards.displayName=\"Encart blog\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlogCards\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"640\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"1200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlogCards.map"],"mappings":"4LAwBG,SAAwB,EAAU,CAAC,UAAQ,aAAa,UAAQ,mDAA+D,QAAM,4DAA4D,QAAM,EAAc,YAAU,iBAAiB,YAAU,aAAmB,aAAW,cAAc,YAAU,UAAU,YAAU,UAAU,aAAW,UAAU,SAAO,UAAU,cAAY,yBAAyB,SAAO,GAAG,OAAK,SAAO,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAe,IAAI,EACvd,CAAC,EAAQ,GAAYA,EAAe,EAAK,EAAE,MAAoB,CAAC,GAAG,CAAC,EAAW,IAAI,IAAI,EAAO,SAAS,IAAI,CAAC,CAAC,aAAa,IAAI,MAAM,CAAC,CAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAM,EAAK,GAAM,CAAC,GAAG,CAAC,GA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