/* Electricien Amiens Rapide - design system (mobile-first) */
:root {
  --bg: #0f1620;
  --surface: #ffffff;
  --surface-alt: #f4f6f9;
  --ink: #14202e;
  --ink-soft: #4a5a6b;
  --line: #dde3ea;
  --accent: #f5a524;
  --accent-ink: #1a1204;
  --accent-dark: #d98b06;
  --ok: #0f7a4f;
  --err: #b3261e;
  --radius: 12px;
  --wrap: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0b5ea8; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

/* Header */
.topbar { background: var(--bg); color: #fff; font-size: 15px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.brand span { color: var(--accent); }
.topbar a.phone { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
nav.main { background: var(--surface); border-bottom: 1px solid var(--line); }
nav.main ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
nav.main ul::-webkit-scrollbar { display: none; }
nav.main a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-size: 15px; text-decoration: none; color: var(--ink); background: var(--surface-alt); }
nav.main a[aria-current="page"] { background: var(--bg); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 20px; border-radius: var(--radius); font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-call { background: var(--accent); color: var(--accent-ink); }
.btn-quote { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-quote-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }

/* Hero */
.hero { background: linear-gradient(180deg, #0f1620 0%, #1a2735 100%); color: #fff; padding: 34px 0 40px; }
.hero h1 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
.hero p { color: #d3dce6; margin: 0; font-size: 18px; }
.hero .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.hero .tags li { font-size: 14px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); padding: 5px 10px; border-radius: 999px; color: #e7eef5; }
.hero-phone { display: inline-block; margin-top: 20px; font-size: 26px; font-weight: 800; color: var(--accent); text-decoration: none; }

section { padding: 34px 0; }
section.alt { background: var(--surface-alt); }
h2 { font-size: 24px; line-height: 1.25; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 22px 0 8px; }
p { margin: 0 0 14px; }
ul.list { padding-left: 20px; margin: 0 0 14px; }
ul.list li { margin-bottom: 8px; }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
section.alt .card { background: #fff; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 16px; }
.card a { font-weight: 600; text-decoration: none; }
.card a::after { content: " →"; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

.callout { background: var(--bg); color: #fff; border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.callout h2 { color: #fff; }
.callout p { color: #cdd7e1; }
.callout .phone { display: inline-block; font-size: 28px; font-weight: 800; color: var(--accent); text-decoration: none; margin: 6px 0 4px; }

.nap { line-height: 1.9; }
.nap strong { display: block; }

/* Form */
form.devis { max-width: 620px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 50px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(245,165,36,.45); border-color: var(--accent-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { color: var(--ink-soft); font-size: 15px; }
.form-msg { margin-top: 16px; padding: 14px; border-radius: var(--radius); display: none; font-weight: 600; }
.form-msg.ok { display: block; background: #e6f4ee; color: var(--ok); border: 1px solid #b7e0cd; }
.form-msg.err { display: block; background: #fdeceb; color: var(--err); border: 1px solid #f3c7c4; }

/* Footer */
footer.site { background: var(--bg); color: #cdd7e1; padding: 30px 0 96px; font-size: 16px; }
footer.site h2 { color: #fff; font-size: 18px; }
footer.site a { color: #fff; }
footer.site ul { list-style: none; padding: 0; margin: 0 0 22px; }
footer.site li { margin-bottom: 8px; }
.legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; font-size: 14px; color: #9fb0c0; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 8px; padding: 8px; background: rgba(15,22,32,.96); border-top: 1px solid rgba(255,255,255,.12); }
.sticky-cta .btn { flex: 1; min-height: 50px; font-size: 16px; padding: 10px 8px; }
.sticky-cta .btn-quote { color: #fff; }

@media (min-width: 720px) {
  .hero h1 { font-size: 40px; }
  .hero { padding: 56px 0 60px; }
  h2 { font-size: 29px; }
  .cta-row { flex-direction: row; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; }
  footer.site { padding-bottom: 30px; }
  .sticky-cta { display: none; }
  section { padding: 52px 0; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
