/* Bandeau consentement first-party — vitrine + /app + pages légales */
.mz-cookie-banner {
  position: fixed;
  z-index: 120;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  max-width: 34rem;
  margin-inline: auto;
  padding: 14px 16px 16px;
  background: #0F172A;
  color: #F7F8FA;
  border-radius: 16px;
  border: 1px solid rgba(255, 106, 0, 0.45);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
  font: 500 0.9rem/1.45 "Plus Jakarta Sans", system-ui, sans-serif;
}
.mz-cookie-title {
  margin: 0 0 6px;
  font-family: Outfit, "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.mz-cookie-text {
  margin: 0 0 12px;
  color: rgba(247, 248, 250, 0.82);
}
.mz-cookie-choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
}
.mz-cookie-choice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 0.88rem;
}
.mz-cookie-save {
  flex: 1 1 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #F7F8FA;
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mz-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mz-cookie-accept,
.mz-cookie-refuse {
  flex: 1 1 8rem;
  min-height: 44px;
  min-width: 8.5rem;
  padding: 8px 14px;
  border: 2px solid #161A22;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
}
.mz-cookie-accept {
  background: #FF6A00;
  color: #161A22;
}
.mz-cookie-accept:hover { background: #E85F00; }
.mz-cookie-refuse {
  background: #F4F6FA;
  color: #161A22;
}
.mz-cookie-refuse:hover { background: #E6EAF0; }
.mz-cookie-policy {
  flex: 0 0 auto;
  color: #C5CEFF;
  font-weight: 600;
  text-underline-offset: 3px;
}
.mz-cookie-policy:hover { color: #fff; }

/* Footer / mentions — réouvrir le bandeau (même poids qu’un lien) */
button.mz-cookie-prefs,
.mz-cookie-prefs {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
button.mz-cookie-prefs:hover,
.mz-cookie-prefs:hover { text-decoration: none; }
.foot-col button.mz-cookie-prefs { color: var(--on-night-muted, #C5CBD4); }
.foot-col button.mz-cookie-prefs:hover { color: var(--on-night, #fff); }
.legal-foot button.mz-cookie-prefs,
.sup-foot button.mz-cookie-prefs,
.sidebar-legal button.mz-cookie-prefs {
  color: inherit;
  min-height: 44px;
}
body.has-mobile-cta .mz-cookie-banner,
body.app-shell.has-cookie-banner .mz-cookie-banner {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
/* 390 : bandeau compact, au-dessus de la bottom nav (z-index nav = 120). */
@media (max-width: 700px) {
  body.app-shell.has-cookie-banner .mz-cookie-banner {
    z-index: 110;
    left: 8px;
    right: 8px;
    bottom: calc(var(--mz-bottom-nav-h, 68px) + 12px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    margin-inline: 0;
    padding: 8px 10px;
    border-radius: 14px;
  }
  body.app-shell.has-cookie-banner .mz-cookie-title {
    font-size: 0.875rem;
    margin-bottom: 2px;
  }
  body.app-shell.has-cookie-banner .mz-cookie-text {
    font-size: 0.75rem;
    line-height: 1.25;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.app-shell.has-cookie-banner .mz-cookie-actions { gap: 6px; }
  body.app-shell.has-cookie-banner .mz-cookie-accept,
  body.app-shell.has-cookie-banner .mz-cookie-refuse {
    min-height: 44px;
    padding: 8px 10px;
    flex: 1 1 0;
    font-size: 0.9rem;
    font-weight: 700;
  }
  body.app-shell.has-cookie-banner .main,
  body.app-shell.has-cookie-banner #mainContent {
    padding-bottom: calc(var(--mz-bottom-nav-h, 68px) + 168px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
body.has-cookie-banner:not(.app-shell) {
  padding-bottom: calc(280px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 700px) {
  body.has-cookie-banner:not(.app-shell) .mz-cookie-banner {
    padding: 10px 12px 12px;
  }
  body.has-cookie-banner:not(.app-shell) .mz-cookie-text {
    font-size: 0.82rem;
    line-height: 1.35;
  }
  body.has-mobile-cta.has-cookie-banner {
    padding-bottom: calc(80px + 280px + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 640px) {
  .mz-cookie-banner { left: 20px; right: auto; margin-inline: 0; }
}
