/**
 * Cookie Consent Banner Styles
 * Design moderne avec thème montagne SETIC FLUIDES
 */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(0, 105, 175, 0.98) 0%, rgba(0, 30, 48, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  border-top: 3px solid rgba(249, 115, 22, 0.8);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
  padding: 1.5rem;
}

.cookie-consent-banner.cookie-consent-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-icon {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
  animation: cookie-bounce 2s ease-in-out infinite;
}

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

.cookie-consent-text {
  flex: 1 1 300px;
  color: #fff;
}

.cookie-consent-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.cookie-consent-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.cookie-link {
  color: #fbbf24;
  text-decoration: underline;
  transition: color 0.2s ease;
  font-weight: 600;
}

.cookie-link:hover {
  color: #f97316;
  text-decoration: none;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.cookie-btn-accept:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

/* Focus pour accessibilité */
.cookie-btn:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1rem;
  }

  .cookie-consent-content {
    gap: 1rem;
    text-align: center;
    justify-content: center;
  }

  .cookie-consent-icon {
    font-size: 2.5rem;
    width: 100%;
  }

  .cookie-consent-text {
    flex: 1 1 100%;
  }

  .cookie-consent-title {
    font-size: 1.1rem;
  }

  .cookie-consent-description {
    font-size: 0.875rem;
  }

  .cookie-consent-actions {
    flex: 1 1 100%;
    justify-content: center;
    width: 100%;
  }

  .cookie-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    flex: 1;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .cookie-consent-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* Animation de pulsation pour attirer l'attention sur les boutons */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
  }
}

.cookie-btn-accept {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Désactiver l'animation au survol */
.cookie-btn-accept:hover {
  animation: none;
}
