/**
 * Bandeau de consentement (inc/consentement.php, js/consentement.js).
 * Chargé seulement si MAC_GA4_ID est posée.
 * Les deux boutons ont exactement le même style : la CNIL demande que
 * refuser soit aussi simple et aussi visible qu'accepter.
 */

.mac-consentement {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.mac-consentement[hidden] {
  display: none;
}

.mac-consentement-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 720px;
  background: #FFFFFF; /* plus de fond crème (demande d'Alix, 05/11) */
  color: var(--text, #1F1B16);
  border: 1px solid var(--framboise, #9F4568);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(31, 27, 22, 0.12);
  padding: 22px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mac-consentement-titre {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
  outline: none;
}

.mac-consentement-texte,
.mac-consentement-etat {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft, #3A3128);
  margin: 0 0 14px;
}

.mac-consentement-etat {
  font-weight: 600;
  color: var(--text, #1F1B16);
}

.mac-consentement-texte a {
  color: var(--framboise, #9F4568);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mac-consentement-actions {
  display: flex;
  gap: 12px;
}

.mac-consentement-btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--framboise, #9F4568);
  background: #FFFFFF;
  color: var(--framboise, #9F4568);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mac-consentement-btn:hover,
.mac-consentement-btn:focus-visible {
  background: var(--framboise, #9F4568);
  color: #FFFFFF;
}

.mac-consentement-btn:focus-visible {
  outline: 2px solid var(--text, #1F1B16);
  outline-offset: 2px;
}

/* Lien « Gérer les cookies » du pied de page : même rendu que les liens voisins. */
.footer-legal-bouton {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
}

.footer-legal-bouton:hover {
  opacity: 0.8;
}

@media (max-width: 520px) {
  .mac-consentement {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .mac-consentement-inner {
    padding: 18px;
  }
  .mac-consentement-actions {
    flex-direction: column;
  }
}
