/* Marielle Gomez-Rey, première version. Palette taken from the building at 307 avenue Félix-Geneslay. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
}

:root {
  --enduit: #E4D7C3;
  --auvent: #F6F5F1;
  --plaque: #1D1F24;
  --gravure: #F2EFE8;
  --ardoise: #5B6170;
  --email: #24489B;
  --email-dark: #1A3778;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px; --s12: 96px; --s16: 128px;
  --gutter: 16px;
  --radius: 4px;
  --top: 64px;
  --dock: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); }
body {
  margin: 0;
  background: var(--auvent);
  color: var(--plaque);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  font-stretch: 100%;
  padding-bottom: var(--dock);
}
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: var(--email); text-underline-offset: 0.2em; }
img { display: block; max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--s2); top: var(--s2); z-index: 20; background: var(--plaque); color: var(--gravure); padding: var(--s1) var(--s2); }
:focus-visible { outline: 3px solid var(--email); outline-offset: 3px; }

/* The enamel house number over the door */
.plate {
  display: inline-grid;
  place-items: center;
  background: var(--email);
  color: #fff;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1;
  border-radius: var(--radius);
  outline: 2px solid #fff;
  outline-offset: -5px;
  font-size: 14px;
  min-width: 52px;
  height: 34px;
  padding: 0 10px;
  font-variant-numeric: tabular-nums;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--s3);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease;
}
.btn--call { background: var(--email); color: #fff; }
.btn--line { color: var(--plaque); box-shadow: inset 0 0 0 1.5px var(--plaque); }
.btn--big { min-height: 60px; padding: 0 var(--s4); font-size: 18px; }
.link { font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
  .btn--call:hover { background: var(--email-dark); }
  .btn--line:hover { background: var(--plaque); color: var(--gravure); }
  .link:hover { color: var(--email-dark); }
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--auvent);
}
.top__in { display: flex; align-items: center; justify-content: space-between; height: var(--top); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--plaque); text-decoration: none; }
.brand__name { font-weight: 650; font-stretch: 112%; font-size: 16px; letter-spacing: 0.01em; }
.top__call { display: none; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--top) - var(--dock));
}
.hero__wall {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  background: var(--enduit);
  padding: var(--s6) var(--gutter);
  min-height: 280px;
}
.plaque {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 3 / 2;
  background: var(--plaque);
  color: var(--gravure);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--s3) var(--s4);
}
.plaque__name {
  font-weight: 700;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 23px;
  line-height: 1.15;
}
.plaque__name span { display: block; }
.plaque__job {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(242, 239, 232, 0.45);
  font-weight: 500;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}
.plaque__note { margin-top: 6px; font-size: 13px; letter-spacing: 0.02em; opacity: 0.85; }
.screw {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #7A7E88;
}
.screw::after {
  content: '';
  position: absolute;
  left: 1px; right: 1px; top: 4px;
  height: 1px;
  background: #3A3D45;
  transform: rotate(-35deg);
}
.screw--tl { top: 12px; left: 12px; }
.screw--tr { top: 12px; right: 12px; }
.screw--bl { bottom: 12px; left: 12px; }
.screw--br { bottom: 12px; right: 12px; }
.screw--tr::after, .screw--bl::after { transform: rotate(50deg); }

.hero__text { padding: var(--s4) var(--gutter) var(--s4); }
.hero__lead { font-size: 21px; line-height: 1.3; font-weight: 500; max-width: 10em; }
.bignum {
  display: inline-block;
  margin-top: var(--s2);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 650;
  color: var(--plaque);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.actions { display: flex; gap: 12px; margin-top: var(--s3); }
.hero__call { display: none; }
.hero__proof { margin-top: var(--s2); font-size: 14px; font-weight: 500; color: var(--ardoise); }

/* À domicile */
.care { padding: var(--s12) 0 var(--s6); }
.care__title {
  font-weight: 700;
  font-stretch: 125%;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.005em;
}
.care__body { margin-top: var(--s4); max-width: 36rem; }
.care__text { font-size: 20px; line-height: 1.45; }
.care__fees { margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid rgba(91, 97, 112, 0.35); }
.care__fees h3, .hours h3 {
  font-size: 13px;
  font-weight: 650;
  font-stretch: 115%;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ardoise);
}
.care__fees p { margin-top: 6px; }
.care .link { display: inline-block; margin-top: var(--s3); }

/* Le cabinet */
.place { padding: var(--s6) 0 var(--s12); }
.place__in { display: grid; gap: var(--s4); }
.place__door {
  background: var(--enduit);
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
}
.plate--big { font-size: 64px; min-width: 0; height: auto; padding: 18px 30px 16px; outline-width: 4px; outline-offset: -11px; border-radius: 8px; }
.place__title { font-weight: 700; font-stretch: 125%; font-size: 30px; line-height: 1.1; }
.place__address { margin-top: var(--s2); font-size: 22px; line-height: 1.35; font-weight: 500; white-space: pre-line; }
.place__access { margin-top: var(--s1); color: var(--ardoise); }
.place .link { display: inline-block; margin-top: var(--s2); }

.hours { margin-top: var(--s6); max-width: 26rem; }
.hours dl { margin-top: var(--s1); }
.hours dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(91, 97, 112, 0.2);
}
.hours dt { font-weight: 500; }
.hours dd { display: flex; gap: 12px; font-variant-numeric: tabular-nums; }
.slot-empty { color: var(--ardoise); font-size: 14px; }
.off { color: var(--ardoise); }

/* Marielle */
.who { background: var(--plaque); color: var(--gravure); padding: var(--s8) 0; }
.who__in { display: grid; gap: var(--s3); }
.who__date {
  font-weight: 700;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.who__date span { display: block; font-size: 64px; letter-spacing: 0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.who__title { font-size: 13px; font-weight: 650; font-stretch: 115%; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; }
.who__body p { margin-top: var(--s1); font-size: 20px; line-height: 1.45; max-width: 15em; }

/* Close */
.close { background: var(--enduit); padding: var(--s12) 0; }
.close__in { display: grid; gap: var(--s4); justify-items: start; }
.close__title { font-weight: 700; font-stretch: 115%; font-size: 28px; line-height: 1.15; }
.close__title > span { display: block; }
.nw { white-space: nowrap; }
.close__num { margin-top: 0; }

/* Footer */
.foot { padding: var(--s6) 0 var(--s4); font-size: 15px; color: var(--ardoise); }
.foot__in { display: grid; gap: 6px; }
.foot a { color: var(--plaque); }
.foot__name { color: var(--plaque); font-weight: 650; }
.foot__address { white-space: pre-line; }
.foot__legal { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); font-size: 14px; }
.foot__legal a { color: var(--ardoise); }
.foot__credit { margin-top: var(--s2); font-size: 13px; }

/* The call, pinned under the thumb on the phone */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--dock) - 8px);
  margin: 0 var(--s1) calc(var(--s1) + env(safe-area-inset-bottom));
  border-radius: var(--radius);
  background: var(--email);
  color: #fff;
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
}

/* Section reveal */
.js .reveal > .wrap > * { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in > .wrap > * { opacity: 1; transform: none; }
.js .reveal.is-in > .wrap > *:nth-child(2) { transition-delay: .08s; }
.js .reveal.is-in > .wrap > *:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal > .wrap > * { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Tablet */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .plaque { width: min(100%, 500px); padding: var(--s4) var(--s6); }
  .plaque__name { font-size: 36px; }
  .plaque__job { margin-top: 18px; padding-top: 16px; font-size: 14px; }
  .plaque__note { margin-top: 8px; font-size: 16px; }
  .screw { width: 11px; height: 11px; }
  .screw::after { top: 5px; }
  .screw--tl { top: 16px; left: 16px; } .screw--tr { top: 16px; right: 16px; }
  .screw--bl { bottom: 16px; left: 16px; } .screw--br { bottom: 16px; right: 16px; }
  .hero__lead { font-size: 24px; }
  .place__door { aspect-ratio: 5 / 2; }
  .plate--big { font-size: 88px; padding: 22px 40px 20px; outline-width: 5px; outline-offset: -13px; border-radius: 10px; }
  .who__date span { font-size: 112px; }
  .dock { left: 50%; right: auto; width: 480px; margin-left: -240px; }
  .actions { max-width: 460px; }
  .bignum { font-size: 52px; }
  .care__title { font-size: 56px; }
  .place__title, .close__title { font-size: 40px; }
}

/* Desktop */
@media (min-width: 960px) {
  :root { --gutter: 48px; --top: 80px; --dock: 0px; }
  body { font-size: 18px; }
  .dock { display: none; }
  .top__call { display: inline-flex; min-height: 48px; }
  .plate { font-size: 15px; height: 38px; min-width: 58px; }
  .brand__name { font-size: 17px; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    min-height: calc(100vh - var(--top));
    max-width: none;
  }
  .hero__text {
    order: -1;
    align-self: center;
    padding: var(--s8) var(--s6) var(--s8) max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter)));
  }
  .hero__wall { padding: var(--s8); }
  .plaque { width: min(100%, 600px); padding: var(--s6) var(--s8); }
  .plaque__name { font-size: 48px; letter-spacing: 0.05em; }
  .plaque__job { margin-top: 24px; padding-top: 20px; font-size: 16px; }
  .plaque__note { margin-top: 10px; font-size: 18px; }
  .screw { width: 12px; height: 12px; }
  .screw::after { top: 5.5px; }
  .screw--tl { top: 18px; left: 18px; } .screw--tr { top: 18px; right: 18px; }
  .screw--bl { bottom: 18px; left: 18px; } .screw--br { bottom: 18px; right: 18px; }
  .hero__lead { font-size: 28px; }
  .bignum { font-size: 72px; margin-top: var(--s3); }
  .actions { margin-top: var(--s4); }
  .hero__call { display: inline-flex; }
  .actions .btn { padding: 0 var(--s4); }
  .hero__proof { margin-top: var(--s3); font-size: 15px; }

  .care { padding: var(--s16) 0 var(--s12); }
  .care__in { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; }
  .care__title { font-size: 80px; white-space: nowrap; }
  .care__body { margin-top: 12px; }
  .care__text { font-size: 24px; }

  .place { padding: var(--s8) 0 var(--s16); }
  .place__in { grid-template-columns: 7fr 5fr; gap: var(--s12); align-items: center; }
  .place__door { aspect-ratio: 3 / 2; }
  .plate--big { font-size: 128px; height: auto; min-width: 0; padding: 30px 56px 26px; outline-width: 6px; outline-offset: -16px; border-radius: 12px; }
  .place__title { font-size: 48px; }
  .place__address { font-size: 26px; }

  .who { padding: var(--s12) 0; }
  .who__in { grid-template-columns: 7fr 5fr; gap: var(--s12); align-items: end; }
  .who__date { font-size: 32px; }
  .who__date span { font-size: 168px; line-height: 0.85; margin-top: 12px; }
  .who__body p { font-size: 24px; }

  .close { padding: var(--s16) 0; }
  .close__in { grid-template-columns: 1fr auto; align-items: end; }
  .close__num { font-size: 56px; line-height: 1; }
  .close__title { font-size: 56px; }

  .foot__in { grid-template-columns: repeat(3, auto) 1fr; column-gap: var(--s6); align-items: baseline; }
  .foot__legal, .foot__credit { grid-column: 1 / -1; }
}
