/* =========================================================
   SOLVYLA - COOKIES
   Version propre + responsive
   ========================================================= */

#cookie-overlay,
.cookie-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  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;
  background-blend-mode: screen, lighten, overlay, soft-light, color-dodge;
  backdrop-filter: blur(3px);
}

#cookie-modal,
.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: 30% !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}

.cookie-title {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #fff !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.cookie-body p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    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;
    box-sizing: border-box !important;
}

.cb-btn.settings { background: #e8f0fe !important; color: var(--signature-color) !important; }
.cb-btn.refuse   { background: #f1f3f4 !important; color: #222 !important; }
.cb-btn.accept   { background: var(--signature-color) !important; color: #fff !important; }

@media (min-width: 600px) {
    .cookie-buttons {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: stretch !important;
    }
    .cb-btn { flex: 1 1 0 !important; }
}

@media (max-height: 700px) {
    #cookie-modal,
    .cookie-modal { padding: clamp(14px, 3vh, 25px) !important; }
    .cookie-header {
        gap: clamp(6px, 1.5vh, 12px) !important;
        margin-bottom: clamp(6px, 2vh, 15px) !important;
    }
    .cookie-logo { width: 27% !important; }
    .cookie-title { font-size: clamp(16px, 2.8vh, 20px) !important; }
    .cookie-body p {
        font-size: clamp(12px, 2.2vh, 15px) !important;
        line-height: 1.4 !important;
    }
    .cookie-buttons {
        margin-top: clamp(8px, 3vh, 25px) !important;
        gap: clamp(6px, 1.8vh, 12px) !important;
    }
    .cb-btn {
        padding: clamp(7px, 1.8vh, 12px) 14px !important;
        font-size: clamp(12px, 2.1vh, 15px) !important;
    }
}

@media (max-height: 500px) {
    #cookie-modal,
    .cookie-modal {
        width: 90% !important;
        max-width: 480px !important;
        padding: 12px 18px !important;
    }
    .cookie-header { margin-bottom: 5px !important; }
    .cookie-logo { width: 22% !important; }
    .cookie-title { font-size: 15px !important; }
    .cookie-body p { font-size: 12px !important; line-height: 1.3 !important; }
    .cookie-buttons {
        margin-top: 7px !important;
        gap: 7px !important;
        flex-direction: row !important;
    }
    .cb-btn { padding: 6px 10px !important; font-size: 12px !important; }
}

@media (max-width: 599px) {
    #cookie-modal,
    .cookie-modal {
        width: calc(100% - 28px) !important;
        max-width: 480px !important;
    }
    .cookie-buttons { flex-direction: column !important; }
    .cb-btn { width: 100% !important; }
}

@media (max-width: 599px) and (max-height: 500px) {
    #cookie-modal,
    .cookie-modal { padding: 10px 15px !important; }
    .cookie-logo { width: 20% !important; }
    .cookie-buttons { margin-top: 6px !important; gap: 5px !important; }
    .cb-btn { padding: 5px 10px !important; }
}

.qhd-wrapper,
.layout {
    overflow: visible !important;
    transform: none !important;
    height: auto !important;
    position: static !important;
}

#cookie-modal,
#cookie-overlay {
    display: none;
}

