:root {
  --page-bg: #f3f3f1;
  --grey: #8c8b8a;
  --charcoal: #3e4749;
  --navy: #132140;
  --blue: #00519e;
  --red: #d41a27;
  --soft-grey: #e5e4e0;
  --soft-blue: #d9dce8;
  --soft-green: #e2e3d7;
  --content-width: 1600px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--charcoal);
  font-family: "Exo 2", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.page-width {
  width: min(calc(100% - 80px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  display: grid;
  min-height: 215px;
  place-items: center;
  padding: 40px 24px 30px;
}

.brand {
  display: block;
  width: min(550px, 78vw);
}

.brand img {
  width: 100%;
}

.hero {
  display: grid;
  min-height: 560px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 8px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 68px 58px;
  background: var(--blue);
  color: #fff;
}

.eyebrow,
.construction,
.expertise-card h2,
.contact h2,
.contact-card > span {
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 22px;
  font-size: clamp(21px, 1.55vw, 30px);
  letter-spacing: .025em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(29px, 2vw, 40px);
  font-weight: 300;
  line-height: 1.17;
}

.construction {
  margin: 34px 0 28px;
  font-size: clamp(20px, 1.45vw, 28px);
}

.hero__note {
  margin: 20px 0 20px;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.25;
}

.button {
  display: inline-flex;
  min-width: 215px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgb(19 33 64 / 18%);
}

.button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.button--light {
  background: var(--page-bg);
  color: #34627f;
}

.button--blue {
  min-width: 230px;
  background: var(--blue);
  color: #fff;
}

.hero__visual {
  min-height: 420px;
  background: url("assets/visuel-soudure.jpg") center center / cover no-repeat;
}

.overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding-block: 56px 65px;
}

.overview__copy {
  padding-top: 2px;
  font-size: 17px;
}

.overview__copy p {
  margin: 0 0 24px;
}

.overview__copy strong {
  font-weight: 500;
}

.overview__copy ul {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.overview__copy li {
  position: relative;
  padding-left: 17px;
}

.overview__copy li::before {
  position: absolute;
  top: .53em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.overview__copy li:nth-child(2) { grid-column: 2; grid-row: 1; }
.overview__copy li:nth-child(3) { grid-column: 1; grid-row: 2; }
.overview__copy li:nth-child(4) { grid-column: 2; grid-row: 2; }
.overview__copy li:nth-child(5) { grid-column: 1; grid-row: 3; }
.overview__copy li:nth-child(6) { grid-column: 2; grid-row: 3; }

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

.stat {
  display: flex;
  min-height: 175px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 7px;
  text-align: center;
}

.stat--white { background: #fff; }
.stat--grey { background: var(--soft-grey); }
.stat--blue { background: var(--soft-blue); }

.stat strong {
  margin-bottom: 8px;
  color: #30617f;
  font-size: clamp(25px, 1.8vw, 34px);
  font-weight: 300;
  text-transform: uppercase;
}

.stat span {
  font-size: 16px;
}

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

.expertise-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 132px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.expertise-card--grey { background: var(--soft-grey); }
.expertise-card--blue { background: var(--soft-blue); }
.expertise-card--green { background: var(--soft-green); }

.expertise-card img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.expertise-card h2 {
  align-self: center;
  margin: 0;
  padding: 18px;
  color: #55595a;
  font-size: clamp(20px, 1.55vw, 29px);
  font-weight: 300;
  line-height: 1.15;
  text-align: center;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  padding-block: 90px 70px;
}

.contact__intro {
  min-width: 0;
  text-align: right;
}

.contact h2 {
  margin: 0 0 25px;
  color: #30617f;
  font-size: clamp(21px, 1.45vw, 28px);
  font-weight: 300;
}

.contact__intro p {
  margin: 0;
  font-size: 17px;
}

.contact-card {
  display: flex;
  width: 315px;
  min-height: 205px;
  flex: 0 0 315px;
  flex-direction: column;
  justify-content: center;
  padding: 32px 42px;
  border-radius: 7px;
  background: #fff;
  font-size: 16px;
  font-style: normal;
}

.contact-card > span {
  margin-bottom: 12px;
  font-size: 14px;
}

.contact-card strong {
  font-size: 18px;
  font-weight: 300;
  text-transform: uppercase;
}

.contact-card a {
  color: inherit;
  text-decoration: none;
}

.contact-card a[href^="tel"] {
  margin-bottom: 6px;
  color: #397093;
  font-size: 21px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 55px;
  text-align: center;
}

.site-footer p {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .page-width {
    width: min(calc(100% - 48px), var(--content-width));
  }

  .hero__content {
    padding: 48px 36px;
  }

  .overview {
    grid-template-columns: 1fr;
  }

  .expertise {
    grid-template-columns: repeat(2, 1fr);
  }

  .expertise-card img {
    aspect-ratio: 1.65 / 1;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .page-width {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .site-header {
    min-height: 145px;
    padding-block: 30px;
  }

  .brand {
    width: min(420px, 88vw);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 45px 28px 50px;
  }

  .hero h1 br {
    display: none;
  }

  .hero__visual {
    min-height: 330px;
    background-position: 62% center;
  }

  .overview {
    gap: 36px;
    padding-block: 42px 48px;
  }

  .desktop-only {
    display: none;
  }

  .overview__copy ul {
    grid-template-columns: 1fr;
  }

  .overview__copy li:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 135px;
  }

  .expertise {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    grid-template-rows: auto 105px;
  }

  .contact {
    flex-direction: column;
    gap: 30px;
    padding-block: 65px 55px;
  }

  .contact__intro {
    text-align: center;
  }

  .contact h2 {
    margin-bottom: 16px;
  }

  .contact-card {
    width: min(100%, 340px);
    flex-basis: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
