/* Choco Cookies — bandeau aux couleurs de choco-pack.com */
.cc-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 2147483000;
  width: 380px;
  max-width: calc(100vw - 48px);
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e3e8e3;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 20px 22px 16px;
  font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #444444;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cc-banner[hidden] { display: none !important; }
.cc-banner.cc-visible { opacity: 1; transform: translateY(0); }

.cc-banner .cc-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: #222222;
  margin: 0 0 8px;
}
.cc-banner .cc-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #555555;
  margin: 0 0 16px;
}
.cc-banner .cc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* Les deux boutons sont strictement identiques (exigence CNIL) */
.cc-banner .cc-btn {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: #9cbf9b;
  color: #2f3a2f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cc-banner .cc-btn:hover { background: #8cb38b; }
.cc-banner .cc-btn:focus-visible { outline: 2px solid #5e7d5d; outline-offset: 2px; }
.cc-banner .cc-more {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 12.5px;
  color: #5e7d5d;
  text-decoration: underline;
}
.cc-banner .cc-more:hover { color: #3f5a3e; }

/* Lien « Gestion des cookies » ajouté en bas de page */
.cc-footer-link {
  text-align: center;
  padding: 8px 0 14px;
  font-size: 12.5px;
}
.cc-footer-link a { color: inherit; text-decoration: underline; opacity: 0.8; }
.cc-footer-link a:hover { opacity: 1; }

/* Mobile : bandeau ancré en bas d'écran */
@media (max-width: 600px) {
  .cc-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    border-radius: 16px 16px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 16px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .cc-banner .cc-title { font-size: 19px; margin-bottom: 6px; }
  .cc-banner .cc-text { font-size: 13px; margin-bottom: 12px; }
  .cc-banner .cc-btn { padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner { transition: none; }
}
