/* ══════════════════════════════════════════════════════════
   Cookie Consent Banner — LM Couverture
   Design cohérent avec le thème dark luxury
   ══════════════════════════════════════════════════════════ */

/* Overlay de fond flou */
.cc-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, .55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cc-backdrop.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Bannière principale */
.cc-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9001;
  width: min(560px, calc(100vw - 2rem));
  background: #141210;
  border: 1px solid rgba(184, 149, 90, .2);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.03);
  padding: 1.6rem 1.75rem 1.5rem;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease, transform .32s cubic-bezier(.34,1.56,.64,1);
}
.cc-banner.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* En-tête */
.cc-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.cc-icon {
  width: 36px;
  height: 36px;
  background: rgba(184, 149, 90, .1);
  border: 1px solid rgba(184, 149, 90, .25);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.cc-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: #F4F0EB;
  font-weight: 600;
  line-height: 1.2;
}
.cc-sub {
  font-size: .7rem;
  color: #7C7068;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .1rem;
}

/* Corps */
.cc-body {
  font-size: .82rem;
  color: #9B9189;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.cc-body a {
  color: #B8955A;
  text-decoration: none;
}
.cc-body a:hover { text-decoration: underline; }

/* Options détaillées (accordéon) */
.cc-details {
  display: none;
  margin-bottom: 1.1rem;
}
.cc-details.open { display: block; }
.cc-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(232, 226, 217, .06);
}
.cc-option:last-child { border-bottom: none; }
.cc-option-info { flex: 1; }
.cc-option-name {
  font-size: .82rem;
  font-weight: 600;
  color: #D4CFC9;
}
.cc-option-desc {
  font-size: .73rem;
  color: #7C7068;
  margin-top: .15rem;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-left: 1rem;
}
.cc-toggle input { opacity: 0; width: 0; height: 0; }
.cc-slider {
  position: absolute;
  inset: 0;
  background: rgba(232,226,217,.12);
  border-radius: 99px;
  transition: background .22s;
  cursor: pointer;
}
.cc-toggle input:checked + .cc-slider { background: #B8955A; }
.cc-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}
.cc-toggle input:checked + .cc-slider::before { transform: translateX(18px); }
/* Désactivé (nécessaire) */
.cc-toggle.disabled .cc-slider { cursor: not-allowed; opacity: .5; }

/* Boutons */
.cc-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}
.cc-btn {
  flex: 1;
  min-width: 130px;
  padding: .65rem 1rem;
  border-radius: 7px;
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid;
  transition: background .18s, border-color .18s, color .18s, transform .1s;
  text-align: center;
}
.cc-btn:active { transform: scale(.97); }
.cc-btn-all {
  background: #B8955A;
  border-color: #B8955A;
  color: #0A0805;
}
.cc-btn-all:hover { background: #C9A868; border-color: #C9A868; }
.cc-btn-refuse {
  background: transparent;
  border-color: rgba(232,226,217,.18);
  color: #9B9189;
}
.cc-btn-refuse:hover { border-color: rgba(232,226,217,.4); color: #D4CFC9; }
.cc-btn-custom {
  background: transparent;
  border-color: rgba(184,149,90,.3);
  color: #B8955A;
  font-size: .6rem;
}
.cc-btn-custom:hover { border-color: rgba(184,149,90,.6); background: rgba(184,149,90,.06); }

/* Lien "Gérer" dans le footer */
.cc-reopen {
  font-size: .68rem;
  color: #5C5550;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: color .15s;
}
.cc-reopen:hover { color: #B8955A; }

/* Mobile */
@media (max-width: 600px) {
  .cc-banner { bottom: 0; border-radius: 14px 14px 0 0; width: 100%; }
  .cc-actions { flex-direction: column; }
  .cc-btn { min-width: 0; }
}
