/* --- Overlay gris --- */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8); /* gris transparent */
  z-index: 1001; /* juste en dessous du bandeau */
  display: none; /* caché par défaut */
}

/* --- Bandeau cookies light --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 14px;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cookie-banner p {
  line-height: 1.4;
  margin: 0;
}

.cookie-banner button {
  align-self: center;
  padding: 0.6rem 1.2rem;
  background: #fff;
  color: #222;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

/* --- Version mobile --- */
@media (max-width: 600px) {
  .cookie-banner {
    font-size: 13px;
    padding: 0.8rem;
  }

  .cookie-banner p {
    text-align: left;
    font-size: 13px;
  }

  .cookie-banner button {
    width: 100%;      /* le bouton prend toute la largeur */
    font-size: 14px;
  }
}

/* Bloque le scroll quand actif */
body.cookie-banner-active {
  overflow: hidden;
  height: 100%;
}