@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/PlusJakartaSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --agx-deep: #002b02;
  --agx-forest: #003501;
  --agx-leaf: #63a800;
  --agx-leaf-soft: #7bc01a;
  --agx-sage: #5cad2e;
  --agx-bg-top: #f9fbf9;
  --agx-bg-mid: #f0f4f0;
  --agx-muted: #5c6860;
  --agx-ink: #0d140f;
  --agx-ring: rgba(99, 168, 0, 0.35);
  --agx-shadow-sm: 0 1px 2px rgba(0, 43, 2, 0.04), 0 2px 8px rgba(0, 43, 2, 0.04);
  --agx-shadow-md: 0 4px 12px rgba(0, 43, 2, 0.06), 0 12px 40px rgba(0, 43, 2, 0.08);
  --agx-shadow-lg: 0 8px 24px rgba(0, 43, 2, 0.08), 0 24px 64px rgba(0, 43, 2, 0.1);
  --agx-shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.9) inset, 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(5rem, 14vw, 6.5rem);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

::selection {
  background: rgba(99, 168, 0, 0.25);
  color: var(--agx-deep);
}

body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--agx-ink);
  background: var(--agx-bg-mid);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/*
  ── Drawer scroll-lock ──────────────────────────────────────────────
  Technique : overflow:hidden sur <html> UNIQUEMENT.
  Le body reste en position normale → aucun layout shift ni décalage.
  --agx-sb-w = largeur scrollbar calculée avant ouverture (desktop) →
  padding-right sur html compense le saut horizontal ~15 px.
  JS : html.classList.add('agx-drawer-lock')  /  remove pour fermer.
*/
:root { --agx-sb-w: 0px; }

html.agx-drawer-lock {
  overflow: hidden;
  /* Compense la disparition de la scrollbar (desktop) pour éviter le saut horizontal */
  padding-right: var(--agx-sb-w);
}


/* Mesh page — léger mouvement */
@keyframes agx-mesh-breathe {
  0%,
  100% {
    background-position:
      0% 50%,
      100% 40%,
      50% 100%,
      50% 100%;
    filter: saturate(100%);
  }
  50% {
    background-position:
      100% 30%,
      0% 70%,
      40% 90%,
      50% 100%;
    filter: saturate(107%);
  }
}

/* Page background : mesh léger très actuel */
.agx-page {
  background-color: #f7faf8;
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(99, 168, 0, 0.08), transparent 52%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(0, 53, 1, 0.05), transparent 50%),
    linear-gradient(180deg, #fafcfb 0%, #f7faf8 50%, #f1f5f3 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: agx-mesh-breathe 42s ease-in-out infinite alternate;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .agx-page {
    animation: none;
  }
}
/* Grain subtil overlay (premium, reste léger) */
.agx-noise-wrap {
  position: relative;
  isolation: isolate;
}
.agx-noise-wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#main-content,
#site-header,
#site-footer {
  position: relative;
  z-index: 2;
}

/* Largeur max pour partials injectés — Tailwind CDN ne voit pas ce HTML avant fetch. */
.agx-shell {
  width: 100%;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
}


/* Séparateur courbe élégante entre zones */
.agx-wave {
  display: block;
  width: 100%;
  height: clamp(52px, 8vw, 88px);
  color: rgba(255, 255, 255, 0.65);
}

/* Padding horizontal harmonisé tous écrans (évite ruptures mobiles) */
.agx-edge {
  padding-left: clamp(1rem, 4.5vw, 3rem);
  padding-right: clamp(1rem, 4.5vw, 3rem);
}

/* Hero — bloc positionné (variante `.agx-hero--cinema` = plein spectacle) */
.agx-hero {
  position: relative;
}

.agx-hero:not(.agx-hero--cinema) {
  overflow: hidden;
  padding-bottom: clamp(3.5rem, 9vw, 6.75rem);
}

.agx-hero:not(.agx-hero--cinema)::after {
  content: "";
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 72%;
  background: radial-gradient(closest-side at 55% -10%, rgba(99, 168, 0, 0.16), transparent 68%);
  pointer-events: none;
}
.agx-hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99, 168, 0, 0.12);
  pointer-events: none;
}
.agx-hero-ring--a {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  right: max(-8%, -4rem);
  top: min(14%, 5rem);
  opacity: 0.55;
  animation: agx-spin-slow 120s linear infinite;
}
.agx-hero-ring--b {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  right: max(8%, 2rem);
  top: max(38%, 8rem);
  opacity: 0.35;
  animation: agx-spin-slow 90s linear infinite reverse;
}

@keyframes agx-spin-slow {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .agx-hero-ring,
  .agx-hero-ring--a,
  .agx-hero-ring--b {
    animation: none;
    opacity: 0.28;
  }
}

/* Réassurance badges type « trust strip » */
.agx-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(0, 43, 2, 0.88);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(0, 53, 1, 0.065);
  box-shadow:
    var(--agx-shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.agx-mini-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--agx-shadow-md);
}

.agx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--agx-forest);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(227, 240, 219, 0.85));
  border: 1px solid rgba(0, 53, 1, 0.08);
  box-shadow: var(--agx-shadow-sm), var(--agx-shadow-glow);
}

.agx-display {
  font-size: clamp(2.5rem, 1rem + 4.85vw, 4.125rem);
  line-height: 1.035;
  font-weight: 800;
  letter-spacing: -0.042em;
  color: var(--agx-deep);
}

.agx-display-gradient {
  background: linear-gradient(115deg, var(--agx-deep) 0%, var(--agx-forest) 35%, var(--agx-leaf) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agx-lead {
  font-size: clamp(1rem, 0.25vw + 0.97rem, 1.1875rem);
  line-height: 1.65;
  color: var(--agx-muted);
  max-width: 36rem;
}

/* Glass & cartes premium */
.agx-glass {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--agx-shadow-md), var(--agx-shadow-glow);
}

@media (prefers-reduced-motion: reduce) {
  .agx-glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.92);
  }
}

.agx-card-bento {
  border-radius: 1.375rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 53, 1, 0.06);
  box-shadow: var(--agx-shadow-sm);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}
.agx-card-bento:hover {
  transform: translateY(-4px);
  box-shadow: var(--agx-shadow-lg);
  border-color: rgba(99, 168, 0, 0.22);
}

/* Grille magazine — desktop */
.agx-bento-root {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .agx-bento-root {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .agx-bento-root {
    gap: 1.25rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(8rem, auto);
  }
  .agx-bento-root .agx-card-bento:nth-child(1) {
    grid-column: span 5;
    grid-row: span 2;
    min-height: 100%;
  }
  .agx-bento-root .agx-card-bento:nth-child(2),
  .agx-bento-root .agx-card-bento:nth-child(3) {
    grid-column: span 7;
  }
}

.agx-marche-focus {
  padding: min(0.2rem, 1vw);
  border-radius: 2rem;
  background: linear-gradient(
    130deg,
    rgba(99, 168, 0, 0.45),
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(0, 53, 1, 0.18)
  );
  box-shadow: 0 24px 80px -28px rgba(0, 43, 2, 0.28);
}

.agx-section-slate {
  background: linear-gradient(188deg, #fbfcfb 0%, #f3f9f5 42%, #e8f2eb 100%);
}

@keyframes agx-dl-shift {
  0% {
    opacity: 0.45;
    transform: scale(1) translate(0, 0);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.07) translate(2%, -2%);
  }
  100% {
    opacity: 0.45;
    transform: scale(1) translate(-2%, 1%);
  }
}

.agx-download-slab > .agx-dl-aurora {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  opacity: 0.4;
  background:
    radial-gradient(circle at 30% 20%, rgba(99, 168, 0, 0.42), transparent 42%),
    radial-gradient(circle at 72% 80%, rgba(123, 192, 26, 0.28), transparent 45%);
  animation: agx-dl-shift 18s ease-in-out infinite alternate;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .agx-download-slab > .agx-dl-aurora {
    animation: none;
    opacity: 0.55;
    transform: none;
  }
}

.agx-card-bento .agx-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #e8f5e0 0%, #d4ecc4 100%);
  color: var(--agx-forest);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

/* Lottie frame */
.agx-lottie-frame {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #f3f8f0 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--agx-shadow-lg), 0 0 0 1px rgba(0, 53, 1, 0.06);
}
.agx-lottie-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 168, 0, 0.35), transparent 40%, transparent 60%, rgba(0, 53, 1, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 90ms;
}
.stagger-2 {
  transition-delay: 160ms;
}
.stagger-3 {
  transition-delay: 230ms;
}
.stagger-4 {
  transition-delay: 300ms;
}

@keyframes agx-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.4deg);
  }
}
.animate-float {
  animation: agx-float 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .animate-float {
    animation: none;
  }
}

.lottie-slot {
  min-height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lottie-slot svg {
  max-width: 100%;
  height: auto !important;
}

/* Boutons */
.btn-agx-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--agx-forest) 0%, #0d4a0f 55%, var(--agx-deep) 100%);
  box-shadow:
    var(--agx-shadow-sm),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 8px 32px rgba(0, 53, 1, 0.28);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}
.btn-agx-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--agx-shadow-md),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 12px 40px rgba(0, 53, 1, 0.32);
}
.btn-agx-primary:focus-visible {
  outline: 2px solid var(--agx-leaf);
  outline-offset: 3px;
}
.btn-agx-primary:active {
  transform: translateY(0);
}

.btn-agx-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.875rem 1.375rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--agx-forest);
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(0, 53, 1, 0.14);
  backdrop-filter: blur(12px);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}
.btn-agx-outline:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(99, 168, 0, 0.35);
}
.btn-agx-outline:focus-visible {
  outline: 2px solid var(--agx-leaf);
  outline-offset: 3px;
}

/* Ripple optionnel léger sur primary */
.agx-tap-feedback {
  position: relative;
  overflow: hidden;
}
.agx-tap-feedback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--tap-x, 50%) var(--tap-y, 50%), rgba(255, 255, 255, 0.28), transparent 55%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.agx-tap-feedback:active::after {
  opacity: 1;
  transform: scale(1.05);
}

/* Section labels */
.agx-section-kicker {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--agx-leaf), var(--agx-leaf-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agx-heading-section {
  font-size: clamp(1.875rem, 1rem + 2.8vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--agx-deep);
}

/* Liste « feature » élégante */
.agx-li-glass {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.125rem 1.25rem;
  border-radius: 1.125rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 12px rgba(0, 53, 1, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.agx-li-glass:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 53, 1, 0.07);
}

/* Bloc téléchargement immersion */
.agx-download-slab {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(99, 168, 0, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(123, 192, 26, 0.15), transparent 50%),
    linear-gradient(135deg, #002203 0%, #003905 42%, #0a2810 100%);
  box-shadow: var(--agx-shadow-lg), 0 0 120px rgba(99, 168, 0, 0.12);
}
.agx-download-slab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  pointer-events: none;
}
.agx-download-slab .agx-phone-device {
  position: relative;
  width: clamp(220px, 36vw, 280px);
  aspect-ratio: 10 / 19;
  margin-inline: auto;
  border-radius: 2.5rem;
  padding: 0.625rem;
  background: linear-gradient(160deg, #1a3320 0%, #0f2114 55%, #0a160d 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 25px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.agx-download-slab .agx-phone-screen {
  border-radius: 2rem;
  height: 100%;
  background: linear-gradient(180deg, #0d1f12 0%, #051208 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Stat pills */
.agx-stat-pill {
  border-radius: 1.125rem;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.25s ease;
}
.agx-stat-pill:hover {
  transform: scale(1.02);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

/* Déco grille fine section */
.agx-section-grid-deco {
  background-image: linear-gradient(rgba(0, 53, 1, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 53, 1, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 92%);
}

/* Navigation header pill */
/* Nav pill : cachée sur mobile, visible à partir de 1024px */
.agx-nav-pill {
  display: none; /* masquée sur mobile — lg:flex de Tailwind ne suffit pas (conflit cascade) */
  align-items: center;
  gap: 0.125rem;
  padding: 0.3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 44px -14px rgba(0, 53, 1, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    var(--agx-shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
@media (min-width: 1024px) {
  .agx-nav-pill { display: inline-flex; }
}

.agx-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(0, 43, 2, 0.78);
  transition:
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.agx-nav-link:hover {
  background: linear-gradient(145deg, rgba(99, 168, 0, 0.16), rgba(99, 168, 0, 0.08));
  color: var(--agx-deep);
  box-shadow: inset 0 0 0 1px rgba(99, 168, 0, 0.12);
}

/* ─── Hero « cinéma » plein écran (contraste editorial) ─── */
.agx-hero--cinema {
  position: relative;
  overflow: clip;
  padding-bottom: clamp(3.25rem, 10vw, 6.5rem);
  background:
    radial-gradient(ellipse 140% 90% at 10% 110%, rgba(99, 168, 0, 0.35), transparent 48%),
    radial-gradient(ellipse 80% 65% at 90% -5%, rgba(123, 192, 26, 0.12), transparent 50%),
    linear-gradient(172deg, #020805 0%, #0a1a0f 36%, #08150d 68%, #07120b 100%);
  color: rgba(255, 255, 255, 0.92);
}

.agx-hero--cinema .agx-hero-ring--a,
.agx-hero--cinema .agx-hero-ring--b {
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 0.7;
}

.agx-hero--cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 65% at 50% 115%, rgba(0, 53, 1, 0.75), transparent 58%),
    radial-gradient(ellipse 60% 55% at 80% 35%, rgba(99, 168, 0, 0.09), transparent 60%);
}

.agx-hero--cinema .agx-blob-a,
.agx-hero--cinema .agx-blob-b {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(92px);
  z-index: 0;
}

.agx-hero--cinema .agx-blob-a {
  top: max(8vh, 2.5rem);
  left: -12%;
  width: min(90vw, 380px);
  height: min(90vw, 380px);
  background: rgba(99, 168, 0, 0.18);
}

.agx-hero--cinema .agx-blob-b {
  bottom: max(4vh, 1rem);
  right: max(-14%, -4rem);
  width: min(85vw, 420px);
  height: min(85vw, 420px);
  background: rgba(0, 43, 2, 0.35);
}

.agx-hero--cinema .agx-eyebrow {
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.16em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 42px -22px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.agx-hero--cinema .agx-mini-pill {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.054);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.agx-hero--cinema .agx-mini-pill:hover {
  background: rgba(255, 255, 255, 0.1);
}

.agx-hero--cinema .agx-display {
  color: rgba(252, 255, 252, 0.98);
}

.agx-hero-gradient-cinema {
  background: linear-gradient(102deg, #e8ffc4 12%, #8fe034 52%, #5cad2e 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agx-hero--cinema .agx-lead {
  color: rgba(255, 255, 255, 0.68);
}

.agx-trust-micro {
  color: rgba(255, 255, 255, 0.54);
}

.btn-agx-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding-inline: clamp(1.5rem, 4vw, 2rem);
  padding-block: 0.9rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.948rem;
  letter-spacing: -0.028em;
  color: #031206;
  background: linear-gradient(175deg, #d5ff73 6%, #8fe035 54%, #5cad2e);
  border: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.42) inset,
    0 18px 55px -12px rgba(99, 168, 0, 0.75),
    0 8px 24px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.btn-agx-lime:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 22px 64px -10px rgba(143, 224, 53, 0.55),
    0 10px 32px rgba(0, 0, 0, 0.5);
}

.btn-agx-lime:focus-visible {
  outline: 3px solid rgba(213, 255, 115, 0.85);
  outline-offset: 3px;
}

.btn-agx-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding-inline: 1.375rem;
  padding-block: 0.875rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.9325rem;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.29);
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-agx-outline-light:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-agx-outline-light:focus-visible {
  outline: 2px solid #8fe035;
  outline-offset: 3px;
}

.agx-lottie-frame--cinema {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.125);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.52) inset,
    0 40px 100px -42px rgba(0, 0, 0, 0.9),
    0 0 80px -28px rgba(99, 168, 0, 0.32);
}

.agx-lottie-frame--cinema::before {
  background: linear-gradient(
    135deg,
    rgba(212, 255, 139, 0.5),
    transparent 38%,
    transparent 62%,
    rgba(0, 43, 2, 0.35)
  );
}

.agx-cards-pro {
  display: grid;
  gap: clamp(1.25rem, 3.5vw, 2rem);
}

@media (min-width: 1024px) {
  .agx-cards-pro {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: stretch;
  }
}

.agx-card-pro {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.625rem, 4vw, 2.375rem);
  border-radius: 1.5625rem;
  background: #ffffff;
  border: 1px solid rgba(0, 53, 1, 0.052);
  box-shadow:
    0 1px 2px rgba(0, 43, 2, 0.04),
    0 26px 64px -32px rgba(0, 43, 2, 0.12);
  overflow: hidden;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s ease,
    border-color 0.3s ease;
}

.agx-card-pro::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #63a800, #7bc01a, #b8fb4f);
  opacity: 0.94;
}

.agx-card-pro:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 168, 0, 0.22);
  box-shadow:
    0 14px 40px rgba(99, 168, 0, 0.12),
    0 56px 100px -48px rgba(0, 43, 2, 0.2);
}

.agx-card-pro__num {
  font-size: 0.659rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(92, 104, 96, 0.92);
}

.agx-strip-title {
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.agx-strip-kicker {
  font-size: 0.66875rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(95deg, #003501 8%, var(--agx-leaf) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agx-strip-heading {
  margin-top: 0.845rem;
  max-width: 17ch;
  font-size: clamp(1.8625rem, 0.9rem + 2.95vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.036em;
  line-height: 1.05;
  color: var(--agx-deep);
}

@media (min-width: 640px) {
  .agx-strip-heading {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agx-card-pro:hover {
    transform: none;
  }
  .btn-agx-lime:hover,
  .btn-agx-outline-light:hover {
    transform: none;
  }
}

/* ─── Écosystème — bandeau confiance ─── */
.agx-eco-strip {
  position: relative;
  margin-top: clamp(0.75rem, 2vw, 1.75rem);
  border-radius: 1.375rem;
  border: 1px solid rgba(0, 53, 1, 0.06);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(243, 248, 240, 0.88) 50%,
    rgba(255, 255, 255, 0.9) 100%
  );
  box-shadow:
    var(--agx-shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}
.agx-eco-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 12% 50%, rgba(99, 168, 0, 0.12), transparent 42%),
    radial-gradient(circle at 92% 30%, rgba(0, 53, 1, 0.06), transparent 40%);
  pointer-events: none;
}

.agx-eco-pills {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.625rem, 2vw, 1rem);
  padding: clamp(1rem, 3vw, 1.375rem) clamp(1rem, 4vw, 2rem);
}

.agx-eco-pills span:not(.agx-eco-label) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--agx-deep);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 53, 1, 0.065);
  box-shadow: 0 4px 16px rgba(0, 43, 2, 0.04);
}

.agx-eco-label {
  font-size: 0.628rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(92, 104, 96, 0.88);
  width: 100%;
  text-align: center;
}
@media (min-width: 640px) {
  .agx-eco-label {
    width: auto;
    text-align: left;
    margin-right: 0.75rem;
  }
  .agx-eco-pills {
    justify-content: flex-start;
  }
}

/* ─── Parcours — une colonne sur mobile (pas de scroll horizontal page) ─── */
.agx-path-section {
  position: relative;
  padding-top: clamp(2.75rem, 7vw, 4.5rem);
  padding-bottom: clamp(2.75rem, 7vw, 4.5rem);
}

.agx-steps-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.875rem, 3vw, 1.125rem);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  .agx-steps-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.375rem);
  }
}

.agx-step-card {
  position: relative;
  padding: clamp(1.375rem, 3.8vw, 1.875rem);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 53, 1, 0.055);
  box-shadow:
    0 1px 2px rgba(0, 43, 2, 0.04),
    0 20px 52px -32px rgba(0, 43, 2, 0.1);
  min-height: clamp(10rem, 38vw, 11.25rem);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.38s ease;
}
.agx-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 168, 0, 0.2);
  box-shadow:
    0 12px 36px rgba(99, 168, 0, 0.1),
    0 40px 80px -42px rgba(0, 43, 2, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .agx-step-card:hover {
    transform: none;
  }
}

.agx-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--agx-deep);
  background: linear-gradient(155deg, #e8f5e0 0%, #cce8bd 100%);
  border: 1px solid rgba(99, 168, 0, 0.18);
}

/* ─── Chiffres & promesse ─── */
.agx-metrics-shell {
  position: relative;
  border-radius: clamp(1.5rem, 4vw, 2.25rem);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(99, 168, 0, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(0, 43, 2, 0.35), transparent 48%),
    linear-gradient(165deg, #031a08 0%, #063014 52%, #0a2416 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    var(--agx-shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.agx-metrics-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black 25%, transparent 95%);
  pointer-events: none;
}

.agx-metric-cell {
  position: relative;
  padding: clamp(1.375rem, 4vw, 2rem);
  text-align: center;
}
.agx-metric-cell + .agx-metric-cell {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) {
  .agx-metric-cell + .agx-metric-cell {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.agx-metric-value {
  font-size: clamp(1.875rem, 1.35rem + 2vw, 2.625rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(102deg, #f4ffe8 18%, #8fe035 55%, #7bc01a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agx-metric-label {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.93);
}

.agx-metric-desc {
  margin-top: 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.54);
}

/* ─── FAQ accessible ─── */
.agx-faq-root {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.agx-faq-item {
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 53, 1, 0.07);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 16px rgba(0, 43, 2, 0.04);
  overflow: clip;
}

.agx-faq-item + .agx-faq-item {
  margin-top: 0.875rem;
}

.agx-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem 1.125rem 1.375rem;
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: -0.024em;
  color: var(--agx-deep);
  transition:
    background 0.22s ease,
    color 0.22s ease;
}

.agx-faq-item summary::-webkit-details-marker {
  display: none;
}

.agx-faq-item summary:hover {
  background: rgba(99, 168, 0, 0.06);
}

.agx-faq-chevron {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.625rem;
  background: rgba(0, 43, 2, 0.04);
  color: var(--agx-forest);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.22s ease;
}

.agx-faq-item[open] .agx-faq-chevron {
  transform: rotate(180deg);
  background: rgba(99, 168, 0, 0.14);
}

.agx-faq-item .agx-faq-panel {
  padding: 0 1.375rem 1.25rem;
  border-top: 1px solid rgba(0, 53, 1, 0.06);
}

.agx-faq-item .agx-faq-panel p {
  padding-top: 1rem;
  font-size: 0.9175rem;
  line-height: 1.7;
  color: var(--agx-muted);
}

/* ─── CTA final avant téléchargement ─── */
.agx-cta-bridge {
  position: relative;
  border-radius: clamp(1.375rem, 3.5vw, 2rem);
  padding: clamp(1.625rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(
    128deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(232, 245, 224, 0.55) 45%,
    rgba(255, 255, 255, 0.92) 100%
  );
  border: 1px solid rgba(99, 168, 0, 0.18);
  box-shadow:
    0 20px 56px -28px rgba(99, 168, 0, 0.18),
    0 8px 32px rgba(0, 43, 2, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.agx-cta-bridge::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: min(70%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(99, 168, 0, 0.12), transparent 62%);
  pointer-events: none;
}

.btn-agx-bridge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding-inline: 1.5rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.9175rem;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--agx-forest) 0%, #0d4a0f 45%, var(--agx-deep) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 12px 36px rgba(0, 53, 1, 0.28);
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.btn-agx-bridge:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 18px 48px rgba(0, 53, 1, 0.32);
}

.btn-agx-bridge:focus-visible {
  outline: 3px solid rgba(99, 168, 0, 0.55);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-agx-bridge:hover {
    transform: none;
  }
}

/* ─── ecom-typewriter.js & ecom-text-rotator.js (AgriForeX) ─── */
.ecom-typewriter {
  display: inline;
  min-height: 1.35em;
  vertical-align: bottom;
}

.ecom-typewriter-text {
  font-weight: inherit;
  color: inherit;
}

.ecom-typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.1em;
  border-radius: 1px;
  background: linear-gradient(180deg, #e8ffc4 0%, #8fe035 55%, #5cad2e 100%);
  animation: agx-tw-cursor-blink 0.95s steps(1, end) infinite;
}

@keyframes agx-tw-cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecom-typewriter-cursor {
    animation: none;
    opacity: 1;
  }
}

.ecom-text-rotator-viewport--js {
  display: block;
  overflow: hidden;
  position: relative;
  min-height: 1.65em;
  line-height: 1.5;
}

.ecom-text-rotator-track {
  will-change: transform;
}

.ecom-text-rotator-line {
  display: block;
  padding: 0.06em 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ecom-text-rotator--stopped .ecom-text-rotator-track {
  display: none !important;
}

.agx-hero-search {
  display: flex;
  align-items: stretch;
  gap: 0.625rem;
  padding: 0.4rem 0.55rem 0.4rem 0.85rem;
  border-radius: 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.18);
}

.agx-hero-search__icon {
  flex-shrink: 0;
  align-self: center;
  font-size: 1.375rem !important;
  color: rgba(191, 242, 101, 0.88);
  opacity: 0.92;
}

/* Une seule ligne visible dans le faux-placeholder (hauteur = 1 ligne, pas la hauteur du champ). */
.agx-hero-search__shell {
  --agx-search-fs: clamp(0.92rem, 0.87rem + 1vw, 1.03rem);
  --agx-search-line-mult: 1.38;
  position: relative;
  flex: 1;
  min-width: 0;
  font-size: var(--agx-search-fs);
}

.agx-hero-search__rotator-slot {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  height: calc(1em * var(--agx-search-line-mult));
  min-height: calc(1em * var(--agx-search-line-mult));
  max-height: calc(1em * var(--agx-search-line-mult));
  overflow: hidden;
  pointer-events: none;
}

.agx-hero-search__rotator.ecom-text-rotator-viewport--js {
  display: block;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  line-height: var(--agx-search-line-mult);
  text-align: left;
  padding: 0 0 0 2px;
  color: rgba(255, 255, 255, 0.38);
  font-size: inherit;
  font-weight: 600;
  box-sizing: border-box;
}

.agx-hero-search .ecom-text-rotator-line {
  padding: 0;
  margin: 0;
  height: calc(1em * var(--agx-search-line-mult));
  line-height: var(--agx-search-line-mult);
  box-sizing: border-box;
}

.agx-hero-search__rotator.ecom-text-rotator--stopped {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.agx-hero-search__input {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 50px;
  padding: 0.35rem 0.25rem 0.35rem 2px;
  border: 0;
  background: transparent;
  color: rgba(252, 255, 252, 0.96);
  font-size: inherit;
  font-weight: 600;
}

.agx-hero-search__input::placeholder {
  color: transparent;
}

.agx-hero-search__input:focus {
  outline: none;
}

.agx-hero-search__input:focus-visible {
  outline: none;
}

/* ─── Menu latéral (<1024px) : tiroir + burger ; noeud #agx-mobile-nav sur body (layout.js). lg = 1024px Tailwind. ─── */
/* ─────────────────────────────────────────────────────────────────
   Mobile drawer (slides from the LEFT) — modern dark glass
   ─────────────────────────────────────────────────────────────────
   Comportement scroll-lock : voir bloc html.agx-drawer-lock plus haut.
   Aucun position:fixed sur body → zéro layout shift à l'ouverture.
─────────────────────────────────────────────────────────────────── */

.agx-drawer {
  visibility: hidden;
  pointer-events: none;
}
.agx-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* Desktop ≥ 1024px : drawer entièrement neutralisé */
@media (min-width: 1024px) {
  #burger-btn { display: none !important; }
  #agx-mobile-nav.agx-drawer,
  #agx-mobile-nav.agx-drawer.is-open {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Mobile / tablette ≤ 1023.98px : layer plein écran */
@media (max-width: 1023.98px) {
  #agx-mobile-nav.agx-drawer {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    z-index: 10001;
    display: block;
    box-sizing: border-box;
    pointer-events: none;
    overflow: visible;
  }
  #agx-mobile-nav.agx-drawer.is-open { pointer-events: auto; }
}

/* Backdrop scrim */
.agx-drawer__scrim {
  position: fixed;
  inset: 0;
  z-index: 218;
  background: rgba(2, 12, 6, 0.62);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  opacity: 0;
  transition: opacity 0.34s cubic-bezier(.22,1,.36,1);
}
.agx-drawer.is-open .agx-drawer__scrim { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .agx-drawer__scrim { transition-duration: 0.01ms; }
}

/* Panel — slides from LEFT */
.agx-drawer__panel {
  position: fixed;
  top: 0; bottom: 0;
  left: 0; right: auto;
  z-index: 220;
  width: min(20rem, calc(100vw - 3rem));
  max-width: 100%;
  margin: 0; padding: 0;
  height: 100%; min-height: 100dvh;
  box-sizing: border-box;

  /* Dark glass agriculture-themed */
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(99, 168, 0, 0.20), transparent 55%),
    radial-gradient(ellipse 50% 30% at 100% 100%, rgba(143, 224, 53, 0.10), transparent 60%),
    linear-gradient(178deg, #04140a 0%, #061d10 50%, #03100a 100%);

  box-shadow:
    16px 0 48px rgba(0, 0, 0, 0.55),
    inset -1px 0 0 rgba(255, 255, 255, 0.06);

  /* Hidden initially — translated OFF-SCREEN to the LEFT */
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.agx-drawer.is-open .agx-drawer__panel {
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .agx-drawer__panel { transition-duration: 0.01ms; }
}

/* Inner safe wrapper */
.agx-drawer__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* height doit être contrainte pour que le child flex puisse scroller */
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
}

/* ── Head ─────────────────────────────────────────────────── */
.agx-drawer__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
.agx-drawer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}
.agx-drawer__brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -4px rgba(99, 168, 0, 0.45),
              inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.agx-drawer__brand-img {
  width: 30px; height: 30px;
  object-fit: contain;
}
.agx-drawer__brand-text {
  display: flex; flex-direction: column;
  min-width: 0; line-height: 1.15;
}
.agx-drawer__brand-title {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #f0fdf4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agx-drawer__brand-sub {
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(143, 224, 53, 0.75);
}
.agx-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}
.agx-drawer__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}
.agx-drawer__close:active { transform: scale(0.94); }
.agx-drawer__close:focus-visible {
  outline: 2px solid #8fe035;
  outline-offset: 2px;
}

/* ── Body / scroll area ───────────────────────────────────── */
.agx-drawer__body {
  flex: 1 1 0;       /* 0 = base size, permet la réduction sous le contenu */
  min-height: 0;     /* OBLIGATOIRE : sans ça, flex child ne peut pas scroller */
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 16px 14px max(20px, env(safe-area-inset-bottom, 20px));
}

.agx-drawer__section {
  margin: 0 6px 10px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}
.agx-drawer__section + .agx-drawer__section { margin-top: 22px; }

.agx-drawer__list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Items */
.agx-drawer__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}
.agx-drawer__item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.07);
}
.agx-drawer__item:active {
  background: rgba(143, 224, 53, 0.10);
  transform: scale(0.985);
}

.agx-drawer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b8fb6a;
  flex-shrink: 0;
}
.agx-drawer__item:hover .agx-drawer__icon {
  background: rgba(143, 224, 53, 0.12);
  border-color: rgba(143, 224, 53, 0.28);
}

.agx-drawer__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.agx-drawer__t {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f0fdf4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agx-drawer__d {
  margin-top: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agx-drawer__chev {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.18s, transform 0.18s;
}
.agx-drawer__item:hover .agx-drawer__chev {
  color: #b8fb6a;
  transform: translateX(2px);
}

/* ── App download card ────────────────────────────────────── */
.agx-drawer__app-card {
  margin: 0 0 8px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(99, 168, 0, 0.18), rgba(99, 168, 0, 0.06));
  border: 1px solid rgba(143, 224, 53, 0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.agx-drawer__app-info {
  display: flex;
  align-items: center;
  gap: 11px;
}
.agx-drawer__app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -3px rgba(0, 0, 0, 0.4);
}
.agx-drawer__app-icon img { width: 28px; height: 28px; object-fit: contain; }
.agx-drawer__app-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f0fdf4;
}
.agx-drawer__app-sub {
  margin: 2px 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.agx-drawer__store-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.agx-drawer__store-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  color: #0d140f;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.12s, box-shadow 0.18s;
  min-height: 44px;
}
.agx-drawer__store-btn--dark {
  background: #000;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
.agx-drawer__store-btn:active { transform: scale(0.97); }
.agx-drawer__store-btn:hover { box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.35); }

.agx-drawer__store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
  flex: 1;
}
.agx-drawer__store-sup {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.agx-drawer__store-name {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Foot ──────────────────────────────────────────────── */
/* Le foot est maintenant dans le body scrollable */
.agx-drawer__foot-inner {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.agx-drawer__foot-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s;
}
.agx-drawer__foot-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #f0fdf4;
}
.agx-drawer__copy {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.28);
}

/* Scrollbar interne discrète */
.agx-drawer__body::-webkit-scrollbar { width: 4px; }
.agx-drawer__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}


/* —— Pages légales & manuel (Lottie + accordéons) —— */
.agx-legal-main {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}
details.agx-legal-details > summary {
  list-style: none;
  cursor: pointer;
}
details.agx-legal-details > summary::-webkit-details-marker {
  display: none;
}
.agx-legal-chevron {
  transition: transform 0.22s ease;
}
details.agx-legal-details[open] .agx-legal-chevron {
  transform: rotate(180deg);
}
.agx-legal-prose {
  font-size: 0.9575rem;
  line-height: 1.65;
  color: rgba(13, 20, 15, 0.78);
}
.agx-legal-prose p {
  margin: 0;
}
.agx-legal-prose p + p {
  margin-top: 0.65rem;
}
.agx-legal-prose ul {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  list-style: disc;
}
.agx-legal-prose ul li {
  margin: 0.25rem 0;
}
@media (min-width: 1024px) {
  .agx-legal-prose {
    font-size: 0.9875rem;
  }
}

/* —— Catalogue accueil (annonces, coops, articles) —— */
.agx-offer-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .agx-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .agx-offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.agx-offer-tile {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 43, 2, 0.08);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease;
}
.agx-offer-tile:hover {
  border-color: rgba(99, 168, 0, 0.4);
  box-shadow: 0 12px 32px -14px rgba(0, 53, 1, 0.22);
  transform: translateY(-2px);
}
.agx-offer-tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e8f2e4, #eef1ec);
}
.agx-offer-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.agx-offer-tile__img--empty {
  display: block;
  width: 100%;
  height: 100%;
}
.agx-offer-tile__video-badge {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(0, 43, 2, 0.72);
  color: #fff;
  pointer-events: none;
}
.agx-offer-tile__video-badge .material-symbols-outlined {
  font-size: 1.35rem;
}
.agx-offer-tile__body {
  padding: 0.75rem 0.85rem 0.9rem;
  min-width: 0;
}
.agx-offer-tile__price {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--agx-deep);
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.agx-offer-tile__negotiable {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(99, 168, 0, 0.18);
  color: #2d5a06;
}
.agx-offer-tile__title {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--agx-deep);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agx-offer-tile__seller {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--agx-muted);
}
.agx-offer-tile__foot {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--agx-muted);
  opacity: 0.92;
}


/* Articles */
.agx-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agx-article-list > li + li {
  margin-top: 0.75rem;
}
.agx-article-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 43, 2, 0.06);
}
.agx-article-row__img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(145deg, #e8f2e4, #f0f3ef);
}
.agx-article-row__img--empty {
  display: inline-block;
}
.agx-article-row__body {
  min-width: 0;
  flex: 1;
}
.agx-article-row__title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--agx-deep);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agx-article-row__meta {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--agx-muted);
}
.agx-article-row__summary {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(92, 104, 96, 0.92);
}

/* ================================================================
   NEW COMPONENTS — offer tiles, coop cards, articles, prices,
   footer store buttons, mobile nav improvements
   ================================================================ */

/* ── Offer grid (listings) ──────────────────────────────────── */
.agx-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px)  { .agx-offer-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 900px)  { .agx-offer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .agx-offer-grid { grid-template-columns: repeat(5, 1fr); } }

.agx-offer-tile {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,43,2,0.08);
  box-shadow: 0 2px 8px -2px rgba(0,43,2,0.06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none;
  color: inherit;
}
.agx-offer-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -8px rgba(0,43,2,0.14);
  border-color: rgba(99,168,0,0.28);
}

/* Media */
.agx-offer-tile__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f4ef;
  flex-shrink: 0;
}
.agx-offer-tile__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.agx-offer-tile:hover .agx-offer-tile__img { transform: scale(1.04); }
.agx-offer-tile__img--ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; background: #eef2ec;
}
.agx-offer-tile__video-badge {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
}
.agx-offer-tile__badges-media {
  position: absolute; top: 8px; left: 8px;
  display: flex; gap: 4px; flex-wrap: wrap;
}

/* Badges */
.agx-offer-tile__badge {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 20px;
}
.agx-offer-tile__badge--type  { background: rgba(0,43,2,0.7);  color: #9edb4a; }
.agx-offer-tile__badge--cond  { background: rgba(0,43,2,0.08); color: #5c6860; }
.agx-offer-tile__badge--neg   { background: rgba(99,168,0,0.15); color: #396200; }
.agx-offer-tile__badge--sold  { background: rgba(180,83,9,0.15); color: #9a4500; }

/* Body */
.agx-offer-tile__body { padding: 10px 11px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }

.agx-offer-tile__price-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.agx-offer-tile__price {
  font-size: 0.95rem; font-weight: 900; color: #003501;
  letter-spacing: -0.02em; line-height: 1.2;
}
.agx-offer-tile__price--sold { color: #8a9490; text-decoration: line-through; }

.agx-offer-tile__title {
  font-size: 0.82rem; font-weight: 700; color: #0d140f;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.agx-offer-tile__seller-row {
  display: flex; align-items: center; gap: 6px; margin-top: 4px;
}
.agx-offer-tile__avatar {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid rgba(0,43,2,0.10); flex-shrink: 0;
}
.agx-offer-tile__avatar--ph {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #63a800, #003501);
  color: #fff; font-size: 0.65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.agx-offer-tile__seller-name {
  font-size: 0.73rem; font-weight: 600; color: #5c6860;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}

.agx-offer-tile__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; margin-top: auto; padding-top: 4px;
}
.agx-offer-tile__loc, .agx-offer-tile__date {
  font-size: 0.7rem; font-weight: 600; color: #8a9490;
  display: flex; align-items: center; gap: 3px;
}
.agx-offer-tile__date { margin-left: auto; }

.agx-offer-tile__stats {
  display: flex; gap: 10px;
  font-size: 0.68rem; font-weight: 600; color: #b0bdb0;
}
.agx-offer-tile__stats span { display: flex; align-items: center; gap: 3px; }

/* ── Section coopératives (cooperatives.html) ───────────────────── */
.agx-coop-section {
  background:
    radial-gradient(ellipse 80% 55% at 20% 100%, rgba(62,120,0,0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(0,80,10,0.18), transparent 55%),
    linear-gradient(188deg, #051408 0%, #081f0a 48%, #051408 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.agx-coop-section__deco {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}
.agx-coop-section__header { max-width: 600px; margin-bottom: 0; }
.agx-coop-section__kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: #7cc800; margin-bottom: 14px;
}
.agx-coop-section__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.15;
  color: #f0fdf0; margin-bottom: 12px;
}
.agx-coop-section__sub {
  font-size: 0.95rem; font-weight: 500; line-height: 1.6;
  color: rgba(255,255,255,0.55); max-width: 520px;
}

/* Skeleton de chargement pour les coops */
.agx-coop-skel-wrap {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}
.agx-coop-skel {
  height: 260px; border-radius: 20px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: agx-coop-skel-shine 1.5s ease infinite;
}
@keyframes agx-coop-skel-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Coop grid ───────────────────────────────────────────────── */
/* auto-fit : les pistes vides se replient → plus d'espace noir vide à côté d'une carte unique */
.agx-coop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* ── Coop card ───────────────────────────────────────────────── */
.agx-coop-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(12,32,14,0.95), rgba(5,18,7,0.98));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 32px -12px rgba(0,0,0,0.5);
  text-decoration: none;
  color: inherit;
  transition: transform .22s cubic-bezier(.22,1,.36,1), border-color .2s, box-shadow .22s;
  width: 100%;
}
.agx-coop-card:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: rgba(99,168,0,0.45);
  box-shadow: 0 20px 48px -16px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,168,0,0.15);
}

/* Cover image */
.agx-coop-card__cover {
  width: 100%; height: 120px; overflow: hidden;
  position: relative; flex-shrink: 0;
  background: linear-gradient(135deg, #0d1f0e, #0a180c);
}
.agx-coop-card__cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.agx-coop-card:hover .agx-coop-card__cover img { transform: scale(1.05); }
.agx-coop-card__cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(5,14,6,0.7) 100%);
  pointer-events: none;
}
.agx-coop-card__cover--ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(99,168,0,0.12), transparent 70%);
}

/* Type + members row — visible SUR le cover grâce à absolute */
.agx-coop-card__top-row {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  pointer-events: none;
}
.agx-coop-card__type-badge {
  font-size: 0.58rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px;
  background: rgba(99,168,0,0.75); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.agx-coop-card__members-badge {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.6rem; font-weight: 700; color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.45); backdrop-filter: blur(8px);
  padding: 3px 8px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Body */
.agx-coop-card__body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}

.agx-coop-card__title {
  font-size: 0.95rem; font-weight: 900; letter-spacing: -0.02em;
  color: #eafbe4; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.agx-coop-card__purpose {
  font-size: 0.78rem; line-height: 1.5; color: rgba(255,255,255,0.52);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}

.agx-coop-card__meta-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px;
  border-top: 1px solid rgba(255,255,255,0.07); padding-top: 10px;
}
.agx-coop-card__loc, .agx-coop-card__members {
  font-size: 0.68rem; font-weight: 600;
  color: rgba(255,255,255,0.42);
  display: flex; align-items: center; gap: 3px;
}

/* Code d'adhésion — tuile en bas de card */
.agx-coop-card__code {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35); margin-top: 2px;
}
.agx-coop-card__code-val {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.2em;
  color: #7cc800;
  background: rgba(99,168,0,0.12); padding: 2px 8px; border-radius: 6px;
  border: 1px solid rgba(99,168,0,0.22);
}

/* Bouton rejoindre */
.agx-coop-card__join-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px;
  padding: 10px 0;
  font-size: 0.8rem; font-weight: 800; color: #0d1a0d;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #9ad65c, #63a800);
  border-radius: 12px;
  box-shadow: 0 4px 14px -4px rgba(99,168,0,0.45);
  transition: transform .14s, box-shadow .14s;
  width: 100%;
}
.agx-coop-card:hover .agx-coop-card__join-btn {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(99,168,0,0.55);
}

/* cooperatives.html – pleine largeur : cap pour qu'une carte seule ne s'étire pas trop */
.agx-coop-section .agx-coop-card { max-width: 380px; }

/* index.html – panel étroit dans la section #cooperative.
   On force une grille à colonnes fixes (responsive) au lieu de auto-fit
   pour éviter qu'une carte unique ne reste minuscule à gauche du panel. */
#cooperative .agx-coop-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  #cooperative .agx-coop-grid { grid-template-columns: repeat(2, 1fr); }
}
#cooperative .agx-coop-card { max-width: none; }
/* ── Article row (improved) ─────────────────────────────────── */
.agx-article-row__img--ph {
  display: flex; align-items: center; justify-content: center;
  background: #eef2ec;
}
.agx-article-row__meta-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px;
}
.agx-article-row__cat {
  font-size: 0.67rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #63a800;
}
.agx-article-row__date {
  font-size: 0.67rem; font-weight: 600; color: #8a9490;
}

/* ── Price list (données réelles listings) ───────────────────── */
.agx-price-list { list-style: none; margin: 0; padding: 0; }
.agx-price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,43,2,0.06);
}
.agx-price-row:last-child { border-bottom: none; }
.agx-price-row__left  { display: flex; align-items: baseline; gap: 5px; min-width: 0; flex: 1; }
.agx-price-row__right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.agx-price-row__name  { font-size: 0.875rem; font-weight: 800; color: #002b02; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agx-price-row__unit  { font-size: 0.72rem; font-weight: 600; color: #8a9490; }
.agx-price-row__val   { font-size: 0.85rem; font-weight: 800; color: #63a800; white-space: nowrap; }
.agx-price-trend {
  font-size: 0.7rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 2px;
  white-space: nowrap;
}
.agx-price-trend--up   { color: #22c55e; }
.agx-price-trend--down { color: #ef4444; }
.agx-price-list__more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 12px;
  font-size: 0.75rem; font-weight: 700;
  color: #63a800;
  text-decoration: none;
  transition: opacity .15s;
}
.agx-price-list__more:hover { opacity: .75; }

/* ── Footer store buttons ───────────────────────────────────── */
.agx-footer-store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .12s;
  flex: 1 1 140px; min-width: 0;
}
.agx-footer-store-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.agx-footer-store-btn--apple { background: rgba(255,255,255,0.05); }
.agx-footer-store-sub  { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.05em; color: rgba(255,255,255,0.5); line-height: 1; margin-bottom: 2px; }
.agx-footer-store-name { display: block; font-size: 0.88rem; font-weight: 800; color: #fff; line-height: 1.2; }

/* Footer links */
.agx-footer-link {
  color: rgba(255,255,255,0.65);
  transition: color .15s;
  text-decoration: none;
}
.agx-footer-link:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   Section captures d'écran app (index.html #apercu-app)
   ═══════════════════════════════════════════════════════════════ */

.agx-screens-section {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #f7faf8 0%, #eaf4e2 40%, #f0f7ec 100%);
  overflow: hidden;
  border-top: 1px solid rgba(0,53,1,0.06);
  border-bottom: 1px solid rgba(0,53,1,0.06);
}

/* ── Header ── */
.agx-screens-header { text-align: center; margin-bottom: 28px; }
.agx-screens-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.6875rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .18em;
  color: #003501;
  margin-bottom: 14px;
}
.agx-screens-title {
  font-size: clamp(1.6rem, 1rem + 3vw, 2.4rem);
  font-weight: 900;
  color: #002b02;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
}
.agx-screens-accent {
  background: linear-gradient(135deg, #63a800 0%, #3a7200 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.agx-screens-sub {
  font-size: 1.0rem; font-weight: 500;
  color: #4e6650; max-width: 480px; margin: 0 auto;
  line-height: 1.6;
}

/* ── Feature chips ── */
.agx-screens-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 36px;
}
.agx-sc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  color: #003501;
  background: rgba(99,168,0,.1);
  border: 1px solid rgba(99,168,0,.22);
}

/* ── Marquee track ── */
.agx-screens-track-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 8px 0 16px;
  /* masques gauche / droite */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.agx-screens-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: agxScreensScroll 32s linear infinite;
}
.agx-screens-track:hover { animation-play-state: paused; }

@keyframes agxScreensScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.agx-screen-slide {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 200px;
  cursor: default;
}

@media (min-width: 480px) { .agx-screen-slide { width: 230px; } }
@media (min-width: 768px) { .agx-screen-slide { width: 260px; } }

.agx-screen-slide img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.18),
    0 2px 8px rgba(0,0,0,0.12);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.agx-screen-slide:hover img {
  transform: translateY(-6px) scale(1.025);
  box-shadow:
    0 22px 56px rgba(0,53,1,0.22),
    0 4px 14px rgba(0,0,0,0.15);
}

.agx-screen-label {
  font-size: 0.78rem; font-weight: 700;
  color: #4e6650;
  letter-spacing: .02em;
}

/* ── CTA inline ── */
.agx-screens-cta {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 36px;
  text-align: center;
}
.agx-screens-cta__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #63a800 0%, #4a8000 100%);
  color: #fff;
  font-size: 0.9375rem; font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(99,168,0,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.agx-screens-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(99,168,0,.5);
}
.agx-screens-cta__sub { font-size: 0.78rem; color: #6a8e6a; font-weight: 500; }

/* Responsive: réduire padding sur mobile */
@media (max-width: 480px) {
  .agx-screens-section { padding: 44px 0 40px; }
  .agx-screen-slide { width: 180px; }
}

