/* ============================================================
   Ruth Van Coiffure, Montpellier
   Treatment B: two-colour poster.
   Palette read off the salon's own photographs by Lens:
     cream  #F4F1EA  facade panel and interior walls
     ink    #1E1E1E  wrought-iron pergola and shampoo chair
     gold   #C9A84C  fascia sign and interior 3D wall lettering
   Gold sits on ink (7.3:1) or carries near-black labels (7.3:1).
   Gold is never used as text on cream, where it measures only 2.0:1;
   --gold-ink is the darkened member of the same hue for that job (5.3:1).
   One typeface: Cormorant Garamond, self-hosted, matching their sign.
   ============================================================ */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F4F1EA;
  --ink: #1E1E1E;
  --gold: #C9A84C;
  --gold-ink: #7A5F1E;
  --ink-soft: #4A4A46;
  --rule: rgba(30, 30, 30, .18);
  --rule-gold: rgba(201, 168, 76, .38);

  --display: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* type scale: four sizes */
  --t-display: clamp(3rem, 15vw, 8.5rem);
  --t-h2: clamp(1.55rem, 5.2vw, 2.5rem);
  --t-body: 1.0625rem;
  --t-small: .8125rem;

  /* spacing scale: four steps */
  --s1: .5rem;
  --s2: 1rem;
  --s3: 2rem;
  --s4: 4rem;
  --band: clamp(3.5rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, .h-display { font-family: var(--display); font-weight: 400; }

h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
  margin: 0 0 var(--s2);
  max-width: 24ch;
}

p { margin: 0 0 var(--s2); max-width: 62ch; }

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: var(--s3); }

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---- focus + skip link ---- */
:focus-visible {
  outline: 3px solid var(--gold-ink);
  outline-offset: 3px;
}
.band--dark :focus-visible, .hero :focus-visible, .site-head :focus-visible {
  outline-color: var(--gold);
}
.skip {
  position: absolute; left: var(--s2); top: -4rem;
  z-index: 50; background: var(--gold); color: var(--ink);
  padding: .75rem var(--s2); text-decoration: none;
  transition: top 160ms ease-out;
}
.skip:focus { top: var(--s2); }

/* ---- eyebrow labels ---- */
.eyebrow {
  font-family: var(--text);
  font-size: var(--t-small);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 var(--s1);
}
.eyebrow--gold { color: var(--gold); }

/* ---- links ---- */
/* inline-flex + min-height 44px: a bare underlined anchor here was measuring
   22px tall, half the tap-target minimum, on the Maps link and the inline
   phone number. The box grows to a real tap target; the text itself is
   unchanged and stays vertically centred in it. */
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-ink);
  padding-block: .3rem;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}
.link:hover, .link:focus-visible { background: rgba(201, 168, 76, .22); }
.num { font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }

/* ---- buttons: 44px+ targets, 8px+ apart ---- */
.btn {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px;
  line-height: 1.2;
  padding: .65rem 1.35rem;
  font-family: var(--text);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 160ms ease-out, color 160ms ease-out,
              border-color 160ms ease-out, transform 160ms ease-out;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover, .btn--gold:focus-visible { background: #DCBB5C; transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--gold); border-color: var(--rule-gold); }
.btn--line:hover, .btn--line:focus-visible { border-color: var(--gold); background: rgba(201,168,76,.12); transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  background: var(--ink);
  padding: var(--s2) var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  align-items: flex-start;
}
.site-head__mark { display: block; }
.site-head__mark img { width: 200px; height: auto; }
.site-head__nav {
  display: flex; flex-wrap: wrap;
  gap: .35rem 1.4rem;
}
.site-head__nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: var(--t-small);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .8rem 0;
  min-height: 44px;
  display: inline-flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease-out, border-color 160ms ease-out;
}
.site-head__nav a:hover, .site-head__nav a:focus-visible {
  color: var(--gold); border-bottom-color: var(--gold);
}

/* ============================================================
   HERO: the poster. Butted hard against the photograph, 1px gutter.
   ============================================================ */
.hero { background: var(--ink); display: grid; gap: 1px; }

.hero__type {
  padding: var(--band) var(--s3) var(--band);
  animation: rise 420ms ease-out both;
}
/* Transform only, no opacity. An opacity fade was here before and a QA
   screenshot caught the very first frame of it: the h1 measured 1.00:1
   contrast because at t=0 the gold text was opacity:0, i.e. literally the
   same pixels as the background behind it. The text must be fully opaque
   in every frame, including the first one, so the rise uses position only. */
@keyframes rise {
  from { transform: translateY(10px); }
  to   { transform: none; }
}

.hero__title { margin: 0 0 var(--s3); }

.hero__stroke,
.hero__solid {
  display: block;
  font-size: var(--t-display);
  line-height: .96;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold);
}
/* Solid fill only. An outline (-webkit-text-stroke + transparent fill) was
   tried here and rejected: a contrast checker reads the computed `color`,
   which was transparent, so it measured as invisible even though the stroke
   painted pixels. Solid gold on ink is the same 7.3:1 pair used everywhere
   else on the page, so both lines stay legible and still register as a
   heading for assistive tech. */
.hero__solid {
  font-size: clamp(1.4rem, 5.4vw, 3rem);
  letter-spacing: .34em;
  margin-top: .35em;
  border-top: 1px solid var(--rule-gold);
  padding-top: .5em;
}
.hero__sub {
  display: block;
  max-width: 34ch;
  margin-top: var(--s3);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream);
}

.hero__now {
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  max-width: 40ch;
  margin-bottom: var(--s3);
}
.hero__now b { font-weight: 600; color: var(--gold); }
.tag {
  display: inline-block;
  margin-right: .6rem;
  padding: .2rem .6rem;
  border: 1px solid var(--rule-gold);
  color: var(--gold);
  font-size: var(--t-small);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero__acts { display: flex; flex-direction: column; gap: var(--s2); }
.hero__acts .btn { width: 100%; }
@media (min-width: 30rem) {
  .hero__acts { flex-direction: row; flex-wrap: wrap; }
  .hero__acts .btn { width: auto; }
}

.hero__shot { margin: 0; }
.hero__shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 12%;   /* keep the gold fascia sign in frame */
  filter: saturate(1.04) contrast(1.02);
}

@media (min-width: 60rem) {
  .site-head { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero { grid-template-columns: 1.05fr .95fr; align-items: stretch; }
  .hero__type { padding-inline: clamp(var(--s3), 5vw, var(--s4)); align-self: center; }
  .hero__shot img { height: 100%; aspect-ratio: auto; min-height: 34rem; object-position: 50% 18%; }
}

/* ============================================================
   BANDS
   ============================================================ */
.band { padding-block: var(--band); }
.band--edge { border-top: 1px solid var(--rule); }
.band--dark { background: var(--ink); color: var(--cream); }
.band--dark .h2--gold { color: var(--gold); }
.band--dark p { color: var(--cream); }

.lede { font-size: 1.15rem; }

.note {
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--rule);
  font-size: .95rem;
  color: var(--ink-soft);
  max-width: 54ch;
}
.dark-note { color: var(--cream); max-width: 48ch; }

/* ---- Le salon: asymmetric split, image bleeds to the right edge ---- */
.split { display: grid; gap: var(--s3); }
.split__shot { margin: 0; }
.split__shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 60% 40%;
}
figcaption {
  margin-top: .6rem;
  font-size: var(--t-small);
  letter-spacing: .04em;
  color: var(--ink-soft);
}

@media (min-width: 56rem) {
  .split { grid-template-columns: 1.15fr .85fr; gap: var(--s4); align-items: start; }
  .split__shot img { aspect-ratio: 4 / 5; }
}

/* ---- Prestations: priced-list discipline, no prices to show ---- */
.offer { display: grid; gap: var(--s3); }
.offer__list { list-style: none; margin: 0; padding: 0; }
.offer__list li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.25;
}
.offer__list li:first-child { border-top: 1px solid var(--rule); }
.offer__shot { margin: 0; }
.offer__shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 35%;
}

@media (min-width: 56rem) {
  .offer { grid-template-columns: 1fr .7fr; gap: var(--s4); align-items: start; }
}

/* ---- Horaires table ---- */
.hours {
  width: 100%;
  max-width: 30rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s3);
}
.hours th, .hours td {
  text-align: left;
  padding: .8rem .5rem;
  border-bottom: 1px solid var(--rule-gold);
}
.hours th {
  font-weight: 400;
  font-family: var(--display);
  font-size: 1.2rem;
}
.hours td { text-align: right; color: var(--gold); }
.hours__shut { color: #B8B4AA; }

/* ---- Nous trouver ---- */
.facts { margin: 0; display: grid; gap: var(--s2); }
.facts dt {
  font-size: var(--t-small);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.facts dd { margin: .25rem 0 0; }
.facts address { font-style: normal; margin-bottom: .4rem; }

@media (min-width: 42rem) {
  .facts { grid-template-columns: 10rem 1fr; gap: var(--s2) var(--s3); align-items: baseline; }
  .facts dt { grid-column: 1; }
  .facts dd { grid-column: 2; margin-top: 0; }
}

/* ---- Mentions légales ---- */
.legal-h1 {
  font-size: var(--t-h2);
  line-height: 1.1;
  margin: 0 0 var(--s3);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.legal { margin: 0 0 var(--s4); display: grid; gap: var(--s2); max-width: 46rem; }
.legal dt {
  font-size: var(--t-small);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.legal dd { margin: .25rem 0 0; }
.legal address { font-style: normal; }
.legal__todo { color: var(--ink-soft); font-style: italic; }
.legal__todo::before { content: "\2022\00a0"; font-style: normal; color: var(--gold-ink); }

@media (min-width: 42rem) {
  .legal { grid-template-columns: 14rem 1fr; gap: var(--s2) var(--s3); align-items: baseline; }
  .legal dt { grid-column: 1; }
  .legal dd { grid-column: 2; margin-top: 0; }
}

/* ---- Footer ---- */
.site-foot {
  background: var(--ink);
  color: var(--cream);
  padding-block: var(--s4);
  border-top: 1px solid var(--rule-gold);
}
.site-foot__in { display: grid; gap: var(--s2); }
.site-foot p { color: var(--cream); margin: 0; }
.site-foot__name {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-foot .link { color: var(--cream); border-bottom-color: var(--rule-gold); }
.site-foot .link:hover, .site-foot .link:focus-visible { background: rgba(201,168,76,.2); }

@media (min-width: 48rem) {
  .site-foot__in { grid-template-columns: repeat(3, auto); justify-content: space-between; align-items: start; gap: var(--s3); }
}

/* ============================================================
   MOTION OFF
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__type { animation: none; opacity: 1; transform: none; }
  .btn:hover, .btn:focus-visible { transform: none; }
}

/* ============================================================
   PRINT: hours and address on paper, for the fridge
   ============================================================ */
@media print {
  .site-head__nav, .skip, .hero__acts, .preview-banner, figure { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .band--dark, .site-foot { background: #fff !important; color: #000 !important; }
  .hero__stroke, .hero__solid, .hero__sub, .hero__now, .hero__now b,
  .band--dark p, .site-foot p, .site-foot__name, .h2--gold, .eyebrow,
  .hours td, .dark-note { color: #000 !important; }
  @supports (-webkit-text-stroke: 1px black) { .hero__stroke { -webkit-text-stroke: 0; } }
  .hero__stroke { font-size: 28pt; }
  .hero__solid { font-size: 13pt; }
  .band, .hero__type { padding-block: 1rem; }
  .hours { page-break-inside: avoid; max-width: 100%; }
  #trouver { page-break-inside: avoid; }
  .link[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .link { border: 0; }
}
