/* TerraCity — vitrine. Sans dépendance externe : aucune police ni script tiers (pas de cookies, pas de traceurs). */
:root {
  --green: #549038;
  --green-dark: #3f7a2b;
  --green-deep: #1a3a10;
  --tint: #e8f0e5;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #1c2a18;
  --muted: #55624f;
  --line: #dfe7dc;
  --warn: #e0a526;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(26, 58, 16, .06), 0 8px 24px rgba(26, 58, 16, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a0c;
    --surface: #16240f;
    --text: #edf3ea;
    --muted: #aebba8;
    --line: #2a3d21;
    --tint: #1b2c14;
    --green-dark: #7fc25e;
    --green-deep: #dff0d6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: var(--green-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .6rem; color: var(--green-deep); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--green-dark); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); }
.center { text-align: center; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: .75rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--green-dark); text-decoration: none; margin-right: auto; }
.brand img { border-radius: 50%; background: #fff; }
nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
nav a { display: block; padding: .5rem .65rem; text-decoration: none; color: var(--text); border-radius: 999px; font-size: .93rem; white-space: nowrap; }
nav a:hover { background: var(--tint); }
.tools { display: flex; align-items: center; gap: .75rem; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang a { padding: .3rem .65rem; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.lang a[aria-current] { background: var(--green-dark); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; cursor: pointer; position: relative; }
.burger i, .burger i::before, .burger i::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; }
.burger i { top: 21px; } .burger i::before { top: -7px; left: 0; right: 0; } .burger i::after { top: 7px; left: 0; right: 0; }
@media (max-width: 900px) {
  .burger { display: inline-block; }
  nav { order: 5; width: 100%; display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: .5rem 0 1rem; }
  .tools .btn { display: none; }
}

/* Boutons */
.btn { display: inline-block; padding: .85rem 1.4rem; border-radius: 999px; background: var(--green-dark); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--green-dark); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.small { padding: .5rem 1rem; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--green-dark); }
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.7); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.1rem 0 0; }
.center .cta { justify-content: center; }
/* Téléphone : les deux boutons restent sur la même ligne, à largeur égale */
@media (max-width: 520px) {
  .cta { flex-wrap: nowrap; gap: .6rem; }
  .cta .btn { flex: 1 1 0; min-width: 0; text-align: center; padding: .8rem .4rem; font-size: .88rem; white-space: nowrap; }
}
@media (max-width: 330px) { .cta { flex-wrap: wrap; } .cta .btn { flex-basis: 100%; } }

/* Hero */
.hero { padding: clamp(1rem, 2.5vw, 1.75rem) 0 clamp(1.25rem, 3vw, 2.25rem); background: radial-gradient(1200px 500px at 85% -10%, var(--tint), transparent 60%); }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2rem; } }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); background: var(--tint); padding: .35rem .8rem; border-radius: 999px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hint { font-size: .9rem; color: var(--muted); }

/* Téléphones : captures réelles de l'application */
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: .25rem 0 .75rem; }
.hero-phones::before { content: ""; position: absolute; inset: 4% 2% 0; background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--green) 45%, transparent), transparent 72%); filter: blur(34px); z-index: 0; }
.phone-xl { position: relative; z-index: 1; border-radius: 12% / 5.4%; padding: 9px; background: linear-gradient(150deg, #33452c, #0d150a); box-shadow: 0 40px 70px rgba(26, 58, 16, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.phone-xl img { display: block; width: 100%; height: auto; border-radius: 9.5% / 4.3%; }
.phone-xl::after { content: ""; position: absolute; top: 21px; left: 50%; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: #050805; box-shadow: 0 0 0 2px rgba(255, 255, 255, .06); }
.phone-xl.nohole::after { display: none; }
.hero-phones.trio { align-items: center; }
.hero-phones .left { width: 31%; transform: rotate(-6deg); margin-right: -4%; margin-top: 3rem; }
.hero-phones .center { width: 40%; position: relative; z-index: 2; }
.hero-phones .right { width: 31%; transform: rotate(6deg); margin-left: -4%; margin-top: 3rem; }
.social-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .social-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); align-items: start; } .social-shot { position: sticky; top: 96px; } }
.social-shot { margin: 0; }
.social .grid2 { margin-top: 0; }
.social .wrap + .wrap { margin-top: 1rem; }
.social-shot .phone-xl { width: min(290px, 100%); margin: 0 auto; }
.grid2 { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1rem; }
.pilot-shot { margin: 0; }
.pilot-shot img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Section sociale mise en avant */
.sec.social { background: linear-gradient(180deg, var(--tint), transparent 70%); }
.sec.social .card { border-color: color-mix(in srgb, var(--green) 30%, var(--line)); }

/* Sections */
.sec { padding: clamp(1.5rem, 3.5vw, 2.5rem) 0; }
.sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sub { color: var(--muted); font-size: 1.1rem; }
.grid3 { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.sec.alt .card { background: var(--bg); box-shadow: none; }
.card p { margin: 0; color: var(--muted); }
.ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--tint); stroke: var(--green-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .6rem; }
.statement { margin-top: 1.25rem; padding: 1rem 1.3rem; border-left: 5px solid var(--green); background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.1rem; color: var(--green-deep); }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps p { margin: 0; color: var(--muted); }
.num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--green-dark); color: #fff; display: grid; place-items: center; font-weight: 800; }
.two { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .two { grid-template-columns: 1.2fr 1fr; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0; }
.chips li { padding: .4rem .9rem; background: var(--tint); border-radius: 999px; font-weight: 600; color: var(--green-deep); }
.statement.side { margin: 0; }
.ticks { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.ticks li { padding-left: 2rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--green-dark); }
.ticks li::after { content: ""; position: absolute; left: .42rem; top: .55rem; width: .35rem; height: .6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg); }
.link { font-weight: 700; }
.contact { background: linear-gradient(135deg, #3f7a2b, #1f4a14); color: #fff; }
.contact h2, .contact .sub { color: #fff; }
.contact .sub { margin-inline: auto; opacity: .92; }
.contact .btn { background: #fff; color: #1f4a14; border-color: #fff; }
.contact .btn.ghost.light { background: transparent; color: #fff; }
.mail a { color: #fff; }

/* Pages légales */
.doc { padding: 2.5rem 0 4rem; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.doc section { margin-top: 2rem; }
.doc h2 { font-size: 1.3rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .4rem; }
.meta { color: var(--muted); font-size: .9rem; }
.todo { background: #fff3c4; color: #5a4300; padding: 0 .35rem; border-radius: 4px; font-weight: 600; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 2rem 0; background: var(--surface); }
.foot .wrap { display: grid; gap: 1rem; }
.foot-brand { display: flex; align-items: center; gap: .8rem; }
.foot-brand img { border-radius: 50%; background: #fff; }
.foot-brand span { display: block; color: var(--muted); font-size: .9rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0; margin: 0; }
.foot-links a { color: var(--text); }
.foot-note { color: var(--muted); font-size: .85rem; margin: 0; }
