/* ============================================================
   leBroker — Bannière de consentement cookies (styles)
   Design cohérent : noir profond, Fraunces, rectangulaire
   ============================================================ */

#lb-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;
  width: calc(100% - 40px);
  max-width: 640px;
  background: #0F1A2E;
  color: #FFFFFF;
  box-shadow: 0 8px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
}

#lb-cookie-banner.lb-cookie-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lb-cookie-inner {
  padding: 28px 30px;
}

.lb-cookie-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 10px 0;
  color: #FFFFFF;
  line-height: 1.3;
}

.lb-cookie-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px 0;
}

.lb-cookie-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.lb-cookie-btn {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
  flex: 0 0 auto;
}

/* Bouton "Accepter" — primaire blanc */
.lb-cookie-accept {
  background: #FFFFFF;
  color: #0F1A2E;
  border-color: #FFFFFF;
}

.lb-cookie-accept:hover {
  opacity: 0.85;
}

/* Bouton "Refuser" — secondaire contour blanc (même niveau visuel = conformité CNIL) */
.lb-cookie-refuse {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
}

.lb-cookie-refuse:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.lb-cookie-link {
  display: inline-block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.lb-cookie-link:hover {
  color: #FFFFFF;
}

/* ---------- Bouton flottant "Gérer mes cookies" ---------- */

#lb-cookie-manager {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 99998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0F1A2E;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#lb-cookie-manager:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
  #lb-cookie-banner {
    bottom: 12px;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .lb-cookie-inner {
    padding: 22px 22px;
  }

  .lb-cookie-title {
    font-size: 17px;
  }

  .lb-cookie-desc {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .lb-cookie-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .lb-cookie-btn {
    width: 100%;
    padding: 13px 20px;
    box-sizing: border-box;
  }

  #lb-cookie-manager {
    width: 40px;
    height: 40px;
    font-size: 18px;
    bottom: 14px;
    left: 14px;
  }
}
