/* Page /affiliation — malgré ~1700 lignes de CSS dans la maquette source
   (.hero-section/.benefits-section/.how-it-works-section/.visual-feature-
   section/.who-section/.stats-section/.faq-section/ancien .trust-section/
   .commission-section...), AUCUNE de ces classes n'a d'élément correspondant
   dans le <body> réel — un bloc "harmonisation-affiliation" recolore déjà
   tout ce système en terra mais il est lui-même mort dans son ensemble
   (vérifié classe par classe). Le vrai corps de page n'utilise que : le
   hero-v2 (variante auto-suffisante, déjà terra, extraite telle quelle),
   .visual-banner/.vb-points (dans sa version finale "bloc2-affiliation" qui
   écrase la définition générique du <head>), et un système compact
   `.af-*` unique à cette page. Repris de moltow-08-2026/affiliation/index.html. */

body { margin: 0; line-height: 1.6; font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Hero (variante auto-suffisante, mêmes tokens --hv2-* que SAV) ===== */
.hero-v2 {
  --hv2-accent: var(--terra);
  --hv2-accent-dark: var(--terra-dark);
  --hv2-ink: var(--ink);
  --hv2-soft: #555;
  --hv2-mute: var(--ink-mute);
  --hv2-line: var(--line);
  background: #fff;
  padding: 2rem clamp(20px, 4vw, 64px) 2.5rem;
}
.hero-v2 * {
  box-sizing: border-box;
}
.hero-v2 .hero-v2-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55fr 45fr;
  column-gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-v2 [data-eyebrow] {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hv2-accent);
  margin: 0 0 1rem;
}
.hero-v2 [data-eyebrow]::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--hv2-accent);
  border-radius: 2px;
}
.hero-v2 h1 {
  font-size: clamp(1.95rem, 1.45rem + 1.9vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--hv2-ink);
  margin: 0 0 0.8rem;
}
.hero-v2 h1 em {
  font-style: normal;
  color: var(--hv2-accent);
}
.hero-v2 .hero-v2-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hv2-soft);
  max-width: 34rem;
  margin: 0 0 1.4rem;
}
.hero-v2 .hero-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
}
.hero-v2 .hero-v2-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}
.hero-v2 a[data-cta='primary'] {
  background: var(--hv2-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(138, 98, 72, 0.3);
}
.hero-v2 a[data-cta='primary']:hover {
  background: var(--hv2-accent-dark);
  transform: translateY(-1px);
}
.hero-v2 a[data-cta='ghost'] {
  border-color: var(--hv2-line);
  color: var(--hv2-ink);
  background: transparent;
}
.hero-v2 a[data-cta='ghost']:hover {
  border-color: var(--hv2-accent);
  color: var(--hv2-accent);
}
.hero-v2 .hero-v2-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(1.4rem, 3vw, 2.6rem);
  margin: 1.6rem 0 0;
}
.hero-v2 .hero-v2-stats dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero-v2 .hero-v2-stats dd {
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--hv2-ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hero-v2 .hero-v2-stats dd::after {
  content: attr(data-label);
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--hv2-mute);
  margin-top: 0.15rem;
  white-space: nowrap;
}
.hero-v2 .hero-v2-stats dd a {
  color: inherit;
  text-decoration: none;
}
.hero-v2 .hero-v2-stats dd a:hover {
  color: var(--hv2-accent);
}
.hero-v2 figure {
  position: relative;
  margin: 0;
}
.hero-v2 figure img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: block;
}
.hero-v2 figcaption {
  position: absolute;
  bottom: 1.1rem;
  left: -1.1rem;
  margin: 0;
  background: #fff;
  border: 1px solid var(--hv2-line);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 0.95rem 1.35rem;
  display: grid;
  gap: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hv2-soft);
  max-width: min(85%, 20rem);
}
.hero-v2 figcaption b {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--hv2-accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-v2 figcaption small {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--hv2-mute);
  line-height: 1.45;
}
@media (max-width: 767px) {
  .hero-v2 {
    padding: 1.6rem 20px 2.2rem;
  }
  .hero-v2 .hero-v2-inner {
    grid-template-columns: 1fr;
    row-gap: 1.8rem;
  }
}

/* ===== Bandeau visuel (version finale — écrase la définition générique) ===== */
.visual-banner {
  background: #fff;
  padding: 2.2rem 0 2.6rem;
}
.visual-banner .visual-banner-content {
  display: block;
  background: var(--terra-soft);
  border-radius: 20px;
  padding: 2.3rem clamp(1.4rem, 4vw, 2.8rem) 2.4rem;
}
.visual-banner .visual-banner-text h2 {
  max-width: none;
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.visual-banner .visual-banner-text p {
  max-width: 64ch;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.vb-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.vb-points li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem 1.25rem;
  display: grid;
  gap: 0.2rem;
  box-shadow: var(--shadow-sm);
}
.vb-points b {
  color: var(--ink);
  font-size: 0.98rem;
}
.vb-points span {
  color: var(--ink-mute);
  font-size: 0.85rem;
}
@media (max-width: 860px) {
  .vb-points {
    grid-template-columns: 1fr;
  }
}

/* ===== Système "af-*" (seul vocabulaire propre à cette page) ===== */
.af-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}
.af-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 0.55rem;
}
.af-h2 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: left;
  margin: 0 0 0.45rem;
}
.af-sub {
  font-size: 0.95rem;
  color: var(--ink-mute);
  text-align: left;
  max-width: 62ch;
  margin: 0 0 1.8rem;
}

/* Étapes */
.af-steps {
  background: #fff;
  padding: 3rem 0;
}
.af-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.af-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 0.8rem;
  align-items: baseline;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.af-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--terra);
}
.af-step p.af-step-num {
  grid-row: 1;
  grid-column: 1;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--terra);
  margin: 0;
}
.af-step h3 {
  grid-row: 1;
  grid-column: 2;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.af-step > p:last-child {
  grid-row: 2;
  grid-column: 1 / -1;
  align-self: start;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0.6rem 0 0;
}
.af-step:last-child p.af-step-num {
  color: var(--amber);
}
.af-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -1.15rem;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--terra);
  z-index: 2;
}

/* Commission */
.af-commission {
  background: #fff;
  padding: 3rem 0;
}
.af-com-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.6rem clamp(2rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, var(--terra-dark), var(--terra) 55%, #96705a);
  border-radius: 20px;
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.5rem, 4vw, 3.2rem);
  color: #fff;
  box-shadow: 0 18px 44px rgba(104, 71, 53, 0.32);
}
.af-com-box::before {
  content: '';
  position: absolute;
  top: -45%;
  right: -8%;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.af-com-box::after {
  content: '';
  position: absolute;
  bottom: -55%;
  left: 32%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.af-com-rate {
  position: relative;
  font-size: clamp(4.6rem, 3rem + 7vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 0;
}
.af-com-rate small {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffd79a;
  margin-top: 0.7rem;
}
.af-com-body {
  position: relative;
}
.af-com-body h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1.1rem;
}
.af-com-ex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 0.95rem 1.25rem;
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 1.1rem;
}
.af-com-ex b {
  color: #ffd79a;
  font-weight: 900;
  font-size: 1.15rem;
  white-space: nowrap;
}
.af-com-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.af-com-points li::before {
  content: '✓';
  font-weight: 900;
  color: #ffd79a;
  margin-right: 0.45rem;
}
.af-btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--terra-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.af-btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(23, 24, 74, 0.3);
}

/* Confiance */
.af-trust {
  background: #fff;
  padding: 0 0 3.5rem;
}
.af-trust-inner {
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 2.2rem clamp(1.2rem, 3vw, 2.2rem);
  text-align: center;
}
.af-trust-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 1.6rem;
  text-align: center;
}
.af-trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.af-trust-items li {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  justify-items: center;
  text-align: center;
  padding: 0.2rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-mute);
}
.af-trust-items li + li {
  border-left: 1px solid var(--line);
}
.af-trust-items b {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--terra);
}
@media (max-width: 800px) {
  .af-trust-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem 0;
  }
  .af-trust-items li:nth-child(3) {
    border-left: none;
  }
}

/* Formulaire (conteneur générique de la maquette, réel — le vrai formulaire
   qu'il enveloppe est monté par contact-forms.ts/form-styles.css, déjà
   chargés automatiquement par le catch-all quand page.hasForm) */
.af-form {
  scroll-margin-top: 90px;
}
.form-section.af-form {
  padding: 3rem 0 !important;
  background: var(--bg-alt);
}
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 2.4rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
/* Bouton terra scopé à cette page (form-styles.css reste bleu globalement
   tant que tous les formulaires ne sont pas migrés). Sélecteur composé pour
   battre la spécificité de `form.default-style button[type="submit"]`
   (form-styles.css, plus spécifique que .btn-contact-send seul). */
.form-container form.default-style button[type='submit'],
.form-container .btn-contact-send {
  background: var(--terra);
}
.form-container form.default-style button[type='submit']:hover,
.form-container .btn-contact-send:hover {
  background: var(--terra-dark);
}

/* CTA final */
.af-final {
  background: #fff;
  padding: 3rem 0;
}
.af-final-box {
  background: var(--terra-soft);
  border-radius: 20px;
  text-align: left;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.4rem, 4vw, 3rem);
}
.af-final-box h2 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.af-final-box p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}
.af-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem;
}
.af-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--terra);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(138, 98, 72, 0.3);
  transition: all 0.2s ease;
}
.af-btn-primary:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(138, 98, 72, 0.35);
}
.af-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.af-btn-ghost:hover {
  border-color: var(--terra);
  color: var(--terra);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .af-steps-grid {
    grid-template-columns: 1fr;
  }
  .af-step:not(:last-child)::after {
    content: '↓';
    top: auto;
    bottom: -1.25rem;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .af-com-box {
    grid-template-columns: 1fr;
    text-align: left;
  }
}
