/* =========================================================
   Bandeau et fenêtre de consentement aux cookies
   (reproduit l'apparence de celui du site d'origine)
   ========================================================= */
.ck, .ck * { box-sizing: border-box; }
.ck {
  --ck-violet: #44335C;
  --ck-texte: #362849;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: #1F2937;
  font-size: 16px;
  line-height: 24px;
}
.ck[hidden], .ck [hidden] { display: none !important; }

/* ---------- Boutons ---------- */
.ck-btn {
  height: 40px;
  padding: 8px 12px;
  border: .8px solid rgba(0, 0, 0, .2);
  border-radius: 4px;
  background: #fff;
  color: var(--ck-texte);
  font-family: inherit; font-size: 14px; line-height: 14px; font-weight: 600;
  cursor: pointer;
  transition: filter .2s;
}
.ck-btn:hover { filter: brightness(.94); }
.ck-btn-plein { background: var(--ck-violet); color: #fff; }
.ck-btn-plein:hover { filter: brightness(1.15); }
.ck-btn:focus-visible, .ck-fermer:focus-visible, .ck-cat-titre:focus-visible, .ck-rouvrir:focus-visible { outline: 2px solid var(--ck-violet); outline-offset: 2px; }

/* ---------- Bandeau en bas à gauche ---------- */
.ck-bandeau {
  position: fixed;
  left: 15px; bottom: 20px;
  width: 396px;
  max-width: calc(100vw - 30px);
  z-index: 99999;
  padding: 15px;
  background: #fff;
  border: .8px solid #ABB8C3;
  border-radius: 4px;
  box-shadow: 1px 3px 10px rgba(0, 0, 0, .2);
}
.ck-titre { margin: 0 0 6px; color: var(--ck-texte); font-size: 16px; line-height: 22.4px; font-weight: 700; }
.ck-texte { margin: 0; color: var(--ck-texte); font-size: 14px; line-height: 22px; }
.ck-boutons { display: flex; gap: 8px; margin-top: 12px; }
.ck-boutons .ck-btn { flex: 1 1 auto; }

/* ---------- Fenêtre « Personnaliser » ---------- */
.ck-voile {
  position: fixed; inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, .4);
}
.ck-fenetre {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  width: 960px;
  max-width: calc(100vw - 30px);
  height: 720px;
  max-height: calc(100vh - 30px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: .8px solid var(--ck-texte);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}
.ck-tete {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: .8px solid #ccc;
}
.ck-tete h2 { margin: 0; color: var(--ck-texte); font-family: inherit; font-size: 20px; line-height: 26px; font-weight: 700; text-transform: none; }
.ck-fermer {
  position: relative;
  width: 32px; height: 32px;
  padding: 0;
  border: 0; border-radius: 4px;
  background: transparent;
  color: #6B7280;
  cursor: pointer;
}
.ck-fermer::before, .ck-fermer::after {
  content: ""; position: absolute;
  left: 9px; top: 15px;
  width: 14px; height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.ck-fermer::after { transform: rotate(-45deg); }
.ck-fermer:hover { background: #F3F4F6; }

.ck-corps { flex: 1; overflow-y: auto; padding: 10px 20px; }
.ck-intro { padding: 0 5px; color: var(--ck-texte); font-size: 14px; line-height: 23px; }
.ck-intro p { margin: 0 0 6px; }

.ck-cat { padding: 10px 5px 12px; border-top: .8px solid #E5E7EB; }
.ck-cat-entete { display: flex; align-items: center; justify-content: space-between; min-height: 31px; }
.ck-cat-titre {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 0;
  border: 0; background: none;
  color: var(--ck-texte);
  font-family: inherit; font-size: 15px; line-height: 21px; font-weight: 700;
  cursor: pointer;
}
.ck-cat-titre::before {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .2s;
  margin-right: 3px;
}
.ck-cat-titre[aria-expanded="true"]::before { transform: rotate(45deg); }
.ck-actif { color: var(--ck-violet); font-size: 15px; font-weight: 500; }
.ck-desc { padding: 5px 64px 5px 20px; color: var(--ck-texte); font-size: 15px; line-height: 22.5px; }
.ck-liste { margin: 4px 64px 0 20px; padding: 10px 12px; background: #F7F5FA; border-radius: 4px; color: var(--ck-texte); font-size: 13px; line-height: 20px; }
.ck-liste p { margin: 0; }
.ck-liste strong { font-weight: 600; }

/* interrupteur */
.ck-inter { position: relative; display: inline-block; width: 34px; height: 21px; flex: none; }
.ck-inter input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.ck-curseur { position: absolute; inset: 0; border-radius: 34px; background: #808080; transition: background .2s; }
.ck-curseur::before {
  content: ""; position: absolute;
  left: 3.2px; bottom: 3.2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.ck-inter input:checked + .ck-curseur { background: var(--ck-violet); }
.ck-inter input:checked + .ck-curseur::before { transform: translateX(12.6px); }
.ck-inter input:focus-visible + .ck-curseur { outline: 2px solid var(--ck-violet); outline-offset: 2px; }
.ck-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ck-pied { display: flex; gap: 8px; padding: 14px 20px; border-top: .8px solid #ccc; }
.ck-pied .ck-btn { flex: 1 1 0; }
.ck-pied .ck-btn-enregistrer { flex-grow: 1.35; }

/* ---------- Bouton rond pour revenir sur ses choix ---------- */
.ck-rouvrir {
  position: fixed;
  left: 15px; bottom: 15px;
  z-index: 99997;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  padding: 0;
  border: 0; border-radius: 50%;
  background: #44335C;
  color: #fff;
  box-shadow: -4px 5px 10px rgba(0, 0, 0, .4);
  cursor: pointer;
  transition: transform .2s;
}
.ck-rouvrir:hover { transform: scale(1.06); }
.ck-rouvrir svg { width: 30px; height: 30px; }
/* si le badge reCAPTCHA est présent en bas à gauche, le bouton passe au-dessus */
.ck-avec-badge .ck-rouvrir { bottom: 90px; }

/* reCAPTCHA : badge en bas à gauche qui se déplie au survol (comme l'original) */
.grecaptcha-badge { z-index: 99996; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .ck-bandeau { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; }
  .ck-boutons { flex-wrap: wrap; }
  .ck-boutons .ck-btn-perso { flex-basis: 100%; order: 3; }
  .ck-fenetre { height: auto; }
  .ck-desc { padding-right: 0; }
  .ck-liste { margin-right: 0; }
  .ck-pied { flex-direction: column; }
  .ck-pied .ck-btn { flex: none; width: 100%; }
}
