/* Bandeau + modal cookies — Funk Factory */
.ff-rgpd {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 6, 12, 0.96);
  border-top: 1px solid rgba(208, 41, 109, 0.35);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.ff-rgpd-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ff-rgpd-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52rem;
}

.ff-rgpd-text a {
  color: #f06aa8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ff-rgpd-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ff-rgpd-btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.ff-rgpd-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.ff-rgpd-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.ff-rgpd-btn--solid {
  background: #d0296d;
  color: #fff;
  border: none;
}

.ff-rgpd-btn--solid:hover {
  background: #b8235a;
}

.ff-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ff-cookie-modal.on {
  display: flex;
}

.ff-cookie-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.ff-cookie-modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(90vh, 640px);
  display: flex;
  flex-direction: column;
  background: #12031a;
  border: 1px solid rgba(208, 41, 109, 0.35);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  color: #f0f0f0;
}

.ff-cookie-modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.ff-cookie-modal-x:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ff-cookie-modal-scroll {
  overflow-y: auto;
  padding: 22px 20px 12px;
}

.ff-cookie-modal-title {
  margin: 0 0 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: #d0296d;
  padding-right: 28px;
}

.ff-cookie-modal-intro {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.ff-cookie-block {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.ff-cookie-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.ff-cookie-block-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.ff-cookie-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}

.ff-cookie-badge--on {
  background: rgba(208, 41, 109, 0.25);
  color: #f06aa8;
}

.ff-cookie-block-desc {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

.ff-cookie-examples {
  margin: 0;
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

.ff-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.ff-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ff-switch-ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s;
  position: relative;
}

.ff-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.ff-switch input:checked + .ff-switch-ui {
  background: #d0296d;
}

.ff-switch input:checked + .ff-switch-ui::after {
  transform: translateX(20px);
}

.ff-cookie-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ff-cookie-foot-btn {
  flex: 1 1 auto;
  min-width: 120px;
  border-radius: 999px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ff-cookie-foot-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.ff-cookie-foot-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ff-cookie-foot-btn--solid {
  background: #d0296d;
  color: #fff;
  border: none;
}

.ff-cookie-foot-btn--solid:hover {
  background: #b8235a;
}

.footer-cookie-link {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: #d8d8d8;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.footer-cookie-link:hover {
  color: #fff;
}

html.ff-rgpd-ok .ff-rgpd {
  display: none;
}

@media (max-width: 600px) {
  .ff-rgpd-text {
    font-size: 12px;
  }

  .ff-rgpd-text a {
    color: #fff;
  }

  .ff-rgpd-actions {
    width: 100%;
    max-width: 360px;
  }

  .ff-rgpd-btn {
    flex: 1 1 30%;
    text-align: center;
  }

  .ff-cookie-modal-foot {
    flex-direction: column;
  }

  .ff-cookie-foot-btn {
    width: 100%;
  }
}
