/* =========================================================================
   COOKIES.CSS — Bandeau de consentement RGPD
   ========================================================================= */

/* ============== BANDEAU PRINCIPAL ============== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #141414;
  border-top: 1px solid #c9a961;
  padding: 1.25rem 2rem;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner.is-hiding {
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.cookie-banner-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
}

/* ============== TEXTE ============== */
.cookie-banner-text {
  flex: 1;
  min-width: 0;
}

.cookie-banner-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #f5f1e8;
  margin-bottom: 0.35rem;
}

.cookie-banner-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: #8a857a;
  line-height: 1.65;
}

.cookie-banner-desc a {
  color: #c9a961;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.cookie-banner-desc a:hover {
  color: #d9bd7a;
}

/* ============== BOUTONS — RGPD : refus aussi visible qu'accepter ============== */
.cookie-banner-actions {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
  align-items: center;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.2s ease;
  line-height: 1;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

/* Refuser — bordure, sans fond (aussi lisible qu'accepter, conforme CNIL) */
.cookie-btn-refuse {
  background: transparent;
  color: #ebe6d8;
  border: 1px solid #4a4640;
}

.cookie-btn-refuse:hover {
  border-color: #c9a961;
  color: #c9a961;
}

/* Accepter — fond doré */
.cookie-btn-accept {
  background: #c9a961;
  color: #0a0a0a;
  border: 1px solid #c9a961;
}

.cookie-btn-accept:hover {
  background: #d9bd7a;
  border-color: #d9bd7a;
}

/* ============== PLACEHOLDER GOOGLE MAPS ============== */
.map-placeholder {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 1px solid #4a4640;
}

.map-placeholder-inner {
  text-align: center;
  padding: 2rem;
  max-width: 320px;
}

.map-placeholder-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.4;
  display: block;
}

.map-placeholder-inner p {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: #8a857a;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.map-placeholder-inner strong {
  color: #ebe6d8;
  font-weight: 400;
}

/* Bouton "Autoriser" dans le placeholder */
.map-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  background: transparent;
  color: #c9a961;
  border: 1px solid #c9a961;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.25s ease, color 0.25s ease;
}

.map-consent-btn:hover {
  background: #c9a961;
  color: #0a0a0a;
}

/* ============== AJUSTEMENT STICKY CTA ============== */
.cookie-banner-visible .sticky-cta {
  bottom: calc(0.75rem + var(--cookie-banner-h, 90px));
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .cookie-btn {
    padding: 12px 8px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 400px) {
  .cookie-banner-actions {
    grid-template-columns: 1fr;
  }
}
