/* Quanttekel-like palette (tunable) */
:root {
  /* Background gradient — matched to quanttekel tones */
  --bg-0: #0a1d22;   /* very dark teal */
  --bg-1: #0b2227;   /* deep teal */
  --bg-2: #143138;   /* soft midnight teal */

  /* Mint palette extracted from site */
  --mint-0: #beeee1; /* very light mint */
  --mint-1: #9ce5d1; /* light mint */
  --mint-2: #80e0c5; /* mint */
  --mint-3: #6dcfb4; /* teal-mint */
  --accent: #b2eada; /* CTA gradient end */

  --text: #f3f3f3;
  --muted: #758696;

  --sphere-a: #6dcfb4;
  --sphere-b: #80e0c5;

  --radius: 14px;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

/* WORK IN PROGRESS Overlay Styles */
.wip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(10, 29, 34, 0.15) 0%,
    rgba(11, 34, 39, 0.12) 50%,
    rgba(20, 49, 56, 0.15) 100%);
  backdrop-filter: blur(0.5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: globalScintillation 4s ease-in-out infinite;
  pointer-events: none;
}

.wip-container {
  text-align: center;
  position: relative;
}

.wip-text {
  font-size: clamp(1.5rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 2rem;
  position: relative;
  text-transform: uppercase;
  font-family: 'Arial Black', Arial, sans-serif;
}

.wip-text span {
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, var(--mint-1), var(--mint-2), var(--mint-0));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: 
    shimmerGradient 3s ease-in-out infinite,
    letterFloat 8s ease-in-out infinite,
    letterScintillation 2s ease-in-out infinite;
  text-shadow: 
    0 0 20px rgba(156, 229, 209, 0.6),
    0 0 40px rgba(128, 224, 197, 0.4),
    0 0 60px rgba(109, 207, 180, 0.2);
  filter: drop-shadow(0 0 10px rgba(156, 229, 209, 0.8));
}

.wip-text span.space {
  width: 0.5em;
  background: none;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: none;
}

.wip-text span:nth-child(1) { animation-delay: 0s; }
.wip-text span:nth-child(2) { animation-delay: 0.1s; }
.wip-text span:nth-child(3) { animation-delay: 0.2s; }
.wip-text span:nth-child(4) { animation-delay: 0.3s; }
.wip-text span:nth-child(6) { animation-delay: 0.5s; }
.wip-text span:nth-child(7) { animation-delay: 0.6s; }
.wip-text span:nth-child(9) { animation-delay: 0.8s; }
.wip-text span:nth-child(10) { animation-delay: 0.9s; }
.wip-text span:nth-child(11) { animation-delay: 1s; }
.wip-text span:nth-child(12) { animation-delay: 1.1s; }
.wip-text span:nth-child(13) { animation-delay: 1.2s; }
.wip-text span:nth-child(14) { animation-delay: 1.3s; }
.wip-text span:nth-child(15) { animation-delay: 1.4s; }
.wip-text span:nth-child(16) { animation-delay: 1.5s; }

.wip-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--mint-1);
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0.9;
  animation: subtitlePulse 3s ease-in-out infinite;
}

/* Global scintillation effect */
@keyframes globalScintillation {
  0%, 100% {
    filter: brightness(1) contrast(1);
  }
  25% {
    filter: brightness(1.05) contrast(1.02);
  }
  50% {
    filter: brightness(0.98) contrast(0.98);
  }
  75% {
    filter: brightness(1.02) contrast(1.01);
  }
}

/* Shimmer gradient animation */
@keyframes shimmerGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Letter floating animation */
@keyframes letterFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  20% {
    transform: translateY(-8px) scale(1.05);
  }
  40% {
    transform: translateY(0px) scale(1);
  }
  60% {
    transform: translateY(-4px) scale(1.02);
  }
  80% {
    transform: translateY(0px) scale(1);
  }
}

/* Individual letter scintillation */
@keyframes letterScintillation {
  0%, 100% {
    text-shadow: 
      0 0 20px rgba(156, 229, 209, 0.6),
      0 0 40px rgba(128, 224, 197, 0.4),
      0 0 60px rgba(109, 207, 180, 0.2);
    filter: drop-shadow(0 0 10px rgba(156, 229, 209, 0.8));
  }
  50% {
    text-shadow: 
      0 0 30px rgba(156, 229, 209, 0.9),
      0 0 60px rgba(128, 224, 197, 0.7),
      0 0 90px rgba(109, 207, 180, 0.5);
    filter: drop-shadow(0 0 20px rgba(156, 229, 209, 1));
  }
}

/* Subtitle pulse animation */
@keyframes subtitlePulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wip-text {
    font-size: clamp(1rem, 5vw, 2rem);
    letter-spacing: 0.05em;
  }
  
  .wip-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
  }
}

/* Enhanced glow effect for premium feel */
.wip-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--mint-2), var(--mint-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  filter: blur(2px);
  animation: glowPulse 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.2;
    filter: blur(2px);
  }
  50% {
    opacity: 0.5;
    filter: blur(4px);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 800px at 75% 40%, rgba(128, 224, 197, .12), transparent 60%),
              radial-gradient(900px 600px at 60% 70%, rgba(109, 207, 180, .12), transparent 60%),
              linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 40%, var(--bg-2) 100%);
  background-attachment: fixed;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(7,11,10,.9), rgba(7,11,10,.7) 40%, transparent);
  backdrop-filter: blur(12px);
}

.nav__brand {
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.nav__brand.main-title {
  /* Le titre dans le nav utilise les mêmes styles que .main-title mais adapté pour le header */
  background: linear-gradient(
    120deg,
    var(--mint-0) 0%,
    var(--mint-1) 20%,
    var(--mint-2) 40%,
    var(--mint-3) 60%,
    var(--mint-1) 80%,
    var(--mint-0) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(156, 229, 209, 0.3));
}

.nav__links {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}

.nav__links a:not(.btn) {
  color: var(--text);
  opacity: .9;
  text-decoration: none;
}
.nav__links a:not(.btn):hover { color: var(--mint-0); }

/* Signup section inline dans le header */
.signup-section--inline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.signup-section--inline .signup-prompt {
  font-size: 13px;
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

/* Responsive pour mobile */
@media (max-width: 767px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
    position: relative;
    z-index: 10;
  }

  .nav__brand {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .nav__links {
    width: 60%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    position: relative;
    z-index: 10;
  }

  .btn--signin,
  .btn--signup {
    width: 100%;
    justify-content: center;
    padding: 12px 24px !important;
    min-width: unset;
  }

  .signup-section--inline {
    width: 100%;
    align-items: stretch;
  }

  .signup-section--inline .signup-prompt {
    text-align: center;
    font-size: 12px;
  }

  /* Positionner le logo avec disques sur mobile */
  .sphere-container {
    right: 5%;
    top: 80px;
    width: min(35vmin, 150px);
    height: min(28vmin, 120px);
    z-index: 5;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.btn--ghost {
  border: 1px solid rgba(198, 246, 232, .25);
  color: var(--mint-0);
}
.btn--primary {
  color: #0a1211;
  background: linear-gradient(180deg, var(--mint-0), var(--mint-2));
  box-shadow: 0 10px 30px rgba(103, 212, 189, .35);
}
.btn--primary:hover { filter: brightness(1.05); }

/* Nouveaux boutons Sign In / Sign Up comme dans l'image */
.cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn--signin {
  color: #0a1d22 !important;
  background: linear-gradient(135deg, var(--mint-2), var(--mint-3)) !important;
  box-shadow: 0 8px 25px rgba(128, 224, 197, 0.4);
  padding: 14px 40px !important;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  border-radius: 12px !important;
  min-width: 200px;
}

.btn--signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(128, 224, 197, 0.6);
  background: linear-gradient(135deg, var(--mint-1), var(--mint-2)) !important;
}

.signup-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup-prompt {
  color: var(--mint-1);
  font-size: 14px;
  margin: 0;
  text-align: center;
}

.btn--signup {
  color: var(--mint-0) !important;
  background: rgba(11, 34, 39, 0.6) !important;
  border: 2px solid var(--mint-2) !important;
  box-shadow: 0 8px 25px rgba(128, 224, 197, 0.2);
  padding: 14px 40px !important;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  border-radius: 12px !important;
  min-width: 200px;
}

.btn--signup:hover {
  background: rgba(128, 224, 197, 0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(128, 224, 197, 0.4);
}

@media (max-width: 768px) {
  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--signin,
  .btn--signup {
    width: 100%;
    text-align: center;
  }
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  padding: 216px 28px 96px; /* Augmenté de 144px (1.2 x 120px logo height) */
  max-width: 1200px;
  margin: 0 auto;
}
/* Titre principal AlphaQuant Nexus avec effet gradient animé magnifique */
.main-title {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 30px;
  letter-spacing: -0.03em;
  text-align: center;
  background: linear-gradient(
    120deg,
    var(--mint-0) 0%,
    var(--mint-1) 20%,
    var(--mint-2) 40%,
    var(--mint-3) 60%,
    var(--mint-1) 80%,
    var(--mint-0) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 8s ease-in-out infinite;
  text-shadow:
    0 0 30px rgba(156, 229, 209, 0.3),
    0 0 60px rgba(128, 224, 197, 0.2);
  filter: drop-shadow(0 0 15px rgba(156, 229, 209, 0.4));
}

@keyframes gradientFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 50%;
  }
}

/* Boutons centrés */
.cta--centered {
  justify-content: center;
  margin-bottom: 40px;
}

/* Sous-titre (Your Gateway to...) */
.subtitle {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__copy h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.accent {
  background: linear-gradient(180deg, var(--mint-0), var(--mint-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { color: var(--muted); max-width: 54ch; }

.punchline {
  margin: 10px 0 0;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mint-1);
  text-shadow: 0 0 10px rgba(128,224,197,.25);
}

.hero__visual {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  justify-items: center;
  isolation: isolate;
}

/* Original sphere and logo styles removed as requested */

/* Logo slices: image split into animated mint bands */
.logo-slices {
  --w: min(48vmin, 420px);
  position: absolute;
  right: 0;
  bottom: -12px;
  width: var(--w);
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
}
.logo-slices img {
  width: 75%;
  height: auto;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.5)) saturate(1.2);
  opacity: .9;
}
.logo-slices .band {
  --bands: 8;
  position: absolute;
  inset: 0;
  mask: linear-gradient(to bottom,
        transparent 0 calc((100%/var(--bands))*var(--i) - 3px),
        white calc((100%/var(--bands))*var(--i) - 3px) calc((100%/var(--bands))*var(--i) + 3px),
        transparent calc((100%/var(--bands))*var(--i) + 3px) 100%);
  background: linear-gradient(135deg, rgba(172, 241, 218, .75), rgba(103, 212, 189, .6));
  border-radius: 28px;
  filter: blur(10px);
  mix-blend-mode: screen;
  transform: translateZ(0);
  opacity: .9;
}
.logo-slices .band:nth-of-type(2) { --i: 1; }
.logo-slices .band:nth-of-type(3) { --i: 2; }
.logo-slices .band:nth-of-type(4) { --i: 3; }
.logo-slices .band:nth-of-type(5) { --i: 4; }
.logo-slices .band:nth-of-type(6) { --i: 5; }
.logo-slices .band:nth-of-type(7) { --i: 6; }
.logo-slices .band:nth-of-type(8) { --i: 7; }

.logo-slices:is(:hover,:focus) .band {
  animation: slide 2.2s cubic-bezier(.2,.6,.2,1) infinite;
}
.logo-slices:is(:hover,:focus) .band:nth-of-type(even) {
  animation-delay: .2s;
}
@keyframes slide {
  0%, 100% { transform: translateX(0) skewX(0deg); }
  50%      { transform: translateX(8px) skewX(-3deg); }
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { min-height: 520px; }
  .logo-slices { position: relative; right: auto; bottom: auto; }
}

/* --- Hypervision Effects --- */

/* Halo fixe (permanent) - positioned with sphere */
.halo {
  position: fixed;
  top: 80px; /* Same as sphere */
  right: 5%; /* Same as sphere */
  width: 400px;
  height: 400px;
  transform: translateX(50%); /* Center with sphere */
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158,238,214,0.45) 0%, transparent 80%);
  filter: blur(100px);
  animation: pulse 12s infinite ease-in-out;
  z-index: 0;
  pointer-events: none;
}

@keyframes pulse {
  0%   { transform: translateX(50%) scale(1);   opacity: 0.6; }
  100% { transform: translateX(50%) scale(3);   opacity: 0;   }
}

/* Logo animé (apparition/disparition aléatoire) - Desktop only */
.animated-logo {
  width: 147px;
  height: 147px;
  object-fit: cover;
  clip-path: polygon(
    50% 0%,
    86% 21%,
    86% 62%,
    50% 82%,
    13% 62%,
    13% 21%
  );
  box-shadow: 0 0 25px rgba(158,238,214,0.6);
  border: 3px solid var(--mint-1);
  border-radius: 10%;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 3s ease-in-out;
  z-index: 2;
  pointer-events: none;
  display: none; /* Caché par défaut */
}

/* Desktop only: afficher le logo animé */
@media (min-width: 768px) {
  .animated-logo {
    display: block;
  }
}

/* Interactive particles effect */
.particles-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--mint-1);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--mint-2);
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
  pointer-events: all;
  cursor: pointer;
}

.particle.hover {
  animation: explode 0.8s ease-out;
  transform-origin: center;
}

.particle.connected {
  box-shadow: 0 0 20px var(--mint-1), 0 0 40px var(--mint-2);
  opacity: 1;
}

.connection-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint-1), transparent);
  opacity: 0.3;
  transform-origin: left;
  animation: fadeIn 0.3s ease-out;
}

.synapse-effect {
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(158, 238, 214, 0.8) 0%,
    rgba(128, 224, 197, 0.6) 30%,
    rgba(109, 207, 180, 0.3) 60%,
    transparent 100%
  );
  box-shadow: 
    0 0 20px rgba(158, 238, 214, 0.6),
    0 0 40px rgba(128, 224, 197, 0.4),
    0 0 60px rgba(109, 207, 180, 0.3);
  animation: synapseTransmission 1.5s ease-out forwards;
  pointer-events: none;
}

.synapse-effect::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(158, 238, 214, 1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: synapseCore 1.5s ease-out forwards;
}

/* Sliced sphere effect - exact copy from Hypervision */
.sphere-container {
  position: fixed;
  right: 5vw;
  top: 15vh;
  width: min(45vmin, 400px);
  height: min(35vmin, 300px);
  pointer-events: none;
  z-index: 0;
}

.sphere {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: sphereFloat 20s ease-in-out infinite;
}

.sphere-slice {
  position: absolute;
  inset: 0;
  border-radius: 50% / 40%;
  background: linear-gradient(135deg, 
    rgba(158, 238, 214, .15), 
    rgba(128, 224, 197, .25),
    rgba(109, 207, 180, .15));
  border: 1px solid rgba(158, 238, 214, .2);
  transform-style: preserve-3d;
  opacity: 0.8;
  mix-blend-mode: screen;
  animation: sliceFloat 8s ease-in-out infinite;
}

.sphere-slice::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(110% 140% at 30% 20%, 
    rgba(255,255,255,.12), transparent 60%);
  mix-blend-mode: overlay;
}

.sphere-slice:nth-child(1) { 
  transform: rotateX(-30deg) translateZ(-60px);
  animation-delay: -1s;
  opacity: 0.4;
}
.sphere-slice:nth-child(2) { 
  transform: rotateX(-15deg) translateZ(-30px);
  animation-delay: -2s;
  opacity: 0.6;
}
.sphere-slice:nth-child(3) { 
  transform: rotateX(0deg) translateZ(0px);
  animation-delay: -3s;
  opacity: 0.8;
}
.sphere-slice:nth-child(4) { 
  transform: rotateX(15deg) translateZ(-30px);
  animation-delay: -4s;
  opacity: 0.6;
}
.sphere-slice:nth-child(5) { 
  transform: rotateX(30deg) translateZ(-60px);
  animation-delay: -5s;
  opacity: 0.4;
}

/* Desktop: taille réduite de 50% avec réglages exacts d'Hypervision */
@media (min-width: 768px) {
  .sphere-container {
    width: min(22vmin, 200px); /* Réduit de 50% */
    height: min(17vmin, 150px); /* Réduit de 50% */
  }
  
  /* Desktop: positions de base avec même centre */
  .sphere-slice:nth-child(1) { 
    transform: rotateX(-50deg);
    opacity: 0.4;
  }
  .sphere-slice:nth-child(2) { 
    transform: rotateX(-25deg);
    opacity: 0.6;
  }
  .sphere-slice:nth-child(3) { 
    transform: rotateX(0deg);
    opacity: 0.8;
  }
  .sphere-slice:nth-child(4) { 
    transform: rotateX(25deg);
    opacity: 0.6;
  }
  .sphere-slice:nth-child(5) { 
    transform: rotateX(50deg);
    opacity: 0.4;
  }
}

.sphere-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px; /* Taille mobile */
  height: 120px;
  object-fit: cover;
  clip-path: polygon(
    50% 0%,
    86% 21%,
    86% 62%,
    50% 82%,
    13% 62%,
    13% 21%
  );
  box-shadow: 0 0 25px rgba(158,238,214,0.6);
  border: 3px solid var(--mint-1);
  border-radius: 10%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  z-index: 10;
}

/* Desktop: logo adapté à la nouvelle taille réduite */
@media (min-width: 768px) {
  .sphere-logo {
    width: 120px; /* Même taille que mobile, adapté aux disques réduits */
    height: 120px;
    border: 3px solid var(--mint-1); /* Bordure standard */
    box-shadow: 0 0 25px rgba(158,238,214,0.6); /* Ombre standard */
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes explode {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(2); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 0.3; }
}

@keyframes synapseTransmission {
  0% { transform: scale(0); opacity: 0; }
  20% { transform: scale(1); opacity: 1; }
  80% { transform: scale(1.5); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

@keyframes synapseCore {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

@keyframes sphereFloat {
  0%, 100% { transform: rotateY(0deg) rotateZ(0deg); }
  25% { transform: rotateY(90deg) rotateZ(2deg); }
  50% { transform: rotateY(180deg) rotateZ(0deg); }
  75% { transform: rotateY(270deg) rotateZ(-2deg); }
}

@keyframes sliceFloat {
  0%, 100% { 
    transform: var(--base-transform, rotateX(0deg)) translateZ(0px);
  }
  50% { 
    transform: var(--base-transform, rotateX(0deg)) translateZ(20px) rotateZ(3deg);
  }
}

/* Desktop: animations individuelles pour chaque disque avec grandes variations */
@media (min-width: 768px) {
  @keyframes slice1Float {
    0%, 100% { transform: rotateX(-50deg) rotateZ(0deg); }
    25% { transform: rotateX(-45deg) rotateZ(15deg); }
    50% { transform: rotateX(-55deg) rotateZ(-20deg); }
    75% { transform: rotateX(-40deg) rotateZ(10deg); }
  }
  
  @keyframes slice2Float {
    0%, 100% { transform: rotateX(-25deg) rotateZ(0deg); }
    25% { transform: rotateX(-30deg) rotateZ(-25deg); }
    50% { transform: rotateX(-15deg) rotateZ(30deg); }
    75% { transform: rotateX(-35deg) rotateZ(-15deg); }
  }
  
  @keyframes slice3Float {
    0%, 100% { transform: rotateX(0deg) rotateZ(0deg); }
    25% { transform: rotateX(10deg) rotateZ(40deg); }
    50% { transform: rotateX(-10deg) rotateZ(-35deg); }
    75% { transform: rotateX(5deg) rotateZ(20deg); }
  }
  
  @keyframes slice4Float {
    0%, 100% { transform: rotateX(25deg) rotateZ(0deg); }
    25% { transform: rotateX(15deg) rotateZ(25deg); }
    50% { transform: rotateX(35deg) rotateZ(-30deg); }
    75% { transform: rotateX(20deg) rotateZ(15deg); }
  }
  
  @keyframes slice5Float {
    0%, 100% { transform: rotateX(50deg) rotateZ(0deg); }
    25% { transform: rotateX(40deg) rotateZ(-15deg); }
    50% { transform: rotateX(60deg) rotateZ(25deg); }
    75% { transform: rotateX(45deg) rotateZ(-10deg); }
  }
  
  .sphere-slice:nth-child(1) {
    animation: slice1Float 12s ease-in-out infinite;
    animation-delay: -1s;
  }
  .sphere-slice:nth-child(2) {
    animation: slice2Float 10s ease-in-out infinite;
    animation-delay: -2s;
  }
  .sphere-slice:nth-child(3) {
    animation: slice3Float 8s ease-in-out infinite;
    animation-delay: -3s;
  }
  .sphere-slice:nth-child(4) {
    animation: slice4Float 11s ease-in-out infinite;
    animation-delay: -4s;
  }
  .sphere-slice:nth-child(5) {
    animation: slice5Float 9s ease-in-out infinite;
    animation-delay: -5s;
  }
}
