
:root {
  --primary-color: #2563eb;
  --border-radius: 9999px;
}

body {
  color: #ffffff;
  background-color: #111827;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
    background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.45)
  ), url('/uploads/backgrounds/bg_1748356902.jpg') no-repeat center center;
  background-size: cover;
  }

body > *:not(nav) {
  position: relative;
  z-index: 1;
}

nav {
  max-width: 35%;
  margin-left: auto;
  margin-right: 0;
  background-color: var(--primary-color) !important;
  border-radius: var(--border-radius);
}

footer {
  max-width: 40%;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--primary-color) !important;
  border-radius: var(--border-radius);
}

.btn,
.btn-primary {
  background-color: var(--primary-color) !important;
  border-radius: var(--border-radius);
}

h1, h2, h3, a {
  color: var(--primary-color);
}

.btn:hover,
.btn-primary:hover {
  filter: brightness(90%);
}

.drop-shadow-logo {
  filter: drop-shadow(0 0 3px white) drop-shadow(0 0 6px white);
  height: 150px !important;
  max-height: 100%;
}

/* Force navbar & footer width to 100% on mobile */
@media (max-width: 768px) {
  nav, footer {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: var(--border-radius);
  }
}

/* === Cookie Banner Styles === */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 0.9rem;
  gap: 1rem;
  flex-wrap: wrap;
}
#cookie-banner p {
  margin: 0;
  flex-grow: 1;
}
#cookie-banner button {
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.3rem;
  cursor: pointer;
  font-weight: 600;
}
#cookie-banner button:hover {
  opacity: 0.85;
}

/* === Cookie Preferences Button Styles === */
#cookie-settings-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 9999;
  display: none; /* caché par défaut */
}

/* Desktop styles */
@media (min-width: 768px) {
  #cookie-settings-btn {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
  }
}

/* Mobile styles : positionné au-dessus du footer */
@media (max-width: 767px) {
  #cookie-settings-btn {
    position: absolute;
    bottom: -78rem; /* espace au-dessus du footer */
    right: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    display: block;
  }
}
