

/* Animations de la page d'accueil */
/* ========== 🎮 UNIVERS DES 10 SATELLITES INTERACTIFS (VERSION JOUETS) ========== */

.animation-container {
  position: relative;
  width: 100%;
  height: 240px; 
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  overflow: hidden;
  perspective: 800px;
}

/* Manette centrale */
.gamepad-animation {
  position: relative;
  width: 140px;
  height: 110px;
  z-index: 5;
  animation: gamepadFloat 4s ease-in-out infinite; 
}

.pad-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.pad-shell {
  fill: color-mix(in srgb, var(--card-bg) 90%, transparent);
  stroke: var(--primary-color);
  stroke-width: 4px;
  stroke-linejoin: round;
}

/* --- INTERFACE DE LA MANETTE --- */
.pad-dpad {
  position: absolute;
  top: 36px;
  left: 24px;
  width: 22px;
  height: 22px;
}
.pad-dpad::before, .pad-dpad::after {
  content: '';
  position: absolute;
  background: var(--primary-color);
  border-radius: 2px;
}
.pad-dpad::before { top: 7px; left: 0; width: 22px; height: 8px; }
.pad-dpad::after { top: 0; left: 7px; width: 8px; height: 22px; }

.pad-buttons-quad {
  position: absolute;
  top: 34px;
  right: 25px;
  width: 22px;
  height: 22px;
}
.pad-buttons-quad::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 
    7px -7px 0 var(--primary-color),
    7px 7px 0 var(--primary-color),
    0 0 0 var(--primary-color),
    14px 0 0 var(--primary-color);
  top: 7px; left: 0;
}

.pad-joystick {
  position: absolute;
  bottom: 44px;
  width: 20px;
  height: 20px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-bg) 95%, transparent);
}
.pad-joystick.l { left: 47px; }
.pad-joystick.r { right: 47px; }
.pad-joystick::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 6px; height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}


/* ==================== 🚀 CONFIGURATION DES 10 JOUETS VOLANTS ==================== */

.sat-object {
  position: absolute;
  width: 42px;
  height: 42px;
  background: color-mix(in srgb, var(--card-bg) 95%, transparent);
  border: 3.5px solid var(--primary-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  color: var(--primary-color);
  text-align: center;
  box-sizing: border-box;
  z-index: 10;
  opacity: 0;
}

/* --- Styles individuels et délais d'apparition (Pour étaler la cohabitation) --- */
.obj-dice   { border-radius: 10px; font-size: 26px; line-height: 34px; animation: orbitPath1 9s infinite linear; }
.obj-bear   { border-radius: 50%; font-size: 24px; line-height: 34px; animation: orbitPath2 10s infinite linear; animation-delay: 1.5s; }
.obj-puzzle { border-radius: 8px; font-size: 24px; line-height: 34px; animation: orbitPath3 9.5s infinite linear; animation-delay: 3.5s; }
.obj-card   { border-radius: 6px; font-size: 30px; line-height: 32px; animation: orbitPath4 11s infinite linear; animation-delay: 0.5s; }
.obj-ball   { border-radius: 50%; font-size: 24px; line-height: 34px; animation: orbitPath5 8.5s infinite linear; animation-delay: 5s; }

/* Les 5 nouveaux modules de Jouets */
.obj-lego   { border-radius: 6px; font-size: 24px; line-height: 34px; animation: orbitPath1 9.5s infinite linear; animation-delay: 4.5s; }
.obj-slide  { border-radius: 12px; font-size: 24px; line-height: 34px; animation: orbitPath2 11s infinite linear; animation-delay: 6s; }
.obj-doll   { border-radius: 10px; font-size: 24px; line-height: 34px; animation: orbitPath3 9s infinite linear; animation-delay: 1s; }
.obj-train  { border-radius: 8px; font-size: 24px; line-height: 34px; animation: orbitPath4 10s infinite linear; animation-delay: 5.5s; }
.obj-kite   { border-radius: 14px; font-size: 24px; line-height: 34px; animation: orbitPath5 9s infinite linear; animation-delay: 2.5s; }


/* ==================== KEYFRAMES DES TRAJECTOIRES GLOBALES ==================== */

@keyframes gamepadFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* Orbite 1 : Nord-Est vers Sud-Ouest en survol supérieur */
@keyframes orbitPath1 {
  0%   { opacity: 0; transform: translate(130px, -20px) scale(0.3) rotate(0deg); }
  15%  { opacity: 1; transform: translate(60px, -65px) scale(1) rotate(30deg); }
  55%  { opacity: 1; transform: translate(-60px, -55px) scale(0.9) rotate(150deg); }
  80%  { opacity: 0; transform: translate(-130px, 30px) scale(0.4) rotate(240deg); }
  100% { opacity: 0; transform: translate(130px, -20px) scale(0.3); }
}

/* Orbite 2 : Sud-Ouest vers Nord-Est par le flanc inférieur */
@keyframes orbitPath2 {
  0%   { opacity: 0; transform: translate(-120px, 50px) scale(0.3); }
  20%  { opacity: 1; transform: translate(-60px, 45px) scale(1) rotate(-15deg); }
  55%  { opacity: 1; transform: translate(40px, -65px) scale(0.85) rotate(60deg); }
  80%  { opacity: 1; transform: translate(110px, -10px) scale(1) rotate(110deg); }
  100% { opacity: 0; transform: translate(-120px, 50px) scale(0.3); }
}

/* Orbite 3 : Descente en piqué et virage sous l'arche de la manette */
@keyframes orbitPath3 {
  0%   { opacity: 0; transform: translate(-10px, -90px) scale(0.4); }
  25%  { opacity: 1; transform: translate(85px, -30px) scale(1) rotate(45deg); }
  60%  { opacity: 1; transform: translate(30px, 75px) scale(0.9) rotate(135deg); }
  85%  { opacity: 1; transform: translate(-85px, 20px) scale(1) rotate(225deg); }
  100% { opacity: 0; transform: translate(-10px, -90px) scale(0.4); }
}

/* Orbite 4 : Diagonale droite-gauche avec effet de zoom au premier plan */
@keyframes orbitPath4 {
  0%   { opacity: 0; transform: translate(140px, 40px) scale(0.3) rotate(0deg); }
  30%  { opacity: 1; transform: translate(30px, -10px) scale(1.15) rotate(-60deg); }
  70%  { opacity: 1; transform: translate(-85px, 60px) scale(0.85) rotate(-120deg); }
  92%  { opacity: 0; transform: translate(-130px, -40px) scale(0.4); }
  100% { opacity: 0; transform: translate(140px, 40px) scale(0.3); }
}

/* Orbite 5 : Mouvement d'ellipse horizontale gauche à droite */
@keyframes orbitPath5 {
  0%   { opacity: 0; transform: translate(-130px, -15px) scale(0.3); }
  25%  { opacity: 1; transform: translate(-50px, 65px) scale(1) rotate(-45deg); }
  60%  { opacity: 1; transform: translate(65px, 55px) scale(0.9) rotate(-135deg); }
  85%  { opacity: 1; transform: translate(115px, -35px) scale(1) rotate(-225deg); }
  100% { opacity: 0; transform: translate(-130px, -15px) scale(0.3); }
}


/* ==================== ➕ SIGNES GÉOMÉTRIQUES DE FOND ==================== */
.floating-particle {
  position: absolute;
  font-size: 16px;
  color: var(--primary-color);
  opacity: 0.2;
  font-weight: bold;
  z-index: 2;
}
.sym-cross     { top: 30px; left: calc(50% - 120px); animation: particleFloat 4s ease-in-out infinite 0.5s; }
.sym-circle    { bottom: 40px; left: calc(50% - 140px); animation: particleFloat 4.8s ease-in-out infinite 1s; }
.sym-triangle  { top: 25px; right: calc(50% - 120px); animation: particleFloat 4.2s ease-in-out infinite; }
.sym-square    { bottom: 35px; right: calc(50% - 130px); animation: particleFloat 4.5s ease-in-out infinite 1.5s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.15; }
  50% { transform: translateY(-12px) rotate(45deg) scale(1.1); opacity: 0.35; }
}

