/* FarmDDM — site vitrine */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f1;
  --text: #1d2420;
  --muted: #5d665f;
  --line: #e4e2db;
  --green: #2f5b3f;
  --green-soft: #e8efe9;
  --radius: 14px;
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.02em; }

p { margin: 0 0 1em; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap.wide { max-width: 1280px; }

section { padding: 104px 0; }

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin-bottom: 16px;
}

h3 { font-size: 19px; line-height: 1.3; margin-bottom: 6px; letter-spacing: -0.01em; }

.section-lede {
  color: var(--muted);
  font-size: 19px;
  max-width: 36em;
  margin-bottom: 56px;
}

/* En-tête */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--green);
}

.top nav { display: flex; gap: 32px; font-size: 15px; }

.top nav a { text-decoration: none; color: var(--muted); transition: color 0.15s; }

.top nav a:hover { color: var(--text); }

/* Ouverture */

.hero { padding: 88px 0 0; }

.eyebrow {
  color: var(--green);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 15em;
  margin-bottom: 24px;
}

.hero .lede {
  color: var(--muted);
  font-size: 20px;
  max-width: 32em;
  margin-bottom: 56px;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: 30% 45%;
  border-radius: var(--radius);
}

figure { margin: 0; }

/* Deux colonnes */

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro p { color: var(--muted); font-size: 18px; max-width: 30em; }

.intro figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Étapes */

.steps-section { background: var(--bg-soft); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  right: calc((100% - 80px) / 5 - 18px);
  height: 1px;
  background: #cfd6cf;
}

.steps li { position: relative; }

.steps .n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--green);
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
  position: relative;
}

.steps li:last-child .n { background: var(--green); color: #fff; }

.steps p { color: var(--muted); font-size: 16px; margin: 0; }

/* Suivi */

.reverse > :first-child { order: 2; }

.list { list-style: none; margin: 32px 0 0; padding: 0; }

.list li { padding: 20px 0; border-top: 1px solid var(--line); }

.list li:last-child { border-bottom: 1px solid var(--line); }

.list p { color: var(--muted); margin: 0; font-size: 16px; }

.card-stage { position: relative; padding-bottom: 48px; }

.card-stage img {
  width: 88%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 52% 60%;
  border-radius: var(--radius);
}

.card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(300px, 70%);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(29, 36, 32, 0.12);
  padding: 18px 20px 14px;
  font-size: 14px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tag {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

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

.card ul { list-style: none; margin: 0; padding: 0; }

.card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.card li span { color: var(--muted); }

.card li b { font-weight: 500; }

.card-note { color: #9aa29b; font-size: 12px; margin: 8px 0 0; }

/* Environnement */

.env { padding-top: 0; }

.env-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.env-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.env-grid article:first-child img { object-position: center 40%; }

.env-grid p { color: var(--muted); font-size: 16px; margin: 0; }

/* Pied */

footer { border-top: 1px solid var(--line); padding: 56px 0 64px; }

.foot { display: block; }

.foot p { color: var(--muted); font-size: 15px; margin-top: 12px; }



/* Responsive */

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 18px; bottom: 18px; left: 17px; right: auto; width: 1px; height: auto; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; padding-bottom: 28px; }
  .steps .n { grid-row: span 2; margin: 0; }
  .steps li:last-child { padding-bottom: 0; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .top nav { display: none; }
  .hero { padding-top: 48px; }
  .hero .lede { font-size: 18px; margin-bottom: 36px; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .two { grid-template-columns: 1fr; gap: 40px; }
  .reverse > :first-child { order: 0; }
  .card-stage img { width: 100%; }
  .card { position: relative; width: auto; margin: -64px 16px 0; }
  .card-stage { padding-bottom: 0; }
  .env-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
