/* ===== Hero — scène matériel animée ===== */
.mat-hero-split__visual { position: relative; }
.mat-scene { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; margin-left: auto; transform: translate(-35%, -10%) translateY(-25px); animation: coreAppear .55s ease 0.5s both; }
.mat-scene__glow, .mat-scene__back, .mat-scene__front, .mat-scene__core { position: absolute; inset: 0; pointer-events: none; }
.mat-scene svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mat-scene__glow {
  inset: auto; left: 14%; top: 14%; width: 72%; height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,27,31,.30), rgba(155,27,31,0) 68%);
  filter: blur(22px); z-index: 1;
  animation: matGlow 5s ease-in-out infinite;
}
.mat-scene__back  { z-index: 2; }
.mat-scene__front { z-index: 4; }
.mat-scene__core  { z-index: 5; transform: scale(0.7); transform-origin: center; }
.mat-scene .mat-scene__kbd {
  position: absolute; z-index: 6; inset: auto;
  width: 40%; height: auto;
  right: -30%; bottom: 0%;
  animation: kbdSlideIn 1.8s cubic-bezier(.22,1,.36,1) 1.5s both;
}
.mat-scene .mat-scene__kbd-glow {
  position: absolute; z-index: 3; inset: auto; pointer-events: none;
  right: -40%; bottom: -13%;
  width: 70%; height: 40%;
  border-radius: 50%;
  background: radial-gradient(rgba(155,27,31,.34), rgba(155,27,31,0) 70%);
  filter: blur(20px);
  animation: kbdSlideIn 1.8s cubic-bezier(.22,1,.36,1) 1.5s both;
}
@keyframes kbdSlideIn {
  0%   { transform: translateX(140%); opacity: 0; }
  100% { transform: translateX(0);    opacity: 1; }
}
@keyframes coreAppear { from { opacity: 0; } to { opacity: 1; } }

/* Orbites */
.mat-orbit { transform-box: view-box; transform-origin: 230px 246px; }
.mat-orbit--slow { animation: matSpin 26s linear infinite; }
.mat-orbit--fast { animation: matSpin 19s linear infinite reverse; }
.mat-orbit__flat { transform-box: view-box; transform-origin: 230px 246px; transform: scaleY(.42); }
.mat-orbit__ring { fill: none; stroke: var(--red); stroke-width: 2; opacity: .32; stroke-dasharray: 2 13; stroke-linecap: round; }
.mat-orbit__ring--faint { opacity: .2; }
.mat-orbit__dot { fill: var(--red); }
.mat-orbit__dot--accent { fill: #ff5a3c; }

/* Clavier central */
.mat-kbd__tray { fill: #fff; stroke: var(--red); stroke-width: 4; }
.mat-key { fill: #fff; stroke: var(--red); stroke-width: 2.2; transform-box: fill-box; transform-origin: center; }
.mat-key--press { animation: keyPress 2.2s ease-in-out infinite; }

/* Morph appareil : téléphone → tablette → laptop (timing 100% SMIL) */
.morph-device { fill: #fff; stroke: var(--red); stroke-width: 4; stroke-linejoin: round; }
.morph-base   { fill: #fff; stroke: var(--red); stroke-width: 4; stroke-linejoin: round; }

@keyframes matSpin { to { transform: rotate(360deg); } }
@keyframes matGlow { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes keyPress {
  0%, 68%, 100% { transform: translateY(0); fill: #fff; }
  80%           { transform: translateY(3px); fill: rgba(155,27,31,.18); }
}
@media (max-width: 720px) { .mat-scene { margin: 0 auto; } }
/* Téléphone : on masque la scène SVG (gain de place + perf) */
@media (max-width: 560px) { .mat-hero-split__visual { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mat-orbit--slow, .mat-orbit--fast, .mat-scene__glow, .mat-key--press, .mat-scene { animation: none; }
  .mat-scene .mat-scene__kbd, .mat-scene .mat-scene__kbd-glow { animation: none; transform: none; opacity: 1; }
}

/* ===== Lot 3c — délais dorigine (ex-inline) ===== */
.mat-key--d02 { animation-delay: .2s; }
.mat-key--d05 { animation-delay: .5s; }
.mat-key--d08 { animation-delay: .8s; }
.mat-key--d11 { animation-delay: 1.1s; }
.mat-key--d15 { animation-delay: 1.5s; }
.mat-key--d19 { animation-delay: 1.9s; }

/* ===== Lot 3d — paddings de sections (ex-inline) ===== */
#bureau { padding-top: clamp(36px,5vw,60px); }
#mobilite { padding-top: 0; }
#services-cles { padding-top: clamp(36px,5vw,60px); padding-bottom: clamp(40px,6vw,80px); }
