#cc-banner,
#cc-modal {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: var(--ink, #1C1C1A);
  line-height: 1.6;
}

/* ---- Carte flottante (bas gauche) ---- */
#cc-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  background: var(--paper, #FBFAF7);
  border: 1px solid var(--rule, #E3E0D8);
  border-left: 2px solid var(--accent, #A64B32);
  border-radius: 0;
  box-shadow: none;
  padding: 1.75rem 1.75rem 1.5rem 1.75rem;
  z-index: 99998;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

#cc-banner.cc-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#cc-banner h2 {
  font-family: var(--font-display, 'Spectral', Georgia, serif);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: normal;
  color: var(--ink, #1C1C1A);
  margin: 0 0 0.6rem 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
  border: none;
  padding: 0;
}

#cc-banner p {
  margin: 0 0 1.25rem 0;
  color: var(--ink-soft, #5A5853);
  font-size: 0.92rem;
  line-height: 1.6;
}

#cc-banner p a {
  color: var(--accent, #A64B32);
  text-decoration: none;
  border-bottom: 1px solid var(--accent, #A64B32);
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#cc-banner p a:hover {
  color: var(--ink, #1C1C1A);
  border-bottom-color: var(--ink, #1C1C1A);
}

/* ---- Boutons ---- */
.cc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cc-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1rem;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  width: 100%;
  text-transform: none;
}

.cc-btn-primary {
  background: var(--accent, #A64B32);
  color: var(--paper, #FBFAF7);
  border: 1px solid var(--accent, #A64B32);
}
.cc-btn-primary:hover {
  background: var(--ink, #1C1C1A);
  border-color: var(--ink, #1C1C1A);
  color: var(--paper, #FBFAF7);
}

.cc-btn-secondary {
  background: transparent;
  color: var(--ink, #1C1C1A);
  border: 1px solid var(--ink, #1C1C1A);
}
.cc-btn-secondary:hover {
  background: var(--ink, #1C1C1A);
  color: var(--paper, #FBFAF7);
}

.cc-btn-link {
  background: none;
  border: none;
  color: var(--ink-soft, #5A5853);
  font-size: 0.82rem;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 0.5rem 0.25rem 0.25rem 0.25rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cc-btn-link:hover {
  color: var(--accent, #A64B32);
  border-bottom-color: var(--accent, #A64B32);
}

/* ---- Modale de préférences ---- */
#cc-modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 26, 0.5);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#cc-modal.cc-visible {
  display: flex;
}

.cc-modal-box {
  background: var(--paper, #FBFAF7);
  border: 1px solid var(--rule, #E3E0D8);
  border-radius: 0;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  box-shadow: none;
  animation: ccFadeIn 0.3s ease;
}

@keyframes ccFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cc-modal-box h2 {
  font-family: var(--font-display, 'Spectral', Georgia, serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink, #1C1C1A);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
  border: none;
  padding: 0;
}

.cc-modal-box > h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent, #A64B32);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.cc-category {
  border: none;
  border-top: 1px solid var(--rule, #E3E0D8);
  border-radius: 0;
  padding: 1.25rem 0;
  margin: 0;
  transition: none;
}

.cc-category:hover {
  background: transparent;
  border-color: var(--rule, #E3E0D8);
}

.cc-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.cc-cat-head h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink, #1C1C1A);
  margin: 0;
  font-style: normal;
  letter-spacing: 0;
}

.cc-category p {
  font-size: 0.9rem;
  color: var(--ink-soft, #5A5853);
  margin: 0;
  line-height: 1.6;
}

.cc-badge {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-muted, #8C8A85);
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-style: italic;
  font-family: var(--font-display, 'Spectral', serif);
  text-transform: none;
  letter-spacing: 0;
}

/* ---- Interrupteur (switch) ---- */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  flex-shrink: 0;
}
.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: transparent;
  border: 1px solid var(--ink-soft, #5A5853);
  border-radius: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cc-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: var(--ink-soft, #5A5853);
  border-radius: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.cc-switch input:checked + .cc-slider {
  background: transparent;
  border-color: var(--accent, #A64B32);
}
.cc-switch input:checked + .cc-slider::before {
  background: var(--accent, #A64B32);
  transform: translateX(22px);
}
.cc-switch input:disabled + .cc-slider {
  border-color: var(--rule, #E3E0D8);
  opacity: 1;
  cursor: not-allowed;
}
.cc-switch input:disabled + .cc-slider::before {
  background: var(--rule, #E3E0D8);
}

/* ---- Actions modale ---- */
.cc-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cc-modal-actions .cc-btn {
  flex: 1;
  min-width: 120px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  #cc-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 1.5rem 1.4rem 1.25rem 1.4rem;
  }
  #cc-banner h2 { font-size: 1.2rem; }
  .cc-modal-box {
    padding: 1.75rem 1.4rem 1.5rem 1.4rem;
  }
  .cc-modal-box h2 { font-size: 1.35rem; }
  .cc-modal-actions .cc-btn {
    min-width: 100%;
  }
}