/* ===== Plombier Wallonie — Sub-pages (New Design) ===== */
:root {
  --blue: #062b63;
  --blue-dark: #001f4d;
  --blue-soft: #eaf2fb;
  --orange: #ff5a00;
  --orange-dark: #e84d00;
  --text: #071b3a;
  --muted: #5d6b82;
  --border: #e3e8f0;
  --bg: #f6f8fb;
  --white: #fff;
  --green: #2f7a44;
  --green-bg: #EEF5EE;
  --amber-bg: #FBF0DC;
  --shadow: 0 18px 45px rgba(6, 43, 99, .14);
  --shadow-sm: 0 8px 20px rgba(6, 43, 99, .06);
  --radius: 22px;
  /* Aliases for old variable names used in content */
  --ink: var(--text);
  --ink-soft: var(--muted);
  --accent: var(--blue);
  --accent-dark: var(--blue-dark);
  --accent-light: var(--blue-soft);
  --paper: var(--bg);
  --paper-2: var(--blue-soft);
  --line: var(--border);
  --slate: var(--blue-dark);
  --primary: var(--blue);
  --primary-light: var(--blue-soft);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-size: 17px; padding-bottom: 70px; }
img, svg, video, canvas, iframe { max-width: 100%; }
table { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* --- Skip link --- */
.skip-link { position: absolute; left: -999px; top: 10px; background: var(--blue); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 10px; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 8px 20px rgba(7, 27, 58, .08); }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1120px; margin: 0 auto; padding: 0 16px; flex-wrap: nowrap; }
.brand { display: inline-flex; gap: 10px; align-items: center; }
.brand-icon { width: 42px; height: 42px; color: var(--blue); }
.brand strong { display: block; font-size: clamp(22px, 2.5vw, 28px); line-height: 1; letter-spacing: -1px; color: var(--blue); }
.brand em { color: var(--orange); font-style: normal; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; padding: 10px 18px; border-radius: 9px; font-weight: 800; font-size: 14px; white-space: nowrap; box-shadow: 0 8px 16px rgba(255, 90, 0, .18); transition: .2s; }
.btn-cta:hover { background: var(--orange-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-cta::after { content: "\2192"; font-size: 16px; line-height: 0; }
.cta-short { display: none; }

/* --- Nav bar --- */
.main-nav { background: var(--blue-dark); color: #fff; }
.nav-inner { display: flex; align-items: center; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 1120px; margin: 0 auto; padding: 0 16px; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a { padding: 14px 16px; font-weight: 700; font-size: 13px; white-space: nowrap; border-bottom: 3px solid transparent; color: #fff; }
.nav-inner a:hover, .nav-inner a.active { border-color: var(--orange); background: rgba(255,255,255,.04); text-decoration: none; }

/* --- Burger --- */
.burger { display: none; background: none; border: none; cursor: pointer; z-index: 200; font-size: 28px; line-height: 1; color: var(--blue); padding: 4px 8px; }
.burger .burger-bars, .burger .burger-close { pointer-events: none; }
.burger .burger-close { display: none; }
.burger.open .burger-bars { display: none; }
.burger.open .burger-close { display: inline; }
.mobile-panel { display: none; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 9px; padding: 14px 22px; font-weight: 800; font-size: 14px; transition: .2s ease; border: none; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
/* Default .btn = orange primary (used in villes pages as .btn .big) */
.btn:not(.btn-ghost):not(.btn-secondary) { background: var(--orange); color: #fff; box-shadow: 0 10px 20px rgba(255, 90, 0, .22); }
.btn:not(.btn-ghost):not(.btn-secondary):hover { background: var(--orange-dark); color: #fff; }
.btn:not(.btn-ghost):not(.btn-secondary)::after { content: "\2192"; font-size: 20px; line-height: 0; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 20px rgba(255, 90, 0, .22); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); color: #fff; }
.btn-primary::after { content: "\2192"; font-size: 22px; line-height: 0; }
.btn-ghost, .btn.ghost { color: var(--blue); background: #fff; border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover, .btn.ghost:hover { background: var(--bg); color: var(--blue); }
.btn-ghost::after, .btn.ghost::after { content: none; }
.btn-lg, .btn.big { padding: 17px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* --- Container --- */
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* --- Hero (sub-pages) --- */
.hero { padding: 34px 0 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 800; text-transform: uppercase; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.06; letter-spacing: -2px; margin: 18px 0 0; color: var(--blue); font-weight: 800; }
.hero p.intro, .lead { font-size: 20px; line-height: 1.6; color: var(--muted); margin: 20px 0 0; max-width: 60ch; }
.hero-actions { margin: 26px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.crumbs { font-size: 14px; color: var(--muted); padding: 20px 0 0; }
.crumbs a { color: var(--muted); }

/* --- Breadcrumb --- */
.breadcrumb { display: flex; align-items: center; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* --- Sections --- */
main { padding-bottom: 0; }
section.block { padding: 8px 0; }
.section { padding: 56px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2::before { margin-inline: auto; }

/* --- Headings --- */
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -1px; margin: 46px 0 6px; color: var(--blue); font-weight: 800; }
h2::before { content: ""; display: block; width: 42px; height: 3px; background: var(--orange); border-radius: 2px; margin-bottom: 16px; }
h3 { font-weight: 700; font-size: 20px; margin: 24px 0 4px; color: var(--blue); }
p { margin: 14px 0; }
ul { margin: 14px 0; padding-left: 22px; }
li { margin: 8px 0; }

/* --- Lead muted --- */
.lead-muted { color: var(--muted); font-size: 18px; max-width: 56ch; margin: 8px auto 0; }

/* --- Tiles (provinces / zones) --- */
.tiles { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 22px; min-width: 170px; text-align: center; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; text-decoration: none; }
.tile:hover { border-color: var(--orange); transform: translateY(-2px); text-decoration: none; }
.tile b { display: block; font-size: 16px; color: var(--blue); font-weight: 700; }
.tile span { font-size: 13.5px; color: var(--muted); }
@media(max-width:560px) { .tiles { gap: 8px; } .tile { min-width: 140px; padding: 12px 16px; } }

/* --- CTA mobile text variant --- */
.cta-mobile { display: none; }
@media(max-width:560px) { .cta-long { display: none; } .cta-mobile { display: inline; } }

/* --- Callouts --- */
.callout { border-radius: 16px; padding: 20px 24px; margin: 24px 0; }
.callout h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font-size: 18px; }
.callout.tip { background: var(--green-bg); border: 1px solid #CDE3CE; }
.callout.tip h3 { color: var(--green); }
.callout.warn { background: var(--amber-bg); border: 1px solid #ECD4A0; }
.callout.warn h3 { color: #9a6711; }
.callout .ico { width: 22px; height: 22px; flex: 0 0 auto; }
.callout p { margin: 8px 0 0; }
.callout ul { margin: 8px 0 0; }

/* --- Travaux grid --- */
.travaux { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.travaux li { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.travaux li b { display: block; font-size: 16px; color: var(--blue); }
.travaux li span { font-size: 14.5px; color: var(--muted); }
.travaux li a { font-size: 14px; font-weight: 700; color: var(--orange); }
@media(max-width:640px) { .travaux { grid-template-columns: 1fr; } }

/* --- Cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 22px 0; }
@media(max-width:680px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card .cardhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--blue); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.secteur { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--blue-soft); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.verified { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--green); margin: 10px 0 0; }
.verified svg { width: 16px; height: 16px; }
.card p { font-size: 15px; color: var(--muted); margin: 10px 0 0; }
.card-cta { margin-top: auto; padding-top: 16px; }
.card-cta a { font-weight: 700; font-size: 14.5px; color: var(--orange); }
.avis-note { font-size: 15px; color: var(--muted); margin: 4px 0 14px; }

/* --- Grids (guides) --- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media(max-width:680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* --- FAQ --- */
.faq details { border: 1px solid var(--border); border-radius: 18px; margin: 10px 0; background: #fff; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--blue); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--orange); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 18px; color: var(--muted); }

/* --- CTA Band --- */
.ctaband { margin: 48px 0 8px; background: var(--blue-dark); color: #fff; border-radius: 30px; padding: 42px 34px; text-align: center; }
.ctaband h2 { color: #fff; margin: 0 0 10px; }
.ctaband h2::before { display: none; }
.ctaband p { color: rgba(255,255,255,.75); margin: 0 auto 22px; max-width: 52ch; }
.ctaband .btn { background: var(--orange); }
.ctaband .btn:hover { background: var(--orange-dark); }
.ctaband .repere, .ctaband .repère { font-size: 13.5px; color: rgba(255,255,255,.55); margin-top: 16px; }

/* --- CTA inline (guides) --- */
.cta-inline { background: var(--blue-soft); border-left: 4px solid var(--blue); padding: 20px 24px; border-radius: 12px; margin: 32px 0; }

/* --- Chantiers --- */
.chantiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 22px 0; }
@media(max-width:680px) { .chantiers { grid-template-columns: 1fr; } }
.chantier { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 4px 11px; }
.tag svg { width: 13px; height: 13px; }
.chantier h3 { margin: 12px 0 0; font-size: 19px; font-weight: 800; color: var(--blue); }
.chantier p { font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.chantier .footnote { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 10px; }

/* --- Locale block --- */
.locale { background: var(--blue-soft); border: 1px solid var(--border); border-radius: 22px; padding: 8px 28px 26px; margin: 24px 0; }
.locale h2 { margin-top: 30px; }
.locale ul { list-style: none; padding: 0; margin: 18px 0 0; }
.locale li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--border); }
.locale li:first-child { border-top: 0; }
.locale li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 10px; height: 10px; border: 2px solid var(--orange); border-radius: 2px; transform: rotate(45deg); }
.locale li b { color: var(--blue); }

/* --- Maillage chips --- */
.maillage { margin-top: 34px; }
.maillage h3 { font-size: 18px; margin: 22px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-size: 14px; font-weight: 700; color: var(--blue); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; transition: .15s; }
.chips a:hover { border-color: var(--orange); color: var(--orange); text-decoration: none; }

/* --- Steps (guides) --- */
.steps { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.step { text-align: center; flex: 1; min-width: 220px; max-width: 320px; }
.step .n { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: 22px; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* --- Narrow page (guides) --- */
.narrow-page { max-width: 760px; margin: 40px auto; padding: 0 24px; }
.narrow-page h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.narrow-page h2 { margin-top: 36px; }
.narrow-page p, .narrow-page li { color: var(--muted); }

/* --- Tables --- */
table { width: 100%; border-collapse: collapse; }
@media(max-width:760px) { table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* --- Footer --- */
footer.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.7); font-size: 14.5px; margin-top: 50px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 42px 24px 26px; max-width: 1120px; margin: 0 auto; }
@media(max-width:860px) { .foot-cols { grid-template-columns: 1fr 1fr !important; } }
@media(max-width:560px) { .foot-cols { grid-template-columns: 1fr !important; } }
footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
footer a { color: rgba(255,255,255,.8); }
footer a:hover { color: #fff; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-lead { max-width: 42ch; line-height: 1.6; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 24px; max-width: 1120px; margin: 0 auto; font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.foot-disclaimer { padding: 0 24px 28px; max-width: 1120px; margin: 0 auto; font-size: 12.5px; color: rgba(255,255,255,.5); line-height: 1.6; }

/* --- Sticky CTA --- */
.sticky-devis { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; transform: translateY(120%); transition: transform .35s cubic-bezier(.4,0,.2,1); background: var(--blue-dark); border-top: 3px solid var(--orange); }
.sticky-devis.show { transform: translateY(0); }
.sticky-devis .sd-inner { max-width: 1120px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sticky-devis .sd-text { color: #fff; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; }
.sticky-devis .sd-text i { color: var(--orange); }
.sticky-devis .sd-sub { display: block; font-size: .8rem; color: rgba(255,255,255,.6); font-weight: 400; }
.sticky-devis .sd-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; padding: 14px 28px; border-radius: 9px; font-weight: 800; font-size: 15px; white-space: nowrap; text-decoration: none; transition: .15s; }
.sticky-devis .sd-btn:hover { background: var(--orange-dark); text-decoration: none; }

/* --- Reveal --- */
.reveal { opacity: 0; transform: translateY(10px); animation: rise .6s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media(prefers-reduced-motion:reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* --- Mobile: 820px --- */
@media(max-width:820px) {
  .main-nav { display: none; }
  .topbar-actions .btn-cta { display: none; }
  .burger { display: block; }
  .mobile-panel { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.98); z-index: 100; padding: 80px 24px 24px; backdrop-filter: blur(10px); }
  .mobile-panel.open { display: flex; flex-direction: column; }
  .mobile-panel nav { display: flex; flex-direction: column; gap: 0; }
  .mobile-panel nav a { font-size: 18px; font-weight: 700; color: var(--blue); padding: 16px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
  .mobile-panel .btn-cta-block { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange); color: #fff; padding: 16px 24px; border-radius: 9px; font-weight: 800; font-size: 16px; text-decoration: none; }
  .mobile-panel .btn-cta-block:hover { text-decoration: none; }
  .topbar { height: auto; padding: 12px 16px; gap: 10px; }
  .brand { min-width: 0; }
  .brand-icon { width: 36px; height: 36px; flex-shrink: 0; }
  .brand-icon svg { width: 36px; height: 36px; }
  .brand strong { font-size: clamp(18px, 5vw, 26px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand small { font-size: 11px; }
  .mobile-panel { padding: 20px; padding-top: 70px; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .mobile-panel nav a { font-size: 17px; padding: 14px 0; }
  .mobile-panel nav a:hover { text-decoration: none; color: var(--orange); }
}

/* --- Mobile: 560px --- */
@media(max-width:560px) {
  .topbar { padding: 10px 14px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-icon { width: 32px; height: 32px; }
  .brand-icon svg { width: 32px; height: 32px; }
  .brand strong { font-size: 18px; }
  .brand small { display: none; }
  .mobile-panel { padding: 16px; padding-top: 62px; }
  .mobile-panel nav a { font-size: 16px; padding: 13px 0; }
  .narrow { padding: 0 16px; }
  h1 { font-size: clamp(28px, 7vw, 40px); letter-spacing: -1.5px; }
  .hero p.intro, .lead { font-size: 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .hero-actions a.btn { width: 100%; justify-content: center; }
  .btn-lg, .btn.big { padding: 14px 20px; font-size: 15px; }
  .ctaband { padding: 28px 18px; border-radius: 18px; }
  .travaux { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .chantiers { grid-template-columns: 1fr; }
  .chips { gap: 6px; }
  .chips a { padding: 6px 12px; font-size: 13px; }
  .sticky-devis .sd-inner { flex-wrap: nowrap; justify-content: space-between; text-align: left; padding: 9px 14px; gap: 10px; }
  .sticky-devis .sd-text { font-size: .92rem; gap: 8px; line-height: 1.15; }
  .sticky-devis .sd-text i { display: none; }
  .sticky-devis .sd-sub { display: none; }
  .sticky-devis .sd-btn { padding: 10px 16px; font-size: .86rem; flex: none; }
}
