/* ============================================================
   style.css - Site lead-gen local. Leger, mobile-first, rapide.
   ============================================================ */

:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #dbeafe;
  --dark: #0a1628;
  --ink: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --ok-bg: #dcfce7; --ok-ink: #166534;
  --err-bg: #fee2e2; --err-ink: #991b1b;
  --cta: #ea580c;
  --cta-hover: #c2410c;
  --radius: 12px;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
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.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }

/* ---- Site header ---- */
.site-header {
  background: var(--dark);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.site-header__inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.header-cta {
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s;
}
.header-cta:hover { background: var(--cta-hover); color: #fff; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(155deg, #0a1628 0%, #0f2d5a 55%, #1a4db3 100%);
  color: #fff;
  padding: 28px 16px 36px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero__inner {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.hero h1 {
  font-size: 1.65rem;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
  letter-spacing: -.01em;
  color: #fff;
}
.hero .subtitle {
  font-size: 1rem;
  opacity: .9;
  margin: 0 0 20px;
  color: #fff;
}

/* ---- Lead form ---- */
.lead-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  text-align: left;
}
.lead-form input {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.lead-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.lead-form button {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 8px;
  background: var(--cta);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
  letter-spacing: .02em;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(234,88,12,.4);
}
.lead-form button:hover {
  background: var(--cta-hover);
  box-shadow: 0 6px 20px rgba(234,88,12,.45);
  transform: translateY(-1px);
}
.lead-form button:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(234,88,12,.3); }
.lead-form button:disabled { opacity: .7; cursor: default; box-shadow: none; transform: none; }
.form-note { color: var(--muted); font-size: .8rem; text-align: center; margin: 10px 0 0; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ---- CTA phone ---- */
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(234,88,12,.4);
  transition: background .15s;
}
.cta-phone:hover { background: var(--cta-hover); color: #fff; }

/* ---- Trust badges ---- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 20px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .8rem;
  color: rgba(255,255,255,.92);
  font-weight: 500;
}
.trust-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---- Flash messages ---- */
.flash { max-width: 480px; margin: 0 auto 16px; padding: 14px 18px; border-radius: 8px; font-weight: 500; }
.flash-ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash-err { background: var(--err-bg); color: var(--err-ink); }

/* ---- Main ---- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* ---- Contenu ---- */
.contenu { padding-top: 48px; }
.contenu h2 {
  font-size: 1.3rem;
  color: var(--dark);
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  margin: 0 0 18px;
}
.contenu p { color: #374151; line-height: 1.75; margin: 0 0 14px; }

/* ---- Listing entreprises ---- */
.entreprises { margin-top: 56px; }
.entreprises h2 {
  font-size: 1.25rem;
  color: var(--dark);
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  margin: 0 0 18px;
}
.entreprises .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.entreprises .card {
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow .2s, transform .2s;
}
.entreprises .card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  transform: translateY(-3px);
}
.entreprises .card img { border-radius: 10px; margin-bottom: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.entreprises .card h3 { font-size: 1rem; margin: 0 0 6px; color: var(--dark); }
.entreprises .card p { margin: 3px 0; font-size: .875rem; color: var(--muted); }
.entreprises .card .note { color: #d97706; font-weight: 600; }

/* ---- Maillage interne ---- */
.maillage { margin-top: 40px; }
.maillage h3 {
  font-size: .75rem;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.maillage ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.maillage a {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: .85rem;
  padding: 5px 12px;
  background: var(--accent-light);
  border-radius: 999px;
  font-weight: 500;
  transition: background .15s;
}
.maillage a:hover { background: #bfdbfe; text-decoration: none; }

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 48px 16px 28px;
  margin-top: 56px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-brand { margin-bottom: 24px; }
.footer-brand .site-logo { margin-bottom: 10px; }
.footer-tagline { margin: 0; color: rgba(255,255,255,.45); font-size: .875rem; line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-copyright { color: rgba(255,255,255,.35); font-size: .8rem; margin: 0; }
.footer-legal-note { color: rgba(255,255,255,.25); font-size: .75rem; margin: 0; }

/* ---- Desktop ---- */
@media (min-width: 720px) {
  .hero { padding: 52px 16px 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero .subtitle { font-size: 1.1rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
