@font-face {
  font-family: "Lexend";
  src: url("fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --pierre: #EEECE7;
  --facade: #D8C49F;
  --ardoise: #3D4852;
  --encre: #1D2327;
  --ciel: #2A5B8C;
  --ciel-fonce: #214a73;
  --gutter: 24px;
  --radius: 4px;
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pierre);
  color: var(--encre);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
  overflow-x: hidden;
}
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3, .lead, .proof, .close-title { text-wrap: balance; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ciel); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: var(--radius);
  background: var(--ciel);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s ease;
}
.btn-main::before, .btn-call::before { content: "Appeler le\00a0"; font-weight: 500; }
.link {
  color: var(--ciel);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.link-plan {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ciel);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Header: desktop only, the call one click away */
.bar { display: none; }

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero-in {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  padding-bottom: 32px;
}
.role {
  font-size: 17px;
  font-weight: 600;
  color: var(--ardoise);
  margin-bottom: 12px;
}
.name {
  font-size: clamp(56px, min(23vw, 18vh), 168px);
  line-height: .92;
  font-weight: 760;
  letter-spacing: -0.025em;
}
.name span { display: block; }
.hero-side { margin-top: 32px; }
.lead {
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.35;
  font-weight: 500;
}
.proof {
  position: relative;
  z-index: 1;
  padding-top: 20px;
  max-width: 22em;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}
.nw { white-space: nowrap; }
.actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}
.actions .btn { width: 100%; }

/* The 307: the street number in the colour of the render */
.facade {
  --F: clamp(180px, 52vw, 780px);
  background: var(--facade);
  flex: 1 0 auto;
  min-height: calc(var(--F) * .64 + 92px);
  overflow: hidden;
  position: relative;
}
.facade .wrap { position: absolute; inset: 0; left: 50%; transform: translateX(-50%); }
.num {
  position: absolute;
  left: var(--gutter);
  bottom: calc(var(--F) * -.245);
  margin-left: -.07em;
  font-size: var(--F);
  line-height: 1;
  font-weight: 250;
  letter-spacing: -0.035em;
  color: var(--pierre);
  user-select: none;
}

/* Fees */
.fees { padding-block: 72px; }
.title {
  font-size: clamp(32px, 6.4vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.fees-text { margin-top: 24px; max-width: 36em; }
.fees-lead {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  font-weight: 700;
}
.fees-text p + p { margin-top: 16px; }
.fees-text .fees-lead + p { margin-top: 12px; }

/* Find us, on the render colour */
.place {
  background: var(--facade);
  padding-block: 72px;
}
.address {
  white-space: pre-line;
  font-size: clamp(32px, 6.4vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.place-about { margin-top: 24px; max-width: 32em; }
.place-about p + p { margin-top: 16px; }
.place .link { color: var(--encre); }
.hours { margin-top: 48px; }
.hours-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.week li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid rgba(29, 35, 39, .18);
}
.week li:first-child { border-top: 1px solid rgba(29, 35, 39, .18); }
.day { font-weight: 600; }
.slots { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
.slots .off { color: var(--ardoise); }
.hours-note { margin-top: 16px; }
.hours-note a { font-weight: 700; white-space: nowrap; }

/* Close */
.close { padding-block: 72px 88px; }
.close-title {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  font-weight: 600;
  color: var(--ardoise);
}
.big-tel {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(40px, 11.4vw, 128px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ciel);
  text-decoration: none;
  white-space: nowrap;
}

/* Footer */
.foot {
  background: var(--ardoise);
  color: var(--pierre);
  padding-block: 48px 120px;
  font-size: 16px;
}
.foot-in { display: grid; gap: 24px; }
.foot-name { font-weight: 700; font-size: 18px; }
.foot-name span { font-weight: 400; }
.foot-contact span { white-space: pre-line; }
.foot a { color: var(--pierre); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-legal a { display: inline-flex; min-height: 44px; align-items: center; }
.foot-credit { color: rgba(238, 236, 231, .72); }

/* Phone: one action pinned under the thumb */
.pin {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--ciel);
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  transition: transform .3s ease, visibility .3s;
}
.pin::before { content: "Appeler le cabinet"; font-weight: 500; }
.js .pin.hide { transform: translateY(100%); visibility: hidden; }

@media (min-width: 768px) {
  :root { --gutter: 48px; }
  .actions .btn { width: auto; }
  .fees, .place { padding-block: 112px; }
  .close { padding-block: 112px 128px; }
  .place-about { max-width: 36em; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .fees-in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .fees-text { margin-top: 10px; }
  .place-in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 64px;
  }
  .address { grid-column: 1 / -1; }
  .place-about { grid-column: 1; grid-row: 2; }
  .hours { margin-top: 24px; grid-column: 1 / -1; }
  .week { display: grid; grid-template-columns: repeat(7, 1fr); column-gap: 16px; }
  .week li, .week li:first-child {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    min-height: 112px;
    padding: 12px 16px 16px 0;
    border-bottom: 0;
    border-top: 2px solid var(--encre);
  }
  .slots { flex-direction: column; justify-content: flex-start; gap: 4px; }
  .foot { padding-bottom: 48px; }
  .pin { display: none; }
}

@media (min-width: 1024px) {
  .bar {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 20;
    background: var(--pierre);
    transition: transform .3s ease;
  }
  .js .bar.top { transform: translateY(-100%); }
  html:not(.js) .hero-in { padding-top: 104px; }
  .bar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
  }
  .mark {
    font-weight: 760;
    font-size: 20px;
    text-decoration: none;
    transition: opacity .3s ease;
  }
  .btn-call { min-height: 48px; font-size: 17px; }
  .hero-in {
    padding-top: 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 72px;
    align-items: end;
  }
  .role { grid-column: 1 / -1; grid-row: 1; }
  .name, .hero-side { grid-row: 2; }
  .hero-side { margin-top: 0; padding-top: 0; padding-bottom: 14px; max-width: 30em; }
  .facade { --F: clamp(300px, 54vw, 760px); min-height: calc(var(--F) * .56 + 56px); }
  .proof { padding-top: 24px; max-width: none; }
  .num { bottom: calc(var(--F) * -.325); }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ciel-fonce); }
  .link:hover, .link-plan:hover { text-decoration-thickness: 3px; }
  .big-tel:hover { color: var(--ciel-fonce); }
}

/* Reveal, once */
.js .reveal > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.js .reveal.is-in > * { opacity: 1; transform: none; }
.js .reveal.is-in > *:nth-child(2) { transition-delay: .08s; }
.js .reveal.is-in > *:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal > * { opacity: 1; transform: none; transition: none; }
  .pin, .btn, .bar { transition: none; }
}
