/* Bannière de cookies - Modal avec overlay */
.cookie-banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 11, 22, 0.95);
  backdrop-filter: blur(8px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.cookie-banner-modal {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease-out;
  position: relative;
  z-index: 99999;
  pointer-events: auto;
}

.cookie-banner-modal h2 {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(90deg, var(--fx-1), var(--fx-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cookie-banner-modal p {
  margin: 0 0 24px 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cookie-banner-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* Section paramètres (cachée par défaut) */
.cookie-settings {
  display: none;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--edge);
}

.cookie-settings.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.cookie-settings h3 {
  margin: 0 0 16px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.cookie-settings-section {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--edge);
  border-radius: 12px;
}

.cookie-settings-section h4 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-settings-section p {
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cookie-settings-section ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.cookie-settings-section ul li {
  margin-bottom: 8px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--edge);
  border-radius: 12px;
  margin-top: 16px;
}

.cookie-toggle-label {
  flex: 1;
  margin-right: 16px;
}

.cookie-toggle-label strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
}

.cookie-toggle-label small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Switch toggle */
.cookie-switch {
  position: relative;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--edge);
  transition: 0.3s;
  border-radius: 28px;
}

.cookie-switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-switch-slider {
  background: linear-gradient(90deg, var(--fx-1), var(--fx-2));
  border-color: transparent;
}

.cookie-switch input:checked + .cookie-switch-slider:before {
  transform: translateX(22px);
  background-color: white;
}

.cookie-settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--edge);
}

.cookie-settings-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.btn-refuse {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--edge);
  color: var(--muted);
}

.btn-refuse:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ink);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Scrollbar personnalisée pour le modal */
.cookie-banner-modal::-webkit-scrollbar {
  width: 8px;
}

.cookie-banner-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.cookie-banner-modal::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--fx-1), var(--fx-2));
  border-radius: 10px;
}

.cookie-banner-modal::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.2);
}

