/* Desura — bandeau consentement cookies (CMP maison, BUG-003).
   Placeholder sobre sur tokens publics — polish visuel : voir
   docs/design/design-todos.md (entrée « Bandeau cookies »). */

.dconsent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 2147483000;
  padding: 12px;
  pointer-events: none;
}

.dconsent__box {
  pointer-events: auto;
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-snow, #fff);
  color: var(--color-obsidian, #14151a);
  border: 1px solid var(--color-fog, #e6e8ee);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(20, 21, 26, .18);
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.5;
}

.dconsent__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.dconsent__text {
  margin: 0 0 12px;
  color: var(--color-graphite, #4a4e5a);
}

.dconsent__text a {
  color: var(--color-obsidian, #14151a);
  font-weight: 600;
  text-decoration: underline;
}

.dconsent__prefs {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px;
  background: var(--color-mist, #f4f5f8);
  border-radius: 10px;
}

/* display:grid écraserait le display:none UA de [hidden] */
.dconsent__prefs[hidden] {
  display: none;
}

.dconsent__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.dconsent__opt span {
  color: var(--color-ash, #9aa0ad);
  font-size: 12.5px;
}

.dconsent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dconsent__btn {
  appearance: none;
  border: 1px solid var(--color-fog, #e6e8ee);
  background: var(--color-snow, #fff);
  color: var(--color-obsidian, #14151a);
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.dconsent__btn:hover {
  border-color: var(--color-steel, #6b7080);
}

.dconsent__btn--primary {
  background: var(--color-obsidian, #14151a);
  border-color: var(--color-obsidian, #14151a);
  color: var(--color-snow, #fff);
}

@media (max-width: 540px) {
  .dconsent__actions {
    justify-content: stretch;
  }

  .dconsent__btn {
    flex: 1 1 auto;
  }
}
