{"version":3,"file":"RealisationsGrid.B4zuP2Nu.mjs","names":["p"],"sources":["https:/framerusercontent.com/modules/odJ0SSxj3QKgFsHQONq1/ZmB0JnCc1dQqFXdugB0k/RealisationsGrid.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function RealisationsGrid(p){let{items,titleFont,titleSize,titleColor,titleWeight,labelFont,labelSize,labelColor,labelWeight}=p;return /*#__PURE__*/_jsxs(\"div\",{className:\"realisations-grid\",children:[items.map((i,k)=>/*#__PURE__*/_jsx(\"a\",{className:`real-card ${i.big?\"big\":\"\"}`,href:i.link,children:/*#__PURE__*/_jsxs(\"div\",{className:\"real-img\",children:[i.image&&/*#__PURE__*/_jsx(\"img\",{src:i.image,alt:i.alt||\"\",className:\"real-photo\"}),/*#__PURE__*/_jsx(\"div\",{className:\"real-dark\"}),/*#__PURE__*/_jsx(\"h3\",{className:\"real-tag\",children:i.title}),/*#__PURE__*/_jsx(\"div\",{className:\"real-overlay\",children:/*#__PURE__*/_jsx(\"span\",{className:\"real-label\",children:i.label})})]})},k)),/*#__PURE__*/_jsx(\"style\",{children:`\n.realisations-grid{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:260px;gap:24px;box-sizing:border-box}\n.real-card{display:block;overflow:hidden;border-radius:14px;background:#161616;border:1px solid rgba(196,155,104,.18);text-decoration:none;box-shadow:0 20px 60px rgba(0,0,0,.32),0 2px 10px rgba(0,0,0,.18);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}\n.real-card.big{grid-column:span 2;grid-row:span 2}\n.real-card:hover{transform:translateY(-6px);border-color:#C49B68;box-shadow:0 28px 80px rgba(0,0,0,.45),0 4px 18px rgba(0,0,0,.28)}\n.real-img{position:relative;width:100%;height:100%;overflow:hidden;background:#111}\n.real-photo{width:100%;height:100%;object-fit:cover;display:block;opacity:.72;transition:transform .45s ease,opacity .45s ease}\n.real-card:hover .real-photo{transform:scale(1.05);opacity:.88}\n.real-dark{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08) 0%,rgba(0,0,0,.28) 45%,rgba(0,0,0,.78) 100%);pointer-events:none}\n.real-tag{position:absolute;left:24px;right:24px;bottom:22px;margin:0;font-family:${titleFont},sans-serif;font-size:${titleSize}px;line-height:1.12;font-weight:${titleWeight};color:${titleColor};text-transform:uppercase;letter-spacing:.04em;text-shadow:0 4px 20px rgba(0,0,0,.45);z-index:2}\n.real-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.58);opacity:0;transition:opacity .25s ease;z-index:3}\n.real-card:hover .real-overlay{opacity:1}\n.real-label{font-family:${labelFont},sans-serif;font-size:${labelSize}px;font-weight:${labelWeight};letter-spacing:.12em;text-transform:uppercase;color:${labelColor}}\n@media(max-width:1000px){.realisations-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:240px}.real-card.big{grid-column:span 2;grid-row:span 1}}\n@media(max-width:640px){.realisations-grid{grid-template-columns:1fr;grid-auto-rows:260px}.real-card.big{grid-column:span 1;grid-row:span 1}.real-tag{font-size:${Math.max(titleSize-4,18)}px;left:22px;right:22px;bottom:22px}.real-label{font-size:${Math.max(labelSize-2,11)}px}}\n`})]});}RealisationsGrid.defaultProps={titleFont:\"Lato\",titleSize:22,titleColor:\"#FFFFFF\",titleWeight:900,labelFont:\"Lato\",labelSize:13,labelColor:\"#C49B68\",labelWeight:800,items:[{image:\"\",alt:\"\",title:\"R\\xe9novation compl\\xe8te\",label:\"Voir le projet →\",link:\"#\",big:true},{image:\"\",alt:\"\",title:\"Piscine\",label:\"Voir le projet →\",link:\"#\",big:false},{image:\"\",alt:\"\",title:\"Ma\\xe7onnerie\",label:\"Voir le projet →\",link:\"#\",big:false},{image:\"\",alt:\"\",title:\"Salle de bain\",label:\"Voir le projet →\",link:\"#\",big:false},{image:\"\",alt:\"\",title:\"Cuisine\",label:\"Voir le projet →\",link:\"#\",big:false}]};addPropertyControls(RealisationsGrid,{titleFont:{type:ControlType.String,title:\"Police H3\"},titleSize:{type:ControlType.Number,title:\"Taille H3\",min:12,max:80},titleColor:{type:ControlType.Color,title:\"Couleur H3\"},titleWeight:{type:ControlType.Number,title:\"Graisse H3\",min:100,max:900,step:100},labelFont:{type:ControlType.String,title:\"Police label\"},labelSize:{type:ControlType.Number,title:\"Taille label\",min:10,max:40},labelColor:{type:ControlType.Color,title:\"Couleur label\"},labelWeight:{type:ControlType.Number,title:\"Graisse label\",min:100,max:900,step:100},items:{type:ControlType.Array,title:\"R\\xe9alisations\",control:{type:ControlType.Object,controls:{image:{type:ControlType.Image,title:\"Image\",description:\"Ratio conseill\\xe9 : 16:9. Taille recommand\\xe9e : 1600 \\xd7 900 px.\"},alt:{type:ControlType.String,title:\"Alt image\",placeholder:\"Laisser vide si d\\xe9corative\"},title:{type:ControlType.String,title:\"H3\"},label:{type:ControlType.String,title:\"Label hover\"},link:{type:ControlType.Link,title:\"Lien\"},big:{type:ControlType.Boolean,title:\"Grande carte\",enabledTitle:\"Oui\",disabledTitle:\"Non\"}}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RealisationsGrid\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RealisationsGrid.map"],"mappings":"mKAA6G,SAAwB,EAAiB,EAAE,CAAC,GAAG,CAAC,QAAM,YAAU,YAAU,aAAW,cAAY,YAAU,YAAU,aAAW,eAAaA,EAAE,OAAoB,EAAM,MAAM,CAAC,UAAU,oBAAoB,SAAS,CAAC,EAAM,KAAK,EAAE,IAAiB,EAAK,IAAI,CAAC,UAAU,aAAa,EAAE,IAAI,MAAM,KAAK,KAAK,EAAE,KAAK,SAAsB,EAAM,MAAM,CAAC,UAAU,WAAW,SAAS,CAAC,EAAE,OAAoB,EAAK,MAAM,CAAC,IAAI,EAAE,MAA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