:root {
  --ink: #1b1b1b;
  --ink-soft: #4d4942;
  --paper: #f8f5ee;
  --paper-strong: #fffdf8;
  --line: #ded6c8;
  --stone: #7d8378;
  --clay: #a75f42;
  --sage: #627367;
  --charcoal: #24282a;
  --shadow: 0 22px 55px rgba(27, 27, 27, 0.14);
  --radius: 8px;
  --max-width: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(248, 245, 238, 0.9);
  border-bottom: 1px solid rgba(222, 214, 200, 0.72);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 30px rgba(27, 27, 27, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-strong);
  font-size: 0.78rem;
}

.brand-name {
  font-size: clamp(1rem, 2vw, 1.18rem);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--clay);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88vh;
  padding: 120px clamp(20px, 5vw, 64px) 72px;
  overflow: hidden;
  color: var(--paper-strong);
}

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

.hero-media {
  background: url("assets/images/hero-carrelage.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.82) 0%, rgba(18, 18, 18, 0.55) 42%, rgba(18, 18, 18, 0.16) 100%),
    linear-gradient(0deg, rgba(18, 18, 18, 0.5) 0%, rgba(18, 18, 18, 0.08) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

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

.hero .eyebrow {
  color: #e8b190;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.3rem, 9vw, 7.8rem);
}

h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

h3 {
  font-size: 1.28rem;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--clay);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #8d4f37;
}

.button-ghost {
  border-color: rgba(255, 253, 248, 0.55);
  color: var(--paper-strong);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 253, 248, 0.12);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  padding: 24px clamp(20px, 4vw, 48px);
  background: var(--paper-strong);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 1rem;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 124px) 0;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(20px, calc((100vw - var(--max-width)) / 2));
  background: var(--charcoal);
  color: var(--paper-strong);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.section-muted .section-heading p:not(.eyebrow) {
  color: rgba(255, 253, 248, 0.72);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: 28px;
  max-width: none;
  align-items: end;
}

code {
  padding: 0.12em 0.36em;
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.12);
  color: inherit;
  font-size: 0.9em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 12px 30px rgba(27, 27, 27, 0.05);
}

.service-number {
  display: block;
  margin-bottom: 48px;
  color: var(--clay);
  font-weight: 800;
}

.service-card p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 253, 248, 0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--paper-strong);
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  border-color: #e8b190;
  background: #e8b190;
  color: var(--ink);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.06);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card div {
  padding: 18px;
}

.project-card h3 {
  font-size: 1.1rem;
}

.project-card p {
  margin: 8px 0 0;
  color: rgba(255, 253, 248, 0.72);
}

.project-category {
  display: inline-block;
  margin-bottom: 10px;
  color: #e8b190;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
}

.about-copy p:not(.eyebrow) {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.about-panel {
  display: grid;
  gap: 12px;
}

.about-panel div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.about-panel span {
  color: var(--sage);
  font-weight: 850;
}

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

.contact-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-weight: 750;
}

.contact-details a {
  width: fit-content;
  border-bottom: 2px solid var(--clay);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.field-group {
  display: grid;
  gap: 7px;
}

label {
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfc5b5;
  border-radius: 6px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(167, 95, 66, 0.35);
  border-color: var(--clay);
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--sage);
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: rgba(255, 253, 248, 0.82);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  border-bottom: 1px solid rgba(255, 253, 248, 0.5);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
    z-index: 22;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    gap: 0;
    padding: 12px 20px 22px;
    background: rgba(255, 253, 248, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(27, 27, 27, 0.1);
    transform: translateY(-125%);
    transition: transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 15px 0;
  }

  .trust-strip,
  .service-grid,
  .gallery-grid,
  .about,
  .contact,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 210px;
  }

  .service-number {
    margin-bottom: 28px;
  }
}

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    max-width: 190px;
    white-space: normal;
    line-height: 1.15;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: 86vh;
    padding: 104px 18px 52px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(18, 18, 18, 0.84) 0%, rgba(18, 18, 18, 0.6) 100%),
      linear-gradient(0deg, rgba(18, 18, 18, 0.44) 0%, rgba(18, 18, 18, 0.06) 55%);
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .trust-strip div {
    padding: 20px;
  }

  .section {
    width: min(100% - 32px, var(--max-width));
    padding: 64px 0;
  }

  .section-muted {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

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