/* SonGratuit — Custom consent banner */
#sg-consent-root { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
#sg-consent-root .sg-consent-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
  background: rgba(15, 23, 42, 0);
}
#sg-consent-root.visible .sg-consent-overlay {
  opacity: 1; pointer-events: auto;
  background: rgba(15, 23, 42, .25);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.sg-consent-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .28), 0 0 0 1px rgba(79, 70, 229, .08);
  padding: 22px 24px 18px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  transform: translateY(24px);
  transition: transform .28s cubic-bezier(.34, 1.4, .64, 1);
  position: relative;
  overflow: hidden;
}
.sg-consent-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #ec4899, #f59e0b);
}
#sg-consent-root.visible .sg-consent-card { transform: translateY(0); }

.sg-consent-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(236, 72, 153, .12));
  color: #4f46e5;
  border-radius: 14px;
  margin-bottom: 10px;
}

.sg-consent-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.01em;
  color: #0f172a;
}

.sg-consent-desc {
  font-size: .88rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 16px;
}

.sg-consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sg-consent-btn {
  flex: 1 1 auto;
  min-width: 100px;
  padding: 11px 14px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}

.sg-consent-btn-primary {
  background: linear-gradient(135deg, #5a52f2, #4a42dd);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, .28);
  flex: 1 1 100%;
  order: 0;
}
.sg-consent-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, .35);
}

.sg-consent-btn-ghost {
  background: rgba(15, 23, 42, .04);
  color: #475569;
  order: 1;
}
.sg-consent-btn-ghost:hover {
  background: rgba(79, 70, 229, .08);
  color: #4f46e5;
}

.sg-consent-link {
  display: inline-block;
  font-size: .76rem;
  color: #64748b;
  text-decoration: none;
  margin-top: 4px;
}
.sg-consent-link:hover { color: #4f46e5; text-decoration: underline; }

/* Desktop : carte plus petite, en bas à droite */
@media (min-width: 720px) {
  #sg-consent-root .sg-consent-overlay {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px;
    background: transparent !important;
    backdrop-filter: none !important;
  }
  #sg-consent-root.visible .sg-consent-overlay {
    background: transparent;
  }
  .sg-consent-card {
    width: 380px;
  }
  .sg-consent-btn-primary {
    flex: 1 1 auto;
    order: 2;
  }
}

@media (max-width: 540px) {
  .sg-consent-card { border-radius: 18px 18px 0 0; padding: 20px 20px 16px; }
  #sg-consent-root .sg-consent-overlay { padding: 0; align-items: flex-end; }
  .sg-consent-card { width: 100%; }
}
