:root {
  --navy: #061b73;
  --navy-deep: #041044;
  --ink: #151a22;
  --muted: #5b6370;
  --line: #d9dde5;
  --paper: #f7f8fb;
  --white: #ffffff;
  --steel: #687383;
  --accent: #b7a05a;
  --field: #eef1f6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(4, 16, 68, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 138px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
  color: #29313d;
  font-size: 0.96rem;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-color: var(--accent);
}

.header-cta,
.primary-action,
.secondary-action,
.contact-form button,
.facebook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
}

.header-cta,
.primary-action,
.contact-form button {
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
}

.secondary-action {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.facebook-link {
  color: var(--navy-deep);
  border: 1px solid var(--line);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 64px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/chantier-btpl.png");
  background-size: cover;
  background-position: center right;
  filter: saturate(0.94) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 16, 68, 0.93) 0%, rgba(4, 16, 68, 0.72) 42%, rgba(4, 16, 68, 0.16) 100%),
    linear-gradient(0deg, rgba(4, 16, 68, 0.24), rgba(4, 16, 68, 0.02));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: 72px 0;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 6.8vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  min-height: 112px;
  padding: 28px clamp(18px, 4vw, 46px);
  background: var(--white);
}

.trust-band strong,
.commitments strong {
  display: block;
  color: var(--navy-deep);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.1;
}

.trust-band span,
.commitments span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section,
.story-section,
.projects-section,
.plumbing-preview,
.service-hero,
.service-detail,
.contact-section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 98px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 260px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(21, 26, 34, 0.06);
}

.service-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 34px;
  margin-bottom: 34px;
  color: var(--navy);
  background: #edf1ff;
  border-left: 4px solid var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card p,
.story-copy p,
.contact-copy p {
  color: var(--muted);
}

.service-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--navy);
  font-weight: 900;
}

.plumbing-preview,
.service-detail {
  border-top: 1px solid var(--line);
}

.service-hero {
  min-height: 520px;
  display: grid;
  align-content: center;
}

.service-hero .section-heading {
  max-width: 880px;
}

.service-hero h1 {
  color: var(--navy-deep);
}

.service-hero .section-heading p:not(.eyebrow) {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.plumbing-actions {
  margin-top: 28px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.offer-grid article {
  min-height: 170px;
  padding: 24px;
  background: var(--white);
}

.offer-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-deep);
  font-size: 1.1rem;
}

.offer-grid span {
  color: var(--muted);
}

.teams-section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 98px) 0;
  border-top: 1px solid var(--line);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.team-grid article {
  min-height: 190px;
  padding: 28px;
  background: var(--white);
}

.team-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy-deep);
  font-size: 1.22rem;
  line-height: 1.2;
}

.team-grid span {
  color: var(--muted);
}

.projects-section {
  border-top: 1px solid var(--line);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(21, 26, 34, 0.06);
}

.project-card-text {
  display: flex;
  align-items: stretch;
  min-height: 100%;
}

.project-card-text .project-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
}

.before-after,
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.project-image {
  min-height: 210px;
  aspect-ratio: 1 / 1;
}

.project-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(4, 16, 68, 0.88), rgba(6, 27, 115, 0.74)),
    url("assets/chantier-btpl.png");
  background-size: cover;
  background-position: center;
}

.project-image.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
}

.project-image.photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.project-photo-link {
  position: relative;
  display: block;
  height: 100%;
  color: inherit;
  cursor: zoom-in;
}

.project-photo-link::after {
  content: "Agrandir";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-photo-link:hover::after,
.project-photo-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.project-image.photo figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 11px;
  border-radius: 6px;
  background: rgba(4, 16, 68, 0.78);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-image.before {
  filter: saturate(0.78) contrast(0.96);
}

.project-image.after {
  filter: saturate(1.02) contrast(1.04);
}

.project-image span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  background: rgba(4, 16, 68, 0.42);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-copy {
  padding: 22px;
}

.project-type {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-copy p:not(.project-type) {
  color: var(--muted);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.story-copy {
  max-width: 680px;
}

.commitments {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.commitments div {
  padding: 24px;
  background: var(--white);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-copy {
  max-width: 560px;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 18px;
  color: var(--navy-deep);
  font-weight: 800;
}

.contact-list a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.direct-contact,
.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.direct-contact article {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.direct-contact span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
}

.direct-contact h3 {
  font-size: 1.1rem;
}

.direct-contact p {
  color: var(--muted);
}

.direct-contact .primary-action,
.direct-contact .facebook-link {
  width: 100%;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd1dc;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--field);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.form-note {
  margin: 0;
  color: var(--steel);
  font-size: 0.86rem;
}

.legal-page {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 98px) 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-grid div {
  min-height: 112px;
  padding: 22px;
  background: var(--white);
}

.legal-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy-deep);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-grid span {
  color: var(--muted);
}

.legal-source {
  margin: 24px 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: 16px 26px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy-deep);
}

.site-footer img {
  width: 116px;
  height: auto;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.legal-note {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .services-grid,
  .trust-band,
  .team-grid,
  .projects-grid,
  .legal-grid,
  .offer-grid,
  .before-after,
  .project-gallery,
  .story-section,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .trust-band div {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 10px 16px;
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand img {
    width: 118px;
  }

  .header-cta {
    min-height: 38px;
    padding: 9px 13px;
  }

  .main-nav {
    gap: 18px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 640px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(4, 16, 68, 0.95) 0%, rgba(4, 16, 68, 0.8) 58%, rgba(4, 16, 68, 0.38) 100%);
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding: 58px 0;
  }

  .hero-actions a {
    width: 100%;
  }

  .service-card {
    min-height: auto;
  }

  .contact-form {
    padding: 20px;
  }
}
