/* Étude de cas : parcours au défilement */
.case-page{background:var(--cream)}
.cp-hero{position:relative;background:var(--cream);color:var(--choc);min-height:100svh;display:flex;align-items:center;padding:clamp(120px,16vh,170px) 0 clamp(60px,9vh,110px);overflow:hidden}
.cp-hero .wrap{position:relative;z-index:2}
.cp-hero .bubble{background:#fff;color:var(--choc)}
.cp-hero h1{font-size:clamp(2.6rem,7vw,6.6rem);line-height:.98;max-width:min(9.5em,100%);margin:22px 0 22px}
.cp-lead{max-width:34em;font-size:clamp(1.05rem,1.4vw,1.35rem);opacity:.92}
.cp-meta{display:flex;flex-wrap:wrap;gap:12px 36px;margin-top:34px;font-size:.95rem}
.cp-meta dt{opacity:.65;font-size:.8rem;font-weight:600;letter-spacing:.02em}
.cp-meta dd{font-weight:700;margin-top:2px}
.cp-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.cp-tags li{padding:7px 14px;border-radius:99px;background:#fff;color:var(--choc);font-weight:600;font-size:.88rem;line-height:1.2}
.cp-tags li:nth-child(odd){rotate:-2deg}.cp-tags li:nth-child(even){rotate:2deg}
.cp-tags li:nth-child(3n){background:var(--lime)}.cp-tags li:nth-child(4n){background:var(--orange)}
.own3d{position:absolute;aspect-ratio:1;pointer-events:none}
.cp-hero .o1{width:clamp(110px,18vw,280px);right:5%;top:14%}
.cp-hero .o2{width:clamp(80px,12vw,190px);right:24%;bottom:7%}
.cp-hero .o3{width:clamp(80px,10vw,160px);right:3%;bottom:14%}
.cp-scroll{position:absolute;left:50%;bottom:22px;translate:-50% 0;font-size:.8rem;opacity:.7;display:flex;flex-direction:column;align-items:center;gap:6px;z-index:2}
.cp-scroll i{width:2px;height:28px;background:currentColor;opacity:.6;animation:cpd 1.6s var(--ease) infinite}
@keyframes cpd{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}
.cp-in{opacity:0;transform:translateY(24px);animation:cpin .9s var(--ease) forwards;animation-delay:calc(var(--i,0)*.09s + .25s)}
@keyframes cpin{to{opacity:1;transform:none}}

/* Parcours : version empilée par défaut */
.journey{position:relative;background:var(--cream);color:var(--choc);padding:clamp(40px,7vw,90px) 0}
.jr-rail,.jr-mark{display:none}
.jr-belt{display:grid;gap:clamp(48px,8vw,100px);width:min(1100px,100% - var(--gut)*2);margin-inline:auto}
.jr-step{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(20px,4vw,56px);align-items:center}
.jr-step:nth-child(even) .jr-fig{order:2}
.jr-fig{position:relative;margin:0}
.jr-fig img{display:block;width:100%;height:auto;border-radius:24px;background:#fff}
.jr-txt h2{font-size:clamp(1.8rem,3.2vw,3rem);line-height:1.04;margin:10px 0 12px}
.jr-num{display:inline-block;padding:5px 14px;border-radius:99px;background:var(--lime);color:var(--choc);font-weight:700;font-size:.85rem}
.jr-txt p{max-width:30em}
.jr-brought{margin-top:16px;padding:16px 18px;border-radius:18px;background:rgba(60,36,21,.07);font-size:.95rem}
.jr-brought b{display:block;font-size:.78rem;letter-spacing:.03em;color:var(--vermil);margin-bottom:4px}
.vlink{display:inline-flex;align-items:center;gap:.5em;margin-top:14px;margin-right:10px;padding:10px 18px;border-radius:99px;background:var(--choc);color:var(--cream);font-weight:700;font-size:.92rem;text-decoration:none;transition:transform .25s var(--ease)}
.vlink:hover{transform:translate(3px,3px)}
.vlink:not([href]){display:none}
a.jr-imglink{display:block;cursor:pointer;transition:transform .35s var(--ease)}
a.jr-imglink:hover{transform:scale(1.015)}
@media (max-width:760px){.jr-step{grid-template-columns:1fr}.jr-step:nth-child(even) .jr-fig{order:0}}

/* Parcours : version épinglée */
.journey.is-sticky{padding:0}
.is-sticky .jr-stage{position:sticky;top:0;height:100svh;overflow:hidden;display:grid;grid-template-columns:minmax(210px,26%) 1fr minmax(280px,30%);gap:clamp(14px,2.5vw,40px);padding:0 var(--gut)}
.is-sticky .jr-rail{display:block;position:relative;height:100%}
.is-sticky .jr-rail svg{position:absolute;left:0;top:0;height:100%;width:60px;overflow:visible}
.is-sticky .jr-rail path{vector-effect:non-scaling-stroke;fill:none;stroke:rgba(60,36,21,.28);stroke-width:1.5}
.is-sticky .jr-rail path.fill{stroke:var(--vermil);stroke-width:2.5}
.is-sticky .jr-mark{display:flex;position:absolute;left:0;top:0;align-items:center;gap:14px;will-change:transform;z-index:3}
.jr-av{width:56px;height:56px;border-radius:50%;box-shadow:0 0 0 5px rgba(255,107,61,.25),0 0 0 2px var(--vermil);overflow:hidden;background:var(--lime);flex:none}
.jr-av img{width:100%;height:100%;object-fit:cover;display:block}
.jr-lab{position:relative;height:1.4em;min-width:10em;font-family:var(--serif);font-size:clamp(1.05rem,1.5vw,1.4rem)}
.jr-lab span{position:absolute;left:0;top:0;white-space:nowrap;opacity:0;transform:translateY(10px);transition:opacity .4s,transform .5s var(--ease)}
.jr-lab span.on{opacity:1;transform:none}
.is-sticky .jr-belt{display:block;position:relative;width:auto;margin:0;gap:0;overflow:hidden;overflow:clip;z-index:1}
.is-sticky .jr-cards{z-index:2}
.is-sticky .jr-step{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;grid-template-columns:none;will-change:transform,opacity}
.is-sticky .jr-step .jr-txt{display:none}
.is-sticky .jr-fig{width:min(100%,640px);max-height:72svh}
.is-sticky .jr-fig img{max-height:72svh;width:auto;max-width:100%;margin-inline:auto;box-shadow:0 24px 60px rgba(60,36,21,.28)}
.jr-cards{display:none}
.is-sticky .jr-cards{display:block;position:relative;align-self:center;height:min(62svh,520px)}
.jr-card{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;opacity:0;transform:translateY(26px);pointer-events:none;transition:opacity .45s,transform .6s var(--ease)}
.jr-card.on{opacity:1;transform:none;pointer-events:auto}
.jr-card h2{font-size:clamp(1.8rem,2.8vw,2.8rem);line-height:1.04;margin:10px 0 12px}
.jr-card p{max-width:28em}
.is-sticky .jr-own{position:absolute;pointer-events:none}
.jr-own.p1{width:clamp(80px,9vw,140px);right:5%;top:9%;z-index:3}
.jr-own.p2{width:clamp(70px,7vw,110px);right:7%;bottom:7%;z-index:3}
@media (max-width:899px){
  .is-sticky .jr-stage{grid-template-columns:1fr;grid-template-rows:auto 1fr auto;padding:0 var(--gut);gap:8px}
  .is-sticky .jr-rail{height:64px;margin-top:70px}
  .is-sticky .jr-rail svg{display:none}
  .is-sticky .jr-mark{position:relative;transform:none!important}
  .jr-av{width:44px;height:44px}
  .is-sticky .jr-belt{min-height:0}
  .is-sticky .jr-fig{max-height:32svh}.is-sticky .jr-fig img{max-height:32svh}
  .is-sticky .jr-cards{height:min(42svh,360px);padding-bottom:18px}
  .jr-card h2{font-size:1.5rem;margin:6px 0 8px}
  .jr-card p{font-size:.95rem;line-height:1.45}
  .jr-card .jr-brought{margin-top:8px;padding:10px 14px;font-size:.88rem}
  .jr-own.p1,.jr-own.p2{display:none}
}

/* Conclusion */
.cp-end{position:relative;background:var(--pink);color:var(--choc);border-radius:var(--r2) var(--r2) 0 0;margin-top:calc(var(--r2)*-1);padding:clamp(70px,10vw,140px) 0 clamp(110px,14vw,190px);overflow:hidden}
.cp-end .wrap{position:relative;z-index:2}
.cp-end h2{font-size:clamp(2.2rem,5.4vw,5rem);max-width:12em;margin-bottom:22px}
.cp-end p{max-width:32em;margin-bottom:28px}
.cp-end .btns{display:flex;flex-wrap:wrap;gap:12px}
.cp-end .o4{width:clamp(110px,16vw,240px);right:8%;top:18%}
@media (prefers-reduced-motion:reduce){.cp-in{animation:none;opacity:1;transform:none}.cp-scroll i{animation:none}}
@media (max-width:760px){.cp-scroll{display:none}}

/* Visuels doubles */
.jr-fig.duo{display:flex;gap:14px;align-items:center}
.jr-fig.duo img,.jr-fig.duo .jr-imglink{min-width:0}
.jr-fig.duo img{width:100%;height:auto;object-fit:cover}
.jr-fig.duo img:nth-child(1){rotate:-2deg}.jr-fig.duo img:nth-child(2){rotate:2deg;margin-top:7%}
.is-sticky .jr-fig.duo{width:min(100%,640px)}
.is-sticky .jr-fig.duo img{max-height:62svh;width:100%;height:auto}
@media (max-width:899px){.is-sticky .jr-fig.duo img{max-height:30svh}.is-sticky .jr-fig.duo{gap:10px}}
.is-sticky .jr-fig img{background:#fff}
/* Intro (arrivée depuis la tache) */
.intro{display:none;position:fixed;inset:0;z-index:9998;background:var(--intro-bg,var(--orange));align-items:center;justify-content:center;pointer-events:none}
.from-blob .intro{display:flex}
.intro .own3d{position:relative;width:min(60svh,68vw);flex:none}
.from-blob .cp-in{animation-delay:calc(var(--i,0)*.09s + 2.2s)}

/* Ma façon de travailler */
.cp-method{background:var(--cream);color:var(--choc);padding:clamp(50px,8vw,110px) 0 clamp(20px,4vw,50px)}
.cp-method h2{font-size:clamp(2rem,4.6vw,4.2rem);margin-bottom:clamp(24px,4vw,48px)}
.cm-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(12px,1.6vw,22px)}
.cm-card{background:var(--bg);border-radius:var(--r);padding:clamp(18px,2vw,28px);display:flex;flex-direction:column;gap:12px}
.cm-card h3{font-size:clamp(1.25rem,1.7vw,1.6rem);line-height:1.1}
.cm-card p{font-size:.98rem}
.cm-chips{display:flex;flex-wrap:wrap;gap:8px}
.cm-chips li{padding:7px 14px;border-radius:99px;background:#fff;font-weight:600;font-size:.9rem;line-height:1.2}
.cm-chips li:nth-child(odd){rotate:-2deg}.cm-chips li:nth-child(even){rotate:2deg}
@media (max-width:1000px){.cm-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.cm-grid{grid-template-columns:1fr}}
.jr-brought ul{list-style:none;display:grid;gap:5px;margin-top:4px}
.jr-brought li{position:relative;padding-left:16px;line-height:1.35}
.jr-brought li::before{content:"";position:absolute;left:0;top:.5em;width:7px;height:7px;border-radius:50%;background:var(--vermil)}
@media (max-width:899px){.is-sticky .jr-fig{max-height:27svh}.is-sticky .jr-fig img{max-height:27svh}.is-sticky .jr-fig.duo img{max-height:25svh}.is-sticky .jr-cards{height:min(54svh,440px)}.jr-card .jr-brought li{font-size:.85rem}.jr-card .vlink{padding:8px 14px;font-size:.85rem;margin-top:8px}}

/* Cadre uniforme pour tous les visuels du parcours épinglé */
.is-sticky .jr-fig,.is-sticky .jr-fig.duo{display:flex;align-items:center;justify-content:center;gap:12px;width:min(100%,640px);height:min(62svh,540px);max-height:none;padding:clamp(10px,1.4vw,18px);border-radius:26px;background:rgba(60,36,21,.07)}
.is-sticky .jr-fig img,.is-sticky .jr-fig.duo img,.is-sticky .jr-imglink img{flex:0 1 auto!important;width:auto;height:auto;max-width:100%;max-height:100%;min-width:0;object-fit:contain;border-radius:16px;box-shadow:0 12px 30px rgba(60,36,21,.2)}
.is-sticky .jr-imglink{display:flex;align-items:center;justify-content:center;max-width:100%;max-height:100%;min-width:0;flex:0 1 auto!important}
.is-sticky .jr-fig.duo img{max-width:calc(50% - 6px)}
.is-sticky .jr-fig.duo img:nth-child(1){rotate:-2deg}.is-sticky .jr-fig.duo img:nth-child(2){rotate:2deg;margin-top:0}
@media (max-width:899px){.is-sticky .jr-fig,.is-sticky .jr-fig.duo{width:100%;height:28svh;padding:10px;border-radius:20px}.is-sticky .jr-fig img,.is-sticky .jr-fig.duo img{max-height:100%}}

/* Sans fond ni cadre derrière les visuels */
.is-sticky .jr-fig,.is-sticky .jr-fig.duo{background:none;padding:0;border-radius:0}

.cp-hero{padding-bottom:clamp(130px,19vh,200px)}
.cp-scroll{bottom:16px}

/* Parcours : texte et visuel voyagent ensemble, côtés alternés */
.is-sticky .jr-cards{display:none}
.is-sticky .jr-stage{grid-template-columns:minmax(200px,22%) 1fr}
.is-sticky .jr-step{gap:clamp(24px,3.5vw,56px);padding:0 clamp(0px,1vw,16px)}
.is-sticky .jr-step .jr-txt{display:block;flex:1 1 0;min-width:0}
.is-sticky .jr-step .jr-txt h2{font-size:clamp(1.7rem,2.5vw,2.6rem)}
.is-sticky .jr-step .jr-fig,.is-sticky .jr-step .jr-fig.duo{flex:1.1 1 0;width:auto;min-width:0;height:min(54svh,480px)}
.is-sticky .jr-step:nth-child(even) .jr-fig{order:2}
.is-sticky .jr-step:nth-child(odd) .jr-fig{order:0}
.is-sticky .jr-own{z-index:0!important}
.jr-own.p1{right:2%!important;top:3%!important}
.jr-own.p2{right:auto!important;left:24%!important;bottom:2%!important}
@media (max-width:899px){
  .is-sticky .jr-stage{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .is-sticky .jr-step{flex-direction:column;justify-content:flex-start;align-items:stretch;gap:12px;padding:0}
  .is-sticky .jr-step:nth-child(even) .jr-fig,.is-sticky .jr-step:nth-child(odd) .jr-fig{order:0}
  .is-sticky .jr-step .jr-fig,.is-sticky .jr-step .jr-fig.duo{flex:none;width:100%;height:24svh}
  .is-sticky .jr-step .jr-txt{flex:none}
  .is-sticky .jr-step .jr-txt h2{font-size:1.45rem;margin:6px 0 6px}
  .is-sticky .jr-step .jr-txt p{font-size:.93rem;line-height:1.42}
  .is-sticky .jr-step .jr-brought{margin-top:8px;padding:9px 13px;font-size:.86rem}
  .is-sticky .jr-step .jr-brought li{font-size:.84rem}
  .is-sticky .jr-step .vlink{padding:8px 14px;font-size:.84rem;margin-top:8px}
}

.jr-fig picture{display:contents}
@media (max-width:899px){
  .is-sticky .jr-step .jr-fig,.is-sticky .jr-step .jr-fig.duo{height:26svh}
  .is-sticky .jr-fig>img,.is-sticky .jr-fig>picture>img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover;object-position:center}
  .is-sticky .jr-fig>.jr-imglink{width:100%;height:100%;max-height:none}
  .is-sticky .jr-fig>.jr-imglink img{width:100%;height:100%;max-height:none;object-fit:cover}
  .is-sticky .jr-fig.duo>img{width:auto;height:auto;max-width:calc(50% - 6px);max-height:100%;object-fit:contain}
}
