/* MobiTrack — Terrasses : « Une terrasse prend forme » (V409) */
#teAssembly{position:relative;max-width:none;margin:0;padding:44px 0 0;color:#14364c;scroll-margin-top:110px;} /* neutralise « section{padding:5rem 2rem} » du site */
#teAssembly::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:var(--mt-rule,#d0dce8);box-shadow:0 0 0 100vmax var(--mt-rule,#d0dce8);clip-path:inset(0 -100vmax);pointer-events:none;opacity:.55;}
#page-equipements>section.te-shell{padding-bottom:40px!important;}
#page-equipements .te-shell>.te-brands,
#page-equipements .te-shell>#catClairval,
#page-equipements .te-shell>#catBiscabois{margin-bottom:40px!important;}
@media(max-width:760px){
  #page-equipements .te-shell>.te-brands,
  #page-equipements .te-shell>#catClairval,
  #page-equipements .te-shell>#catBiscabois{margin-bottom:32px!important;}
}

/* Carte : la scène 3D, puis la barre des étapes */
#teAssembly .ta-film{background:#fff;border:1px solid var(--ui-line,#dce5ee);border-radius:var(--ui-radius,10px);box-shadow:var(--ui-shadow,0 8px 24px rgba(22,58,84,.07));overflow:hidden;}
#teAssembly .ta-stage{position:relative;height:clamp(440px,44vw,560px);overflow:hidden;background:radial-gradient(120% 85% at 55% 30%,#ffffff 0%,#f4f7fb 52%,#e9eff6 100%);}
#teAssembly .ta-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:pointer;touch-action:pan-y;-webkit-tap-highlight-color:transparent;}
#teAssembly .ta-stage.is-dragging .ta-canvas{cursor:grabbing;}
#teAssembly .ta-notes,#teAssembly .ta-captions{position:absolute;inset:0;pointer-events:none;}

/* Repères posés sur les pièces */
#teAssembly .ta-label{position:absolute;left:0;top:0;padding:6px 10px;border:1px solid var(--ui-line,#dce5ee);border-radius:6px;background:#fff;
  box-shadow:0 6px 16px rgba(22,58,84,.09);font:600 12px/1.25 var(--font-body);color:#163a54;white-space:nowrap;opacity:0;will-change:transform,opacity;}
#teAssembly .ta-hint{position:absolute;left:50%;bottom:16px;margin:0;padding:7px 12px;transform:translateX(-50%);border-radius:999px;background:rgba(255,255,255,.88);box-shadow:0 4px 14px rgba(22,58,84,.08);font:600 12px/1.3 var(--font-body);color:#3d5a74;white-space:nowrap;opacity:0;transition:opacity .4s ease;pointer-events:none;}
#teAssembly .ta-hint{display:none;}
#teAssembly .ta-bar-hint{flex:1;min-width:0;margin:0;text-align:right;font:600 12px/1.3 var(--font-body);color:#4f677e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .4s ease;}
#teAssembly.is-hinting .ta-hint,#teAssembly.is-hinting .ta-bar-hint{opacity:1;transition-delay:2.8s;}
/* Une fois la première étape montée, le bouton invite à continuer */
#teAssembly .ta-next.is-calling{animation:ta-call 1.7s ease-out 3;}
@keyframes ta-call{0%{box-shadow:0 0 0 0 rgba(49,94,210,.5);}70%{box-shadow:0 0 0 12px rgba(49,94,210,0);}100%{box-shadow:0 0 0 0 rgba(49,94,210,0);}}

/* Texte de l'étape : il change de place à chaque étape, à l'écart de la maquette */
#teAssembly .ta-caption{position:absolute;z-index:2;width:min(360px,34%);}
#teAssembly .ta-caption::before{content:'';position:absolute;z-index:-1;inset:-46px -64px -40px -46px;pointer-events:none;
  background:radial-gradient(closest-side,rgba(255,255,255,.95),rgba(255,255,255,.75) 58%,rgba(255,255,255,0));
  animation:ta-fade .5s ease var(--d,0ms) both;}
@keyframes ta-fade{from{opacity:0;}to{opacity:1;}}
#teAssembly .ta-phase{display:block;margin-bottom:10px;font:650 12px/1.4 var(--font-body);color:#6669bf;}
#teAssembly .ta-title{margin:0 0 12px;font:700 clamp(23px,2.2vw,28px)/1.15 var(--font-head);letter-spacing:-.6px;color:#183550;}
#teAssembly .ta-title span{display:inline-block;}
#teAssembly .ta-text{margin:0;font:400 14px/1.75 var(--font-body);color:#536c82;}
#teAssembly .ta-caption .ta-phase{animation:ta-rise .5s var(--tx-reveal-ease,cubic-bezier(.22,1,.36,1)) var(--d,0ms) both;}
#teAssembly .ta-caption .ta-title span{animation:ta-word .6s var(--tx-reveal-ease,cubic-bezier(.22,1,.36,1)) both;animation-delay:calc(var(--d,0ms) + 90ms + var(--i,0) * 55ms);}
#teAssembly .ta-caption .ta-text{animation:ta-rise .65s var(--tx-reveal-ease,cubic-bezier(.22,1,.36,1)) calc(var(--d,0ms) + 320ms) both;}
#teAssembly .ta-caption.is-out{opacity:0;transform:translateY(-8px);transition:opacity .3s ease,transform .3s ease;}
@keyframes ta-word{from{opacity:0;transform:translateY(.55em);}to{opacity:1;transform:none;}}
@keyframes ta-rise{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}
@media (min-width:761px){
  #teAssembly .ta-caption[data-d="tl"]{top:32px;left:36px;}
  #teAssembly .ta-caption[data-d="tr"]{top:32px;right:36px;}
  #teAssembly .ta-caption[data-d="bl"]{bottom:32px;left:36px;}
  #teAssembly .ta-caption[data-d="br"]{bottom:32px;right:36px;}
}

/* Barre : numéros d'étape, précédent / suivant */
#teAssembly .ta-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px 12px 14px;border-top:1px solid var(--ui-line,#dce5ee);background:#fff;}
#teAssembly .ta-steps{display:flex;align-items:center;gap:4px;min-width:0;margin:0;padding:0;list-style:none;}
#teAssembly .ta-steps li{margin:0;padding:0;}
#teAssembly .ta-step{display:flex;align-items:center;gap:9px;min-height:44px;padding:0 6px;border:0;border-radius:999px;background:none;color:#6c8295;font:650 12px/1.2 var(--font-body);cursor:pointer;transition:background .25s,color .25s;}
#teAssembly .ta-step b{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid #d9e3ed;border-radius:50%;background:#fff;font:650 12px/1 var(--font-body);color:#6c8295;transition:background .25s,border-color .25s,color .25s;}
#teAssembly .ta-step span{display:none;white-space:nowrap;}
#teAssembly .ta-step:hover b{border-color:#9db4ea;color:#2b4ec2;}
#teAssembly .ta-step.is-done b{border-color:#9db4ea;color:#2b4ec2;}
#teAssembly .ta-step[aria-current="step"]{padding-right:14px;background:#eef3fc;color:#183550;}
#teAssembly .ta-step[aria-current="step"] b{background:var(--ui-blue,#315ed2);border-color:var(--ui-blue,#315ed2);color:#fff;}
#teAssembly .ta-step[aria-current="step"] span{display:inline;}
#teAssembly .ta-nav{display:flex;align-items:center;gap:10px;flex:none;}
#teAssembly .ta-prev{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--ui-line,#dce5ee);border-radius:50%;background:#fff;color:#183550;cursor:pointer;}
#teAssembly .ta-prev:hover{border-color:#b9cde1;background:#f6f9fc;}
#teAssembly .ta-prev:disabled{opacity:.35;cursor:default;}
#teAssembly .ta-next{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 16px 0 18px;border:1px solid transparent;border-radius:8px;background:var(--ui-blue,#315ed2);color:#fff;font:650 13px/1.2 var(--font-body);cursor:pointer;box-shadow:0 3px 10px #315ed219;transition:background .18s,box-shadow .18s;}
#teAssembly .ta-next:hover{background:#244ebc;box-shadow:0 5px 14px #315ed226;}
#teAssembly .ta-prev svg,#teAssembly .ta-next svg{display:block;width:16px;height:16px;}
#teAssembly .ta-next-icon{display:block;}
#teAssembly .ta-note{margin:14px 2px 0;max-width:88ch;font:400 11.5px/1.7 var(--font-body);color:#718494;}

@media (max-width:760px){
  #teAssembly{margin-bottom:0;padding:34px 0 0;}
  #page-equipements>section.te-shell{padding-bottom:28px!important;}
  #teAssembly .ta-stage{height:clamp(480px,130vw,560px);}
  #teAssembly .ta-hint{display:block;bottom:12px;font-size:11.5px;}
  #teAssembly .ta-bar-hint{display:none;}
  #teAssembly .ta-caption{left:14px;right:14px;width:auto;}
  #teAssembly .ta-caption[data-m="top"]{top:16px;}
  #teAssembly .ta-caption[data-m="bottom"]{bottom:16px;}
  #teAssembly .ta-caption::before{inset:-16px -14px;background:none;}
  #teAssembly .ta-caption[data-m="top"]::before{background:linear-gradient(to bottom,rgba(250,252,253,.97) 62%,rgba(250,252,253,0));bottom:-36px;}
  #teAssembly .ta-caption[data-m="bottom"]::before{background:linear-gradient(to top,rgba(250,252,253,.97) 62%,rgba(250,252,253,0));top:-36px;}
  #teAssembly .ta-phase{margin-bottom:6px;}
  #teAssembly .ta-title{font-size:21px;margin-bottom:8px;}
  #teAssembly .ta-text{font-size:13.5px;line-height:1.65;}
  #teAssembly .ta-bar{gap:6px;padding:10px 10px 10px 6px;}
  #teAssembly .ta-steps{gap:0;}
  #teAssembly .ta-step{padding:0 1px;}
  #teAssembly .ta-step[aria-current="step"]{padding-right:2px;background:none;}
  #teAssembly .ta-step span,#teAssembly .ta-step[aria-current="step"] span{display:none;}
  #teAssembly .ta-step b{width:27px;height:27px;font-size:11.5px;}
  #teAssembly .ta-nav{gap:6px;}
  #teAssembly .ta-prev{width:38px;height:38px;}
  #teAssembly .ta-next{gap:6px;min-height:42px;padding:0 10px 0 12px;}
  #teAssembly .ta-label{padding:5px 8px;font-size:11px;}
}
@media (prefers-reduced-motion:reduce){
  #teAssembly .ta-caption::before,#teAssembly .ta-caption .ta-phase,#teAssembly .ta-caption .ta-title span,#teAssembly .ta-caption .ta-text{animation:ta-fade .45s ease both;}
  #teAssembly .ta-caption.is-out{transform:none;}
  #teAssembly .ta-next.is-calling{animation:none;}
  #teAssembly .ta-caption.is-out,#teAssembly .ta-hint,#teAssembly .ta-step,#teAssembly .ta-step b,#teAssembly .ta-next{transition:none;}
}
