/* Cookie Banner & Preferences Modal - Éclaire Studio */

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: none;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.cc-banner.is-open {
  display: block;
}

.cc-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cc-text {
  flex: 1 1 420px;
  min-width: 280px;
}

.cc-title {
  font-weight: 700;
  margin: 0 0 6px 0;
  font-size: 14px;
}

.cc-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.75);
}

.cc-links {
  margin-top: 8px;
  font-size: 13px;
}

.cc-links a {
  color: inherit;
  text-decoration: underline;
}

.cc-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
}

.cc-btn {
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #f6f6f6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}

.cc-btn.primary {
  background: #111;
  border-color: #111;
  color: #fff;
}

.cc-btn:active {
  transform: translateY(1px);
}

/* Modal */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: rgba(0, 0, 0, 0.45);
  padding: 22px;
}

.cc-modal.is-open {
  display: grid;
  place-items: center;
}

.cc-modal-card {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.cc-modal-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cc-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.cc-modal-body {
  padding: 16px 18px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.80);
}

.cc-opt {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cc-opt:first-of-type {
  border-top: 0;
}

.cc-opt strong {
  display: block;
  font-size: 13px;
}

.cc-opt small {
  display: block;
  color: rgba(0, 0, 0, 0.65);
  margin-top: 2px;
}

.cc-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.cc-switch input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.cc-modal-foot {
  padding: 14px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
