{"version":3,"file":"Projets.B9DCbabB.mjs","names":[],"sources":["https:/framerusercontent.com/modules/USeexldPZIWbeNfOLfxo/6HKMxHJhwzK4GJxGCmaT/Projets.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * ZehraPortal — Portail responsive (optimisé mobile)\n * - Gère le dark mode via data-framer-theme\n * - Slugs internes ou liens externes\n */export default function ZehraPortal(props){const{title,subtitle,logo,videosURL,photosURL,graphismeURL,peinturesURL,cornerRadius,forceTheme}={title:\"Zehra M\\xe9dia\",subtitle:\"Vid\\xe9os \\xb7 Photos \\xb7 Graphisme \\xb7 Peintures\",videosURL:\"mesvideos\",photosURL:\"photos\",graphismeURL:\"graphisme\",peinturesURL:\"dessins\",cornerRadius:20,forceTheme:\"auto\",...props};// — Thème\nReact.useEffect(()=>{const html=document.documentElement;const setTheme=m=>html.setAttribute(\"data-framer-theme\",m);if(forceTheme===\"light\"||forceTheme===\"dark\"){setTheme(forceTheme);return;}const hasAttr=html.hasAttribute(\"data-framer-theme\");const mq=window.matchMedia(\"(prefers-color-scheme: dark)\");const applyAuto=()=>setTheme(mq.matches?\"dark\":\"light\");if(!hasAttr)applyAuto();mq.addEventListener?.(\"change\",applyAuto);return()=>mq.removeEventListener?.(\"change\",applyAuto);},[forceTheme]);// — Utils\nconst toHref=v=>{if(!v)return\"#\";if(v.startsWith(\"/\"))return v;if(/^https?:\\/\\//i.test(v))return v;return`/${v.replace(/^\\/+/,\"\")}`;};const isInternal=h=>h.startsWith(\"/\");const Card=(label,t,desc,emoji,slug)=>{const href=toHref(slug);const linkProps=isInternal(href)?{\"data-framer-page-link\":true,target:\"_self\"}:{target:\"_blank\",rel:\"noreferrer\"};return /*#__PURE__*/_jsxs(\"a\",{className:\"zp-card\",href:href,...linkProps,style:{borderRadius:cornerRadius},children:[/*#__PURE__*/_jsxs(\"span\",{className:\"zp-tag\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"zp-tag-dot\"}),\" \",label]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h2\",{className:\"zp-t\",children:t}),/*#__PURE__*/_jsx(\"p\",{className:\"zp-desc\",children:desc})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"zp-foot\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"zp-cta\",children:\"Entrer\"}),/*#__PURE__*/_jsx(\"span\",{className:\"zp-ghost\",\"aria-hidden\":true,children:emoji})]}),/*#__PURE__*/_jsx(\"div\",{className:\"zp-flare\"})]});};return /*#__PURE__*/_jsxs(\"div\",{className:\"zp-root\",children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsx(\"header\",{className:\"zp-header\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"zp-brand\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"zp-brand-logo\",style:{backgroundImage:logo?`url(${logo})`:undefined}}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h1\",{className:\"zp-brand-title\",children:title}),/*#__PURE__*/_jsx(\"div\",{className:\"zp-subtitle\",children:subtitle})]})]})}),/*#__PURE__*/_jsx(\"main\",{className:\"zp-grid-wrap\",children:/*#__PURE__*/_jsxs(\"section\",{className:\"zp-grid\",children:[Card(\"Filmaker\",\"Vid\\xe9os\",\"Clips, reportages, mariages, teasers…\",\"🎬\",videosURL),Card(\"Photographer\",\"Photos\",\"Portraits, \\xe9v\\xe9nements, paysages.\",\"📸\",photosURL),Card(\"Design\",\"Graphisme\",\"Identit\\xe9s visuelles, affiches, DA.\",\"🎨\",graphismeURL),Card(\"Art\",\"Dessins\",\"Acrylique, textures, custom textile.\",\"🖌️\",peinturesURL)]})})]});}/* ===== CSS (.zp-*)  — Desktop + Mobile compact ===== */const css=`\n:root { color-scheme: light dark; }\n.zp-root{ position:relative; width:100%; height:auto; color:#111; background:#fff; }\n.zp-root, .zp-root *{ box-sizing:border-box; font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,\"Poppins\",sans-serif; }\n\n/* Header */\n.zp-header{ max-width:1100px; margin:28px auto 14px; padding:0 18px; }\n.zp-brand{ display:flex; align-items:center; gap:12px; min-height:44px; }\n.zp-brand-logo{ width:40px; height:40px; background:center/contain no-repeat; filter:drop-shadow(0 2px 8px rgba(255,59,48,.25)); border-radius:10px; }\n.zp-brand-title{ margin:0; font-size:clamp(18px,2.4vw,24px); letter-spacing:.3px; line-height:1.12; }\n.zp-subtitle{ color:#555; font-weight:400; font-size:13px; margin-top:3px; }\n\n/* Grid */\n.zp-grid-wrap{ max-width:1100px; margin:0 auto; padding:0 18px 64px; }\n.zp-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }\n@media (max-width:1000px){ .zp-grid{ grid-template-columns:repeat(2,1fr); } }\n@media (max-width:780px){  .zp-grid{ grid-template-columns:1fr; gap:14px; } }\n\n/* Card */\n.zp-card{\n  position:relative; background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:20px;\n  padding:20px; min-height:168px; display:flex; flex-direction:column; justify-content:space-between;\n  box-shadow:0 8px 18px rgba(0,0,0,.05); text-decoration:none; color:inherit;\n  transition:transform .28s cubic-bezier(.2,.9,.25,1), box-shadow .28s, border-color .28s;\n}\n.zp-card:hover{ transform:translateY(-5px); box-shadow:0 18px 40px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.06) inset; border-color:rgba(0,0,0,.12); }\n.zp-card:before{ content:\"\"; position:absolute; inset:-1px; background:conic-gradient(from 210deg, rgba(255,59,48,0.0), rgba(255,59,48,0.10), rgba(255,59,48,0.0)); filter:blur(18px); opacity:0; transition:opacity .3s; pointer-events:none; }\n.zp-card:hover:before{ opacity:.55; }\n\n/* Tag */\n.zp-tag{ display:inline-flex; align-items:center; gap:7px; padding:7px 10px; border-radius:999px; background:rgba(0,0,0,.04); border:1px solid rgba(0,0,0,.08); font-size:12.5px; width:max-content; }\n.zp-tag-dot{ width:9px; height:9px; border-radius:50%; background:#ff3b30; box-shadow:0 0 0 6px rgba(255,59,48,.24); }\n\n/* Texts */\n.zp-t{ font-size:clamp(19px,2.3vw,24px); margin:8px 0 4px; line-height:1.15; }\n.zp-desc{ color:#555; font-size:13.5px; line-height:1.4; }\n\n/* Footer row in card */\n.zp-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:12px; }\n.zp-cta{ font-weight:800; letter-spacing:.2px; display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(0,0,0,.10); padding:9px 12px; border-radius:12px; background:linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.02)); color:#111; font-size:13px; }\n.zp-ghost{ opacity:.7; font-weight:600; font-size:18px; }\n\n.zp-flare{ position:absolute; right:-30%; top:-30%; width:80%; aspect-ratio:1/1; background:radial-gradient(circle at 50% 50%, rgba(255,59,48,.10), transparent 60%); filter:blur(24px); transform:rotate(8deg); pointer-events:none; }\n\n/* ------- XS (t\\xe9l\\xe9phones ≤ 420px) : mode compact ------- */\n@media (max-width:420px){\n  .zp-header{ margin:22px auto 12px; padding:0 14px; }\n  .zp-brand{ gap:10px; min-height:40px; }\n  .zp-brand-logo{ width:34px; height:34px; border-radius:8px; }\n  .zp-brand-title{ font-size:18px; }\n  .zp-subtitle{ font-size:12px; }\n\n  .zp-grid-wrap{ padding:0 14px 48px; }\n  .zp-grid{ gap:12px; }\n\n  .zp-card{ padding:14px; min-height:140px; border-radius:16px; }\n  .zp-tag{ padding:6px 9px; font-size:12px; }\n  .zp-tag-dot{ width:8px; height:8px; box-shadow:0 0 0 5px rgba(255,59,48,.22); }\n\n  .zp-t{ font-size:18px; margin:6px 0 2px; }\n  .zp-desc{ font-size:12.5px; line-height:1.35; }\n\n  .zp-foot{ margin-top:10px; }\n  .zp-cta{ padding:8px 10px; font-size:12.5px; border-radius:10px; }\n  .zp-ghost{ font-size:16px; }\n\n  /* on coupe le flare sur tr\\xe8s petit \\xe9cran pour \\xe9viter tout d\\xe9bordement */\n  .zp-flare{ display:none; }\n}\n\n/* ---------- DARK ---------- */\nhtml[data-framer-theme=\"dark\"] .zp-root{ background:#161616; color:#f0f0f0; }\nhtml[data-framer-theme=\"dark\"] .zp-subtitle{ color:#d6d6d6; }\nhtml[data-framer-theme=\"dark\"] .zp-brand-logo{ filter: drop-shadow(0 2px 10px rgba(255,59,48,.15)); }\n\nhtml[data-framer-theme=\"dark\"] .zp-card{\n  background:#1e1e1e;\n  border-color:rgba(255,255,255,.08);\n  box-shadow:0 14px 34px rgba(0,0,0,.7);\n}\nhtml[data-framer-theme=\"dark\"] .zp-card:hover{\n  box-shadow:0 20px 50px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.10) inset;\n  border-color:rgba(255,255,255,.16);\n}\nhtml[data-framer-theme=\"dark\"] .zp-tag{\n  background:rgba(255,255,255,.06);\n  border-color:rgba(255,255,255,.12);\n  color:#eeeeee;\n}\nhtml[data-framer-theme=\"dark\"] .zp-tag-dot{ box-shadow:0 0 0 6px rgba(255,59,48,.22); }\nhtml[data-framer-theme=\"dark\"] .zp-desc{ color:#cfcfcf; }\nhtml[data-framer-theme=\"dark\"] .zp-ghost{ opacity:.85; }\nhtml[data-framer-theme=\"dark\"] .zp-cta{\n  background:#ffffff; color:#000000; border-color:#ffffff;\n}\nhtml[data-framer-theme=\"dark\"] .zp-card:hover .zp-cta{ filter:brightness(0.98); }\nhtml[data-framer-theme=\"dark\"] .zp-flare{\n  background:radial-gradient(circle at 50% 50%, rgba(255,59,48,.16), transparent 60%);\n  filter:blur(28px);\n}\n`;addPropertyControls(ZehraPortal,{title:{type:ControlType.String,title:\"Titre\"},subtitle:{type:ControlType.String,title:\"Sous-titre\"},logo:{type:ControlType.Image,title:\"Logo\"},videosURL:{type:ControlType.String,title:\"Slug vid\\xe9os\",defaultValue:\"/mesvideos\"},photosURL:{type:ControlType.String,title:\"Slug photos\",defaultValue:\"photos\"},graphismeURL:{type:ControlType.String,title:\"Slug graphisme\",defaultValue:\"graphisme\"},peinturesURL:{type:ControlType.String,title:\"Slug dessins\",defaultValue:\"dessins\"},cornerRadius:{type:ControlType.Number,title:\"Rayon\",min:0,max:48,defaultValue:20},forceTheme:{type:ControlType.Enum,title:\"Th\\xe8me\",defaultValue:\"auto\",options:[\"auto\",\"light\",\"dark\"],optionTitles:[\"Auto (syst\\xe8me)\",\"Clair\",\"Sombre\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ZehraPortal\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Projets.map"],"mappings":"iTAIG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,WAAS,OAAK,YAAU,YAAU,eAAa,eAAa,eAAa,cAAY,CAAC,MAAM,cAAiB,SAAS,0CAAsD,UAAU,YAAY,UAAU,SAAS,aAAa,YAAY,aAAa,UAAU,aAAa,GAAG,WAAW,OAAO,GAAG,EAAM,CAC1W,MAAoB,CAAC,IAAM,EAAK,SAAS,gBAAsB,EAAS,GAAG,EAAK,aAAa,oBAAoB,EAAE,CAAC,GAAG,IAAa,SAAS,IAAa,OAAO,CAAC,EAAS,EAAW,CAAC,OAAQ,IAAM,EAAQ,EAAK,aAAa,oBAAoB,CAAO,EAAG,EAAO,WAAW,+BAA+B,CAAO,MAAc,EAAS,EAAG,QAAQ,OAAO,QAAQ,CAAmE,OAA9D,GAAQ,GAAW,CAAC,EAAG,mBAAmB,SAAS,EAAU,KAAW,EAAG,sBAAsB,SAAS,EAAU,EAAG,CAAC,EAAW,CAAC,CAC/e,IAAM,EAAO,GAAQ,EAAe,EAAE,WAAW,IAAI,EAAa,gBAAgB,KAAK,EAAE,CAAQ,EAAQ,IAAI,EAAE,QAAQ,OAAO,GAAG,GAApG,IAA+G,EAAW,GAAG,EAAE,WAAW,IAAI,CAAO,GAAM,EAAM,EAAE,EAAK,EAAM,IAAO,CAA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