/* ===========================================================
   MJS PEINTURE — Design system (conversion-oriented)
   Palette : bleu confiance + orange CTA (haute conversion)
   =========================================================== */

:root {
  --navy: #14233b;
  --navy-2: #1d3357;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cta: #ff6a1a;          /* orange = couleur d'action la plus convertissante */
  --cta-dark: #e85600;
  --green: #16a34a;
  --star: #fbbf24;
  --text: #16202e;
  --muted: #5b6b7e;
  --line: #e6ebf1;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-navy-soft: #f0f4fa;
  --shadow: 0 10px 30px rgba(20, 35, 59, .08);
  --shadow-lg: 0 24px 60px rgba(20, 35, 59, .14);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --ff: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-display: 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 76px 0; }
h1, h2, h3 { line-height: 1.18; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h2.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); background: var(--bg-navy-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 10px 24px rgba(255,106,26,.35); }
.btn-cta:hover { background: var(--cta-dark); transform: translateY(-2px); }
.btn-call { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-call:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy); color: #cfe0f5; font-size: .86rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }

/* ---------- Header / nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--navy); font-size: 1.18rem; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand small { display: block; font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { font-weight: 600; font-size: .96rem; color: var(--text); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone { font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 7px; }
.burger { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 0;
  background: linear-gradient(180deg, rgba(13,24,42,.86), rgba(13,24,42,.78)),
              url('https://images.unsplash.com/photo-1562259949-e8e7689d7828?auto=format&fit=crop&w=1920&q=80') center/cover;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding: 70px 0 84px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.25rem); }
.hero h1 span { color: #ffd9bf; }
.hero .lead { font-size: 1.18rem; color: #dce7f5; margin: 18px 0 26px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust .ht { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #eaf1fb; }
.hero-trust .ht b { display: block; color: #fff; font-size: 1.05rem; }
.stars { color: var(--star); letter-spacing: 1px; }

/* Hero form card */
.lead-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.lead-card h3 { font-size: 1.28rem; }
.lead-card .sub { color: var(--muted); font-size: .92rem; margin: 4px 0 18px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .96rem; color: var(--text); background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-strip .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 18px; padding: 26px 22px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); font-size: .96rem; }
.trust-item .ic { font-size: 1.5rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: .22s ease; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .ic { font-size: 2.2rem; margin-bottom: 14px; }
/* Placeholder image (dégradé transparent, en attendant les vraies photos) */
.card-img {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(255,106,26,.10));
  background-size: cover; background-position: center; border: 1px solid var(--line);
}
/* Contenu réservé aux moteurs (SEO/GEO), invisible pour l'utilisateur */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.service-card h3 { font-size: 1.22rem; margin-bottom: 9px; }
.service-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.service-card .more { margin-top: 16px; font-weight: 700; color: var(--blue); display: inline-flex; gap: 6px; }

/* ---------- Tunnel de qualification ---------- */
.needs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.need-tile {
  display: flex; flex-direction: column; gap: 0; cursor: pointer; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font-family: inherit; padding: 0; transition: .2s ease;
}
.need-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.need-tile.active { border-color: var(--cta); box-shadow: 0 0 0 3px rgba(255,106,26,.18); }
.need-img {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(255,106,26,.14));
  background-size: cover; background-position: center;
}
.need-label { padding: 14px 16px; font-weight: 700; color: var(--navy); font-size: 1rem; }
.need-result {
  margin-top: 34px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; animation: fadeUp .35s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.nr-head h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.nr-head p { color: var(--muted); margin: 8px 0 14px; max-width: 720px; }
.nr-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; color: var(--navy); }
.nr-count { background: var(--navy); color: #fff; padding: 5px 14px; border-radius: 999px; font-size: .9rem; }
.nr-meta .stars { color: var(--star); }
.nr-sub { margin: 22px 0 14px; font-weight: 700; color: var(--navy); }
.nr-review { border-left: 4px solid var(--cta); background: #fff; padding: 16px 20px; border-radius: 8px;
  font-style: italic; color: var(--text); margin: 22px 0; }
.nr-review b { display: block; font-style: normal; color: var(--navy); margin-top: 8px; font-size: .9rem; }
.nr-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.gallery .ph { width: 100%; height: 100%; background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(255,106,26,.12)); }

/* ---------- Funnel / popup ---------- */
.funnel-overlay {
  position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center;
  background: rgba(13,24,42,.72); backdrop-filter: blur(4px); padding: 20px; animation: fadeIn .2s ease;
}
.funnel-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.funnel-modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 760px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 34px 30px 30px; position: relative;
  box-shadow: var(--shadow-lg); animation: fadeUp .3s ease;
}
.funnel-close {
  position: absolute; top: 14px; right: 16px; background: var(--bg-soft); border: 0; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--navy);
  display: grid; place-items: center; transition: .15s;
}
.funnel-close:hover { background: var(--line); }
.funnel-head { text-align: center; margin-bottom: 22px; }
.funnel-head h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.funnel-head p { color: var(--muted); margin-top: 8px; }
.funnel-modal .needs-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.funnel-modal .need-img { aspect-ratio: 16/9; }
.funnel-modal .need-label { font-size: .94rem; padding: 12px 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; counter-reset: s; }
.step { background: var(--bg-soft); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 24px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--cta); color: #fff;
  display: grid; place-items: center; font-weight: 800; box-shadow: 0 6px 16px rgba(255,106,26,.4);
}
.step h3 { font-size: 1.1rem; margin: 12px 0 7px; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- Procédé façon BD (cases illustrées) ---------- */
.process-bd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bd-panel {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bd-panel:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bd-scene {
  background: linear-gradient(160deg, #eaf2ff, #f6faff);
  border-bottom: 1px solid var(--line); padding: 14px; display: flex; align-items: center; justify-content: center;
}
.bd-scene svg { width: 100%; height: 130px; display: block; }
.bd-num {
  position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--cta); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(255,106,26,.4); border: 2px solid #fff;
}
.bd-text { padding: 16px 18px 20px; }
.bd-panel h3 { font-size: 1.06rem; margin-bottom: 6px; }
.bd-panel p { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .process-bd { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-bd { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; text-align: center; }
.stat b { display: block; font-size: clamp(2rem,4vw,2.8rem); color: #fff; font-family: var(--ff-display); }
.stat span { color: #a9c2e0; font-size: .96rem; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 22px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.review .stars { font-size: 1.05rem; margin-bottom: 10px; }
.review p { font-style: italic; color: var(--text); }
.review .who { margin-top: 14px; font-weight: 700; color: var(--navy); font-size: .94rem; }
.review .who span { display: block; font-weight: 500; color: var(--muted); font-size: .84rem; }

/* ---------- Portfolio ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); font-weight: 600; font-size: .96rem; }

/* ---------- Zones ---------- */
.zones-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.zones-list a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: .92rem; transition: .15s; }
.zones-list a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 22px;
  font-weight: 700; color: var(--navy); font-size: 1.02rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: inherit; }
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--cta); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a div { padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; text-align: center; border-radius: var(--radius-lg); padding: 52px 26px; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem,3.4vw,2.3rem); }
.cta-band p { color: #c9dbf2; margin: 12px auto 26px; max-width: 600px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem,4vw,2.7rem); }
.page-hero p { color: #c9dbf2; margin-top: 12px; max-width: 640px; font-size: 1.08rem; }
.breadcrumb { font-size: .82rem; color: #9fb9d8; margin-bottom: 14px; }
.breadcrumb a { color: #c9dbf2; }

/* ---------- Content layout ---------- */
.content { display: grid; grid-template-columns: 1.6fr .9fr; gap: 44px; align-items: start; }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose h2 { font-size: 1.6rem; margin: 30px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 22px 0 10px; }
.prose ul { margin: 0 0 18px 20px; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.sidebar-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 92px; }
.sidebar-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.sidebar-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: #b9cbe2; padding: 56px 0 24px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
footer.site a { color: #b9cbe2; transition: color .15s; }
footer.site a:hover { color: #fff; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 9px; }
.footer-brand img { width: 46px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #8aa3c2; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding: 9px; gap: 9px; }
.mobile-bar .btn { flex: 1; padding: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .content { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar-card { position: static; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 16px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .nav-actions .btn-cta { display: none; }
  .topbar { display: none; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 66px; }
  section { padding: 54px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
