/* Choix de mesure d'audience : styles isolés du contenu et des maquettes. */
#ekera-analytics-banner {
  position: fixed;
  z-index: 10000;
  inset: auto auto max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  box-sizing: border-box;
  width: min(480px, calc(100vw - 40px));
  max-height: 80vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line, #d6dce5);
  border-radius: 12px;
  background: var(--bg, #fff);
  color: var(--ink, #14213d);
  box-shadow: 0 8px 40px #14213d26;
  font: 15px/1.6 system-ui, sans-serif;
  text-align: left;
}
#ekera-analytics-banner[hidden] { display: none !important; }
#ekera-analytics-banner h2 { margin: 0 0 8px; font: 650 20px/1.3 system-ui, sans-serif; letter-spacing: normal; }
#ekera-analytics-banner p { margin: 0 0 16px; font-size: 15px; }
#ekera-analytics-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ekera-analytics-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
#ekera-analytics-banner button {
  appearance: none;
  min-height: 46px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: 600 15px/1.4 system-ui, sans-serif;
  cursor: pointer;
}
#ekera-analytics-banner button:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
#ekera-analytics-manage {
  appearance: none;
  border: 0;
  padding: 8px;
  margin: 0;
  min-height: 44px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#ekera-analytics-manage.ekera-analytics-floating {
  position: fixed;
  z-index: 9999;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  padding: 8px 14px;
  border: 1px solid var(--line, #d6dce5);
  border-radius: 6px;
  background: var(--bg, #fff);
  color: var(--ink, #14213d);
  font: 14px/1.5 system-ui, sans-serif;
}
#ekera-analytics-banner :focus-visible, #ekera-analytics-manage:focus-visible { outline: 3px solid #15806a; outline-offset: 4px; }
.ekera-analytics-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) {
  #ekera-analytics-banner { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); padding: 20px; }
}
