/* Conformité FR — bandeau haut, avertissement ANJ, age gate, cookies */

.site-topbar {
  position: relative;
  z-index: 60;
  background: #0c0818;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.45rem 0.75rem;
  text-transform: none;
}

.anj-warning {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  align-items: stretch;
  min-height: 52px;
  max-height: 72px;
  background: #ffcc00;
  color: #000;
  text-decoration: none;
  box-sizing: border-box;
  border-top: 1px solid #000;
}

.anj-warning:hover,
.anj-warning:focus {
  color: #000;
  text-decoration: none;
  outline: 2px solid #000;
  outline-offset: -2px;
}

.anj-warning__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

.anj-warning__line1 {
  font-size: clamp(9px, 1.1vw, 12px);
  letter-spacing: 0.01em;
}

.anj-warning__line2 {
  margin-top: 0.1rem;
  font-size: clamp(8px, 0.95vw, 10px);
  letter-spacing: 0.01em;
}

.anj-warning__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 0.25rem 0.45rem;
  min-width: 64px;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.anj-warning__logo img {
  width: 52px;
  height: auto;
  max-height: 44px;
  display: block;
  object-fit: contain;
}

body.has-anj-warning {
  padding-bottom: calc(72px + 0.75rem);
}

#ageGate,
#cookieBanner {
  font-family: Inter, system-ui, sans-serif;
}

#ageGate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 3, 13, 0.92);
  backdrop-filter: blur(8px);
}

#ageGate.is-open {
  display: flex;
}

#ageGate .age-gate__panel {
  width: 100%;
  max-width: 440px;
  background: #120928;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  color: #e2e8f0;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

#ageGate .age-gate__panel h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
}

#ageGate .age-gate__panel p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 1.25rem;
}

#ageGate .age-gate__actions {
  display: grid;
  gap: 0.65rem;
}

#ageGate .age-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#ageGate .age-gate__btn--yes {
  background: linear-gradient(90deg, #4f46e5, #c026d3);
  color: #fff;
}

#ageGate .age-gate__btn--no {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

#cookieBanner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(72px + 0.75rem);
  z-index: 90;
  display: none;
  max-width: 720px;
  margin: 0 auto;
  background: #120928;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  color: #cbd5e1;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

#cookieBanner.is-open {
  display: block;
}

#cookieBanner p {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

#cookieBanner .cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#cookieBanner .cookie-banner__btn {
  flex: 1 1 140px;
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

#cookieBanner .cookie-banner__btn--accept {
  background: linear-gradient(90deg, #4f46e5, #c026d3);
  color: #fff;
}

#cookieBanner .cookie-banner__btn--reject {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

#cookieBanner .cookie-banner__link {
  flex: 1 1 100%;
  text-align: center;
  font-size: 0.75rem;
  color: #e879f9;
  text-decoration: underline;
}

#cookieSettingsModal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(6, 3, 13, 0.8);
}

#cookieSettingsModal.is-open {
  display: flex;
}

#cookieSettingsModal .cookie-settings__panel {
  width: 100%;
  max-width: 420px;
  background: #120928;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  padding: 1.25rem;
  color: #cbd5e1;
}

#cookieSettingsModal h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.05rem;
}

#cookieSettingsModal p {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .anj-warning {
    max-height: none;
    min-height: 48px;
  }

  .anj-warning__logo {
    min-width: 56px;
  }

  .anj-warning__logo img {
    width: 44px;
    max-height: 36px;
  }

  body.has-anj-warning {
    padding-bottom: calc(64px + 0.75rem);
  }

  #cookieBanner {
    bottom: calc(64px + 0.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  #ageGate .age-gate__btn,
  #cookieBanner .cookie-banner__btn {
    transition: none;
  }
}
