@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/

@layer base {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: "Nunito Sans", sans-serif;
  }
  body {
    font-family: "Nunito Sans", sans-serif;
  }
}

.logo-font {
  font-family: "Libre Baskerville", serif;
}

.btn-connect {
  @apply inline-block px-6 py-3 rounded-full text-white font-semibold shadow-lg transition bg-gradient-to-r from-purple-500 to-pink-500 hover:scale-105;
}

.btn-scan {
  @apply inline-block px-8 py-4 rounded-xl text-white font-bold shadow-lg transition bg-gradient-to-r from-orange-500 to-pink-500 hover:scale-105 text-lg;
}

.btn-outline-danger {
  @apply px-4 py-2 rounded-lg border border-red-400 text-red-500 font-medium hover:bg-red-50 transition;
}

.btn-outline-info {
  @apply px-4 py-2 rounded-lg border border-blue-400 text-blue-500 font-medium hover:bg-blue-50 transition;
}

/* Loader stylé */
.loader {
  width: 64px;
  height: 64px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #ec4899;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-notion {
  @apply flex items-center justify-center px-6 py-3 
         bg-white text-black border-2 border-black 
         font-semibold rounded-xl shadow-sm hover:shadow-lg 
         transition-all duration-200;
}

.btn-notion img {
  @apply w-6 h-6 mr-2;
}
/* Animations pour l'Arbre Amanii */

/* Animation de pulsation douce pour les éléments vivants */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Animation de croissance (utilisée lors des transitions de stage) */
@keyframes grow-up {
  0% {
    transform: scale(0.9) translateY(10px);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05) translateY(-5px);
    opacity: 0.9;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.animate-grow-up {
  animation: grow-up 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animation pour les feuilles qui tombent (sécheresse) */
@keyframes fall-leaf {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(30px) rotate(45deg);
    opacity: 0;
  }
}

.animate-fall-leaf {
  animation: fall-leaf 2s ease-in forwards;
}

/* Animation de floraison pour les fleurs */
@keyframes bloom {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-bloom {
  animation: bloom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animation de respiration pour l'arbre en bonne santé (Premium) */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.animate-breathe {
  animation: breathe 4s ease-in-out infinite;
}

/* Effet de particules scintillantes */
@keyframes sparkle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0);
  }
}

.animate-sparkle {
  animation: sparkle 1.5s ease-out;
}

/* Effet de vague pour le feuillage (Premium) */
@keyframes sway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg);
  }
  75% {
    transform: rotate(-2deg);
  }
}

.animate-sway {
  animation: sway 3s ease-in-out infinite;
  transform-origin: bottom center;
}

/* Gradient animé pour les effets premium */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Effet de brillance pour les fleurs */
@keyframes shine {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
  100% {
    filter: brightness(1);
  }
}

.animate-shine {
  animation: shine 2s ease-in-out infinite;
}

/* Animation de montée de niveau (stage upgrade) */
@keyframes level-up {
  0% {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.animate-level-up {
  animation: level-up 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Effet de défilement doux pour le timelapse */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out;
}

/* Premium: Effet de lueur autour de l'arbre */
.tree-glow {
  filter: drop-shadow(0 0 20px rgba(134, 198, 133, 0.3));
  transition: filter 0.5s ease;
}

.tree-glow:hover {
  filter: drop-shadow(0 0 30px rgba(134, 198, 133, 0.5));
}

/* Effet de transition douce pour toutes les propriétés SVG */
svg * {
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
