/* Cookie banner Laboratoire Bizeau — RGPD + Google Consent Mode v2 */
#bzc-banner, #bzc-modal-backdrop { font-family: 'Inter', system-ui, -apple-system, sans-serif; box-sizing: border-box; }
#bzc-banner *, #bzc-modal-backdrop * { box-sizing: border-box; }

#bzc-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: calc(1280px - 32px); /* max-w-7xl (1280px) - 2x px-4 (16px) ; ajusté en media query plus bas */
  margin: 0 auto;
  background: #ffffff; color: #1b2a3a;
  border-radius: 18px; box-shadow: 0 18px 40px -8px rgba(15, 42, 75, 0.25), 0 2px 6px rgba(15, 42, 75, 0.08);
  padding: 22px 28px; z-index: 99998;
  display: none; opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Aligne pile sur le conteneur max-w-7xl du site (padding lg:px-8 = 32px) */
@media (min-width: 1024px) {
  #bzc-banner { left: 32px; right: 32px; max-width: calc(1280px - 64px); }
}
/* Tablette sm:px-6 = 24px */
@media (min-width: 640px) and (max-width: 1023.98px) {
  #bzc-banner { left: 24px; right: 24px; max-width: calc(1280px - 48px); }
}
/* Layout flex : texte à gauche, boutons à droite quand on a la place */
@media (min-width: 768px) {
  #bzc-banner { display: none; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 28px; }
  #bzc-banner.bzc-show { display: flex; }
  #bzc-banner > .bzc-content { flex: 1; min-width: 0; }
  #bzc-banner h3 { margin-bottom: 4px; }
  #bzc-banner p { margin-bottom: 0; }
  #bzc-banner .bzc-actions { flex-shrink: 0; flex-wrap: nowrap; }
}
#bzc-banner.bzc-show { display: block; opacity: 1; transform: translateY(0); }
#bzc-banner h3 { margin: 0 0 8px 0; font-size: 17px; font-weight: 700; color: #0e2a4a; }
#bzc-banner p { margin: 0 0 16px 0; font-size: 14px; line-height: 1.55; color: #4a5b6e; }
#bzc-banner p a { color: #0e2a4a; text-decoration: underline; }
#bzc-banner .bzc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bzc-btn { border: 0; border-radius: 12px; padding: 11px 18px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s ease; font-family: inherit; }
.bzc-btn-primary { background: linear-gradient(135deg, #1f6fc4, #163e7a); color: #fff; }
.bzc-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(22, 62, 122, 0.3); }
.bzc-btn-secondary { background: #f4f6fa; color: #1b2a3a; }
.bzc-btn-secondary:hover { background: #e7ecf3; }
.bzc-btn-link { background: transparent; color: #1f6fc4; padding: 11px 12px; }
.bzc-btn-link:hover { text-decoration: underline; }

#bzc-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 25, 40, 0.55); z-index: 99999;
  display: none; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity 0.2s ease;
}
#bzc-modal-backdrop.bzc-show { display: flex; opacity: 1; }
#bzc-modal { background: #fff; border-radius: 18px; max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 28px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.4); }
#bzc-modal h3 { margin: 0 0 6px 0; font-size: 20px; color: #0e2a4a; font-weight: 700; }
#bzc-modal > p { margin: 0 0 20px 0; font-size: 14px; color: #4a5b6e; line-height: 1.55; }
.bzc-cat { border: 1px solid #e7ecf3; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.bzc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bzc-cat h4 { margin: 0; font-size: 15px; color: #0e2a4a; font-weight: 600; }
.bzc-cat p { margin: 8px 0 0 0; font-size: 13px; color: #6a7a8b; line-height: 1.5; }
.bzc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.bzc-switch input { opacity: 0; width: 0; height: 0; }
.bzc-slider { position: absolute; cursor: pointer; inset: 0; background: #cfd6df; border-radius: 24px; transition: background 0.2s; }
.bzc-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.bzc-switch input:checked + .bzc-slider { background: linear-gradient(135deg, #1f6fc4, #163e7a); }
.bzc-switch input:checked + .bzc-slider::before { transform: translateX(20px); }
.bzc-switch input:disabled + .bzc-slider { opacity: 0.6; cursor: not-allowed; }
#bzc-modal .bzc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

@media (max-width: 600px) {
  #bzc-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  #bzc-banner h3 { font-size: 15px; }
  #bzc-banner p { font-size: 13px; }
  .bzc-btn { padding: 10px 14px; font-size: 13px; }
  #bzc-modal { padding: 22px; }
}
