/* =========================================================
   WoS Cookie Banner — clean, moderne, responsive (2025)
   Compatible avec le HTML & JS existants
   ========================================================= */

/* ===== Racine ===== */
#wos-cookie {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10000;
  padding: 1rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#wos-cookie.is-hidden {
  display: none;
}

/* ===== Carte principale ===== */
.wos-cookie__card {
  pointer-events: auto;
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  color: #1e252b;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  position: relative;
}

/* ===== Image (désactivée visuellement, conservée si besoin futur) ===== */
.wos-cookie__img {
  display: none;
}

/* ===== Bouton fermer ===== */
.wos-cookie__close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #e23b3b;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
}

.wos-cookie__close:hover {
  filter: brightness(1.1);
}

/* ===== Contenu ===== */
.wos-cookie__overlay {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.wos-cookie__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.wos-cookie__text {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
}

.wos-cookie__more {
  margin-top: .25rem;
  font-size: .9rem;
  color: #2C4E8F;
  text-decoration: underline;
  width: fit-content;
}

/* ===== Actions ===== */
.wos-cookie__actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .5rem;
}

/* ===== Boutons ===== */
.wos-btn {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  padding: .55rem .9rem;
  border: none;
  background: #f2f4f7;
  color: #1e252b;
  transition: transform .12s ease, box-shadow .2s ease;
}

.wos-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.wos-btn--primary {
  color: #ffffff;
  background: linear-gradient(160deg, #3F69AF, #2C4E8F);
}

/* ===== Responsive tablette & mobile ===== */
@media (max-width: 768px) {
  .wos-cookie__card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wos-cookie__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .wos-cookie__more {
    align-self: center;
  }
}

/* ===== Dark mode automatique ===== */
@media (prefers-color-scheme: dark) {
  .wos-cookie__card {
    background: #12161c;
    color: #f1f5f9;
  }

  .wos-btn {
    background: #1e252b;
    color: #f1f5f9;
  }

  .wos-btn--primary {
    background: linear-gradient(160deg, #4c7bd6, #3459b3);
  }

  .wos-cookie__more {
    color: #9db7ff;
  }
}
