/* Bandeau de consentement : verre translucide, deux boutons de même poids. */

.consent {
  position: fixed;
  z-index: 50;
  inset: auto 0 calc(env(safe-area-inset-bottom) + 12px);
  width: min(100% - 24px, 34rem);
  margin: 0 auto;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgb(250 250 252 / 0.94);
  color: #000;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.25);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Geist', system-ui, sans-serif;
}

.consent-title {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.consent-text {
  margin: 0 0 14px;
  color: #3c3c43;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.consent-text a {
  color: #005fbf;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Même apparence pour refuser et accepter : aucun choix n'est mis en avant. */
.consent-button {
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: rgb(120 120 128 / 0.16);
  color: #005fbf;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
}

.consent-button:focus-visible,
.consent-text a:focus-visible {
  outline: 3px solid #005fbf;
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  .consent {
    background: rgb(44 44 46 / 0.94);
    color: #fff;
  }
  .consent-text {
    color: #ebebf5;
  }
  .consent-text a,
  .consent-button {
    color: #64b0ff;
  }
  .consent-button {
    background: rgb(118 118 128 / 0.32);
  }
}
