/* Bannière de consentement — gabarit commun fidflow SA
   Aucune couleur en dur : tout dérive des tokens de base.css.
   La marque n'intervient que par --accent, déjà défini par brand-X.css. */

.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 24px rgba(17, 17, 17, .06);
}

.cc-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cc-text {
  flex: 1;
  min-width: 0;
}

.cc-title {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .6rem;
}

.cc-body {
  margin: 0;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 68ch;
}

.cc-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-link:hover { color: var(--ink); }

.cc-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-shrink: 0;
}

/* Accepter et Refuser partagent la même boîte : même police, même taille,
   même padding. Seul le remplissage diffère. Un refus ne doit jamais
   coûter plus qu'un accord. */
.cc-btn {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .7rem 1.4rem;
  border-radius: 2px;
  border: 1px solid;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: background-color .15s ease, color .15s ease;
}

.cc-btn-accept {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cc-btn-accept:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
}

.cc-btn-decline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.cc-btn-decline:hover {
  background: var(--ink);
  color: var(--white);
}

.cc-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .cc-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    padding: 1.2rem 1.4rem calc(1.2rem + env(safe-area-inset-bottom));
  }
  .cc-actions { gap: .6rem; }
  .cc-btn { flex: 1; text-align: center; padding: .8rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-btn { transition: none; }
}
