/* ════════════════════════════════════════════════════════════
   Keeratin RGPD — Bandeau de consentement cookies
   Design system : noir #0a0a0a / or #C5A55A / hover #d4b668 / Inter
   z-index eleve + !important pour passer devant les @layer Hummingbird
   ════════════════════════════════════════════════════════════ */

.lc-cc-banner,
.lc-cc-modal,
.lc-cc-fab { font-family: 'Inter', sans-serif; box-sizing: border-box; }
.lc-cc-banner *,
.lc-cc-modal *,
.lc-cc-fab * { box-sizing: border-box; }

/* hidden natif respecte (evite le flash avant init JS) */
.lc-cc-banner[hidden],
.lc-cc-modal[hidden],
.lc-cc-fab[hidden] { display: none !important; }

/* ─────────── BANDEAU ─────────── */
.lc-cc-banner {
  position: fixed !important;
  left: 0; right: 0; bottom: 0;
  z-index: 999990 !important;
  background: #ffffff;
  border-top: 3px solid #C5A55A;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.16);
  padding: 22px 24px;
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.16,.84,.44,1);
}
.lc-cc-banner.lc-cc-show { transform: translateY(0); }

.lc-cc-banner__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.lc-cc-banner__text { flex: 1 1 420px; min-width: 0; }
.lc-cc-banner__title {
  margin: 0 0 6px; font-size: 20px; color: #0a0a0a;
  letter-spacing: 2px; line-height: 1.05;
}
.lc-cc-banner__desc { margin: 0; font-size: 13.5px; line-height: 1.6; color: #6b6b6b; }

.lc-cc-banner__actions {
  display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; align-items: stretch;
}

/* ─────────── BOUTONS (poids egal accept / refuser — CNIL) ─────────── */
.lc-cc-btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 13px 22px; min-height: 46px;
  border-radius: 0; cursor: pointer; white-space: nowrap;
  transition: all .25s ease; line-height: 1;
}
.lc-cc-btn--solid { background: #0a0a0a; color: #C5A55A; border: 1px solid #0a0a0a; }
.lc-cc-btn--solid:hover { background: #C5A55A; color: #0a0a0a; border-color: #C5A55A; }
.lc-cc-btn--ghost { background: #ffffff; color: #0a0a0a; border: 1px solid #0a0a0a; }
.lc-cc-btn--ghost:hover { background: #0a0a0a; color: #ffffff; }

.lc-cc-link { color: #0a0a0a; text-decoration: underline; text-underline-offset: 2px; }
.lc-cc-link:hover { color: #C5A55A; }

/* ─────────── MODALE PREFERENCES ─────────── */
.lc-cc-modal { position: fixed !important; inset: 0; z-index: 999995 !important; }
.lc-cc-modal__overlay {
  position: absolute; inset: 0; background: rgba(10,10,10,0.55);
  opacity: 0; transition: opacity .3s;
}
.lc-cc-modal.lc-cc-show .lc-cc-modal__overlay { opacity: 1; }

.lc-cc-modal__dialog {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: #ffffff; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  opacity: 0; transition: opacity .3s, transform .3s;
}
.lc-cc-modal.lc-cc-show .lc-cc-modal__dialog { opacity: 1; transform: translate(-50%, -50%); }

.lc-cc-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; background: #0a0a0a; border-bottom: 2px solid #C5A55A; flex-shrink: 0;
}
.lc-cc-modal__title { margin: 0; font-size: 22px; color: #ffffff; letter-spacing: 2px; line-height: 1; }
.lc-cc-modal__close {
  background: none; border: none; color: #ffffff; cursor: pointer;
  padding: 0; opacity: .7; transition: opacity .2s, color .2s; line-height: 0;
}
.lc-cc-modal__close:hover { opacity: 1; color: #C5A55A; }

.lc-cc-modal__body { padding: 22px 26px; overflow-y: auto; flex: 1; }
.lc-cc-modal__intro { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: #6b6b6b; }

.lc-cc-cat { padding: 16px 0; border-top: 1px solid #f0f0f0; }
.lc-cc-cat:first-of-type { border-top: none; }
.lc-cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.lc-cc-cat__title { font-size: 14.5px; font-weight: 600; color: #1a1a1a; }
.lc-cc-cat__locked { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #C5A55A; flex-shrink: 0; }
.lc-cc-cat__desc { margin: 0; font-size: 12.5px; line-height: 1.55; color: #6b6b6b; }

/* ─────────── INTERRUPTEUR ─────────── */
.lc-cc-switch { position: relative; display: inline-block; flex-shrink: 0; cursor: pointer; }
.lc-cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.lc-cc-switch__track {
  display: block; width: 46px; height: 26px; background: #d8d8d8;
  border-radius: 999px; transition: background .25s;
}
.lc-cc-switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  background: #ffffff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform .25s;
}
.lc-cc-switch input:checked + .lc-cc-switch__track { background: #C5A55A; }
.lc-cc-switch input:checked + .lc-cc-switch__track .lc-cc-switch__thumb { transform: translateX(20px); }
.lc-cc-switch input:focus-visible + .lc-cc-switch__track { box-shadow: 0 0 0 3px rgba(197,165,90,0.25); }

.lc-cc-modal__foot {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
  padding: 18px 26px; border-top: 1px solid #f0f0f0; background: #FAFAFA; flex-shrink: 0;
}
.lc-cc-modal__foot .lc-cc-btn { flex: 1 1 auto; text-align: center; }

/* ─────────── BOUTON FLOTTANT (rouvrir) ─────────── */
.lc-cc-fab {
  position: fixed !important; left: 18px; bottom: 18px; z-index: 999980 !important;
  display: inline-flex; align-items: center; gap: 8px;
  background: #0a0a0a; color: #C5A55A; border: 1px solid #C5A55A;
  padding: 10px 14px; border-radius: 999px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2); transition: all .25s ease; line-height: 1;
}
.lc-cc-fab:hover { background: #C5A55A; color: #0a0a0a; }
.lc-cc-fab svg { flex-shrink: 0; }

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 768px) {
  .lc-cc-banner { padding: 18px 16px; }
  .lc-cc-banner__inner { gap: 16px; }
  .lc-cc-banner__actions { width: 100%; }
  .lc-cc-banner__actions .lc-cc-btn { flex: 1 1 100%; text-align: center; }
  .lc-cc-modal__foot { flex-direction: column-reverse; }
  .lc-cc-modal__foot .lc-cc-btn { width: 100%; }
  .lc-cc-fab__label { display: none; }
  .lc-cc-fab { padding: 12px; border-radius: 50%; }
}
