/**
 * LOGIMAT Préfab — Bandeau de consentement (P0)
 * Reprend les jetons de main.css quand ils existent, avec repli sur les valeurs de marque.
 * Contraintes du cahier (p.18) : ne couvre ni le contenu, ni le bouton Envoyer ;
 * cible AA ; refus aussi accessible que l'acceptation.
 */

.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999; /* au-dessus du bouton WhatsApp flottant */
  background: var(--neutral-white, #ffffff);
  border-top: 3px solid var(--primary-color, #ce405f);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .16);
  padding: 1.25rem 1rem;
  animation: consent-rise .22s ease-out;
}

@keyframes consent-rise {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner { animation: none; }
}

.consent-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.consent-copy { flex: 1 1 22rem; }

.consent-copy h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .35rem;
  color: var(--neutral-dark, #2d3142);
}

.consent-copy p {
  font-size: .9375rem;
  line-height: 1.55;
  margin: 0;
  color: #4a4a4a; /* 8.6:1 sur blanc */
}

.consent-copy a {
  color: var(--primary-dark, #a02d45); /* 6.1:1 sur blanc, lien souligné */
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  gap: .75rem;
  flex: 0 0 auto;
}

.consent-btn {
  font: inherit;
  font-weight: 600;
  padding: .7rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  min-height: 44px; /* zone tactile confortable */
  transition: background-color .15s ease, color .15s ease;
}

.consent-btn--solid {
  background: var(--primary-color, #ce405f);
  border: 2px solid var(--primary-color, #ce405f);
  color: #fff;
}

.consent-btn--solid:hover { background: var(--primary-dark, #a02d45); border-color: var(--primary-dark, #a02d45); }

/* Le refus a le même poids visuel que l'acceptation : même taille, même lisibilité. */
.consent-btn--ghost {
  background: transparent;
  border: 2px solid var(--neutral-dark, #2d3142);
  color: var(--neutral-dark, #2d3142);
}

.consent-btn--ghost:hover { background: var(--neutral-dark, #2d3142); color: #fff; }

.consent-btn:focus-visible,
.consent-copy a:focus-visible {
  outline: 3px solid var(--primary-color, #ce405f);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .consent-inner { gap: 1rem; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1 1 0; padding: .7rem .75rem; }
}
