
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Luckiest+Guy&display=swap');

html {
    scroll-behavior: smooth;
}
body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}
/* Title font */
.font-fun {
    font-family: 'Luckiest Guy', cursive;
  }
  button {
    cursor: pointer;
  }
  .max-h-0 {
    max-height: calc(var(--spacing)* 0);
}
/* ===================== ANIMATIONS ===================== */

/* 🐏 Stone arrive */
@keyframes stone-fly {
  0% {
    transform: translateY(-300px) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.animate-stone-fly {
  animation: stone-fly 1.6s ease-out forwards;
}

/* 💨 Fumée qui s’élève */
@keyframes puff {
  0% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 0.8; }
  100% { transform: translateY(-40px) scale(0.9); opacity: 0; }
}
.animate-puff {
  animation: puff 3s infinite ease-in-out;
  opacity: 0.6;
  pointer-events: none;
  z-index: 10;
}
.animate-puff-delayed {
  animation: puff 3s infinite ease-in-out;
  animation-delay: 1.5s;
  opacity: 0.6;
  pointer-events: none;
  z-index: 10;
}

/* 💨 fallback si pas de Tailwind utilities */
.smoke {
  position: absolute;
  width: 19px;
  height: 40px;
  background-image: url('./img/smoke.png');
  background-size: contain;
  background-repeat: no-repeat;
  animation: puff 3s infinite ease-in-out;
  opacity: 0.6;
  z-index: 10;
  pointer-events: none;
}

/* 🚬 Spliff arrive stylé */
@keyframes spliff-fly-in {
  0% {
    transform: translateX(100px) rotate(-15deg);
    opacity: 0;
  }
  60% {
    transform: translateX(-5px) rotate(5deg);
    opacity: 1;
  }
  100% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}
.animate-spliff {
  animation: spliff-fly-in 1.4s ease-out forwards;
  opacity: 0;
  z-index: 11;
}

/* 💡 Ampoule pop + clignote */
@keyframes bulb-pop {
  0% {
    transform: scale(0.5) rotate(-20deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
.animate-bulb-pop {
  animation: bulb-pop 1.2s ease-out 2s forwards;
  opacity: 0;
}
@keyframes bulb-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.bulb-blink {
  animation: bulb-blink 1s infinite ease-in-out;
}

/* 👀 Apparition au scroll */
.scroll-fade {
  opacity: 0;
  transition: opacity 1.2s ease-out;
}
.scroll-fade.visible {
  opacity: 1;
}

/* ✨ Ouverture modale */
@keyframes modal-in {
  0% {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.animate-modal-in {
  animation: modal-in 0.3s ease-out forwards;
}

/* 💫 Ping (par ex bouton actif) */
@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(2); opacity: 0; }
}
.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* 💤 Animation balancement (hamac) */
@keyframes swing {
  0%   { transform: rotate(2deg); }
  50%  { transform: rotate(-2deg); }
  100% { transform: rotate(2deg); }
}
.swing-container {
  animation: swing 5s ease-in-out infinite;
  transform-origin: top center;
  display: inline-block;
}

/* 💤 Zzz flottant au-dessus du personnage */
@keyframes zzz-float {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-5px); opacity: 0.8; }
  100% { transform: translateY(0); opacity: 1; }
}
.animate-zzz {
  animation: zzz-float 2.5s infinite ease-in-out;
}

@keyframes zzz-smoke {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.8);
  }
  30% {
    opacity: 1;
    transform: translate(-4px, -10px) scale(1);
  }
  60% {
    opacity: 0.8;
    transform: translate(-8px, -25px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-12px, -50px) scale(1.2);
  }
}

.animate-zzz-smoke {
  animation: zzz-smoke 4.5s ease-in-out infinite;
  position: absolute;
  left: 0;
  pointer-events: none;
}
.zzz-1 { animation-delay: 0s; }
.zzz-2 { animation-delay: 1.5s; }
.zzz-3 { animation-delay: 3s; }


@keyframes swing-depth {
  0% {
    transform: rotateX(5deg) translateZ(0) scale(1);
  }
  50% {
    transform: rotateX(-5deg) translateZ(10px) scale(1.08);
  }
  100% {
    transform: rotateX(5deg) translateZ(0) scale(1);
  }
}

.swing-depth {
  animation: swing-depth 4s ease-in-out infinite;
  transform-origin: center top;
  perspective: 800px;
  display: inline-block;
  backface-visibility: hidden;
}


/* ===================== BOUTONS CUSTOM ===================== */

/* Bouton chill vert foncé */
.btn-chill {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  color: #d1fae5; /* text-green-100 */
  background-color: #047857; /* bg-green-700 */
  border: 1px solid #065f46; /* border-green-800 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
  text-align: center;
  text-decoration: none;
}
.btn-chill:hover {
  background-color: #065f46; /* hover:bg-green-800 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Variante claire */
.btn-chill-light {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  color: #065f46; /* text-green-800 */
  background-color: #d1fae5; /* bg-green-100 */
  border: 1px solid #065f46;
  transition: all 0.3s ease-in-out;
  text-align: center;
  text-decoration: none;
}
.btn-chill-light:hover {
  background-color: #bbf7d0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.text-chill{
  color:#047857
}

  /* Centrer les slides si y'en a qu'une ou deux */
  .swiper.partner-swiper .swiper-wrapper:has(.swiper-slide:nth-child(1)) {
    height:auto !important;
  }

  .swiper.partner-swiper .swiper-slide {
    height: auto !important; /* Évite l'étirement vertical */
  }

  .swiper-slide{
    display:inherit !important;
  }