.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 3px solid #4a90e2;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

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

.cookie-banner.banner-hidden {
  transform: translateY(100%);
}

.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.cookie-text p {
  margin: 0 0 12px 0;
  color: #6b7280;
  line-height: 1.5;
  font-size: 0.95rem;
}

.cookie-links {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
}

.link-btn {
  background: none;
  border: none;
  color: #4a90e2;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}

.link-btn:hover {
  color: #1d4ed8;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: flex-start;
}

.btn-reject {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reject:hover {
  background: #e5e7eb;
}

.btn-settings {
  background: white;
  color: #4a90e2;
  border: 1px solid #4a90e2;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-settings:hover {
  background: #eff6ff;
}

.btn-accept {
  background: #4a90e2;
  color: white;
  border: 1px solid #4a90e2;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-accept:hover {
  background: #1d4ed8;
}

.cookie-settings {
  border-top: 1px solid #e5e7eb;
  padding: 24px;
  background: #f9fafb;
  animation: slideDown 0.3s ease-out;
}

.cookie-settings h4 {
  margin: 0 0 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.cookie-category {
  background: white;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.category-info {
  flex: 1;
}

.category-info h5 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.category-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.4;
}

.toggle-container {
  flex-shrink: 0;
}

.toggle-input {
  display: none;
}

.toggle-label {
  display: block;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-label.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.toggle-slider {
  display: block;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-input:checked + .toggle-label {
  background: #2563eb;
}

.toggle-input:checked + .toggle-label .toggle-slider {
  transform: translateX(20px);
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-settings-cancel {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-settings-cancel:hover {
  background: #e5e7eb;
}

.btn-settings-save {
  background: #2563eb;
  color: white;
  border: 1px solid #2563eb;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-settings-save:hover {
  background: #1d4ed8;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

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

  .cookie-actions button {
    flex: 1;
    max-width: 120px;
  }

  .cookie-links {
    flex-direction: column;
    gap: 8px;
  }

  .category-header {
    flex-direction: column;
    gap: 12px;
  }

  .settings-actions {
    flex-direction: column;
  }

  .settings-actions button {
    width: 100%;
  }
}

/* Footer link pour gérer les cookies */
.cookie-manage-link {
  color: #6b7280;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

.cookie-manage-link:hover {
  color: #2563eb;
}
