/* Plombier Kevin — feuille de style unique, sans dépendance externe. */
:root {
  --navy: #0b2a4f;
  --navy-2: #123d6e;
  --blue: #1668c7;
  --blue-soft: #e9f2fd;
  --accent: #f0661c;
  --accent-dark: #d4540f;
  --ink: #142238;
  --muted: #55657d;
  --line: #e1e8f1;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --ok: #138a52;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 42, 79, .06), 0 8px 24px rgba(11, 42, 79, .08);
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bandeau urgence ---------- */
.topbar { background: var(--navy); color: #dce8f7; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; margin-right: 8px; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.topbar .tb-right { display: flex; gap: 18px; }
@media (max-width: 720px) { .topbar .tb-hide { display: none; } }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo strong { display: block; font-size: 1.2rem; line-height: 1; font-weight: 800; letter-spacing: -.01em; }
.logo span { display: block; white-space: nowrap; font-size: .74rem; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; white-space: nowrap; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-soft); color: var(--navy); }
.nav .has-sub { position: relative; }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px; flex-direction: column; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }
.nav .sub a { font-weight: 500; }

.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.1; transition: transform .15s ease, background .15s ease; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { color: var(--navy); background: #eef4fb; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.header .btn { padding: 11px 18px; }

.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.burger svg { width: 24px; height: 24px; }

@media (max-width: 1100px) {
  .burger { display: inline-flex; }
  .header .btn-call-h { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 170px); overflow: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 20px 20px; }
  .nav .sub { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav a { padding: 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, #2b7fdc 0%, transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30c240 30 480 30 720 0s480-30 720 0v30H0z' fill='%23ffffff'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: #d8e6f6; max-width: 640px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; margin-bottom: 18px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero .checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #e6effa; font-size: .97rem; }
.hero .checks li { display: flex; align-items: center; gap: 8px; }
.hero .checks svg { width: 18px; height: 18px; color: #3ddc84; flex: none; }
.hero-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.hero-card h2 { font-size: 1.3rem; margin-bottom: .3em; }
.hero-card .big-tel { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); text-decoration: none; letter-spacing: .01em; margin: 8px 0 4px; white-space: nowrap; }
.hero-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: .96rem; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; }
.hero-card li svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.hero-card .btn { width: 100%; margin-top: 18px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 80px; }
}

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: .88rem; color: #b9cde6; margin-bottom: 14px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgba(11, 42, 79, .04); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: #b8d3f3; box-shadow: var(--shadow); transform: translateY(-2px); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--blue); font-weight: 700; font-size: .95rem; }
.ico { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ico svg { width: 28px; height: 28px; }
.ico.accent { background: #fff0e6; color: var(--accent); }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features li svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 3px; }
.features strong { display: block; color: var(--navy); }
.features span { color: var(--muted); font-size: .97rem; }

.signs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.signs li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 14px; font-weight: 600; font-size: .97rem; }
@media (max-width: 640px) { .signs { grid-template-columns: 1fr; } }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 20px; counter-increment: s; }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps strong { display: block; color: var(--navy); margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .96rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat b { display: block; font-size: 2rem; color: var(--navy); line-height: 1.1; font-weight: 800; }
.stat span { color: var(--muted); font-size: .94rem; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Encadré */
.note { background: var(--blue-soft); border: 1px solid #cfe2f8; border-radius: var(--radius); padding: 22px 24px; }
.note h3 { display: flex; gap: 10px; align-items: center; }
.note h3 svg { width: 22px; height: 22px; color: var(--blue); }
.note p:last-child { margin: 0; }

.aside-card { position: sticky; top: 96px; background: var(--navy); color: #dce8f7; border-radius: 18px; padding: 26px; }
.aside-card h3 { color: #fff; }
.aside-card .big-tel { display: block; font-size: 1.75rem; font-weight: 800; color: #fff; text-decoration: none; margin: 6px 0 14px; white-space: nowrap; }
.aside-card .btn { width: 100%; }
.aside-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: .95rem; }
.aside-card li::before { content: "✓"; color: #3ddc84; font-weight: 800; margin-right: 8px; }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .4em; }

/* Pastilles communes */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips a, .chips span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .94rem; }
.chips a:hover { border-color: var(--blue); background: var(--blue-soft); }
.chips small { color: var(--muted); font-weight: 500; }

/* Tableau zones */
.zones { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.zones th, .zones td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .97rem; }
.zones th { background: var(--navy); color: #fff; font-weight: 700; }
.zones tr:last-child td { border-bottom: 0; }
.zones td a { font-weight: 700; text-decoration: none; }
@media (max-width: 640px) { .zones .hide-m { display: none; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p { margin: 0; }

/* Bandeau CTA */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #f5852f 100%); color: #fff; border-radius: 22px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { margin: 0; color: #fff4ec; }
.cta-band .btn-light { color: var(--accent-dark); font-size: 1.15rem; }

/* Formulaire */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: .95rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #c9d5e4; border-radius: 10px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .legal { font-size: .85rem; color: var(--muted); }
.form .btn { justify-self: start; }

/* Articles */
.post-meta { color: #b9cde6; font-size: .92rem; }

/* ---------- Pied de page ---------- */
.footer { background: #071d37; color: #a9bcd5; padding: 64px 0 110px; font-size: .95rem; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .cols { grid-template-columns: 1fr; } }
.footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #d5e2f3; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo span { color: #a9bcd5; }
.footer .tel { font-size: 1.4rem; font-weight: 800; color: #fff; }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; }
@media (min-width: 1101px) { .footer { padding-bottom: 40px; } }

/* Barre d'appel mobile */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 42, 79, .12); }
.callbar .btn { flex: 1; padding: 14px 10px; }
@media (max-width: 1100px) { .callbar { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (min-width: 640px) { .nw { white-space: nowrap; } }

/* Liens vers les services (pages communes et services) */
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.link-grid a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); font-weight: 600; text-decoration: none; font-size: .96rem; line-height: 1.3; }
.link-grid a:hover { border-color: var(--blue); background: var(--blue-soft); }
.link-grid svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
@media (max-width: 980px) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .link-grid { grid-template-columns: 1fr; } }

/* Contenu éditorial */
.prose ol { padding-left: 1.3em; }
.prose > h2:first-child { margin-top: 0; }
.prose strong { color: var(--navy); }

/* Infographies */
.infog { margin: 32px 0; }
.infog img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(11, 42, 79, .08); background: #fff; }
.infog figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
