html,
body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.cookie-banner {
  position: fixed;
  z-index: 100000;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(129, 77, 255, 0.22), transparent 35%),
    linear-gradient(135deg, rgba(17, 17, 31, 0.98), rgba(8, 9, 18, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(24px);
}

.cookie-banner-visual {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  font-size: 35px;
  background: linear-gradient(135deg, #775cff, #ff3f98);
}

.cookie-banner-content h2,
.cookie-modal h2 {
  margin: 4px 0 8px;
  color: #fff;
}

.cookie-banner-content p,
.cookie-modal p {
  margin: 0;
  color: rgba(235, 237, 255, 0.74);
  line-height: 1.55;
}

.cookie-eyebrow {
  color: #a8a9ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.cookie-text-link {
  padding: 0;
  margin-top: 10px;
  border: 0;
  color: #b7b8ff;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-banner-actions,
.cookie-modal-actions {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cookie-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #775cff, #ff3f98);
}

.cookie-btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.08);
}

.cookie-btn-outline {
  color: #d0d1ff;
  border-color: rgba(139, 123, 255, 0.42);
  background: rgba(105, 82, 255, 0.08);
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 100001;
  inset: 0;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 3, 10, 0.76);
  backdrop-filter: blur(14px);
}

.cookie-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(145deg, #141424, #090a13);
}

.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  cursor: pointer;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-category strong,
.cookie-category small {
  display: block;
}

.cookie-category small {
  margin-top: 5px;
  color: rgba(235, 237, 255, 0.58);
}

.cookie-switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex: none;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.cookie-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + span {
  background: linear-gradient(135deg, #775cff, #ff3f98);
}

.cookie-switch input:checked + span::after {
  transform: translateX(22px);
}

.cookie-modal-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
  }

  .cookie-banner-actions,
  .cookie-modal-actions {
    display: grid;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* Correctif définitif du défilement CineTrak */
html,
body,
body.mobile-menu-open {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  touch-action: auto !important;
  position: static !important;
}

body.mobile-menu-open {
  overscroll-behavior: auto !important;
}

.app,
main {
  min-height: 100vh;
  overflow-y: visible !important;
}
