/**
 * ColonyGo — Bannière cookies (RGPD MVP)
 * Palette alignée sur la charte : navy #0F2A45, vert #62D26F
 */

/* Conteneur fixe bas de viewport, au-dessus du panneau auth (z-index 9999) */
.cookie-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10050;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.cookie-consent:not(.cookie-consent--hidden) {
  pointer-events: auto;
}

.cookie-consent--hidden {
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
}

.cookie-consent__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow:
    0 -4px 24px rgba(15, 42, 69, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
  .cookie-consent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

.cookie-consent__text {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #1f2937;
  flex: 1;
  min-width: 0;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-consent__btn {
  font-family: Poppins, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.cookie-consent__btn:focus-visible {
  outline: 2px solid #2196c7;
  outline-offset: 2px;
}

.cookie-consent__btn--accept {
  background: #62d26f;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(98, 210, 111, 0.35);
}

.cookie-consent__btn--accept:hover {
  background: #4caf5c;
}

.cookie-consent__btn--reject {
  background: #ffffff;
  color: #0f2a45;
  border: 2px solid #0f2a45;
}

.cookie-consent__btn--reject:hover {
  background: #0f2a45;
  color: #ffffff;
}

/* Espace sous le contenu quand la bannière est visible */
body.cookie-consent-banner-visible {
  padding-bottom: 140px;
}

@media (min-width: 640px) {
  body.cookie-consent-banner-visible {
    padding-bottom: 120px;
  }
}

/* Lien « Modifier mes choix » dans le footer */
.cookie-consent-footer-link {
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.cookie-consent-footer-link:hover {
  color: #62d26f;
}

.cookie-consent-footer-link:focus-visible {
  outline: 2px solid #2196c7;
  outline-offset: 2px;
  border-radius: 2px;
}
