/* Site de présentation du Portail agricole (TAPS).
   Même direction visuelle que le portail : fond gris chaud, tuiles blanches arrondies et ombrées,
   gros chiffres, une tuile sombre mise en avant, police Outfit, accent vert de culture. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --surface: #f2f2f0;
  --raised: #ffffff;
  --sunken: #ebebe8;
  --fg: #1c1c1f;
  --muted: #6b6b74;
  --border: #e4e2dc;
  --primary: #15803d;
  --primary-fg: #f6f5f2;
  --primary-hover: #126c34;
  --primary-soft: #e4f1e8;
  --ink: #1c1c1f;
  --ink-fg: #f2f2f0;
  --ink-muted: #a3a3aa;
  --ink-line: #34343a;
  --sun: #d97706;
  --sun-soft: #fcf0dc;
  --ok: #0e6b41;
  --ok-bg: #e3f3ea;
  --warn: #8a4b05;
  --warn-bg: #fcf0dc;
  --shadow-card: 0 1px 2px rgba(28, 28, 31, .04), 0 12px 28px -16px rgba(28, 28, 31, .16);
  --shadow-float: 0 2px 6px rgba(28, 28, 31, .06), 0 24px 48px -20px rgba(28, 28, 31, .28);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ink-fg); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 3px; border-radius: 6px; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; color: #fff; }
.brand small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; line-height: 1; margin-top: 2px; }
.brand span { line-height: 1.1; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { color: var(--fg); background: var(--sunken); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--raised); box-shadow: var(--shadow-card); cursor: pointer; place-items: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: 0 8px 20px -10px rgba(21, 128, 61, .7); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--raised); color: var(--fg); box-shadow: var(--shadow-card); }
.btn-ghost:hover { background: #fafaf8; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-link { font-weight: 500; font-size: 15px; color: var(--muted); text-decoration: none; padding: 8px 12px; }
.btn-link:hover { color: var(--fg); }

/* ---------- Héros ---------- */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 6px 14px 6px 10px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); margin: 22px 0 20px; font-weight: 650; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.lede { font-size: 20px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { color: var(--primary); flex: none; }

/* Scène du héros : téléphone + tuiles flottantes */
.stage { position: relative; min-height: 620px; display: grid; place-items: center end; padding-right: 36px; }
.stage::before {
  content: ""; position: absolute; inset: 6% 2% 4% 8%; border-radius: 44px;
  background:
    radial-gradient(120% 80% at 80% 10%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%),
    radial-gradient(90% 70% at 10% 90%, color-mix(in srgb, var(--sun) 16%, transparent), transparent 60%),
    var(--sunken);
}
.phone {
  position: relative; width: 300px; border-radius: 42px; padding: 11px;
  background: #121214; box-shadow: var(--shadow-float), inset 0 0 0 1.5px #2e2e33;
}
.phone-screen { border-radius: 32px; overflow: hidden; background: var(--surface); height: 570px; display: flex; flex-direction: column; }
.ps-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 6px; font-size: 12px; font-weight: 600; }
.ps-head { padding: 6px 16px 12px; }
.ps-net { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--warn); background: var(--warn-bg); padding: 4px 10px; border-radius: 999px; }
.ps-net i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ps-title { font-size: 21px; font-weight: 650; margin-top: 10px; letter-spacing: -.02em; }
.ps-sub { font-size: 12.5px; color: var(--muted); }
.ps-body { padding: 0 12px; display: grid; gap: 10px; }
.ps-card { background: var(--raised); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-card); }
.ps-card.dark { background: var(--ink); color: var(--ink-fg); }
.ps-row { display: flex; align-items: center; gap: 10px; }
.ps-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ps-ico.g { background: var(--primary-soft); color: var(--primary); }
.ps-ico.s { background: var(--sun-soft); color: var(--sun); }
.ps-ico.b { background: #e6ebf5; color: #3f5b8c; }
.ps-card b { font-size: 14px; font-weight: 600; display: block; }
.ps-card small { font-size: 12px; color: var(--muted); display: block; }
.ps-card.dark small { color: var(--ink-muted); }
.ps-big { font-size: 28px; font-weight: 650; letter-spacing: -.03em; line-height: 1; margin-top: 6px; }
.ps-big span { font-size: 13px; font-weight: 500; color: var(--ink-muted); margin-left: 4px; }
.ps-bar { height: 6px; border-radius: 999px; background: var(--ink-line); margin-top: 10px; overflow: hidden; }
.ps-bar i { display: block; height: 100%; width: 72%; background: #5fbf8a; border-radius: inherit; }
.ps-pending { white-space: nowrap; flex: none; margin-left: auto; font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-bg); padding: 3px 8px; border-radius: 999px; }
.ps-done { white-space: nowrap; flex: none; margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 3px 8px; border-radius: 999px; }
.ps-btn { margin: auto 12px 14px; background: var(--primary); color: var(--primary-fg); border-radius: 14px; text-align: center; font-weight: 600; font-size: 14px; padding: 13px; }

.float {
  position: absolute; background: var(--raised); border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--shadow-float); font-size: 13px; min-width: 190px;
  animation: drift 7s ease-in-out infinite;
}
.float b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.float small { color: var(--muted); display: block; }
.float .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.float.f1 { top: 12%; left: 4%; }
.float.f3 { top: 45%; left: 0; animation-delay: -1.8s; min-width: 0; display: flex; align-items: center; gap: 10px; }
.float.f2 { bottom: 10%; left: 6%; animation-delay: -3.5s; }
.momo { display: flex; gap: 6px; }
.momo span { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.momo .mtn { background: #ffcc00; color: #1c1c1f; }
.momo .orange { background: #ff7900; color: #fff; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Bandeau de garanties ---------- */
.proof { padding: 18px 0 8px; }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.proof li { background: var(--raised); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.proof li svg { color: var(--primary); flex: none; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.section h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 650; letter-spacing: -.03em; }
.section-head p { font-size: 19px; color: var(--muted); margin-top: 16px; }

/* Activités */
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.act { background: var(--raised); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.act-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.act h3 { font-size: 24px; }
.act .tool { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.act p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.act ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15.5px; }
.act li { display: flex; gap: 10px; align-items: flex-start; }
.act li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-top: 9px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chip { font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--sunken); color: var(--fg); }

/* Fonctionnalités : grille avec une tuile sombre */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--raised); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-card); }
.feat .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.feat h3 { font-size: 20px; }
.feat p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.feat.dark { background: var(--ink); color: var(--ink-fg); grid-row: span 3; display: flex; flex-direction: column; }
.feat.dark .ico { background: #2a2a2f; color: #5fbf8a; }
.feat.dark p { color: var(--ink-muted); }
.feat-big { margin-top: auto; padding-top: 28px; font-size: 44px; font-weight: 650; letter-spacing: -.035em; line-height: 1.02; }
.feat-big span { display: block; color: #5fbf8a; }
.flow { padding-top: 26px; display: grid; gap: 8px; }
.flow div { display: flex; align-items: center; gap: 12px; background: #26262b; border-radius: 12px; padding: 11px 14px; font-size: 14.5px; }
.flow div small { color: var(--ink-muted); margin-left: auto; font-size: 12.5px; }
.flow .arrow { justify-content: center; background: none; padding: 0; color: #5fbf8a; }

/* Chiffres de démonstration */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.num { background: var(--raised); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-card); }
.num .lbl { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.num .big { font-size: clamp(36px, 4vw, 48px); font-weight: 650; letter-spacing: -.035em; margin-top: 12px; line-height: 1; }
.num .big span { font-size: 18px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.num p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.note { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--raised); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); position: relative; }
.step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--ink-fg); display: grid; place-items: center; font-weight: 650; font-size: 18px; margin-bottom: 20px; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* Rôles */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.role { background: var(--raised); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-card); }
.role b { display: block; font-size: 17px; font-weight: 600; }
.role p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; margin-bottom: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--raised); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 600; font-size: 17.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-aside { background: var(--ink); color: var(--ink-fg); border-radius: var(--radius-xl); padding: 36px; position: sticky; top: 92px; }
.contact-aside h2 { font-size: clamp(30px, 3.4vw, 40px); }
.contact-aside > p { color: var(--ink-muted); margin-top: 14px; font-size: 17px; }
.contact-aside ol { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-aside li { display: flex; gap: 14px; }
.contact-aside li span { width: 30px; height: 30px; border-radius: 9px; background: #2a2a2f; color: #5fbf8a; display: grid; place-items: center; font-weight: 650; font-size: 14px; flex: none; }
.contact-aside li p { color: var(--ink-muted); font-size: 15.5px; }
.contact-aside li b { color: var(--ink-fg); font-weight: 600; display: block; }
.contact-mail { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ink-line); font-size: 15px; color: var(--ink-muted); }
.contact-mail a { color: #5fbf8a; font-weight: 600; text-decoration: none; }

form.card { background: var(--raised); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-card); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label, .legend { font-size: 14.5px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--fg); width: 100%;
  background: var(--surface); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px; transition: border-color .15s, background .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: var(--raised); }
.field input[aria-invalid="true"] { border-color: #b42318; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.legend { margin-bottom: 10px; display: block; padding: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 500; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.pick input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.pick input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0 14px; min-height: 65px; }
.consent { font-size: 13.5px; color: var(--muted); margin: 4px 0 20px; }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15.5px; }
.form-msg.ok { display: block; background: var(--ok-bg); color: var(--ok); }
.form-msg.err { display: block; background: #fce7e5; color: #a11f15; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Pied de page */
footer { padding: 40px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 28px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Adaptation ---------- */
@media (max-width: 1060px) {
  .nav { display: none; }
  .top-actions .btn-link { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { min-height: 560px; place-items: center; padding-right: 0; }
  .float.f1 { left: 2%; } .float.f3 { left: 0; } .float.f2 { left: auto; right: 2%; }
  .proof ul { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .feat.dark { grid-row: auto; grid-column: span 2; }
  .roles { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top .wrap { height: 60px; gap: 12px; }
  .top-actions { margin-left: auto; }
  .brand small { display: none; }
  .hero { padding-top: 32px; }
  .lede { font-size: 18px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .stage { min-height: 0; padding: 28px 0 10px; }
  .stage::before { inset: 0 -20px; border-radius: 32px; }
  .phone { width: 300px; }
  .phone-screen { height: 520px; }
  .float, .float.f1, .float.f3 { display: none; }
  .float.f2 { display: block; position: relative; bottom: auto; right: auto; margin-top: -40px; animation: none; }
  .proof ul { grid-template-columns: 1fr; gap: 8px; }
  .proof li { padding: 12px 14px; }
  .section { padding: 68px 0; }
  .acts, .features, .numbers, .steps { grid-template-columns: 1fr; }
  .feat.dark { grid-column: auto; }
  .feat-big { font-size: 34px; }
  .roles { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  form.card, .contact-aside { padding: 24px 20px; border-radius: var(--radius-lg); }
}
