/* BABIP — scène plein écran, captures de la PWA sans reconstitution. */
.scroll-entry{--spread:0;--turn-x:4deg;--turn-y:-13deg;--turn-z:-3deg;--world-scale:.98;--world-shift:0px;--base-scale:1;--fan:1;--cover-opacity:1;--cover-turn:0deg;--cover-z:104px;--cover-x:0px;--cover-y:0px;--beam:0;--progress:0;position:relative;padding:0!important;background:radial-gradient(ellipse at 65% 55%,#302c50 0,transparent 65%),#121212;overflow:clip;isolation:isolate}
.scroll-entry.is-3d-ready{height:calc(var(--pinned-height) + var(--scroll-distance))}.entry-stage{position:relative;width:100%;padding:20px 4vw 16px;display:flex;flex-direction:column;justify-content:center;gap:10px;margin:0;min-height:780px}.is-3d-ready .entry-stage{position:sticky;top:var(--sticky-top);height:calc(100svh - 92px);min-height:760px}.entry-copy{display:grid;grid-template-columns:1fr auto;gap:0 28px;align-items:center;width:100%;max-width:1600px;margin:auto;z-index:2}.entry-copy .eyebrow,.entry-copy .quiet,.entry-scroll-hint{display:none!important}.entry-copy h1{grid-column:1;grid-row:1;font-size:clamp(1.6875rem,2.7vw,2.5rem);line-height:1.12;letter-spacing:-.03em;margin:0 0 8px}.entry-copy h1 em{font-style:normal;color:#bcb6ff}.entry-copy .lead{grid-column:1;grid-row:2;font-size:13px;line-height:1.4;margin:0;max-width:none}.entry-copy .actions{grid-column:2;grid-row:1/3;display:flex;flex-wrap:nowrap;gap:10px;margin:0}.entry-copy .wp-block-button__link{font-size:14px;padding:12px 17px;min-height:46px}.entry-tools{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:22px;margin-top:14px;color:#bbb4cf;font-size:11px}.entry-skip{text-underline-offset:4px}.motion-toggle{font:inherit;color:inherit;border:0;border-bottom:1px solid #726887;background:none;padding:2px 0;cursor:pointer}.entry-product{position:relative;margin:0;min-width:0;width:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.entry-camera{position:relative;width:100%;height:clamp(450px,calc(100svh - 280px),850px);perspective:1800px;perspective-origin:50% 48%;pointer-events:none}.entry-world{position:absolute;top:49%;left:50%;width:282px;height:610px;margin:-305px 0 0 -141px;transform-style:preserve-3d;transform:translateX(calc(var(--world-shift) * var(--base-scale))) scale3d(calc(var(--world-scale) * var(--base-scale)),calc(var(--world-scale) * var(--base-scale)),calc(var(--world-scale) * var(--base-scale))) rotateX(var(--turn-x)) rotateY(var(--turn-y)) rotateZ(var(--turn-z));will-change:transform}
.device-shell{position:absolute;inset:-5px;border-radius:31px;background:linear-gradient(120deg,#77727f,#201d27 22%,#131117 75%,#77717e);border:1px solid #76707f;transform:translateZ(-3px);transform-style:preserve-3d;box-shadow:10px 15px 35px #0007}.device-back{position:absolute;inset:0;border-radius:30px;background:#1d1a23;transform:translateZ(-5px);border:1px solid #4f4959}.device-edge{position:absolute;width:5px;top:22px;bottom:22px;background:linear-gradient(90deg,#17131d,#6a6374);transform-origin:left;transform:rotateY(90deg)}.edge-left{left:0}.edge-right{left:100%}.device-bottom{position:absolute;bottom:0;left:23px;right:23px;height:5px;background:#524b5e;transform-origin:bottom;transform:rotateX(90deg)}.device-lens{display:none}.device-cover{position:absolute;inset:0;border-radius:24px;overflow:hidden;background:#121212;transform:translate3d(var(--cover-x),var(--cover-y),var(--cover-z)) rotateY(var(--cover-turn));opacity:var(--cover-opacity);backface-visibility:hidden;border:1px solid #5f586e;box-shadow:0 8px 24px #0005}.device-cover img{display:block;width:100%;height:100%;object-fit:contain;background:#121212}.cover-glint{position:absolute;inset:0;background:linear-gradient(125deg,transparent 35%,#ffffff08 55%,transparent 75%)}.capture-plane{position:absolute;inset:0;border:2px solid #77718c;border-radius:24px;background:#121212;box-shadow:0 14px 35px #0009,0 0 0 4px #ffffff05;transform-style:preserve-3d;backface-visibility:hidden;will-change:transform}.capture-plane img{display:block;width:100%;height:100%;object-fit:contain;border-radius:21px;background:#121212}.screen-caption{position:absolute;top:-29px;left:0;right:0;text-align:center;color:#e9e2ff;font-family:'New Order';font-size:14px;white-space:nowrap;text-shadow:0 2px 10px #000}.plane-one{border-color:#7bc6b2;transform:translate3d(calc(-435px * var(--fan) * var(--open1,0)),calc(20px * var(--open1,0)),var(--depth1,8px)) rotateY(calc(-10deg * var(--open1,0))) rotateZ(calc(-3deg * var(--tilt,1) * var(--open1,0)))}.plane-two{border-color:#a599ec;transform:translate3d(calc(-145px * var(--fan) * var(--open2,0)),calc(-25px * var(--open2,0)),var(--depth2,8px)) rotateY(calc(-3deg * var(--open2,0))) rotateZ(calc(-1.5deg * var(--tilt,1) * var(--open2,0)))}.plane-three{border-color:#79c2ad;transform:translate3d(calc(145px * var(--fan) * var(--open3,0)),calc(-5px * var(--open3,0)),var(--depth3,8px)) rotateY(calc(4deg * var(--open3,0))) rotateZ(calc(1.5deg * var(--tilt,1) * var(--open3,0)))}.plane-four{border-color:#b0a3eb;transform:translate3d(calc(435px * var(--fan) * var(--open4,0)),calc(30px * var(--open4,0)),var(--depth4,8px)) rotateY(calc(10deg * var(--open4,0))) rotateZ(calc(3deg * var(--tilt,1) * var(--open4,0)))}.plane-one .screen-caption{opacity:var(--caption1,0)}.plane-two .screen-caption{opacity:var(--caption2,0)}.plane-three .screen-caption{opacity:var(--caption3,0)}.plane-four .screen-caption{opacity:var(--caption4,0)}
.entry-light{position:absolute;width:70%;height:90%;border-radius:50%;top:5%;left:15%;opacity:calc(.45 + var(--beam) * .5);pointer-events:none}.light-purple{background:radial-gradient(ellipse,#7770dc74 0,transparent 65%)}.light-green{background:radial-gradient(ellipse,#40ae9f65 0,transparent 65%);transform:translate(15%,12%)}.entry-orbit{position:absolute;width:85%;height:65%;top:20%;left:7.5%;border:1px solid #8c7eda60;border-radius:50%;transform:rotateX(65deg) rotateZ(calc(-20deg + var(--progress) * 70deg));opacity:calc(.3 + var(--beam) * .6)}.orbit-b{transform:rotateX(68deg) rotateY(-12deg) rotateZ(calc(30deg - var(--progress) * 90deg));border-color:#69c9ad60}.entry-ground{position:absolute;bottom:0;height:70px;left:8%;right:8%;border-radius:50%;background:radial-gradient(ellipse,#0009,transparent 70%)}.entry-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 28px;list-style:none;padding:0;margin:8px 0 0}.entry-legend li{font-size:11px;margin:0;color:#cac3db}.entry-legend li:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#7ec8b5;margin-right:8px}.entry-legend li:nth-child(even):before{background:#aa9bed}.entry-product figcaption{font-size:10px;color:#aaa1bc;text-align:center;margin-top:6px}.is-outside .entry-world,.is-outside .capture-plane{will-change:auto}
@media(max-width:1000px){.entry-copy{grid-template-columns:1fr;gap:0}.entry-copy h1{font-size:1.9375rem;text-align:center}.entry-copy .lead{text-align:center;font-size:12px}.entry-copy .actions{grid-column:1;grid-row:3;justify-content:center;margin-top:12px}.entry-tools{margin-top:10px}.entry-camera{height:clamp(460px,calc(100svh - 310px),800px)}.entry-stage,.is-3d-ready .entry-stage{min-height:800px;padding:16px 3vw 12px}.screen-caption{font-size:13px}}
@media(max-width:650px){.entry-stage,.is-3d-ready .entry-stage{height:auto;min-height:0;padding:18px 17px 12px;gap:8px}.entry-copy h1{font-size:1.75rem;line-height:1.1;max-width:400px;margin:0 auto 9px}.entry-copy .lead{font-size:12px;line-height:1.45;max-width:410px;margin:auto}.entry-copy .actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px;margin:12px 0 0}.entry-copy .wp-block-button__link{font-size:13px;padding:10px 8px;min-height:44px}.entry-tools{font-size:10px;gap:18px;margin-top:9px}.entry-camera{height:clamp(440px,calc(100svh - 285px),680px);perspective:1400px}.screen-caption{font-size:13px}.entry-legend{gap:4px 12px;margin-top:3px}.entry-legend li{font-size:9px}.entry-product figcaption{font-size:9px;margin-top:5px}}
/* La version statique montre aussi les vraies captures, dans une galerie normale. */
.scroll-entry.is-motion-static{height:auto!important}.is-motion-static .entry-stage{position:relative;height:auto;top:auto;min-height:0}.is-motion-static .entry-camera{height:auto;perspective:none;margin:32px 0 12px}.is-motion-static .entry-world{position:relative;left:auto;top:auto;margin:0;transform:none!important;width:100%;height:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;max-width:1250px;margin:auto;will-change:auto}.is-motion-static .capture-plane{position:relative;inset:auto;transform:none!important;will-change:auto;aspect-ratio:390/844;border-radius:20px;margin-top:24px}.is-motion-static .screen-caption{top:-26px;font-size:12px}.is-motion-static .device-shell,.is-motion-static .device-cover,.is-motion-static .entry-light,.is-motion-static .entry-ground,.is-motion-static .entry-orbit{display:none}.is-motion-static .entry-product{flex:none}
@media(max-width:650px){.is-motion-static .entry-world{grid-template-columns:1fr 1fr;gap:24px 14px}.is-motion-static .capture-plane{border-radius:15px}.is-motion-static .capture-plane img{border-radius:12px}.is-motion-static .screen-caption{font-size:10px}}
@media(prefers-reduced-motion:reduce){.scroll-entry{height:auto!important}.scroll-entry .entry-stage{position:relative!important;top:auto!important;height:auto!important}.entry-world,.capture-plane{will-change:auto!important}}

.entry-tools,.entry-scroll-hint{display:none!important}.entry-legend,.entry-product>figcaption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.entry-copy .entry-skip:focus{position:fixed;top:10px;left:12px;z-index:100}

.screen-caption{opacity:var(--spread)}.device-shell{opacity:calc(1 - var(--spread) * .9)}
.entry-skip:not(:focus){top:-10000px!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.entry-skip:focus{width:auto;height:auto;overflow:visible;clip-path:none}.scroll-entry:has(.entry-skip:focus){z-index:100}
/* Marquages de développement seuls : présentation non destructive, captures sources intactes. */
.capture-plane img,.device-cover img{clip-path:inset(1.9% 0 0 0)}.device-cover:after{content:'';position:absolute;left:0;right:0;top:71.5%;height:5%;background:#121212;pointer-events:none}

.device-shell{opacity:var(--cover-opacity)}@media(max-width:650px){.scroll-entry{--tilt:.4}}

.plane-one{--focus:var(--focus1,0);--screen-accent:#40ae9f70}.plane-two{--focus:var(--focus2,0);--screen-accent:#8f7ad480}.plane-three{--focus:var(--focus3,0);--screen-accent:#40ae9f70}.plane-four{--focus:var(--focus4,0);--screen-accent:#8f7ad480}.capture-plane:after{content:'';position:absolute;inset:-3px;border:1px solid var(--screen-accent);border-radius:26px;box-shadow:0 0 26px var(--screen-accent);opacity:calc(.08 + var(--focus,0) * .72);pointer-events:none}
@media(max-width:650px){.scroll-entry.is-3d-ready .entry-world{left:calc(50% - 6px)}}
/* Mobile : une capture principale et trois plans éloignés, dans une scène dédiée. */
@media(max-width:650px){
  .scroll-entry.is-3d-ready .entry-copy{flex-shrink:0}
  .scroll-entry.is-3d-ready .entry-camera{width:calc(100% + 34px);perspective-origin:50% 50%}
  .scroll-entry.is-3d-ready .entry-world{left:50%}
  .scroll-entry.is-3d-ready .screen-caption{display:none}
  .scroll-entry.is-3d-ready .capture-plane{border-width:1.5px;box-shadow:0 14px 30px #000a,0 0 0 2px #ffffff06}
  .scroll-entry.is-3d-ready .plane-one{transform:translate3d(var(--mobile-x1,0px),var(--mobile-y1,0px),var(--depth1,8px)) rotateY(var(--mobile-yaw1,0deg)) rotateZ(var(--mobile-roll1,0deg)) scale3d(var(--mobile-scale1,1),var(--mobile-scale1,1),var(--mobile-scale1,1))}
  .scroll-entry.is-3d-ready .plane-two{transform:translate3d(var(--mobile-x2,0px),var(--mobile-y2,0px),var(--depth2,8px)) rotateY(var(--mobile-yaw2,0deg)) rotateZ(var(--mobile-roll2,0deg)) scale3d(var(--mobile-scale2,1),var(--mobile-scale2,1),var(--mobile-scale2,1))}
  .scroll-entry.is-3d-ready .plane-three{transform:translate3d(var(--mobile-x3,0px),var(--mobile-y3,0px),var(--depth3,8px)) rotateY(var(--mobile-yaw3,0deg)) rotateZ(var(--mobile-roll3,0deg)) scale3d(var(--mobile-scale3,1),var(--mobile-scale3,1),var(--mobile-scale3,1))}
  .scroll-entry.is-3d-ready .plane-four{transform:translate3d(var(--mobile-x4,0px),var(--mobile-y4,0px),var(--depth4,8px)) rotateY(var(--mobile-yaw4,0deg)) rotateZ(var(--mobile-roll4,0deg)) scale3d(var(--mobile-scale4,1),var(--mobile-scale4,1),var(--mobile-scale4,1))}
}
