@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --platre: #E8E7E2;
  --enduit: #D5D4CE;
  --encre: #1B1C1E;
  --graphite: #55585B;
  --bleu: #1D56B8;
  --bleu-fonce: #164596;
  --sur-encre: #B9B8B2;
  --radius: 4px;
  --gutter: 16px;
  --bar: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--platre);
  color: var(--encre);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ul { margin: 0; }
h2 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--bleu); }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 30;
  background: var(--encre); color: var(--platre); padding: 8px 16px; border-radius: var(--radius);
}
.skip:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }

/* Display type, set like the lettering on a van door */
.hero-name, .hero-trades, .who, .contact-head h2, .mark, .foot-mark {
  font-stretch: 66%;
  font-weight: 800;
  text-transform: uppercase;
}

/* The call button. The anchor holds the number alone, which the owner can change; its hit area covers the whole button. */
.call {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bleu);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 20px 14px;
  transition: background-color .3s ease;
}
.call-label { font-size: 14px; line-height: 1.3; font-weight: 500; }
.call-num {
  color: #fff;
  text-decoration: none;
  font-stretch: 75%;
  font-weight: 750;
  font-size: 28px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.call-num::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.call-num:focus-visible { outline: none; }
.call:focus-within { outline: 3px solid var(--encre); outline-offset: 3px; }
.call-lg { padding: 14px 24px 16px; }
.call-lg .call-num { font-size: 34px; }

.link-plain {
  color: var(--bleu);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Header: desktop only. The phone has the pinned call instead. */
.bar { display: none; }

/* Hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; }
.hero-in {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.hero-top { --name: min(calc((100vw - 2 * var(--gutter)) / 5.1), 252px); position: relative; }
.hero-name { font-size: var(--name); line-height: .98; }
.hero-name span { display: block; }
.hero-welcome { margin-top: 20px; font-size: 20px; line-height: 1.35; font-weight: 500; }
.hero-foot { display: grid; gap: 28px; }
.hero-trades { list-style: none; padding: 0; font-size: 46px; line-height: 1; color: var(--encre); }
.hero-trades li + li { margin-top: 2px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hero-proof { font-size: 14px; line-height: 1.45; color: var(--graphite); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Métiers: four slots for Yannick's photos, then the words */
.metiers { padding: 72px 0 96px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot {
  background: var(--enduit);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
}
.slot span { font-size: 13px; line-height: 1.3; font-weight: 500; color: var(--graphite); }
.metiers-text { margin-top: 40px; max-width: 34rem; }
.metiers h2 { font-size: 32px; line-height: 1.05; font-weight: 750; font-stretch: 75%; margin-bottom: 16px; }
.lead { font-size: 20px; line-height: 1.45; font-weight: 450; }

/* L'entreprise: the one dark band */
.entreprise { background: var(--encre); color: var(--platre); padding: 88px 0 96px; }
.entreprise-in { display: grid; gap: 32px; }
.who { font-size: min(23vw, 216px); line-height: .82; color: var(--platre); }
.entreprise .lead { color: var(--sur-encre); }
.facts { margin-top: 32px; }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(232, 231, 226, .16); }
.facts dt { font-size: 14px; color: var(--sur-encre); font-weight: 500; padding-top: 2px; }
.facts dd { font-size: 17px; font-variant-numeric: tabular-nums; }

/* Contact, which is also the close */
.contact { padding: 88px 0 96px; }
.contact-head { display: grid; gap: 28px; justify-items: start; }
.contact-head h2 { font-size: min(12.2vw, 96px); line-height: .92; }
.contact-grid { display: grid; gap: 40px; margin-top: 72px; }
.contact h3 { font-size: 20px; line-height: 1.2; font-weight: 750; font-stretch: 75%; margin-bottom: 12px; }
.addr { font-size: 22px; line-height: 1.3; font-weight: 600; }
.contact-access { margin-top: 8px; color: var(--graphite); }
.contact-access:empty { display: none; }
.contact-map { margin-top: 16px; }
.tel-line { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--enduit); }
.tel-kind { width: 5.5rem; flex: none; font-size: 14px; color: var(--graphite); font-weight: 500; }
.tel-line a {
  font-size: 26px; line-height: 1.15; font-weight: 750; font-stretch: 75%;
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--enduit); }
.hours dt { font-weight: 500; }
.hours dd { color: var(--graphite); text-align: right; font-variant-numeric: tabular-nums; }
.hours dd:empty::after { content: "\2014"; }
.hours dd span + span::before { content: ", "; }

/* Footer */
.foot { background: var(--encre); color: var(--sur-encre); padding: 56px 0 120px; font-size: 15px; line-height: 1.6; }
.foot-in { display: grid; gap: 24px; }
.foot a { color: var(--platre); }
.foot-mark { color: var(--platre); font-size: 24px; line-height: 1; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Pinned call, phone only; it steps aside while another call button is on screen */
.pin {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  flex-direction: row; align-items: baseline; justify-content: center; gap: 12px;
  border-radius: 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  transition: transform .3s ease, background-color .3s ease, visibility 0s;
}
.pin .call-label { font-size: 15px; }
.pin .call-num { font-size: 24px; }
.pin.pin-off { transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }

/* Reveal */
.js [data-reveal]:not([data-kids]), .js [data-kids] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal].in:not([data-kids]), .js [data-kids].in > * { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .call:hover { background: var(--bleu-fonce); }
  .link-plain:hover, .bar-nav a:hover, .tel-line a:hover, .foot a:hover { text-decoration-thickness: 2px; }
}

@media (min-width: 768px) {
  :root { --gutter: 48px; --bar: 72px; }
  body { font-size: 18px; }

  .bar { display: block; position: sticky; top: 0; z-index: 20; background: var(--platre); }
  .bar-in { height: var(--bar); display: flex; align-items: center; gap: 32px; }
  .mark { color: var(--encre); text-decoration: none; font-size: 22px; line-height: 1; transition: opacity .3s ease; }
  .at-top .mark { opacity: 0; pointer-events: none; }
  .bar-nav { display: flex; gap: 32px; margin-left: auto; }
  .bar-nav a { color: var(--encre); text-decoration: none; font-size: 15px; font-weight: 500; }
  .call-sm { flex-direction: row; align-items: baseline; gap: 10px; padding: 8px 16px 9px; }
  .call-sm .call-num { font-size: 20px; }
  .pin { display: none; }

  .hero { min-height: calc(100vh - var(--bar)); }
  .hero-in { padding-top: 8px; padding-bottom: 56px; }
  .hero-welcome {
    position: absolute; right: 0; top: 0; height: calc(var(--name) * .8);
    display: flex; align-items: flex-end; margin: 0;
    font-size: 24px; line-height: 1.3; max-width: 17ch; text-align: right;
  }
  .hero-foot { grid-template-columns: auto 1fr auto; align-items: end; gap: 64px; }
  .hero-trades { font-size: 48px; }
  .hero-proof { text-align: right; }

  .lead { font-size: 22px; }

  .metiers { padding: 144px 0; }
  .metiers .wrap { display: flex; flex-direction: column; }
  .metiers-text { order: -1; margin: 0 0 56px; max-width: none; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .metiers h2 { font-size: 48px; margin: 0; }
  .metiers .lead { max-width: 36rem; }
  .slots { grid-template-columns: repeat(4, 1fr); }

  .entreprise { padding: 144px 0; }
  .entreprise-in { gap: 48px; }
  .entreprise-body { max-width: 40rem; }

  .contact { padding: 144px 0; }
  .contact-head { grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr 1fr 1fr; gap: 64px; margin-top: 96px; }

  .foot { padding: 64px 0; }
  .foot-in { grid-template-columns: 1.2fr 1.6fr 1.6fr 1.2fr; align-items: start; }
  .foot-legal { flex-direction: column; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .bar-nav { display: none; }
  .call-sm { margin-left: auto; }
  .hero-foot { grid-template-columns: auto 1fr; }
  .hero-proof { grid-column: 1 / -1; text-align: left; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-head { grid-template-columns: 1fr; }
  .metiers-text { grid-template-columns: 1fr; gap: 24px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1280px) {
  .entreprise-in { grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal]:not([data-kids]), .js [data-kids] > * { opacity: 1; transform: none; transition: none; }
  .call, .pin, .mark { transition: none; }
}
