/* Spark & Flow - Gestion du consentement */
.sf-consent-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
}
.sf-consent-overlay[hidden] { display: none !important; }
.sf-consent-box {
  width: min(920px, 100%);
  background: #fff;
  color: #24113f;
  border: 1px solid rgba(47, 25, 75, .12);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(22, 10, 42, .24);
  padding: 22px;
  pointer-events: auto;
  font-family: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sf-consent-head { display: flex; gap: 14px; align-items: flex-start; }
.sf-consent-mark {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff2e9; color: #ff7f32;
  font-weight: 800; font-size: 20px;
}
.sf-consent-title {
  margin: 0 0 6px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.14rem; line-height: 1.3; color: #2f194b;
}
.sf-consent-text { margin: 0; line-height: 1.55; color: #5b5065; font-size: .96rem; }
.sf-consent-text a { color: #5a35a2; font-weight: 700; }
.sf-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sf-consent-btn {
  appearance: none; border: 1px solid #2f194b; border-radius: 10px;
  min-height: 44px; padding: 10px 17px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.sf-consent-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(47,25,75,.12); }
.sf-consent-btn:focus-visible { outline: 3px solid rgba(78,205,196,.55); outline-offset: 2px; }
.sf-consent-btn-main { background: #2f194b; color: #fff; }
.sf-consent-btn-main:hover { background: #412266; }
.sf-consent-btn-settings { background: #fff; color: #2f194b; border-color: #a59bac; }
.sf-consent-settings {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee8f1;
}
.sf-consent-settings[hidden] { display: none !important; }
.sf-consent-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 12px 0;
}
.sf-consent-row + .sf-consent-row { border-top: 1px solid #f1edf3; }
.sf-consent-row strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; color: #2f194b; margin-bottom: 3px; }
.sf-consent-row small { display: block; color: #6e6475; line-height: 1.45; max-width: 650px; }
.sf-consent-status { flex: 0 0 auto; font-weight: 700; font-size: .85rem; color: #5a35a2; padding-top: 2px; }
.sf-consent-switch { position: relative; flex: 0 0 auto; width: 48px; height: 28px; }
.sf-consent-switch input { opacity: 0; width: 1px; height: 1px; position: absolute; }
.sf-consent-slider { position: absolute; inset: 0; border-radius: 99px; background: #c9c2ce; cursor: pointer; transition: .2s; }
.sf-consent-slider::after { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.22); transition: .2s; }
.sf-consent-switch input:checked + .sf-consent-slider { background: #4ecdc4; }
.sf-consent-switch input:checked + .sf-consent-slider::after { transform: translateX(20px); }
.sf-consent-switch input:focus-visible + .sf-consent-slider { outline: 3px solid rgba(78,205,196,.45); outline-offset: 2px; }
.sf-consent-save { margin-top: 8px; }
.sf-cookie-manage {
  appearance: none; border: 0; padding: 0; margin: 0;
  background: transparent; color: rgba(255,255,255,.4);
  text-decoration: none; font: inherit; cursor: pointer;
}
.sf-cookie-manage:hover { color: rgba(255,255,255,.75); text-decoration: underline; }
.sf-cookie-manage:focus-visible { outline: 2px solid #4ecdc4; outline-offset: 3px; border-radius: 2px; }
.sf-cookie-manage-inline { color: #5a35a2; text-decoration: underline; font-weight: 700; }
.sf-cookie-manage-inline:hover { color: #2f194b; }
@media (max-width: 640px) {
  .sf-consent-overlay { padding: 10px; }
  .sf-consent-box { padding: 18px; border-radius: 14px; }
  .sf-consent-head { gap: 10px; }
  .sf-consent-mark { width: 36px; height: 36px; border-radius: 10px; }
  .sf-consent-actions { display: grid; grid-template-columns: 1fr; }
  .sf-consent-btn { width: 100%; }
  .sf-consent-row { gap: 10px; }
}
