/* EVY Coaching — version web animée des ebooks (lecture en ligne).
   Se charge APRÈS evy-<slug>.css : transforme les pages A4 en sections fluides + motion. */
html.web{--ease:cubic-bezier(.2,.75,.15,1);background:var(--tint);scroll-behavior:smooth;scroll-padding-top:64px}
html.web body{background:var(--tint);overflow-x:hidden}
.web .hd,.web .ft{display:none!important}

/* ---------- barre de lecture ---------- */
.wbar{position:fixed;left:0;right:0;top:0;z-index:50;height:56px;display:flex;align-items:center;gap:14px;padding:0 18px;color:#fff;font-family:Inter,system-ui,sans-serif;transition:background .35s,color .35s,box-shadow .35s;background:linear-gradient(180deg,rgba(var(--nrgb),.55),rgba(var(--nrgb),0))}
.wbar.solid{background:rgba(255,255,255,.92);color:var(--ink);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);box-shadow:0 1px 0 var(--line)}
.wbar a{color:inherit}
.wbar .back{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14px;white-space:nowrap}
.wbar .back svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.wbar .lg{display:inline-flex;width:44px;fill:currentColor}
.wbar .lg svg{width:100%;height:auto}
.wbar .wsec{flex:1;min-width:0;text-align:center;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wbar .dl{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;background:#fff;color:var(--navy);font-weight:700;font-size:13px;white-space:nowrap;transition:background .3s,color .3s}
.wbar.solid .dl{background:var(--navy);color:#fff}
.wbar .dl svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2.2}
.wprog{position:absolute;left:0;right:0;bottom:-2px;height:3px;background:var(--blue);transform-origin:left center;transform:scaleX(0)}

/* ---------- pages → sections ---------- */
.web .page{width:auto;max-width:210mm;height:auto;overflow:visible;margin:0 auto 7mm;padding:14mm 15mm 15mm;border-radius:6mm;break-after:auto;page-break-after:auto;zoom:1.08;box-shadow:0 1px 0 rgba(11,20,48,.04),0 24px 60px -36px rgba(11,20,48,.38)}
.web .page .body{position:static;display:flex;flex-direction:column}
.web .page .push{margin-top:6mm}
.web .page>div.wabs{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important}
.web .tw{overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%;max-width:100%}
.web .body>*,.web .grid2>*,.web .grid3>*,.web .grid4>*,.web .sci>*,.web .page [style*="grid-template-columns"]>*{min-width:0}
.web .tbox .tw,.web .tw>table{min-width:0}
.web a[href^="http"]{text-decoration:underline;text-decoration-color:rgba(127,127,127,.35);text-underline-offset:2px}
.web .cta a.btn{text-decoration:none}
@media (hover:hover){
  .web .card,.web .rule,.web .myth,.web .rec,.web .err,.web .meal,.web .boxm,.web .tbox{transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
  .web .card:hover,.web .myth:hover,.web .rec:hover,.web .err:hover,.web .meal:hover,.web .boxm:hover{transform:translateY(-3px);box-shadow:0 16px 34px -22px rgba(11,20,48,.45)}
}

/* ---------- couverture → héro plein écran ---------- */
.web .cover{zoom:1;max-width:none;width:100%;min-height:100vh;min-height:100svh;margin:0;border-radius:0;padding:0 0 28px;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:none;overflow:hidden}
.web .cover .ph{height:68%;bottom:auto;background-position:50% 35%!important;animation:kb 3.2s var(--ease) both;will-change:transform}
.web .cover .shade{background:linear-gradient(180deg,rgba(var(--nrgb),.5) 0,rgba(var(--nrgb),0) 14%,rgba(var(--nrgb),0) 34%,rgba(var(--nrgb),.82) 56%,rgb(var(--nrgb)) 68%)}
@media (min-width:1000px){
  .web .cover{padding-bottom:44px}
  .web .cover .ph{left:36%;height:100%;background-position:50% 42%!important}
  .web .cover .shade{background:linear-gradient(90deg,rgb(var(--nrgb)) 0,rgb(var(--nrgb)) 34%,rgba(var(--nrgb),.55) 48%,rgba(var(--nrgb),0) 66%),linear-gradient(0deg,rgba(var(--nrgb),.9) 0,rgba(var(--nrgb),0) 34%),linear-gradient(180deg,rgba(var(--nrgb),.55) 0,rgba(var(--nrgb),0) 14%)}
  .web .cover>div.wct>*{max-width:720px}
  .web .cover h1.t,.web .cover h1.t+div{font-size:clamp(56px,6.6vw,104px)!important}
}
/* sommaire */
.web .wtoc{padding:12mm 15mm 10mm}
.web .wtoc .toc{margin-top:2mm}
.web .wtoc .toc div{font-size:10pt;cursor:pointer;transition:padding-left .35s var(--ease),color .25s}
@media (hover:hover){.web .wtoc .toc div:hover{padding-left:2mm;color:#fff}.web .wtoc .toc div:hover span:last-child{color:var(--blueL)}}
.web .cover>div.wtb{position:absolute!important;left:20px!important;right:20px!important;top:66px!important;display:none!important}
.web .cover>div.wct,.web .cover>div.wca{width:100%;max-width:1240px;margin:0 auto;padding:0 clamp(20px,5vw,64px)}
.web .cover>div.wca{margin-top:28px}
.web .cover h1.t{font-size:clamp(36px,9.6vw,104px)!important;line-height:.92!important}
.web .cover h1.t+div{font-size:clamp(36px,9.6vw,104px)!important}
.web .cover .k{font-size:12px}
.web .cover .scroll{display:flex;align-items:center;gap:10px;margin-top:26px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.web .cover .scroll i{width:22px;height:34px;border:1.5px solid rgba(255,255,255,.45);border-radius:12px;position:relative}
.web .cover .scroll i:after{content:"";position:absolute;left:50%;top:7px;width:3px;height:7px;margin-left:-1.5px;border-radius:2px;background:#fff;animation:wheel 1.8s ease-in-out infinite}

/* ---------- page finale (CTA) ---------- */
.web .cta{padding:16mm 15mm 12mm;overflow:hidden}
.web .src a{overflow-wrap:anywhere}
.web .cta>div.wcc{margin-top:12mm}
.web .cta>div.wcd{margin-top:14mm}
.web .cta .glow.a{animation:breathe 7s ease-in-out infinite alternate}
.web .cta .ring{animation:breathe 9s ease-in-out infinite alternate-reverse}

/* ---------- cases à cocher (interactives) ---------- */
.web .todo,.web .cb{cursor:pointer;-webkit-tap-highlight-color:transparent}
.web .todo .box,.web .cb{position:relative;transition:background .3s,border-color .3s}
.web .ok .box,.web .cb.ok{background:var(--blue);border-color:var(--blue)}
.web .ok .box:after,.web .cb.ok:after{content:"";position:absolute;left:30%;top:12%;width:28%;height:52%;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);animation:pop .35s var(--ease)}
.web .todo.ok{box-shadow:inset 0 0 0 1.5px var(--blue)}

/* ---------- motion ---------- */
html.web.js:not(.rm) .rv{opacity:0;transform:translateY(28px);transition:opacity .8s var(--ease) var(--d,0ms),transform 1s var(--ease) var(--d,0ms)}
html.web.js:not(.rm) .rv.in{opacity:1;transform:none}
html.web.js:not(.rm) .rv2{opacity:0;transform:translateY(14px);transition:opacity .6s var(--ease) calc(var(--d,0ms) + var(--d2,0ms)),transform .8s var(--ease) calc(var(--d,0ms) + var(--d2,0ms))}
html.web.js:not(.rm) .in .rv2,html.web.js:not(.rm) .rv2.in{opacity:1;transform:none}
html.web.js:not(.rm) .gx{transform:scaleX(0);transform-origin:left center;transition:transform 1.2s var(--ease) calc(var(--d,0ms) + var(--d2,0ms) + 180ms)}
html.web.js:not(.rm) .in .gx{transform:none}
html.web.js:not(.rm) .gw{clip-path:inset(0 100% 0 0);transition:clip-path 1.1s var(--ease) calc(var(--d,0ms) + var(--d2,0ms) + 180ms)}
html.web.js:not(.rm) .in .gw{clip-path:inset(0 0 0 0)}
html.web.js:not(.rm) .pz{opacity:0;transform:scale(.25) rotate(-50deg);transform-box:view-box;transform-origin:50% 50%;transition:opacity .5s ease calc(var(--d,0ms) + var(--d2,0ms) + 150ms),transform 1.1s var(--ease) calc(var(--d,0ms) + var(--d2,0ms) + 150ms)}
html.web.js:not(.rm) .in .pz{opacity:1;transform:none}
html.web.js:not(.rm) .step .tt:after{content:"";display:block;width:16mm;height:1mm;border-radius:1mm;background:var(--blue);margin-top:3mm;transform:scaleX(0);transform-origin:left;transition:transform 1s var(--ease) .35s}
html.web.js:not(.rm) .step.in .tt:after{transform:none}
html.web.js:not(.rm) .in .vf{animation:pop .55s var(--ease) both calc(var(--d,0ms) + var(--d2,0ms) + 350ms)}
html.web.js:not(.rm) .cover .k,html.web.js:not(.rm) .cover h1.t,html.web.js:not(.rm) .cover h1.t+div{animation:up 1.1s var(--ease) both}
html.web.js:not(.rm) .cover .k{animation-delay:.25s}
html.web.js:not(.rm) .cover h1.t{animation-delay:.38s}
html.web.js:not(.rm) .cover h1.t+div{animation-delay:.52s}
html.web.js:not(.rm) .cover>div.wca,html.web.js:not(.rm) .cover .scroll{animation:fade 1s ease both 1.1s}
@keyframes kb{from{transform:scale(1.16)}to{transform:scale(1)}}
@keyframes up{from{opacity:0;transform:translateY(34px)}to{opacity:1;transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes pop{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.12);opacity:1}100%{transform:scale(1)}}
@keyframes breathe{from{transform:scale(.92);opacity:.75}to{transform:scale(1.08);opacity:1}}
@keyframes wheel{0%{transform:translateY(0);opacity:1}70%{transform:translateY(10px);opacity:0}100%{opacity:0}}
.web .ok .box:after,.web .cb.ok:after{animation-name:none}
@media (prefers-reduced-motion:reduce){html.web *{animation:none!important;transition:none!important}}

/* ---------- mobile ---------- */
@media (max-width:760px){
  .wbar{height:52px;padding:0 12px;gap:10px}
  .wbar .back span,.wbar .lg{display:none}
  .wbar .dl{height:34px;padding:0 12px}
  .web .page:not(.cover){zoom:1.14;margin:0 0 2.2mm;border-radius:0;padding:7mm 5.2mm 8mm;box-shadow:none}
    .web .grid2,.web .grid3,.web .sci,.web .f2232,.web .shop,.web .lbl{grid-template-columns:1fr!important}
  .web .grid4{grid-template-columns:1fr 1fr!important}
  .web .page [style*="grid-template-columns"]{grid-template-columns:1fr!important}
  .web .grid2>*,.web .grid3>*,.web .sci>*,.web .f2232>*,.web .shop>*,.web .lbl>*,.web .page [style*="grid-template-columns"]>*{grid-column:auto!important}
  .web .plate{justify-self:center;margin:0 auto}
  .web .step .n{font-size:44pt}
  .web h1.t{font-size:23pt}
  .web .v200 .row{grid-template-columns:38% 1fr auto}
  .web .mps .row{grid-template-columns:32% 1fr auto}
  .web .vol{grid-template-columns:repeat(3,1fr)}
  .web .rir{grid-template-columns:repeat(2,1fr)}
  .web .rir>div:first-child{grid-column:1 / -1}
  .web .bar{height:auto;min-height:10mm}
  .web .bar>div{white-space:normal;line-height:1.15;padding:1.6mm 2mm;font-size:8pt}
  .web .toc{grid-template-columns:1fr!important}
  .web .src,.web .src[style]{columns:1!important;column-count:1!important}
  .web .src li{font-size:8pt}
  .web .cta{padding:10mm 6mm 8mm}
  .web .cta h1.t{font-size:28pt!important}
}
