/* cookie-consent.css — Vers Le Vin
   Import this on every page that needs cookie consent.
   ---------------------------------------------------------------- */

/* ── BANNER ── */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #F3ECDC;
  border-top: 1px solid rgba(89, 44, 56, 0.18);
  box-shadow: 0 -4px 20px rgba(89, 44, 56, 0.08);
  font-family: 'EB Garamond', Georgia, serif;
  color: #592C38;

  /* starts hidden, slides up on .cookie-visible */
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

#cookieBanner.cookie-visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.82;
  margin: 0;
  min-width: 200px;
}

.cookie-text a.cookie-privacy {
  color: #592C38;
  opacity: 0.65;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: inherit;
}

.cookie-text a.cookie-privacy:hover {
  opacity: 1;
}

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

.cookie-actions button {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  padding: 7px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

#cookieRefuse {
  background: transparent;
  border: 1px solid rgba(89, 44, 56, 0.35);
  color: #592C38;
}

#cookieRefuse:hover {
  background: rgba(89, 44, 56, 0.06);
}

#cookieAccept {
  background: #592C38;
  border: 1px solid #592C38;
  color: #F3ECDC;
}

#cookieAccept:hover {
  opacity: 0.85;
}

.cookie-privacy {
  font-size: 12px;
  color: rgba(89, 44, 56, 0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cookie-privacy:hover {
  opacity: 0.7;
}

/* ── BLOCKED VIDEO PLACEHOLDER ── */
.cookie-blocked {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(89, 44, 56, 0.05);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}

.cookie-blocked p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  color: rgba(89, 44, 56, 0.6);
  margin: 0;
}

.cookie-blocked-sub {
  font-size: 12px !important;
  opacity: 0.7;
}

.cookie-blocked-sub button {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 12px;
  background: none;
  border: none;
  color: #592C38;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ── YOUTUBE EMBED CONTAINER ── */
[data-youtube-id] {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0810;
  border-radius: 6px;
  overflow: hidden;
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  .cookie-inner {
    padding: 14px 16px;
    gap: 12px;
  }

  .cookie-text {
    font-size: 13px;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .cookie-privacy {
    width: 100%;
    text-align: right;
  }
}