/* So Chic Ongles & Cils, first version. Colours from the salon: slate facade, white walls, tiles, black furniture,
   one lacquer red for the call. */

@font-face {
  font-family: "Courgette";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/courgette-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/jost-latin.woff2") format("woff2");
}

:root {
  --ardoise: #4f5755;
  --ardoise-clair: #8a918e;
  --blanc: #f6f5f2;
  --carrelage: #e6e6e3;
  --noir: #1d1f1e;
  --laque: #7d2230;
  --laque-fonce: #641a25;
  --sur-ardoise: rgba(255, 255, 255, 0.8);
  --trait: rgba(29, 31, 30, 0.14);
  --script: "Courgette", "Brush Script MT", cursive;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --wrap: 1400px;
  --gutter: 16px;
  --top: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--noir);
  background: var(--blanc);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--laque); text-underline-offset: 3px; }
a[href^="tel:"] { white-space: nowrap; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  font: 500 16px/1 var(--sans); letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 2px;
  transition: background-color 300ms, color 300ms, border-color 300ms;
}
.btn-call { background: var(--laque); color: #fff; }
.btn-line { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-line.dark { border-color: var(--noir); color: var(--noir); }
@media (hover: hover) and (pointer: fine) {
  .btn-call:hover { background: var(--laque-fonce); }
  .btn-line:hover { background: #fff; color: var(--ardoise); }
  .btn-line.dark:hover { background: var(--noir); color: #fff; }
}
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--ardoise); color: #fff;
  height: var(--top);
}
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--script); font-size: 22px; line-height: 1; color: #fff; text-decoration: none; white-space: nowrap; transition: opacity 300ms; }
.js .home .top:not(.past) .brand { opacity: 0; pointer-events: none; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: #fff; text-decoration: none; font-size: 15px; letter-spacing: 0.04em; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.top .btn-call { min-height: 40px; padding: 0 16px; font-size: 15px; }
.menu-btn {
  display: none;
  background: none; border: 0; color: #fff; font: 500 15px/1 var(--sans); letter-spacing: 0.04em;
  min-height: 44px; padding: 0 0 0 16px; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration: underline; text-underline-offset: 6px; } }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .top .btn-call { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--top);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ardoise); padding: 0 var(--gutter) 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; font-size: 18px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
}

/* Hero: the sign above, the window below */
.hero {
  background: var(--ardoise); color: #fff;
  min-height: calc(100vh - var(--top));
  min-height: calc(100svh - var(--top));
  display: flex; flex-direction: column;
}
.sign { padding-top: 32px; padding-bottom: 24px; }
.sign-name {
  font-family: var(--script); font-weight: 400;
  font-size: 46px; line-height: 1.12;
  display: flex; flex-direction: column; gap: 0;
}
.sign-name .l { display: flex; align-items: center; gap: 16px; }
.sign-name .l2 { justify-content: flex-start; }
.sign-name .rule { flex: 1; height: 2px; min-width: 24px; background: rgba(255, 255, 255, 0.75); margin-top: 0.12em; }
.sign-titles {
  margin-top: 16px;
  font-size: 13px; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sur-ardoise);
  text-wrap: balance;
}
.sign-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.proof { display: flex; align-items: baseline; gap: 8px; color: var(--sur-ardoise); font-size: 15px; }
.proof strong { font-size: 22px; font-weight: 500; color: #fff; letter-spacing: 0.01em; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 140px; padding: 0 16px; }

.vitrine { flex: 1; display: flex; padding: 0 var(--gutter) var(--gutter); min-height: 300px; }
.vitrine-inner { flex: 1; display: grid; grid-template-columns: 1fr; gap: 4px; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; width: 100%; }
.vitrine figure { position: relative; overflow: hidden; background: var(--ardoise-clair); }
.vitrine img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vitrine .v-nude img { object-position: 50% 38%; }
.vitrine .v-salon, .vitrine .v-rouge { display: none; }

@media (min-width: 700px) {
  .sign-name { font-size: 64px; }
}
@media (min-width: 1000px) {
  :root { --gutter: 40px; }
  .sign { padding-top: 56px; padding-bottom: 32px; }
  .sign-name { flex-direction: row; font-size: clamp(64px, 6.4vw, 96px); line-height: 1.15; }
  .sign-name .l { flex: 1 1 auto; }
  .sign-name .l1 { justify-content: flex-end; }
  .sign-name .l1 .txt { margin-right: 0.28em; }
  .sign-titles { margin-top: 8px; font-size: 14px; text-align: center; }
  .sign-foot { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 32px; }
  .actions .btn { flex: 0 0 auto; padding: 0 28px; }
  .vitrine-inner { grid-template-columns: 1fr 2fr 1fr; }
  .vitrine .v-salon, .vitrine .v-rouge { display: block; }
  .vitrine .v-salon img { object-position: 50% 60%; }
}

/* Pinned call on the phone */
.pin {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--blanc);
  box-shadow: 0 -1px 0 var(--trait);
  transform: translateY(110%); transition: transform 300ms;
}
.pin.show { transform: none; }
.pin .btn { width: 100%; }
@media (min-width: 861px) { .pin { display: none; } }

/* Sections */
.section { padding: 64px 0; }
.section.tiles { background: var(--carrelage); }
.section.slate { background: var(--ardoise); color: #fff; }
.h2 { font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -0.005em; text-wrap: balance; }
.lead { font-size: 19px; line-height: 1.55; }
.label { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ardoise); }
.slate .label { color: var(--sur-ardoise); }
@media (min-width: 1000px) {
  .section { padding: 112px 0; }
  .h2 { font-size: 52px; }
  .lead { font-size: 22px; }
}

/* Reviews */
.quotes { display: grid; gap: 40px; }
.quote-big blockquote { font-size: 26px; line-height: 1.35; font-weight: 300; text-wrap: pretty; }
.quote-big blockquote::before { content: "\00AB\00A0"; }
.quote-big blockquote::after { content: "\00A0\00BB"; }
.quote cite, .quote-big cite { display: block; margin-top: 16px; font-style: normal; font-size: 15px; color: var(--ardoise); }
.quote-small { display: grid; gap: 32px; align-content: start; }
.quote blockquote { font-size: 19px; line-height: 1.5; }
.quote blockquote::before { content: "\00AB\00A0"; }
.quote blockquote::after { content: "\00A0\00BB"; }
.quotes-src { font-size: 15px; color: var(--ardoise); }
@media (min-width: 1000px) {
  .quotes { grid-template-columns: 7fr 4fr; gap: 96px; align-items: start; }
  .quote-big blockquote { font-size: 44px; line-height: 1.22; }
  .quote-small { padding-top: 16px; gap: 40px; }
  .quote blockquote { font-size: 24px; line-height: 1.4; font-weight: 300; }
}

/* Prices */
.carte { display: grid; gap: 40px; }
.carte-head .h2 { max-width: 14em; }
.carte-head p { margin-top: 16px; max-width: 30em; }
.rows { border-top: 1px solid var(--trait); }
.row {
  display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 2px;
  padding: 16px 0; border-bottom: 1px solid var(--trait);
}
.row-name { font-size: 18px; font-weight: 500; }
.row-time { grid-column: 1; font-size: 15px; color: var(--ardoise); }
.row-price { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 22px; font-weight: 400; white-space: nowrap; }
.row-price.ask { font-size: 15px; color: var(--ardoise); }
.row-note { grid-column: 1 / -1; font-size: 15px; color: var(--ardoise); margin-top: 4px; }
.more { display: inline-flex; margin-top: 24px; font-weight: 500; }
@media (min-width: 1000px) {
  .carte { grid-template-columns: 5fr 6fr; gap: 96px; align-items: start; }
  .row { padding: 20px 0; }
  .row-name { font-size: 20px; }
  .row-price { font-size: 26px; }
}

/* Work */
.work { padding: 0; background: var(--blanc); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.work-grid figure { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--carrelage); }
.work-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-grid figcaption {
  position: absolute; left: 8px; bottom: 8px;
  background: var(--blanc); color: var(--noir);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px;
}
.work-text { padding-top: 40px; padding-bottom: 64px; display: grid; gap: 16px; }
@media (min-width: 1000px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-text { padding-top: 56px; padding-bottom: 112px; grid-template-columns: 5fr 6fr; gap: 96px; align-items: baseline; }
}

/* Salon and Florence */
.salon-photo { margin: 0 calc(-1 * var(--gutter)); }
.salon-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.salon-body { display: grid; gap: 40px; margin-top: 40px; }
.salon-text p + p { margin-top: 16px; }
.salon-text .h2 { margin-bottom: 24px; }
.salon-side { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.salon-side figcaption { margin-top: 8px; font-size: 15px; color: var(--ardoise); line-height: 1.45; }
.salon-side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.salon-side .wide img { aspect-ratio: 3 / 2; }
@media (min-width: 1000px) {
  .salon-photo { margin: 0; }
  .salon-photo img { aspect-ratio: 21 / 9; }
  .salon-body { grid-template-columns: 5fr 6fr; gap: 96px; margin-top: 64px; }
  .salon-side { grid-template-columns: 1fr 1fr; gap: 24px; }
  .salon-side .wide img { aspect-ratio: 4 / 5; }
}

/* Find us */
.find { display: grid; gap: 40px; }
.find-street { font-size: 24px; font-weight: 400; line-height: 1.3; margin-top: 8px; }
.nw { white-space: nowrap; }
.find-access { margin-top: 8px; color: var(--sur-ardoise); }
.find-phone { display: inline-block; margin-top: 24px; font-size: 28px; color: #fff; text-decoration: none; letter-spacing: 0.02em; }
.find .actions { margin-top: 24px; }
.hours { width: 100%; border-collapse: collapse; font-size: 17px; }
.hours caption { text-align: left; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sur-ardoise); padding-bottom: 8px; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.hours td { text-align: right; }
.hours td span + span::before { content: " · "; }
.hours .off { color: var(--sur-ardoise); }
.hours tr.today th, .hours tr.today td { font-weight: 600; }
.hours tr.today th::after { content: "aujourd'hui"; margin-left: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sur-ardoise); }
.front img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.front figcaption { margin-top: 8px; font-size: 15px; color: var(--sur-ardoise); }
@media (min-width: 1000px) {
  .find { grid-template-columns: 4fr 4fr 4fr; gap: 64px; align-items: start; }
  .find-street { font-size: 30px; }
}

/* Close */
.close { text-align: left; }
.close .h2 { max-width: 16em; }
.close p { margin-top: 16px; }
.close .btn { margin-top: 32px; }
@media (min-width: 1000px) {
  .close .wrap { display: grid; grid-template-columns: 7fr 4fr; gap: 96px; align-items: end; }
  .close .btn { margin-top: 0; justify-self: start; }
}

/* Footer */
.foot { background: var(--noir); color: rgba(255, 255, 255, 0.82); padding: 48px 0 112px; font-size: 15px; }
.foot .brand { font-size: 28px; }
.foot-grid { display: grid; gap: 24px; }
.foot a { color: #fff; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; }
.foot-legal a { color: rgba(255, 255, 255, 0.82); }
.foot-made { color: rgba(255, 255, 255, 0.6); }
@media (min-width: 1000px) {
  .foot { padding: 64px 0; }
  .foot-grid { grid-template-columns: 4fr 4fr 4fr; align-items: start; }
}

/* Prestations page */
.page-head { background: var(--ardoise); color: #fff; padding: 48px 0 56px; }
.page-head h1 { font-weight: 400; font-size: 40px; line-height: 1.1; display: flex; align-items: center; gap: 24px; }
.page-head h1::after { content: ""; flex: 1; min-width: 24px; height: 2px; background: rgba(255, 255, 255, 0.75); margin-top: 0.1em; }
.page-head p { margin-top: 16px; max-width: 34em; color: var(--sur-ardoise); }
.page-head .deco { color: #fff; font-size: 19px; }
.menu-layout { display: grid; gap: 48px; }
.group + .group { margin-top: 56px; }
.group h2 { font-weight: 400; font-size: 28px; line-height: 1.2; text-wrap: balance; }
.group > p { margin-top: 8px; color: var(--ardoise); font-size: 16px; max-width: 34em; }
.group .rows { margin-top: 16px; }
.menu-side { display: grid; gap: 16px; align-content: start; }
.menu-side img { width: 100%; object-fit: cover; }
.menu-side figcaption { margin-top: 8px; font-size: 15px; color: var(--ardoise); }
@media (min-width: 1000px) {
  .page-head { padding: 80px 0 88px; }
  .page-head h1 { font-size: 72px; }
  .menu-layout { grid-template-columns: 7fr 4fr; gap: 96px; }
  .menu-side { position: sticky; top: calc(var(--top) + 32px); }
  .group h2 { font-size: 36px; }
}

/* 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) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pin, .btn { transition: none; }
}
