/* Dbloods — bloc pub (visible seulement après consentement ads) */
.dbloods-ad-slot {
  max-width: 820px;
  margin: 22px auto 4px;
  text-align: center;
}
.dbloods-ad-slot[hidden] { display: none !important; }
.dbloods-ad-label {
  color: #3a3a3a;
  font-size: 0.6em;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  margin-bottom: 4px;
}

/* Dbloods — Consentement cookies (compact, en bas à gauche) */
#db-consent {
  position: fixed;
  left: 12px;
  right: auto;
  bottom: 56px;
  z-index: 2147483646;
  padding: 0;
  pointer-events: none;
  font-family: 'Rajdhani', sans-serif;
  max-width: min(420px, calc(100vw - 24px));
  width: auto;
}
#db-consent[hidden] { display: none !important; }
#db-consent .db-consent-panel {
  pointer-events: auto;
  max-width: 420px;
  width: 100%;
  margin: 0;
  background: linear-gradient(180deg, #141416 0%, #0c0c0e 100%);
  border: 1px solid #2a2a2e;
  border-left: 3px solid #c0392b;
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.65);
  padding: 14px 16px;
  color: #ddd;
  box-sizing: border-box;
}
#db-consent h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95em;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: #fff;
}
#db-consent p {
  margin: 0 0 12px;
  font-size: 0.82em;
  line-height: 1.4;
  color: #999;
}
#db-consent a { color: #e0746a; text-decoration: none; }
#db-consent a:hover { text-decoration: underline; }
#db-consent .db-consent-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}
#db-consent .db-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72em;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s;
  white-space: nowrap;
}
#db-consent .db-btn:hover { transform: translateY(-1px); }
#db-consent .db-btn-accept {
  background: linear-gradient(135deg, #a93226, #c0392b);
  color: #fff;
}
#db-consent .db-btn-reject {
  background: transparent;
  color: #bbb;
  border: 1px solid #444;
}
#db-consent .db-btn-reject:hover { border-color: #888; color: #fff; }
#db-consent .db-btn-custom {
  background: #1a1a1e;
  color: #f1c40f;
  border: 1px solid rgba(241,196,15,0.35);
}
#db-consent .db-consent-prefs {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #26262a;
}
#db-consent .db-consent-prefs.open { display: block; }
#db-consent .db-pref-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}
#db-consent .db-pref-row h3 {
  margin: 0 0 2px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8em;
  letter-spacing: 0.4px;
  color: #fff;
  text-transform: uppercase;
}
#db-consent .db-pref-row p {
  margin: 0;
  font-size: 0.72em;
  color: #777;
}
#db-consent .db-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
#db-consent .db-switch input { opacity: 0; width: 0; height: 0; }
#db-consent .db-switch span {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 22px;
  cursor: pointer;
  transition: background .2s;
}
#db-consent .db-switch span::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
#db-consent .db-switch input:checked + span { background: #c0392b; }
#db-consent .db-switch input:checked + span::before { transform: translateX(18px); }
#db-consent .db-switch input:disabled + span { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 600px) {
  #db-consent {
    left: 8px;
    bottom: 52px;
    max-width: min(360px, calc(100vw - 16px));
  }
  #db-consent .db-consent-panel {
    max-width: 100%;
    padding: 12px 14px;
  }
  #db-consent .db-consent-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
}
