/* ============================================================
   style.css - Site lead-gen local. Leger, mobile-first, rapide.
   A deposer sur le serveur dans : /assets/style.css
   ============================================================ */

:root {
  --accent: #1f6feb;
  --accent-dark: #1858c4;
  --ink: #1a1a1a;
  --muted: #5b6470;
  --bg: #ffffff;
  --soft: #f4f6f9;
  --line: #e2e6ec;
  --ok-bg: #e7f6ec; --ok-ink: #1d7a3a;
  --err-bg: #fdecec; --err-ink: #c0392b;
  --radius: 10px;
  --max: 1000px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; }

main, .hero > *, footer > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
main { padding: 0 16px 48px; }

/* ---- Zone de conversion (au-dessus de la flottaison) ---- */
.hero {
  background: linear-gradient(160deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 32px 16px 36px;
  text-align: center;
}
.hero h1 { font-size: 1.7rem; margin: 0 0 8px; }
.hero .subtitle { font-size: 1.05rem; opacity: .95; margin: 0 auto 20px; max-width: 640px; }

.lead-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  text-align: left;
}
.lead-form input {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}
.lead-form button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: #ff7a18;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.lead-form button:hover { background: #ef6c08; }
.lead-form button:disabled { opacity: .7; cursor: default; }
.form-note { color: var(--muted); font-size: .85rem; text-align: center; margin: 8px 0 0; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }  /* honeypot */

.cta-phone {
  display: inline-block;
  background: #ff7a18;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.arguments {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  font-size: .95rem;
}
.arguments li::before { content: "\2713 "; font-weight: 700; }

/* ---- Messages flash ---- */
.flash { max-width: 480px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 8px; }
.flash-ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash-err { background: var(--err-bg); color: var(--err-ink); }

/* ---- Contenu ---- */
.contenu { padding-top: 28px; }
.contenu h2 { font-size: 1.35rem; }
.contenu p { color: #2a2f37; }

/* ---- Listing entreprises ---- */
.entreprises { margin-top: 32px; }
.entreprises h2 { font-size: 1.3rem; }
.entreprises .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.entreprises .card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--soft);
}
.entreprises .card img { border-radius: 8px; margin-bottom: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.entreprises .card h3 { font-size: 1.02rem; margin: 0 0 4px; }
.entreprises .card p { margin: 2px 0; font-size: .9rem; color: var(--muted); }
.entreprises .card .note { color: #b8860b; font-weight: 600; }

/* ---- Maillage interne ---- */
.maillage { margin-top: 28px; }
.maillage h3 { font-size: 1.05rem; color: var(--muted); margin-bottom: 8px; }
.maillage ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: .9rem;
}
.maillage a { color: var(--accent); text-decoration: none; }
.maillage a:hover { text-decoration: underline; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 20px 16px; color: var(--muted); font-size: .85rem; }

/* ---- Desktop ---- */
@media (min-width: 720px) {
  .hero { padding: 56px 16px 60px; }
  .hero h1 { font-size: 2.3rem; }
}
