/* ===== AGRONAVI — Feuille de style principale ===== */

:root {
  --green-900: #0f2e1d;
  --green-800: #16412a;
  --green-700: #1f5c38;
  --green-600: #2c7a46;
  --green-500: #3c9a5c;
  --green-100: #e8f5ec;
  --earth-500: #b8894a;
  --earth-100: #f6ecdd;
  --cream: #faf8f3;
  --ink-900: #16201a;
  --ink-700: #3d4a41;
  --ink-500: #6b776e;
  --white: #ffffff;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(15, 46, 29, 0.10);
  --shadow-hover: 0 16px 40px rgba(15, 46, 29, 0.16);
  --container: 1160px;
  --font-head: "Georgia", "Iowan Old Style", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--ink-700); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  font-weight: 700;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-700);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--green-700);
  color: var(--green-700);
}
.btn-outline-dark:hover { background: var(--green-100); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 46, 29, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green-900);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-700);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-700);
  border-color: var(--green-600);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 110px;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-600) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08) 0, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.07) 0, transparent 40%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.5) 0 2px, transparent 2px 34px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero .eyebrow { color: var(--earth-100); }
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255,255,255,0.88); font-size: 1.2rem; }

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

/* ===== Sections ===== */
section { padding: 88px 0; }

.section-alt { background: var(--green-100); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin: 0 0 48px; text-align: left; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(15,46,29,0.06);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--earth-100), var(--green-100));
  position: relative;
}
.image-frame::after {
  content: "🌾";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: 0.5;
}

.field-graphic {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
  min-height: 320px;
  background: linear-gradient(180deg, #cfe8d7 0%, #a9d4b6 40%, var(--green-700) 100%);
  position: relative;
}
.field-graphic .rows {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.12) 0 6px, transparent 6px 16px);
}
.field-graphic .sun {
  position: absolute;
  top: 34px; right: 44px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff2c9, #f3d27a);
  box-shadow: 0 0 40px rgba(243, 210, 122, 0.7);
}

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-check li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--ink-700);
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.badge {
  background: var(--white);
  border: 1px solid rgba(15,46,29,0.1);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-800);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.info-table tr:not(:last-child) td { border-bottom: 1px solid rgba(15,46,29,0.08); }
.info-table td {
  padding: 18px 26px;
  font-size: 0.98rem;
}
.info-table td:first-child {
  font-weight: 700;
  color: var(--green-800);
  width: 38%;
  background: var(--green-100);
}

.timeline {
  border-left: 3px solid var(--green-600);
  margin-left: 8px;
  padding-left: 28px;
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-700);
  border: 3px solid var(--cream);
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-item h3 { margin-bottom: 4px; font-size: 1.05rem; }
.contact-item p { margin: 0; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-800);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15,46,29,0.18);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink-900);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(60, 154, 92, 0.18);
}
.form-note {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 8px;
}

/* Footer */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer-grid p { color: rgba(255,255,255,0.65); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--white); }

/* Legal / privacy pages */
.legal-hero {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: var(--white);
  padding: 64px 0 56px;
}
.legal-hero h1 { color: var(--white); margin-bottom: 6px; }
.legal-hero p { color: rgba(255,255,255,0.8); margin: 0; }

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px;
}
.legal-content h2 {
  margin-top: 44px;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--green-100);
  padding-bottom: 10px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { color: var(--ink-700); padding-left: 22px; }
.legal-content li { margin-bottom: 10px; }
.toc {
  background: var(--green-100);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 12px;
}
.toc a {
  display: block;
  padding: 6px 0;
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.92rem;
}
.toc a:hover { color: var(--green-600); }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* Responsive */
@media (max-width: 900px) {
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    box-shadow: var(--shadow-soft);
  }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  section { padding: 60px 0; }
}
