/* === ArtValue — Consentement cookies === */

/* ── Langue : règles nécessaires pour les pages sans CSS .t ── */
.t { display: none; }
html[lang^="fr"] .t.fr,
html[lang^="en"] .t.en,
html[lang^="es"] .t.es,
html[lang^="it"] .t.it,
html[lang^="de"] .t.de,
html[lang^="zh"] .t.zh,
html[lang^="pt"] .t.pt { display: inline; }

/* ── Bandeau ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(6,10,18,.97);
  border-top: 1px solid rgba(202,161,78,.25);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(100%);
  transition: transform .35s ease;
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner > p {
  margin: 0;
  font-size: 12.5px;
  color: #c9d0dc;
  line-height: 1.5;
  flex: 1;
  min-width: 180px;
}
#cookie-banner a { color: #caa14e; text-decoration: underline; }

.ck-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}
.ck-ok {
  background: #caa14e;
  color: #05080e;
  font-size: 13px;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
}
.ck-no {
  background: transparent;
  color: #e8e0d5;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid rgba(232,224,213,.45);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.ck-prefs {
  background: transparent;
  color: #a8b5c4;
  font-size: 12px;
  font-weight: 500;
  border: none;
  border-bottom: 1px solid rgba(168,181,196,.35);
  border-radius: 0;
  padding: 3px 2px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.ck-ok:hover   { background: #dbb55c; }
.ck-no:hover   { border-color: rgba(232,224,213,.75); color: #fff; }
.ck-prefs:hover { color: #caa14e; border-bottom-color: #caa14e; }

@media (max-width: 420px) {
  .ck-btns { justify-content: flex-end; }
  .ck-prefs { order: 3; flex-basis: 100%; text-align: center; margin-top: 2px; }
}

/* ── Overlay préférences ── */
#cookie-pref-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px 24px;
}
#cookie-pref-overlay.open { display: flex; }

/* ── Panneau préférences ── */
#cookie-pref-panel {
  position: relative;
  width: min(100%, 480px);
  background: #0c1420;
  border: 1px solid rgba(202,161,78,.3);
  border-radius: 24px 24px 20px 20px;
  padding: 24px 20px 20px;
  box-shadow: 0 -20px 60px rgba(0,0,0,.55);
  max-height: 90vh;
  overflow-y: auto;
}
.ck-pref-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: #8896a5;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: inherit;
}
.ck-pref-close:hover { color: #f6f3ee; }
#cookie-pref-panel > h3 {
  margin: 0 0 16px;
  font-size: 16px;
  color: #f6f3ee;
  padding-right: 36px;
  line-height: 1.4;
}

/* ── Catégorie ── */
.ck-cat {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 14px 0;
}
.ck-cat:last-of-type { padding-bottom: 0; }
.ck-cat-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  justify-content: space-between;
}
.ck-cat-info { flex: 1; min-width: 0; }
.ck-cat-info strong {
  display: block;
  font-size: 13.5px;
  color: #f6f3ee;
  margin-bottom: 5px;
}
.ck-cat-info p {
  margin: 0;
  font-size: 12px;
  color: #8896a5;
  line-height: 1.55;
}
.ck-always {
  flex-shrink: 0;
  font-size: 11px;
  color: #9cd67a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-top: 2px;
  white-space: nowrap;
}

/* ── Interrupteur toggle ── */
.ck-toggle {
  flex-shrink: 0;
  display: inline-block;
  width: 44px;
  height: 24px;
  position: relative;
  margin-top: 2px;
  cursor: pointer;
}
.ck-toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.ck-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.ck-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #c9d0dc;
  border-radius: 50%;
  transition: transform .2s;
}
.ck-toggle input:checked + .ck-slider { background: #caa14e; }
.ck-toggle input:checked + .ck-slider::before {
  transform: translateX(20px);
  background: #05080e;
}

/* ── Boutons du panneau ── */
.ck-pref-btns {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 16px;
}
.ck-pref-refuse,
.ck-pref-save,
.ck-pref-accept {
  flex: 1;
  min-width: 90px;
  padding: 10px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.ck-pref-refuse {
  background: transparent;
  color: #e8e0d5;
  border: 1.5px solid rgba(232,224,213,.35);
}
.ck-pref-refuse:hover { border-color: rgba(232,224,213,.7); }
.ck-pref-save {
  background: rgba(202,161,78,.12);
  color: #caa14e;
  border: 1px solid rgba(202,161,78,.38);
}
.ck-pref-save:hover { background: rgba(202,161,78,.22); }
.ck-pref-accept {
  background: #caa14e;
  color: #05080e;
  border: none;
}
.ck-pref-accept:hover { background: #dbb55c; }

/* ── Lien "Gérer mes préférences cookies" dans le footer ── */
.ck-manage-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.ck-manage-btn:hover { color: #caa14e; text-decoration: underline; }
