/* =============================================
   accueil.css - Styles propres à la page d'accueil et à l'offre
   (animations, cartes et CTA mobiles)
   votre-isolation.com
   ============================================= */

:where([class^="ri-"])::before {
  content: "\f3c2";
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.shake-animation {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.floating-element {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.countdown-timer {
  background: linear-gradient(45deg, #059669, #047857);
  animation: countdown-glow 1s ease-in-out infinite alternate;
}

@keyframes countdown-glow {
  from {
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
  }
  to {
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.8);
  }
}

.mobile-hero-bg {
  background-image: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  position: relative;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .mobile-enhanced {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(240,253,244,0.9) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(5, 150, 105, 0.1);
  }
  .mobile-cta {
    position: relative;
    overflow: hidden;
  }
  .mobile-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 2s infinite;
  }
  @keyframes shine {
    0% {
      left: -100%;
    }
    100% {
      left: 100%;
    }
  }
  .mobile-optimized-text {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    line-height: 1.2;
  }
  .mobile-optimized-subtext {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
  .mobile-form-spacing {
    padding: 1rem;
  }
  .mobile-section-padding {
    padding: 2rem 1rem;
  }
  .mobile-card-spacing {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .mobile-hero-bg {
    padding-top: 1rem;
  }
  .mobile-form-container {
    margin: 0 0.5rem;
  }
  .mobile-tight-spacing {
    gap: 0.75rem;
  }
  .mobile-compact-text {
    font-size: 0.875rem;
    line-height: 1.3;
  }
}

.mobile-card-hover {
  transition: all 0.3s ease;
}

.mobile-card-hover:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(45deg, #059669, #047857);
  animation: pulse-glow 2s infinite;
  padding: 0.75rem 1rem;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 -5px 20px rgba(5, 150, 105, 0.3);
  }
  50% {
    box-shadow: 0 -10px 30px rgba(5, 150, 105, 0.5);
  }
}
