.cookie-consent,
.cookie-consent button {
  font-family: var(--font);
}

.cookie-consent {
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  color: var(--white);
  max-width: 760px;
  padding: 28px;
}

.cookie-consent--banner {
  bottom: 24px;
  left: 24px;
  position: fixed;
  right: 24px;
  z-index: 1000;
}

.cookie-consent h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px;
}

.cookie-consent p,
.cookie-consent small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.45;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cookie-consent__button {
  border: 1px solid var(--yellow);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0 16px;
}

.cookie-consent__button--choice {
  background: var(--yellow);
  color: var(--black);
}

.cookie-consent__button--secondary {
  background: transparent;
  color: var(--white);
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.cookie-consent__button:focus-visible,
.cookie-consent__close:focus-visible,
.cookie-consent__footer-button:focus-visible,
.formations-external-media-placeholder button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.cookie-consent__overlay {
  align-items: center;
  background: rgba(10, 10, 10, 0.76);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1001;
}

.cookie-consent--preferences {
  max-height: min(90vh, 700px);
  overflow-y: auto;
  width: min(100%, 680px);
}

.cookie-consent__heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.cookie-consent__close {
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 2rem;
  line-height: 0.75;
  padding: 0 3px;
}

.cookie-consent__categories {
  border: 0;
  margin: 24px 0 0;
  padding: 0;
}

.cookie-consent__categories legend {
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cookie-consent__category {
  align-items: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 14px 0;
}

.cookie-consent__category input {
  accent-color: var(--yellow);
  flex: 0 0 auto;
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.cookie-consent__category span {
  display: grid;
  gap: 4px;
}

.cookie-consent__category strong {
  font-size: 0.9rem;
}

.cookie-consent__footer-button {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__footer-button:hover {
  color: var(--yellow);
}

.cookie-consent__floating-button {
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.42);
  bottom: 18px;
  color: var(--white);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  min-height: 36px;
  padding: 8px 12px;
  position: fixed;
  right: 18px;
  z-index: 999;
}

.cookie-consent__floating-button:hover,
.cookie-consent__floating-button:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.cookie-consent__floating-button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.formations-external-media-placeholder {
  align-items: center;
  background: #151515;
  color: var(--white);
  display: flex;
  padding: 24px;
  text-align: center;
}

.formations-external-media-placeholder > div {
  display: grid;
  gap: 14px;
}

.formations-external-media-placeholder p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.4;
}

.formations-external-media-placeholder button {
  background: var(--yellow);
  border: 1px solid var(--yellow);
  color: var(--black);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  justify-self: center;
  padding: 10px 14px;
}

.formations-external-media-placeholder button:hover {
  background: var(--white);
  border-color: var(--white);
}

@media (max-width: 600px) {
  .cookie-consent--banner {
    bottom: 12px;
    left: 12px;
    padding: 22px;
    right: 12px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-consent__button {
    width: 100%;
  }
}
