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

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&display=swap');

:root {
  --accent: #d9622a;
  --accent-dark: #b94f1f;
  --navy: #16233a;
  --navy-2: #223350;
  --ink: #1a1f29;
  --muted: #5b6470;
  --bg: #ffffff;
  --soft: #f6f7fb;
  --line: #e5e8ef;
  --ok-bg: #e7f6ec; --ok-ink: #1d7a3a;
  --err-bg: #fdecec; --err-ink: #c0392b;
  --radius: 12px;
  --max: 1080px;
  --shadow: 0 10px 30px rgba(22,35,58,.10);
  --shadow-lg: 0 20px 50px rgba(22,35,58,.22);
}

* { 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 { font-family: 'Poppins', system-ui, sans-serif; line-height: 1.25; letter-spacing: -.01em; }

main, footer > .foot-inner { max-width: var(--max); margin-left: auto; margin-right: auto; }
main { padding: 0 16px 56px; }

/* ---- Topbar ---- */
.topbar {
  background: var(--navy);
  color: #cfd8e8;
  font-size: .85rem;
}
.topbar .foot-inner, .topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar .brand { color: #fff; font-weight: 700; font-family: 'Poppins', sans-serif; font-size: .95rem; letter-spacing: .02em; }
.topbar .trust { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar .trust span::before { content: "\2713 "; color: #7fd88a; font-weight: 700; }

/* ---- Zone de conversion (au-dessus de la flottaison) ---- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 420px at 15% -10%, rgba(217,98,42,.35), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 40px 16px 52px;
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 40px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}
.hero > * { max-width: var(--max); margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.hero h1 { font-size: 1.75rem; margin: 0 0 10px; font-weight: 800; }
.hero .subtitle { font-size: 1.08rem; opacity: .92; margin: 0 auto 22px; max-width: 640px; }

.lead-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  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;
  background: var(--soft);
  transition: border-color .15s, background .15s;
}
.lead-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.lead-form button {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(217,98,42,.35);
  transition: background .15s, transform .1s;
}
.lead-form button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.lead-form button:active { transform: translateY(0); }
.lead-form button:disabled { opacity: .7; cursor: default; transform: none; }
.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: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

.arguments {
  list-style: none;
  padding: 0;
  margin: 22px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: .9rem;
}
.arguments li {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 14px;
  border-radius: 999px;
}
.arguments li::before { content: "\2713 "; font-weight: 700; color: #7fd88a; }

/* ---- 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: 36px; }
.contenu h2 { font-size: 1.5rem; }
.contenu p { color: #333a45; font-size: 1.02rem; }

/* ---- Listing entreprises ---- */
.entreprises { margin-top: 40px; }
.entreprises h2 { font-size: 1.35rem; }
.entreprises .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.entreprises .card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.entreprises .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.entreprises .card img { border-radius: 8px; margin-bottom: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.entreprises .card h3 { font-size: 1.04rem; 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: 34px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.maillage h3 { font-size: 1rem; color: var(--navy); margin: 0 0 12px; font-weight: 700; }
.maillage ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .9rem;
}
.maillage a {
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
  transition: border-color .15s, color .15s, background .15s;
}
.maillage a:hover { border-color: var(--accent); color: var(--accent-dark); background: #fff5ef; }

/* ---- Footer ---- */
footer { background: var(--navy); color: #b9c3d6; margin-top: 56px; }
footer .foot-inner { padding: 28px 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
footer a { color: #cfd8e8; }

/* ---- Desktop ---- */
@media (min-width: 720px) {
  .hero { padding: 64px 16px 76px; }
  .hero h1 { font-size: 2.5rem; }
  .hero .subtitle { font-size: 1.2rem; }
}
