/* =============================================
   PAGE DON — Design éditorial Institut Rousseau
   ============================================= */

/* ---------- HERO ---------- */
.don-hero {
  background: linear-gradient(170deg, #1B2A4A 0%, #0F1D35 100%);
  color: #fff;
  padding: calc(var(--nav-height, 80px) + 5.5rem) 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.don-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45, 91, 215,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 91, 215,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}
.don-hero::after {
  content: '';
  position: absolute; top: 35%; left: 50%;
  transform: translate(-50%,-50%);
  width: 500px; height: 350px;
  background: radial-gradient(ellipse, rgba(45, 91, 215,.18) 0%, transparent 70%);
  pointer-events: none;
}
.don-hero__inner {
  position: relative; z-index: 1;
  max-width: 620px; margin: 0 auto;
}
.don-hero__label {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}
.don-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 1.25rem;
  color: #f8fafc;
  text-shadow: 0 2px 24px rgba(0,0,0,.5), 0 0 60px rgba(45, 91, 215,.15);
}
.don-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(.95rem, 2vw, 1.1rem);
  line-height: 1.65; opacity: .85;
  max-width: 480px; margin: 0 auto;
  color: #cbd5e1;
}

/* ---------- DONATION CARD — floats over hero ---------- */
.don-card-wrap {
  max-width: 520px; margin: -3.5rem auto 0;
  padding: 0 1.25rem; position: relative; z-index: 2;
}
.don-card {
  background: var(--white, #fff);
  border-radius: 18px;
  box-shadow:
    0 1px 3px rgba(15,29,53,.04),
    0 8px 32px rgba(15,29,53,.1);
  padding: 2.25rem 2rem 2rem;
}
.don-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700;
  color: var(--ink); text-align: center;
  margin: 0 0 1.5rem;
}

/* Amount selector */
.don-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem; margin-bottom: 1.25rem;
}
.don-amt {
  display: flex; align-items: center; justify-content: center;
  height: 54px;
  border: 1.5px solid var(--border);
  border-radius: 12px; background: var(--card-bg, #ffffff);
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 600;
  color: var(--ink); cursor: pointer;
  transition: all .18s ease;
  user-select: none;
}
.don-amt.other {
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .01em; color: var(--muted);
}
.don-amt:hover {
  border-color: var(--color-accent); background: rgba(45, 91, 215,.06);
  color: var(--ink);
}
.don-amt.active {
  border-color: var(--navy-deep, #0F1D35);
  background: var(--navy-deep, #0F1D35);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15,29,53,.2);
}
.don-amt.active.other { color: #fff; }

/* After-tax line */
.don-after-tax {
  text-align: center;
  font-family: var(--font-display);
  font-size: .85rem; color: var(--muted);
  margin-bottom: 1.25rem;
  min-height: 1.3em;
}
.don-after-tax strong { color: #059669; font-weight: 800; }

/* CTA */
.don-cta {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .95rem 1.5rem;
  background: var(--color-accent);
  color: #fff; border: none; border-radius: 12px;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 12px rgba(45, 91, 215,.3);
}
.don-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(45, 91, 215,.4);
}
.don-secure {
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  font-family: var(--font-display);
  font-size: .75rem; color: var(--steel); margin-top: .75rem;
}

/* ---------- 66 % banner ---------- */
.don-fiscal-banner {
  max-width: 520px; margin: 1.5rem auto 0;
  padding: 0 1.25rem;
}
.don-fiscal-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(5,150,105,.06);
  border: 1px solid rgba(5,150,105,.15);
  border-radius: 12px;
}
.don-fiscal-pct {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 800;
  color: #059669; line-height: 1;
}
.don-fiscal-inner p {
  font-size: .85rem; color: var(--body); line-height: 1.5; margin: 0;
}
.don-fiscal-inner strong { color: #059669; }

/* ---------- Section commune ---------- */
.don-section {
  padding: 4.5rem 1.5rem;
}
.don-section--alt {
  background: var(--bg-alt, #F3F4F6);
}
.don-section__title {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--ink); text-align: center;
  margin: 0 0 .5rem;
}
.don-section__sub {
  text-align: center; color: var(--muted);
  font-size: .95rem; margin: 0 0 2.5rem;
}

/* ---------- 3-col "pourquoi" ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; max-width: 880px; margin: 0 auto;
}
.why-card {
  padding: 2rem 1.5rem; text-align: center;
  border-radius: 16px; background: var(--card-bg, #ffffff);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.why-card:hover {
  transform: translateY(-3px); box-shadow: var(--sh-md);
}
.why-icon {
  width: 48px; height: 48px; margin: 0 auto .85rem;
  border-radius: 12px; background: var(--ice);
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { color: var(--color-accent); }
.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700;
  color: var(--ink); margin: 0 0 .3rem;
}
.why-card p {
  font-size: .85rem; color: var(--muted); line-height: 1.6; margin: 0;
}

/* ---------- Impact ---------- */
.impact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; max-width: 780px; margin: 0 auto;
}
.impact-tile {
  text-align: center; padding: 1.75rem 1rem;
  border-radius: 14px; background: var(--card-bg, #ffffff);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.impact-tile:hover {
  transform: translateY(-2px); box-shadow: var(--sh-md);
}
.impact-tile__amt {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 700;
  color: var(--navy-deep, #0F1D35);
  margin-bottom: .5rem;
}
.impact-tile p {
  font-size: .82rem; color: var(--body); line-height: 1.5; margin: 0 0 .35rem;
}
.impact-tile__tax {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 800; color: #059669;
}

/* ---------- Usage bars ---------- */
.usage-wrap {
  max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.15rem;
}
.usage-row label {
  display: flex; justify-content: space-between;
  font-family: var(--font-display);
  font-size: .88rem; font-weight: 600; color: var(--ink);
  margin-bottom: .35rem;
}
.usage-row label span { font-weight: 500; color: var(--muted); }
.usage-track {
  height: 8px; background: var(--border); border-radius: 4px;
  overflow: hidden;
}
.usage-fill {
  height: 100%; border-radius: 4px;
  animation: bar-grow .8s ease-out both;
}
@keyframes bar-grow { from { width: 0; } }

/* ---------- Bottom CTA ---------- */
.don-bottom-cta {
  text-align: center;
  padding: 4rem 1.5rem 4.5rem;
  background: linear-gradient(170deg, #1e3a8a 0%, #1B2A4A 100%);
  color: #fff; position: relative; overflow: hidden;
}
.don-bottom-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45, 91, 215,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 91, 215,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 10%, transparent 70%);
  pointer-events: none;
}
.don-bottom-cta__inner {
  position: relative; z-index: 1;
  max-width: 500px; margin: 0 auto;
}
.don-bottom-cta h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 700;
  margin: 0 0 .75rem;
  color: #f8fafc;
  text-shadow: 0 2px 24px rgba(0,0,0,.5), 0 0 60px rgba(45, 91, 215,.15);
}
.don-bottom-cta p {
  font-size: .95rem; opacity: .75;
  margin: 0 0 2rem; line-height: 1.6;
}
.don-bottom-cta .don-cta {
  max-width: 340px; margin: 0 auto;
}

/* ---------- Contact ---------- */
.don-contact {
  text-align: center; padding: 2.5rem 1.5rem;
}
.don-contact p {
  font-size: .9rem; color: var(--muted); margin: 0;
}
.don-contact a {
  font-weight: 600; color: var(--blue);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .impact-strip { grid-template-columns: repeat(2, 1fr); }
  .don-card { padding: 1.75rem 1.25rem 1.5rem; }
  .don-fiscal-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .don-amounts { grid-template-columns: repeat(2, 1fr); }
  .impact-strip { grid-template-columns: 1fr 1fr; }
}
