/* JCM — Impact & Transmission. Surcouche mince : hérite des jetons et primitives
   de ../styles.css (:root, .section, .eyebrow, .button, .site-header, .site-footer). */

.impact-page {
  background: var(--paper);
}

.impact-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 63, 59, 0.95), rgba(17, 40, 37, 0.66)),
    url("/assets/site/maniocrie-platine.jpg") center/cover;
}

.impact-hero-inner {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  align-items: center;
  gap: 56px;
  padding: 78px 0 96px;
}

.impact-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.9rem, 6.4vw, 6.2rem);
  line-height: 1.06;
}

.impact-hero h1 span {
  display: block;
}

.impact-hero h1 .hero-accent {
  color: var(--lime);
}

.impact-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
}

.impact-path {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.impact-path li {
  padding: 8px 14px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.campaign-panel {
  padding: 30px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.campaign-panel img {
  width: 168px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 20px;
}

.panel-kicker {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.campaign-panel h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.18;
}

.campaign-panel p:not(.panel-kicker) {
  margin: 16px 0 24px;
  color: var(--muted);
}

.impact-section {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 86px 0;
}

.impact-section-header {
  max-width: 820px;
  margin-bottom: 34px;
}

.impact-section-header h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.impact-section-header p {
  color: var(--muted);
}

.why-grid,
.roles-grid,
.projects-grid,
.impact-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.why-card,
.role-card,
.project-card,
.impact-proof {
  min-width: 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.why-card span,
.role-card span,
.project-card span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.why-card h3,
.role-card h3,
.project-card h3 {
  margin: 8px 0 12px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
}

.why-card p,
.role-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.roles-note {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-band {
  background: var(--deep);
}

.feature-band .impact-section {
  color: var(--white);
}

.feature-band .impact-section-header p {
  color: rgba(255, 255, 255, 0.74);
}

.impact-proof {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.impact-proof strong {
  display: block;
  margin-bottom: 10px;
  color: var(--lime);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 4.2vw, 4.2rem);
  line-height: 1;
}

.impact-proof span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.amount-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.amount-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--lime);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1;
}

.amount-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

/* Attribution des montants : discrète mais lisible — ce sont les chiffres de
   Compassion Canada, jamais des coûts établis par les JCM. */
.amount-source {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
}

/* Second CTA, après la section d'impact concret : « percevoir → agir ».
   Aucun autre bouton n'est répété plus bas dans la page. */
.band-cta {
  margin-top: 34px;
}

/* §13 — ouverture 2027 : discrète par défaut. */
.future-section {
  padding-top: 0;
  padding-bottom: 92px;
}

.future-note {
  max-width: 820px;
  margin: 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.projects-grid {
  margin-top: 26px;
}

.footer-links .current-page {
  color: var(--lime);
}

@media (max-width: 1040px) {
  .impact-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  /* Réserve la hauteur du CTA fixe (52px) + son décalage (14px) + une marge de
     confort, pour que le dernier lien du pied de page ne passe jamais dessous.
     Mesuré : à 92px, « Retour en haut » était recouvert. */
  .impact-page {
    padding-bottom: 140px;
  }

  .impact-hero-inner,
  .impact-section {
    width: min(100% - 28px, var(--max-width));
  }

  .impact-hero-inner {
    padding: 48px 0 64px;
  }

  .impact-section {
    padding: 64px 0;
  }

  .campaign-panel,
  .why-card,
  .role-card,
  .project-card,
  .impact-proof {
    padding: 22px;
  }

  /* CTA permanent en bas d'écran : principal levier de conversion sur mobile.
     Le padding-bottom de .impact-page réserve la place pour ne pas masquer le pied de page. */
  [data-compassion-cta] {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 120;
    width: auto;
    box-shadow: 0 18px 42px rgba(17, 40, 37, 0.32);
  }
}
