:root {
  --brand: #1f5e12;
  --brand-dark: #052b1c;
  --accent: #3f8a10;
  --lime: #8cc63f;
  --eyebrow: #3a7d0e;
  --danger: #c62828;
  --ink: #1b2430;
  --muted: #5b6676;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f3f7f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(5, 43, 28, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--brand); }
h3 { font-size: 1.15rem; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  margin: 0 0 0.5em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.85em 1.5em;
  border: 2px solid var(--lime);
  border-radius: 999px;
  background: var(--lime);
  color: var(--brand-dark);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(140, 198, 63, 0.35); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { box-shadow: none; background: rgba(255, 255, 255, 0.1); }
.btn-small { padding: 0.5em 1.1em; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; }
.brand img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--brand); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--brand); transition: transform 0.2s, opacity 0.2s; }

/* Bannière */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(5, 43, 28, 0.96) 0%, rgba(5, 43, 28, 0.9) 55%, rgba(63, 138, 16, 0.85) 100%),
    radial-gradient(circle at 85% 20%, rgba(140, 198, 63, 0.35), transparent 40%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  border: 40px solid rgba(140, 198, 63, 0.15);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(80px, 12vw, 140px) 0; max-width: 820px; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
.hero h1 span { color: var(--lime); }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--brand-dark); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--lime); }
.section-dark p { color: rgba(255, 255, 255, 0.85); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }

/* Fiche entreprise */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; background: #fff; }
.facts strong { color: var(--brand); }
.facts span { color: var(--muted); text-align: right; }
.activity-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1.5rem; }
.activity-list li { position: relative; padding-left: 1.3em; }
.activity-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }

/* Cartes secteurs */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  padding: 2rem 1.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--brand-dark), var(--accent), var(--lime));
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card h3 { color: var(--brand); }
.card-main { border-color: var(--lime); }
.card-main::before { opacity: 1; }
.badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  background: var(--lime);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card p { color: var(--muted); margin: 0 0 1rem; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card li { position: relative; padding-left: 1.3em; margin: 0.35em 0; font-size: 0.95rem; }
.card li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  background: rgba(63, 138, 16, 0.1);
}
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Engagements */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { padding-top: 1.2rem; border-top: 3px solid var(--brand); }
.value-num { display: block; font-size: 2rem; font-weight: 800; color: var(--lime); line-height: 1; margin-bottom: 0.6rem; }
.value p { color: var(--muted); margin: 0; }

/* Zones */
.zones { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.zones li {
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--lime);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}
.zones strong { display: block; color: var(--lime); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Contact */
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { color: var(--brand); }
.contact-list a { text-decoration: none; }

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.contact-form label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8em 0.9em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; min-height: 1.4em; font-size: 0.9rem; }
.form-note.error { color: var(--danger); }
.form-note.ok { color: #1b7f3b; }

/* Pied de page */
.site-footer { background: var(--brand-dark); color: rgba(255, 255, 255, 0.75); border-top: 4px solid var(--lime); }
.footer-inner { display: grid; gap: 0.5rem; padding: 1.6rem 0; font-size: 0.88rem; }
.footer-inner p { margin: 0; }
.footer-inner strong { color: #fff; }
.footer-logo { height: 52px; width: auto; margin-bottom: 0.4rem; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 16px 1.2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 0.9rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .split { grid-template-columns: 1fr; }
  .activity-list { grid-template-columns: 1fr; }
  .cards, .values { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 0.2rem; }
  .contact-form { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
