/* Bandeau de consentement cookies : reprend les variables et les boutons de style.css */
.ck {
  position: fixed; left: 24px; bottom: 24px; z-index: 45;
  width: min(440px, calc(100vw - 48px)); max-height: calc(100dvh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain;
  padding: 24px; background: var(--blanc); color: var(--noir);
  border: 1px solid var(--ligne); border-radius: var(--r);
  box-shadow: 0 2px 6px rgba(17, 17, 17, .08), 0 18px 48px rgba(17, 17, 17, .16);
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), bottom .3s var(--ease);
}
.ck[hidden] { display: none; }
.ck.ck-in { opacity: 1; transform: none; }
.ck-titre { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 0 0 10px; }
.ck-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rouge); flex: none; margin-bottom: .2em; }
.ck-texte { margin: 0 0 18px; font-size: .95rem; line-height: 1.5; color: var(--encre-2); }
.ck-texte a { color: var(--rouge-txt); font-weight: 500; white-space: nowrap; }
.ck-texte a:hover, .ck-texte a:focus-visible { color: var(--noir); }

.ck-choix { margin: 0 0 18px; border-top: 1px solid var(--ligne); }
.ck-choix[hidden] { display: none; }
.ck-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
label.ck-ligne { cursor: pointer; }
.ck-ligne strong { display: block; font-weight: 500; font-size: 1rem; line-height: 1.3; }
.ck-ligne span { display: block; font-size: .86rem; line-height: 1.4; color: var(--encre-2); }
.ck-ligne em { flex: none; font-style: normal; font-size: .82rem; color: var(--encre-2); }

/* Interrupteur : case à cocher native, redessinée */
.ck-sw {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0; cursor: pointer;
  width: 46px; height: 28px; border-radius: 999px; background: var(--gris);
  transition: background-color .2s;
}
.ck-sw::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(17, 17, 17, .25); transition: transform .25s var(--ease);
}
.ck-sw:checked { background: var(--noir); }
.ck-sw:checked::after { transform: translateX(18px); }
.ck-sw:focus-visible { box-shadow: 0 0 0 3px var(--jaune); }

.ck-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ck .btn:focus-visible { box-shadow: 0 0 0 3px var(--jaune); }
.ck .btn-ghost:focus-visible { box-shadow: inset 0 0 0 2px var(--noir), 0 0 0 3px var(--jaune); }
.ck-plus {
  display: block; width: 100%; min-height: 44px; margin: 6px 0 -12px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: .92rem; font-weight: 500; color: var(--encre-2); text-align: center;
}
.ck-plus[hidden] { display: none; }
.ck-plus:hover, .ck-plus:focus-visible { color: var(--noir); }

.menu-open .ck { display: none; }

@media (max-width: 680px) {
  .ck { left: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 20px; }
  body:has(.mobile-bar.show) .ck { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (min-width: 681px) and (max-width: 980px) {
  body:has(.mobile-bar.show) .ck { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .ck, .ck-sw, .ck-sw::after { transition: none; }
}
