.transparency-main {
  padding-top: 104px;
  background: #fff;
}

.transparency-intro {
  width: min(1180px, calc(100% - 40px));
  min-height: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 7vw, 90px);
  padding: clamp(42px, 7vw, 86px) 0 64px;
}

.transparency-intro-copy {
  max-width: 720px;
}

.transparency-intro h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.98;
}

.transparency-intro p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.transparency-intro .button {
  margin-top: 18px;
}

.transparency-intro img {
  width: min(100%, 370px);
  justify-self: center;
}

.payment-status {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 22px;
  padding: 16px 18px;
  border-radius: 8px;
  font-weight: 750;
}

.payment-status.is-success {
  color: #176f56;
  border: 1px solid #aadfc9;
  background: #e9fff5;
}

.payment-status.is-neutral {
  color: #5e5660;
  border: 1px solid #dcd8de;
  background: #f6f5f7;
}

.financial-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: #eef1f5;
}

.financial-strip div {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px clamp(20px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.financial-strip div:last-child {
  border-right: 0;
}

.financial-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.financial-strip strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
}

.financial-strip small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.financial-strip small b {
  color: inherit;
}

.donation-workspace {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
  padding: 100px 0;
}

.section-kicker {
  margin: 0;
  color: var(--plum);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.donation-copy h2,
.allocation-heading h2,
.field-heading h2,
.ledger-heading h2 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.donation-copy > p:not(.section-kicker),
.allocation-heading > p,
.field-heading > p,
.ledger-heading > p {
  color: var(--muted);
  line-height: 1.7;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-weight: 720;
}

.trust-list span {
  display: inline-grid;
  width: 25px;
  height: 25px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
}

.donation-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fde7e1;
  box-shadow: 0 22px 60px rgba(36, 50, 74, 0.1);
}

.donation-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.donation-form legend,
.donation-form label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.donation-form label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.donation-form small {
  color: var(--muted);
  font-weight: 600;
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.amount-options button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms var(--ease-out, ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.amount-options button:active {
  transform: scale(0.96);
  transition-duration: 100ms;
}

.amount-options button.is-selected {
  color: #fff;
  border-color: var(--coral-strong);
  background: var(--coral-strong);
}

.donation-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.donation-form input:focus {
  border-color: var(--coral);
  outline: 3px solid rgba(228, 99, 87, 0.18);
}

.money-input {
  position: relative;
}

.money-input input {
  padding-right: 42px;
}

.money-input > span {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 850;
}

.checkout-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--coral-strong);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.checkout-button {
  transition: transform 160ms var(--ease-out, ease-out), opacity 200ms ease;
}

.checkout-button:active:not(:disabled) {
  transform: scale(0.98);
  transition-duration: 100ms;
}

.checkout-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

/* Paiement en cours : trois points qui sautillent au lieu de la flèche. */
.checkout-dots {
  display: none;
  gap: 5px;
}

.checkout-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: checkout-hop 900ms var(--ease-in-out, ease-in-out) infinite;
}

.checkout-dots i:nth-child(2) { animation-delay: 120ms; }
.checkout-dots i:nth-child(3) { animation-delay: 240ms; }

.checkout-button.is-loading { opacity: 0.9; }
.checkout-button.is-loading .checkout-arrow { display: none; }
.checkout-button.is-loading .checkout-dots { display: inline-flex; }

@keyframes checkout-hop {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30% { transform: translateY(-5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-dots i { animation-duration: 1800ms; transform: none; }
  .amount-options button:active,
  .checkout-button:active:not(:disabled) { transform: none; }
}

.checkout-note,
.form-error {
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
}

.checkout-note {
  color: var(--muted);
}

.form-error {
  color: #bd293e;
  font-weight: 750;
}

.allocation-section,
.field-section,
.ledger-section {
  padding: 96px max(20px, calc((100% - 1120px) / 2));
}

.allocation-section {
  background: #f6f6f8;
}

.allocation-heading,
.field-heading,
.ledger-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 70px;
  align-items: end;
}

.allocation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 80px;
  margin-top: 58px;
}

.allocation-bars {
  display: grid;
  gap: 24px;
}

.allocation-bar > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.92rem;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: #dedee4;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #777;
}

.allocation-protections .bar-track span,
.ledger-marker.allocation-protections { background: #c84b43; }
.allocation-logistics .bar-track span,
.ledger-marker.allocation-logistics { background: #24324a; }
.allocation-outreach .bar-track span,
.ledger-marker.allocation-outreach { background: #e46357; }
.allocation-operations .bar-track span,
.ledger-marker.allocation-operations { background: #6c6b70; }

.impact-totals {
  border-left: 1px solid var(--line);
  padding-left: 52px;
}

.impact-totals div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.impact-totals strong {
  min-width: 90px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.impact-totals span {
  color: var(--muted);
  font-weight: 700;
}

.field-section {
  background: #eef1f5;
}

.impact-map {
  z-index: 0;
  isolation: isolate;
  height: 480px;
  margin-top: 46px;
  border: 1px solid rgba(36, 50, 74, 0.22);
  border-radius: 8px;
  background: #eef1f5;
}

.map-empty {
  margin: 12px 0 0;
  color: var(--muted);
}

.leaflet-popup-content strong {
  color: var(--ink);
}

.ledger-section {
  background: #fff;
}

.ledger-table {
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.ledger-entry {
  min-height: 112px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}

.ledger-marker {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: #777;
}

.ledger-entry h3 {
  margin: 0;
  font-size: 1rem;
}

.ledger-meta,
.ledger-description {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.ledger-meta {
  font-weight: 750;
}

.ledger-value {
  color: var(--ink);
  white-space: nowrap;
}

.ledger-evidence {
  display: inline-flex;
  margin-top: 9px;
  color: var(--plum);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ledger-empty {
  padding: 30px 0;
  color: var(--muted);
}

.fee-note {
  padding: 42px max(20px, calc((100% - 1120px) / 2));
  color: #4f4a46;
  background: #fde7e1;
}

.fee-note p {
  max-width: 900px;
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

@media (max-width: 820px) {
  .transparency-intro,
  .donation-workspace,
  .allocation-heading,
  .field-heading,
  .ledger-heading,
  .allocation-layout {
    grid-template-columns: 1fr;
  }

  .transparency-intro {
    min-height: auto;
    gap: 20px;
    padding-top: 52px;
  }

  .transparency-intro img {
    width: 180px;
    justify-self: start;
  }

  .financial-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .financial-strip div:nth-child(2) {
    border-right: 0;
  }

  .financial-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .donation-workspace,
  .allocation-section,
  .field-section,
  .ledger-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .allocation-heading,
  .field-heading,
  .ledger-heading,
  .allocation-layout {
    gap: 20px;
  }

  .impact-totals {
    margin-top: 20px;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .impact-map {
    height: 360px;
  }
}

@media (max-width: 520px) {
  .transparency-main {
    padding-top: 92px;
  }

  .transparency-intro,
  .donation-workspace {
    width: min(100% - 32px, 520px);
  }

  .transparency-intro h1 {
    font-size: 2.7rem;
  }

  .financial-strip div {
    min-height: 112px;
    padding: 20px 16px;
  }

  .financial-strip strong {
    font-size: 1.35rem;
  }

  .donation-form {
    padding: 20px;
  }

  .amount-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .ledger-entry {
    grid-template-columns: 9px minmax(0, 1fr);
  }

  .ledger-value {
    grid-column: 2;
  }
}
