/* =============================================
   POPUP COOKIES — Design inspiré Axeptio
   Polices : Poppins / Playfair Display (site)
   Couleur : #c0e2ca (--green) · #333333 (--dark)
   ============================================= */

#ck-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 9998;
  animation: ckFadeIn .25s ease;
}

#ck-popup {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 340px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .15);
  z-index: 9999;
  padding: 24px 22px 18px;
  font-family: 'Poppins', sans-serif;
  animation: ckSlideUp .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes ckSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ckFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Hero ─────────────────────────────────── */
#ck-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

#ck-emoji {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
}

#ck-titles {
  display: flex;
  flex-direction: column;
}

#ck-t1 {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #888;
  font-weight: 400;
  font-style: italic;
}

#ck-t2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: #333333;
  line-height: 1.2;
  font-weight: 700;
}

/* ── Corps ────────────────────────────────── */
#ck-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #555;
  line-height: 1.65;
  margin: 0 0 8px;
}

#ck-link {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #333333;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  margin-bottom: 14px;
}

#ck-link:hover {
  color: var(--couleur);
}

/* ── Catégories ───────────────────────────── */
#ck-categories {
  display: none;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-bottom: 6px;
}

.ck-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.ck-cat:last-child {
  border-bottom: none;
}

.ck-cat-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ck-cat-text strong {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: #333333;
  font-weight: 600;
}

.ck-cat-text span {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #888;
  line-height: 1.45;
}

/* ── Toggle switch (100% JS, sans checkbox) ── */
.ck-toggle {
  flex-shrink: 0;
  cursor: pointer;
  display: inline-block;
  -webkit-user-select: none;
  user-select: none;
}

.ck-tog-track {
  display: flex;
  align-items: center;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #ccc;
  padding: 3px;
  box-sizing: border-box;
  transition: background .25s ease;
}

.ck-tog-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  transition: transform .25s ease;
  flex-shrink: 0;
}

/* ── Boutons ──────────────────────────────── */
#ck-footer {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}

.ck-btn {
  flex: 1;
  padding: 10px 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid var(--couleur);
  transition: all .18s;
  letter-spacing: .3px;
  line-height: 1.2;
}

.ck-btn-outline {
  background: #fff;
  color: #333333;
}

.ck-btn-outline:hover {
  background: var(--couleur);
  color: #333333;
}

.ck-btn-fill {
  background: var(--couleur);
  color: #333333;
}

.ck-btn-fill:hover {
  background: var(--couleur);
  border-color: var(--couleur);
}

/* ── Badge ────────────────────────────────── */
#ck-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  color: #bbb;
  margin-top: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 420px) {
  #ck-popup {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 10px;
  }
}
