/* lucookies — bandeau de cookies (couleurs du thème lutton : crème, encre, terre cuite). */
.lu-ck {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1090;
  width: min(27.5rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2.5rem);
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: #fff;
  color: #1c2418;
  border: 1px solid rgba(28, 36, 24, 0.1);
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px -20px rgba(28, 36, 24, 0.35);
  font-size: 0.9375rem;
  line-height: 1.5;
  animation: lu-ck-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.lu-ck[hidden],
.lu-ck [hidden] { display: none !important; }

@keyframes lu-ck-in {
  from { opacity: 0; transform: translateY(12px); }
}

.lu-ck__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.15;
  outline: none;
}

.lu-ck__text { margin: 0 0 1rem; color: #4b5641; }
.lu-ck__text a { color: #1c2418; text-decoration: underline; text-underline-offset: 2px; }
.lu-ck__text a:hover { color: #c4532b; }

.lu-ck__prefs { margin: 0 0 1rem; border-top: 1px solid rgba(28, 36, 24, 0.1); }

.lu-ck__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(28, 36, 24, 0.1);
}

label.lu-ck__row { cursor: pointer; }
.lu-ck__label strong { display: block; }
.lu-ck__label small { display: block; color: #5b6352; font-size: 0.8125rem; line-height: 1.4; }
.lu-ck__always { flex: none; color: #5b6352; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }

/* Interrupteur */
.lu-ck__switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  margin: 0;
  border-radius: 999px;
  background: rgba(28, 36, 24, 0.25);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lu-ck__switch::after {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.lu-ck__switch:checked { background: #1c2418; }
.lu-ck__switch:checked::after { transform: translateX(1.25rem); }
.lu-ck__switch:focus-visible { outline: 2px solid #c4532b; outline-offset: 2px; }

/* Refuser et accepter : deux boutons identiques, côte à côte. */
.lu-ck__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.lu-ck__btn { padding: 0.7rem 1rem; font-size: 0.9375rem; white-space: nowrap; }

.lu-ck__more {
  grid-column: 1 / -1;
  justify-self: center;
  padding: 0.375rem 0.5rem 0;
  border: 0;
  background: none;
  color: #1c2418;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.lu-ck__more:hover { color: #c4532b; }

/* Lien du pied de page : hérite de la couleur du texte voisin. */
.lu-ck-open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.lu-ck-open:hover { color: #fff; }

@media (max-width: 575.98px) {
  .lu-ck { left: 0.75rem; bottom: 0.75rem; padding: 1.25rem; border-radius: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lu-ck { animation: none; }
  .lu-ck__switch,
  .lu-ck__switch::after { transition: none; }
}
