/* 🎄 Styles de Noël et animations */

/* Bannière de Noël animée */
.christmas-banner {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #27ae60 100%);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  animation: christmasGlow 2s ease-in-out infinite;
}

.christmas-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.christmas-icon {
  font-size: 28px;
  animation: bounce 1s ease-in-out infinite;
}

.christmas-icon:nth-child(3) {
  animation-delay: 0.3s;
}

.christmas-text {
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Animation de neige */
.snow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle, white 1px, transparent 1px),
    radial-gradient(circle, white 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 40px 40px;
  animation: snowfall 20s linear infinite;
  opacity: 0.3;
  z-index: 1;
}

@keyframes christmasGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(39, 174, 96, 0.5);
  }
}

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

@keyframes snowfall {
  0% {
    background-position: 0 0, 40px 40px;
  }
  100% {
    background-position: 0 50px, 40px 90px;
  }
}

/* Message vide stylé et animé */
.empty-products-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

.empty-products-message::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(231,76,60,0.05) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

.empty-icon {
  font-size: 120px;
  margin-bottom: 20px;
  animation: swing 2s ease-in-out infinite;
  display: inline-block;
}

.empty-products-message h2 {
  color: #2c3e50;
  font-size: 32px;
  margin: 20px 0;
  font-weight: 700;
}

.empty-products-message p {
  color: #7f8c8d;
  font-size: 18px;
  margin: 15px 0 30px 0;
}

.empty-decoration {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.snowflake {
  font-size: 40px;
  animation: float 3s ease-in-out infinite;
  display: inline-block;
}

.snowflake:nth-child(2) {
  animation-delay: 1s;
}

.snowflake:nth-child(3) {
  animation-delay: 2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes swing {
  0%, 100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(10deg);
  }
  66% {
    transform: translateY(-10px) rotate(-10deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

/* Background de Noël pour le hero */
.hero {
  background-image: 
    linear-gradient(135deg, rgba(192, 57, 43, 0.85), rgba(39, 174, 96, 0.75)),
    url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* 📱 Bouton WhatsApp flottant */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Responsive */
@media (max-width: 768px) {
  .christmas-text {
    font-size: 14px;
  }
  
  .christmas-icon {
    font-size: 20px;
  }
  
  .empty-icon {
    font-size: 80px;
  }
  
  .empty-products-message h2 {
    font-size: 24px;
  }
  
  .empty-products-message p {
    font-size: 16px;
  }
  
  .snowflake {
    font-size: 30px;
  }
  
  /* Navigation en bas sur mobile */
  .header {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }
  
  .header-container {
    flex-direction: column;
    padding: 0;
  }
  
  .logo {
    display: none;
  }
  
  .search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .nav-links {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    background: white;
  }
  
  .nav-links a {
    flex: 1;
    text-align: center;
    font-size: 12px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  
  body {
    padding-top: 60px;
    padding-bottom: 70px;
  }
  
  .whatsapp-float {
    bottom: 90px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
