/* V1.3.0 — Styles isolés pour le consentement Google Analytics */

.analytics-preferences-link {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9em;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  opacity: 0.82;
}

.analytics-preferences-link:hover,
.analytics-preferences-link:focus-visible {
  opacity: 1;
}

.analytics-preferences-link:focus-visible,
.analytics-consent-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(720px, calc(100% - 2rem));
  transform: translateX(-50%);
  box-sizing: border-box;
  border: 1px solid rgba(60, 52, 48, 0.18);
  border-radius: 16px;
  background: rgba(248, 245, 240, 0.98);
  color: #302a27;
  box-shadow: 0 10px 32px rgba(36, 31, 29, 0.16);
  backdrop-filter: blur(8px);
}

.analytics-consent-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.1rem;
}

.analytics-consent-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.analytics-consent-title {
  margin: 0 0 0.35rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.analytics-consent-copy p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
}

.analytics-consent-button {
  min-width: 104px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(48, 42, 39, 0.5);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.analytics-consent-button:hover {
  background: rgba(48, 42, 39, 0.08);
}

@media (max-width: 640px) {
  .analytics-consent {
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: calc(100% - 1.25rem);
    border-radius: 14px;
  }

  .analytics-consent-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.9rem;
  }

  .analytics-consent-actions {
    width: 100%;
  }

  .analytics-consent-button {
    flex: 1 1 0;
    min-width: 0;
  }
}
