/* Bandeau cookies — compact, hors du bouton RDV */
:root {
  --cookie-banner-space: 0px;
}

body.cookie-consent-visible {
  --cookie-banner-space: 7.5rem;
}

body.cookie-consent-visible .fixed-actions {
  bottom: calc(20px + var(--cookie-banner-space));
  transition: bottom 0.25s ease;
}

.cookie-consent {
  position: fixed;
  z-index: 1000;
  left: 16px;
  right: auto;
  bottom: 16px;
  width: min(340px, calc(100vw - 32px));
  pointer-events: none;
  animation: cookie-consent-in 0.35s ease;
}

@keyframes cookie-consent-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-consent__inner {
  pointer-events: auto;
  padding: 14px 16px;
  background: #FFFEF9;
  color: var(--taupe, #584635);
  border: 1px solid rgba(4, 52, 74, 0.12);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(4, 52, 74, 0.12);
  font-family: 'Montserrat', Arial, sans-serif;
}

.cookie-consent__title {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ocean, #04344A);
  line-height: 1.3;
}

.cookie-consent__desc {
  margin: 0 0 12px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--taupe, #584635);
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-consent__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__btn--refuse {
  background: transparent;
  color: var(--taupe, #584635);
  border-color: rgba(88, 70, 53, 0.28);
}

.cookie-consent__btn--refuse:hover,
.cookie-consent__btn--refuse:focus-visible {
  border-color: var(--ocean, #04344A);
  color: var(--ocean, #04344A);
  outline: none;
}

.cookie-consent__btn--accept {
  background: var(--ocean, #04344A);
  color: #FFFEF9;
}

.cookie-consent__btn--accept:hover,
.cookie-consent__btn--accept:focus-visible {
  background: var(--ocean-light, #0A4A66);
  outline: none;
}

.cookie-consent__footer-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin-top: 4px;
  font: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.85;
}

.cookie-consent__footer-link:hover,
.cookie-consent__footer-link:focus-visible {
  opacity: 1;
  outline: none;
}

@media (max-width: 575px) {
  body.cookie-consent-visible {
    --cookie-banner-space: 8.5rem;
  }

  body.cookie-consent-visible .fixed-actions {
    bottom: calc(16px + var(--cookie-banner-space));
  }

  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__btn {
    flex: 1 1 0;
    text-align: center;
  }
}
