/* Bannière cookies — alignée vitrine www (tokens lux app + fallbacks) */

.mls-cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 10000;
  max-width: 28rem;
  margin: 0 auto;
  left: 0;
  right: 0;
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(58, 139, 126, 0.2);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 40px rgba(26, 46, 42, 0.14);
  backdrop-filter: blur(10px);
  font-family: var(--mls-body-font, 'Poppins', system-ui, sans-serif);
  color: var(--lux-ink, #21302b);
  animation: mls-cookie-in 0.35s ease;
}

@keyframes mls-cookie-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mls-cookie-banner[hidden] {
  display: none !important;
}

.mls-cookie-banner__title {
  margin: 0 0 0.5rem;
  font-family: var(--mls-font-display, var(--lux-title-font, Georgia, serif));
  font-size: 1.1rem;
  font-weight: 600;
}

.mls-cookie-banner__text {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--lux-muted, #7e817a);
}

.mls-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.mls-cookie-banner__btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.mls-cookie-banner__btn--accept {
  background: var(--lux-emerald-deep, #2a7569);
  color: #fff;
}

.mls-cookie-banner__btn--accept:hover {
  background: var(--lux-emerald, #3a8b7e);
}

.mls-cookie-banner__btn--reject {
  background: transparent;
  color: var(--lux-muted, #7e817a);
  border: 1px solid rgba(58, 139, 126, 0.25);
}

.mls-cookie-banner__btn--reject:hover {
  background: rgba(58, 139, 126, 0.06);
  color: var(--lux-ink, #21302b);
}

.mls-cookie-banner__link {
  font-size: 0.85rem;
  color: var(--lux-emerald, #3a8b7e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mls-cookie-banner__link:hover {
  color: var(--lux-emerald-deep, #2a7569);
}

.mls-cookie-fab {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 9999;
  cursor: pointer;
  border: 1px solid rgba(58, 139, 126, 0.25);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(26, 46, 42, 0.08);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lux-muted, #7e817a);
}

.mls-cookie-fab:hover {
  color: var(--lux-emerald, #3a8b7e);
}

.mls-cookie-fab[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .mls-cookie-banner {
    inset: auto 1.5rem 1.5rem auto;
    left: auto;
    margin: 0;
  }
}

/* Rappel chat — affiché après refus des cookies */
.mls-cookie-chat-nudge {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  border-top: 1px solid rgba(58, 139, 126, 0.22);
  background: linear-gradient(180deg, rgba(250, 252, 251, 0.98) 0%, rgba(255, 255, 255, 0.99) 100%);
  box-shadow: 0 -8px 32px rgba(26, 46, 42, 0.1);
  backdrop-filter: blur(10px);
  font-family: var(--mls-body-font, 'Poppins', system-ui, sans-serif);
  animation: mls-cookie-in 0.35s ease;
}

.mls-cookie-chat-nudge[hidden] {
  display: none !important;
}

.mls-cookie-chat-nudge__inner {
  max-width: var(--mls-max, 72rem);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.mls-cookie-chat-nudge__text {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--lux-ink, #21302b);
}

.mls-cookie-chat-nudge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.mls-cookie-chat-nudge__btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.mls-cookie-chat-nudge__btn--accept {
  background: var(--lux-emerald-deep, #2a7569);
  color: #fff;
}

.mls-cookie-chat-nudge__btn--accept:hover {
  background: var(--lux-emerald, #3a8b7e);
}

.mls-cookie-chat-nudge__btn--dismiss {
  background: transparent;
  color: var(--lux-muted, #7e817a);
  border: 1px solid rgba(58, 139, 126, 0.2);
}

.mls-cookie-chat-nudge__btn--dismiss:hover {
  color: var(--lux-ink, #21302b);
  background: rgba(58, 139, 126, 0.06);
}

html.mls-cookie-nudge-visible .mls-cookie-fab {
  bottom: 4.5rem;
}

html.mls-cookie-nudge-visible body {
  padding-bottom: 4.25rem;
}

@media (min-width: 768px) {
  html.mls-cookie-nudge-visible .mls-cookie-fab {
    bottom: 1rem;
  }
}
