#cookie-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  /* Ton fond premium glossy */
    background:
      linear-gradient(
        180deg,
        rgba(255, 179, 198, 0.50) 0%,
        rgba(179, 199, 255, 0.50) 100%
      ),
      linear-gradient(
        75deg,
        rgba(255, 255, 255, 0.00) 0%,
        rgba(255, 255, 255, 0.45) 35%,
        rgba(255, 255, 255, 0.00) 70%
      ),
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.20) 0%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.20) 80%
      ),
      repeating-radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.22) 0px,
        rgba(255, 255, 255, 0.22) 2px,
        transparent 3px,
        transparent 8px
      );z-index: 999999 !important;
    }

#cookie-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 90% !important;
  max-width: 480px !important;
  border-radius: 14px !important;
  padding: 25px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25) !important;
  z-index: 1000000 !important;
  background: linear-gradient(180deg, #ffb6d5 0%, #8ec5ff 100%);
  opacity: 0.85;
  border: 2px solid var(--signature-color) !important;
  font-family: 'Inter', sans-serif !important;
  
}

.cookie-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 15px !important;
  position: relative !important;
}

.cookie-logo {
  width: 20% !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain !important;
}

.cookie-title {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #fff !important;

  position: Absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.cookie-body p {
  font-size: 15px !important;
  color: #f0f0f0 !important;
  line-height: 1.5 !important;
  
}

.cookie-buttons {
  margin-top: 25px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.cb-btn {
  padding: 12px 18px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

.cb-btn.accept {
  background: var(--signature-color) !important;
  color: white !important;
}

.cb-btn.refuse {
  background: #f1f3f4 !important;
  color: #222 !important;
}

.cb-btn.settings {
  background: #e8f0fe !important;
  color: var(--signature-color) !important;
}

@media (min-width: 600px) {
  .cookie-buttons {
    flex-direction: row !important;
    justify-content: space-between !important;
  }
}

/* Neutralisation des parents qui bloquent le modal */
.qhd-wrapper,
.layout {
    overflow: visible !important;
    transform: none !important;
    height: auto !important;
    position: static !important;
}

/* Overlay premium derrière la modale */
.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;

    /* Ton fond premium glossy */
    background:
      linear-gradient(
        180deg,
        rgba(255, 179, 198, 0.50) 0%,
        rgba(179, 199, 255, 0.50) 100%
      ),
      linear-gradient(
        75deg,
        rgba(255, 255, 255, 0.00) 0%,
        rgba(255, 255, 255, 0.45) 35%,
        rgba(255, 255, 255, 0.00) 70%
      ),
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.20) 0%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.20) 80%
      ),
      repeating-radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.22) 0px,
        rgba(255, 255, 255, 0.22) 2px,
        transparent 3px,
        transparent 8px
      );

    background-blend-mode: screen, lighten, overlay, soft-light, color-dodge;

    backdrop-filter: blur(3px); /* effet premium */
}

/* Conteneur de la modale cookies */
.cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
        /* Ton fond premium glossy */
    background:
    linear-gradient(
        180deg,
        rgba(255, 179, 198, 0.50) 0%,
        rgba(179, 199, 255, 0.50) 100%
      ),
    linear-gradient(
        75deg,
        rgba(255, 255, 255, 0.00) 0%,
        rgba(255, 255, 255, 0.45) 35%,
        rgba(255, 255, 255, 0.00) 70%
      ),
    linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.20) 0%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.20) 80%
      ),
    repeating-radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.22) 0px,
        rgba(255, 255, 255, 0.22) 2px,
        transparent 3px,
        transparent 8px
      );
    border-radius: 18px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    z-index: 9999;
    box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}
#cookie-modal,
#cookie-overlay {
    display: none; /* caché par défaut */
    position: fixed;
    inset: 0;
    z-index: 20000;
}

