/* =================================================================
   BANDEAU CONSENTEMENT COOKIES (RGPD) - repris du dispositif LSI_NEW
   Charge par base.html.twig uniquement quand le bandeau est requis.
   ================================================================= */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  font-family: 'Open Sans', sans-serif;
}

.cookie-consent__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: #fff;
  padding: 16px 24px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.cookie-consent__content {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  width: 100%;
}

.cookie-consent__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-consent__btn {
  border: none;
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.cookie-consent__btn:hover {
  opacity: 0.9;
}

.cookie-consent__btn--accept {
  background: #00b894;
  color: #fff;
}

.cookie-consent__btn--refuse {
  background: #636e72;
  color: #fff;
}

.cookie-consent__btn--customize {
  background: transparent;
  color: #dfe6e9;
  border: 1px solid #636e72;
}

.cookie-consent__btn--save {
  background: #0984e3;
  color: #fff;
}

.cookie-consent__btn--back {
  background: transparent;
  color: #dfe6e9;
  border: 1px solid #636e72;
}

/* Panneau de personnalisation */
.cookie-consent__panel {
  background: #1a1a2e;
  color: #fff;
  padding: 24px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.cookie-consent__panel-content {
  max-width: 700px;
  margin: 0 auto;
}

.cookie-consent__panel-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.cookie-consent__category {
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.cookie-consent__category-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
}

.cookie-consent__category-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00b894;
}

.cookie-consent__category-desc {
  margin: 6px 0 0 26px;
  font-size: 13px;
  color: #b2bec3;
  line-height: 1.4;
}

.cookie-consent__panel-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

/* Responsive bandeau cookies */
@media (max-width: 767px) {
  .cookie-consent__content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent__actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cookie-consent__btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .cookie-consent__panel-actions {
    justify-content: center;
  }
}

/* =================================================================
   PUBLICITES SOUMISES A CONSENTEMENT (AdSense + scripts regie)
   Masquees tant que la categorie "publicite" n'est pas acceptee.
   :not() : une fois --consent-given ajoutee, la regle ne matche plus
   et les styles inline du slider reprennent la main.
   ================================================================= */

.lsi-ad--consent-required:not(.lsi-ad--consent-given) {
  display: none !important;
}
