/* Bandeau de consentement aux cookies — Loew-Tech Repar */
.lt-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #081a2e;
  color: #ffffff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}

.lt-consent[hidden] {
  display: none;
}

.lt-consent__main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.lt-consent__text {
  max-width: 720px;
}

.lt-consent__text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.lt-consent__text p {
  margin: 0;
  color: #d8e2ee;
}

.lt-consent__text a {
  color: #7fd4ff;
  text-decoration: underline;
}

.lt-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex-shrink: 0;
}

.lt-consent__btn {
  border: 1px solid transparent;
  border-radius: 0.35rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.lt-consent__btn--primary {
  background: #00b0f0;
  border-color: #00b0f0;
  color: #04121f;
}

.lt-consent__btn--primary:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.lt-consent__btn--secondary {
  background: #ffffff;
  border-color: #ffffff;
  color: #081a2e;
}

.lt-consent__btn--secondary:hover {
  background: #d8e2ee;
  border-color: #d8e2ee;
}

.lt-consent__btn--ghost {
  background: transparent;
  border-color: #8fa6bd;
  color: #ffffff;
}

.lt-consent__btn--ghost:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #081a2e;
}

.lt-consent__prefs {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.lt-consent__prefs[hidden] {
  display: none;
}

.lt-consent__check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0;
  cursor: pointer;
}

.lt-consent__check input {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.lt-consent__check span {
  color: #d8e2ee;
}

.lt-consent__check strong {
  color: #ffffff;
}

.lt-consent__prefs-actions {
  padding-top: 0.4rem;
}

@media (max-width: 900px) {
  .lt-consent__main {
    flex-direction: column;
    align-items: stretch;
  }

  .lt-consent__actions {
    justify-content: stretch;
  }

  .lt-consent__actions .lt-consent__btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 520px) {
  .lt-consent__main,
  .lt-consent__prefs {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .lt-consent__actions {
    flex-direction: column;
  }

  .lt-consent__actions .lt-consent__btn {
    width: 100%;
  }
}
