/* === Soutenir la ruche ============================================
   Page sombre. Le formulaire de don garde le même panneau que le reste,
   mais il est mis en lumière (halo, cadre doré, reflet) pour qu'on ne puisse pas le manquer. */

.support-page {
  --black: #16110a;
  /* Bloc de don : même panneau que le reste de la page, cartes et lignes un cran plus claires */
  --card: linear-gradient(110deg, rgba(50, 42, 32, 0.92), rgba(27, 23, 18, 0.96));
  --row: linear-gradient(110deg, rgba(58, 48, 37, 0.85), rgba(28, 23, 18, 0.9));
  --row-active: linear-gradient(110deg, rgba(88, 66, 34, 0.92), rgba(40, 31, 20, 0.95));
  /* Transparent : le décor est le calque fixe de la page (base.css, body:before) */
  background: transparent;
  color: var(--text);
}

/* === Page ======================================================== */

.support-page main {
  overflow: hidden;
  /* Le décor est celui des autres pages (base.css, body:before), sans voile ni grain de plus */
}

/* Titres limités au contenu de la page : le header et le footer gardent les leurs. */
.support-page main :is(h2, h3) {
  margin: 0;
  color: var(--parchment);
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}
.support-page main h2 {
  font-size: var(--fs-display);
}
.support-page main h3 {
  font-size: 1.3rem;
  line-height: 1.1;
}
.support-page main p {
  line-height: 1.7;
}

.support-shell {
  width: min(calc(100% - 64px), var(--max)); /* la largeur commune du site */
  margin-inline: auto;
}
.support-section {
  position: relative;
  padding: 72px 0;
}

.loading-state {
  grid-column: 1 / -1;
  padding: 40px;
  color: var(--text-soft);
  text-align: center;
}

/* Apparition au défilement (effects/reveal.js) */
/* === En-tête ===================================================== */

/* === 01 · Objectif du mois ======================================= */

.goal-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 40px 46px;
  border: 1px solid rgba(213, 161, 87, 0.42);
  background-image: var(--panel-gradient), var(--grain);
  background-size: auto, 210px;
  background-blend-mode: normal, soft-light;
  box-shadow: 0 24px 65px #0008;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.35s ease;
}
.goal-panel__copy p {
  margin: 16px 0 0;
  font-size: var(--fs-body);
}
.goal-panel__date {
  color: var(--gold);
  font-size: 0.9rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.goal-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 200px;
  aspect-ratio: 1;
  margin: auto;
  filter: drop-shadow(0 14px 22px rgba(var(--shadow-rgb), 0.6));
}
.goal-ring:before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(var(--sheen-rgb), 0.06), rgba(var(--shadow-rgb), 0.28) 72%);
  box-shadow: inset 0 0 22px #0008;
}
.goal-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.goal-ring circle {
  fill: none;
  stroke-width: 8;
}
.goal-ring__track {
  stroke: #474138;
}
/* Longueur du cercle (r = 51) : 320,45 */
.goal-ring__value {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 320.45;
  stroke-dashoffset: calc(320.45 - (320.45 * var(--progress)) / 100);
  transition: stroke-dashoffset 1.1s ease;
}
.goal-ring strong {
  position: relative;
  margin-top: -14px;
  color: var(--parchment);
  font: 900 2.8rem "Roboto Condensed", sans-serif;
}
.goal-ring strong span {
  margin-left: 3px;
  font-size: 1.3rem;
}
.goal-ring small {
  position: absolute;
  bottom: 44px;
  padding: 4px 9px;
  background: var(--parchment);
  color: #18130c;
  font: 900 0.8rem Roboto, sans-serif;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.goal-reasons {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0 0 0 36px;
  border-left: 1px solid var(--line-gold);
  list-style: none;
}
.goal-reasons li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 12px;
}
.goal-reasons i {
  margin-top: 3px;
  color: var(--gold);
  font-size: 1.3rem;
  text-align: center;
}
.goal-reasons span {
  color: var(--text-soft);
  font-size: var(--fs-body);
  line-height: 1.5;
}
.goal-reasons b {
  display: block;
  color: var(--parchment);
  font-size: 1rem;
}

/* === 02 · Faire un don =============================================
   Même panneau sombre que le reste de la page, mais mis en lumière :
   halo chaud derrière, cadre doré plus marqué avec équerres aux coins, reflet qui passe sur le haut.
   Dedans : cartes (comme les boosts), doré pour ce qui est fait ou choisi, rouge pour l'étape en cours,
   beige pour les champs. Aucune forme ronde : hexagones et coins francs. */

.donation-section {
  isolation: isolate;
  padding-block: 80px;
}
/* Halo chaud derrière le bloc, comme une lampe posée dessus */
.donation-section:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(var(--gold-rgb), 0.16), transparent 70%);
  pointer-events: none;
}
.donation-paper {
  position: relative;
  padding: 44px clamp(22px, 4vw, 52px) 36px;
  border: 1px solid rgba(var(--gold-rgb), 0.6);
  border-top: 3px solid var(--gold);
  background-image: var(--panel-gradient), var(--grain);
  background-size: auto, 210px;
  background-blend-mode: normal, soft-light;
  color: var(--text);
  box-shadow:
    0 0 0 1px #000,
    0 0 70px rgba(var(--gold-rgb), 0.2),
    0 30px 80px rgba(var(--shadow-rgb), 0.8);
}
/* Équerres dorées aux coins (haut gauche, bas droite) */
.donation-paper:before,
.donation-paper:after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 0 solid var(--gold);
  pointer-events: none;
}
.donation-paper:before {
  top: -9px;
  left: -9px;
  border-width: 3px 0 0 3px;
}
.donation-paper:after {
  right: -9px;
  bottom: -9px;
  border-width: 0 3px 3px 0;
}
/* Reflet qui glisse le long du bord haut, de temps en temps */
.donation-paper__shine {
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.donation-paper__shine:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, #fff3cf, transparent);
  animation: shine 7s ease-in-out 1.2s infinite;
}

.support-page main .donation-paper h2 {
  color: var(--parchment);
}
.donation-paper__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 8px 40px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-gold);
}
.donation-paper__head .section-index {
  grid-column: 1 / -1;
}
.donation-paper__head p {
  max-width: 540px;
}
.donation-paper a:not(.text-link) {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
}

/* --- Suivi des étapes (sur le fond rouge) --- */
.donation-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  grid-column: 1 / -1;
  margin: 0; /* l'écart avec les cartes est celui de la grille du formulaire */
  padding: 0;
  list-style: none;
}
.donation-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}
/* Trait sous chaque étape : se remplit quand l'étape est faite */
.donation-progress li:before,
.donation-progress li:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
}
.donation-progress li:before {
  right: 0;
  background: rgba(var(--parchment-rgb), 0.12);
}
.donation-progress li:after {
  width: 0;
  background: var(--gold);
  transition: width 0.6s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.donation-progress li[data-state="current"]:after {
  width: 35%;
  background: var(--red-bright);
}
.donation-progress li[data-state="done"]:after {
  width: 100%;
}
.donation-progress b {
  display: block;
  color: var(--parchment);
  font: 900 1rem "Roboto Condensed", sans-serif;
  text-transform: uppercase;
}
.donation-progress small {
  display: block;
  color: var(--text-soft);
  font-size: 0.85rem;
}
.donation-progress li[data-state="locked"] {
  opacity: 0.55;
}
.donation-progress li[data-state="current"] small {
  color: var(--red-text);
  font-weight: 700;
}
.donation-progress__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 44px;
  background: #3b3128;
  color: var(--parchment);
  font: 900 1.1rem "Roboto Condensed", sans-serif;
  clip-path: var(--hex);
  transition: background 0.3s;
}
.donation-progress li[data-state="current"] .donation-progress__mark {
  background: var(--red-bright);
  color: #fff;
}
/* Étape faite : la marque passe au doré et le chiffre laisse place à une coche */
.donation-progress li[data-state="done"] .donation-progress__mark {
  position: relative;
  background: var(--gold);
  color: transparent;
}
.donation-progress li[data-state="done"] .donation-progress__mark:after {
  content: "\f00c";
  position: absolute;
  color: var(--black);
  font: 900 1rem "Font Awesome 6 Free";
  animation: pop-in 0.35s ease;
}

/* --- Étapes : cartes noires, comme les boosts --- */
.donation-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.donation-step {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 20px 20px 18px;
  border: 1px solid var(--line-gold);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(var(--shadow-rgb), 0.35);
  transition: border-color 0.3s;
}
/* Barre en haut de la carte : éteinte si verrouillée, rouge en cours, dorée une fois faite */
.donation-step:before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 4px;
  background: rgba(var(--parchment-rgb), 0.14);
  transform-origin: left center;
}
.donation-step[data-state="current"]:before {
  background: var(--red-bright);
  animation: draw-bar 0.6s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.donation-step[data-state="done"]:before {
  background: var(--gold);
}
.donation-step[data-state="current"] {
  border-color: rgba(var(--gold-rgb), 0.55);
}
/* Étape verrouillée tant que la précédente n'est pas complète (fieldset disabled) */
.donation-step[disabled] > :not(legend, .donation-step__locked) {
  opacity: 0.3;
  filter: grayscale(0.7);
}
/* Quand elle se débloque, son contenu remonte doucement */
.donation-step[data-state="current"] > :not(legend) {
  animation: rise-in 0.45s ease both;
}

/* Le nom de l'étape est dans le suivi au-dessus : la légende du fieldset reste pour les lecteurs d'écran (.sr-only). */
.donation-step__text {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: var(--fs-body);
}
.donation-step__locked {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-left: 4px solid var(--red-bright);
  background: rgba(var(--red-bright-rgb), 0.16);
  color: var(--red-text);
  font-weight: 700;
}
.donation-step__locked:before {
  content: "\f023";
  margin-top: 3px;
  font: 900 0.95rem "Font Awesome 6 Free";
}
.donation-step__locked:empty {
  display: none;
}
.donation-step a {
  color: var(--gold);
}

/* --- Choix du mode : lignes façon « boost » --- */
.choice-list {
  display: grid;
  gap: 8px;
}
.choice {
  display: grid;
  grid-template-columns: 44px 1fr 34px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line-gold);
  background: var(--row);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.choice:hover {
  border-color: rgba(var(--gold-rgb), 0.6);
  transform: translateX(3px);
}
.choice__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  background: #3b3128;
  color: var(--gold);
  font-size: 1.15rem;
  clip-path: var(--hex);
  transition:
    background 0.2s,
    color 0.2s;
}
.choice__text b {
  display: block;
  color: var(--parchment);
  font: 900 1.05rem "Roboto Condensed", sans-serif;
  text-transform: uppercase;
}
.choice__text small {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: var(--fs-small);
  line-height: 1.35;
}
.choice__check {
  display: grid;
  place-items: center;
  height: 100%;
  border-left: 1px solid var(--line-gold);
  color: transparent;
}
.choice[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--row-active);
  box-shadow: inset 4px 0 var(--gold);
}
.choice[aria-pressed="true"] .choice__icon {
  background: var(--gold);
  color: var(--black);
}
.choice[aria-pressed="true"] .choice__check {
  color: var(--gold);
}
.choice[aria-pressed="true"] .choice__check i {
  animation: pop-in 0.3s ease;
}

/* --- Panneau du mode choisi --- */
.donation-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line-gold);
  border-left: 4px solid var(--gold);
  background: rgba(var(--shadow-rgb), 0.28);
  animation: rise-in 0.35s ease both;
}
.donor-account p {
  margin: 0;
  font-size: var(--fs-body);
}
.donor-account__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--parchment);
  font: 900 1.1rem "Roboto Condensed", sans-serif;
  text-transform: uppercase;
}
.donor-account__identity img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
}
.donor-account__link {
  color: var(--text-soft);
}
.donor-account__link b {
  display: block;
  color: var(--parchment);
}
/* Compte pas lié au Discord : on le dit clairement, en rouge */
.donor-account__link.is-warning {
  padding: 8px 10px;
  border-left: 4px solid var(--red-bright);
  background: rgba(var(--red-bright-rgb), 0.16);
  color: var(--red-text);
}
.donor-account__link.is-warning b {
  color: var(--red-text);
}
.donation-notes {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: var(--fs-small);
}
.donation-notes strong {
  color: var(--parchment);
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--parchment);
  font: 900 0.95rem "Roboto Condensed", sans-serif;
  text-transform: uppercase;
}
.gift-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.gift-search[hidden],
.gift-finder[hidden] {
  display: none;
}
/* Champs beiges : on voit tout de suite où écrire */
.gift-search input,
.amount-custom input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--gold);
  background: var(--parchment);
  color: var(--black);
  font: 500 1rem Roboto, sans-serif;
}
/* Pas de flèches dans le champ montant : elles chevauchaient le symbole € */
.amount-custom input {
  -moz-appearance: textfield;
  appearance: textfield;
  padding-right: 34px;
}
.amount-custom input::-webkit-outer-spin-button,
.amount-custom input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.gift-search input:focus,
.amount-custom input:focus {
  outline: 3px solid rgba(var(--gold-rgb), 0.45);
}
.field-help {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: var(--fs-small);
  line-height: 1.45 !important;
}
.field-error {
  margin: 8px 0 0;
  color: var(--red-text);
  font-weight: 700;
  animation: shake 0.35s ease;
}
.gift-player {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  animation: rise-in 0.4s ease both;
}
.gift-player[hidden] {
  display: none;
}
.gift-player img {
  width: 56px;
  height: 56px;
  border: 2px solid var(--gold);
}
.gift-player__label {
  grid-column: 1 / -1;
  color: var(--gold);
  font: 900 0.95rem "Roboto Condensed", sans-serif;
  text-transform: uppercase;
}
.gift-player__identity {
  min-width: 0;
}
.gift-player strong {
  display: block;
  overflow: hidden;
  color: var(--parchment);
  font: 900 1.25rem "Roboto Condensed", sans-serif;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.gift-player a {
  font-size: 0.85rem;
}
.gift-player__change {
  grid-column: 1 / -1;
  justify-self: start;
}

.paper-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  background: var(--gold);
  color: var(--black);
  font: 900 0.9rem "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.paper-button:hover {
  background: var(--parchment);
}
.paper-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.paper-button--quiet {
  min-height: 36px;
  border: 1px solid var(--line-gold);
  background: transparent;
  color: var(--parchment);
}
.paper-button--quiet:hover {
  background: var(--gold);
  color: var(--black);
}

.paper-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 14px;
  font-size: var(--fs-body);
  line-height: 1.5;
  cursor: pointer;
}
.paper-check[hidden] {
  display: none;
}
.paper-check strong {
  color: var(--parchment);
}
.paper-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

/* --- Montant --- */
.amount-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.amount-list button {
  min-height: 54px;
  border: 1px solid var(--line-gold);
  background: var(--row);
  color: var(--parchment);
  font: 900 1.3rem "Roboto Condensed", sans-serif;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.15s;
}
.amount-list button:hover {
  border-color: rgba(var(--gold-rgb), 0.6);
  transform: translateY(-2px);
}
.amount-list button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
}
.amount-custom {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--text-soft);
}
.amount-custom__field {
  position: relative;
}
.amount-custom__field span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--black);
  font-weight: 700;
}
.donation-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-gold);
  color: var(--text-soft);
  font: 900 0.95rem "Roboto Condensed", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.donation-total strong {
  color: var(--gold);
  font-size: 2rem;
  letter-spacing: 0;
}
.donation-total strong.is-bumping {
  animation: bump 0.35s ease;
}

/* --- Confirmation --- */
.donation-summary {
  margin: 0 0 8px;
  padding: 12px;
  border-left: 4px solid var(--gold);
  background: rgba(var(--shadow-rgb), 0.28);
  font-size: 1.02rem;
  animation: rise-in 0.35s ease both;
}
.donation-summary:empty {
  display: none;
}
.donation-summary strong {
  color: var(--parchment);
}
.donation-missing {
  min-height: 1.5em;
  margin: 12px 0;
  color: var(--red-text);
  font-weight: 700;
}
.donation-missing:empty {
  min-height: 0;
  margin: 6px 0;
}
/* L'essai PayPal (sandbox) : la note commune (.lpa-note), avec sa marge ici (19 oct., second audit) */
.sandbox-note {
  margin-bottom: 12px;
}
.paypal-container {
  min-height: 50px;
  transition:
    opacity 0.3s,
    filter 0.3s;
}
/* Bouton grisé tant que le formulaire n'est pas complet (paypal.js) */
.paypal-container.is-blocked {
  opacity: 0.35;
  filter: grayscale(0.8);
}
/* « Faire un don » : charge PayPal au clic, à la taille de ses boutons (paypal.js) */
.paypal-load {
  width: 100%;
  min-height: 48px;
}
.secure-note {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: var(--fs-small);
  text-align: center;
}

/* --- Après le don --- */
.donation-error {
  margin: 24px 0 0;
  padding: 18px 20px;
  animation: rise-in 0.45s ease both;
}
.donation-form[hidden],
.donation-error[hidden],
.donation-success[hidden] {
  display: none;
}

/* --- Après un don : l'écran de remerciement, à la place du formulaire --- */
.donation-success {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 40px 28px 34px;
  overflow: hidden;
  border: 1px solid rgba(var(--gold-rgb), 0.6);
  background: var(--card);
  box-shadow: 0 18px 44px rgba(var(--shadow-rgb), 0.45), inset 0 0 0 1px rgba(var(--gold-rgb), 0.12);
  text-align: center;
  outline: none;
  animation: rise-in 0.5s ease both;
}
/* Liseré doré qui se dessine, et un halo chaud derrière le sceau */
.donation-success:before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 4px;
  background: var(--gold);
  transform-origin: left center;
  animation: draw-bar 0.8s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}
.donation-success:after {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: 520px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(var(--gold-rgb), 0.22), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}
.donation-success > * {
  position: relative;
  z-index: 1;
}
/* Le sceau : un hexagone doré, le cœur qui bat, deux ondes qui s'en échappent */
.donation-success__seal {
  display: grid;
  place-items: center;
  width: 92px;
  height: 102px;
  background: var(--gold);
  color: var(--black);
  font-size: 2.4rem;
  clip-path: var(--hex);
  animation: pop-in 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) 0.15s both;
}
.donation-success__seal i {
  animation: heartbeat 1.6s ease-in-out 0.9s infinite;
}
/* .support-page devant : passe avant la taille commune des h3 de la page (.support-page main h3) */
.support-page .donation-success h3 {
  margin: 4px 0 0;
  color: var(--parchment);
  font: 900 clamp(1.8rem, 3.2vw, 2.6rem) "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  animation: rise-in 0.5s ease 0.3s both;
}
.donation-success__lede {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  animation: rise-in 0.5s ease 0.4s both;
}
.donation-success__lede strong {
  color: var(--gold);
}
/* La jauge du mois, qui avance sous les yeux */
.donation-success__goal {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: 6px 16px;
  width: min(100%, 420px);
  margin-top: 6px;
  color: var(--text-soft);
  font: 700 0.8rem "Roboto Condensed", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: rise-in 0.5s ease 0.5s both;
}
.donation-success__goal strong {
  color: var(--parchment);
  font-size: 1rem;
}
.donation-success__bar {
  grid-column: 1 / -1;
}
.donation-success__bar i {
  width: var(--fill);
  background: linear-gradient(90deg, var(--gold), #f1c46b);
  box-shadow: var(--fill-shadow), 0 0 12px rgba(var(--gold-rgb), 0.6);
  animation: fill-bar 1.2s cubic-bezier(0.3, 0.7, 0.2, 1) 0.7s both;
}
/* Ce que le don a donné */
.donation-success__effects {
  display: grid;
  gap: 8px;
  width: min(100%, 560px);
  margin: 10px 0 4px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.donation-success__effects li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line-gold);
  background: var(--row);
  color: var(--text-soft);
  animation: rise-in 0.45s ease both;
  animation-delay: calc(0.9s + var(--i) * 0.12s);
}
.donation-success__effects li > i {
  color: var(--gold);
  font-size: 1.15rem;
  text-align: center;
}
.donation-success__effects b {
  color: var(--parchment);
}
.donation-success .button {
  margin-top: 6px;
  animation: rise-in 0.45s ease 1.3s both;
}
@media (prefers-reduced-motion: reduce) {
  .donation-success,
  .donation-success *,
  .donation-success:before {
    animation: none !important;
  }
}
.donation-error {
  border-left: 4px solid var(--parchment);
  background: var(--panel-gradient);
  color: var(--red-text);
  font-weight: 700;
}

.donation-footnote {
  margin-top: 26px;
}

/* === 03 · Boosts ================================================= */

.boost-count {
  display: grid;
  justify-items: center;
  min-width: 150px;
  padding: 12px 16px;
  border: 1px solid var(--line-gold);
  transform: rotate(-1deg);
}
.boost-count strong {
  color: var(--parchment);
  font: 900 2rem/1 "Roboto Condensed", sans-serif;
}
.boost-count span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boost-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.boost-progress > div {
  height: 6px;
  background: var(--well);
  box-shadow: var(--well-shadow);
}
.boost-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red-bright), var(--gold));
  box-shadow: var(--fill-shadow);
  transition: width 1s ease;
}
.boost-progress strong {
  color: var(--gold);
}

.boosts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px 16px;
}
/* Un boost : une ligne (icône, nom, valeur) qui s'ouvre au clic sur son détail (<details>, un seul ouvert) */
.boost-card {
  position: relative;
  border: 1px solid rgba(209, 155, 70, 0.22);
  background-image: var(--panel-gradient);
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.boost-card > summary {
  display: grid;
  grid-template-columns: 44px 1fr auto 14px;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}
.boost-card > summary::-webkit-details-marker {
  display: none;
}
.boost-card:not([open]):hover {
  transform: translateX(4px);
}
.boost-card:hover,
.boost-card[open] {
  border-color: rgba(var(--gold-rgb), 0.55);
}
.boost-card__more {
  color: #8d8475;
  font-size: 0.8rem;
  transition: transform 0.25s;
}
.boost-card[open] .boost-card__more {
  transform: rotate(180deg);
  color: var(--gold);
}
.boost-card__icon {
  display: grid;
  place-items: center;
  color: #dcb67b;
}
.boost-card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.boost-card.is-active .boost-card__icon {
  color: #6dcc81;
}
/* Le détail : base, maintenant, palier, maximum ; la jauge avec le palier marqué ; la phrase qui explique */
.boost-detail {
  display: grid;
  gap: 14px;
  padding: 4px 18px 18px;
}
.boost-detail dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(214, 159, 70, 0.18);
  background: rgba(214, 159, 70, 0.18);
}
.boost-detail dl > div {
  padding: 10px 12px;
  background: #15120e;
}
.boost-detail dt {
  color: #8d8475;
  font: 800 0.8rem "Roboto Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.boost-detail dd {
  margin: 4px 0 0;
  color: var(--parchment);
  font: 700 1.05rem "Roboto Condensed", sans-serif;
}
.boost-card.is-active .boost-detail dl > div:nth-child(2) dd {
  color: #6dcc81;
}
/* La jauge : une bande de survol plus haute que la barre, pour la viser sans peine */
.boost-detail__gauge {
  padding: 8px 0;
}
/* Pendant la lecture, le trait doré est le curseur : celui de la souris le cacherait */
.boost-detail__gauge.is-reading {
  cursor: none;
}
.boost-detail__gauge > div {
  position: relative;
  height: 8px;
  background: var(--well);
  box-shadow: var(--well-shadow);
}
.boost-detail__gauge > div > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--gauge) * 100%);
  background: linear-gradient(90deg, #b53a25, var(--gold));
  box-shadow: var(--fill-shadow);
}
/* Le palier : un trait sur la jauge */
.boost-detail__gauge > div > b {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: calc(var(--threshold) * 100%);
  width: 2px;
  background: var(--parchment);
}
/* Avant le palier, le boost n'est pas allumé : la jauge y est grisée et rayée */
.boost-detail__gauge > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: calc(var(--threshold) * 100%);
  background: repeating-linear-gradient(135deg, #6b645a 0 2px, #26221d 2px 5px);
}
.boost-detail__gauge > div > b,
.boost-detail__gauge > div > span {
  z-index: 2;
}
/* Le curseur du survol */
.boost-detail__gauge > div > span {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: calc(var(--at, 0) * 100%);
  width: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  opacity: 0;
  transform: translateX(-1px);
}
.boost-detail__gauge.is-reading > div > :is(span, em) {
  opacity: 1;
}
/* La bulle du curseur : la valeur du boost à ce niveau, et le niveau */
.boost-detail__gauge > div > em {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 14px);
  left: calc(var(--at, 0) * 100%);
  display: grid;
  justify-items: center;
  min-width: 64px;
  padding: 6px 10px;
  background: var(--red);
  color: #fff;
  font-style: normal;
  line-height: 1.15;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
.boost-detail__gauge > div > em::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 7px solid transparent;
  border-top-color: var(--red);
  transform: translateX(-50%);
}
.boost-detail__gauge.is-today > div > em {
  background: #2f7d44;
}
.boost-detail__gauge.is-today > div > em::after {
  border-top-color: #2f7d44;
}
.boost-detail__gauge > div > em b {
  font: 800 1.1rem "Roboto Condensed", sans-serif;
}
.boost-detail__gauge > div > em small {
  font-size: 0.8rem;
  opacity: 0.85;
}
.support-page main .boost-card h3 {
  font-size: 1.15rem;
}
.boost-card p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: var(--fs-small);
  line-height: 1.45;
}
.boost-card__value {
  min-width: 84px;
  padding-left: 14px;
  border-left: 1px solid rgba(214, 159, 70, 0.2);
  color: var(--gold);
  font: 700 1rem Roboto, sans-serif;
  text-align: right;
}
.boost-card__value small {
  display: block;
  margin-top: 4px;
  color: #8d8475;
  font-size: 0.8rem;
  text-transform: uppercase;
}
/* Boost allumé : liseré vert */
.boost-card.is-active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: #52b56b;
  box-shadow: 0 0 12px #52b56b;
}
.boost-card.is-active .boost-card__value {
  color: #6dcc81;
}

/* === 04 · Remerciements ========================================== */

.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.perk-card {
  padding: 26px 22px;
  border: 1px solid rgba(212, 158, 73, 0.24);
  border-top: 3px solid var(--gold);
  background-image: var(--panel-gradient);
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.perk-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb), 0.6);
}
.perk-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  background: #1b1711;
  color: #e0b975;
  font-size: 1.5rem;
  clip-path: var(--hex);
}
.support-page main .perk-card h3 {
  font-size: var(--fs-card);
}
.perk-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: var(--fs-body);
  line-height: 1.55 !important;
}
.perks-note {
  margin-top: 18px;
}

/* === Responsive ================================================== */

@media (max-width: 1050px) {
  .goal-panel {
    grid-template-columns: 1fr 0.7fr;
  }
  .goal-reasons {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-gold);
  }
  .boost-count {
    display: none;
  }
  .donation-form {
    grid-template-columns: 1fr 1fr;
  }
  .donation-step--confirm {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .support-shell {
    width: calc(100% - 28px);
  }
  .support-section {
    padding: 56px 0;
  }
  .goal-panel {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .goal-reasons {
    grid-template-columns: 1fr;
  }
  .donation-paper__head {
    grid-template-columns: 1fr;
  }
  .donation-form,
  .donation-progress {
    grid-template-columns: minmax(0, 1fr);
  }
  .donation-progress {
    gap: 8px;
  }
  .amount-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .boosts-grid {
    grid-template-columns: 1fr;
  }
  .perks-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .perks-grid {
    grid-template-columns: 1fr;
  }
  .boost-card p {
    display: none;
  }
  .boost-detail dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .goal-panel {
    transform: none !important;
  }
  .goal-ring__value,
  .boost-progress i {
    transition: none;
  }
  .donation-paper__shine {
    display: none;
  }
  .donation-paper *,
  .donation-paper *:before,
  .donation-paper *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* === Keyframes =================================================== */

/* Formulaire de don */
@keyframes draw-bar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes heartbeat {
  0%,
  40%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.18);
  }
  28% {
    transform: scale(1.06);
  }
}
@keyframes pop-in {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes bump {
  40% {
    color: var(--parchment);
    transform: scale(1.12);
  }
}
@keyframes shake {
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* === 05 · Le mur des abeilles ======================================
   L'en-tête comme les autres sections, puis un panneau : l'apiculteur à gauche (décor, il déborde par le bas), les
   donateurs à droite, quatre par rangée, portrait discret et pseudo lisible ; un seul donateur se tient au milieu. Au pied : les dons anonymes et le
   lien vers le don. */
.bee-wall {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 40px;
  padding: 30px 40px 26px 0;
  border: 1px solid var(--line-gold);
  background-image: var(--panel-gradient);
}
.bee-wall__keeper {
  align-self: end;
  width: 320px;
  max-width: none;
  height: auto;
  margin: 0 0 -26px -40px; /* posé sur le bas du panneau, un peu sorti à gauche */
  filter: drop-shadow(0 18px 30px rgba(var(--shadow-rgb), 0.55));
}
.bee-wall__body {
  display: grid;
  align-content: center;
  gap: 30px;
  min-width: 0;
}
.bee-wall__donors ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bee-wall__donors.is-alone ul {
  grid-template-columns: minmax(0, 260px);
  justify-content: center;
}
.bee-wall__donor {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  color: var(--parchment);
}
.bee-wall__donor > img,
.bee-wall__blank {
  flex: none;
  width: 74px;
  height: 74px;
  object-fit: cover;
  border: 1px solid rgba(var(--parchment-rgb), 0.55);
  background: #2a2117;
}
.bee-wall__blank {
  display: grid;
  place-items: center;
  color: #8a7c66;
  font-size: 1.6rem;
}
.bee-wall__donor strong {
  overflow: hidden;
  font: 700 1.35rem "Roboto Condensed", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bee-wall__empty {
  margin: 0;
  padding: 18px 0;
  color: var(--text-soft);
  text-align: center;
}
.bee-wall__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-gold);
}
.bee-wall__anonymous {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--text-soft);
}
.bee-wall__anonymous[hidden] {
  display: none;
}
.bee-wall__anonymous i {
  color: #8a7c66;
  font-size: 1.5rem;
}
.bee-wall__foot .text-link {
  margin: 0 0 0 auto;
}
@media (max-width: 1100px) {
  .bee-wall__donors ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Écran étroit : l'apiculteur se retire, le mur prend toute la largeur */
@media (max-width: 900px) {
  .bee-wall {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 20px 22px;
  }
  .bee-wall__keeper {
    display: none;
  }
}
@media (max-width: 520px) {
  .bee-wall__donors ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .bee-wall__donor > img,
  .bee-wall__blank {
    width: 56px;
    height: 56px;
  }
}

/* L'abeille couronnée au bout du merci (thanks.js) */
.donation-success__bee {
  display: inline-block;
  width: 56px;
  height: 56px;
  margin: -12px 0 -14px 10px;
  vertical-align: middle;
}
