/* Charte « Paysagiste IA » — Forge Labs. Jeton de couleur unique, mode sombre natif de la marque. */

:root {
  --forest-950: #0b1f16;
  --forest-900: #10291d;
  --forest-800: #173826;
  --forest-700: #1f4a33;
  --moss-500: #6f8f4e;
  --moss-300: #a9c07f;
  --sage-200: #d5dfc4;
  --sand-100: #f4efe4;
  --sand-50: #faf7f0;
  --clay-500: #c8643b;
  --clay-400: #db7b52;
  --sun-400: #e8b04a;
  --ink: #12211a;
  --muted: #5b6b61;
  --line: rgba(18, 33, 26, .12);
  --line-dark: rgba(244, 239, 228, .14);

  --bg: var(--sand-50);
  --surface: #ffffff;
  --text: var(--ink);
  --text-muted: var(--muted);
  --accent: var(--clay-500);
  --accent-hover: var(--clay-400);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 31, 22, .06), 0 12px 32px -12px rgba(11, 31, 22, .22);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font-body); overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; font-variation-settings: "SOFT" 50, "WONK" 0; }
h1 { font-size: clamp(2.4rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--moss-500); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.32rem); color: var(--text-muted); max-width: 46rem; }
.muted { color: var(--text-muted); }
.small { font-size: .86rem; }
em.serif { font-family: var(--font-display); font-style: italic; font-weight: 500; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .8em 1.35em; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-light { background: var(--sand-100); color: var(--forest-900); }
.btn-light:hover { background: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun-400); outline-offset: 2px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 31, 22, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); color: var(--sand-100); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; font: 600 1.06rem/1 var(--font-display); }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.nav a { text-decoration: none; opacity: .86; }
.nav a:hover { opacity: 1; }
.nav .btn { min-height: 40px; padding: .6em 1.1em; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 880px) {
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--forest-950); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line-dark); transform: translateY(-120%); transition: transform .25s ease; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle { display: inline-grid; place-items: center; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-dark { background: var(--forest-900); color: var(--sand-100); }
.section-dark .lead, .section-dark .muted { color: rgba(244, 239, 228, .74); }
.section-dark .eyebrow { color: var(--moss-300); }
.section-sand { background: var(--sand-100); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow); }
.section-dark .card { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); box-shadow: none; }

.tag { display: inline-block; padding: .32em .7em; border-radius: 999px; font: 600 .74rem/1 var(--font-body); letter-spacing: .04em; background: var(--sage-200); color: var(--forest-800); }
.tag-clay { background: #f6dccf; color: #8a3a1a; }
.tag-demo { background: #fff2cf; color: #6b4a00; }

/* Pied */
.site-footer { background: var(--forest-950); color: rgba(244, 239, 228, .72); padding: 56px 0 40px; font-size: .92rem; }
.site-footer a { color: var(--sand-100); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* Modale contact */
dialog.modal { width: min(560px, calc(100vw - 32px)); border: 0; border-radius: var(--radius); padding: 0; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); color: var(--text); background: var(--surface); }
dialog.modal::backdrop { background: rgba(11, 31, 22, .62); backdrop-filter: blur(3px); }
.modal-body { padding: 28px clamp(20px, 4vw, 32px) 24px; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--sand-50); color: var(--text); width: 100%; }
.form textarea { min-height: 96px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }
.form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; font-size: .92rem; }
.form-status.ok { color: var(--forest-700); }
.form-status.err { color: #a12d0a; }

.demo-banner { background: #fff2cf; color: #5a3e00; font-size: .84rem; padding: 8px var(--gutter); text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
