/* ==========================================================================
   Nice Cut mp Coiffure — warm paper + hand-drawn ink
   ========================================================================== */

:root {
  --bg:        #f8f2e2;
  --bg-warm:   #f2e8d2;
  --bg-deep:   #e8dcc0;
  --ink:       #0a0a0a;
  --ink-soft:  #4a4438;
  --ink-faint: #8a8272;
  --accent:    #c8452c;   /* terre cuite niçoise */
  --accent-2:  #1f5c4a;   /* vert olive profond */
  --paper:     #fdfaf1;
  --rule:      #0a0a0a;

  --wrap: 68rem;
  --pad: clamp(1.25rem, 5vw, 3rem);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-ink: 3px 3px 0 var(--ink);
}

/* dark mode — ink paper inverted, still warm, never pure black/white */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #17150f;
    --bg-warm:   #1e1b13;
    --bg-deep:   #262218;
    --ink:       #f4ecd8;
    --ink-soft:  #c9c0a8;
    --ink-faint: #8d8674;
    --accent:    #e8704f;
    --accent-2:  #6fbf9c;
    --paper:     #12100b;
    --rule:      #f4ecd8;
    --shadow-ink: 3px 3px 0 rgba(244, 236, 216, 0.35);
  }
}

/* manual override wins over the media query */
html[data-theme="light"] {
  --bg:#f8f2e2; --bg-warm:#f2e8d2; --bg-deep:#e8dcc0;
  --ink:#0a0a0a; --ink-soft:#4a4438; --ink-faint:#8a8272;
  --accent:#c8452c; --accent-2:#1f5c4a; --paper:#fdfaf1; --rule:#0a0a0a;
  --shadow-ink: 3px 3px 0 #0a0a0a;
}
html[data-theme="dark"] {
  --bg:#17150f; --bg-warm:#1e1b13; --bg-deep:#262218;
  --ink:#f4ecd8; --ink-soft:#c9c0a8; --ink-faint:#8d8674;
  --accent:#e8704f; --accent-2:#6fbf9c; --paper:#12100b; --rule:#f4ecd8;
  --shadow-ink: 3px 3px 0 rgba(244,236,216,0.35);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); font-weight: 600; }

p { margin: 0 0 1.1em; }

a { color: inherit; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 0.75rem 1.25rem; z-index: 100;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Scroll progress — a strip that belongs to the page, not floating chrome
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  z-index: 60;
}
.progress__fill {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: fill linear both;
  animation-timeline: scroll(root block);
}
@keyframes fill { to { transform: scaleX(1); } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  min-height: 44px;
}
.brand__mark { color: var(--accent); display: inline-flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand__text em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  font-size: 0.92rem;
}
.site-nav a {
  text-decoration: none;
  padding: 0.55rem 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); }
.nav-tel {
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1rem !important;
  background: var(--ink);
  color: var(--bg);
}
.nav-tel:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  background: transparent;
  color: var(--ink);
  border: 2px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.theme-toggle:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* --------------------------------------------------------------------------
   Hand-drawn scribble underline
   -------------------------------------------------------------------------- */
mark.scribble {
  background: none;
  color: inherit;
  position: relative;
  padding-bottom: 0.12em;
  white-space: nowrap;
}
mark.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.12em;
  height: 0.42em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 13 C 30 4, 52 17, 80 9 S 132 3, 158 12 S 186 8, 198 6' fill='none' stroke='%23c8452c' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M6 17 C 40 11, 70 19, 104 13 S 160 9, 194 14' fill='none' stroke='%23c8452c' stroke-width='1.6' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
@media (prefers-color-scheme: dark) {
  mark.scribble::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 13 C 30 4, 52 17, 80 9 S 132 3, 158 12 S 186 8, 198 6' fill='none' stroke='%23e8704f' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M6 17 C 40 11, 70 19, 104 13 S 160 9, 194 14' fill='none' stroke='%23e8704f' stroke-width='1.6' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  }
}

/* --------------------------------------------------------------------------
   Hover footnote annotations
   -------------------------------------------------------------------------- */
.note {
  position: relative;
  border-bottom: 1px dotted var(--ink-soft);
  cursor: help;
}
.note::after {
  content: attr(data-note);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.7rem);
  transform: translate(-50%, 0.35rem);
  width: max-content;
  max-width: min(19rem, 78vw);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 3px;
  box-shadow: var(--shadow-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
  text-align: left;
  white-space: normal;
}
.note:hover::after,
.note:focus-visible::after,
.note:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (hover: none) {
  .note { border-bottom-style: solid; border-bottom-width: 1px; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 2px;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}
.btn--ink { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-ink); }
.btn--ink:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translate(-1px, -1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--paper { background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--accent); }
.btn--paper:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--accent); }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--bg);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0 1.25rem;
}
.hero-note { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent);
  filter: saturate(0.92) contrast(1.03);
}
.hero-figure figcaption,
.salon-figures figcaption {
  margin-top: 0.85rem;
  font-size: 0.84rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Services — the menu block
   -------------------------------------------------------------------------- */
.services {
  background: var(--bg-warm);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-sub { color: var(--ink-soft); margin: 0; }

.menu {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 52rem) {
  .menu { grid-template-columns: 1fr 1fr; }
}
.menu-block h3 {
  border-bottom: 2px solid var(--rule);
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.menu-block h3::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
  transform: translateY(-0.1em);
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1.25rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.item:last-child { border-bottom: 0; }
.item__name { font-weight: 700; }
.item__name small {
  display: block;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 0.15rem;
}
.item__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.menu-foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Le salon
   -------------------------------------------------------------------------- */
.salon {
  background: var(--bg-deep);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.salon-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 56rem) {
  .salon-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.salon-copy p { color: var(--ink-soft); }
.salon-copy strong { color: var(--ink); }
.salon-figures { display: grid; gap: 1.75rem; }
.salon-figures figure { margin: 0; }
.salon-figures img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 2px solid var(--ink);
  filter: saturate(0.9);
}
.salon-figures figure:first-child img { box-shadow: -7px 7px 0 var(--accent-2); }
.salon-figures figure:last-child img { box-shadow: 7px 7px 0 var(--accent); }

.pull {
  margin: 2rem 0 0;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}
.pull cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Infos pratiques — three cards
   -------------------------------------------------------------------------- */
.infos {
  background: var(--bg);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.footer-cards {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 48rem) {
  .footer-cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--ink) 22%, transparent);
}
.card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
}
.card-note { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.card-note.small { font-size: 0.82rem; margin: 0.9rem 0 0; }
.addr { font-size: 1.05rem; line-height: 1.5; margin-bottom: 0.9rem; }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}
.hours th, .hours td { padding: 0.42rem 0; text-align: left; }
.hours th { font-weight: 500; color: var(--ink-soft); }
.hours td { text-align: right; font-weight: 700; }
.hours tr + tr th, .hours tr + tr td {
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.hours .closed th, .hours .closed td { color: var(--ink-faint); font-weight: 400; }
.hours .closed td { font-style: italic; }
.hours .is-today th,
.hours .is-today td { color: var(--accent); font-weight: 700; }
.hours .is-today th::after {
  content: "aujourd'hui";
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.75;
}

.link-out {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  min-height: 44px;
  line-height: 44px;
}
.link-out:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Avis
   -------------------------------------------------------------------------- */
.avis {
  background: var(--accent-2);
  color: #f6f1e4;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.avis-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .avis-grid { grid-template-columns: 0.7fr 1.3fr; }
}
.score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
  line-height: 0.9;
  margin: 0;
  letter-spacing: -0.04em;
}
.score span { font-size: 0.35em; font-weight: 400; opacity: 0.7; }
.score-label {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}
.avis-quotes { display: grid; gap: 1.5rem; }
@media (min-width: 62rem) {
  .avis-quotes { grid-template-columns: repeat(3, 1fr); }
}
.avis-quotes figure { margin: 0; }
.avis-quotes blockquote {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
  line-height: 1.55;
  border-top: 2px solid rgba(246, 241, 228, 0.45);
  padding-top: 1rem;
}
.avis-quotes figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Closing
   -------------------------------------------------------------------------- */
.closing {
  background: var(--bg-warm);
  padding-block: clamp(3.5rem, 8vw, 7rem);
  text-align: center;
}
.closing-inner { max-width: 42rem; }
.closing p { color: var(--ink-soft); }
.closing-addr {
  margin-top: 1.75rem;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-foot {
  background: var(--ink);
  color: var(--bg);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.foot-inner { display: grid; gap: 0.9rem; justify-items: start; }
.foot-brand { margin: 0; font-size: 0.95rem; }
.foot-brand strong { font-family: var(--font-display); font-weight: 900; }
.foot-links { margin: 0; font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.foot-links a { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--bg) 45%, transparent); min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.45rem 0.8rem;
  background: color-mix(in srgb, var(--bg) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 28%, transparent);
  border-radius: 2px;
  text-decoration: none;
  color: color-mix(in srgb, var(--bg) 82%, transparent);
}
.claim-banner:hover { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }

.muted { margin: 0; font-size: 0.78rem; }
.muted a { color: color-mix(in srgb, var(--bg) 62%, transparent); text-decoration: none; }
.muted a:hover { color: var(--bg); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .progress__fill { transform: scaleX(1); }
}
