#cdr-cookie-consent {
  position: fixed;
  z-index: 10000;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: rgba(34, 45, 55, 0.97);
  color: rgb(245, 250, 245);
  box-shadow: 0 -4px 24px rgba(70, 70, 70, 0.25);
  font-family: "Roboto Flex", sans-serif;
  font-size: 1rem;
}

#cdr-cookie-consent[hidden],
#cdr-cookie-consent.cdr-cookie-consent--hidden {
  display: none !important;
}

/* Visible dès le HTML ; le JS masque seulement s’il y a déjà un choix valide */
#cdr-cookie-consent.cdr-cookie-consent--pending,
#cdr-cookie-consent.cdr-cookie-consent--visible {
  display: block;
}

.cdr-cookie-consent__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.cdr-cookie-consent__text {
  margin: 0;
  font-family: "Roboto Flex", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.45;
}

.cdr-cookie-consent__text a {
  color: rgb(20, 120, 163);
  text-decoration: underline;
  font-family: inherit;
}

.cdr-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.cdr-cookie-consent__btn {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 5px;
  min-height: 2.5rem;
  min-width: 9.5rem;
  padding: 0.45rem 1.1rem;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
}

.cdr-cookie-consent__btn--primary {
  background: rgb(16, 94, 127);
  color: #fff;
  border-color: rgb(16, 94, 127);
}

.cdr-cookie-consent__btn--primary:hover {
  background: rgb(20, 120, 163);
  border-color: rgb(20, 120, 163);
}

.cdr-cookie-consent__btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgb(244, 144, 159);
}

.cdr-cookie-consent__btn--secondary:hover {
  background: rgba(244, 144, 159, 0.2);
}

.cdr-cookie-consent__link {
  background: none;
  border: 0;
  color: rgb(244, 144, 159);
  text-decoration: underline;
  cursor: pointer;
  font-family: "Roboto Flex", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.4rem 0.2rem;
}

.cdr-cookie-consent__panel {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.75rem;
  display: grid;
  gap: 0.65rem;
}

.cdr-cookie-consent__panel[hidden] {
  display: none !important;
}

.cdr-cookie-consent__option {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-family: "Roboto Flex", sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.35;
}

.cdr-cookie-consent__option input {
  margin-top: 0.2rem;
}

@media (max-width: 640px) {
  .cdr-cookie-consent__btn {
    flex: 1 1 calc(50% - 0.6rem);
    min-width: 0;
  }

  .cdr-cookie-consent__link {
    width: 100%;
    text-align: left;
  }
}
