/* ============================================================
   CRYOGEN — Bandeau de consentement cookies (RGPD)
   Styling aligné sur le design system (tokens.css).
   Utilisé par js/consent.js
   ============================================================ */

.cconsent {
  position: fixed;
  z-index: 2000;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 480px;
  background: #fff;
  color: var(--slate-900);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg, 14px);
  box-shadow: var(--shadow-lg, 0 18px 36px -12px rgba(11,54,80,0.18));
  padding: 24px 24px 20px;
  font-family: var(--font-body);
  /* Masqué tant que le JS n'a pas décidé d'afficher */
  display: none;
}

.cconsent.is-visible { display: block; }

.cconsent__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--slate-900);
  margin: 0 0 8px;
}

.cconsent__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate-600);
  margin: 0 0 18px;
}

.cconsent__text a {
  color: var(--ice-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cconsent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cconsent__btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--r-md, 10px);
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s;
  line-height: 1;
}

.cconsent__btn--accept {
  background: var(--ice-500);
  color: #fff;
  flex: 1 1 auto;
}
.cconsent__btn--accept:hover {
  background: var(--ice-600);
  transform: translateY(-1px);
}

.cconsent__btn--refuse {
  background: #fff;
  color: var(--slate-700);
  border-color: var(--slate-300);
}
.cconsent__btn--refuse:hover {
  border-color: var(--slate-400);
  color: var(--slate-900);
}

/* Lien discret pour rouvrir les préférences (à placer où on veut, ex. footer) */
.cconsent-reopen {
  cursor: pointer;
  color: inherit;
}

@media (max-width: 520px) {
  .cconsent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 20px 18px 18px;
  }
  .cconsent__btn { flex: 1 1 100%; }
}
