/* ═══════════════════════════════════════════════════════
   TARTEAUCITRON — YABAÏ Brand Override
   Modern, clean, unobtrusive cookie banner matching
   the YABAÏ site aesthetic (dark + red accents)
   ═══════════════════════════════════════════════════════ */

/* ─── Alert Banner (Bottom bar) ─── */
#tarteaucitronAlertBig {
  background: rgba(15, 15, 25, 0.96) !important;
  border-top: 2px solid rgba(220, 38, 38, 0.6) !important;
  padding: 16px 24px !important;
  font-family: "Plus Jakarta Sans", "Noto Sans JP", system-ui, -apple-system, sans-serif !important;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 2147483647 !important;
  max-height: none !important;
}

/* Disclaimer text */
#tarteaucitronAlertBig #tarteaucitronDisclaimerAlert {
  color: #d4d4d8 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 8px !important;
  display: inline !important;
}

/* Container for buttons */
#tarteaucitronAlertBig .tarteaucitronAllow,
#tarteaucitronAlertBig .tarteaucitronDeny {
  border-radius: 9999px !important;
}

/* ─── CTA Buttons — Common ─── */
#tarteaucitronAlertBig button {
  border-radius: 9999px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
  margin: 4px 6px !important;
  cursor: pointer !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  border: none !important;
}

/* Accept All button — primary YABAÏ red gradient */
#tarteaucitronAlertBig #tarteaucitronAllAllowed,
.tarteaucitronAllow {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border: none !important;
}

#tarteaucitronAlertBig #tarteaucitronAllAllowed:hover {
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5) !important;
  transform: translateY(-1px) !important;
}

/* Deny All button — subtle ghost */
#tarteaucitronAlertBig #tarteaucitronAllDenied,
#tarteaucitronAlertBig #tarteaucitronAllDenied2 {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  color: #a1a1aa !important;
}

#tarteaucitronAlertBig #tarteaucitronAllDenied:hover,
#tarteaucitronAlertBig #tarteaucitronAllDenied2:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}

/* Personalize button — outline */
#tarteaucitronAlertBig #tarteaucitronPersonalize,
#tarteaucitronAlertBig #tarteaucitronPersonalize2 {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  color: #a1a1aa !important;
}

#tarteaucitronAlertBig #tarteaucitronPersonalize:hover,
#tarteaucitronAlertBig #tarteaucitronPersonalize2:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #d4d4d8 !important;
}

/* Privacy policy link */
#tarteaucitronAlertBig #tarteaucitronPrivacyUrl,
#tarteaucitronAlertBig a {
  color: #f87171 !important;
  font-size: 11px !important;
  text-decoration: none !important;
  opacity: 0.8 !important;
}

#tarteaucitronAlertBig #tarteaucitronPrivacyUrl:hover,
#tarteaucitronAlertBig a:hover {
  opacity: 1 !important;
  text-decoration: underline !important;
}

/* Close button */
#tarteaucitronAlertBig #tarteaucitronCloseAlert {
  color: #71717a !important;
  font-size: 18px !important;
}

/* ─── Small Icon (floating bottom-left cookie button) ─── */
#tarteaucitronIcon {
  z-index: 2147483645 !important;
}

#tarteaucitronIcon #tarteaucitronManager {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.4) !important;
  transition: all 0.3s ease !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

#tarteaucitronIcon #tarteaucitronManager:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.6) !important;
}

/* ─── Services Panel (when user clicks Personnaliser) ─── */
#tarteaucitron {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", system-ui, -apple-system, sans-serif !important;
}

#tarteaucitronBack {
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* Panel header */
#tarteaucitron #tarteaucitronServices .tarteaucitronTitle {
  background: #1a1a2e !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
  font-size: 14px !important;
}

#tarteaucitron #tarteaucitronServices .tarteaucitronDetails {
  background: #f8f9fa !important;
  font-size: 12px !important;
  color: #6b7280 !important;
}

/* Service allow/deny buttons in panel */
#tarteaucitron #tarteaucitronServices .tarteaucitronAllow {
  background: #16a34a !important;
  border-radius: 6px !important;
  color: #fff !important;
  border: none !important;
}

#tarteaucitron #tarteaucitronServices .tarteaucitronDeny {
  background: #dc2626 !important;
  border-radius: 6px !important;
  color: #fff !important;
  border: none !important;
}

/* Panel main buttons */
#tarteaucitron #tarteaucitronServices #tarteaucitronAllAllowed {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%) !important;
  border-radius: 8px !important;
}

#tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied {
  background: #dc2626 !important;
  border-radius: 8px !important;
}

/* ─── Hide service list when no services registered ─── */
#tarteaucitronServices_mandatory,
#tarteaucitronServices_analytic,
#tarteaucitronServices_social,
#tarteaucitronServices_video,
#tarteaucitronServices_comment,
#tarteaucitronServices_support,
#tarteaucitronServices_api,
#tarteaucitronServices_ads,
#tarteaucitronServices_other {
  /* Don't hide - let tarteaucitron handle visibility */
}

/* Panel links */
#tarteaucitron a {
  color: #f87171 !important;
}

#tarteaucitron a:hover {
  color: #dc2626 !important;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  #tarteaucitronAlertBig {
    padding: 12px 16px !important;
  }

  #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert {
    font-size: 11px !important;
    text-align: center !important;
    margin-bottom: 8px !important;
    display: block !important;
  }

  #tarteaucitronAlertBig button {
    font-size: 11px !important;
    padding: 7px 14px !important;
    margin: 3px !important;
  }
}

@media (max-width: 480px) {
  #tarteaucitronAlertBig button {
    display: block !important;
    width: 100% !important;
    margin: 4px 0 !important;
  }
}

/* ─── HIDE all residual popups, small bars, floating icons ─── */
/* Small alert bar (appears after accepting/refusing) */
#tarteaucitronAlertSmall {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Floating cookie icon */
#tarteaucitronIcon {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Percentage bar */
#tarteaucitronPercentage {
  display: none !important;
}

/* Any small banner or notification */
.tarteaucitronAlertSmallBottom,
.tarteaucitronAlertSmallTop,
#tarteaucitronAlertSmall .tarteaucitronAlertSmallBottom,
#tarteaucitronAlertSmall .tarteaucitronAlertSmallTop {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

/* Hide the "manage cookies" small text/link that can appear */
.tarteaucitronSelfLink,
.tarteaucitronSelf {
  display: none !important;
}

/* ─── Smooth entrance animation for main banner only ─── */
#tarteaucitronAlertBig {
  animation: tarteaucitronSlideUp 0.35s ease-out !important;
}

@keyframes tarteaucitronSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

