{"id":19,"date":"2026-01-06T02:19:30","date_gmt":"2026-01-06T01:19:30","guid":{"rendered":"http:\/\/new-portfolio.local\/?page_id=19"},"modified":"2026-10-26T19:35:58","modified_gmt":"2026-10-26T18:35:58","slug":"projets","status":"publish","type":"page","link":"https:\/\/portfolio.frtne.fr\/wordpress\/projets\/","title":{"rendered":"Projets"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"19\" class=\"elementor elementor-19\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f408e8f e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no wpr-column-slider-no wpr-equal-height-no e-con e-parent\" data-id=\"f408e8f\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0f456ad elementor-widget elementor-widget-html\" data-id=\"0f456ad\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<script>document.documentElement.classList.add(\"bf-js\")<\/script>\n<link rel=\"stylesheet\" href=\"https:\/\/fonts.googleapis.com\/css2?family=Unbounded:wght@400..500&display=swap\">\n\n<div id=\"bf-projets\" data-source=\"api\">\n  <script type=\"application\/json\" data-bf-config>\n  {\n    \"ordre\": \"desc\",\n    \"categories\": [\n      {\n        \"slug\": \"print-design\",\n        \"label\": \"Print design\",\n        \"short\": \"Print\"\n      },\n      {\n        \"slug\": \"site-web\",\n        \"label\": \"Sites web\",\n        \"short\": \"Web\"\n      },\n      {\n        \"slug\": \"creation-contenu\",\n        \"label\": \"Cr\u00e9ation de contenu\",\n        \"short\": \"Contenu\"\n      }\n    ],\n    \"textes\": {\n      \"montmartre-village\": {\n        \"kind\": \"Site vitrine\",\n        \"line\": \"Structurer l\u2019espace par la couleur et la typographie.\"\n      },\n      \"leoco\": {\n        \"kind\": \"Site vitrine, HTML et CSS\",\n        \"line\": \"L\u2019expertise par l\u2019\u00e9pure.\"\n      },\n      \"holy\": {\n        \"kind\": \"Identit\u00e9, lancement\",\n        \"line\": \"De l\u2019identit\u00e9 visuelle \u00e0 la strat\u00e9gie de lancement.\"\n      },\n      \"edit-audi\": {\n        \"kind\": \"Montage vid\u00e9o\",\n        \"line\": \"Un edit construit sur un rythme crescendo.\"\n      },\n      \"sicilylines-laravel\": {\n        \"title\": \"SicilyLines\",\n        \"kind\": \"UI Figma, Laravel\",\n        \"line\": \"La clart\u00e9 comme priorit\u00e9 visuelle.\"\n      },\n      \"work-health\": {\n        \"title\": \"Work Health\",\n        \"kind\": \"Interface, accessibilit\u00e9\",\n        \"line\": \"Un design sans artifice pour r\u00e9duire la charge cognitive.\"\n      },\n      \"ecole-de-la-generosite\": {\n        \"kind\": \"Campagne, illustration\",\n        \"line\": \"Illustrer la g\u00e9n\u00e9rosit\u00e9.\"\n      },\n      \"documentaire-cryptomonnaies\": {\n        \"kind\": \"Documentaire\",\n        \"line\": \"L\u2019envers du num\u00e9rique.\"\n      }\n    }\n  }\n  <\/script>\n\n  <section class=\"bf-intro\">\n    <h1 class=\"bf-intro__title\"><span data-bf-focus>Projets<\/span><sup class=\"bf-intro__count\">00<\/sup><\/h1>\n    <p class=\"bf-intro__lede\">Allier la puret\u00e9 du minimalisme \u00e0 la cr\u00e9ation digitale.<\/p>\n  <\/section>\n\n  <ol class=\"bf-list\"><\/ol>\n\n  <section class=\"bf-outro\">\n    <p class=\"bf-outro__q\">Un projet en t\u00eate&nbsp;?<\/p>\n    <a class=\"bf-outro__cta\" href=\"\/wordpress\/contact\/\" data-bf-path=\"contact\/\"><span>Me contacter<\/span><svg class=\"bf-arrow\" viewBox=\"0 0 41 41\" width=\"40\" height=\"40\" aria-hidden=\"true\"><path d=\"M5.73193 23.2472L5.73193 26.0432L34.8907 26.0432L24.4655 14.5795L22.5082 16.2571L28.6595 23.2472L5.73193 23.2472Z\"\/><\/svg><\/a>\n  <\/section>\n\n  <nav class=\"bf-dock\" aria-label=\"Filtrer les projets\">\n    <div class=\"bf-dock__list\">\n      <button type=\"button\" data-cat=\"all\" aria-pressed=\"true\"><span class=\"bf-dock__full\">Tout<\/span><span class=\"bf-dock__short\">Tout<\/span><\/button>\n    <\/div>\n  <\/nav>\n<\/div>\n\n<style>\n@property --bf-l { syntax: \"<length>\"; inherits: false; initial-value: 0px; }\n@property --bf-r { syntax: \"<length>\"; inherits: false; initial-value: 0px; }\n\nbody.bf-projets-page { background: #353535; }\n\n@media (max-width: 820px) { html:has(#bf-projets.is-3d) { scroll-snap-type: y mandatory; } }\n\nhtml.bf-js #bf-projets:not(.is-ready) { visibility: hidden; animation: bf-reveal 0s 3s forwards; }\n\nhtml.bf-js #bf-projets:not(.is-ready) .bf-list { display: none; animation: bf-show-list 0s 3s forwards; }\n@keyframes bf-reveal { to { visibility: visible; } }\n@keyframes bf-show-list { to { display: grid; } }\n\n#bf-projets {\n  --bf-bg: #353535;\n  --bf-ink: #d9d9d9;\n  --bf-ink-soft: #a8a8a8;\n  --bf-accent: #ff7e7e;\n  --bf-display: \"Unbounded\", system-ui, sans-serif;\n  --bf-text: \"lutece\", Georgia, serif;\n  --bf-ease: cubic-bezier(.16, 1, .3, 1);\n  --bf-ease-out: cubic-bezier(.23, 1, .32, 1);\n  --bf-ease-move: cubic-bezier(.77, 0, .175, 1);\n  --bf-gutter: clamp(16px, 3.2vw, 48px);\n  position: relative;\n  display: block;\n  color: var(--bf-ink);\n  font: 400 17px\/1.5 var(--bf-text);\n  -webkit-font-smoothing: antialiased;\n}\n#bf-projets *, #bf-projets *::before, #bf-projets *::after { box-sizing: border-box; }\n#bf-projets :is(h1, h2, p, ol, li, figure) { margin: 0; padding: 0; }\n#bf-projets :is(h1, h2) { font-weight: 500; text-transform: none; }\n#bf-projets ol { list-style: none; }\n#bf-projets a,\n#bf-projets a:is(:hover, :focus, :active, :visited) { color: inherit; text-decoration: none; }\n#bf-projets img { display: block; max-width: 100%; border: 0; border-radius: 0; box-shadow: none; }\n\n#bf-projets button,\n#bf-projets button:is(:hover, :focus, :active) {\n  margin: 0;\n  padding: 0;\n  border: 0;\n  border-radius: 0;\n  background: none;\n  box-shadow: none;\n  font: inherit;\n  color: inherit;\n  letter-spacing: inherit;\n  text-transform: none;\n  cursor: pointer;\n}\n#bf-projets :focus-visible { outline: 1.5px solid var(--bf-accent); outline-offset: 4px; }\n\n#bf-projets .bf-intro { padding: 132px var(--bf-gutter) 10vh; }\n#bf-projets .bf-intro__title {\n  display: inline-flex;\n  align-items: flex-start;\n  margin-left: -.05em;\n  white-space: nowrap;\n  font: 500 var(--bf-title, clamp(3.4rem, 12vw, 11rem))\/.84 var(--bf-display);\n  letter-spacing: -.06em;\n}\n#bf-projets .bf-intro__count { margin: .4em 0 0 .45em; font: 400 .12em\/1 var(--bf-text); letter-spacing: 0; color: var(--bf-accent); }\n#bf-projets .bf-intro__lede { margin-top: 24px; max-width: 30ch; font-size: clamp(16px, 1.4vw, 21px); color: var(--bf-ink-soft); text-wrap: balance; }\n\n#bf-projets .bf-ch { display: inline-block; animation: bf-focus-in 1.3s var(--bf-ease) both; animation-delay: calc(var(--i) * 60ms + 120ms); }\n@keyframes bf-focus-in { from { opacity: 0; filter: blur(22px); transform: translateY(.12em) scale(1.04); } }\n\n#bf-projets .bf-list { display: grid; gap: clamp(56px, 8vw, 120px); padding: 0 var(--bf-gutter); }\n#bf-projets .bf-item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(20px, 4vw, 64px); }\n#bf-projets .bf-item[hidden] { display: none; }\n#bf-projets .bf-item__link img { width: auto; height: auto; max-width: 100%; max-height: 78vh; }\n#bf-projets .bf-item__kind { font-size: 14px; color: var(--bf-ink-soft); }\n#bf-projets .bf-item__title { margin: 8px 0 10px; font: 500 clamp(1.6rem, 3vw, 3rem)\/1.05 var(--bf-display); letter-spacing: -.035em; }\n#bf-projets .bf-item__line { max-width: 34ch; color: var(--bf-ink-soft); }\n#bf-projets.is-flat { padding-bottom: 96px; }\n#bf-projets .bf-error { color: var(--bf-ink-soft); }\n\n#bf-projets .bf-outro { padding: 18vh var(--bf-gutter) 14vh; text-align: center; }\n#bf-projets .bf-outro__q {\n  margin: 0 auto;\n  max-width: 11ch;\n  font: 400 clamp(2.4rem, min(7vw, 11vh), 7.2rem)\/1 var(--bf-display);\n  letter-spacing: -.045em;\n  text-wrap: balance;\n}\n\n#bf-projets .bf-outro__cta,\n#bf-projets .bf-now__cta {\n  display: inline-flex;\n  align-items: center;\n  font: 400 18px\/1 var(--bf-display);\n  color: var(--bf-ink);\n  transition: color .3s ease;\n}\n#bf-projets .bf-outro__cta { margin-top: clamp(28px, 4.5vh, 52px); }\n#bf-projets .bf-arrow { display: block; flex: none; width: 40px; height: auto; fill: var(--bf-accent); }\n#bf-projets .bf-outro__cta:hover,\n#bf-projets .bf-now__cta:hover,\n#bf-projets .bf-outro__cta:focus-visible,\n#bf-projets .bf-now__cta:focus-visible { color: var(--bf-accent); }\n\n#bf-projets.is-3d .bf-list { display: none; }\n#bf-projets .bf-stage {\n  position: fixed;\n  inset: 0;\n  z-index: 0;\n  overflow: hidden;\n  perspective: 1000px;\n  perspective-origin: var(--bf-cx, 70vw) var(--bf-cy, 50vh);\n  transition: filter .26s var(--bf-ease), opacity .26s var(--bf-ease);\n}\n\n#bf-projets:is(.is-refocus, .is-leaving) .bf-stage { filter: blur(16px); opacity: 0; }\n#bf-projets.is-leaving :is(.bf-now, .bf-index, .bf-dock) { opacity: 0; }\n\n#bf-projets .bf-world { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }\n#bf-projets .bf-plane { position: absolute; will-change: transform, opacity; }\n#bf-projets .bf-plane[hidden] { display: none; }\n#bf-projets .bf-plane--card { left: var(--bf-cx); top: var(--bf-cy); width: var(--bf-cw); }\n#bf-projets .bf-plane--card a { display: block; }\n#bf-projets .bf-card__media {\n  aspect-ratio: var(--bf-ar, 4 \/ 3); \n  overflow: hidden;\n  background: #222;\n  outline: 1.5px solid rgba(255, 126, 126, var(--bf-f, 0));\n  outline-offset: var(--bf-ring, 14px);\n}\n#bf-projets .bf-card__media img { width: 100%; height: 100%; object-fit: cover; }\n#bf-projets .bf-plane--text { left: var(--bf-gx, var(--bf-gutter)); top: var(--bf-ty); width: var(--bf-iw); padding: 0; pointer-events: none; }\n#bf-projets .bf-plane--text a { pointer-events: auto; }\n#bf-projets .bf-plane--outro { left: var(--bf-ox); top: var(--bf-oy); width: var(--bf-ow); }\n\n#bf-projets .bf-spacer { height: 100vh; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; }\n#bf-projets .bf-spacer:last-child { height: 100vh; height: 100svh; }\n#bf-projets .bf-probe { position: fixed; top: 0; left: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }\n\n#bf-projets .bf-now {\n  position: fixed;\n  left: var(--bf-gutter);\n  top: var(--bf-cy);\n  z-index: 10;\n  width: var(--bf-tw);\n  translate: 0 -50%;\n  transition: opacity .3s var(--bf-ease-out);\n}\n#bf-projets .bf-now:is(.is-off, .is-moving) { opacity: 0; pointer-events: none; }\n#bf-projets .bf-now.is-moving { transition-duration: .12s; }\n#bf-projets .bf-now__meta { display: flex; gap: 12px; font-size: 14px; color: var(--bf-ink-soft); }\n#bf-projets .bf-now__meta b { font-weight: 400; color: var(--bf-accent); }\n#bf-projets .bf-now h2 { margin: 10px 0 12px; font: 500 clamp(1.5rem, 2.6vw, 3rem)\/1.05 var(--bf-display); letter-spacing: -.035em; text-wrap: balance; }\n#bf-projets .bf-now p { max-width: 32ch; font-size: 16px; color: var(--bf-ink-soft); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }\n#bf-projets .bf-now__cta { margin-top: 22px; }\n#bf-projets .bf-now__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 22px; }\n#bf-projets .bf-now__btns .bf-now__cta { margin-top: 0; }\n#bf-projets .bf-item__site { display: inline-flex; align-items: center; margin-top: 14px; font: 400 16px\/1 var(--bf-display); transition: color .3s ease; }\n#bf-projets .bf-item__site:hover { color: var(--bf-accent); }\n#bf-projets .bf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n#bf-projets .bf-now.is-swap > * { animation: bf-focus-in .6s var(--bf-ease) both; }\n#bf-projets .bf-now.is-swap > :nth-child(2) { animation-delay: .04s; }\n#bf-projets .bf-now.is-swap > :nth-child(3) { animation-delay: .08s; }\n#bf-projets .bf-now.is-swap > :nth-child(4) { animation-delay: .12s; }\n\n#bf-projets .bf-index {\n  position: fixed;\n  right: var(--bf-gutter);\n  top: var(--bf-cy);\n  z-index: 10;\n  display: grid;\n  justify-items: end;\n  gap: 2px;\n  translate: 0 -50%;\n  transition: opacity .3s ease;\n}\n#bf-projets .bf-index button {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n  min-height: 30px;\n  padding: 4px 0 4px 8px;\n  font: 400 15px\/1.2 var(--bf-text);\n  color: var(--bf-ink-soft);\n  white-space: nowrap;\n  transition: color .2s ease;\n}\n#bf-projets .bf-index button::after {\n  content: \"\";\n  flex: none;\n  width: 12px;\n  height: 1.5px;\n  background: currentColor;\n  opacity: .6;\n  transition: width .3s var(--bf-ease-out), background-color .2s ease, opacity .2s ease;\n}\n#bf-projets .bf-index__name { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }\n\n#bf-projets .bf-index { max-height: var(--bf-ih, 70vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }\n#bf-projets .bf-index::-webkit-scrollbar { display: none; }\n#bf-projets .bf-index.is-scrollable {\n  padding-block: 24px;\n  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);\n          mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);\n}\n#bf-projets .bf-index button[aria-current=\"true\"] { color: var(--bf-ink); }\n#bf-projets .bf-index button[aria-current=\"true\"]::after { width: 28px; background: var(--bf-accent); opacity: 1; }\n@media (hover: hover) and (pointer: fine) { #bf-projets .bf-index button:hover { color: var(--bf-ink); } }\n\n#bf-projets .bf-index.is-off { opacity: 0; pointer-events: none; }\n\n#bf-projets:not(.is-ready) .bf-dock { display: none; }\n#bf-projets .bf-dock {\n  position: fixed;\n  left: 50%;\n  bottom: max(18px, env(safe-area-inset-bottom));\n  z-index: 60;\n  padding: 5px;\n  translate: -50% 0;\n  border-radius: 999px;\n  background: rgba(26, 26, 26, .72);\n  -webkit-backdrop-filter: blur(18px) saturate(150%);\n  backdrop-filter: blur(18px) saturate(150%);\n  box-shadow: 0 16px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .09);\n  touch-action: pan-y;\n  user-select: none;\n  -webkit-user-select: none;\n  transition: scale .16s var(--bf-ease-out), opacity .3s ease;\n}\n#bf-projets .bf-dock:has(button:active) { scale: .98; }\n#bf-projets .bf-dock__list { position: relative; display: flex; }\n#bf-projets .bf-dock button,\n#bf-projets .bf-dock__item {\n  display: inline-flex;\n  align-items: center;\n  gap: 7px;\n  height: 40px;\n  padding: 0 18px;\n  border-radius: 999px;\n  font: 400 15px\/1 var(--bf-text);\n  white-space: nowrap;\n}\n#bf-projets .bf-dock button { color: rgba(255, 255, 255, .6); transition: color .2s ease; }\n@media (hover: hover) and (pointer: fine) { #bf-projets .bf-dock button:hover { color: #fff; } }\n#bf-projets .bf-dock button:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }\n#bf-projets .bf-dock__n { font: 500 10px\/1 var(--bf-display); opacity: .7; translate: 0 -.45em; }\n#bf-projets .bf-dock__short { display: none; }\n#bf-projets .bf-dock__pill {\n  position: absolute;\n  inset: 5px;\n  pointer-events: none;\n  border-radius: 999px;\n  background: var(--bf-accent);\n  clip-path: inset(0 var(--bf-r) 0 var(--bf-l) round 999px);\n  transition: --bf-l .42s var(--bf-ease-move), --bf-r .42s var(--bf-ease-move);\n}\n#bf-projets .bf-dock__pill .bf-dock__item { color: #161616; }\n\n#bf-projets.is-at-footer :is(.bf-dock, .bf-now, .bf-index) { opacity: 0; pointer-events: none; }\n\n@media (max-width: 820px) {\n  #bf-projets .bf-item { grid-template-columns: 1fr; }\n  #bf-projets .bf-now { top: auto; bottom: 96px; right: var(--bf-gutter); width: auto; min-height: 212px; translate: none; display: flex; flex-direction: column; justify-content: flex-end; }\n  #bf-projets .bf-now h2 { font-size: 1.6rem; }\n  #bf-projets .bf-now p { font-size: 15px; }\n  \n  #bf-projets .bf-now :is(h2, p) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }\n  #bf-projets .bf-now__cta { margin-top: 16px; }\n  #bf-projets .bf-now__btns { margin-top: 16px; gap: 12px 22px; }\n  #bf-projets .bf-now__btns .bf-now__cta { font-size: 16px; }\n  #bf-projets .bf-now__btns .bf-arrow { width: 28px; }\n  #bf-projets .bf-index { display: none; }\n  #bf-projets .bf-spacer { height: 100vh; height: 100svh; }\n}\n@media (max-width: 460px) {\n  #bf-projets .bf-dock__full { display: none; }\n  #bf-projets .bf-dock__short { display: inline; }\n  #bf-projets .bf-dock button, #bf-projets .bf-dock__item { padding: 0 16px; }\n}\n\n@media (max-width: 400px) {\n  #bf-projets .bf-dock button, #bf-projets .bf-dock__item { gap: 5px; padding: 0 11px; font-size: 14px; }\n}\n@media (max-width: 359px) {\n  #bf-projets .bf-now__btns { gap: 12px 14px; }\n  #bf-projets .bf-now__btns .bf-now__cta { font-size: 15px; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  #bf-projets .bf-ch { animation: none; }\n  #bf-projets *, #bf-projets *::before, #bf-projets *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }\n}\n\nbody:has(#bf-projets) { background: #353535; }\n\nbody:has(#bf-projets) #nav-bar:not(.header-scrolled) .wpr-nav-menu .wpr-menu-item:not(.wpr-active-menu-item):not(:hover) { color: #d9d9d9 !important; }\nbody:has(#bf-projets) #nav-bar:not(.header-scrolled) .wpr-mobile-toggle-line { background-color: #d9d9d9 !important; }\n\nbody:has(#bf-projets) #nav-mobile:not(.header-scrolled) .wpr-mobile-toggle-line { background-color: #d9d9d9 !important; }\n\n:is(.e-con, .e-con-inner):has(#bf-projets) { padding-top: 0 !important; padding-bottom: 0 !important; }\n.elementor-widget:has(#bf-projets) { margin-block: 0 !important; }\n<\/style>\n\n<script>\n(()=>{\"use strict\";const root=document.getElementById(\"bf-projets\");if(!root)return;const Z=1300;const JIT=[[0,0],[14,-8],[-12,6],[10,-6],[-14,8],[12,-6],[-10,4],[14,-8]];const JMAX=14;const STORE=\"bf-projets:\"+location.pathname;const reduce=matchMedia(\"(prefers-reduced-motion: reduce)\").matches;const canHover=matchMedia(\"(hover: hover) and (pointer: fine)\");const ARROW='<svg class=\"bf-arrow\" viewBox=\"0 0 41 41\" width=\"40\" height=\"40\" aria-hidden=\"true\"><path d=\"M5.73193 23.2472L5.73193 26.0432L34.8907 26.0432L24.4655 14.5795L22.5082 16.2571L28.6595 23.2472L5.73193 23.2472Z\"\/><\/svg>';const siteLink=(url,cls)=>`<a class=\"${cls} bf-cta--ext\" href=\"${esc(url)}\" target=\"_blank\" rel=\"noopener\"><span>Voir le site<\/span><span class=\"bf-sr\"> (nouvel onglet)<\/span>${ARROW}<\/a>`;let sitesReady=Promise.resolve({});const clamp=(v,a,b)=>Math.min(b,Math.max(a,v));const pad=n=>String(n).padStart(2,\"0\");const esc=s=>String(s).replace(\/[&<>\"]\/g,c=>({\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\"}[c]));const make=(tag,cls,attrs={})=>{const e=document.createElement(tag);if(cls)e.className=cls;for(const k in attrs)e.setAttribute(k,attrs[k]);return e};const jump=y=>scrollTo({top:y,behavior:\"instant\"});const editor=document.body.classList.contains(\"elementor-editor-active\")||new URLSearchParams(location.search).has(\"elementor-preview\")||!!window.elementorFrontend?.isEditMode?.();(root.dataset.source===\"api\"?loadFromApi():Promise.resolve()).then(start).catch(fail);async function loadFromApi(){const conf=JSON.parse(root.querySelector(\"[data-bf-config]\")?.textContent||\"{}\");const cats=conf.categories||[];const texts=conf.textes||{};const api=document.querySelector('link[rel=\"https:\/\/api.w.org\/\"]')?.href||location.origin+\"\/wp-json\/\";const pretty=!api.includes(\"rest_route=\");const home=pretty?api.replace(\/wp-json\\\/?$\/,\"\"):api.split(\"?\")[0];const get=async(route,params)=>{const qs=new URLSearchParams(params).toString();const url=pretty?api.replace(\/\\\/?$\/,\"\/\")+route.replace(\/^\\\/\/,\"\")+\"?\"+qs:api.replace(\/\\\/?$\/,\"\")+route+\"&\"+qs;const r=await fetch(url,{credentials:\"same-origin\"});if(!r.ok)throw new Error(\"API REST : HTTP \"+r.status);return r.json()};const[terms,posts]=await Promise.all([get(\"\/wp\/v2\/categories\",{slug:cats.map(c=>c.slug).join(\",\"),per_page:100,_fields:\"id,slug,name\"}),get(\"\/wp\/v2\/posts\",{per_page:100,orderby:\"date\",order:conf.ordre===\"asc\"?\"asc\":\"desc\",_embed:\"wp:featuredmedia\",_fields:\"id,slug,link,title,excerpt,categories,_links,_embedded\"})]);const decode=html=>(new DOMParser).parseFromString(html||\"\",\"text\/html\").body.textContent.trim();const siteCatId=terms.find(t=>t.slug===(conf.siteCategorie||\"site-web\"))?.id;const siteLinkIn=html=>{const doc=(new DOMParser).parseFromString(html||\"\",\"text\/html\");const a=[...doc.querySelectorAll(\"a[href^='http']\")].find(x=>\/\\b(visiter|voir)\\s+le\\s+site\\b\/i.test(x.textContent));return a?a.href:\"\"};if(siteCatId){sitesReady=get(\"\/wp\/v2\/posts\",{categories:siteCatId,per_page:100,_fields:\"slug,content\"}).then(list=>Object.fromEntries(list.map(p=>[p.slug,siteLinkIn(p.content?.rendered)]).filter(([,u])=>u))).catch(()=>({}))}const IGNORE=\/[\\s\\-\\u00ad\\u200b\u00ab\u00bb\"\u201c\u201d'\u2019.,:\u2022]\/;const fold=c=>c.toLowerCase().normalize(\"NFD\").replace(\/[\\u0300-\\u036f]\/g,\"\");const key=t=>[...t].filter(c=>!IGNORE.test(c)).map(fold).join(\"\");const stripPrefix=(text,k)=>{if(k.length<3)return null;let i=0,j=0;while(i<text.length&&j<k.length){if(IGNORE.test(text[i])){i++;continue}if(fold(text[i])!==k[j])return null;i++;j++}if(j<k.length||i<text.length&&!IGNORE.test(text[i])&&!\/\\s\/.test(text[i-1]))return null;while(i<text.length&&IGNORE.test(text[i]))i++;return text.slice(i).trim()};const firstSentence=(text,title)=>{let t=text.replace(\/\\s*(\\[\u2026\\]|\\[&hellip;\\]|\u2026)\\s*$\/,\"\").trim();for(let n=0,r;n<2&&(r=stripPrefix(t,key(title)))!==null;n++)t=r;const kt=key(t);for(let len=Math.min(80,kt.length>>1);len>=3;len--){if(kt.slice(0,len)!==kt.slice(len,2*len))continue;const once=stripPrefix(t,kt.slice(0,len));const twice=once!==null?stripPrefix(once,kt.slice(0,len)):null;if(twice!==null){t=twice;break}}t=(t.match(\/^.*?[.!?](?=\\s|$|[A-Z\u00c0-\u00dd])\/)||[t])[0].trim();return t.length>120?t.slice(0,117).replace(\/\\s+\\S*$\/,\"\")+\"\u2026\":t};const imageOf=post=>{const m=post._embedded?.[\"wp:featuredmedia\"]?.[0];if(!m)return{src:\"\",srcset:\"\",w:0,h:0};const d=m.media_details||{};const ratio=d.width&&d.height?d.width\/d.height:0;const same=s=>!ratio||Math.abs(s.width\/s.height-ratio)<.02;const sizes=Object.values(d.sizes||{}).filter(s=>s.width&&s.height&&s.source_url&&same(s));const large=d.sizes?.large&&same(d.sizes.large)?d.sizes.large:[...sizes].sort((a,b)=>b.width-a.width)[0];return{src:large?.source_url||m.source_url||\"\",srcset:sizes.map(s=>`${s.source_url} ${s.width}w`).join(\", \"),w:d.width||large?.width||0,h:d.height||large?.height||0}};const slugById=new Map(terms.map(t=>[t.id,t.slug]));const nameBySlug=new Map(terms.map(t=>[t.slug,decode(t.name)]));const order=cats.map(c=>c.slug);const list=root.querySelector(\".bf-list\");const used=new Set;let i=0;for(const post of posts){const slugs=(post.categories||[]).map(id=>slugById.get(id));const cat=order.find(c=>slugs.includes(c));if(!cat)continue;used.add(cat);const t=texts[post.slug]||{};const title=t.title||decode(post.title?.rendered);const img=imageOf(post);const li=make(\"li\",\"bf-item\",{\"data-cat\":cat,\"data-slug\":post.slug});if(t.site)li.dataset.site=t.site;const link=make(\"a\",\"bf-item__link\",{href:post.link,tabindex:\"-1\",\"aria-hidden\":\"true\"});const im=make(\"img\",\"\",{alt:\"\",decoding:\"async\",loading:i++<2?\"eager\":\"lazy\",sizes:\"(max-width: 820px) 92vw, 56vw\"});if(img.srcset)im.setAttribute(\"srcset\",img.srcset);if(img.w&&img.h){im.setAttribute(\"width\",img.w);im.setAttribute(\"height\",img.h)}im.src=img.src;link.append(im);const text=make(\"div\",\"bf-item__text\");const kind=make(\"p\",\"bf-item__kind\");kind.textContent=t.kind||nameBySlug.get(cat)||\"\";const h2=make(\"h2\",\"bf-item__title\");const a=make(\"a\",\"\",{href:post.link});a.textContent=title;h2.append(a);const line=make(\"p\",\"bf-item__line\");line.textContent=t.line||firstSentence(decode(post.excerpt?.rendered),title);text.append(kind,h2,line);li.append(link,text);list.append(li)}if(!list.children.length)throw new Error(\"aucun article publi\u00e9 dans les cat\u00e9gories : \"+order.join(\", \"));const dockList=root.querySelector(\".bf-dock__list\");for(const c of cats){if(!used.has(c.slug))continue;const b=make(\"button\",\"\",{type:\"button\",\"data-cat\":c.slug,\"aria-pressed\":\"false\"});b.innerHTML=`<span class=\"bf-dock__full\">${esc(c.label)}<\/span><span class=\"bf-dock__short\">${esc(c.short||c.label)}<\/span>`;dockList.append(b)}root.querySelectorAll(\"[data-bf-path]\").forEach(a=>a.href=home+a.dataset.bfPath)}function fail(err){console.error(\"[bf-projets]\",err);const list=root.querySelector(\".bf-list\");if(list){list.innerHTML=\"\";const li=make(\"li\",\"bf-error\");li.textContent=\"Les projets n\u2019ont pas pu \u00eatre charg\u00e9s. Rechargez la page.\";list.append(li)}root.classList.add(\"is-ready\",\"is-flat\")}function start(){const intro=root.querySelector(\".bf-intro\");const outro=root.querySelector(\".bf-outro\");const countEl=root.querySelector(\".bf-intro__count\");const dockEl=root.querySelector(\".bf-dock\");const nextBlock=el=>{for(let n=el.nextElementSibling;n;n=n.nextElementSibling)if(!\/^(SCRIPT|STYLE|LINK|TEMPLATE|NOSCRIPT)$\/.test(n.tagName))return n;return null};let topLevel=root;while(topLevel.parentElement&&topLevel.parentElement!==document.body)topLevel=topLevel.parentElement;const footer=root.dataset.footer?document.querySelector(root.dataset.footer):nextBlock(topLevel);document.body.classList.add(\"bf-projets-page\");const lis=[...root.querySelectorAll(\".bf-item\")];const items=lis.map((li,i)=>{const img=li.querySelector(\"img\");const text=sel=>li.querySelector(sel)?.textContent.trim()||\"\";return{i:i,cat:li.dataset.cat,url:li.querySelector(\"a[href]\").href,title:text(\".bf-item__title\"),kind:text(\".bf-item__kind\"),line:text(\".bf-item__line\"),src:img?.getAttribute(\"src\")||\"\",srcset:img?.getAttribute(\"srcset\")||\"\",ar:+img?.getAttribute(\"width\")&&+img?.getAttribute(\"height\")?img.getAttribute(\"width\")\/img.getAttribute(\"height\"):0,slug:li.dataset.slug||\"\",site:li.dataset.site||\"\"}});if(!intro||!outro||!dockEl||!items.length)return;let onSites=()=>{};sitesReady.then(map=>{items.forEach((it,i)=>{if(!it.site&&map[it.slug])it.site=map[it.slug];const text=lis[i].querySelector(\".bf-item__text\");if(it.site&&text&&!text.querySelector(\".bf-cta--ext\"))text.insertAdjacentHTML(\"beforeend\",siteLink(it.site,\"bf-item__site\"))});onSites()});const focusTitle=root.querySelector(\"[data-bf-focus]\");if(focusTitle&&!reduce&&focusTitle.firstChild?.nodeType===3){const t=focusTitle.firstChild;focusTitle.setAttribute(\"aria-label\",t.textContent.trim());focusTitle.replaceChild([...t.textContent].reduce((frag,ch,i)=>{const s=make(\"span\",\"bf-ch\",{\"aria-hidden\":\"true\"});s.style.setProperty(\"--i\",i);s.textContent=ch;frag.append(s);return frag},document.createDocumentFragment()),t)}root.addEventListener(\"click\",e=>{const a=e.target.closest(\"a[href]\");if(!a||e.defaultPrevented||reduce||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;if(a.target===\"_blank\"||a.origin!==location.origin)return;e.preventDefault();root.classList.add(\"is-leaving\");setTimeout(()=>location.href=a.href,460)});addEventListener(\"pageshow\",e=>e.persisted&&root.classList.remove(\"is-leaving\"));const dockList=dockEl.querySelector(\".bf-dock__list\");const cats=[...dockList.querySelectorAll(\"button\")];cats.forEach(b=>{const c=b.dataset.cat;const n=c===\"all\"?items.length:items.filter(it=>it.cat===c).length;b.insertAdjacentHTML(\"beforeend\",`<span class=\"bf-dock__n\">${n}<\/span>`)});const pill=make(\"div\",\"bf-dock__pill\",{\"aria-hidden\":\"true\"});const pillList=make(\"div\",\"bf-dock__list\");cats.forEach(b=>{const s=make(\"span\",\"bf-dock__item\");s.innerHTML=b.innerHTML;pillList.append(s)});pill.append(pillList);dockEl.append(pill);let catIdx=Math.max(0,cats.findIndex(b=>b.getAttribute(\"aria-pressed\")===\"true\"));let onFilter=staticFilter;function placePill(dir=0){const b=cats[catIdx];pill.style.transitionDelay=dir>0?\"60ms, 0ms\":dir<0?\"0ms, 60ms\":\"0ms, 0ms\";pill.style.setProperty(\"--bf-l\",b.offsetLeft+\"px\");pill.style.setProperty(\"--bf-r\",dockList.offsetWidth-b.offsetLeft-b.offsetWidth+\"px\")}function snapPill(){pill.style.transition=\"none\";placePill();void pill.offsetWidth;pill.style.transition=\"\"}function selectCat(i,{focus:focus=false,silent:silent=false}={}){i=clamp(i,0,cats.length-1);if(i===catIdx)return;const dir=Math.sign(i-catIdx);catIdx=i;cats.forEach((b,k)=>b.setAttribute(\"aria-pressed\",String(k===i)));if(focus)cats[i].focus();if(silent)return snapPill();placePill(dir);onFilter(cats[i].dataset.cat);try{const u=new URL(location.href);if(cats[i].dataset.cat===\"all\")u.searchParams.delete(\"filtre\");else u.searchParams.set(\"filtre\",cats[i].dataset.cat);history.replaceState(history.state,\"\",u)}catch{}}const linkedCat=(()=>{const c=new URLSearchParams(location.search).get(\"filtre\")||decodeURIComponent(location.hash.slice(1));const i=cats.findIndex(b=>b.dataset.cat===c);return i>0?i:-1})();cats.forEach((b,i)=>b.addEventListener(\"click\",()=>selectCat(i)));dockEl.addEventListener(\"keydown\",e=>{if(e.key!==\"ArrowRight\"&&e.key!==\"ArrowLeft\")return;e.preventDefault();selectCat(catIdx+(e.key===\"ArrowRight\"?1:-1),{focus:true})});let x0=null,swiped=false;dockEl.addEventListener(\"pointerdown\",e=>{x0=e.clientX;swiped=false});dockEl.addEventListener(\"pointerup\",e=>{if(x0===null)return;const dx=e.clientX-x0;x0=null;if(Math.abs(dx)>32){swiped=true;selectCat(catIdx+(dx<0?1:-1))}});dockEl.addEventListener(\"click\",e=>{if(swiped){e.stopPropagation();swiped=false}},true);function staticFilter(c){let n=0;lis.forEach((li,i)=>{li.hidden=c!==\"all\"&&items[i].cat!==c;if(!li.hidden)n++});if(countEl)countEl.textContent=pad(n)}if(footer){new IntersectionObserver(([e])=>root.classList.toggle(\"is-at-footer\",e.isIntersecting),{threshold:.15}).observe(footer)}root.classList.add(\"is-ready\");snapPill();document.fonts?.ready.then(snapPill);if(reduce||editor){if(linkedCat>0){selectCat(linkedCat,{silent:true});staticFilter(cats[linkedCat].dataset.cat)}root.classList.add(\"is-flat\");addEventListener(\"resize\",snapPill);return}root.classList.add(\"is-3d\");if(footer){if(getComputedStyle(footer).position===\"static\")footer.style.position=\"relative\";if(!footer.style.zIndex)footer.style.zIndex=\"2\"}const stage=make(\"div\",\"bf-stage\");const world=make(\"div\",\"bf-world\");const nowEl=make(\"aside\",\"bf-now is-off\",{\"aria-live\":\"polite\"});const indexEl=make(\"nav\",\"bf-index\",{\"aria-label\":\"Index des projets\"});const spacers=make(\"div\",\"bf-spacers\",{\"aria-hidden\":\"true\"});const probe=make(\"div\",\"bf-probe\",{\"aria-hidden\":\"true\"});intro.classList.add(\"bf-plane\",\"bf-plane--text\");outro.classList.add(\"bf-plane\",\"bf-plane--text\",\"bf-plane--outro\");const cards=items.map(it=>{const el=make(\"section\",\"bf-plane bf-plane--card\");const a=make(\"a\",\"\",{href:it.url,\"aria-label\":it.title});const fig=make(\"figure\",\"bf-card__media\");const img=make(\"img\",\"\",{alt:\"\",decoding:\"async\",sizes:\"(max-width: 820px) 86vw, 38vw\"});img.dataset.src=it.src;if(it.srcset)img.dataset.srcset=it.srcset;fig.append(img);a.append(fig);el.append(a);const card={el:el,img:img,it:it,hover:false,ar:it.ar||4\/3};el.style.setProperty(\"--bf-ar\",card.ar.toFixed(4));img.addEventListener(\"load\",()=>{const r=img.naturalWidth\/img.naturalHeight;if(r&&Math.abs(r-card.ar)>.01){card.ar=r;el.style.setProperty(\"--bf-ar\",r.toFixed(4));sizeCard(card)}});a.addEventListener(\"click\",e=>{const k=planes.findIndex(pl=>pl.el===el);if(k!==focused){e.preventDefault();go(k)}});a.addEventListener(\"focus\",()=>go(planes.findIndex(pl=>pl.el===el)));el.addEventListener(\"pointerenter\",()=>{card.hover=canHover.matches;wake()});el.addEventListener(\"pointerleave\",()=>{card.hover=false;wake()});return card});world.append(intro,...cards.map(c=>c.el),outro);stage.append(world);root.prepend(stage);root.append(nowEl,indexEl,spacers,probe);const loadImg=img=>{if(!img.dataset.src)return;if(img.dataset.srcset)img.srcset=img.dataset.srcset;img.src=img.dataset.src;delete img.dataset.src;delete img.dataset.srcset};let planes=[],focused=-2,cam=0,small=false,step=innerHeight,cat=\"all\";let want=0,wantAt=0,first=true,cutting=false,raf=0;let outroBox={top:0,bottom:0,footH:1,fits:true},footDocTop=Infinity;let lastY=scrollY,prevY=scrollY,lastMove=0,dirY=1,held=false,base=0;const yOf=k=>base+k*step;const posOf=y=>(y-base)\/step;let movingShown=null,shiftShown=\"\",fadeShown=1,boxW=0,boxH=0;const last=()=>planes.length-1;function layout(){const vw=innerWidth;const vh=probe.offsetHeight||innerHeight;small=vw<=820;const g=clamp(vw*.032,16,48);const adminBar=document.getElementById(\"wpadminbar\")?.offsetHeight||0;const top=(small?96:80)+adminBar;const bottom=small?96+212+16:104;const avail=vh-top-bottom;const ring=small?10:14;const indexW=small?0:indexEl.offsetWidth;const gapL=40+ring+JMAX;const gapR=32+ring+JMAX;const textMin=280;boxH=Math.max(160,avail-2*ring);const cw=small?vw-2*g-2*ring:Math.max(240,Math.min(vw*.38,vw-2*g-textMin-indexW-gapL-gapR));boxW=cw;const cx=small?vw\/2:clamp(vw*.7,g+textMin+gapL+cw\/2,vw-g-indexW-gapR-cw\/2);const cy=top+avail\/2;const tw=small?vw-2*g:Math.min(cx-cw\/2-ring-JMAX-40-g,460);const room=small?vw-2*g:cx-cw*.25-40-g;const set=(k,v)=>root.style.setProperty(k,Math.round(v)+\"px\");set(\"--bf-cx\",cx);set(\"--bf-cy\",cy);set(\"--bf-cw\",cw);set(\"--bf-tw\",tw);set(\"--bf-ty\",small?vh*.42:cy);set(\"--bf-iw\",room);set(\"--bf-gx\",g);set(\"--bf-ox\",vw\/2);set(\"--bf-oy\",vh\/2);set(\"--bf-ow\",Math.min(vw*.92,1100));set(\"--bf-ring\",ring);set(\"--bf-ih\",avail);set(\"--bf-title\",Math.min(vw*.19,room\/5.8,176));const h=outro.offsetHeight;const footH=footer?footer.offsetHeight:0;outroBox={top:vh\/2-h\/2,bottom:vh\/2+h\/2,footH:footH||1,fits:!footer||vh-footH-112>=h};footDocTop=footer?footer.getBoundingClientRect().top+scrollY:Infinity;base=Math.max(0,Math.round(spacers.getBoundingClientRect().top+scrollY));indexEl.classList.toggle(\"is-scrollable\",indexEl.scrollHeight>indexEl.clientHeight+1);cards.forEach(c=>c.el.style.width=Math.round(Math.min(boxW,boxH*c.ar))+\"px\");planes.forEach(pl=>{pl.hw=Math.round(pl.el.offsetWidth\/2);pl.hh=Math.round(pl.el.offsetHeight\/2);pl.t=\"\"});wake()}function sizeCard(c){if(!boxW)return;c.el.style.width=Math.round(Math.min(boxW,boxH*c.ar))+\"px\";const pl=planes.find(p=>p.card===c);if(pl){pl.hw=Math.round(c.el.offsetWidth\/2);pl.hh=Math.round(c.el.offsetHeight\/2);pl.t=\"\";wake()}}function build(){const vis=cards.filter(c=>!c.el.hidden);planes=[{el:intro,card:null},...vis.map(c=>({el:c.el,card:c})),{el:outro,card:null}].map(p=>({...p,isOutro:p.el===outro,vis:null,key:-1,t:\"\",o:\"\",f:\"\",pe:\"\",cur:null,hw:0,hh:0}));spacers.innerHTML='<div class=\"bf-spacer\"><\/div>'.repeat(planes.length);step=spacers.firstElementChild.getBoundingClientRect().height||innerHeight;if(countEl)countEl.textContent=pad(vis.length);indexEl.replaceChildren(...vis.map((c,k)=>{const b=make(\"button\",\"\",{type:\"button\",title:c.it.title});const name=make(\"span\",\"bf-index__name\");name.textContent=c.it.title;b.append(name);b.addEventListener(\"click\",()=>go(k+1));return b}));focused=-2}const current=()=>performance.now()-wantAt<1e3?want:clamp(Math.round(posOf(scrollY)),0,last());function cut(fn){cutting=true;root.classList.add(\"is-refocus\");nowEl.classList.add(\"is-moving\");movingShown=true;setTimeout(()=>{fn();cutting=false;requestAnimationFrame(()=>requestAnimationFrame(()=>root.classList.remove(\"is-refocus\")));wake()},260)}function go(k,mode){k=clamp(k,0,last());const from=current();want=k;wantAt=performance.now();if(k===from&&Math.abs(scrollY-yOf(k))<2)return;if(mode===\"instant\"){jump(yOf(k));cam=k*Z;wake();return}if(mode===\"cut\"||Math.abs(k-from)>1){cut(()=>{jump(yOf(k));cam=k*Z});return}scrollTo({top:yOf(k),behavior:\"smooth\"})}function setFocused(k){if(k===focused)return;focused=k;const card=planes[k]?.card;[...indexEl.children].forEach((b,j)=>b.setAttribute(\"aria-current\",String(j===k-1)));indexEl.classList.toggle(\"is-off\",k===last());const cur=indexEl.children[k-1];if(cur&&indexEl.scrollHeight>indexEl.clientHeight){indexEl.scrollTo({top:cur.offsetTop-indexEl.clientHeight\/2+cur.offsetHeight\/2,behavior:reduce?\"auto\":\"smooth\"})}nowEl.classList.toggle(\"is-off\",!card);for(let j=Math.max(1,k-1);j<=Math.min(last()-1,k+3);j++)planes[j].card&&loadImg(planes[j].card.img);save();if(!card)return;const it=card.it;nowEl.classList.remove(\"is-swap\");nowEl.innerHTML=`<div class=\"bf-now__meta\"><b>${pad(it.i+1)}<\/b><span>${esc(it.kind)}<\/span><\/div>\\n        <h2>${esc(it.title)}<\/h2>\\n        <p>${esc(it.line)}<\/p>\\n        <div class=\"bf-now__btns\"><a class=\"bf-now__cta\" href=\"${esc(it.url)}\"><span>Voir le projet<\/span>${ARROW}<\/a>${it.site?siteLink(it.site,\"bf-now__cta\"):\"\"}<\/div>`;void nowEl.offsetWidth;nowEl.classList.add(\"is-swap\")}onSites=()=>{const it=planes[focused]?.card?.it;const btns=nowEl.querySelector(\".bf-now__btns\");if(it?.site&&btns&&!btns.querySelector(\".bf-cta--ext\"))btns.insertAdjacentHTML(\"beforeend\",siteLink(it.site,\"bf-now__cta\"))};function applyFilter(c){cat=c;cards.forEach(card=>card.el.hidden=c!==\"all\"&&card.it.cat!==c);build();layout()}onFilter=c=>cut(()=>{applyFilter(c);want=1;wantAt=performance.now();jump(yOf(1));cam=Z});function save(){try{sessionStorage.setItem(STORE,JSON.stringify({cat:cat,k:focused}))}catch{}}function restore(){const nav=performance.getEntriesByType(\"navigation\")[0];if(!nav||![\"reload\",\"back_forward\"].includes(nav.type)){if(linkedCat>0){selectCat(linkedCat,{silent:true});applyFilter(cats[linkedCat].dataset.cat)}return 0}try{const s=JSON.parse(sessionStorage.getItem(STORE)||\"null\");if(!s)return 0;const i=cats.findIndex(b=>b.dataset.cat===s.cat);if(i>0){selectCat(i,{silent:true});applyFilter(s.cat)}return clamp(s.k|0,0,last())}catch{return 0}}if(\"scrollRestoration\"in history)history.scrollRestoration=\"manual\";build();layout();const startAt=restore();jump(yOf(startAt));cam=startAt*Z;prevY=lastY=scrollY;document.fonts?.ready.then(layout);let rz=0;addEventListener(\"resize\",()=>{if(rz)return;rz=requestAnimationFrame(()=>{rz=0;const k=performance.now()-wantAt<1e3?want:clamp(Math.round(cam\/Z),0,last());const wasInStage=scrollY<=yOf(last())+2;step=spacers.firstElementChild.getBoundingClientRect().height||innerHeight;layout();snapPill();if(wasInStage&&Math.abs(scrollY-yOf(k))>1){jump(yOf(k));cam=k*Z}})});const inFooter=()=>scrollY>yOf(last())+2;const editable=t=>t?.closest?.(\"input, textarea, select, [contenteditable]\");addEventListener(\"keydown\",e=>{if(e.defaultPrevented||e.altKey||e.metaKey||e.ctrlKey||editable(e.target))return;if(e.target?.closest?.(\".bf-dock\")||inFooter())return;const onControl=e.target?.closest?.(\"button, a\");const k=current();const next=[\"ArrowDown\",\"ArrowRight\",\"PageDown\"].includes(e.key)||e.key===\" \"&&!e.shiftKey&&!onControl;const prev=[\"ArrowUp\",\"ArrowLeft\",\"PageUp\"].includes(e.key)||e.key===\" \"&&e.shiftKey&&!onControl;if(next&&k>=last())return;if(next||prev){e.preventDefault();go(k+(next?1:-1));return}if(e.key===\"Home\"){e.preventDefault();go(0)}if(e.key===\"End\"){e.preventDefault();go(last())}const card=planes[focused]?.card;if(e.key===\"Enter\"&&!onControl&&card)card.el.querySelector(\"a\").click()});addEventListener(\"scroll\",wake,{passive:true});addEventListener(\"pointerdown\",()=>held=true);for(const t of[\"pointerup\",\"pointercancel\",\"blur\"])addEventListener(t,()=>{held=false;wake()});function settle(now){if(scrollY!==lastY){dirY=Math.sign(scrollY-lastY)||dirY;lastY=scrollY;lastMove=now;return true}if(small||cutting||held||scrollY>=yOf(last())||scrollY<base)return false;const pos=posOf(scrollY);const floor=Math.floor(pos),frac=pos-floor;if(frac<.003||frac>.997)return false;if(now-lastMove<180)return true;const k=dirY>0?frac>.2?floor+1:floor:frac<.8?floor:floor+1;lastMove=now+1e9;want=k;wantAt=now;scrollTo({top:yOf(k),behavior:\"smooth\"});return true}function wake(){if(!raf)raf=requestAnimationFrame(frame)}function frame(now){raf=0;if(render(now))wake()}function render(now){const target=clamp(posOf(scrollY),0,last())*Z;if(first){cam=target;first=false}const pending=settle(now);const jumped=Math.abs(scrollY-prevY)>step*1.5;prevY=scrollY;if(!cutting&&jumped&&Math.abs(target-cam)>Z*1.2)cut(()=>{cam=clamp(posOf(scrollY),0,last())*Z});if(!cutting){cam+=(target-cam)*.075;if(Math.abs(target-cam)<.1)cam=target}const moving=Math.abs(target-cam)>Z*.4;if(moving!==movingShown){nowEl.classList.toggle(\"is-moving\",moving);movingShown=moving}let shift=0,fade=1;if(footer&&scrollY>yOf(last())-1){const footTop=footDocTop-scrollY;if(outroBox.fits)shift=Math.max(0,outroBox.bottom+32-footTop);else fade=clamp(1-(innerHeight-footTop)\/outroBox.footH\/.6,0,1)}const shiftCss=shift?`translate3d(0, ${-shift.toFixed(1)}px, 0)`:\"\";if(shiftCss!==shiftShown){stage.style.transform=shiftCss;shiftShown=shiftCss}if(fade!==fadeShown){world.style.opacity=fade<1?fade.toFixed(3):\"\";fadeShown=fade}for(let i=0;i<planes.length;i++){const pl=planes[i];const z=cam-i*Z;const isCard=!!pl.card;const far=isCard?Z*(small?.9:1.5):Z*.75;const pass=isCard?420:520;const show=z<pass&&z>-far;if(show!==pl.vis){pl.el.style.visibility=show?\"\":\"hidden\";pl.vis=show}if(!show)continue;const[jx,jy]=isCard&&!small?JIT[i%JIT.length]:[0,0];const ox=isCard||pl.isOutro?-pl.hw:0;const zz=Math.abs(z)<1?0:z;const t=`translate3d(${ox+jx}px, ${jy-pl.hh}px, ${zz.toFixed(1)}px)`;if(t!==pl.t){pl.el.style.transform=t;pl.t=t}const o=(z>0?Math.max(0,1-z\/pass):Math.max(0,1+z\/far)).toFixed(3);if(o!==pl.o){pl.el.style.opacity=o;pl.o=o}const soften=pl.card?.hover&&Math.abs(z)>200?.35:1;const b=Math.round(Math.min(14,Math.abs(z)\/100)*soften*2)\/2;const gs=Math.min(1,Math.abs(z)\/700)*soften;const key=b*100+Math.round(gs*10);if(key!==pl.key){pl.el.style.filter=b||gs?`blur(${b}px) grayscale(${gs.toFixed(1)})`:\"\";pl.key=key}if(isCard){const f=Math.max(0,1-Math.abs(z)\/260).toFixed(3);if(f!==pl.f){pl.el.style.setProperty(\"--bf-f\",f);pl.f=f}const pe=z<300&&z>-Z*1.5?\"auto\":\"none\";if(pe!==pl.pe){pl.el.style.pointerEvents=pe;pl.pe=pe}const cur=Math.abs(z)<200?\"\":\"zoom-in\";if(cur!==pl.cur){pl.el.style.cursor=cur;pl.cur=cur}}}setFocused(Math.round(cam\/Z));return cam!==target||cutting||pending}window.bfProjets={go:(k,mode)=>go(k,mode),state:()=>({step:step,base:base,cam:Math.round(cam),plan:focused,plans:planes.length,scrollY:Math.round(scrollY),footDocTop:Math.round(footDocTop)}),filter:c=>{const i=cats.findIndex(b=>b.dataset.cat===c);if(i>-1)selectCat(i)}};wake()}})();\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Projets00 Allier la puret\u00e9 du minimalisme \u00e0 la cr\u00e9ation digitale. Un projet en t\u00eate&nbsp;? Me contacter ToutTout<\/p>\n","protected":false},"author":1,"featured_media":688,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-19","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/portfolio.frtne.fr\/wordpress\/wp-json\/wp\/v2\/pages\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portfolio.frtne.fr\/wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/portfolio.frtne.fr\/wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/portfolio.frtne.fr\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/portfolio.frtne.fr\/wordpress\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":438,"href":"https:\/\/portfolio.frtne.fr\/wordpress\/wp-json\/wp\/v2\/pages\/19\/revisions"}],"predecessor-version":[{"id":4184,"href":"https:\/\/portfolio.frtne.fr\/wordpress\/wp-json\/wp\/v2\/pages\/19\/revisions\/4184"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/portfolio.frtne.fr\/wordpress\/wp-json\/wp\/v2\/media\/688"}],"wp:attachment":[{"href":"https:\/\/portfolio.frtne.fr\/wordpress\/wp-json\/wp\/v2\/media?parent=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}