/* Bandeau de consentement (Lot 4) - non bloquant, bas de page */
.sd-consent {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 720px;
  z-index: 99999;
  background: rgba(20, 20, 20, 0.96);
  color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  padding: 1rem 1.15rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}
.sd-consent[hidden] { display: none !important; }
.sd-consent__text { margin: 0 0 0.85rem; color: #e6e6e6; }
.sd-consent__text a { color: #d8b45e; text-decoration: underline; }
.sd-consent__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.sd-consent__btn {
  flex: 1 1 0;
  min-width: 140px;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.sd-consent__btn:hover { transform: translateY(-1px); }
/* Deux boutons de même poids visuel (R2) */
.sd-consent__btn--accept {
  background: linear-gradient(135deg, #7f6f4b 0%, #b8962e 100%);
  color: #1a1a1a;
}
.sd-consent__btn--refuse {
  background: linear-gradient(135deg, #7f6f4b 0%, #b8962e 100%);
  color: #1a1a1a;
}

/* Lien "Gérer les cookies" discret sur la page d'accueil (splash) */
.sd-cookie-link {
  position: fixed;
  left: 14px;
  bottom: 10px;
  z-index: 9998;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 5px 10px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.72rem;
  text-decoration: none;
  cursor: pointer;
}
.sd-cookie-link:hover { color: #fff; }

/* Placeholder de widget conditionné au consentement (ex. Elfsight) */
.sd-widget-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  min-height: 320px;
  padding: 2rem 1.25rem;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  color: #444;
  font-family: 'Montserrat', system-ui, sans-serif;
}
.sd-widget-placeholder p { margin: 0; max-width: 460px; line-height: 1.5; }
.sd-widget-placeholder .sd-widget-btn {
  min-height: 44px;
  padding: 0.7rem 1.3rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7f6f4b 0%, #b8962e 100%);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}
.sd-widget-placeholder .sd-widget-alt { font-size: 0.82rem; }
.sd-widget-placeholder .sd-widget-alt a { color: #7f6f4b; }

@media (max-width: 520px) {
  .sd-consent__actions { flex-direction: column; }
  .sd-consent__btn { width: 100%; }
}
