:root {
  --navy-900: #0a1f3a;
  --navy-800: #0f2b4f;
  --navy-700: #163a66;
  --navy-100: #e8eef6;
  --orange: #f26a1b;
  --orange-dark: #d4560c;
  --green-wa: #1fa855;
  --ink: #142235;
  --muted: #5b6b80;
  --line: #dde4ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 31, 58, .10);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--navy-900); }
h3 { font-size: 1.15rem; color: var(--navy-900); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin-bottom: 36px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--orange); margin-bottom: 8px;
}
.lead { color: var(--muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-family: inherit; font-weight: 800; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--call { background: var(--orange); color: #fff; }
.btn--call:hover { background: var(--orange-dark); }
.btn--wa { background: var(--green-wa); color: #fff; }
.btn--wa:hover { background: #188a46; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: #fff; }
.btn--lg { padding: 17px 28px; font-size: 1.1rem; }

/* Bandeau maquette (à retirer pour la version officielle) */
.demo-banner { background: #ffd23f; color: #3d2e00; text-align: center; font-size: .85rem; font-weight: 800; padding: 7px 16px; line-height: 1.35; }

/* Top bar + header */
.topbar { background: var(--navy-900); color: #cfe0f5; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
.topbar a { color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; margin-right: 8px; box-shadow: 0 0 0 4px rgba(61,220,132,.2); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); font-weight: 800; font-size: 1.15rem; }
.logo__mark { width: 38px; height: 38px; border-radius: 10px; background: var(--navy-800); display: grid; place-items: center; }
.logo__mark svg { width: 22px; height: 22px; }
.logo small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--orange); }
.header .btn { padding: 11px 18px; font-size: .95rem; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1d4f8a 0%, transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; padding: 64px 0 72px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); font-weight: 800; margin-bottom: 18px; }
.hero h1 span { color: #ffb37f; }
.hero p.lead { color: #c9d8ea; font-size: 1.12rem; max-width: 560px; }
.hero__phone { display: inline-block; font-size: clamp(1.7rem, 4.5vw, 2.3rem); font-weight: 800; color: #fff; text-decoration: none; margin: 6px 0 22px; letter-spacing: .01em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.rating { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 12px; text-decoration: none; box-shadow: var(--shadow); }
.rating__stars { color: #fbbc04; font-size: 1.1rem; letter-spacing: 2px; }
.rating strong { font-size: 1.05rem; }
.rating small { color: var(--muted); display: block; font-size: .82rem; }

/* Placeholders (photos / texte à fournir) */
.ph {
  border: 2px dashed #9fb3cc; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #eef3f9, #eef3f9 12px, #e6edf6 12px, #e6edf6 24px);
  color: var(--navy-700); display: grid; place-items: center; text-align: center; padding: 20px; font-size: .92rem; font-weight: 600; min-height: 220px;
}
.ph strong { display: block; color: var(--navy-900); font-size: 1rem; margin-bottom: 4px; }
.hero .ph { min-height: 380px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); color: #c9d8ea; }
.hero .ph strong { color: #fff; }
.todo { background: #fff3c4; color: #6b5200; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* Services */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon { width: 50px; height: 50px; border-radius: 12px; background: var(--navy-100); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 26px; height: 26px; stroke: var(--navy-700); }
.card--urgent { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.card--urgent h3 { color: #fff; }
.card--urgent p { color: #c9d8ea; }
.card--urgent .icon { background: var(--orange); }
.card--urgent .icon svg { stroke: #fff; }
.card--cta { display: flex; flex-direction: column; justify-content: center; gap: 14px; background: #fff7f1; border-color: #ffd9c0; }

.tips { margin-top: 28px; border-left: 4px solid var(--orange); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tips h3 { margin-bottom: 8px; }
.tips ol { margin: 0; padding-left: 20px; color: var(--muted); }
.tips li { margin-bottom: 4px; }

/* Pourquoi nous */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why__item { display: flex; gap: 14px; }
.why__item .icon { flex: none; margin: 0; background: #fff1e7; }
.why__item .icon svg { stroke: var(--orange); }
.why__item p { color: var(--muted); margin: 0; font-size: .95rem; }
.why .ph { min-height: 420px; }

/* Avis */
.reviews { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.score { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 32px; text-align: center; }
.score__num { font-size: 4rem; font-weight: 800; line-height: 1; }
.score__stars { color: #fbbc04; font-size: 1.6rem; letter-spacing: 4px; margin: 10px 0; }
.score p { color: #c9d8ea; }
.score .btn { margin-top: 8px; }
.quotes { display: grid; gap: 16px; }
.quote-ph { border: 2px dashed #9fb3cc; border-radius: var(--radius); padding: 20px 22px; color: var(--muted); background: #fff; font-size: .95rem; }
.quote-ph strong { color: var(--navy-900); display: block; margin-bottom: 4px; }

/* Zone */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.towns { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 18px; }
.towns li { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .93rem; }
.towns li.main { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.note { font-size: .88rem; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: stretch; }
.contact__box { background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact__box h2 { color: #fff; }
.contact__row { display: flex; gap: 14px; align-items: flex-start; }
.contact__row svg { width: 22px; height: 22px; stroke: #ffb37f; flex: none; margin-top: 3px; }
.contact__row span { display: block; font-size: .82rem; color: #9fb6d1; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact__row a, .contact__row p { color: #fff; font-weight: 700; margin: 0; text-decoration: none; font-size: 1.05rem; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map__consent { height: 100%; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: var(--bg-soft); }
.map__consent svg { width: 40px; height: 40px; stroke: var(--navy-700); }
.map__consent p { margin: 0; }
.map__consent small { color: var(--muted); max-width: 300px; }
.map__consent a { font-weight: 700; font-size: .95rem; }

/* Footer */
.footer { background: var(--navy-900); color: #9fb6d1; padding: 40px 0 28px; font-size: .92rem; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer a { color: #fff; }
.footer strong { color: #fff; }

/* Barre d'appel mobile */
.callbar { display: none; }

/* Mentions légales */
.legal { max-width: 780px; padding: 56px 16px 80px; margin: 0 auto; }
.legal h1 { color: var(--navy-900); font-size: 2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero .container, .why, .reviews, .zone, .contact { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .hero .ph { min-height: 240px; }
  .why .ph { min-height: 260px; order: 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* Laisse la place à la barre d'appel fixe pour qu'elle ne cache pas la fin du footer */
  body:has(.callbar) .footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .section { padding: 52px 0; }
  .topbar .hide-sm { display: none; }
  .header .btn { display: none; }
  .hero { padding: 40px 0 52px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .grid--3, .why__list { grid-template-columns: 1fr; }
  .score__num { font-size: 3.2rem; }
  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(10,31,58,.12);
  }
  .callbar .btn { padding: 14px 10px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
