/* Brivika cookie consent — bandeau bas + modale préférences (CNIL-conforme) */

.bcc-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 1100px;
  margin: 0 auto;
  background: #FFFFFF;
  color: var(--ink, #1d1d1f);
  border: 1px solid var(--line, #EDE5D4);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 30, 50, 0.18);
  padding: 20px 24px;
  z-index: 9999;
  font-family: 'Inter', -apple-system, sans-serif;
  display: none;
}
.bcc-banner.bcc-show { display: block; }

.bcc-banner-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.bcc-banner-text {
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted, #6b6b6f);
}
.bcc-banner-text strong {
  color: var(--ink, #1d1d1f);
  font-weight: 700;
}
.bcc-banner-text a {
  color: var(--accent, #C0504D);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bcc-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bcc-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.bcc-btn-primary {
  background: linear-gradient(135deg, var(--accent, #C0504D), var(--coral, #FF7F50));
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(192, 80, 77, 0.28);
}
.bcc-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(192, 80, 77, 0.36); }
.bcc-btn-secondary {
  background: var(--bg-soft, #FAF3E7);
  color: var(--ink, #1d1d1f);
}
.bcc-btn-secondary:hover { background: #F0E7D2; }
.bcc-btn-link {
  background: transparent;
  color: var(--muted, #6b6b6f);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 11px 12px;
}
.bcc-btn-link:hover { color: var(--ink, #1d1d1f); }

/* Modale préférences */
.bcc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 50, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  font-family: 'Inter', -apple-system, sans-serif;
}
.bcc-modal-overlay.bcc-show { display: flex; }

.bcc-modal {
  background: #FFFFFF;
  color: var(--ink, #1d1d1f);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 60px rgba(15, 30, 50, 0.35);
}
.bcc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-soft, #FAF3E7);
  color: var(--ink, #1d1d1f);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.bcc-modal-close:hover { background: #F0E7D2; }
.bcc-modal h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-right: 32px;
}
.bcc-modal-intro {
  color: var(--muted, #6b6b6f);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.bcc-modal-intro a {
  color: var(--accent, #C0504D);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bcc-cat {
  border: 1px solid var(--line, #EDE5D4);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
}
.bcc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bcc-cat-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1d1d1f);
}
.bcc-cat-desc {
  font-size: 13px;
  color: var(--muted, #6b6b6f);
  line-height: 1.55;
  margin-top: 8px;
}

/* Toggle switch */
.bcc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.bcc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.bcc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #D1CDBE;
  border-radius: 999px;
  transition: background-color .2s ease;
}
.bcc-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bcc-switch input:checked + .bcc-slider {
  background: linear-gradient(135deg, var(--accent, #C0504D), var(--coral, #FF7F50));
}
.bcc-switch input:checked + .bcc-slider::before {
  transform: translateX(20px);
}
.bcc-switch input:disabled + .bcc-slider {
  opacity: 0.55;
  cursor: not-allowed;
}
.bcc-locked {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #6b6b6f);
  background: var(--bg-soft, #FAF3E7);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.bcc-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.bcc-modal-actions .bcc-btn { flex: 1; min-width: 140px; justify-content: center; display: inline-flex; align-items: center; }

/* Mobile */
@media (max-width: 640px) {
  .bcc-banner {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 16px 18px;
    border-radius: 14px;
  }
  .bcc-banner-inner { gap: 14px; }
  .bcc-banner-actions { width: 100%; }
  .bcc-banner-actions .bcc-btn { flex: 1; text-align: center; justify-content: center; display: inline-flex; align-items: center; }
  .bcc-modal { padding: 24px 20px; border-radius: 16px; }
  .bcc-modal h2 { font-size: 22px; }
}
