/*
 * Bandeau de consentement aux cookies (assets/js/consent.js), sur toutes les pages.
 * Couleurs, rayons, ombres et tailles : les tokens du design system (04_corporate_identity),
 * repris des variables de chaque page, avec leur valeur en secours.
 */
.cn-consent {
  position: fixed;
  z-index: 1000;
  left: 24px;
  bottom: 24px;
  max-width: 440px;
  padding: 20px 24px;
  background: var(--paper, #ffffff);
  color: var(--ink-soft, #3d424d);
  border: 1px solid var(--border, #e6e8ec);
  border-radius: var(--r-lg, 16px);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(20, 22, 28, 0.12));
  font-family: var(--font-sans, "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cn-consent-title {
  margin: 0 0 6px;
  color: var(--ink, #14161c);
  font-size: 1rem;
  font-weight: 600;
}

.cn-consent-text { margin: 0; }

.cn-consent-text a {
  color: var(--brand, #115577);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cn-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.cn-consent-btn {
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--ink, #14161c);
  background: var(--paper, #ffffff);
  border: 1px solid var(--gray-300, #d3d7dd);
  border-radius: var(--r-md, 10px);
  cursor: pointer;
}

.cn-consent-btn:hover { background: var(--gray-50, #f7f8fa); }

.cn-consent-primary {
  color: var(--paper, #ffffff);
  background: var(--brand, #115577);
  border-color: var(--brand, #115577);
}

.cn-consent-primary:hover { background: var(--brand-ink, #0d445e); }

.cn-consent-btn:focus-visible {
  outline: 2px solid var(--brand, #115577);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .cn-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .cn-consent-btn { flex: 1; }
}
