@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --calque: #EFF0EC;
  --graphite: #1E2124;
  --mine: #5D6367;
  --chene: #C49A69;
  --anthracite: #383E42;
  --bleu: #1C4F9C;
  --bleu-fonce: #153D7A;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;

  --gutter: 16px;
  --header: 56px;
}
@media (min-width: 900px) {
  :root { --gutter: 48px; --header: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--calque);
  color: var(--graphite);
  font: 400 17px/1.55 var(--text);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--bleu); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
h1, h2, h3, p, dl, dd { margin: 0; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.close :focus-visible { outline-color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top {
  height: var(--header);
  background: var(--calque);
}
@media (min-width: 900px) {
  .top { position: sticky; top: 0; z-index: 10; }
}
.top__in {
  max-width: 1400px; height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.top__brand {
  font: 600 22px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--graphite);
  text-decoration: none;
}
.top__brand span { color: var(--mine); margin-left: 0.3em; }
.top__tel {
  font: 500 17px/1 var(--text);
  color: var(--bleu);
  text-decoration: none;
  padding: 12px 0;
}
@media (min-width: 900px) {
  .top__tel {
    font-size: 18px;
    padding: 14px 24px;
    background: var(--bleu);
    color: #fff;
  }
  .top__tel::before { content: "Appeler le "; }
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header));
}
.hero__text {
  padding: 24px var(--gutter) 32px;
}
.hero__mark { display: inline-block; align-self: flex-start; max-width: 100%; }
.hero__name {
  font: 600 clamp(64px, 19.5vw, 176px)/0.86 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero__name span { display: block; }

/* The dimension line under the name: extension lines at both ends, oblique ticks, the measure written in the middle. */
.cote {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  margin-top: 16px;
  padding: 0 1px;
  border-inline: 2px solid var(--graphite);
  font: 600 18px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.cote i { flex: 1; height: 2px; background: var(--graphite); }
.cote::before, .cote::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: 22px;
  background: var(--graphite);
  transform: translateY(-50%) rotate(45deg);
}
.cote::before { left: -2px; }
.cote::after { right: -2px; }

.hero__lede {
  margin-top: 24px;
  font: 500 20px/1.35 var(--text);
  max-width: 22em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  font: 500 18px/1.2 var(--text);
  text-decoration: none;
  transition: background-color 300ms, color 300ms;
}
.btn--call { background: var(--bleu); color: #fff; }
.btn--call::before { content: "Appeler le "; white-space: pre; }
.btn--quiet { color: var(--graphite); box-shadow: inset 0 0 0 2px var(--graphite); }
@media (max-width: 559px) {
  .btn { flex: 1 1 100%; }
}

.hero__photo {
  flex: 1;
  min-height: 280px;
  position: relative;
  background: var(--chene);
}
.hero__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 36%);
    min-height: calc(100vh - var(--header));
  }
  .hero__text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px 48px 72px max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter)));
  }
  .hero__name { font-size: clamp(64px, 13.8vw, 216px); }
  .cote { height: 40px; margin-top: 24px; font-size: 22px; }
  .hero__lede { margin-top: 32px; font-size: 26px; }
  .hero__actions { margin-top: 40px; }
  .hero__photo { min-height: 0; }
}

/* Bois et PVC */
.metier { padding: 80px 0 96px; }
.metier__photos {
  display: grid;
  gap: 24px;
}
.metier__photos figcaption {
  margin-top: 8px;
  font: 600 clamp(56px, 16vw, 128px)/0.9 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.metier__text { margin-top: 32px; max-width: 30em; font: 500 20px/1.35 var(--text); }
@media (min-width: 600px) {
  .metier__photos { grid-template-columns: 1fr 1fr; gap: 24px; }
  .metier__photos figcaption { font-size: clamp(56px, 10vw, 128px); }
}
@media (min-width: 900px) {
  .metier { padding: 128px 0; }
  .metier__text { margin-top: 48px; font-size: 26px; max-width: 30em; }
}

/* Qui */
.qui { padding: 0 0 96px; }
.qui__statement {
  font: 500 clamp(30px, 8.4vw, 60px)/1.12 var(--text);
  max-width: 16em;
  white-space: pre-line;
  text-wrap: balance;
}
.cartouche {
  margin-top: 48px;
  border: 2px solid var(--graphite);
  max-width: 560px;
}
.cartouche__title {
  padding: 16px;
  font: 600 32px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--graphite);
}
.cartouche dl > div {
  display: grid;
  grid-template-columns: 104px 1fr;
  border-bottom: 1px solid var(--graphite);
}
.cartouche dt, .cartouche dd { padding: 12px 16px; }
.cartouche dt {
  font: 600 14px/1.5 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mine);
  border-right: 1px solid var(--graphite);
  padding-top: 14px;
}
.cartouche dd { font-weight: 500; }
.cartouche__src { padding: 10px 16px; font-size: 13px; color: var(--mine); }
@media (min-width: 900px) {
  .qui { padding-bottom: 128px; }
  .qui__in {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 64px;
    align-items: end;
  }
  .cartouche { margin-top: 0; }
  .cartouche dl > div { grid-template-columns: 128px 1fr; }
}

/* Adresse et horaires */
.adresse { padding: 16px 0 96px; }
.adresse__addr {
  font: 600 clamp(44px, 12.4vw, 104px)/0.95 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 7.6em;
}
.adresse__links {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  margin-top: 32px;
  font-weight: 500;
  font-size: 19px;
}
.adresse__links a { padding: 8px 0; }
.adresse__hours { margin-top: 56px; }
.adresse__hours h3 {
  font: 600 28px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.hours > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: end;
  gap: 16px;
  padding: 10px 0;
}
.hours dt { font-weight: 500; line-height: 1.2; padding-bottom: 3px; }
/* An empty day reads as a line to fill in, the way a blank form does. */
.hours dd { min-height: 1.4em; line-height: 1.2; padding-bottom: 3px; border-bottom: 1px solid var(--mine); }
.hours dd:not(:empty) { border-bottom-color: transparent; }
.hours dd span + span::before { content: ", "; }
.hours dd .off { color: var(--mine); }
@media (min-width: 900px) {
  .adresse { padding: 32px 0 128px; }
  .adresse__in {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 64px;
    align-items: start;
  }
  .adresse__hours { margin-top: 12px; }
}

/* Close */
.close {
  background: var(--anthracite);
  color: var(--calque);
  padding: 72px 0 80px;
}
.close__num {
  display: inline-block;
  font: 600 clamp(52px, 15.2vw, 224px)/1 var(--display);
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--bleu);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  white-space: nowrap;
  transition: text-decoration-color 300ms;
}
.close__line { margin-top: 24px; font: 500 20px/1.35 var(--text); max-width: 24em; }
@media (min-width: 900px) {
  .close { padding: 112px 0 120px; }
  .close__line { font-size: 26px; margin-top: 32px; }
}

/* Footer */
.foot { padding: 40px 0 112px; font-size: 15px; color: var(--mine); }
.foot strong { color: var(--graphite); font-weight: 500; }
.foot__in { display: grid; gap: 20px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__legal a { color: var(--mine); }
@media (min-width: 900px) {
  .foot { padding: 48px 0; }
  .foot__in { grid-template-columns: 1fr auto auto; align-items: end; gap: 48px; }
}

/* The call, pinned under the thumb on the phone. */
.pin {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex; align-items: center; justify-content: center;
  min-height: 64px;
  padding: 0 16px env(safe-area-inset-bottom);
  background: var(--bleu);
  color: #fff;
  font: 500 18px/1 var(--text);
  text-decoration: none;
  transition: transform 300ms;
}
.pin::before { content: "Appeler le "; white-space: pre; }
.pin.is-hidden { transform: translateY(100%); }
@media (min-width: 900px) { .pin { display: none; } }

@media (hover: hover) and (pointer: fine) {
  .btn--call:hover, .top__tel:hover { background: var(--bleu-fonce); }
  .btn--quiet:hover { background: var(--graphite); color: var(--calque); }
  .close__num:hover { text-decoration-color: #fff; }
}

/* Section reveal, once. */
.js [data-reveal] > .wrap > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.js [data-reveal] > .wrap > *:nth-child(2) { transition-delay: 0.08s; }
.js [data-reveal] > .wrap > *:nth-child(3) { transition-delay: 0.16s; }
.js [data-reveal].is-in > .wrap > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] > .wrap > * { opacity: 1; transform: none; transition: none; }
  .btn, .pin, .close__num { transition: none; }
}
