/* SKAY V35 — intermediate layout, hero title morph, radio safety */
:root{--v35-radio-safe:92px;--v35-ease:cubic-bezier(.16,1,.3,1)}

/* Hero: keep its composition fixed; animate only meaningful text/content. */
#home.chapter-entering .hero-copy,#home.chapter-leaving .hero-copy,
#home.chapter-entering .hero-bottom,#home.chapter-leaving .hero-bottom{
  animation:none!important;filter:none!important;opacity:1!important;
}
#home.chapter-entering .hero-copy h1{animation:v35HeroTitleIn 900ms var(--v35-ease) both!important}
#home.chapter-entering .hero-copy>p{animation:v35HeroCopyIn 780ms 90ms var(--v35-ease) both!important}
#home.chapter-entering .hero-actions{animation:v35HeroCopyIn 780ms 150ms var(--v35-ease) both!important}
#home.chapter-leaving .hero-copy h1{animation:v35HeroTitleOut 520ms var(--v35-ease) both!important}
#home.chapter-leaving .hero-copy>p,#home.chapter-leaving .hero-actions{animation:v35HeroCopyOut 430ms var(--v35-ease) both!important}
@keyframes v35HeroTitleIn{0%{opacity:.06;transform:translate3d(0,30px,0) scale(.91);filter:blur(22px) brightness(.82)}42%{opacity:.75;transform:translate3d(0,8px,0) scale(.978);filter:blur(6px)}100%{opacity:1;transform:none;filter:none}}
@keyframes v35HeroTitleOut{0%{opacity:1;transform:none;filter:none}100%{opacity:.05;transform:translate3d(0,-24px,0) scale(.91);filter:blur(20px) brightness(.84)}}
@keyframes v35HeroCopyIn{from{opacity:0;transform:translateY(18px);filter:blur(9px)}to{opacity:1;transform:none;filter:none}}
@keyframes v35HeroCopyOut{from{opacity:1;transform:none;filter:none}to{opacity:0;transform:translateY(-10px);filter:blur(7px)}}

/* On desktop-ish devices a repere owns exactly one viewport. */
@media (min-width:760px){
  #home,#vision,#craft,#tarifs,#contact{height:100svh!important;min-height:100svh!important;overflow:hidden!important}
  #contact{padding-bottom:var(--v35-radio-safe)!important}
}

/* TRUE intermediate mode: small laptop / tablet landscape / near-square window. */
@media (min-width:760px) and (max-width:1100px) and (min-aspect-ratio:4/5){
  :root{--v35-radio-safe:82px}
  .topbar{height:70px!important;padding:0 clamp(24px,3.4vw,38px)!important}
  .topbar nav{gap:clamp(18px,2.8vw,30px)!important;margin-left:20px!important}
  .topbar nav a{font-size:11px!important}
  .head-contact{padding:10px 16px!important;font-size:10px!important}

  /* Home — balanced rather than giant desktop compressed into a tablet. */
  #home .hero-orb{width:min(73vw,700px)!important;left:69%!important;top:43%!important}
  #home .hero-logo-layer{width:min(47vw,455px)!important;right:-2%!important;top:22%!important;opacity:.6!important}
  #home .hero-copy{left:6.2vw!important;right:auto!important;top:54%!important;transform:translateY(-48%)!important;width:min(49vw,470px)!important;max-width:49vw!important}
  #home .hero-copy h1{font-size:clamp(68px,8.6vw,88px)!important;line-height:.93!important;margin:18px 0 20px!important}
  #home .hero-copy>p{font-size:13px!important;line-height:1.55!important;max-width:390px!important}
  #home .hero-actions{margin-top:22px!important;gap:9px!important;flex-wrap:nowrap!important}
  #home .pill{font-size:10px!important;padding:13px 16px!important;white-space:nowrap}
  #home .hero-bottom{left:6.2vw!important;right:6.2vw!important;bottom:calc(var(--v35-radio-safe) + 14px)!important}
  #home .scroll-mark{font-size:7px!important}

  /* Vision */
  #vision .statement-inner{margin:clamp(92px,11svh,116px) 4vw clamp(64px,8svh,82px)!important;max-width:none!important}
  #vision .statement-title{font-size:clamp(54px,7.2vw,72px)!important;max-width:900px!important}
  #vision .statement-desc{font-size:13px!important;line-height:1.55!important;margin-top:28px!important;max-width:340px!important}

  /* Process: title + stage are deliberately one composed screen. */
  #craft .journey-intro{height:172px!important;padding:86px 4.2vw 10px!important}
  #craft .journey-intro-grid{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(250px,.6fr)!important;gap:28px!important;align-items:end!important;margin:0!important}
  #craft .journey-intro h2{font-size:clamp(52px,6.3vw,66px)!important;line-height:.92!important;margin:0!important}
  #craft .journey-intro-grid>p{display:block!important;font-size:11px!important;line-height:1.45!important;max-width:310px!important;margin:0!important}
  #craft .journey-scroll.simple-journey{padding:0 3.2vw calc(var(--v35-radio-safe) + 8px)!important;margin:0!important;height:auto!important}
  #craft .simple-steps{height:calc(100svh - 172px - var(--v35-radio-safe) - 10px)!important;min-height:410px!important;max-height:none!important;border-radius:24px!important}
  #craft .simple-step,#craft .simple-step:nth-child(even){
    width:calc(100% - 16px)!important;height:calc(100% - 16px)!important;
    grid-template-columns:minmax(230px,.78fr) minmax(360px,1.22fr)!important;grid-template-rows:1fr!important;
    padding:clamp(24px,3vw,34px)!important;gap:clamp(24px,4vw,48px)!important;border-radius:19px!important;
  }
  #craft .simple-step:nth-child(even) .simple-step-copy{order:initial!important}
  #craft .simple-step:nth-child(even) .simple-step-art{order:initial!important}
  #craft .simple-step-copy{align-self:center!important}
  #craft .simple-step-copy h3{font-size:clamp(38px,4.8vw,50px)!important;line-height:.95!important;margin:8px 0 12px!important}
  #craft .simple-step-copy p{display:block!important;font-size:11px!important;line-height:1.48!important;max-width:330px!important}
  #craft .simple-step-art{height:min(100%,390px)!important;min-height:260px!important;max-height:390px!important;align-self:center!important;border-radius:16px!important}

  /* Prices: two-column editorial composition that actually fits the viewport. */
  #tarifs.prices.section-pad{padding:82px 4.2vw calc(var(--v35-radio-safe) + 10px)!important}
  #tarifs .prices-header{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(230px,.5fr)!important;align-items:end!important;gap:28px!important;margin:0 0 18px!important;height:116px!important}
  #tarifs .prices-header h2{font-size:clamp(54px,6.5vw,68px)!important;line-height:.9!important;margin:0!important}
  #tarifs .prices-header p{display:block!important;font-size:11px!important;line-height:1.5!important;max-width:290px!important;margin:0 0 4px!important}
  #tarifs .price-layout{display:grid!important;grid-template-columns:180px minmax(0,1fr)!important;gap:24px!important;height:calc(100svh - 82px - 116px - 18px - var(--v35-radio-safe) - 10px)!important;min-height:460px!important;align-items:stretch!important}
  #tarifs .price-tabs{display:flex!important;flex-direction:column!important;overflow:visible!important;justify-content:center!important;gap:0!important;padding:0!important}
  #tarifs .tab{border:0!important;border-bottom:1px solid #c5c9cf!important;border-radius:0!important;padding:15px 6px!important;min-height:0!important;font-size:14px!important;gap:12px!important;background:none!important;white-space:nowrap}
  #tarifs .tab b{display:block!important;font-size:8px!important}.tab span{display:block!important}
  #tarifs .tab.active{padding-left:12px!important;background:rgba(255,255,255,.4)!important}
  #tarifs .price-panel{height:100%!important;min-height:0!important;max-height:none!important;display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(230px,.9fr)!important;grid-template-rows:minmax(0,1fr) auto!important;column-gap:22px!important;padding:20px 22px 0!important;border-radius:22px!important;overflow:hidden!important}
  #tarifs .panel-body{grid-column:1!important;grid-row:1!important;padding:8px 0 10px!important;overflow:hidden!important;min-width:0!important}
  #tarifs .panel-body h3{font-size:clamp(31px,4vw,40px)!important;margin:0 0 4px!important}
  #tarifs .panel-body>p{font-size:10px!important;line-height:1.35!important;margin:0!important}
  #tarifs .price-rows{margin-top:12px!important}
  #tarifs .price-row{padding:8px 0!important;font-size:10.5px!important;gap:10px!important}
  #tarifs .price-row strong{font-size:11px!important}
  #tarifs .price-foot{font-size:8px!important;line-height:1.35!important;margin:7px 0 0!important}
  #tarifs .service-art{grid-column:2!important;grid-row:1!important;height:auto!important;min-height:0!important;align-self:stretch!important;margin:4px 0 12px!important;border-radius:16px!important}
  #tarifs .service-art-object{inset:10% 7%!important}
  #tarifs .service-art-disc{width:clamp(74px,9vw,104px)!important}
  #tarifs .panel-cta{grid-column:1/-1!important;grid-row:2!important;margin:0 -22px!important;padding:16px 20px!important;font-size:11px!important}
  #tarifs .price-disclaimer{display:none!important}

  /* Contact */
  #contact .contact-content{margin:clamp(92px,11svh,118px) auto clamp(56px,7svh,74px)!important}
  #contact .contact-content h2{font-size:clamp(72px,9vw,104px)!important;margin:18px 0!important}
  #contact .contact-content p{font-size:13px!important;margin-bottom:30px!important}
  #contact footer{padding-bottom:calc(var(--v35-radio-safe) + 8px)!important}

  /* Radio is slightly smaller in the difficult middle range. */
  .radio{width:min(430px,calc(100% - 32px))!important;bottom:12px!important;padding:10px 14px!important;gap:14px!important;border-radius:16px!important}
  .radio-info{min-width:128px!important;gap:10px!important}.radio-info div span{font-size:9px!important}.radio-actions{gap:6px!important}.radio input{width:58px!important}.radio #volumeValue{font-size:8px!important}
}

/* Portrait tablets remain stacked, but gain proper breathing room and radio reserve. */
@media (min-width:700px) and (max-width:900px) and (max-aspect-ratio:4/5){
  :root{--v35-radio-safe:86px}
  #craft .simple-steps{height:calc(100svh - 69px - 176px - var(--v35-radio-safe))!important;min-height:430px!important}
  #tarifs .price-panel{height:calc(100svh - 69px - 195px - var(--v35-radio-safe))!important;min-height:470px!important}
  #tarifs.prices.section-pad{padding-bottom:calc(var(--v35-radio-safe) + 12px)!important}
  #contact footer{padding-bottom:calc(var(--v35-radio-safe) + 10px)!important}
}

/* Smart compact radio state: activated only when it would mask important UI. */
.radio.radio-protect{width:min(246px,calc(100% - 24px))!important;gap:8px!important;padding:9px 11px!important;transition:width .35s var(--v35-ease),left .35s var(--v35-ease),right .35s var(--v35-ease),transform .35s var(--v35-ease),bottom .35s var(--v35-ease)!important}
.radio.radio-protect .radio-info{min-width:0!important;gap:8px!important}
.radio.radio-protect .radio-info>div span{display:none!important}
.radio.radio-protect #muteToggle,.radio.radio-protect input,.radio.radio-protect #volumeValue{display:none!important}
.radio.radio-protect .radio-actions{gap:2px!important}
.radio.radio-protect.radio-dock-left{left:12px!important;right:auto!important;transform:none!important}
.radio.radio-protect.radio-dock-right{left:auto!important;right:12px!important;transform:none!important}
.radio.radio-protect.radio-dock-center{left:50%!important;right:auto!important;transform:translateX(-50%)!important}

@media(max-width:600px){
  /* Reserve a real safe area for the mobile player instead of covering CTAs. */
  :root{--v35-radio-safe:70px}
  #home .hero-bottom{bottom:calc(var(--v35-radio-safe) + 20px)!important}
  #contact footer{padding-bottom:calc(var(--v35-radio-safe) + 14px)!important}
  #tarifs.prices.section-pad{padding-bottom:calc(var(--v35-radio-safe) + 10px)!important}
  #craft .journey-scroll.simple-journey{padding-bottom:calc(var(--v35-radio-safe) + 8px)!important}
}


/* Defensive resting state: a completed/aborted transition can never leave a page title invisible. */
#vision:not(.chapter-entering):not(.chapter-leaving) .statement-title,
#craft:not(.chapter-entering):not(.chapter-leaving) .journey-intro h2,
#tarifs:not(.chapter-entering):not(.chapter-leaving) .prices-header h2,
#contact:not(.chapter-entering):not(.chapter-leaving) .contact-content h2{
  opacity:1!important;transform:none!important;filter:none!important;animation:none!important;
}
/* Hero wrapper itself never participates in the chapter transform. */
#home.chapter-entering .hero-copy,#home.chapter-leaving .hero-copy,
#home.chapter-entering .hero-bottom,#home.chapter-leaving .hero-bottom{animation:none!important;filter:none!important;opacity:1!important}
@media(min-width:1101px){#home.chapter-entering .hero-copy,#home.chapter-leaving .hero-copy{transform:translateY(-46%)!important}}
@media(max-width:750px){#home.chapter-entering .hero-copy,#home.chapter-leaving .hero-copy{transform:translateY(-4%)!important}}
/* V35 owns the hero text animation; disable the older wrapper reveal to prevent position drift. */
#home .hero-copy{animation:none!important}
