:root {
  --navy: #0c1e3e;
  --navy-2: #13294f;
  --green: #4fa935;
  --green-dark: #3b8527;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #16202e;
  --muted: #5a6577;
  --border: #d9dfe8;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; font-size: 16px; }
a { color: var(--green-dark); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Barre du haut */
.topbar { background: var(--navy); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; }
.brand span { color: var(--green); }
.topbar-note { font-size: .85rem; opacity: .85; text-align: right; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #bfe7ae; background: rgba(79,169,53,.18); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: 2.3rem; line-height: 1.12; margin: 0 0 14px; }
.hero .lead { font-size: 1.15rem; opacity: .92; margin: 0 0 10px; }
.hero .sub { opacity: .8; margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { padding-left: 28px; position: relative; margin: 8px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; border: 0; border-radius: 10px; padding: 14px 22px; font-weight: 700; font-size: 1.02rem; cursor: pointer; }
.btn:hover { background: var(--green-dark); }
.btn-block { display: block; width: 100%; text-align: center; }

/* Formulaire */
.form-card { background: var(--card); color: var(--text); border-radius: var(--radius); padding: 22px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.form-card h2 { font-size: 1.25rem; margin: 0 0 4px; }
.form-card .hint { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: .9rem; cursor: pointer; background: #fafbfc; }
.opts input { accent-color: var(--green); }
.opts label:has(input:checked) { border-color: var(--green); background: #eef8ea; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { margin-bottom: 10px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.field input, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; }
.consent { display: flex; gap: 8px; font-size: .8rem; color: var(--muted); margin: 6px 0 14px; }
.consent input { margin-top: 3px; }
.reassure { font-size: .82rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.form-ok { text-align: center; padding: 20px 6px; }
.form-ok h3 { margin: 6px 0; font-size: 1.3rem; }
.hp { position: absolute; left: -5000px; }

/* Sections */
section.block { padding: 52px 0; }
section.alt { background: #fff; }
h2.title { font-size: 1.7rem; margin: 0 0 12px; line-height: 1.2; }
.intro { color: var(--muted); max-width: 760px; margin: 0 0 26px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-size: .92rem; }
.steps li::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 8px; }
.steps strong { display: block; margin-bottom: 3px; }
.note { background: #fff8e6; border: 1px solid #f0d9a0; border-radius: 10px; padding: 12px 14px; font-size: .92rem; }

/* Simulateur */
.sim { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; }
.sim h2 { margin: 0 0 6px; }
.sim .field label { color: #dbe3f0; }
.sim-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; }
.sim-result { margin-top: 18px; background: rgba(255,255,255,.08); border-radius: 10px; padding: 16px; display: none; }
.sim-result.show { display: block; }
.sim-result h3 { margin: 0 0 6px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; margin-bottom: 8px; }
.badge.ok { background: #d8f2cf; color: #245c16; }
.badge.check { background: #fff0c2; color: #6b4d00; }
.badge.no { background: #f9d6d6; color: #7a1f1f; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Article (pages SEO) */
.article { max-width: 820px; }
.article h2 { font-size: 1.4rem; margin: 34px 0 10px; }
.article p, .article li { color: #2c3748; }
.article ul { padding-left: 20px; }
.cta-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; margin: 34px 0; }
.cta-box p { color: #dbe3f0; margin: 0 0 14px; }
.cta-box h3 { margin: 0 0 6px; font-size: 1.25rem; }
.crumbs { font-size: .85rem; color: #c5d0e3; margin-bottom: 10px; }
.crumbs a { color: #c5d0e3; }
.related { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.related a { display: inline-block; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 12px; text-decoration: none; font-size: .9rem; }

/* Pied de page */
footer { background: var(--navy); color: #c5d0e3; padding: 28px 0; font-size: .85rem; }
footer a { color: #c5d0e3; }
footer .links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Bouton d'appel mobile */
.sticky-cta { display: none; }

@media (max-width: 900px) {
  .hero-grid, .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .sim-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .topbar-note { display: none; }
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
  body { padding-bottom: 76px; }
}
@media (max-width: 520px) {
  .row2, .steps, .sim-grid { grid-template-columns: 1fr; }
}

/* Réalisations */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.gallery figure { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { padding: 10px 14px; font-size: .92rem; color: #444; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
