/* ===============================
   Cookie consent (banner + modal)
   Scoped & Bootstrap-friendly
   =============================== */

.cookie-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1055;
  padding: .75rem;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,.08);
}

.cookie-banner-inner{
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner-actions{
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.cookie-table code{
  font-size: .85em;
}

/* Modal */
.cookie-modal-backdrop{
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(15,23,42,.55);
}

.cookie-modal{
  position: fixed;
  inset: 0;
  z-index: 1061;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-modal-card{
  width: min(720px, 100%);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 16px 50px rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.08);
  overflow: hidden;
}

.cookie-modal-header{
  padding: 1rem 1rem .75rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.cookie-modal-body{
  padding: 1rem;
}

.cookie-pref{
  padding: .9rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: .75rem;
  margin-bottom: .75rem;
  background: rgba(248,250,252,.9);
}

.cookie-modal-footer{
  padding: .9rem 1rem;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Dark mode (si ton Bootstrap le gère via data-bs-theme="dark") */
[data-bs-theme="dark"] .cookie-banner{
  background: rgba(17,24,39,.92);
  border-top-color: rgba(255,255,255,.08);
}
[data-bs-theme="dark"] .cookie-modal-card{
  background: rgba(17,24,39,1);
  border-color: rgba(255,255,255,.10);
}
[data-bs-theme="dark"] .cookie-pref{
  background: rgba(15,23,42,.55);
  border-color: rgba(255,255,255,.10);
}
