@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;
}

/* Menu latéral ouvert : corps ancré gauche/droite (pas 100vw) ; html sans overflow-x clip qui couperait les ombres fixed. */
html.agx-drawer-lock {
  overflow-y: hidden;
  touch-action: none;
}

body.agx-nav-open {
  position: fixed;
  inset-inline: 0;
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* 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 */
.agx-nav-pill {
  display: inline-flex;
  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);
}

.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. ─── */
.agx-mobile-nav {
  visibility: hidden;
  pointer-events: none;
}

.agx-mobile-nav.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* Desktop/tablette paysage large : fermeture forcée du tiroir */
@media (min-width: 1024px) {
  #burger-btn {
    display: none !important;
  }

  #agx-mobile-nav.agx-mobile-nav,
  #agx-mobile-nav.agx-mobile-nav.is-open {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: static !important;
    inset: auto !important;
  }

  #agx-mobile-nav .agx-mobile-nav__backdrop {
    opacity: 0 !important;
  }

  #agx-mobile-nav .agx-mobile-nav__panel {
    transform: translate3d(100%, 0, 0) !important;
    pointer-events: none !important;
  }
}

/* Calque fullscreen : éviter 100vw (scrollbar classique ⇒ décalage / filet). */
@media (max-width: 1023.98px) {
  #agx-mobile-nav.agx-mobile-nav {
    position: fixed;
    inset: 0;
    width: auto;
    max-width: none;
    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-mobile-nav.is-open {
    pointer-events: auto;
  }

  #agx-mobile-nav .agx-mobile-nav__backdrop {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
  }
}

.agx-mobile-nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 218;
  background: rgba(1, 8, 4, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.agx-mobile-nav.is-open .agx-mobile-nav__backdrop {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .agx-mobile-nav__backdrop {
    transition-duration: 0.01ms;
  }
}

.agx-mobile-nav__panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: auto;
  right: 0;
  z-index: 220;
  /* Containing block viewport : 100% suit la largeur utile, pas 100vw + scrollbar */
  width: min(22rem, 100%);
  max-width: 100%;
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 90% 55% at 100% 0%, rgba(99, 168, 0, 0.18), transparent 52%),
    linear-gradient(188deg, #030d07 0%, #062214 48%, #04140c 100%);
  /* Étend le fond vert jusqu’à bord fenêtre sous-pixel / safe-area gap */
  box-shadow:
    -16px 0 48px rgba(0, 0, 0, 0.38),
    48px 0 0 0 #061a0e;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.agx-mobile-nav.is-open .agx-mobile-nav__panel {
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .agx-mobile-nav__panel {
    transition-duration: 0.01ms;
  }
}

.agx-mobile-nav__safe {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.agx-mobile-nav__toolbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem 1rem;
}

.agx-mobile-nav__brand-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.agx-mobile-nav__brand-badge {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.95rem;
  background: #fff;
  box-shadow:
    0 6px 20px -6px rgba(0, 53, 1, 0.16),
    0 0 0 1px rgba(0, 43, 2, 0.06);
}

.agx-mobile-nav__brand-img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.agx-mobile-nav__brand-text {
  min-width: 0;
  line-height: 1.2;
}

.agx-mobile-nav__brand-title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f4fff0;
}

.agx-mobile-nav__brand-sub {
  margin: 0.15rem 0 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.52);
}

.agx-mobile-nav__close {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.2s ease;
}

.agx-mobile-nav__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.agx-mobile-nav__close:focus-visible {
  outline: 2px solid #8fe035;
  outline-offset: 2px;
}

.agx-mobile-nav__icon-xl {
  width: 1.35rem;
  height: 1.35rem;
}

.agx-mobile-nav__scroll {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 0.5rem 1rem 2rem;
}

.agx-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.agx-mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 1.015rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.agx-mobile-nav__link--home {
  font-weight: 800;
  color: #eafbe4;
}

.agx-mobile-nav__icon-li {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
}

.agx-mobile-nav__icon-li--accent {
  color: #b8fb6a;
}

.agx-mobile-nav__link:active {
  background: rgba(255, 255, 255, 0.08);
}

.agx-mobile-nav__footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1rem max(1.25rem, env(safe-area-inset-bottom));
}

.agx-mobile-nav__cta {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  border-radius: 1rem;
  padding: 0 1.5rem;
  font-size: 0.9575rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #071208;
  text-decoration: none;
  background: linear-gradient(165deg, #d5ff73 0%, #8fe035 52%, #63a800 100%);
  box-shadow:
    0 14px 40px -14px rgba(99, 168, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
  transition: opacity 0.2s ease;
}

.agx-mobile-nav__cta:active {
  opacity: 0.92;
}

/* —— 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;
}

/* Coopératives (liste compacte) */
.agx-coop-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .agx-coop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.agx-coop-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.agx-coop-card:hover {
  border-color: rgba(143, 224, 53, 0.45);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.35);
}
.agx-coop-card__img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
}
.agx-coop-card__img--empty {
  display: inline-block;
}
.agx-coop-card__body {
  min-width: 0;
  flex: 1;
}
.agx-coop-card__title {
  font-size: 0.875rem;
  font-weight: 800;
  color: #f3faf3;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agx-coop-card__meta {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.66);
}

/* 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);
}
