/* Héros « Partagez à l'infini » : carte NFC 3D, boucle ∞ de contacts, mise à jour propagée (HTML/CSS, boucle de 8 s) */
.hinf { position: relative; width: 100%; max-width: 560px; aspect-ratio: 560 / 500; margin: 0 auto; --k: 1; }
.hinf-scale { position: absolute; left: 0; top: 0; width: 560px; height: 500px; transform: scale(var(--k)); transform-origin: 0 0; }
.hinf-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(34% 26% at 50% 52%, rgba(212, 175, 95, .30), transparent 70%),
              radial-gradient(50% 34% at 50% 56%, rgba(126, 80, 210, .26), transparent 72%); }

/* Boucle infinie */
.hinf-loop { position: absolute; left: 0; top: 0; width: 560px; height: 500px; overflow: visible; }
.hinf-loop .base { fill: none; stroke: rgba(212, 175, 95, .22); stroke-width: 2; }
.hinf-loop .flow { fill: none; stroke: url(#hinf-g); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 90 910;
  filter: drop-shadow(0 0 6px rgba(241, 212, 138, .9)); animation: hinf-flow 4s linear infinite; }
.hinf-loop .flow.f2 { animation-delay: -2s; }
.hinf-loop .wave { fill: none; stroke: rgba(241, 212, 138, .9); stroke-width: 2.5; transform-origin: 280px 250px; opacity: 0;
  animation: hinf-wave 8s ease-out infinite; }
.hinf-loop .wave.w2 { animation-delay: .25s; }

/* Contacts qui parcourent la boucle */
.hinf-c { position: absolute; left: 0; top: 0; offset-path: path("M280 250 C 365 150, 525 145, 525 250 C 525 355, 365 350, 280 250 C 195 150, 35 145, 35 250 C 35 355, 195 350, 280 250");
  offset-rotate: 0deg; z-index: 10; }
.hinf-c > span { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; white-space: nowrap;
  transform: translate(-50%, -50%); background: rgba(22, 19, 30, .78); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45); color: #fff; font-family: inherit; font-size: 14px; font-weight: 600;
  animation: hinf-depth 16s linear infinite; animation-delay: var(--o); }
.hinf-c i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--c); }
.hinf-c b { position: relative; font-weight: 600; }
.hinf-c em { position: absolute; left: 0; top: 0; font-style: normal; color: #7fe0ae; opacity: 0; animation: hinf-ok 8s linear infinite; animation-delay: var(--u); }
.hinf-c b span { animation: hinf-name 8s linear infinite; animation-delay: var(--u); }

/* Carte NFC centrale */
.hinf-stage { position: absolute; left: 122px; top: 150px; width: 316px; height: 200px; perspective: 1100px; z-index: 5; }
.hinf-card { position: absolute; inset: 0; transform-style: preserve-3d; animation: hinf-tilt 8s ease-in-out infinite; }
.hinf-card > i { position: absolute; inset: 0; border-radius: 16px; background: #2b2731; }
.hinf-face { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; padding: 20px 22px; color: #fff; transform: translateZ(1px);
  background: radial-gradient(80% 90% at 85% 0%, rgba(212, 175, 95, .35), transparent 60%), linear-gradient(150deg, #1d1b22, #09080c);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.hinf-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .18) 48%, transparent 60%);
  background-size: 300% 100%; animation: hinf-sheen 8s ease-in-out infinite; }
.hinf .hinf-logo { width: 74px; height: auto; display: block; border: 0; border-radius: 0; box-shadow: none; }
.hinf-nfc { position: absolute; right: 20px; top: 18px; width: 26px; height: 26px; fill: none; stroke: #d4af5f; stroke-width: 2.2; stroke-linecap: round; }
.hinf-name { margin-top: 18px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.hinf-job { font-size: 12.5px; color: #d4af5f; margin-top: 2px; }
.hinf-tel { position: relative; height: 22px; margin-top: 14px; overflow: hidden; font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.hinf-tel span { display: block; height: 22px; line-height: 22px; animation: hinf-num 8s cubic-bezier(.6, 0, .2, 1) infinite; }
.hinf-new { position: absolute; right: 18px; bottom: 20px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: linear-gradient(145deg, #f1d48a, #b98a35); color: #1a1206; opacity: 0; animation: hinf-badge 8s ease infinite; }
.hinf-shadow { position: absolute; left: 150px; top: 382px; width: 260px; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent); filter: blur(8px); z-index: 4; }

@keyframes hinf-flow { to { stroke-dashoffset: -1000; } }
@keyframes hinf-orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
/* devant de 75 % à 25 % (passage par le centre), derrière de 25 % à 75 % */
@keyframes hinf-depth {
  0%   { transform: translate(-50%, -50%) scale(.8); opacity: .7; }
  25%  { transform: translate(-50%, -50%) scale(.95); opacity: .95; }
  29%  { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  45%  { transform: translate(-50%, -50%) scale(.85); opacity: .75; }
  75%  { transform: translate(-50%, -50%) scale(.95); opacity: .95; }
  79%  { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  95%  { transform: translate(-50%, -50%) scale(.85); opacity: .75; }
  100% { transform: translate(-50%, -50%) scale(.8); opacity: .7; }
}

/* devant seulement sur le bas des deux boucles extérieures ; derrière la carte au croisement central */
@keyframes hinf-z { 0%, 23.9% { z-index: 1; } 24%, 30.9% { z-index: 10; } 31%, 73.9% { z-index: 1; } 74%, 80.9% { z-index: 10; } 81%, 100% { z-index: 1; } }
.hinf-c { animation: hinf-orbit 16s linear infinite var(--o), hinf-z 16s step-end infinite var(--o); }
@keyframes hinf-tilt {
  0%, 100% { transform: rotateX(16deg) rotateY(-18deg) rotateZ(-4deg) translateY(0); }
  50%      { transform: rotateX(10deg) rotateY(14deg) rotateZ(2deg) translateY(-8px); }
}
@keyframes hinf-sheen { 0%, 20% { background-position: 130% 0; } 45%, 100% { background-position: -40% 0; } }
@keyframes hinf-num { 0%, 30% { transform: translateY(0); } 34%, 92% { transform: translateY(-22px); } 96%, 100% { transform: translateY(0); } }
@keyframes hinf-badge { 0%, 32% { opacity: 0; transform: translateY(6px); } 36%, 82% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; } }
@keyframes hinf-wave { 0%, 33% { opacity: 0; transform: scale(.5); } 35% { opacity: .9; } 55%, 100% { opacity: 0; transform: scale(2.2); } }
@keyframes hinf-ok { 0%, 1% { opacity: 0; } 3%, 30% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes hinf-name { 0%, 1% { opacity: 1; } 3%, 30% { opacity: 0; } 33%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hinf *, .hinf-c { animation: none !important; }
  .hinf-c { offset-distance: var(--s, 10%); }
  .hinf-c > span { transform: translate(-50%, -50%); }
  .hinf-card { transform: rotateX(12deg) rotateY(-10deg); }
  .hinf-tel span { transform: translateY(-22px); }
}
