/* Bandeau de consentement maison (index.html, bloc « Consent Mode v2 »), choix de Jeremy du 01/11/2026 :
   fenêtre en bas, page grisée derrière, Accepter en bleu plein et Refuser de même taille, au même niveau, en contour.
   Couleurs de la charte Ressource (p. 21) ; polices de la page : titre sur --font-heading de la page (Qavena Arc, à
   défaut Fraunces), texte en Montserrat, page actuelle en Quicksand. */
#crp-consent-veil {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(31, 61, 74, 0.55);
}
#crp-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483001;
  box-sizing: border-box;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 4px solid #c2804b;
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  box-shadow: 0 -12px 40px rgba(0, 20, 30, 0.35);
  color: #182c49;
  font: 400 14px/1.4 "Montserrat", "Quicksand", system-ui, sans-serif;
  text-align: left;
  animation: crp-consent-in 220ms ease-out;
}
#crp-consent:focus { outline: none; }
#crp-consent-veil[hidden], #crp-consent[hidden], #crp-consent-badge[hidden] { display: none; }
#crp-consent h2 {
  margin: 0 0 8px;
  color: #006280;
  font: 400 22px/1.2 var(--font-heading, "Fraunces", "Playfair Display", Georgia, serif);
  letter-spacing: -0.01em;
}
#crp-consent p { margin: 0; }
#crp-consent-text { font-size: 12px; color: #295463; }
.crp-consent-buttons { display: flex; gap: 10px; margin-top: 14px; }
/* Même taille, même forme, côte à côte : refuser prend un clic, comme accepter (CNIL). */
.crp-consent-buttons button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0 8px;
  border: 2px solid #006280;
  border-radius: 999px;
  background: #ffffff;
  color: #006280;
  font: 700 14px/1.15 "Montserrat", "Quicksand", system-ui, sans-serif;
  cursor: pointer;
}
#crp-consent-accept { background: #006280; color: #ffffff; }
.crp-consent-buttons button:hover { border-color: #1f3d4a; }
#crp-consent-accept:hover { background: #1f3d4a; }
.crp-consent-buttons button:focus-visible, #crp-consent a:focus-visible, #crp-consent-badge:focus-visible {
  outline: 3px solid #1f3d4a; /* 3:1 au moins sur blanc (l'or de la charte n'y tient pas) */
  outline-offset: 2px;
}
.crp-consent-foot { margin-top: 10px !important; color: #295463; font-size: 12px; text-align: center; }
#crp-consent .crp-consent-foot a { color: #006280; font-weight: 600; text-decoration: underline; }
/* Bouton fixe pour changer d'avis, en bas à droite ; sur mobile, au-dessus de la barre « Faire un don ». */
#crp-consent-badge {
  position: fixed;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 2147482999;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid #006280;
  border-radius: 50%;
  background: #ffffff;
  color: #006280;
  box-shadow: 0 4px 14px rgba(0, 30, 40, 0.25);
  cursor: pointer;
}
@media (max-width: 767px) {
  #crp-consent-badge { bottom: calc(114px + env(safe-area-inset-bottom)); transition: bottom 200ms ease; } /* barre fixe : 102 px (page actuelle), 69 px (nouvelle) */
  /* Barre cachée quand le formulaire est à l'écran : la pastille redescend, sinon elle couvre « Reçu fiscal automatique ». */
  body:has(.astra-preview[data-donate-bar="hidden"]) #crp-consent-badge { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@keyframes crp-consent-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #crp-consent { animation: none; } }
