.analytics-consent {
  position: fixed;
  z-index: 20000;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(660px, calc(100vw - 32px));
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  padding: 16px 18px;
  border: 1px solid rgb(23 86 118 / .2);
  border-left: 4px solid #e1b12b;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(23 86 118 / .18);
  color: #175676;
  font-family: inherit;
  line-height: 1.4;
}

.analytics-consent h2 { margin: 0 0 4px; font-size: .96rem; line-height: 1.25; }
.analytics-consent p { margin: 0; color: #526e7b; font-size: .8rem; }
.analytics-consent a { color: #175676; font-weight: 500; }
.analytics-consent-actions { display: flex; gap: 8px; }
.analytics-consent button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #175676;
  border-radius: 4px;
  background: #fff;
  color: #175676;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
}
.analytics-consent .analytics-consent-accept { background: #175676; color: #fff; }
.analytics-consent button:hover { filter: brightness(.94); }
.analytics-consent button:focus-visible, .analytics-consent a:focus-visible, .analytics-settings:focus-visible { outline: 3px solid #e1b12b; outline-offset: 3px; }

.analytics-settings {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 12px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #526e7b;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fiches-page .analytics-settings {
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  bottom: auto;
  padding: 6px 10px;
  border-radius: 4px;
  background: #fff;
}

.fiches-page .analytics-consent {
  top: max(56px, calc(env(safe-area-inset-top) + 52px));
  right: 12px;
  bottom: auto;
  width: min(460px, calc(100vw - 24px));
}

@media (max-width: 600px) {
  .analytics-consent { right: 12px; bottom: 12px; left: 12px; width: auto; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .analytics-consent-actions button { flex: 1 1 50%; }
}
