/* ==========================================================================
   AGRINEGO — site vitrine (design repris du prototype « AGRINEGO - presentation »)
   Tout est scopé sous <body class="ag"> et préfixé « ag- » pour ne rien casser ailleurs.
   Seuil mobile : 1100 px (le prototype le calculait en JavaScript).
   ========================================================================== */

:root {
	--ag-green: #3C5C47;
	--ag-green-900: #294032;
	--ag-green-600: #4D7059;
	--ag-sage-200: #C7D6CA;
	--ag-orange: #F6A839;
	--ag-orange-100: #FEF0D9;
	--ag-orange-600: #E0922A;
	--ag-orange-700: #B5760F;
	--ag-orange-800: #8F5D16;
	--ag-cream: #F5EAD8;
	--ag-ink: #1F2F25;
	--ag-text: #3E4F44;
	--ag-muted: #4A5E50;
	--ag-line: #E3EAE4;
	--ag-input-line: #C5D0C8;
	--ag-surface: #F6F8F5;
	--ag-tabs-bg: #EEF2EC;
	--ag-warm: #FDF6E9;
	--ag-error: #A43C1D;
	--ag-font-heading: "Caprasimo", system-ui, sans-serif;
	--ag-font-body: "Figtree", system-ui, sans-serif;
	--ag-shadow-md: 0 3px 10px rgba(46, 43, 37, 0.16);
	--ag-shadow-lg: 0 12px 32px rgba(46, 43, 37, 0.22);
	--ag-gutter: clamp(18px, 4vw, 28px);
}

html { scroll-behavior: smooth; }

/* ── Base ───────────────────────────────────────────────────────────────── */
.ag *, .ag *::before, .ag *::after { box-sizing: border-box; }

.ag {
	margin: 0;
	min-height: 100vh;
	background: #fff;
	color: #201e1d;
	font-family: var(--ag-font-body);
	font-size: 15px;
	line-height: 1.55;
	font-weight: 400;
}

:where(.ag) img { display: block; max-width: 100%; }
:where(.ag) h1, :where(.ag) h2, :where(.ag) h3, :where(.ag) h4 { margin: 0; font-family: var(--ag-font-heading); font-weight: 400; letter-spacing: -0.015em; line-height: 1.12; }
:where(.ag) p { margin: 0; }
:where(.ag) a { color: var(--ag-green); text-underline-offset: 3px; }
:where(.ag) button, :where(.ag) input, :where(.ag) select, :where(.ag) textarea { font-family: inherit; }

.ag [hidden] { display: none !important; }
.ag :focus-visible { outline: 2px solid var(--ag-orange); outline-offset: 2px; }

.ag-ico { display: block; flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Barre d'annonce ────────────────────────────────────────────────────── */
.ag-topbar { display: flex; align-items: center; gap: 16px; padding: 0 clamp(12px, 3vw, 28px); background: var(--ag-green-900); color: var(--ag-cream); font-size: 14px; }
.ag-topbar__ticker { flex: 1 1 auto; min-width: 0; overflow: hidden; padding: 10px 0; }
.ag-topbar__track { display: inline-flex; white-space: nowrap; animation: agMarquee 46s linear infinite; }
.ag-topbar__track:hover, .ag-topbar__track:focus-within { animation-play-state: paused; }
.ag-topbar__item { display: inline-flex; align-items: center; gap: 14px; padding-right: 80px; }
.ag .ag-topbar__link { color: var(--ag-orange); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ag .ag-topbar__link:hover { color: #fff; }
.ag-topbar__lang { flex: none; display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.ag-topbar__lang .ag-ico { width: 16px; height: 16px; color: var(--ag-orange); }
.ag .ag-lang { padding: 8px 2px; color: var(--ag-cream); font-size: 13px; font-weight: 700; text-decoration: none; text-underline-offset: 5px; }
.ag .ag-lang:hover { color: #fff; }
.ag .ag-lang.is-active { color: var(--ag-orange); text-decoration: underline; }
.ag-topbar__lang > span { opacity: 0.5; }

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

/* ── En-tête ────────────────────────────────────────────────────────────── */
.ag-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ag-header__inner { max-width: 1200px; margin: 0 auto; padding: 14px var(--ag-gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ag-logo { display: flex; align-items: center; }
.ag-logo img { height: 42px; width: auto; }
.ag-nav { display: flex; align-items: center; gap: 30px; }
.ag .ag-nav__link, .ag .ag-espace { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 15px; font-weight: 600; text-decoration: none; }
.ag .ag-nav__link { color: var(--ag-ink); }
.ag .ag-espace { color: var(--ag-muted); }
.ag .ag-nav__link:hover, .ag .ag-espace:hover { color: var(--ag-orange-800); }
.ag-nav__link .ag-ico { color: var(--ag-orange-700); }
.ag-header__actions { display: flex; align-items: center; gap: 18px; }
.ag-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 2px solid var(--ag-green); border-radius: 50%; background: transparent; color: var(--ag-green); cursor: pointer; }
.ag-burger .ag-ico { width: 22px; height: 22px; stroke-width: 2.75; }
.ag-mobile { display: flex; flex-direction: column; gap: 4px; padding: 4px var(--ag-gutter) 18px; background: #fff; }
.ag .ag-mobile__link { display: flex; align-items: center; gap: 14px; padding: 12px 4px; color: var(--ag-ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.ag .ag-mobile__link:hover { color: var(--ag-orange-800); }
.ag-mobile__link .ag-ico { width: 22px; height: 22px; color: var(--ag-orange-700); }
.ag .ag-mobile__link--espace { color: var(--ag-muted); }
.ag-mobile__link--espace .ag-ico { color: inherit; }

@media (max-width: 1099.98px) {
	.ag-nav, .ag-espace { display: none !important; }
	.ag-burger { display: flex; }
}

/* ── Sections : gabarit commun ──────────────────────────────────────────── */
.ag-section { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 9vw, 96px) var(--ag-gutter) 24px; scroll-margin-top: 80px; display: flex; flex-direction: column; gap: 36px; }
.ag-section--last { padding-bottom: clamp(56px, 9vw, 96px); }
.ag-head { max-width: 620px; display: flex; flex-direction: column; gap: 12px; }
.ag-head--680 { max-width: 680px; }
.ag-head--640 { max-width: 640px; }
.ag-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ag-orange-700); }
.ag-h2 { font-size: clamp(27px, 5.2vw, 44px); line-height: 1.1; color: var(--ag-ink); text-wrap: balance; }
.ag-lead { font-size: 16.5px; line-height: 1.6; color: var(--ag-text); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.ag-hero { max-width: 1200px; margin: 0 auto; padding: clamp(28px, 6vw, 56px) var(--ag-gutter) 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 56px; align-items: center; }
.ag-hero__text { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.ag-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; background: var(--ag-orange-100); color: var(--ag-orange-800); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ag-badge__dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--ag-orange); }
.ag-h1 { font-size: clamp(32px, 7.4vw, 66px); line-height: 1.06; letter-spacing: -0.01em; color: var(--ag-ink); text-wrap: balance; }
.ag-mark { padding: 0 4px; background: linear-gradient(transparent 64%, var(--ag-orange) 64%); }
.ag-hero__lead { max-width: 54ch; font-size: 18px; line-height: 1.6; color: var(--ag-text); text-wrap: pretty; }
.ag-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.ag .ag-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; background: var(--ag-green); color: var(--ag-cream); font-size: 16px; font-weight: 700; text-decoration: none; }
.ag .ag-btn:hover { background: var(--ag-green-900); color: var(--ag-cream); }
.ag .ag-link-strong { color: var(--ag-ink); font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.ag .ag-link-strong:hover { color: var(--ag-orange-800); }
.ag-hero__art { position: relative; display: flex; justify-content: center; }
.ag-deco { position: absolute; aspect-ratio: 1 / 1; border-radius: 50%; }
.ag-deco--a { top: 4%; right: 2%; width: 34%; background: var(--ag-orange); opacity: 0.35; }
.ag-deco--b { bottom: 2%; left: 0; width: 22%; background: var(--ag-sage-200); }
.ag-hero__circle { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: var(--ag-shadow-lg); }
.ag-hero__circle img { position: absolute; top: -2%; left: -2%; width: 104%; height: 104%; max-width: none; }

/* ── Chiffres clés ──────────────────────────────────────────────────────── */
.ag-stats { max-width: 1200px; margin: 0 auto; padding: 24px var(--ag-gutter) 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; }
.ag-stat { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border: 1.5px solid var(--ag-line); border-radius: 28px; background: #fff; }
.ag-stat__n { font-family: var(--ag-font-heading); font-size: 36px; line-height: 1; color: var(--ag-green); }
.ag-stat__l { font-size: 14px; line-height: 1.4; color: var(--ag-muted); }

/* ── Comment ça marche ──────────────────────────────────────────────────── */
.ag-how__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ag-tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--ag-tabs-bg); }
.ag-tab { padding: 11px 24px; border: 0; border-radius: 999px; background: transparent; color: var(--ag-ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.ag-tab[aria-selected="true"] { background: var(--ag-green); color: var(--ag-cream); }
.ag-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.ag-step { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 32px var(--ag-gutter) 30px; border: 1.5px solid var(--ag-line); border-radius: 36px; background: var(--ag-surface); }
.ag-step__n { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ag-orange); color: var(--ag-ink); font-family: var(--ag-font-heading); font-size: 24px; }
.ag-step__t { font-size: 24px; line-height: 1.15; color: var(--ag-ink); }
.ag-step__b { font-size: 15.5px; line-height: 1.6; color: var(--ag-text); }
.ag-tag { margin-top: auto; padding: 6px 14px; border-radius: 999px; background: var(--ag-sage-200); color: var(--ag-ink); font-size: 13px; font-weight: 700; }

/* ── Services ───────────────────────────────────────────────────────────── */
.ag-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ag-service-main { grid-column: 1 / -1; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: clamp(26px, 5vw, 38px) clamp(22px, 5vw, 36px); border-radius: 40px; background: var(--ag-green); color: var(--ag-cream); }
.ag-service-main__deco { position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--ag-green-600); }
.ag-service-main__top { position: relative; display: flex; align-items: center; gap: 14px; }
.ag-service-main__ico { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ag-orange); color: var(--ag-ink); }
.ag-service-main__ico .ag-ico { width: 28px; height: 28px; }
.ag-pill { padding: 5px 12px; border-radius: 999px; background: var(--ag-cream); color: var(--ag-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ag-service-main__t { position: relative; font-size: 30px; line-height: 1.1; }
.ag-service-main__lead, .ag-service-main__body { position: relative; max-width: 52ch; line-height: 1.6; }
.ag-service-main__lead { font-size: 16.5px; color: #E9EFEA; }
.ag-service-main__body { font-size: 15.5px; color: #D5E0D8; }
.ag-service { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 30px var(--ag-gutter); border: 1.5px solid var(--ag-line); border-radius: 36px; background: #fff; }
.ag-service__ico { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ag-orange-100); color: var(--ag-orange-700); }
.ag-service__ico .ag-ico { width: 26px; height: 26px; }
.ag-service__t { font-size: 22px; line-height: 1.15; color: var(--ag-ink); }
.ag-service__b { font-size: 15px; line-height: 1.6; color: var(--ag-text); }

/* ── Produits ───────────────────────────────────────────────────────────── */
.ag-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.ag-card { display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 22px; border: 1.5px solid var(--ag-line); border-radius: 32px; background: #fff; }
.ag-card__media { position: relative; height: 170px; border-radius: 22px; overflow: hidden; background: var(--ag-surface); }
.ag-card__img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.ag-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 0 10px; }
.ag-card__cat { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ag-orange-700); }
.ag-card__name { font-size: 22px; line-height: 1.15; color: var(--ag-ink); }
.ag-card__desc { font-size: 14px; line-height: 1.5; color: var(--ag-text); }
.ag-card__cta { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 1.5px solid var(--ag-line); text-align: center; }
.ag .ag-card__link { color: var(--ag-green); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.ag .ag-card__link:hover { color: var(--ag-orange-800); }
.ag-card__link span { padding: 0 2px; background: linear-gradient(transparent 66%, rgba(246, 168, 57, 0.6) 66%); }
.ag-card__or { font-size: 13.5px; color: var(--ag-muted); }

/* ── À propos ───────────────────────────────────────────────────────────── */
.ag-about { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 9vw, 96px) var(--ag-gutter) 24px; scroll-margin-top: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 44px 56px; align-items: center; }
.ag-about__text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ag-about__p { max-width: 54ch; font-size: 16.5px; line-height: 1.65; color: var(--ag-text); }
.ag-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 24px; width: 100%; margin-top: 8px; }
.ag-value { display: flex; gap: 14px; align-items: flex-start; }
.ag-value__ico { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ag-orange); color: var(--ag-ink); }
.ag-value__ico .ag-ico { width: 18px; height: 18px; stroke-width: 3; }
.ag-value__t { font-size: 17px; font-weight: 700; color: var(--ag-ink); }
.ag-value__b { font-size: 14.5px; line-height: 1.45; color: var(--ag-muted); }
.ag-about__art { position: relative; }
.ag-about__deco { position: absolute; top: -22px; right: -14px; width: 120px; height: 120px; border-radius: 50%; background: var(--ag-orange); opacity: 0.4; }
.ag-about__frame { position: relative; aspect-ratio: 16 / 11; border-radius: 44px; overflow: hidden; background: var(--ag-warm); box-shadow: var(--ag-shadow-md); }
.ag-about__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Double appel à l'action ────────────────────────────────────────────── */
.ag-split { max-width: 1200px; margin: 0 auto; padding: 72px var(--ag-gutter) 0; }
.ag-split__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.ag-split__card { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: clamp(26px, 5vw, 40px) clamp(22px, 5vw, 38px); border-radius: 44px; }
.ag-split__card--outline { border: 2px solid var(--ag-green); background: #fff; color: var(--ag-ink); }
.ag-split__card--solid { background: var(--ag-green); color: var(--ag-cream); }
.ag-split__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ag-split__card--solid .ag-split__kicker { color: var(--ag-orange); }
.ag-split__t { font-size: 30px; line-height: 1.1; }
.ag-split__p { max-width: 40ch; font-size: 16px; line-height: 1.6; }
.ag-split__card--solid .ag-split__p { color: #E9EFEA; }
.ag .ag-split__cta { margin-top: 6px; padding: 14px 26px; border-radius: 999px; background: var(--ag-orange); color: var(--ag-ink); font-size: 15.5px; font-weight: 700; text-decoration: none; }
.ag .ag-split__cta:hover { background: var(--ag-orange-600); color: var(--ag-ink); }

/* ── Témoignages ────────────────────────────────────────────────────────── */
.ag-testis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ag-testi { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 30px var(--ag-gutter); border: 1.5px solid var(--ag-line); border-radius: 36px; background: var(--ag-surface); }
.ag-testi__q { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ag-ink); text-wrap: pretty; }
.ag-testi__cap { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.ag-avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 50%; font-size: 15px; font-weight: 700; }
.ag-avatar--1 { background: var(--ag-green); color: var(--ag-cream); }
.ag-avatar--2 { background: var(--ag-orange); color: var(--ag-ink); }
.ag-avatar--3 { background: var(--ag-green-900); color: var(--ag-cream); }
.ag-testi__who { font-size: 15.5px; font-weight: 700; color: var(--ag-ink); }
.ag-testi__role { font-size: 13.5px; color: var(--ag-muted); }

/* ── Contact ────────────────────────────────────────────────────────────── */
.ag-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.ag-formcard { padding: clamp(22px, 5vw, 34px) clamp(18px, 5vw, 32px); border: 1.5px solid var(--ag-line); border-radius: 40px; background: #fff; }
.ag-form { display: flex; flex-direction: column; gap: 12px; }
.ag-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.ag-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ag-ink); }
.ag-input { width: 100%; padding: 8px 12px; border: 1.5px solid var(--ag-input-line); border-radius: 8px; background: #fff; color: var(--ag-ink); font-size: 14.5px; font-weight: 400; }
.ag-input:focus-visible { outline: 2px solid var(--ag-green); outline-offset: 2px; }
.ag-input[aria-invalid="true"] { border-color: var(--ag-error); }
textarea.ag-input { resize: vertical; }
.ag-field__err { font-size: 13px; font-weight: 600; color: var(--ag-error); }
.ag-turnstile { min-height: 65px; }
.ag-submit { align-self: flex-start; padding: 11px 26px; border: 0; border-radius: 999px; background: var(--ag-green); color: var(--ag-cream); font-size: 15px; font-weight: 700; cursor: pointer; }
.ag-submit:hover { background: var(--ag-green-900); }
.ag-submit:disabled { opacity: 0.6; cursor: progress; }
.ag-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.ag-banner { margin-bottom: 16px; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; font-weight: 600; }
.ag-banner--error { border: 1.5px solid #F2C9BC; background: #FCEDE8; color: var(--ag-error); }
.ag-thanks { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 12px 0; }
.ag-thanks__ico { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ag-orange); color: var(--ag-ink); }
.ag-thanks__ico .ag-ico { width: 32px; height: 32px; stroke-width: 3; }
.ag-thanks__t { font-size: 28px; line-height: 1.15; color: var(--ag-ink); }
.ag-thanks__p { font-size: 16px; line-height: 1.6; color: var(--ag-text); }
.ag .ag-btn-outline { display: inline-block; padding: 11px 24px; border: 2px solid var(--ag-green); border-radius: 999px; background: transparent; color: var(--ag-green); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ag .ag-btn-outline:hover { background: var(--ag-green); color: var(--ag-cream); }
.ag-coords { display: flex; flex-direction: column; gap: 22px; align-self: start; padding: clamp(24px, 5vw, 34px) clamp(20px, 5vw, 32px); border-radius: 40px; background: var(--ag-green); color: var(--ag-cream); }
.ag-coords__t { font-size: 26px; line-height: 1.15; }
.ag-coords__item { display: flex; gap: 14px; align-items: flex-start; }
.ag-coords__ico { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--ag-orange); }
.ag-coords__ico .ag-ico { width: 22px; height: 22px; }
.ag-coords__text { font-size: 15.5px; line-height: 1.5; }
.ag .ag-coords__text a { color: var(--ag-cream); }
.ag .ag-coords__text a:hover { color: var(--ag-orange); }
.ag-social { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.ag .ag-social__link { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ag-cream); color: var(--ag-ink); text-decoration: none; }
.ag .ag-social__link:hover { background: var(--ag-orange); color: var(--ag-ink); }
.ag-social__link .ag-ico { width: 22px; height: 22px; }

/* ── Pied de page ───────────────────────────────────────────────────────── */
.ag-footer { background: var(--ag-green-900); color: #CFD9D0; }
/* 170 px (150 px dans le prototype) : l'adresse support@agrinego.com + son icône ne tient pas dans 150 px et débordait sur mobile */
.ag-footer__grid { max-width: 1200px; margin: 0 auto; padding: 56px var(--ag-gutter) 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 32px 24px; }
.ag-footer__brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ag-footer__brand img { height: 44px; width: auto; }
.ag-footer__tag { max-width: 30ch; font-size: 14.5px; line-height: 1.55; color: #B7C6BA; }
.ag-footer__col { display: flex; flex-direction: column; gap: 10px; }
.ag-footer__title { margin-bottom: 4px; font-size: 14px; font-weight: 700; color: #fff; }
.ag .ag-footer__link { display: inline-flex; align-items: center; gap: 10px; color: #B7C6BA; font-size: 14.5px; text-decoration: none; }
.ag .ag-footer__link:hover { color: var(--ag-orange); }
.ag-footer__link .ag-ico { width: 17px; height: 17px; color: var(--ag-orange); }
.ag-footer__legal { max-width: 1200px; margin: 0 auto; padding: 22px var(--ag-gutter) 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13.5px; color: #A3B5A7; }
.ag-footer__legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ag .ag-footer__legal a { color: #A3B5A7; }
.ag .ag-footer__legal a:hover { color: var(--ag-orange); }

/* ── Bouton « remonter » ────────────────────────────────────────────────── */
.ag-totop { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 30; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 2px solid var(--ag-orange); border-radius: 50%; background: var(--ag-green); color: var(--ag-orange); box-shadow: var(--ag-shadow-md); cursor: pointer; }
.ag-totop:hover { background: var(--ag-orange); color: var(--ag-ink); }
.ag-totop .ag-ico { width: 24px; height: 24px; stroke-width: 3; }

/* ── Page d'erreur ──────────────────────────────────────────────────────── */
.ag-error { max-width: 640px; margin: 0 auto; padding: clamp(56px, 9vw, 96px) var(--ag-gutter); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ag-error__ref { font-size: 13.5px; color: var(--ag-muted); }

/* ── Mouvement réduit ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ag-topbar__track { animation: none; }
}
