/* =========================================================
   ANEP Company — feuille de style
   Couleurs reprises du logo : vert, orange mangue, brun.
   ========================================================= */
:root {
  --green: #4f8a1c;
  --green-dark: #2f5a12;
  --green-deep: #1f3d0c;
  --orange: #f18a1b;
  --orange-soft: #fdebd3;
  --brown: #7a2e1c;
  --cream: #fbf7ef;
  --tint: #f3efe3;
  --ink: #1d2417;
  --muted: #5c6455;
  --line: #e4ddcc;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 40px -20px rgba(31, 61, 12, .35);
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; color: var(--green-deep); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .8em;
}
.eyebrow--light { color: #ffc27a; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9em 1.6em;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font: 600 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--green-dark); }
.btn--ghost:hover { background: var(--green); color: var(--white); }
.btn--small { padding: .55em 1.2em; font-size: .92rem; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.header__logo img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:not(.btn):hover { color: var(--green); }
.nav .btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-deep); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__badges li {
  font-size: .85rem; font-weight: 600; color: var(--brown);
  background: var(--orange-soft); padding: .35em .9em; border-radius: 999px;
}
.hero__media { position: relative; padding: 0 0 48px 48px; }
.hero__img { border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.hero__img--main { width: 100%; aspect-ratio: 1 / 1; }
.hero__img--small {
  position: absolute; left: 0; bottom: 0;
  width: 42%; aspect-ratio: 3 / 4;
  border: 6px solid var(--cream);
}
.hero__card {
  position: absolute; top: 24px; right: -8px;
  background: var(--white); border-radius: 14px; padding: 12px 18px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.2;
}
.hero__card strong { font-family: var(--font-title); font-size: 1.5rem; color: var(--orange); }
.hero__card span { font-size: .85rem; color: var(--muted); }

/* ---------- Chiffres ---------- */
.stats { background: var(--green-deep); color: var(--white); padding: 36px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats strong { display: block; font-family: var(--font-title); font-size: 2.1rem; color: #ffc27a; }
.stats span { font-size: .92rem; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--tint); }
.section--green { background: var(--green-deep); color: #e8f0de; }
.section--green h2, .section--green h3 { color: var(--white); }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head p:last-child { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__text p { color: inherit; }
.section:not(.section--green) .split__text p { color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Produits ---------- */
.subhead { font-family: var(--font-body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); margin: 0 0 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.cards--dried { margin-bottom: 0; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card__icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; }
.card__icon svg { width: 36px; height: 36px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card--mango .card__icon { background: var(--orange-soft); } .card--mango svg { stroke: var(--orange); }
.card--pineapple .card__icon { background: #fff4c7; } .card--pineapple svg { stroke: #c79400; }
.card--avocado .card__icon { background: #e4f0d6; } .card--avocado svg { stroke: var(--green); }
.card--small { padding: 22px 24px; border-left: 4px solid var(--orange); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { padding: 28px 24px; border-top: 3px solid var(--green); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); }
.service__num { font-family: var(--font-title); font-size: 1.1rem; color: var(--orange); display: block; margin-bottom: 14px; }
.service p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Engagements ---------- */
.pillars { display: grid; gap: 18px; margin-top: 28px; }
.pillars > div { padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.pillars h3 { font-size: 1.1rem; margin-bottom: .25em; }
.pillars p { margin: 0; font-size: .95rem; opacity: .85; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; }
.gallery__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item:nth-child(2) { grid-column: 2; }
.gallery__item:nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  color: var(--white); font-size: .92rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.contact__label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { padding: .5em 1.1em; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 500; font-size: .93rem; }
.socials a:hover { border-color: var(--green); }

.form { background: var(--white); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem var(--font-body); color: var(--ink);
  padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px; background: var(--cream);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; background: var(--white); }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--green); }
.form__status.is-error { color: #b3261e; }

/* ---------- Pied de page ---------- */
.footer { background: var(--green-deep); color: #cfdcc0; padding: 36px 0; font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer strong { color: var(--white); }

/* ---------- Animation d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablette ---------- */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .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); }
  .header__logo img { height: 44px; }

  .hero__inner, .split, .contact { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .hero__media { padding: 0 0 32px 32px; max-width: 520px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .gallery__item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery__item--tall { grid-row: span 2 !important; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__card { right: 0; top: 12px; }
  .stats strong { font-size: 1.7rem; }
}
