/* Agrotogo — inspiré Agblenoukou et Fils (vert forêt, or, sérif éditorial). */

:root {
  --ink: #1a2e24;
  --forest: #1a3a2a;
  --forest-deep: #12281d;
  --forest-soft: #2a4f3a;
  --gold: #c5a059;
  --gold-soft: #d4b56f;
  --gold-muted: #a88645;
  --cream: #f5f0e8;
  --cream-dark: #ebe4d8;
  --line: #ddd4c4;
  --muted: #6e7a72;
  --white: #ffffff;
  --ok-bg: #e2efe6; --ok-fg: #1a3a2a;
  --warn-bg: #f7ecd4; --warn-fg: #7a5b14;
  --bad-bg: #f5e4df; --bad-fg: #8a2a1a;
  --info-bg: #e4eef5; --info-fg: #1d4a66;
  --idle-bg: #ebe4d8; --idle-fg: #4a564f;
  --radius: 2px;
  --radius-lg: 4px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Compat pages existantes */
  --field-950: var(--forest-deep);
  --field-900: var(--forest);
  --field-800: var(--forest-soft);
  --field-700: #356348;
  --field-600: #3f7555;
  --field-500: #4d8a66;
  --field-100: #dce8e0;
  --field-50: #eef4f0;
  --leaf-950: var(--forest-deep);
  --leaf-900: var(--forest);
  --leaf-800: var(--forest-soft);
  --leaf-700: #356348;
  --leaf-600: #3f7555;
  --leaf-500: #4d8a66;
  --leaf-200: #dce8e0;
  --leaf-100: #eef4f0;
  --leaf-50: #eef4f0;
  --stone-900: var(--ink);
  --stone-700: #3f4a44;
  --stone-500: var(--muted);
  --stone-300: var(--line);
  --stone-200: var(--line);
  --stone-100: var(--cream-dark);
  --paper: var(--cream);
  --sand-50: var(--cream);
  --sand-100: var(--cream-dark);
  --sand-200: var(--line);
  --sand-500: var(--muted);
  --sand-700: #3f4a44;
  --flare: var(--gold);
  --harvest-500: var(--gold-muted);
  --harvest-400: var(--gold);
  --harvest-100: #f3ead4;
  --radius-sm: var(--radius);
  --radius-md: var(--radius-lg);
  --shadow-soft: none;
  --shadow-lift: none;
}

html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Colonne pleine hauteur : le footer reste en bas même si le contenu est court. */
.ac-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.ac-main {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 4rem;
}

.ac-shell { width: min(1140px, calc(100% - 2.5rem)); margin-inline: auto; }

.ac-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.ac-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.ac-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.ac-h2 em, .ac-display em, .ac-hero__title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.ac-price { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -0.01em; }
.ac-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }

.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.85rem; padding: 0.7rem 1.25rem;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1; transition: background .18s var(--ease), color .18s, border-color .18s;
  cursor: pointer; text-decoration: none;
}
.ac-btn:disabled { opacity: .55; cursor: not-allowed; }
.ac-btn--primary { background: var(--forest); color: var(--cream); }
.ac-btn--primary:hover:not(:disabled) { background: var(--forest-deep); }
.ac-btn--accent { background: var(--gold); color: var(--forest-deep); }
.ac-btn--accent:hover:not(:disabled) { background: var(--gold-soft); }
.ac-btn--ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.ac-btn--ghost:hover:not(:disabled) { border-color: var(--forest); background: var(--white); }
.ac-btn--danger { background: var(--white); color: var(--bad-fg); border-color: #efc3ba; }
.ac-btn--danger:hover:not(:disabled) { background: var(--bad-bg); }
.ac-btn--block { width: 100%; }
.ac-btn--sm { min-height: 2.2rem; padding: 0.45rem 0.9rem; font-size: 0.72rem; }
.ac-btn--on-dark { border-color: rgb(245 240 232 / 0.45); color: var(--cream); background: transparent; }
.ac-btn--on-dark:hover:not(:disabled) { border-color: var(--cream); background: rgb(245 240 232 / 0.08); }

.ac-link { color: var(--forest); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.ac-link:hover { color: var(--forest-deep); }

.ac-label { display: block; font-size: 0.85rem; font-weight: 650; color: #3f4a44; margin-bottom: 0.35rem; }
.ac-input {
  width: 100%; min-height: 2.75rem; padding: 0.6rem 0.8rem;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
  font: inherit; color: var(--ink);
}
.ac-input::placeholder { color: #9aa39c; }
.ac-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(197 160 89 / .2); }
textarea.ac-input { min-height: 5rem; }

.ac-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}
.ac-panel {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.35rem;
}
.ac-panel .ac-eyebrow { color: var(--gold); }
.ac-panel .ac-h2 { color: var(--cream); }
.ac-panel p { color: rgb(245 240 232 / 0.78); }

.ac-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .55rem; border-radius: 2px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  background: var(--idle-bg); color: var(--idle-fg);
}
.ac-badge::before { content: ""; width: .35rem; height: .35rem; border-radius: 999px; background: currentColor; }
.ac-badge--ok { background: var(--ok-bg); color: var(--ok-fg); }
.ac-badge--warn { background: var(--warn-bg); color: var(--warn-fg); }
.ac-badge--bad { background: var(--bad-bg); color: var(--bad-fg); }
.ac-badge--info { background: var(--info-bg); color: var(--info-fg); }

.ac-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .55rem;
  padding: 2.5rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius-lg);
  background: var(--white); color: var(--muted);
}
.ac-state strong { color: var(--ink); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.ac-alert { border-radius: var(--radius); padding: .8rem 1rem; font-size: .92rem; border: 1px solid; }
.ac-alert--error { background: var(--bad-bg); color: var(--bad-fg); border-color: #efc3ba; }
.ac-alert--ok { background: var(--ok-bg); color: var(--ok-fg); border-color: #c5d9cb; }
.ac-skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--cream-dark) 25%, var(--line) 37%, var(--cream-dark) 63%);
  background-size: 400% 100%;
  animation: ac-shimmer 1.4s ease infinite;
}
@keyframes ac-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Header sombre façon Agblenoukou */
.ac-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--forest);
  color: var(--cream);
  border-bottom: 1px solid rgb(197 160 89 / 0.18);
}
.ac-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.ac-brand__name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: 0.02em; line-height: 1; color: var(--cream);
}
.ac-brand__name small {
  display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; color: var(--gold); margin-top: .2rem; text-transform: uppercase;
}
.ac-nav-link {
  white-space: nowrap; color: rgb(245 240 232 / 0.78); font-weight: 600; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: .35rem .1rem; border-bottom: 1px solid transparent;
}
.ac-nav-link:hover, .ac-nav-link.active { color: var(--gold); border-color: var(--gold); }

/* Hero éditorial plein écran */
.ac-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(90vh, 760px);
  color: var(--cream);
  background-color: var(--forest-deep);
  background-image:
    linear-gradient(105deg, rgb(18 40 29 / 0.94) 0%, rgb(26 58 42 / 0.82) 42%, rgb(18 40 29 / 0.45) 100%),
    url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.ac-hero__inner {
  position: relative; z-index: 1;
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 6rem 0 4rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: inherit; gap: 1.15rem;
  max-width: 40rem;
  margin-left: max(1.25rem, calc((100% - 1140px) / 2));
}
.ac-hero__brand-mark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.ac-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7.5vw, 4.75rem);
  letter-spacing: -0.015em;
  line-height: 0.98;
  color: var(--cream);
  margin: 0;
}
.ac-hero__lead {
  max-width: 32rem; font-size: 1.05rem; line-height: 1.55;
  color: rgb(245 240 232 / 0.82); margin: 0;
}
.ac-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }

.ac-search {
  display: flex; gap: .4rem; align-items: center;
  max-width: 34rem; width: 100%;
  padding: .3rem .3rem .3rem .95rem;
  background: var(--cream); border-radius: var(--radius); color: var(--ink);
}
.ac-search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  font: inherit; font-size: 1rem; padding: .55rem 0; color: var(--ink);
}
.ac-search input:focus { outline: none; }
.ac-search input::placeholder { color: #9aa39c; }

.ac-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: -1px;
}
.ac-stats__item {
  background: var(--forest);
  color: var(--cream);
  padding: 1.35rem 1.1rem;
  text-align: center;
}
.ac-stats__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.ac-stats__label {
  margin-top: .45rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(245 240 232 / 0.7);
}

.ac-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink); font-weight: 650; font-size: .88rem; text-decoration: none;
}
.ac-chip:hover { border-color: var(--gold); color: var(--forest); }
.ac-chip-row { display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }

.ac-product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; height: 100%;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.ac-product:hover { border-color: var(--gold); transform: translateY(-2px); }
.ac-product__media {
  position: relative; aspect-ratio: 5 / 4;
  background: linear-gradient(160deg, #dce8e0, #c5d4c8 55%, #aebdb0);
  display: flex; align-items: center; justify-content: center; color: var(--forest);
}
.ac-product__media img { width: 100%; height: 100%; object-fit: cover; }
.ac-product__tag {
  position: absolute; left: .75rem; top: .75rem;
  background: var(--forest); color: var(--cream);
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 2px;
}
.ac-product__featured {
  position: absolute; right: .75rem; top: .75rem;
  background: var(--gold); color: var(--forest-deep);
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 2px;
}
.ac-product__body { padding: 1rem 1.05rem 1.15rem; }
.ac-trust { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: var(--ok-fg); }
.ac-trust--off { color: var(--muted); }

.ac-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; }
.ac-stat__value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }

.ac-steps { display: grid; gap: .1rem; }
.ac-step { display: grid; grid-template-columns: 1.1rem 1fr; gap: .75rem; position: relative; padding-bottom: 1rem; }
.ac-step::before { content: ""; position: absolute; left: .47rem; top: 1.1rem; bottom: 0; width: 1px; background: var(--line); }
.ac-step:last-child::before { display: none; }
.ac-step__dot { width: .95rem; height: .95rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); margin-top: .2rem; }
.ac-step--done .ac-step__dot { background: var(--forest); border-color: var(--forest); }
.ac-step--current .ac-step__dot { border-color: var(--gold); background: var(--gold); }

.ac-reveal { animation: ac-reveal .6s var(--ease) both; }
.ac-reveal--d1 { animation-delay: .08s; }
.ac-reveal--d2 { animation-delay: .16s; }
.ac-reveal--d3 { animation-delay: .24s; }
@keyframes ac-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ac-row { transition: background-color .15s; }
.ac-row:hover { background: var(--cream-dark); }

.ac-tab {
  border-radius: var(--radius); padding: .5rem 1rem; font-weight: 700; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--white); color: #3f4a44; cursor: pointer;
}
.ac-tab[aria-selected="true"], .ac-tab.active { background: var(--forest); border-color: var(--forest); color: var(--cream); }

.ac-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid rgb(197 160 89 / 0.25);
  background: var(--forest);
  color: var(--cream);
}
.ac-footer a { color: var(--gold); }
.ac-footer p { color: rgb(245 240 232 / 0.72); }

.ac-split { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ac-section-head { margin-bottom: 1.5rem; }
.ac-section-head p.ac-lead {
  margin: .65rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ac-split { grid-template-columns: 1fr; }
  .ac-search { flex-direction: column; align-items: stretch; padding: .55rem; }
  .ac-hero__inner { padding-top: 4.5rem; margin-left: 1.25rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
