/*
 * Hynso — bandeau de consentement à la mesure d'audience (assets/js/consent.js, ADR 0025).
 * Chargé par la vitrine et par la coquille de l'application, qui ne partagent pas leurs styles : valeurs en dur.
 * « Refuser » et « Accepter » ont exactement la même apparence, comme le demande la CNIL.
 */
.consent {
  position: fixed;
  z-index: 75;
  inset: auto 16px 16px;
  max-width: 560px;
  margin-inline: auto;
  padding: 20px 22px;
  border: 1px solid #283a6b;
  border-radius: 16px;
  background: #0b1638;
  color: #d9e1f0;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  box-shadow: 0 24px 60px rgb(11 22 56 / 0.35);
}

.consent[hidden] {
  display: none;
}

/* Grand écran : en bas à gauche, à l'écart de la fenêtre du code promo (en bas à droite). */
@media (min-width: 900px) {
  .consent {
    inset: auto auto 24px 24px;
    max-width: 440px;
    margin: 0;
  }
}

.consent__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.consent__text {
  margin: 0;
}

.consent__text a {
  color: #ffc83d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.consent__btn {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #ffc83d;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.consent__btn:hover {
  background: rgb(255 200 61 / 0.14);
}

.consent__btn:focus-visible,
.consent__text a:focus-visible {
  outline: 3px solid #ffdb7a;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .consent {
    animation: consent-in 240ms ease-out;
  }

  @keyframes consent-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }
}

@media print {
  .consent {
    display: none;
  }
}
