/* ================================
   AideOP - Bandeau de consentement
   ================================ */

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 6000;
  width: calc(100% - 32px);
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--white, #ffffff);
  color: var(--gray-800, #2c3e50);
  border: 1px solid var(--gray-200, #dee2e6);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.15));
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: var(--font-size-sm, 0.875rem);
  line-height: 1.45;
}

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

.consent-text {
  flex: 1;
  margin: 0;
}

.consent-text a {
  color: var(--primary-dark, #4a7c7e);
  text-decoration: underline;
  white-space: nowrap;
}

.consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Les deux choix ont exactement le même style. */
.consent-btn {
  min-width: 96px;
  padding: 8px 16px;
  border: 1px solid var(--primary-dark, #4a7c7e);
  border-radius: var(--radius-md, 8px);
  background: var(--white, #ffffff);
  color: var(--primary-dark, #4a7c7e);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.consent-btn:hover,
.consent-btn:focus-visible {
  background: var(--primary-dark, #4a7c7e);
  color: var(--white, #ffffff);
  outline: none;
}

/* Lien « Gérer les cookies » */
.consent-manage {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.consent-footer {
  margin: 32px auto 16px;
  padding: 0 16px;
  text-align: center;
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--gray-500, #6c757d);
}

.consent-footer a {
  color: inherit;
}

@media (max-width: 600px) {
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .consent-actions .consent-btn {
    flex: 1;
  }
}
