/* Bandeau cookies : adaptez les 3 premières variables à votre charte */
:root {
  --cc-bg: #303030;
  --cc-text: #ffffff;
  --cc-accent: #ffbe33;
  --cc-muted: #c9c9c9;
  --cc-line: #5a5a5a;
}
#cc {
  position: fixed; z-index: 9999; left: 16px; bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  background: var(--cc-bg); color: var(--cc-text);
  border: 1px solid var(--cc-line); border-radius: 10px;
  padding: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.35);
  font-size: 15px; line-height: 1.5;
}
#cc[hidden] { display: none; }
#cc h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--cc-text); }
#cc p { margin: 0 0 16px; color: var(--cc-muted); }
#cc a { color: var(--cc-accent); text-underline-offset: 2px; }
#cc .cc-actions { display: flex; gap: 8px; }
/* Les deux boutons ont exactement le même style (exigence CNIL) */
#cc button {
  flex: 1 1 0; padding: 10px 14px; cursor: pointer; font: inherit; font-weight: 600;
  background: transparent; color: var(--cc-accent);
  border: 2px solid var(--cc-accent); border-radius: 8px; transition: background .15s, color .15s;
}
#cc button:hover { background: var(--cc-accent); color: #222; }
#cc button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 520px) { #cc { left: 8px; right: 8px; bottom: 8px; width: auto; } }
@media (prefers-reduced-motion: reduce) { #cc button { transition: none; } }
