/* ═══════════════════════════════════════════════════
   ANIMATION DES FEUILLES QUI TOMBENT - Seulement sur PC
   ═══════════════════════════════════════════════════ */

/* Conteneur pour les feuilles */
.feuilles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Feuille individuelle */
.feuille {
  position: absolute;
  top: -50px;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, #52B788, #2D6A4F);
  border-radius: 0 100% 0 100%;
  opacity: 0.7;
  animation: tomber linear infinite;
}

/* Variations de feuilles */
.feuille:nth-child(odd) {
  background: linear-gradient(45deg, #C9A84C, #B8941F);
  border-radius: 100% 0 100% 0;
}

.feuille:nth-child(3n) {
  background: linear-gradient(45deg, #D8F3DC, #A8DADC);
  border-radius: 50% 0 50% 0;
}

.feuille:nth-child(4n) {
  background: linear-gradient(45deg, #FFF8E7, #F4E4BC);
  border-radius: 0 50% 0 50%;
}

/* Animation de chute */
@keyframes tomber {
  0% {
    top: -50px;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  
  10% {
    opacity: 0.7;
  }
  
  90% {
    opacity: 0.7;
  }
  
  100% {
    top: 100vh;
    transform: translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* Balancement latéral */
@keyframes balancer {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-30px);
  }
  75% {
    transform: translateX(30px);
  }
}

/* Combinaison des animations */
.feuille {
  animation: tomber var(--duree) linear infinite, balancer var(--duree-balancement) ease-in-out infinite;
}

/* Création de plusieurs feuilles avec des délais et durées variables */
.feuille:nth-child(1) { --duree: 8s; --duree-balancement: 3s; left: 10%; animation-delay: 0s; }
.feuille:nth-child(2) { --duree: 10s; --duree-balancement: 4s; left: 20%; animation-delay: 2s; }
.feuille:nth-child(3) { --duree: 7s; --duree-balancement: 2.5s; left: 30%; animation-delay: 4s; }
.feuille:nth-child(4) { --duree: 9s; --duree-balancement: 3.5s; left: 40%; animation-delay: 1s; }
.feuille:nth-child(5) { --duree: 11s; --duree-balancement: 4.5s; left: 50%; animation-delay: 3s; }
.feuille:nth-child(6) { --duree: 8.5s; --duree-balancement: 3.2s; left: 60%; animation-delay: 5s; }
.feuille:nth-child(7) { --duree: 9.5s; --duree-balancement: 3.8s; left: 70%; animation-delay: 2.5s; }
.feuille:nth-child(8) { --duree: 7.5s; --duree-balancement: 2.8s; left: 80%; animation-delay: 1.5s; }
.feuille:nth-child(9) { --duree: 10.5s; --duree-balancement: 4.2s; left: 90%; animation-delay: 3.5s; }
.feuille:nth-child(10) { --duree: 8.2s; --duree-balancement: 3.1s; left: 15%; animation-delay: 0.5s; }
.feuille:nth-child(11) { --duree: 9.8s; --duree-balancement: 3.9s; left: 25%; animation-delay: 4.5s; }
.feuille:nth-child(12) { --duree: 7.8s; --duree-balancement: 2.9s; left: 35%; animation-delay: 2.8s; }
.feuille:nth-child(13) { --duree: 10.2s; --duree-balancement: 4.1s; left: 45%; animation-delay: 1.2s; }
.feuille:nth-child(14) { --duree: 8.8s; --duree-balancement: 3.3s; left: 55%; animation-delay: 3.8s; }
.feuille:nth-child(15) { --duree: 9.2s; --duree-balancement: 3.6s; left: 65%; animation-delay: 2.2s; }

/* Les feuilles sont maintenant visibles sur tous les appareils */
