/* ============================================
   AGRISWAP — SITE MARKETING
   Charte alignée avec l'application (cream + brand vert)
   Typo : Fraunces (display, mode SOFT) + DM Sans (body)
   ============================================ */

:root {
  /* Couleurs — alignées sur le design system AgriSwap */
  --color-brand: #3D7B4A;
  --color-brand-dark: #2F6038;
  --color-brand-light: #E0EBD3;

  --color-bg-app: #FBF1E6;
  --color-bg-warm: #F5E8D5;       /* variante un peu plus chaude pour rythmer les sections */
  --color-bg-card: #FFFFFF;

  --color-text-primary: #1F2937;
  --color-text-secondary: #6B7280;
  --color-text-tertiary: #9B8E7A;

  --color-amber: #BA7517;
  --color-amber-strong: #854F0B;
  --color-amber-bg: #FAEEDA;
  --color-coral: #A32D2D;

  --color-border: #E5DCC8;
  --color-border-strong: #D6CAB0;

  /* Typo */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Rythme */
  --section-y: clamp(64px, 10vw, 128px);
  --container-max: 1180px;
  --container-pad: clamp(20px, 4vw, 40px);

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Ombres — discrètes, pas de drop shadow flashy */
  --shadow-soft: 0 1px 2px rgba(31, 41, 55, 0.04), 0 8px 24px rgba(31, 41, 55, 0.06);
  --shadow-card: 0 1px 2px rgba(31, 41, 55, 0.04), 0 16px 40px rgba(31, 41, 55, 0.08);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Texture papier subtile en fond — appliquée via radial pour ne pas alourdir */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(186, 117, 23, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 88% 76%, rgba(61, 123, 74, 0.05) 0%, transparent 40%);
}

/* ============================================
   PRIMITIVES
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  position: relative;
  z-index: 1;
}

/* Eyebrow — petite étiquette uppercase amber au-dessus des titres de section */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-amber-strong);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--color-amber);
}

/* Titres */
h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--color-text-primary);
}
h1 { font-weight: 500; }
h2 { font-weight: 500; }
h3 { font-weight: 500; }

h1 em, h2 em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--color-brand);
  font-weight: 400;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-brand);
  color: white;
  box-shadow: 0 1px 0 rgba(31, 41, 55, 0.04), 0 4px 16px rgba(61, 123, 74, 0.18);
}
.btn-primary:hover {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}
.btn-secondary:hover { background: var(--color-amber-bg); border-color: var(--color-amber); color: var(--color-amber-strong); }

/* État inactif (utilisé pour "Lancement imminent" sur la carte CTA d'aide.html
   tant que app.agriswap.fr n'est pas en ligne). Voir marqueurs @temporarily-hidden:app-link. */
.btn-disabled,
.btn-disabled:hover {
  cursor: default;
  background: var(--color-amber-bg);
  border-color: var(--color-amber);
  color: var(--color-amber-strong);
  opacity: 0.85;
}
.btn-disabled::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-amber);
  margin-right: 10px;
  vertical-align: middle;
  animation: pulse-amber 2s ease-in-out infinite;
}
@keyframes pulse-amber {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-disabled::before { animation: none; opacity: 0.7; }
}

.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
}
.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 241, 230, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-brand);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--color-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 15px;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
  position: relative;
}
.site-nav a:hover { color: var(--color-text-primary); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .site-nav { display: none; }
}

/* Lien "Se connecter" dans le header — discret, à gauche du CTA primaire.
   Reste visible sur mobile (contrairement à .site-nav) car les producteurs
   cherchant l'app passent souvent par mobile. */
.site-signin {
  font-size: 15px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.site-signin:hover { color: var(--color-text-primary); }

/* Swap du label CTA "Demander une démo" / "Démo" selon largeur.
   Par défaut on affiche le label long ; sur mobile on bascule sur le court. */
.cta-label-short { display: none; }

/* Header compacté à partir des écrans téléphone (≤ 600px) :
   container padding réduit, gap resserré, logo et bouton plus compacts,
   et CTA basculé sur "Démo →" pour libérer de la place horizontale. */
@media (max-width: 600px) {
  .site-header .container {
    padding-left: 16px;
    padding-right: 16px;
    gap: 12px;
  }
  .logo {
    font-size: 19px;
    gap: 8px;
  }
  .logo-mark {
    width: 32px;
    height: 32px;
  }
  .site-signin {
    font-size: 14px;
  }
  .site-header .btn-primary {
    padding: 9px 14px;
    font-size: 14px;
  }
  .site-header .btn-primary .cta-label-full { display: none; }
  .site-header .btn-primary .cta-label-short { display: inline; }
}

/* Très petits écrans (< 380px, ex : iPhone SE 1ʳᵉ gén.) :
   on cache "Se connecter" du header pour préserver le couple logo + CTA.
   Le lien reste accessible via le footer (footer-brand + footer-links). */
@media (max-width: 380px) {
  .site-signin { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: var(--section-y);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero-text { max-width: 580px; }

.hero h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  margin-top: 24px;
  margin-bottom: 28px;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-micro {
  font-size: 13px;
  color: var(--color-text-tertiary);
  max-width: 460px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
}

/* HERO VISUAL — mockup d'écran de tableau de bord posé en angle */
.hero-visual {
  position: relative;
  perspective: 1400px;
}
.dashboard-mock {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  transform: rotate(-1.5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-visual:hover .dashboard-mock { transform: rotate(0deg) translateY(-4px); }

.mock-greeting {
  margin-bottom: 16px;
}
.mock-greeting-title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: 22px;
  color: var(--color-text-primary);
}
.mock-greeting-meta {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.mock-stat {
  background: var(--color-bg-app);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
}
.mock-stat-num {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
}
.mock-stat-num.amber { color: var(--color-amber); }
.mock-stat-num.coral { color: var(--color-coral); }
.mock-stat-num.info { color: #185FA5; }
.mock-stat-label { font-size: 11px; color: var(--color-text-secondary); margin-top: 4px; }

.mock-day-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 8px;
  padding-left: 4px;
}
.mock-orders { display: flex; flex-direction: column; gap: 8px; }
.mock-order {
  background: var(--color-bg-app);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.mock-order-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.mock-order-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-tertiary);
}
.mock-order-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
}
.mock-order-total { font-size: 13px; font-weight: 600; }
.mock-order-products { font-size: 12px; color: var(--color-text-secondary); }
.mock-order-slot {
  font-size: 11px;
  color: var(--color-text-tertiary);
  display: flex; align-items: center; gap: 4px;
}

/* Décoration discrète sur le hero — petit picto cagette flottant derrière la card */
.hero-decor {
  position: absolute;
  top: -30px; right: -40px;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================
   SECTIONS — communes
   ============================================ */
section {
  position: relative;
  z-index: 1;
}
.section-pad {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  margin-top: 18px;
}
.section-head .lead {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-top: 16px;
  max-width: 600px;
}

/* ============================================
   SECTION 2 — PROBLEM
   Fond légèrement plus chaud pour respirer
   ============================================ */
.problem {
  background: var(--color-bg-warm);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.problem .container { max-width: 880px; }
.problem h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  margin-bottom: 32px;
}
.problem p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--color-text-primary);
  margin-bottom: 22px;
}
.problem p:last-child { color: var(--color-text-secondary); }

/* Soulignés "fait main" sur les fragments concrets — micro detail */
.problem .underline-amber {
  background-image: linear-gradient(transparent 60%, rgba(186, 117, 23, 0.22) 60%);
  padding: 0 2px;
}

/* ============================================
   SECTION 3 — SOLUTION (3 bénéfices)
   ============================================ */
.solution { padding: var(--section-y) 0; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
@media (max-width: 880px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

.benefit {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.benefit-icon {
  width: 56px; height: 56px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.benefit h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.benefit p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 16px;
}

/* ============================================
   SECTION 4 — HOW IT WORKS (timeline)
   ============================================ */
.how {
  background: var(--color-bg-warm);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  margin-top: 16px;
}

.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  align-items: start;
  transition: transform 0.3s ease;
}
.step:hover { transform: translateY(-2px); }

.step-num {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  color: var(--color-brand);
  letter-spacing: -0.02em;
  display: block;
}
.step-content h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}
.step-content p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 620px;
}

@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .step-num { font-size: 48px; }
}

/* Visual de l'étape 3 — carte "lien d'invitation" */
.step-visual { margin-top: 20px; }
.invite-card {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px 20px 20px;
  background: var(--color-bg-app);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  max-width: 100%;
}
.invite-qr {
  width: 96px; height: 96px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px;
  flex-shrink: 0;
}
.invite-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.invite-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}
.invite-code {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.invite-url {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-brand);
  word-break: break-all;
}

/* ============================================
   SECTION 5 — WHAT CLIENTS SEE (split)
   ============================================ */
.clients { padding: var(--section-y) 0; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.split-text h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  margin-top: 16px;
  margin-bottom: 24px;
}
.split-text p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}
.split-text p:last-child { margin-bottom: 0; }

/* Mock catalogue client — carré grille 2x2 dans un cadre */
.client-mock {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  transform: rotate(1deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.client-mock:hover { transform: rotate(0) translateY(-4px); }

.client-mock-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.client-mock-title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: 18px;
}
.client-mock-meta { font-size: 12px; color: var(--color-text-secondary); }

.client-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.client-product {
  background: var(--color-bg-app);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.client-product-img {
  height: 88px;
  display: flex; align-items: center; justify-content: center;
}
.client-product-img.fruit { background: #FCEBEB; color: #A32D2D; }
.client-product-img.veg   { background: #E0EBD3; color: #3B6D11; }
.client-product-img.egg   { background: #FAEEDA; color: #854F0B; }
.client-product-img.other { background: #EEEDFE; color: #534AB7; }
.client-product-info { padding: 10px 12px 12px; }
.client-product-name { font-size: 13px; font-weight: 500; }
.client-product-price { font-size: 13px; color: var(--color-brand); font-weight: 600; margin-top: 2px; }

/* ============================================
   SECTION 6 — TESTIMONIAL
   ============================================ */
.testimonial {
  background: var(--color-bg-warm);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.testimonial .container {
  max-width: 920px;
  text-align: center;
}
.testimonial h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 48px;
}
.quote {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px);
  text-align: left;
  position: relative;
}
.quote::before {
  content: "\201C";  /* guillemet ouvrant */
  position: absolute;
  top: 8px; left: 24px;
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  color: var(--color-brand);
  opacity: 0.18;
  font-weight: 500;
}
.quote blockquote {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
  margin-bottom: 32px;
  font-style: italic;
}
.quote blockquote p { margin: 0; }
.quote blockquote p + p { margin-top: 1em; }
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-brand);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: 20px;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 16px; color: var(--color-text-primary); }
.author-role { font-size: 14px; color: var(--color-text-secondary); margin-top: 2px; }

/* ============================================
   SECTION 7 — FINAL CTA
   ============================================ */
.cta-final {
  padding: var(--section-y) 0;
  text-align: center;
}
.cta-final .container { max-width: 720px; }
.cta-final h2 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 24px;
}
.cta-final p {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}
.cta-final .btn { margin-top: 24px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-app);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 36px;
  margin-top: 0;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
@media (max-width: 720px) {
  .site-footer .container { grid-template-columns: 1fr; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Mini-CTA contextualisé dans la zone brand du footer.
   Catch-net pour les utilisateurs qui scrollent jusqu'en bas
   sans avoir vu le lien "Se connecter" du header. */
.footer-signin {
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.footer-signin a {
  color: var(--color-brand);
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.footer-signin a:hover { opacity: 0.7; }

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
@media (max-width: 720px) {
  .footer-links { align-items: flex-start; }
}
.footer-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--color-text-primary); }

.copyright {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--color-text-tertiary);
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  margin-top: 12px;
}

/* ============================================
   ANIMATIONS — légères, à la charge
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text > * { animation: fadeUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.hero-text > *:nth-child(2) { animation-delay: 0.15s; }
.hero-text > *:nth-child(3) { animation-delay: 0.25s; }
.hero-text > *:nth-child(4) { animation-delay: 0.35s; }
.hero-text > *:nth-child(5) { animation-delay: 0.45s; }
.hero-visual { animation: fadeUp 0.9s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }

/* Reveal au scroll — utilise IntersectionObserver dans le JS minimal en bas du HTML */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   PAGE MENTIONS LÉGALES
   ============================================ */
.legal { padding: clamp(40px, 6vw, 80px) 0 var(--section-y); }
.legal .container { max-width: 760px; }
.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
}
.legal-meta {
  font-size: 14px;
  color: var(--color-text-tertiary);
  margin-bottom: 48px;
}
.legal h2 {
  font-size: 26px;
  font-weight: 500;
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal p, .legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-primary);
  margin-bottom: 14px;
}
.legal ul { padding-left: 22px; }
.legal a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--color-brand-dark); }
.legal .placeholder {
  background: var(--color-amber-bg);
  color: var(--color-amber-strong);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-mono);
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-top: 64px;
}
.back-home:hover { color: var(--color-brand); }

/* ============================================
   PAGE AIDE / DÉCOUVRIR L'APP (aide.html)
   - Intro avec ancres vers les 2 sections
   - Sections producteurs / clients alternées (fond cream / blanc)
   - Grilles de "features" (icône brand + titre + texte)
   - CTA dual final
   ============================================ */

/* INTRO */
.help-intro {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(40px, 6vw, 64px);
  text-align: center;
}
.help-intro h1 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-top: 14px;
}
.help-intro h1 em {
  font-style: italic;
  color: var(--color-brand);
  font-variation-settings: "SOFT" 100;
}
.help-intro-lead {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* ANCRES vers sections */
.help-anchors {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.help-anchor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.help-anchor:hover {
  background: var(--color-amber-bg);
  border-color: var(--color-amber);
  color: var(--color-amber-strong);
  transform: translateY(-1px);
}
.help-anchor-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
  color: var(--color-brand);
  font-weight: 600;
}
.help-anchor:hover .help-anchor-arrow {
  transform: translateY(2px);
  color: var(--color-amber);
}

/* SECTIONS — fonds alternés */
.help-section {
  padding: var(--section-y) 0;
  scroll-margin-top: 80px; /* compense le header sticky lors d'un scroll vers une ancre */
}
.help-section--producer {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.help-section--client {
  background: var(--color-bg-app);
}

/* HEADER de section */
.help-section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.help-section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  background: var(--color-brand-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.help-section--client .help-section-eyebrow {
  color: var(--color-amber-strong);
  background: var(--color-amber-bg);
}
.help-section-header h2 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
}
.help-section-header h2 em {
  font-style: italic;
  color: var(--color-brand);
  font-variation-settings: "SOFT" 100;
}
.help-section-lead {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* GRILLE de FEATURES — 2 colonnes desktop, 1 colonne mobile */
.help-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
}
@media (max-width: 720px) {
  .help-features { grid-template-columns: 1fr; gap: 28px; }
}

.help-feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.help-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.help-feature-icon svg {
  width: 26px;
  height: 26px;
}
.help-section--client .help-feature-icon {
  background: var(--color-amber-bg);
  color: var(--color-amber-strong);
}
.help-feature h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}
.help-feature p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.help-feature p em {
  font-style: italic;
  color: var(--color-text-primary);
}
.help-feature p strong {
  font-weight: 600;
  color: var(--color-text-primary);
}
.help-feature p code {
  background: var(--color-amber-bg);
  color: var(--color-amber-strong);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

/* CTA FINAL DUAL — 2 cartes côte à côte */
.help-cta {
  padding: var(--section-y) 0;
  background: var(--color-bg-app);
  border-top: 1px solid var(--color-border);
}
.help-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 800px) {
  .help-cta-grid { grid-template-columns: 1fr; }
}
.help-cta-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.help-cta-card--alt {
  background: var(--color-amber-bg);
  border-color: var(--color-amber);
}
.help-cta-card h2 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 500;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
}
.help-cta-card h2 em {
  font-style: italic;
  color: var(--color-brand);
  font-variation-settings: "SOFT" 100;
}
.help-cta-card--alt h2 em {
  color: var(--color-amber-strong);
}
.help-cta-card p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.help-cta-card .btn {
  margin-top: auto;
}
