/* Bandeau de consentement aux cookies — design system Blio Tech */

.cookie-consent {
  position: fixed;
  z-index: 1200;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 720px;
  margin-inline: auto;
  padding: 20px 22px;
  border: 1px solid rgba(109, 66, 217, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(247, 243, 234, 0.96)),
    var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(20, 18, 31, 0.18);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 24px;
}

.cookie-consent-copy {
  flex: 1 1 280px;
  min-width: 0;
}

.cookie-consent-eyebrow {
  margin: 0 0 8px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cookie-consent-text {
  margin: 0;
  color: #3d3c45;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  color: #7a7884;
  font-size: 12px;
}

.cookie-consent-links a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-links a:hover {
  color: var(--violet-bright);
}

.cookie-consent-links a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 3px;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.cookie-consent-actions .button {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

.cookie-consent-refuse {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.cookie-consent-refuse:hover {
  background: var(--violet-soft);
  color: var(--violet);
  box-shadow: none;
}

@media (max-width: 640px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 16px 16px 18px;
    border-radius: 16px;
  }

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

  .cookie-consent-actions .button {
    flex: 1 1 calc(50% - 5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    transition: none;
  }
}


/* Pied de page : trois liens légaux */
.footer-legal-links {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 8px;
}
