/* Palette Inflasys */
:root {
  --blue-dark: #0A1A2F;
  --blue-light: #3DA8FF;
  --grey: #9CA3AF;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* centrer le logo */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* cercle en pointillé qui tourne */
.logo-orbit {
  position: relative;
  width: min(52vw, 480px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(10, 26, 47, 0.18);
  box-shadow:
    0 0 20px rgba(61, 168, 255, 0.06),
    0 0 40px rgba(61, 168, 255, 0.08);
  animation: orbit-spin 26s linear infinite;
}

/* cercle secondaire léger pour un halo très subtil */
.logo-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(156, 163, 175, 0.18);
}

/* le bloc qui reçoit le tilt (plus de cadre visible) */
.logo-shell {
  position: relative;
  width: 58%;
  max-width: 360px;
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
}

/* animation respiration + glow */
.logo-anim {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation:
    breathing 4.4s ease-in-out infinite,
    glow-pulse 4.4s ease-in-out infinite;
}

/* glow bleu clair derrière le logo */
.logo-glow {
  position: absolute;
  inset: 6%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, rgba(61, 168, 255, 0.25), transparent 65%),
    radial-gradient(circle at 0% 100%, rgba(61, 168, 255, 0.25), transparent 65%);
  filter: blur(18px);
  z-index: -1;
  opacity: 0.9;
}

.logo-anim img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: scale(0.86) translateY(14px);
  filter: drop-shadow(0 12px 28px rgba(10, 26, 47, 0.35));
  animation: logo-reveal 0.9s ease-out forwards;
  animation-delay: 0.3s;
}

/* Animations --------------------------------------------------------- */

@keyframes breathing {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 rgba(61, 168, 255, 0),
      0 22px 55px rgba(10, 26, 47, 0.25);
  }
  50% {
    box-shadow:
      0 0 25px rgba(61, 168, 255, 0.35),
      0 26px 65px rgba(10, 26, 47, 0.3);
  }
}

@keyframes logo-reveal {
  0% {
    opacity: 0;
    filter: blur(6px) drop-shadow(0 0 0 rgba(10, 26, 47, 0));
    transform: scale(0.78) translateY(22px);
  }
  60% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 12px 24px rgba(10, 26, 47, 0.38));
    transform: scale(1.04) translateY(0);
  }
  100% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 10px 20px rgba(10, 26, 47, 0.26));
    transform: scale(1) translateY(0);
  }
}

@keyframes orbit-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* responsive léger */
@media (max-width: 600px) {
  .logo-orbit {
    width: 70vw;
  }
}
