/* ============================================
   COOKIE CONSENT BANNER - RGPD / nLPD (Suisse)
   ============================================ */

/* Overlay */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cookie-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
}

.cookie-banner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cookie-banner__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0D0D1A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner__text {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 700px;
}

.cookie-banner__text a {
  color: #FF4D00;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: #D94000;
}

/* Toggle switches */
.cookie-options {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-option__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.cookie-option__label small {
  display: block;
  font-weight: 400;
  color: #9CA3AF;
  font-size: 0.75rem;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: #E5E7EB;
  border-radius: 24px;
  cursor: pointer;
  transition: 0.3s;
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  left: 3px;
  top: 3px;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: #FF4D00;
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  background: #D1D5DB;
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-toggle input:disabled:checked + .cookie-toggle__slider {
  background: #9CA3AF;
}

/* Buttons */
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  font-family: inherit;
}

.cookie-btn--accept {
  background: #FF4D00;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

.cookie-btn--accept:hover {
  background: #D94000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 77, 0, 0.4);
}

.cookie-btn--save {
  background: #0D0D1A;
  color: #fff;
}

.cookie-btn--save:hover {
  background: #1A1A2E;
  transform: translateY(-1px);
}

.cookie-btn--reject {
  background: transparent;
  color: #6B7280;
  border: 2px solid #E5E7EB;
}

.cookie-btn--reject:hover {
  border-color: #9CA3AF;
  color: #374151;
}

/* Small settings button (shown after consent) */
.cookie-settings-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9990;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0D0D1A;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.cookie-settings-btn.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.cookie-settings-btn:hover {
  background: #FF4D00;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 640px) {
  .cookie-banner__inner {
    padding: 20px 16px;
  }

  .cookie-options {
    flex-direction: column;
    gap: 14px;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}
