/* ================================================================== */
/* MovUP COOKIE BANNER — styles                                        */
/* Aligné design system MovUP : Geist, dark borders, CSS tokens        */
/* ================================================================== */

#mup-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: #0A0A0A;
  color: #E5E5E5;
  border: 1px solid #2A2A2A;
  border-radius: 12px;
  padding: 20px 24px;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  z-index: 9999;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.mup-cookie__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.mup-cookie__text h2 {
  font-size: 14px;
  margin: 0 0 6px;
  color: #FFF;
}

.mup-cookie__text p {
  margin: 0;
  color: #9A9A9A;
}

.mup-cookie__text a {
  color: #FFF;
  text-decoration: underline;
  text-decoration-color: #3A3A3A;
}

.mup-cookie__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mup-cookie__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #2A2A2A;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}

.mup-cookie__btn--ghost {
  background: transparent;
  color: #C8C8C8;
}

.mup-cookie__btn--ghost:hover {
  background: #1A1A1A;
  color: #FFF;
  border-color: #3A3A3A;
}

.mup-cookie__btn--primary {
  background: #FFF;
  color: #0A0A0A;
  border-color: #FFF;
}

.mup-cookie__btn--primary:hover {
  background: #E5E5E5;
}

@media (max-width: 640px) {
  .mup-cookie__content {
    grid-template-columns: 1fr;
  }
  .mup-cookie__actions {
    width: 100%;
  }
  .mup-cookie__btn {
    flex: 1;
  }
}

/* ================================================================== */
/* PANNEAU DE PERSONNALISATION                                         */
/* ================================================================== */

#mup-cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}

.mup-cookie-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}

.mup-cookie-panel__dialog {
  position: relative;
  max-width: 560px;
  margin: 80px auto 0;
  background: #0A0A0A;
  color: #E5E5E5;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.mup-cookie-panel__dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #1F1F1F;
}

.mup-cookie-panel__dialog header h2 {
  font-size: 16px;
  margin: 0;
  color: #FFF;
}

.mup-cookie-panel__dialog header button {
  background: transparent;
  border: none;
  color: #9A9A9A;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: all .15s ease;
}

.mup-cookie-panel__dialog header button:hover {
  background: #1A1A1A;
  color: #FFF;
}

.mup-cookie-panel__dialog section {
  padding: 8px 24px;
}

.mup-cookie-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #1F1F1F;
  cursor: pointer;
}

.mup-cookie-panel__row:last-child {
  border-bottom: none;
}

.mup-cookie-panel__row span {
  flex: 1;
  font-size: 13px;
}

.mup-cookie-panel__row strong {
  display: block;
  color: #FFF;
  font-weight: 500;
  margin-bottom: 4px;
}

.mup-cookie-panel__row em {
  display: block;
  font-style: normal;
  color: #7A7A7A;
  font-size: 12px;
}

.mup-cookie-panel__row input[type="checkbox"] {
  width: 36px;
  height: 20px;
  appearance: none;
  background: #2A2A2A;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background .15s ease;
  flex-shrink: 0;
}

.mup-cookie-panel__row input[type="checkbox"]:checked {
  background: #FFF;
}

.mup-cookie-panel__row input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #FFF;
  border-radius: 50%;
  transition: transform .15s ease;
}

.mup-cookie-panel__row input[type="checkbox"]:checked::before {
  background: #0A0A0A;
  transform: translateX(16px);
}

.mup-cookie-panel__row input[type="checkbox"]:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.mup-cookie-panel__dialog footer {
  display: flex;
  gap: 8px;
  padding: 20px 24px;
  border-top: 1px solid #1F1F1F;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .mup-cookie-panel__dialog {
    margin: 0;
    border-radius: 0;
    height: 100vh;
    max-width: none;
    display: flex;
    flex-direction: column;
  }
  .mup-cookie-panel__dialog section {
    flex: 1;
    overflow-y: auto;
  }
  .mup-cookie-panel__dialog footer {
    flex-direction: column-reverse;
  }
  .mup-cookie-panel__dialog footer .mup-cookie__btn {
    width: 100%;
  }
}
