/* Gestion cookies sur mesure — Créa Customa */

.cc-root,
.cc-root * {
  cursor: auto;
  box-sizing: border-box;
}

/* —— Bannière (glass bottom) —— */
.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  padding: 0 1rem 1rem;
  pointer-events: none;
}

.cc-banner-inner {
  pointer-events: auto;
  max-width: 935px;
  margin: 0 auto;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.cc-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ig-blue, #0095f6);
  margin: 0 0 .35rem;
}

.cc-banner-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ig-text, #262626);
  margin: 0 0 .45rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cc-banner-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ig-gradient, linear-gradient(45deg, #405de6, #833ab4, #e1306c, #fcaf45));
  flex-shrink: 0;
}

.cc-banner-desc {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ig-muted, #8e8e8e);
  margin: 0;
  max-width: 52ch;
}

.cc-banner-desc a {
  color: var(--ig-blue, #0095f6);
  font-weight: 500;
  text-decoration: none;
}

.cc-banner-desc a:hover {
  opacity: .85;
}

.cc-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  flex-shrink: 0;
}

/* —— Boutons —— */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.cc-btn:focus-visible {
  outline: 2px solid var(--ig-blue, #0095f6);
  outline-offset: 2px;
}

.cc-btn-primary {
  background: var(--ig-blue, #0095f6);
  color: #fff;
}

.cc-btn-primary:hover {
  background: var(--ig-blue-hover, #1877f2);
  transform: translateY(-1px);
}

.cc-btn-ghost {
  background: var(--ig-surface, #fff);
  color: var(--ig-text, #262626);
  border: 1px solid var(--ig-border, #dbdbdb);
}

.cc-btn-ghost:hover {
  background: var(--ig-bg, #fafafa);
  border-color: #c7c7c7;
}

/* —— Modale —— */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cc-modal[hidden] {
  display: none !important;
}

.cc-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.cc-modal-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 680px);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  background: var(--ig-surface, #fff);
  border: 1px solid var(--ig-border, #dbdbdb);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 24px 48px rgba(0, 0, 0, .18);
}

.cc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem .85rem 1.25rem;
  border-bottom: 1px solid var(--ig-border, #dbdbdb);
  flex-shrink: 0;
}

.cc-modal-title {
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ig-text, #262626);
}

.cc-modal-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ig-gradient, linear-gradient(45deg, #405de6, #833ab4, #e1306c, #fcaf45));
  flex-shrink: 0;
}

.cc-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ig-text, #262626);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.cc-modal-close:hover {
  background: var(--ig-bg, #fafafa);
}

.cc-modal-body {
  padding: 1.25rem 1.25rem 1rem;
  overflow-y: auto;
  flex: 1;
}

.cc-modal-intro {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ig-muted, #8e8e8e);
  margin: 0 0 1.15rem;
}

.cc-modal-intro a {
  color: var(--ig-blue, #0095f6);
  font-weight: 500;
  text-decoration: none;
}

.cc-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--ig-border, #dbdbdb);
  flex-shrink: 0;
}

/* —— Services —— */
.cc-service {
  border: 1px solid var(--ig-border, #dbdbdb);
  border-radius: 12px;
  padding: .95rem 1rem;
  margin-bottom: .65rem;
  background: var(--ig-surface, #fff);
  transition: background .2s ease;
}

.cc-service:hover {
  background: var(--ig-bg, #fafafa);
}

.cc-service--locked {
  opacity: .92;
}

.cc-service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cc-service-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ig-text, #262626);
  margin: 0 0 .25rem;
}

.cc-service-desc {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--ig-muted, #8e8e8e);
  margin: 0;
}

/* —— Toggle iOS-style —— */
.cc-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: #dbdbdb;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease;
}

.cc-toggle--disabled {
  cursor: default;
  opacity: .75;
}

.cc-toggle--on {
  background: var(--ig-blue, #0095f6);
}

.cc-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
}

.cc-toggle--on .cc-toggle-knob {
  transform: translateX(18px);
}

.cc-toggle:focus-visible {
  outline: 2px solid var(--ig-blue, #0095f6);
  outline-offset: 2px;
}

/* —— FAB bas-gauche —— */
.cc-fab {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ig-border, #dbdbdb);
  border-radius: 999px;
  background: var(--ig-surface, #fff);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cc-fab:hover {
  transform: translateY(-2px);
  border-color: #c7c7c7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.cc-fab:focus-visible {
  outline: 2px solid var(--ig-blue, #0095f6);
  outline-offset: 2px;
}

.cc-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ig-gradient, linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d, #f56040, #fcaf45));
  color: #fff;
}

.cc-fab-icon svg {
  display: block;
}

body.cc-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .cc-banner-inner {
    flex-direction: column;
    padding: 1rem;
    border-radius: 12px;
  }

  .cc-banner-actions {
    width: 100%;
    justify-content: stretch;
  }

  .cc-banner-actions .cc-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .cc-modal-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 12px;
  }

  .cc-fab {
    left: 1rem;
    bottom: 1rem;
  }

  .cc-modal-footer {
    flex-wrap: wrap;
  }

  .cc-modal-footer .cc-btn {
    flex: 1 1 calc(50% - .25rem);
  }
}
