/* ═══════════════════════════════════════════════════════════
   MBH COOKIE CONSENT — cookie-consent.css
   Bannière RGPD custom : Accepter / Refuser / Personnaliser
   Design cohérent avec le thème MBH Fullwidth v2
═══════════════════════════════════════════════════════════ */

/* ── Overlay backdrop ──────────────────────────────────── */
.mbh-cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(0.4,0,0.2,1);
}

.mbh-cc-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Banner (bottom bar) ───────────────────────────────── */
.mbh-cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9991;
  background: rgba(13,13,22,.97);
  border-top: 1px solid rgba(249,115,22,.25);
  padding: 1.25rem clamp(1.25rem,4vw,3rem);
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.5);
}

.mbh-cc-banner.visible {
  transform: translateY(0);
}

.mbh-cc-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.mbh-cc-banner-left {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  flex: 1;
  min-width: 260px;
}

.mbh-cc-cookie-icon {
  width: 36px;
  height: 36px;
  background: rgba(249,115,22,.12);
  border: 1px solid rgba(249,115,22,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.mbh-cc-cookie-icon svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: #f97316;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mbh-cc-banner-text h4 {
  font-family: 'Geist', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .2rem;
}

.mbh-cc-banner-text p {
  font-size: .78rem;
  color: #7b7b9a;
  line-height: 1.55;
  max-width: 560px;
}

.mbh-cc-banner-text a {
  color: #f97316;
  text-decoration: none;
  border-bottom: 1px solid rgba(249,115,22,.3);
  transition: border-color .2s;
}

.mbh-cc-banner-text a:hover { border-color: #f97316; }

/* Buttons */
.mbh-cc-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.mbh-cc-btn {
  font-family: 'Geist', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  padding: .55rem 1.1rem;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  letter-spacing: .01em;
}

.mbh-cc-btn-accept {
  background: #f97316;
  color: #fff;
}

.mbh-cc-btn-accept:hover {
  opacity: .88;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,.4);
}

.mbh-cc-btn-reject {
  background: rgba(255,255,255,.06);
  color: #7b7b9a;
  border: 1px solid rgba(255,255,255,.08);
}

.mbh-cc-btn-reject:hover {
  background: rgba(255,255,255,.1);
  color: #dddde8;
}

.mbh-cc-btn-customize {
  background: transparent;
  color: #7b7b9a;
  border: 1px solid rgba(255,255,255,.08);
}

.mbh-cc-btn-customize:hover {
  background: rgba(255,255,255,.05);
  color: #dddde8;
}

/* ── Modal (customize) ─────────────────────────────────── */
.mbh-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}

.mbh-cc-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.mbh-cc-modal-box {
  background: #12121e;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(.96) translateY(12px);
  transition: transform .3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
}

.mbh-cc-modal.visible .mbh-cc-modal-box {
  transform: scale(1) translateY(0);
}

.mbh-cc-modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f97316, transparent);
  border-radius: 20px 20px 0 0;
}

.mbh-cc-modal-head {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.mbh-cc-modal-head h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
  margin-bottom: .2rem;
}

.mbh-cc-modal-head p {
  font-size: .78rem;
  color: #7b7b9a;
  line-height: 1.55;
}

.mbh-cc-modal-close {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: none;
  cursor: pointer;
  color: #7b7b9a;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
  line-height: 1;
}

.mbh-cc-modal-close:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Categories */
.mbh-cc-categories {
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.mbh-cc-category {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color .2s;
}

.mbh-cc-category:hover { border-color: rgba(255,255,255,.1); }

.mbh-cc-category-info { flex: 1; }

.mbh-cc-category-info h5 {
  font-family: 'Geist', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.mbh-cc-required-badge {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7b7b9a;
  background: rgba(255,255,255,.06);
  padding: .15rem .45rem;
  border-radius: 4px;
}

.mbh-cc-category-info p {
  font-size: .76rem;
  color: #7b7b9a;
  line-height: 1.55;
}

/* Toggle */
.mbh-cc-toggle {
  flex-shrink: 0;
  margin-top: 2px;
}

.mbh-cc-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 38px;
  height: 22px;
  background: rgba(255,255,255,.1);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  transition: background .2s;
  border: 1px solid rgba(255,255,255,.08);
}

.mbh-cc-toggle input[type="checkbox"]:checked {
  background: #f97316;
  border-color: #f97316;
}

.mbh-cc-toggle input[type="checkbox"]:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.mbh-cc-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.mbh-cc-toggle input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}

/* Modal footer */
.mbh-cc-modal-foot {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ── Consent indicator (float btn) ────────────────────── */
.mbh-cc-float {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 9000;
  background: rgba(13,13,22,.9);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .5rem .75rem;
  display: none;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  transition: all .2s;
  backdrop-filter: blur(12px);
}

.mbh-cc-float:hover {
  border-color: rgba(249,115,22,.3);
  background: rgba(13,13,22,.98);
}

.mbh-cc-float.show { display: flex; }

.mbh-cc-float-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.mbh-cc-float span {
  font-family: 'Geist', sans-serif;
  font-size: .72rem;
  color: #7b7b9a;
  letter-spacing: .03em;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .mbh-cc-banner-inner { flex-direction: column; align-items: flex-start; }
  .mbh-cc-actions { width: 100%; }
  .mbh-cc-btn { flex: 1; text-align: center; }
}
