@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --nuit: #0e1312;
  --jour: #f2f6f4;
  --encre: #15201d;
  --menthe: #3fdc9c;
  --menthe-vive: #66e8b4;
  --sarcelle: #39b6b2;
  --brume: #5d6b67;
  --jour-sur-nuit: #e6eeeb;
  --brume-sur-nuit: #9aaba6;
  --trait: rgba(21, 32, 29, 0.14);
  --trait-nuit: rgba(230, 238, 235, 0.16);

  /* the one radius: the top-right corner of their logo frame */
  --coin: 16px;
  --coin-grand: clamp(48px, 9vw, 160px);

  --g: 16px;
  --wrap: 1400px;
  --display: clamp(36px, 11.7vw, 46px);
}

@media (min-width: 600px) {
  :root { --display: 10.5vw; }
}

@media (min-width: 900px) {
  :root { --display: min(6.5vw, 112px); }
}

@media (min-width: 700px) {
  :root { --g: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--jour);
  color: var(--encre);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

@media (min-width: 700px) { body { font-size: 18px; } }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, p, ol, dl, dd, blockquote { margin: 0; }

.wrap {
  width: min(var(--wrap), calc(100% - 2 * var(--g)));
  margin-inline: auto;
}

/* links: ink text, the accent underneath */
.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--menthe);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color 300ms ease;
}
.link-night { color: var(--jour-sur-nuit); }

/* the call button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 28px;
  background: var(--menthe);
  color: var(--nuit);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0 var(--coin) 0 0;
  transition: background-color 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--menthe-vive); }
  .link:hover { text-decoration-color: currentColor; }
  .nav a:hover, .top-tel:hover { text-decoration-color: var(--menthe); }
}

.btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--sarcelle);
  outline-offset: 3px;
}

/* ---------- hero: day above, night below ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr min(var(--wrap), calc(100% - 2 * var(--g))) 1fr;
  grid-template-rows: auto 1fr auto auto;
  min-height: 100vh;
  min-height: 100svh;
}

.top {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand-mark { width: 40px; height: auto; }
.brand span { white-space: nowrap; }
@media (max-width: 359px) { .brand { font-size: 13px; } }

.nav { display: none; }
.top-tel { display: none; }

.hero-title {
  display: contents;
  font-weight: 800;
  font-size: var(--display);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.l-day, .l-night {
  grid-column: 2;
  font-size: var(--display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
}

.l-day {
  grid-row: 2;
  align-self: end;
  padding: 32px 0 20px;
}
.l-day .ln { display: block; }

.night-ground {
  grid-column: 1 / -1;
  grid-row: 3 / 5;
  background: var(--nuit);
  border-radius: 0 var(--coin-grand) 0 0;
}

.l-night {
  grid-row: 3;
  color: var(--jour-sur-nuit);
  padding: 20px 0 0;
}
.l-night .ln { display: block; }

.night-body {
  grid-column: 2;
  grid-row: 4;
  position: relative;
  z-index: 1;
  color: var(--jour-sur-nuit);
  padding: 24px 0 32px;
}

.lede {
  max-width: 34em;
  color: var(--brume-sur-nuit);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 24px;
}

.proof {
  margin-top: 24px;
  font-size: 15px;
  color: var(--brume-sur-nuit);
}
.proof a { text-decoration-color: var(--trait-nuit); text-underline-offset: 4px; }

.hero-logo {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: end;
  width: 132px;
  margin-bottom: -6px;
  position: relative;
  z-index: 1;
}
@media (min-width: 600px) {
  .hero-logo { width: 30vw; margin-bottom: 0; }
}

@media (min-width: 900px) {
  .top { padding: 24px 0; }
  .brand { font-size: 16px; }
  .brand-mark { width: 48px; }
  .nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
  }
  .nav a, .top-tel {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    transition: text-decoration-color 300ms ease;
  }
  .nav a { font-weight: 500; }
  .top-tel {
    display: inline;
    font-weight: 700;
    margin-left: 16px;
  }

  .l-day, .l-night { font-stretch: 112%; }
  .l-day { padding-bottom: 28px; }
  .l-day { white-space: nowrap; }
  .l-day .ln { display: inline; }
  .l-day .ln-end { display: block; }
  .l-night { padding-top: 28px; }
  .l-night .ln { display: inline; }

  .night-body { padding: 32px 0 64px; max-width: 40em; }

  .hero-logo {
    grid-row: 3 / 5;
    align-self: center;
    width: clamp(220px, 25vw, 380px);
    margin: 48px 0 0;
  }
}

/* ---------- the review ---------- */

.avis { padding: 96px 0 80px; }

.avis-grid {
  display: grid;
  gap: 40px;
}

.quote p {
  font-size: clamp(24px, 3.1vw, 44px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.005em;
  max-width: 24em;
}
.quote footer {
  margin-top: 24px;
  font-size: 15px;
  color: var(--brume);
}

.reply {
  font-size: 16px;
  color: var(--brume);
  max-width: 26em;
}
.reply-head {
  font-weight: 700;
  color: var(--encre);
  margin-bottom: 8px;
}
.reply .link { display: inline-block; margin-top: 24px; color: var(--encre); }

@media (min-width: 900px) {
  .avis { padding: 160px 0 128px; }
  .avis-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
  }
}

/* ---------- services ---------- */

.services { padding: 32px 0 96px; }

.services h2, .dispo h2 {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.svc {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}
.svc li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--trait);
  font-size: clamp(24px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.12;
}
.svc-n {
  font-size: 15px;
  font-weight: 600;
  color: var(--brume);
}

.svc-foot {
  display: grid;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--trait);
}
.extra-head, .addr-head {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--brume);
  margin-bottom: 4px;
}
.extra { font-size: 20px; font-weight: 600; }

.devis p { font-size: 20px; margin-bottom: 20px; }

@media (min-width: 900px) {
  .services { padding: 64px 0 160px; }
  .svc { margin-top: 64px; }
  .svc li { grid-template-columns: 64px 1fr; padding: 28px 0; }
  .svc-foot {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .devis {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
  }
  .devis p { margin: 0; }
}

/* ---------- availability ---------- */

.dispo { padding: 0 0 96px; }

.dispo-grid {
  display: grid;
  gap: 48px;
}

.big {
  font-size: clamp(96px, 17vw, 240px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 0.2em;
}

.dispo h2 { max-width: 14em; }

.week div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--trait);
}
.week div:last-child { border-bottom: 1px solid var(--trait); }
.week dt { font-weight: 500; }
.week dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.week dd .off { color: var(--brume); font-weight: 500; }

.who-line { font-size: 20px; font-weight: 600; line-height: 1.35; }
.addr { margin-top: 24px; }
.who .link { display: inline-block; margin-top: 20px; }

@media (min-width: 900px) {
  .dispo { padding: 0 0 160px; }
  .dispo-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 96px;
    row-gap: 56px;
    align-items: start;
  }
  .dispo-head { grid-column: 1; grid-row: 1; }
  .dispo h2 { font-size: clamp(30px, 3.3vw, 48px); max-width: none; }
  .br-desk { display: block; }
  .week { grid-column: 2; grid-row: 1 / 3; align-self: start; margin-top: 8px; }
  .who { grid-column: 1; grid-row: 2; max-width: 30em; }
}

/* ---------- close on the night ground ---------- */

.close {
  background: var(--nuit);
  color: var(--jour-sur-nuit);
  border-radius: 0 var(--coin-grand) 0 0;
  padding: 80px 0 0;
}

.close-title {
  font-size: clamp(32px, 5.2vw, 76px);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 13em;
}
.close-title a {
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--menthe);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

.close .actions { margin-top: 32px; }
.close .link-night { overflow-wrap: anywhere; }

.foot {
  display: grid;
  gap: 24px;
  margin-top: 80px;
  padding: 32px 0 112px;
  border-top: 1px solid var(--trait-nuit);
  font-size: 15px;
  color: var(--brume-sur-nuit);
}
.foot a { color: var(--brume-sur-nuit); text-underline-offset: 3px; }
.foot-name {
  color: var(--jour-sur-nuit);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (min-width: 900px) {
  .close { padding-top: 112px; }
  .close-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
  }
  .close .actions { margin-top: 0; justify-content: flex-end; }
  .foot {
    grid-template-columns: 1.2fr 1.2fr 1.2fr 1fr;
    margin-top: 112px;
    padding: 40px 0 48px;
  }
  .foot-credit { text-align: right; }
}

/* ---------- the call pinned under the thumb, phone only ---------- */

.pin {
  position: fixed;
  left: var(--g);
  right: var(--g);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  background: var(--menthe);
  color: var(--nuit);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: 0 var(--coin) 0 0;
  transition: transform 300ms ease, opacity 300ms ease;
}
.js .pin { transform: translateY(160%); opacity: 0; }
.js.pin-on .pin { transform: none; opacity: 1; }

@media (min-width: 900px) {
  .pin { display: none; }
}

/* ---------- reveal ---------- */

.js .reveal > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.js .reveal.in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal > * { opacity: 1; transform: none; transition: none; }
  .btn, .link, .pin { transition: none; }
}
