/* Geonatis — site vitrine. Idée de mise en page : la carte topographique (courbes de niveau, coordonnées Lambert) comme fil conducteur, en-tête téléphone toujours visible. */
:root {
  --ink: #161a14;
  --ink-soft: #4a5145;
  --paper: #f6f7f1;
  --card: #ffffff;
  --green: #4f8a22;
  --green-dark: #2f5a12;
  --lime: #b4c816;
  --sun: #f2bf17;
  --rule: #d8dccd;
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 65ch; display: grid; gap: 1rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.top .logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--lime); }
.call {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.call:hover { background: var(--green-dark); }
.call svg { width: 18px; height: 18px; flex: none; }
.call.big { font-size: 1.15rem; padding: 14px 26px; }
.call.light { background: var(--sun); color: var(--ink); }
.call.light:hover { background: #ffd23f; }

/* Bandeau d'ouverture */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero .contours { position: absolute; inset: 0; opacity: .22; pointer-events: none; }
.hero .contours img { width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; display: grid; gap: 22px; }
.hero .lead { font-size: 1.2rem; max-width: 58ch; color: var(--ink-soft); }
.hero .actions { display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; }
.hero .hours { font-size: .95rem; color: var(--ink-soft); }
.coord {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .02em; color: var(--green-dark);
  display: inline-flex; gap: 14px; flex-wrap: wrap;
  border-left: 3px solid var(--sun); padding-left: 10px;
  font-variant-numeric: tabular-nums;
}
.hero.small .wrap { padding-top: 52px; padding-bottom: 52px; }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 65ch; }
.section-head p { color: var(--ink-soft); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.service {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 24px; display: grid; gap: 10px; align-content: start;
  text-decoration: none; color: var(--ink);
  border-top: 4px solid var(--green);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22, 26, 20, .08); }
.service p { color: var(--ink-soft); font-size: .98rem; }
.service .more { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--green-dark); }
.service:nth-child(2) { border-top-color: var(--lime); }
.service:nth-child(3) { border-top-color: var(--sun); }
.service:nth-child(4) { border-top-color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.step { display: grid; gap: 8px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: .85rem; color: var(--green-dark);
  border-bottom: 1px solid var(--rule); padding-bottom: 8px;
}
.step p { color: var(--ink-soft); font-size: .98rem; }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.aside {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 24px;
  display: grid; gap: 14px;
}
.aside h3 { font-size: 1.05rem; }
.aside ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; color: var(--ink-soft); font-size: .98rem; }

.zone { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.zone span { font-size: .9rem; padding: 4px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }

.faq { display: grid; gap: 10px; max-width: 75ch; }
.faq details { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 20px; }
.faq summary { font-family: var(--font-display); font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Appel à l'action */
.cta { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta .contours { position: absolute; inset: 0; opacity: .12; filter: brightness(0) invert(1); pointer-events: none; }
.cta .contours img { width: 100%; height: 100%; object-fit: cover; }
.cta .wrap { position: relative; display: flex; gap: 24px 48px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta p { color: #c9cfbf; margin-top: 8px; max-width: 52ch; }

/* Pied de page */
footer { padding: 48px 0 32px; font-size: .92rem; color: var(--ink-soft); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
footer h3 { font-size: .95rem; color: var(--ink); margin-bottom: 8px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
footer .legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .82rem; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Barre d'appel mobile */
.mobile-call { display: none; }
@media (max-width: 640px) {
  .top .nav { order: 3; width: 100%; margin-left: 0; padding-bottom: 10px; font-size: .85rem; }
  .top .call { display: none; }
  .mobile-call {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
    justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  }
  body { padding-bottom: 76px; }
  section { padding: 52px 0; }
}
