/* H.24 — atelier noir et vert d'établi */
:root {
  --ink: #0E0E0D;
  --ink-2: #1A1A18;
  --paper: #F4F3EF;
  --white: #FFFFFF;
  --bench: #9AC5B1;
  --bench-deep: #24503F;
  --rose: #C9967A;
  --muted-dark: #5D5D57;
  --muted-light: #A9A9A2;
  --line-dark: rgba(255, 255, 255, .18);
  --line-light: rgba(14, 14, 13, .16);

  --f-mark: "Michroma", "Archivo", sans-serif;
  --f-sans: "Archivo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 56px);
  --sec: clamp(72px, 11vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
sup { font-size: .6em; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--bench); outline-offset: 3px; }
.services :focus-visible, .atelier :focus-visible, .works :focus-visible,
.quote-form :focus-visible, .infos :focus-visible { outline-color: var(--bench-deep); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--bench); color: var(--ink); padding: 12px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bench);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--dark { color: var(--bench-deep); }

.h2 {
  font-family: var(--f-sans);
  font-stretch: 118%;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.h2--light { color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font-family: var(--f-sans); font-stretch: 112%; font-weight: 600; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--bench { background: var(--bench); color: var(--ink); }
.btn--bench:hover { background: var(--white); }
.btn--line { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--line:hover { background: var(--white); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--bench-deep); }
.btn--line-dark { border-color: var(--ink); color: var(--ink); }
.btn--line-dark:hover { background: var(--ink); color: var(--white); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 13, .94);
  backdrop-filter: blur(8px);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.top__inner {
  max-width: 1360px; margin: 0 auto; padding: 12px var(--gut);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: grid; grid-template-columns: auto; justify-items: center; text-decoration: none; min-height: 44px; }
.brand__mark { font-family: var(--f-mark); font-size: 1.45rem; line-height: 1; letter-spacing: .02em; }
.brand__rule { width: 100%; height: 1px; background: var(--white); margin: 6px 0 4px; }
.brand__sub { font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; text-align: center; line-height: 1.3; color: var(--muted-light); }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-light); padding: 12px 0; transition: color .2s;
}
.nav a:hover { color: var(--white); }
.top__call { margin-left: auto; min-height: 44px; padding: 0 16px; font-family: var(--f-mono); font-stretch: 100%; letter-spacing: .02em; }

/* ---------- hero ---------- */
.hero {
  background: var(--ink); color: var(--white);
  display: grid; grid-template-columns: 1fr;
}
.hero__text { padding: 48px var(--gut) 56px; }
.hero__title { font-weight: 400; margin-bottom: 1.5rem; }
.hero__title-a {
  display: block; font-family: var(--f-mark);
  font-size: clamp(2.1rem, 7.4vw, 4.6rem); line-height: 1.05; letter-spacing: -.01em;
}
.hero__title-b {
  display: block; font-family: var(--f-sans); font-stretch: 118%; font-weight: 300;
  font-size: clamp(1.55rem, 4.4vw, 2.9rem); line-height: 1.12; color: var(--bench);
  margin-top: .3em;
}
.hero__lead { max-width: 34em; color: #D9D9D3; font-size: 1.08rem; }
.hero__lead strong { color: var(--white); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 2.5rem; }
.hero__facts {
  list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.hero__facts li { display: flex; flex-direction: column; gap: 6px; }
.hero__facts .fig { font-family: var(--f-mark); font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--rose); line-height: 1.1; }
.hero__facts .lbl { font-family: var(--f-mono); font-size: .75rem; line-height: 1.4; color: var(--muted-light); }

.hero__media { margin: 0; position: relative; min-height: 420px; max-height: 78vh; overflow: hidden; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 45%; }
.status {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(14, 14, 13, .86); color: var(--white);
  font-family: var(--f-mono); font-size: .8rem; padding: 10px 14px;
  border: 1px solid var(--line-dark);
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-light); }
.status.is-open .status__dot { background: var(--bench); box-shadow: 0 0 0 4px rgba(154, 197, 177, .25); }

/* ---------- ticker ---------- */
.ticker { background: var(--bench); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); }
.ticker__track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker span {
  font-family: var(--f-sans); font-stretch: 118%; font-weight: 600; text-transform: uppercase;
  font-size: .9rem; letter-spacing: .06em; padding: 14px 0; white-space: nowrap;
}
.ticker span::after { content: "·"; padding: 0 22px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- services ---------- */
.services { padding: var(--sec) 0; }
.services__grid { display: grid; gap: 48px; }
.services__intro p { color: var(--muted-dark); max-width: 32em; }
.services__intro .services__warranty {
  color: var(--ink); font-family: var(--f-mono); font-size: .9rem;
  border-left: 3px solid var(--bench); padding: 6px 0 6px 14px; margin-top: 1.5rem;
}
.panel {
  list-style: none; margin: 0;
  background: var(--ink); color: var(--white);
  padding: 10px; box-shadow: 0 30px 60px -30px rgba(14, 14, 13, .5);
}
.panel { outline: 1px solid var(--white); outline-offset: -10px; padding: 26px; }
.panel li {
  display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; row-gap: 2px;
  padding: 16px 4px; border-bottom: 1px solid var(--line-dark);
}
.panel li:last-child { border-bottom: 0; }
.panel__n { font-family: var(--f-mono); color: var(--bench); font-size: .85rem; padding-top: 4px; grid-row: span 2; }
.panel__t { font-stretch: 112%; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; }
.panel__d { color: var(--muted-light); font-size: .9rem; }

/* ---------- atelier ---------- */
.atelier { background: var(--white); padding: var(--sec) 0; border-top: 1px solid var(--line-light); }
.atelier__grid { display: grid; gap: 48px; align-items: center; }
.atelier__media { margin: 0; position: relative; }
.atelier__media::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--bench); z-index: -1;
}
.atelier__media { isolation: isolate; margin-right: 18px; }
.atelier__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.atelier__text p { color: #3E3E3A; }
.atelier__text strong { color: var(--ink); }
.specs { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line-light); }
.specs li {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--line-light); font-weight: 500;
}
.specs span { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-dark); padding-top: 3px; }

/* ---------- straps ---------- */
.straps { background: var(--ink-2); color: #D9D9D3; padding: var(--sec) 0; }
.straps__grid { display: grid; gap: 48px; align-items: center; }
.straps__text strong { color: var(--white); }
.straps__text .btn { margin-top: 1rem; }
.straps__media { margin: 0; }
.straps__media img { width: 100%; border: 1px solid var(--line-dark); }

/* ---------- works ---------- */
.works { padding: var(--sec) 0; }
.works__head { margin-bottom: 40px; }
.works__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.work { position: relative; overflow: hidden; background: var(--ink); }
.work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover img { transform: scale(1.04); }
.work--tall { grid-column: span 2; }
.work--tall img { aspect-ratio: 4 / 3; }
.work__cap {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgba(14, 14, 13, .88));
  color: var(--white); font-size: .85rem; line-height: 1.35;
}
.work__cap span {
  display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bench);
}

/* ---------- reviews ---------- */
.reviews { background: var(--ink); color: var(--white); padding: var(--sec) 0; }
.reviews__head { display: grid; gap: 24px; margin-bottom: 48px; align-items: end; }
.reviews__score { margin: 0; display: flex; flex-direction: column; }
.reviews__num { font-family: var(--f-mark); font-size: clamp(4rem, 12vw, 7.5rem); line-height: 1; }
.reviews__stars { color: var(--rose); letter-spacing: .2em; font-size: 1.2rem; margin-top: 8px; }
.reviews__head .h2 { margin-bottom: .5rem; }
.reviews__sub { color: var(--muted-light); margin: 0; }
.reviews__grid { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.quote { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.quote p { font-stretch: 105%; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.45; color: #EDEDE8; }
.quote footer { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bench); }
.quote footer::before { content: "— "; }
.link-light {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 28px;
  color: var(--bench); text-underline-offset: 4px;
}

/* ---------- devis ---------- */
.quote-form { padding: var(--sec) 0; background: var(--bench); }
.quote-form .eyebrow--dark { color: var(--ink); }
.devis__grid { display: grid; gap: 40px; }
.devis__text p { color: #1F2A25; max-width: 30em; }
.devis__alt { font-family: var(--f-mono); }
.devis__alt a { color: var(--ink); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.form { display: grid; grid-template-columns: 1fr; gap: 16px; background: var(--paper); padding: clamp(20px, 4vw, 36px); border: 1px solid var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.field .opt { text-transform: none; color: var(--muted-dark); letter-spacing: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #8C8C85; border-radius: 0;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field input[type="file"] { padding: 10px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--bench-deep); outline-offset: 0; border-color: var(--bench-deep); }
.form .btn { width: 100%; }
.form__msg { margin: 0; font-size: .95rem; color: var(--bench-deep); font-weight: 500; }
.form__msg:empty { display: none; }

/* ---------- infos ---------- */
.infos { padding: var(--sec) 0 0; background: var(--paper); }
.infos__grid { display: grid; gap: 56px; align-items: center; }
.dial-wrap { display: flex; flex-direction: column; align-items: center; }
.dial { width: min(100%, 380px); height: auto; overflow: visible; }
.dial__face { fill: var(--ink); }
.dial__ticks line { stroke: #6E6E68; stroke-width: 1.2; }
.dial__ticks line.major { stroke: var(--white); stroke-width: 2.2; }
.dial__open { fill: none; stroke: var(--bench); stroke-width: 12; }
.dial__labels text { fill: var(--muted-light); font-family: var(--f-mono); font-size: 10px; }
.dial__labels text.major { fill: var(--white); }
.dial__hand { stroke: var(--rose); stroke-width: 3; stroke-linecap: round; transform-origin: 120px 120px; transition: transform 1s var(--ease); }
.dial__pin { fill: var(--rose); }
.dial__brand { fill: var(--white); font-family: var(--f-mark); font-size: 17px; }
.dial-status { margin-top: 20px; font-family: var(--f-mono); font-size: .9rem; text-align: center; color: var(--ink); }

.hours { margin: 0 0 .5rem; border-top: 1px solid var(--line-light); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; font-family: var(--f-mono); }
.hours__note { font-size: .85rem; color: var(--muted-dark); margin-top: .75rem; }
.contact { display: grid; gap: 4px; margin: 2rem 0; }
.contact p { margin: 0 0 1rem; }
.contact__k { display: block; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bench-deep); }
.contact a { color: var(--ink); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.infos__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.map { margin-top: var(--sec); border-top: 1px solid var(--ink); background: #E4E3DD; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.85) contrast(1.05); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--muted-light); padding: 56px 0 120px; font-size: .92rem; }
.foot__grid { display: grid; gap: 28px; }
.foot__mark { font-family: var(--f-mark); color: var(--white); font-size: 1.8rem; margin: 0; line-height: 1; }
.foot__sub { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 10px; }
.foot a { color: var(--white); display: inline-flex; min-height: 44px; align-items: center; }
.foot__small { font-size: .8rem; }

/* ---------- action bar (mobile) ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--ink); border-top: 1px solid var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom);
}
.actionbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 60px; color: var(--white); text-decoration: none;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.actionbar a + a { border-left: 1px solid var(--line-dark); }
.actionbar .actionbar__main { background: var(--bench); color: var(--ink); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .reviews__grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .work--tall img { aspect-ratio: 16 / 9; }
  .foot__grid { grid-template-columns: 1.2fr 1fr 1.2fr; align-items: start; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .top__call { margin-left: 8px; }
  .actionbar { display: none; }
  .foot { padding-bottom: 56px; }
  .hero { grid-template-columns: 1.08fr .92fr; min-height: calc(100vh - 69px); }
  .hero__text { padding: clamp(48px, 7vw, 110px) clamp(32px, 5vw, 80px); align-self: center; }
  .hero__media { max-height: none; min-height: 100%; }
  .hero__media picture { position: absolute; inset: 0; }
  .services__grid { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
  .services__intro { position: sticky; top: 120px; }
  .atelier__grid { grid-template-columns: 1fr 1.1fr; gap: 96px; }
  .straps__grid { grid-template-columns: 1.1fr .9fr; gap: 96px; }
  .works__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; }
  .work--tall { grid-column: span 2; grid-row: span 2; }
  .work--tall img { aspect-ratio: auto; height: 100%; }
  .reviews__head { grid-template-columns: auto 1fr; gap: 56px; }
  .devis__grid { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
  .infos__grid { grid-template-columns: 1fr 1fr; gap: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.hero__facts .eur { font-family: var(--f-sans); font-stretch: 118%; font-weight: 400; }
/* anchor smooth scroll (JS) only when motion allowed */
section[id] { scroll-margin-top: 72px; }

/* mobile hero : la photo d'abord, en bandeau */
@media (max-width: 899px) {
  .hero__media { order: -1; min-height: 0; height: 34vh; max-height: 320px; }
  .hero__media img { object-position: 50% 36%; }
  .hero__text { padding-top: 24px; }
  .hero__cta { margin: 1.5rem 0 2rem; }
}
