/* =========================================================================
   Golf Life — Bandeau cookies (RGPD), glassmorphism sombre.
   Adapté du composant cookies de veteam.co à la charte Golf Life.
   Valeurs de repli (var(--x, fallback)) → fonctionne aussi sur les pages
   légales qui ne chargent pas toutes les variables des autres pages.
   ========================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 720px;
  background: rgba(25, 44, 32, 0.86);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--paper-line, rgba(255,255,255,.14));
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 16px 48px rgba(10, 20, 14, 0.35), 0 0 0 1px rgba(200, 169, 110, 0.06);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.cookie-banner:not([hidden]) { pointer-events: auto; }
.cookie-banner.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  font-family: var(--display, 'Outfit', system-ui, sans-serif);
  font-size: 0.86rem;
  color: var(--ink-soft, rgba(245,242,235,.78));
  line-height: 1.55;
  flex: 1;
  min-width: 210px;
  margin: 0;
}
.cookie-banner__text strong { color: var(--cream, #f5f2eb); font-weight: 600; }
.cookie-banner__text a {
  color: var(--gold, #c8a96e);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__btn {
  font-family: var(--display, 'Outfit', system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.cookie-banner__btn--accept {
  background: var(--gold, #c8a96e);
  color: var(--deep-1, #192c20);
  border-color: var(--gold, #c8a96e);
  box-shadow: 0 8px 20px -10px rgba(200, 169, 110, 0.8);
}
.cookie-banner__btn--accept:hover { background: var(--gold-soft, #dfc18e); }
.cookie-banner__btn--decline {
  background: transparent;
  color: var(--ink-soft, rgba(245,242,235,.78));
  border-color: var(--paper-line, rgba(255,255,255,.2));
}
.cookie-banner__btn--decline:hover {
  color: var(--cream, #f5f2eb);
  border-color: var(--gold, #c8a96e);
}

@media (max-width: 560px) {
  .cookie-banner { bottom: 16px; width: calc(100% - 32px); padding: 16px 18px; }
  .cookie-banner__inner { flex-direction: column; gap: 14px; align-items: stretch; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity 0.2s ease; transform: translateX(-50%); }
  .cookie-banner.is-visible { transform: translateX(-50%); }
}
