/* ============================================================
   SMPL SUARL — mécanicien mobile, Rufisque
   Palette : risographie deux encres (rose fluo + bleu roi)
   ============================================================ */

:root {
  --bg: #f7f5ea;
  --paper: #fffdf4;
  --ink-a: #ff48b0;
  --ink-b: #1f3fff;
  --ink: #14131a;
  --ink-soft: #4a4753;
  --rule: rgba(20, 19, 26, 0.16);
  --rule-strong: rgba(20, 19, 26, 0.32);
  --shadow: 6px 6px 0 rgba(31, 63, 255, 0.14);
  --maxw: 1120px;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12111a;
    --paper: #1a1926;
    --ink-a: #ff6cc2;
    --ink-b: #7d92ff;
    --ink: #f2f0e8;
    --ink-soft: #b3b0c2;
    --rule: rgba(242, 240, 232, 0.18);
    --rule-strong: rgba(242, 240, 232, 0.34);
    --shadow: 6px 6px 0 rgba(125, 146, 255, 0.18);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 8% 0%, rgba(255, 72, 176, 0.20) 0%, transparent 62%),
    radial-gradient(ellipse 65% 60% at 100% 22%, rgba(31, 63, 255, 0.16) 0%, transparent 58%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 72, 176, 0.10) 0%, transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

a { color: var(--ink-b); text-underline-offset: 3px; }
a:hover { color: var(--ink-a); }

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

.sr-only {
  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-b); color: #fff; padding: .7rem 1rem; z-index: 99;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
  padding-block: .6rem;
}

.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}

.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  font-weight: 800; font-size: 1.3rem;
  color: var(--paper);
  background: var(--ink-b);
  box-shadow: 3px 3px 0 var(--ink-a);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-weight: 800; letter-spacing: .01em; }
.brand-text em {
  font-style: normal; font-size: .72rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-soft);
}

.topnav { display: flex; gap: 1.15rem; }
.topnav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: .92rem; font-weight: 500;
  padding: .55rem .1rem;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.topnav a:hover { color: var(--ink); border-bottom-color: var(--ink-a); }

.call-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px;
  padding: .55rem 1rem;
  font-family: var(--font-mono);
  font-size: .92rem; font-weight: 600;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink-b);
  border: 2px solid var(--ink-b);
  box-shadow: 3px 3px 0 var(--ink-a);
  transition: transform .16s ease, box-shadow .16s ease;
}
.call-btn:hover {
  color: var(--paper);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink-a);
}
.call-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-a);
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-b);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.3rem, 1.4rem + 5.2vw, 4.4rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  font-variation-settings: 'wdth' 88;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { font-variation-settings: 'wdth' 78; }
  50%      { font-variation-settings: 'wdth' 112; }
}

/* misregister: a pink ghost copy offset behind the heading */
.hero-copy h1 { position: relative; }
.hero-copy h1::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--ink-a);
  transform: translate(4px, 3px);
  z-index: -1;
  opacity: .85;
  pointer-events: none;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 1.8rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: .8rem 1.35rem;
  font-family: var(--font-display);
  font-size: .98rem; font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.btn-primary {
  color: var(--paper);
  background: var(--ink-b);
  border-color: var(--ink-b);
  box-shadow: 4px 4px 0 var(--ink-a);
}
.btn-primary:hover {
  color: var(--paper);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink-a);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--rule-strong);
}
.btn-ghost:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink-a) 14%, transparent);
  border-color: var(--ink-a);
}

.hero-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
}
.hero-facts li { display: grid; gap: .15rem; }
.hero-facts strong {
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--ink-b);
  letter-spacing: .02em;
}
.hero-facts span { font-size: .93rem; color: var(--ink-soft); }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  filter: saturate(1.05) contrast(1.03);
}
.hero-figure figcaption {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

/* ---------- sections ---------- */

.section { padding-block: clamp(2.8rem, 7vw, 5rem); }
.section-alt {
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border-block: 1px solid var(--rule);
}

.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }

h2 {
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 .8rem;
  font-variation-settings: 'wdth' 82;
  animation: breathe 9s ease-in-out infinite;
}

.section-sub { color: var(--ink-soft); margin: 0; }

/* ---------- menu (services) ---------- */

.menu { display: grid; gap: clamp(2rem, 4vw, 3rem); }

.menu-block h3 {
  font-size: 1.05rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-b);
  margin: 0 0 1.1rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--ink-b);
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding-block: .85rem;
  border-bottom: 1px solid var(--rule);
}
.item:last-child { border-bottom: 0; }

.item-name { margin: 0; font-weight: 700; font-size: 1.03rem; }
.item-desc { margin: .2rem 0 0; font-size: .92rem; color: var(--ink-soft); max-width: 52ch; }

.item-price {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  background: color-mix(in srgb, var(--ink-a) 18%, transparent);
  padding: .2rem .55rem;
  border: 1px solid var(--rule);
}

.menu-note {
  margin-top: 2.2rem;
  padding: 1.1rem 1.3rem;
  font-size: .92rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink-b) 8%, transparent);
  border-left: 4px solid var(--ink-b);
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  gap: 1.4rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}
.gallery figcaption {
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .03em;
  color: var(--ink-soft);
}

.story { max-width: 68ch; display: grid; gap: 1rem; }
.story p { margin: 0; color: var(--ink-soft); }
.story p:first-child { color: var(--ink); font-size: 1.06rem; }

/* ---------- footer cards ---------- */

.footer-cards {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 3vw, 1.9rem);
}

.card h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule-strong);
}

.card-lead { margin: 0 0 .8rem; font-size: .95rem; color: var(--ink-soft); }

.big-phone {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  padding: .35rem .6rem;
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--ink-a) 22%, transparent);
  border: 2px solid var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}
.big-phone:hover {
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink-b);
}

.card-note { margin: 0 0 .8rem; font-size: .9rem; color: var(--ink-soft); }
.card-note:last-child { margin-bottom: 0; }
.card-note strong { color: var(--ink); }

.hours { list-style: none; margin: 0 0 1rem; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: .45rem;
  border-bottom: 1px dashed var(--rule);
  font-size: .93rem;
}
.hours li:last-child { border-bottom: 0; }
.hours span { color: var(--ink-soft); }
.hours strong { font-family: var(--font-mono); font-weight: 600; font-size: .86rem; }

.addr {
  font-style: normal;
  font-size: .98rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: .9rem;
  border-left: 3px solid var(--ink-a);
}

.map-link {
  display: inline-block;
  margin-top: .4rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--ink-a);
  padding-bottom: 1px;
}
.map-link:hover { color: var(--ink-a); }

/* ---------- closing ---------- */

.closing {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  text-align: center;
  border-top: 1px solid var(--rule);
}
.closing blockquote {
  margin: 0 auto 1.2rem;
  max-width: 30ch;
  font-size: clamp(1.35rem, 1rem + 2vw, 2.1rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-variation-settings: 'wdth' 85;
}
.closing-sig {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.2rem 2.6rem;
  background: color-mix(in srgb, var(--paper) 60%, transparent);
}

.footer-top {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: baseline;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.2rem;
}
.footer-brand { margin: 0; font-weight: 800; letter-spacing: .01em; }
.footer-meta { margin: 0; font-size: .88rem; color: var(--ink-soft); }

.claim-banner {
  display: inline-block;
  font-size: .8rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .45rem .8rem;
  background: color-mix(in srgb, var(--ink-b) 7%, transparent);
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin-bottom: 1rem;
}
.claim-banner:hover { color: var(--ink-b); border-color: var(--ink-b); }

.muted { margin: 0; font-size: .78rem; color: var(--ink-soft); }
.muted a { color: inherit; }

/* ---------- typewriter H1 ---------- */

.typed .ch {
  display: inline-block;
  opacity: 0;
  animation: typein .34s ease forwards;
  animation-delay: calc(var(--i) * 42ms + 120ms);
}
@keyframes typein {
  from { opacity: 0; transform: translateY(.22em); }
  to   { opacity: 1; transform: none; }
}
.typed::after {
  content: "";
  display: inline-block;
  width: .09em;
  height: .92em;
  margin-left: .06em;
  background: var(--ink-a);
  vertical-align: -0.06em;
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- responsive ---------- */

@media (min-width: 700px) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-cards { grid-template-columns: repeat(2, 1fr); }
  .menu { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .footer-cards { grid-template-columns: repeat(3, 1fr); }
  .menu { gap: 2.6rem 3.4rem; }
}

@media (max-width: 620px) {
  .topnav { display: none; }
  .item { grid-template-columns: 1fr; gap: .35rem; }
  .item-price { justify-self: start; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  h1, h2 { animation: none; font-variation-settings: 'wdth' 88; }
  .typed .ch { opacity: 1; animation: none; }
  .typed::after { animation: none; opacity: 1; }
  .btn, .call-btn, .big-phone { transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
