/* Touten1 — visuel hero 3D (couches aux couleurs du logo) — 1er déc. 2026 */
@property --h3gap { syntax: '<length>'; inherits: true; initial-value: 52px; }
.hero-visual.hero3d { min-height: 0; min-width: 0; width: 100%; max-width: 760px; justify-self: center; aspect-ratio: 760 / 580; isolation: isolate; }
.hero-visual.hero3d::before, .hero-visual.hero3d::after { display: none; }
.h3-stage { --px: 0; --py: 0; --speed: 1; position: absolute; left: 0; top: 0; width: 760px; height: 580px; transform-origin: 0 0; transform: scale(var(--h3s, .7)); font-family: var(--body, Manrope, system-ui, sans-serif); color: #252733; }
.h3-stage .h3-disp { font-family: var(--display, 'Space Grotesk', sans-serif); }
.h3-abs { position: absolute; }
.h3-front, .h3-back { position: absolute; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.h3-front { transform: translate(calc(var(--px) * -14px), calc(var(--py) * -10px)); }
.h3-back { transform: translate(calc(var(--px) * 8px), calc(var(--py) * 6px)); }
.h3-persp { position: absolute; left: 380px; top: 318px; perspective: 1300px; }
.h3-tilt { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateX(calc(var(--py) * -14deg)) rotateY(calc(var(--px) * 20deg)); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.h3-scene { position: absolute; left: -115px; top: -115px; width: 230px; height: 230px; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-40deg); animation: h3-sway calc(16s / var(--speed)) ease-in-out infinite, h3-breathe calc(8s / var(--speed)) ease-in-out infinite; }
.h3-pl, .h3-ed { position: absolute; inset: 0; border-radius: 24px; box-sizing: border-box; transform: translateZ(calc(var(--i) * var(--h3gap))); }
.h3-ed { transform: translateZ(calc(var(--i) * var(--h3gap) - 9px)); }
.h3-packet { position: absolute; left: 108px; top: 108px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px 5px rgba(255,255,255,.85); animation: h3-packet calc(3.2s / var(--speed)) ease-in infinite; }
.h3-bob { animation: h3-bob calc(6s / var(--speed)) ease-in-out infinite; }
.h3-led { display: block; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 7px #fff; animation: h3-blink calc(1.6s / var(--speed)) steps(2) infinite; }
.h3-live { display: block; width: 8px; height: 8px; border-radius: 50%; background: #2eb67d; animation: h3-pulse 1.8s ease-out infinite; }
.h3-card { display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; background: #fff; border-radius: 14px; box-shadow: 0 14px 34px rgba(37,39,51,.10); white-space: nowrap; }
.h3-card .h3-ico { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; }
.h3-card small { display: block; font-size: 11px; color: #666a78; margin-bottom: 4px; }
.h3-card strong { display: block; font-size: 15px; }
.h3-rack { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 8px; background: rgba(255,255,255,.2); }
.h3-rack b { flex: 1; height: 4px; margin-left: 8px; border-radius: 2px; background: rgba(255,255,255,.4); }
.h3-line { display: block; height: 7px; border-radius: 4px; }
@keyframes h3-sway { 0%,100% { transform: rotateX(56deg) rotateZ(-44deg); } 50% { transform: rotateX(53deg) rotateZ(-34deg); } }
@keyframes h3-breathe { 0%,100% { --h3gap: 44px; } 50% { --h3gap: 64px; } }
@keyframes h3-packet { 0% { transform: translateZ(-10px); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateZ(205px); opacity: 0; } }
@keyframes h3-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes h3-blink { 50% { opacity: .3; } }
@keyframes h3-pulse { 0% { box-shadow: 0 0 0 0 rgba(46,182,125,.55); } 100% { box-shadow: 0 0 0 9px rgba(46,182,125,0); } }
@media (max-width: 620px) { .hero-visual.hero3d { transform: none; min-height: 0; margin: 0 auto; width: 100%; } }
/* petits écrans : cartes agrandies pour rester lisibles */
.h3-small .h3-front > div { scale: 1.3; transform-origin: left top; }
.h3-small .h3-front[style*="left: 42px"] { left: 10px !important; top: 60px !important; }
.h3-small .h3-front[style*="right: 38px"] { right: 6px !important; top: 230px !important; }
.h3-small .h3-front[style*="right"] > div { transform-origin: right top; }
@media (prefers-reduced-motion: reduce) { .h3-scene, .h3-packet, .h3-bob, .h3-led, .h3-live { animation: none !important; } .h3-tilt, .h3-front, .h3-back { transition: none; } }
