/* Consent uses NOVA's existing palette, type and surface tokens. */
.analytics-consent[hidden], .analytics-settings[hidden], [data-analytics-exclusion-notice][hidden], [data-analytics-exclusion-controls][hidden] { display: none; }
.analytics-consent {
  position: fixed; z-index: 90; left: 24px; bottom: 24px;
  width: min(460px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow-y: auto;
  padding: 26px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  background: var(--bg-highlight); color: var(--fg-primary); box-shadow: var(--shadow-float);
  font-family: var(--font-sans);
}
.analytics-consent::before {
  content: ""; display: block; width: 40px; height: 4px; margin-bottom: 18px;
  border-radius: var(--radius-pill); background: var(--gradient-primary);
}
.analytics-consent h2 { margin: 0 0 10px; font: 500 24px/1.2 var(--font-serif); letter-spacing: -.02em; }
.analytics-consent p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--fg-secondary); }
.analytics-consent p a { color: var(--fg-primary); text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent .analytics-status { margin-top: 10px; font-size: 12px; }
.analytics-status:empty { display: none; }
.analytics-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.analytics-actions button {
  min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--bg-highlight); color: var(--fg-primary); font: 600 13px/1.3 var(--font-sans); cursor: pointer;
}
.analytics-actions button:hover { background: var(--bg-canvas); }
.analytics-actions button:disabled, .analytics-browser-controls button:disabled { opacity: .5; cursor: not-allowed; }
.analytics-actions button:focus-visible, .analytics-settings:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.analytics-settings { padding: 0; min-height: 34px; width: fit-content; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.analytics-settings:hover { text-decoration: underline; text-underline-offset: 3px; }
#mesure-audience, #exclure-mes-visites { scroll-margin-top: 100px; }
.analytics-browser-controls { margin-block: 36px; padding: 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-highlight); }
.analytics-browser-controls .h2 { margin-top: 0; }
.analytics-browser-controls [role="status"] { font-weight: 600; }
@media (max-width: 560px) {
  .analytics-consent { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 22px; }
}
