/* ════════════════════════════════════════
   COOKIE BANNER v2 — RGPD compliant
   Accepter / Refuser / Personnaliser
════════════════════════════════════════ */

#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: var(--navy2, #1C2C3A);
  border-top: 1px solid rgba(255,255,255,.08);
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -4px 32px rgba(0,0,0,.25);
}
#cookie-banner.visible { transform: translateY(0); }

/* ── Main bar ── */
.ck-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 5vw;
  flex-wrap: wrap;
}
.ck-text {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  flex: 1; min-width: 260px;
}
.ck-text a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: border-color .2s;
  white-space: nowrap;
}
.ck-text a:hover { border-color: rgba(255,255,255,.7); }

.ck-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap;
}
.ck-btn {
  font-family: inherit;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 9px 20px;
  border: none; cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
  border-radius: 2px;
}
.ck-btn:hover { opacity: .82; }
.ck-btn-accept  { background: var(--rust, #7D4726); color: #fff; }
.ck-btn-refuse  { background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); }
.ck-btn-manage  { background: transparent; color: rgba(255,255,255,.45); font-size: 11px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.12); }

/* ── Detail panel ── */
.ck-detail {
  display: none;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 5vw 28px;
}
.ck-detail.open { display: block; }

.ck-detail-title {
  font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 16px;
}

.ck-toggles { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.ck-toggle-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px;
}
.ck-toggle-info { flex: 1; }
.ck-toggle-label {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.85); margin-bottom: 2px;
}
.ck-toggle-desc {
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,.45); line-height: 1.55;
}

/* Toggle switch */
.ck-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.ck-switch input { opacity: 0; width: 0; height: 0; }
.ck-switch-track {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.15);
  border-radius: 11px;
  cursor: pointer;
  transition: background .25s;
}
.ck-switch input:checked + .ck-switch-track { background: var(--rust, #7D4726); }
.ck-switch input:disabled + .ck-switch-track { background: rgba(255,255,255,.25); cursor: not-allowed; opacity: .6; }
.ck-switch-track::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff; border-radius: 50%;
  transition: transform .25s;
}
.ck-switch input:checked + .ck-switch-track::after { transform: translateX(18px); }

.ck-detail-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.ck-btn-save { background: var(--rust, #7D4726); color: #fff; }

/* ── Footer reopen link ── */
.ck-reopen-link {
  font-size: 12px; color: rgba(255,255,255,.4);
  text-decoration: none; cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  background: none; border-top: none; border-left: none; border-right: none;
  padding: 0; font-family: inherit;
}
.ck-reopen-link:hover { color: rgba(255,255,255,.7); border-bottom-color: rgba(255,255,255,.3); }
