/* Styles pour le bandeau de consentement aux cookies */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  padding: 20px 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
  border-top: 3px solid var(--bs-primary);
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-banner .cookie-content {
  padding: 0 15px;
}

.cookie-consent-banner .cookie-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cookie-consent-banner .cookie-title i {
  color: var(--bs-primary);
  font-size: 1.2rem;
}

.cookie-consent-banner .cookie-text {
  color: #e9ecef;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.cookie-consent-banner .cookie-actions {
  padding: 0 15px;
  justify-content: center;
}

.cookie-consent-banner .btn {
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
}

.cookie-consent-banner .btn-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.cookie-consent-banner .btn-primary:hover {
  background: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.cookie-consent-banner .btn-outline-secondary {
  color: #ffffff;
  border-color: #6c757d;
  background: transparent;
}

.cookie-consent-banner .btn-outline-secondary:hover {
  background: #6c757d;
  border-color: #6c757d;
  color: #ffffff;
  transform: translateY(-2px);
}

.cookie-consent-banner .btn-outline-primary {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
  background: transparent;
}

.cookie-consent-banner .btn-outline-primary:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Styles pour le modal de préférences */
.cookie-category {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid var(--bs-primary);
  transition: all 0.3s ease;
}

.cookie-category:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.cookie-category h6 {
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 5px;
}

.cookie-category .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.cookie-category .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.cookie-category .badge {
  font-size: 0.75rem;
  padding: 4px 8px;
}

/* Animation d'apparition */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-banner.show {
  animation: slideUp 0.4s ease-out;
}

/* Responsive */
@media (max-width: 991.98px) {
  .cookie-consent-banner .cookie-actions {
    margin-top: 15px;
  }
  
  .cookie-consent-banner .btn {
    flex: 1;
    min-width: auto;
    margin: 2px;
  }
}

@media (max-width: 767.98px) {
  .cookie-consent-banner {
    padding: 15px 0;
  }
  
  .cookie-consent-banner .cookie-title {
    font-size: 1rem;
  }
  
  .cookie-consent-banner .cookie-text {
    font-size: 0.9rem;
  }
  
  .cookie-consent-banner .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .cookie-consent-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .cookie-consent-banner .btn {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 575.98px) {
  .cookie-consent-banner {
    padding: 12px 0;
  }
  
  .cookie-consent-banner .cookie-content {
    padding: 0 10px;
  }
  
  .cookie-consent-banner .cookie-actions {
    padding: 0 10px;
  }
}

/* Effet de flou sur le contenu principal quand le bandeau est visible */
body.cookie-banner-visible {
  padding-bottom: 120px;
}

@media (max-width: 767.98px) {
  body.cookie-banner-visible {
    padding-bottom: 140px;
  }
}

/* Styles pour les cookies acceptés/refusés */
.cookie-status-accepted {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.cookie-status-rejected {
  background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

/* Animation de fermeture */
.cookie-consent-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

/* Indicateur de cookies actifs */
.cookie-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bs-primary);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 10000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.cookie-indicator.show {
  opacity: 1;
  transform: translateX(0);
}

.cookie-indicator i {
  margin-right: 5px;
}

/* Styles pour les préférences sauvegardées */
.cookie-preferences-saved {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #198754;
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  z-index: 10001;
  opacity: 0;
  transition: all 0.3s ease;
}

.cookie-preferences-saved.show {
  opacity: 1;
}

.cookie-preferences-saved i {
  margin-right: 8px;
}

/* Styles pour les notifications de cookies */
.alert.position-fixed {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  animation: slideInRight 0.3s ease-out;
}

.alert.position-fixed .btn-close {
  padding: 0.5rem 0.5rem;
  font-size: 0.8rem;
}

.alert.position-fixed.alert-success {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
  color: white;
}

.alert.position-fixed.alert-info {
  background: linear-gradient(135deg, #0dcaf0 0%, #6f42c1 100%);
  color: white;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive pour les notifications */
@media (max-width: 768px) {
  .alert.position-fixed {
    top: 70px !important;
    right: 10px !important;
    left: 10px !important;
    min-width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 576px) {
  .alert.position-fixed {
    top: 60px !important;
    font-size: 0.85rem;
    padding: 12px 15px;
  }
}
