/* ADM Plombier – feuille de style unique */
:root {
  --blue: #0099cc;
  --blue-dark: #007ba6;
  --navy: #003366;
  --grey-bg: #f2f2f2;
  --text: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #fff;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 6px 20px rgba(0, 32, 64, .08);
  --shadow-lg: 0 18px 40px rgba(0, 32, 64, .18);
  --header-h: 76px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .9rem; }
.lead { font-size: 1.125rem; color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn .ico { width: 1em; height: 1em; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--blue); }
.btn-outline:hover { background: #f1f7fb; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #eef4f8; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* En-tête */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: auto; }
.brand-slogan { font-size: .78rem; color: var(--muted); max-width: 150px; line-height: 1.3; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 26px; }
.main-nav a, .sub-toggle { color: #374151; text-decoration: none; font-weight: 550; font: inherit; font-weight: 550; }
.main-nav > ul > li > a:hover, .sub-toggle:hover, .main-nav a[aria-current="page"], .has-sub.is-active > .sub-toggle { color: var(--blue); }
.main-nav a[aria-current="page"] { font-weight: 700; }
.sub-toggle { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.sub-toggle .ico { width: 16px; height: 16px; transition: transform .2s; }
.has-sub { position: relative; }
.submenu { position: absolute; top: calc(100% + 14px); left: -16px; min-width: 220px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.submenu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .sub-toggle .ico, .has-sub.open .sub-toggle .ico { transform: rotate(180deg); }
.submenu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; font-size: .95rem; }
.submenu a:hover { background: #f3f6f9; color: var(--blue); }
.submenu .ico { color: var(--blue); width: 18px; height: 18px; }
.nav-call { display: none; }
.main-nav .nav-call { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.menu-toggle .ico { width: 28px; height: 28px; }
.menu-toggle .ico-close { display: none; }

/* Sections */
main { padding-top: var(--header-h); }
.section { padding: 80px 0; }
.bg-grey { background: var(--grey-bg); }
.section-head { max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }

.hero { background: linear-gradient(135deg, rgba(0, 153, 204, .1), #fff 70%); padding: 64px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-text .lead { margin-bottom: 2em; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.badge { position: absolute; left: -22px; bottom: -26px; display: flex; align-items: center; gap: 12px; background: #fff; padding: 16px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.badge-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; }
.badge strong { display: block; font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.badge small { color: var(--muted); font-size: .85rem; }

.page-hero { background: linear-gradient(135deg, rgba(0, 153, 204, .1), #fff 75%); padding: 72px 0 56px; }
.page-hero .lead { margin: 0; }

/* Cartes */
.cards { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }
.card-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; background: rgba(0, 153, 204, .1); color: var(--blue); transition: background .25s, color .25s; }
.card-ico .ico { width: 28px; height: 28px; }
.card:hover .card-ico { background: var(--blue); color: #fff; }

.svc-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card-head { background: linear-gradient(135deg, var(--blue), var(--navy)); padding: 26px; color: #fff; }
.svc-card-head h2 { color: #fff; font-size: 1.45rem; margin: 16px 0 0; }
.svc-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 10px; background: rgba(255, 255, 255, .2); }
.svc-ico .ico { width: 30px; height: 30px; }
.svc-card-body { padding: 26px; }
.svc-card-body p { color: var(--muted); }

.dots { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.dots li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.dots li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* Blocs texte + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.img-left .split-media { order: -1; }
.split-media img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split-text > p { color: var(--muted); }
.split-text .btn { margin-top: 8px; }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ico { color: var(--blue); width: 20px; height: 20px; margin-top: 2px; }
.checklist-2 .checklist { grid-template-columns: 1fr 1fr; }

.feature-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-list li { display: flex; align-items: center; gap: 12px; background: var(--grey-bg); padding: 12px 14px; border-radius: 10px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.feature-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--blue); color: #fff; flex-shrink: 0; }
.feature-ico .ico { width: 20px; height: 20px; }

/* Bandeau d'appel */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; padding: 80px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 1.2rem; opacity: .92; margin-bottom: 2em; }

/* À propos */
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.team li { display: flex; align-items: center; gap: 14px; }
.team-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 153, 204, .12); color: var(--blue); }
.team strong { display: block; color: var(--navy); }
.team small { color: var(--muted); font-size: .9rem; }
.stats .stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat strong { font-size: 2.1rem; color: var(--navy); margin-top: 10px; line-height: 1.1; }
.stat > span:last-child { color: var(--muted); }
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 24px; }
.partner { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.partner h3 { margin: 0; }
.partner p { margin: 0; color: var(--muted); }

/* Réalisations */
.gallery { display: grid; gap: 40px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shot { position: relative; margin: 0; }
.shot-tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.shot-avant { background: #4b5563; }
.shot-apres { background: var(--blue); }
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.zoom img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .35s; }
.zoom:hover img { transform: scale(1.04); }
.zoom-hint { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 51, 102, .45); color: #fff; font-weight: 700; opacity: 0; transition: opacity .25s; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 34px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .9rem; color: var(--navy); }
input, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: var(--text); }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 153, 204, .2); }
textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status.ok { color: #047857; }
.form-status.err { color: #b91c1c; }
.coord { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--grey-bg); margin-bottom: 14px; }
.coord h3 { margin: 0 0 2px; font-size: 1.05rem; }
.coord p { margin: 0 0 4px; }
.coord a, .muted-accent { font-weight: 600; text-decoration: none; font-size: .92rem; color: var(--blue); }
.coord a:hover { text-decoration: underline; }
.coord-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--blue); color: #fff; flex-shrink: 0; }
.zone { margin-top: 24px; padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(0, 153, 204, .12), rgba(0, 51, 102, .08)); }
.zone h3 { margin-bottom: 4px; }

/* Pages légales */
.legal { padding: 64px 0 80px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }

/* Pied de page */
.site-footer { background: var(--navy); color: #d1d5db; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); gap: 36px; }
.footer-brand img { width: 56px; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; }
.footer-title { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #d1d5db; text-decoration: none; }
.site-footer a:hover { color: #5cc8ee; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { color: var(--blue); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 44px; padding-top: 24px; text-align: center; font-size: .85rem; color: #9ca3af; }
.footer-bottom p { margin: 0; }

/* Bouton d'appel flottant (mobile) */
.call-fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 40; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 25px rgba(0, 51, 102, .35); }

/* --- Responsive --- */
@media (max-width: 1100px) {
  .header-call { display: none; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  /* backdrop-filter piégerait le menu en position fixe : fond plein sur mobile */
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand img { width: 50px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; padding: 24px 20px 40px; overflow-y: auto; display: none; }
  .nav-open .main-nav { display: block; }
  .nav-open .menu-toggle .ico-open { display: none; }
  .nav-open .menu-toggle .ico-close { display: block; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--border); }
  .main-nav > ul > li > a, .sub-toggle { display: flex; width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.2rem; font-weight: 650; }
  .submenu { position: static; box-shadow: none; padding: 0 0 12px 8px; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .has-sub.open .submenu { display: block; }
  .has-sub:hover .sub-toggle .ico { transform: none; }
  .has-sub.open .sub-toggle .ico { transform: rotate(180deg); }
  .submenu a { font-size: 1.05rem; padding: 12px; }
  .nav-call { display: flex; width: 100%; margin-top: 24px; min-height: 54px; font-size: 1.1rem; }

  .hero { padding: 40px 0 72px; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.img-left .split-media { order: 0; }
  .split-media { order: 2; }
  .hero-media img { height: 340px; }
  .split-media img { height: 340px; }
  .badge { left: 12px; bottom: -24px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .call-fab { display: inline-flex; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .brand-slogan { display: none; }
  .cards-4, .cards-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat { padding: 20px 12px; }
  .stat strong { font-size: 1.7rem; }
  .checklist-2 .checklist, .feature-list, .field-row { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .pair { gap: 10px; }
  .shot-tag { top: 8px; left: 8px; font-size: .7rem; padding: 3px 10px; }
  .btn-row .btn { width: 100%; }
  .form-card { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .section, .cta-band { padding: 56px 0; }
  .hero-media img, .split-media img { height: 260px; }
  .site-footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
