/* ═══════════════════════════════════════════════════
   PAGE COOKIES
═══════════════════════════════════════════════════ */

.ck-intro {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  padding-bottom: 8px;
}

/* ── Table ── */
.ck-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.ck-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ck-table thead tr {
  background: var(--red);
}
.ck-table thead th {
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 18px;
  text-align: left;
}
.ck-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background .2s;
}
.ck-table tbody tr:last-child { border-bottom: none; }
.ck-table tbody tr:hover { background: #fafafa; }
.ck-table tbody td {
  padding: 13px 18px;
  color: #333;
  vertical-align: top;
  line-height: 1.6;
}
.ck-table tbody td:first-child { font-weight: 600; color: #111; }
.ck-table code {
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  font-family: monospace;
  color: #20505F;
}
.ck-note {
  font-size: 13px;
  color: #888;
  font-style: italic;
  margin-top: 4px !important;
}

/* ── Préférences toggles ── */
.ck-prefs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  margin: 8px 0 20px;
}
.ck-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}
.ck-pref-item:last-child { border-bottom: none; }
.ck-pref-info { flex: 1; }
.ck-pref-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.ck-pref-name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.ck-pref-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--red);
  padding: 3px 10px;
  border-radius: 100px;
}
.ck-pref-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  margin: 0 !important;
}

/* Toggle switch */
.ck-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}
.ck-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.ck-toggle-track {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 100px;
  transition: background .3s;
}
.ck-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: transform .3s;
}
.ck-toggle input:checked + .ck-toggle-track { background: #20505F; }
.ck-toggle input:checked + .ck-toggle-track::after { transform: translateX(22px); }
.ck-toggle--disabled { cursor: not-allowed; opacity: .65; }
.ck-toggle--disabled input:checked + .ck-toggle-track { background: #20505F; }

/* Bouton enregistrer */
.ck-save-btn {
  display: inline-block;
  background: #20505F;
  color: #ffffff;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 13px 34px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.ck-save-btn:hover {
  background: #174050;
  transform: translateY(-1px);
}
.ck-save-confirm {
  margin-top: 10px !important;
  font-size: 13px;
  font-weight: 600;
}

/* Liste navigateurs */
.ck-browsers {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.ck-browsers li a {
  color: #20505F;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.ck-browsers li a:hover { color: var(--red); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .ck-pref-item { flex-direction: row; gap: 16px; }
  .ck-table { font-size: 12px; }
  .ck-table thead th,
  .ck-table tbody td { padding: 10px 12px; }
}
