/* ===== BANNIÈRE DE COOKIES ===== */

#cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 24px;
  z-index: 9999;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 3px solid #e8722a;
}

#cookie-banner.show {
  bottom: 0;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner-text h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.cookie-banner-text a {
  color: #e8722a;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: #e8722a;
  color: #fff;
}

.cookie-btn-primary:hover {
  background: #d66424;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 114, 42, 0.3);
}

.cookie-btn-secondary {
  background: #f5f5f5;
  color: #333;
}

.cookie-btn-secondary:hover {
  background: #e0e0e0;
}

.cookie-btn-text {
  background: transparent;
  color: #666;
  padding: 12px 16px;
}

.cookie-btn-text:hover {
  color: #e8722a;
  background: rgba(232, 114, 42, 0.05);
}

/* ===== MODAL DE PARAMÈTRES ===== */

#cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

#cookie-settings-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-content {
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#cookie-settings-modal.show .cookie-settings-content {
  transform: scale(1);
}

.cookie-settings-header {
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.cookie-settings-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  color: #1a1a1a;
}

.cookie-settings-header p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.cookie-settings-body {
  padding: 24px;
}

.cookie-category {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cookie-category-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.cookie-category-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

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

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #e8722a;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #e8722a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
}

.cookie-settings-footer {
  padding: 24px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-banner-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
  
  .cookie-settings-footer {
    flex-direction: column;
  }
  
  .cookie-settings-footer .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #cookie-banner {
    padding: 16px;
  }
  
  .cookie-banner-text h3 {
    font-size: 16px;
  }
  
  .cookie-banner-text p {
    font-size: 13px;
  }
  
  .cookie-settings-header {
    padding: 20px;
  }
  
  .cookie-settings-header h2 {
    font-size: 20px;
  }
  
  .cookie-settings-body {
    padding: 20px;
  }
}
