@charset "utf-8";
/* CSS Document */

/* =========================
   Settings Toggle - Toujours visible en haut à droite
   ========================= */
.form-check.form-switch {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}
.zb-settings-toggle {
  position: fixed;
  top: 70px; /* Sous la nav */
  right: 30px;
  z-index: 1030;
  
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.60)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  border: 2px solid rgba(14, 165, 233, 0.20);
  border-radius: 999px;
  
  box-shadow: 
    0 8px 24px rgba(14, 165, 233, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  
  padding: 8px 16px;
  
  transition: all 0.3s ease;
}

.zb-settings-toggle__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Switch personnalisé */
.zb-switch {
  width: 56px !important;
  height: 28px !important;
  flex-shrink: 0;
  margin: 0 !important;
  cursor: pointer;
  background-color: rgba(14, 165, 233, 0.20) !important;
  border: 1px solid rgba(14, 165, 233, 0.30) !important;
  transition: all 0.3s ease;
}

.zb-switch:checked {
  background-color: #0EA5E9 !important;
  border-color: #0EA5E9 !important;
}

.zb-switch:focus {
  box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.25) !important;
  border-color: rgba(14, 165, 233, 0.40) !important;
}

.zb-switch__label {
  color: #0F172A;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  margin: 0;
  line-height: 1.2;
}

/* Select template */
.zb-template-select {
  display: inline-flex;
  align-items: center;
}

.zb-select {
  min-width: 140px;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(14, 165, 233, 0.20) !important;
  background: rgba(255, 255, 255, 0.70) !important;
  color: #0F172A !important;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  
  /* Flèche custom */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230EA5E9' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 10px !important;
  padding-right: 32px !important;
  
  transition: all 0.2s ease;
}

.zb-select:focus {
  border-color: rgba(14, 165, 233, 0.40) !important;
  box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.15) !important;
  outline: none;
}

.zb-select:hover {
  background: rgba(255, 255, 255, 0.90) !important;
  border-color: rgba(14, 165, 233, 0.30) !important;
}

.zb-settings-toggle__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.zb-template-select {
  display: flex;
  align-items: center;
}
/* Responsive mobile */
@media (max-width: 767.98px) {
  .zb-settings-toggle {
    top: 70px;
    right: 10px;
    left: 10px;
    border-radius: 20px;
    padding: 10px 12px;
  }
  
  .zb-settings-toggle__inner {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .form-check {
    width: 100%;
  }
  
  .zb-template-select {
    width: 100%;
  }
  
  .zb-select {
    width: 100%;
  }
  
  .zb-switch__label {
    font-size: 0.85rem;
  }
}

/* Si cookie banner visible, descendre le toggle */
body:has(.cookie-banner:not(.d-none)) .zb-settings-toggle {
  top: 90px;
}

@media (max-width: 767.98px) {
  body:has(.cookie-banner:not(.d-none)) .zb-settings-toggle {
    top: 70px;
  }
}

/* Animation d'entrée */
.zb-settings-toggle {
  animation: slideInRight 0.4s ease-out;
}

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