/* La technologie HIFU (2026-11-01) : scène en coupe pilotée par le défilement,
   sur le modèle de cryo-science.css (page Cryo). La section se fige à l'écran
   pendant qu'on fait défiler ; quatre chapitres (ultrasons, chaleur,
   rétraction, collagène) se succèdent. Les effets dépendent des variables
   --u, --k, --r, --n (0 à 1) et --bv (faisceau visible) posées par
   hifu-science.js. Sans JavaScript : les quatre chapitres l'un sous l'autre,
   schéma fixe. */
.cryo-tech{background:var(--navy);color:var(--cream);padding-top:112px;position:relative}
.cryo-tech-head{max-width:1280px;margin-bottom:24px}
.cryo-tech-eyebrow{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:18px}
.cryo-tech-head h2{max-width:900px}
.cryo-tech-head h2 em{color:var(--gold)}
.cryo-tech-head>p:last-child{max-width:560px;margin-top:24px;font-size:15px;color:var(--cryo-light-muted)}

.cryo-tech-sticky{padding-block:40px 80px}
.cryo-tech-layout{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:clamp(32px,5vw,80px);align-items:center}
.cryo-tech-rail{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;list-style:none;margin:0 0 34px;padding:0;position:relative}
.cryo-tech-rail::before,.cryo-tech-rail::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:color-mix(in srgb,var(--cream) 14%,transparent)}
.cryo-tech-rail::after{right:auto;width:calc(var(--p,0)*100%);background:linear-gradient(90deg,#7cc8ff,#ffa45c 38%,var(--gold) 66%,#7fe0c8)}
.cryo-tech-rail button{display:flex;flex-direction:column;gap:2px;width:100%;padding:0 0 14px;text-align:left;font-size:12px;letter-spacing:.04em;color:color-mix(in srgb,var(--cream) 55%,transparent);transition:color .4s var(--vb-ease)}
.cryo-tech-rail button span{font-family:var(--font-display);font-size:20px;letter-spacing:0;color:inherit}
.cryo-tech-rail button[aria-current="step"]{color:var(--cream)}
.cryo-tech-rail button[aria-current="step"] span{color:var(--gold)}
.cryo-chapter{--tone:#7cc8ff;padding-bottom:28px}
.cryo-chapter[data-chapter="1"]{--tone:#ffa45c}
.cryo-chapter[data-chapter="2"]{--tone:var(--gold)}
.cryo-chapter[data-chapter="3"]{--tone:#7fe0c8}
.cryo-chapter-kicker{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--tone);margin-bottom:14px}
.cryo-chapter h3{font-size:clamp(34px,3.4vw,48px);line-height:1.04;margin-bottom:18px}
.cryo-chapter>p:not([class]){font-size:15px;line-height:1.75;color:var(--cryo-light-muted);max-width:470px}
.cryo-chapter-chip{display:inline-flex;align-items:center;gap:8px;margin-top:20px;padding:7px 14px;border:1px solid color-mix(in srgb,var(--tone) 55%,transparent);border-radius:40px;font-size:12px;letter-spacing:.06em;color:var(--tone)}
.cryo-chapter-chip::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--tone);box-shadow:0 0 12px var(--tone)}

.cryo-stage{position:relative;margin:0;--u:0;--k:0;--r:0;--n:0;--bv:0;--in:1;--d:0;--glow:transparent}
.cryo-stage[data-mode="wave"]{--glow:rgba(124,200,255,.35)}
.cryo-stage[data-mode="heat"]{--glow:rgba(255,138,69,.32)}
.cryo-stage[data-mode="tight"]{--glow:rgba(201,169,110,.32)}
.cryo-stage[data-mode="new"]{--glow:rgba(127,224,200,.26)}
.cryo-stage-frame{position:relative;border-radius:16px;overflow:hidden;box-shadow:0 50px 100px -50px rgba(0,0,0,.85),0 0 90px -20px var(--glow),0 0 0 1px color-mix(in srgb,var(--gold) 18%,transparent);transition:box-shadow .8s var(--vb-ease)}
.cryo-scene{display:block;width:100%;height:auto}
.cryo-stage>figcaption{margin-top:12px;color:var(--cryo-light-muted)}
.cryo-stage .cryo-motion-toggle{position:absolute;right:14px;top:14px;display:flex;align-items:center;gap:8px;min-height:36px;padding:0 14px;border-radius:30px;background:rgba(7,17,28,.55);backdrop-filter:blur(8px);font-size:11px;color:var(--cream);border:1px solid color-mix(in srgb,var(--cream) 18%,transparent)}
.cryo-stage .cryo-motion-toggle svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}

/* Tableau de bord, sous la scène : profondeur ciblée, température au point
   focal (la surface reste à 37 °C), semaines */
.cryo-hud{display:grid;grid-template-columns:1.2fr 1.1fr 1fr;gap:10px;margin-top:12px}
.cryo-hud>div{padding:12px 16px 14px;border-radius:12px;background:color-mix(in srgb,var(--cream) 5%,transparent);border:1px solid color-mix(in srgb,var(--cream) 10%,transparent);opacity:.4;transition:opacity .5s var(--vb-ease),border-color .5s var(--vb-ease)}
.cryo-hud-label{display:block;font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:color-mix(in srgb,var(--cream) 62%,transparent);margin-bottom:6px}
.cryo-hud-value{display:block;font-family:var(--font-display);font-weight:400;font-size:36px;line-height:1;font-variant-numeric:tabular-nums;color:var(--cream)}
.hifu-hud-temp .cryo-hud-value{color:var(--tcol,var(--cream));text-shadow:0 0 24px var(--tcol,transparent)}
.hifu-hud-depth .cryo-hud-value{font-size:30px}
.cryo-hud-sub{display:block;margin-top:8px;font-size:10px;letter-spacing:.06em;color:color-mix(in srgb,var(--cream) 62%,transparent)}
.cryo-hud-bar{display:block;height:3px;margin-top:10px;border-radius:3px;background:color-mix(in srgb,var(--cream) 14%,transparent);overflow:hidden}
.hifu-hud-depth .cryo-hud-bar i{display:block;height:100%;width:calc(var(--d)*100%);background:linear-gradient(90deg,#7cc8ff,#ffb46a);transition:width .5s var(--vb-ease)}
.cryo-hud-weeks .cryo-hud-bar i{display:block;height:100%;width:calc(var(--n)*100%);background:#7fe0c8;box-shadow:0 0 10px #7fe0c8}
.cryo-stage[data-mode="wave"] .hifu-hud-depth,.cryo-stage[data-mode="heat"] .hifu-hud-depth,.cryo-stage[data-mode="heat"] .hifu-hud-temp,.cryo-stage[data-mode="tight"] .hifu-hud-temp,.cryo-stage[data-mode="new"] .cryo-hud-weeks{opacity:1;border-color:color-mix(in srgb,var(--cream) 22%,transparent)}

/* ── Scène ─────────────────────────────────────────────────────────── */
.cs-legend circle{fill:var(--gold)}
.cs-legend text{fill:rgba(248,245,239,.82);font-family:var(--font-sans);font-size:16px;font-weight:500;letter-spacing:1.8px;text-transform:uppercase;paint-order:stroke;stroke:rgba(9,19,32,.55);stroke-width:3px;stroke-linejoin:round}
.cs-legend-new{opacity:calc(.15 + var(--n)*.85)}
.cs-legend-new circle{fill:#7fe0c8}
/* règle des profondeurs, à droite : la profondeur en cours s'allume */
.hs-ruler line{stroke:rgba(248,245,239,.45);stroke-width:1.5}
.hs-ruler text{fill:rgba(248,245,239,.7);font-family:var(--font-sans);font-size:17px;font-weight:500;letter-spacing:.6px;paint-order:stroke;stroke:rgba(9,19,32,.6);stroke-width:3px;stroke-linejoin:round;transition:fill .4s ease}
.hs-ruler .hs-tick{transition:fill .4s ease,stroke .4s ease}
.cryo-stage[data-depth="0"] .hs-ruler [data-d="0"],.cryo-stage[data-depth="1"] .hs-ruler [data-d="1"],.cryo-stage[data-depth="2"] .hs-ruler [data-d="2"],.cryo-stage[data-depth="all"] .hs-ruler [data-d]{fill:#ffb46a}
/* pièce à main : descend sur la peau à l'entrée dans la section */
.hs-pad{transform:translateY(calc((1 - var(--in)) * -90px));opacity:var(--in)}
.hs-face{fill:#c9d0d7;transition:fill .6s ease}
.cryo-stage[data-mode="wave"] .hs-face,.cryo-stage[data-mode="heat"] .hs-face{fill:#a8e0ff;filter:url(#hs-glow)}
.hs-gel{opacity:calc(var(--in)*.75)}
/* faisceau d'ultrasons : cône, rayons qui s'écoulent, anneaux au point focal */
.hs-beam{opacity:var(--bv)}
.hs-rays path{stroke:#dff3ff;stroke-width:2;stroke-opacity:.9;stroke-dasharray:6 10;animation:hs-flow 1.1s linear infinite}
.hs-rings circle{stroke:#a8e0ff;stroke-width:2.5;transform-box:fill-box;transform-origin:center;animation:hs-ring 2.2s cubic-bezier(.2,.7,.3,1) infinite;opacity:0}
.hs-rings circle:nth-child(2){animation-delay:-.73s}.hs-rings circle:nth-child(3){animation-delay:-1.46s}
.cryo-stage[data-mode="heat"] .hs-rings circle{stroke:#ffb46a}
.hs-focus{opacity:calc(.35 + var(--k)*.65);transform-box:fill-box;transform-origin:center;animation:hs-pulse 1.4s ease-in-out infinite}
/* points de coagulation : chacun s'allume à son tour (--pv), puis s'estompe */
.hs-points g{opacity:var(--pv,0)}
.hs-points .halo{fill:url(#hs-point);filter:url(#hs-glow);transform-box:fill-box;transform-origin:center}
.hs-points .core{fill:#fff}
.cryo-stage[data-mode="heat"] .hs-points .halo{animation:hs-pulse 1.2s ease-in-out infinite}
/* fibres : existantes (derme, SMAS), neuves (collagène), fibroblastes */
.hs-fibers path{stroke:url(#hs-fiber);stroke-width:2.2;stroke-opacity:.85;transition:stroke-opacity .5s ease}
.hs-smasfibers path{stroke:#9b7a3c;stroke-width:3;stroke-opacity:.8}
.cryo-stage[data-mode="tight"] .hs-fibers path,.cryo-stage[data-mode="tight"] .hs-smasfibers path{filter:url(#hs-glow);stroke-opacity:1}
.hs-newfibers path{stroke:#7fe0c8;stroke-width:2.4;filter:url(#hs-glow);opacity:0}
.hs-cells{opacity:var(--n)}
.hs-cells circle{fill:#c8fff0;filter:url(#hs-glow)}
.hs-mfibers path{fill:url(#hs-fiber);stroke:#5a1b1d;stroke-opacity:.5;stroke-width:1}
@keyframes hs-flow{to{stroke-dashoffset:-32}}
@keyframes hs-ring{0%{transform:scale(.2);opacity:0}15%{opacity:.9}100%{transform:scale(1.6);opacity:0}}
@keyframes hs-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.25)}}
.cryo-stage.is-paused *{animation-play-state:paused!important}

.cryo-tech-hint{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--cryo-light-muted);opacity:calc(1 - var(--p,0)*12);pointer-events:none}
.cryo-tech-hint span{width:1px;height:28px;background:linear-gradient(var(--gold),transparent);animation:cs-hint 1.8s var(--vb-ease) infinite}
@keyframes cs-hint{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}}

/* ── Mode défilement (JavaScript prêt) ─────────────────────────────── */
.cryo-tech.is-ready .cryo-tech-scroll{height:460vh;position:relative}
.cryo-tech.is-ready .cryo-tech-sticky{position:sticky;top:0;height:100vh;height:100svh;display:flex;flex-direction:column;justify-content:center;padding-block:24px}
.cryo-tech.is-ready .cryo-tech-chapters{display:grid}
.cryo-tech.is-ready .cryo-chapter{grid-area:1/1;opacity:0;transform:translate3d(0,26px,0);filter:blur(6px);transition:opacity .7s var(--vb-ease),transform .8s var(--vb-ease),filter .7s var(--vb-ease);pointer-events:none}
.cryo-tech.is-ready .cryo-chapter.is-active{opacity:1;transform:none;filter:none;pointer-events:auto}
.cryo-tech:not(.is-ready) .cryo-tech-rail,.cryo-tech:not(.is-ready) .cryo-tech-hint,.cryo-tech:not(.is-ready) .cryo-motion-toggle,.cryo-tech:not(.is-ready) .cryo-hud{display:none}

/* ── Section « La précision du soin » : photo et étapes ────────────── */
.cryo-pads-copy .cryo-tech-eyebrow{color:var(--gold-hover)}
.cryo-pads-copy h3{font-size:clamp(44px,5vw,72px);line-height:.98;margin-bottom:24px}
.cryo-pads-copy h3 em{color:color-mix(in srgb,var(--gold-hover) 85%,var(--navy))}
.cryo-pads-copy>p:not([class]){font-size:15px;color:var(--cryo-muted);max-width:520px;margin-bottom:26px}
.cryo-pads-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:22px 28px}
.cryo-pads-steps li{display:flex;gap:14px;border-top:1px solid color-mix(in srgb,var(--navy) 15%,transparent);padding-top:16px}
.cryo-pads-steps span{font-family:var(--font-display);font-size:22px;line-height:1;color:var(--gold-hover)}
.cryo-pads-steps strong{display:block;font-weight:500;font-size:14px;margin-bottom:4px}
.cryo-pads-steps p{font-size:13px;color:var(--cryo-muted);line-height:1.6}

@media (max-width:900px){
  .cryo-tech{padding-top:80px}
  .cryo-tech-layout{grid-template-columns:1fr;gap:18px}
  .cryo-tech.is-ready .cryo-tech-layout{display:flex;flex-direction:column-reverse}
  .cryo-tech-rail{margin-bottom:16px}
  .cryo-tech-rail button{font-size:10px;padding-bottom:10px}
  .cryo-tech-rail button span{font-size:16px}
  .cryo-chapter h3{font-size:clamp(26px,7vw,34px);margin-bottom:10px}
  .cryo-chapter>p:not([class]){font-size:13.5px;line-height:1.6}
  .cryo-chapter-chip{margin-top:12px;font-size:11px;padding:5px 12px}
  .cryo-hud{grid-template-columns:1.3fr 1.1fr 1fr;gap:6px;margin-top:8px}
  .cryo-hud>div{padding:7px 9px 8px;border-radius:9px}
  .cryo-hud-label{font-size:7px;letter-spacing:.1em;margin-bottom:3px}
  .cryo-hud-value,.hifu-hud-depth .cryo-hud-value{font-size:20px}
  .cryo-hud-sub{display:none}
  .cryo-hud-bar{margin-top:6px}
  .cryo-stage .cryo-motion-toggle{top:auto;bottom:10px;right:10px;min-height:30px;font-size:10px}
  .cryo-stage>figcaption{display:none}
  .cs-legend text{font-size:26px;stroke-width:4px}
  .hs-ruler text{font-size:24px;stroke-width:4px}
  .cryo-pads-steps{grid-template-columns:1fr}
}
@media (max-width:900px) and (max-height:700px){.cryo-chapter>p:not([class]){font-size:12.5px}.cryo-chapter h3{font-size:24px}.cryo-chapter-chip{display:none}}
@media (prefers-reduced-motion:reduce){
  .cryo-stage *{animation:none!important}
  .cryo-tech.is-ready .cryo-chapter{transition-duration:.01ms;filter:none;transform:none}
  .hs-pad{transform:none}
}
