/* ============================================================
   BANDEAU COOKIES — SARL LEFRANC
   ============================================================
   Styles autonomes, n'interferent pas avec le reste du site.
   Toutes les classes sont prefixees `lf-cc-` pour eviter
   les collisions.
   ============================================================ */

/* Bandeau initial en bas de page ----------------------------- */
.lf-cc-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 99998;
  max-width: 920px;
  margin: 0 auto;
  background: #FFFFFF;
  color: #111111;
  border: 1px solid #E6E6E6;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 22px 24px;
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  display: none;
  animation: lfCcSlideUp .35s ease-out;
}
.lf-cc-banner.lf-cc-visible { display: block; }

@keyframes lfCcSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.lf-cc-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lf-cc-banner h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 4px 0;
  color: #111111;
  letter-spacing: -.01em;
}
.lf-cc-banner p {
  margin: 0;
  color: #4A4A4A;
  font-size: 14px;
}
.lf-cc-banner p a {
  color: #C42828;
  text-decoration: underline;
}

.lf-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.lf-cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.lf-cc-btn-primary {
  background: #C42828;
  color: #FFFFFF;
}
.lf-cc-btn-primary:hover { background: #A52121; }

.lf-cc-btn-ghost {
  background: #FFFFFF;
  color: #111111;
  border-color: #E6E6E6;
}
.lf-cc-btn-ghost:hover { border-color: #111111; }

.lf-cc-btn-link {
  background: transparent;
  color: #4A4A4A;
  border: 0;
  text-decoration: underline;
  padding: 10px 8px;
}
.lf-cc-btn-link:hover { color: #C42828; }

/* Modale "Personnaliser" ------------------------------------- */
.lf-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: lfCcFadeIn .2s ease-out;
}
.lf-cc-overlay.lf-cc-visible { display: flex; }

@keyframes lfCcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lf-cc-modal {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #111111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: lfCcModalIn .3s ease-out;
}

@keyframes lfCcModalIn {
  from { transform: scale(.96); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.lf-cc-modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid #E6E6E6;
}
.lf-cc-modal-header h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 6px 0;
  letter-spacing: -.01em;
}
.lf-cc-modal-header p {
  margin: 0;
  font-size: 14px;
  color: #4A4A4A;
  line-height: 1.55;
}

.lf-cc-modal-body {
  padding: 18px 28px;
}

.lf-cc-category {
  border: 1px solid #E6E6E6;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.lf-cc-category-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.lf-cc-category-text {
  flex: 1;
}
.lf-cc-category-text h4 {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 4px 0;
}
.lf-cc-category-text .lf-cc-required {
  font-size: 11px;
  font-weight: 600;
  color: #767676;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-left: 6px;
}
.lf-cc-category-text p {
  margin: 0;
  font-size: 13px;
  color: #4A4A4A;
  line-height: 1.5;
}

/* Toggle switch ---------------------------------------------- */
.lf-cc-switch {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.lf-cc-switch input {
  opacity: 0; width: 0; height: 0;
}
.lf-cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #CFCFCF;
  border-radius: 999px;
  transition: background .2s;
}
.lf-cc-slider::before {
  content: "";
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform .2s;
}
.lf-cc-switch input:checked + .lf-cc-slider {
  background: #C42828;
}
.lf-cc-switch input:checked + .lf-cc-slider::before {
  transform: translateX(20px);
}
.lf-cc-switch input:disabled + .lf-cc-slider {
  background: #B5B5B5;
  cursor: not-allowed;
}

.lf-cc-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 28px 24px;
  border-top: 1px solid #E6E6E6;
  background: #FAFAFA;
  border-radius: 0 0 16px 16px;
}

@media (max-width: 600px) {
  .lf-cc-banner {
    bottom: 8px; left: 8px; right: 8px;
    padding: 18px 20px;
  }
  .lf-cc-actions { flex-direction: column-reverse; align-items: stretch; }
  .lf-cc-btn { width: 100%; }
  .lf-cc-modal-footer { flex-direction: column-reverse; }
  .lf-cc-modal-footer .lf-cc-btn { width: 100%; }
  .lf-cc-modal-header, .lf-cc-modal-body, .lf-cc-modal-footer {
    padding-left: 20px; padding-right: 20px;
  }
}
