/* ═════════ Bandeau cookies Eden Studio ═════════
   Une carte posée en bas à gauche (au-dessus de la barre d'action sur mobile),
   un biscuit qui se fait croquer, deux choix de même poids. */
.ck {
  --ck-nuit: #0A1033; --ck-cobalt: #0A2CD8; --ck-bleu: #2F5BFF; --ck-glace: #E6EDFF; --ck-papier: #F4F1EA;
  --ck-ease: cubic-bezier(.32, .72, 0, 1); --ck-pop: cubic-bezier(.34, 1.35, .64, 1);
  position: fixed; z-index: 90; left: 20px; bottom: 20px; width: min(392px, calc(100vw - 32px));
  padding: 20px 20px 18px; border-radius: 24px; background: #FBFAF7; color: var(--ck-nuit);
  font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: -.01em;
  box-shadow: 0 0 0 1px rgba(10, 16, 51, .06), 0 2px 4px rgba(10, 16, 51, .05), 0 24px 60px -18px rgba(10, 16, 51, .38);
  opacity: 0; transform: translateY(18px) scale(.98); filter: blur(8px); pointer-events: none;
  transition: opacity .5s var(--ck-ease), transform .6s var(--ck-ease), filter .5s var(--ck-ease);
}
.ck.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.ck[hidden] { display: none; }

.ck-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.ck-k { margin: 0 0 2px; font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ck-cobalt); }
.ck-t { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.ck-p { margin: 0 0 16px; color: rgba(10, 16, 51, .7); }
.ck-p a { color: var(--ck-cobalt); text-underline-offset: 3px; }

/* Le biscuit : bleu Eden, pépites claires, une bouchée qui part quand on accepte */
.ck-bisc { position: relative; flex: none; width: 54px; height: 54px; animation: ck-tangue 5s ease-in-out 1.2s infinite; }
.ck-bisc svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ck-bisc .ck-pate { fill: var(--ck-bleu); }
.ck-bisc .ck-bord { fill: none; stroke: var(--ck-cobalt); stroke-width: 2; opacity: .55; }
.ck-bisc .ck-pep { fill: var(--ck-glace); }
.ck-bisc .ck-miette { fill: var(--ck-bleu); opacity: 0; }
.ck-bisc::after { content: ""; position: absolute; inset: 8px -4px -6px; z-index: -1; border-radius: 50%; background: rgba(47, 91, 255, .35); filter: blur(12px); }
.ck.is-croque .ck-bisc { animation: ck-croque .5s var(--ck-pop) both; }
.ck.is-croque .ck-miette { animation: ck-miette .7s var(--ck-ease) both; }
.ck.is-croque .ck-miette:nth-of-type(2) { animation-delay: .04s; }
.ck.is-croque .ck-miette:nth-of-type(3) { animation-delay: .08s; }

.ck-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ck-b { appearance: none; min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; cursor: pointer;
  transition: transform .3s var(--ck-ease), background-color .3s var(--ck-ease), box-shadow .3s var(--ck-ease); }
.ck-b:active { transform: scale(.97); }
.ck-b:focus-visible { outline: 2px solid var(--ck-bleu); outline-offset: 3px; }
.ck-non { background: var(--ck-glace); color: var(--ck-nuit); box-shadow: inset 0 0 0 1px rgba(10, 44, 216, .14); }
.ck-non:hover { background: #D9E3FF; }
.ck-oui { background: var(--ck-nuit); color: #fff; box-shadow: -4px 8px 18px -8px rgba(10, 16, 51, .55), inset 0 1px 0 rgba(255, 255, 255, .14); }
.ck-oui:hover { background: var(--ck-cobalt); }

.ck-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgba(10, 16, 51, .45); cursor: pointer; transition: background-color .3s var(--ck-ease), color .3s var(--ck-ease); }
.ck-x:hover { background: rgba(10, 16, 51, .06); color: var(--ck-nuit); }
.ck-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }

/* Bouton « Gérer les cookies » placé dans un pied de page */
.ck-gerer { appearance: none; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ck-gerer:hover { text-decoration: underline; text-underline-offset: 3px; }

@keyframes ck-tangue { 0%, 100% { rotate: 0deg; translate: 0 0; } 50% { rotate: -8deg; translate: 0 -2px; } }
@keyframes ck-croque { 0% { scale: 1; } 40% { scale: .86; rotate: 10deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes ck-miette { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: var(--dx, 10px) var(--dy, 16px); } }

@media (max-width: 700px) {
  .ck { left: 10px; right: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 18px 16px 16px; border-radius: 22px;
    transition: opacity .5s var(--ck-ease), transform .6s var(--ck-ease), filter .5s var(--ck-ease), bottom .6s var(--ck-ease); }
  /* Quand la barre « Réserver un appel » est sortie, la carte se pose au-dessus */
  .barre-on .ck { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .ck-bisc { width: 46px; height: 46px; }
  .ck-t { font-size: 17.5px; }
  .ck-p { font-size: 13.5px; margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ck { transition: opacity .2s linear; transform: none; filter: none; }
  .ck-bisc, .ck.is-croque .ck-bisc, .ck.is-croque .ck-miette { animation: none; }
}
