/* -------------------------------------------------------------------------- */
/* Bannière cookies « les yeux » (js/cookies.js)                               */
/* -------------------------------------------------------------------------- */
/* Carte pilule blanche, bordure noire 1 px (comme les boutons du site), avec  */
/* les deux yeux du logo dans une pastille rose : ils suivent la souris,        */
/* clignent, font la moue sur « Juste l'essentiel » et un clin d'œil à l'accord. */
/* -------------------------------------------------------------------------- */

.ac-ck {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 2147481000;               /* sous l'intro et le panneau de transition */
  width: min(440px, calc(100vw - 40px));
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px 20px 20px;
  background: #fff;
  color: #1d1d1b;
  border: 1px solid #000;
  border-radius: 28px;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .35);
  font-family: var(--wp--preset--font-family--implantcast, var(--wp--preset--font-family--poppins, sans-serif));
  font-size: 15px;
  line-height: 1.45;
  transform: translateY(24px);
  opacity: 0;
  visibility: hidden;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), opacity .4s ease-out, visibility 0s .5s;
}
.ac-ck.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), opacity .3s ease-out, visibility 0s;
}
.ac-ck.is-leaving {
  transform: translateY(24px) scale(.96);
  opacity: 0;
}

/* --- Les yeux ------------------------------------------------------------- */
.ac-ck__eyes {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #ffd5d2;
  display: grid;
  place-items: center;
}
.ac-ck__eyes svg {
  display: block;
  width: 62px;
  height: auto;
  overflow: hidden; /* les paupières attendent au-dessus du cadre, invisibles */
}
.ac-ck__eyes .ac-ck__white { fill: #fff; stroke: #1d1d1b; stroke-width: 2.4; }
.ac-ck__eyes .ac-ck__pupil { fill: #1d1d1b; }
.ac-ck__eyes .ac-ck__lid { fill: #ffd5d2; }

/* --- Texte ---------------------------------------------------------------- */
.ac-ck__body { flex: 1 1 auto; min-width: 0; }
.ac-ck__title {
  margin: 2px 0 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}
.ac-ck__title small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  opacity: .7;
  margin-top: 3px;
}
.ac-ck__text { margin: 0 0 14px; }
.ac-ck__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
  background-image: linear-gradient(#ffd5d2, #ffd5d2);
  background-repeat: no-repeat;
  background-size: 100% 0;
  background-position: 0 100%;
  padding: .06em .18em;
  margin: -.06em -.18em;
  border-radius: .45em;
  transition: background-size .3s cubic-bezier(.1, 0, .3, 1), text-decoration-color .2s;
}
.ac-ck__text a:hover { background-size: 100% 100%; text-decoration-color: transparent; }

/* --- Actions -------------------------------------------------------------- */
.ac-ck__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}
.ac-ck__btn {
  appearance: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 11px 18px;
  border-radius: 300px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: background-color .25s ease-out, color .25s ease-out, transform .25s cubic-bezier(.16, 1, .3, 1);
}
.ac-ck__btn:hover,
.ac-ck__btn:focus-visible { background: #000; color: #fff; transform: translateY(-1px); }
.ac-ck__btn--yes { background: #000; color: #fff; }
.ac-ck__btn--yes:hover,
.ac-ck__btn--yes:focus-visible { background: #ffd5d2; color: #000; border-color: #ffd5d2; }
.ac-ck__btn:focus-visible { outline: 2px solid #ffd5d2; outline-offset: 2px; }
.ac-ck__link {
  appearance: none;
  font: inherit;
  font-size: 14px;
  background: none;
  border: 0;
  padding: 6px 2px;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.ac-ck__link:hover { text-decoration-color: transparent; background: linear-gradient(#ffd5d2, #ffd5d2) no-repeat 0 100% / 100% 100%; border-radius: .45em; }

/* --- Préférences ------------------------------------------------------------ */
.ac-ck__prefs { margin: 0 0 14px; padding: 0; list-style: none; }
.ac-ck__prefs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, .12);
}
.ac-ck__prefs li:last-child { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.ac-ck__prefs label { flex: 1 1 auto; cursor: pointer; }
.ac-ck__prefs small { display: block; font-size: 12px; opacity: .65; }
.ac-ck__prefs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ac-ck__toggle {
  flex: 0 0 auto;
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 300px;
  border: 1px solid #000;
  background: #fff;
  transition: background-color .25s ease-out;
}
.ac-ck__toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #000;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), background-color .25s;
}
.ac-ck__prefs input:checked + .ac-ck__toggle { background: #000; }
.ac-ck__prefs input:checked + .ac-ck__toggle::after { transform: translateX(18px); background: #ffd5d2; }
.ac-ck__prefs input:disabled + .ac-ck__toggle { opacity: .45; }
.ac-ck__prefs input:focus-visible + .ac-ck__toggle { outline: 2px solid #ffd5d2; outline-offset: 2px; }

/* --- Mobile ----------------------------------------------------------------- */
@media (max-width: 560px) {
  .ac-ck {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 16px;
    gap: 14px;
    border-radius: 22px;
    font-size: 14px;
  }
  .ac-ck__eyes { width: 58px; height: 58px; }
  .ac-ck__eyes svg { width: 46px; }
  .ac-ck__title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-ck, .ac-ck__btn, .ac-ck__toggle, .ac-ck__toggle::after { transition: none; }
}
