:root {
  --bg: #15130f;
  --surface: #211d18;
  --ink: #15130f;
  --paper: #ebebe6;
  --paper-ink: #15130f;
  --soft: #6d665b;
  --on-dark: #f0f0ee;
  --on-dark-soft: #b9b0a0;
  --accent: #d8b26e;
  --accent-ink: #15130f;
  --margin: clamp(16px, 3vw, 32px);
  --step-small: 14px;
  --step-body: 17px;
  --step-lead: 22px;
  --step-head: 44px;
  --step-display: 44px;
  --radius: 0;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Erode", Georgia, "Times New Roman", serif;
  font-size: var(--step-body);
  line-height: 1.55;
  color: var(--paper-ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection { background: var(--accent); color: var(--accent-ink); }

/* header */
.site-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--margin);
  font-size: 14px;
}
.site-head nav { display: flex; gap: 20px; margin-left: auto; }
.site-head nav a { text-decoration: none; }
.wordmark { font-size: 22px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.site-head .wordmark { color: var(--paper-ink); }

/* buttons: one shape, one radius */
.btn {
  display: inline-block;
  padding: 15px 26px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit; font-size: 17px; font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { background: #e6c687; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-small { padding: 9px 16px; font-size: 14px; margin-left: 0; }
.btn-full { width: 100%; text-align: center; }

/* hero: two panels */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  min-height: 100svh;
  background: var(--paper);
}
.hero-sheet {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(96px, 16vh, 150px) clamp(28px, 4vw, 64px) 20vh;
  background: var(--paper);
}
.hero-copy { max-width: 560px; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lead { margin-bottom: 32px; max-width: 40ch; }
.lead { font-size: var(--step-lead); line-height: 1.45; }
.hero-photo {
  position: sticky; top: 12px;
  height: calc(100svh - 24px);
  overflow: hidden;
  border-radius: 20px;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 50%;
  animation: drift 18s var(--ease) infinite alternate;
}
.hours-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 56px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px;
  background: var(--paper);
  color: var(--paper-ink);
  font-size: var(--step-small);
}

/* atelier */
.atelier { padding: clamp(120px, 16vw, 200px) var(--margin); background: var(--bg); color: var(--on-dark); }
.atelier h2 { max-width: 14ch; margin-bottom: 56px; }
.atelier-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.atelier-grid .lead { grid-column: 1 / 7; color: var(--on-dark); }
.steps { grid-column: 8 / 13; list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: none; }
.steps li p { color: var(--on-dark-soft); }
.steps li strong { color: var(--on-dark); font-weight: 600; }
.meta { margin-top: 64px; font-size: var(--step-small); color: var(--on-dark-soft); }

/* works: scatter with pauses */
.works { padding: clamp(120px, 16vw, 200px) var(--margin); background: var(--paper); }
.works > h2 { margin-bottom: 16px; }
.caption { font-size: var(--step-small); color: var(--soft); margin-bottom: 96px; max-width: 60ch; }
.work { display: block; margin-bottom: 22vh; }
.work img { width: 100%; object-fit: cover; }
.work-name { font-size: var(--step-small); color: var(--soft); margin-top: 16px; }
.work-name + .work-desc { color: var(--ink); }
.work-desc { font-size: var(--step-body); margin-top: 4px; }
.work-1 { width: 50%; }
.work-1 img { aspect-ratio: 3 / 2; }
.work-2 { width: 46%; margin-left: auto; margin-top: -80px; }
.work-2 img { aspect-ratio: 4 / 5; }
.work-3 { width: 60%; margin-left: 16.6%; }
.work-3 img { aspect-ratio: 16 / 9; }
.work-4 { width: 50%; }
.work-4 img { aspect-ratio: 3 / 2; }
.work-5 { width: 46%; margin-left: auto; }
.work-5 img { aspect-ratio: 4 / 3; object-position: 50% 0; }
.work-6 { width: 56%; margin-left: 8%; margin-bottom: 0; }
.work-6 img { aspect-ratio: 16 / 10; }
.work-remark {
  max-width: 22ch; margin: -10vh 0 22vh 8%;
  font-size: var(--step-lead); line-height: 1.3;
}

/* tarifs */
.tarifs { padding: clamp(120px, 16vw, 200px) var(--margin); background: var(--surface); color: var(--on-dark); }
.tarifs-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; margin-bottom: 64px; }
.tarifs-head h2 { grid-column: 1 / 5; }
.tarifs-head p { grid-column: 5 / 10; color: var(--on-dark-soft); font-size: var(--step-lead); line-height: 1.45; }
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-left: 0; }
.menu-group h3 { font-size: var(--step-lead); font-weight: 500; margin: 0 0 16px; color: var(--on-dark); }
.menu-group + .menu-group { margin-top: 0; }
.row { display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-lead); margin-top: 22px; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-desc { font-size: var(--step-body); color: var(--on-dark-soft); max-width: 36ch; margin-top: 4px; }

.estimator { max-width: 760px; margin-bottom: 120px; }
.estimator h3 { margin-bottom: 24px; font-size: 32px; font-weight: 500; }
.estimator-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
label { display: grid; gap: 8px; font-size: 15px; color: var(--on-dark-soft); }
input, select, textarea {
  font: inherit; font-size: var(--step-body); color: var(--on-dark);
  background: var(--bg); border: 0; border-radius: var(--radius);
  padding: 13px 14px; min-height: 48px; width: 100%;
}
.estimator-form input, .estimator-form select { width: 180px; }
.estimator-form select { width: 260px; }
.estimate-out { margin-top: 28px; font-size: var(--step-lead); line-height: 1.3; color: var(--on-dark); min-height: 2.6em; font-variant-numeric: tabular-nums; }
.fine { margin-top: 10px; font-size: var(--step-small); color: var(--on-dark-soft); }
.fallback { margin-top: 32px; }
.fallback summary { cursor: pointer; font-size: var(--step-body); padding: 8px 0; }
.fallback table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.fallback th, .fallback td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; font-weight: 400; }
.fallback thead th { color: var(--on-dark-soft); font-size: var(--step-small); }
.fallback tbody th { font-weight: 600; }

/* questions */
.questions { padding: 200px var(--margin) clamp(120px, 16vw, 200px); background: var(--paper); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.questions h2 { grid-column: 1 / 6; align-self: start; }
.faq { grid-column: 7 / 13; }
.faq details { padding: 22px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-size: var(--step-lead); position: relative; padding-right: 36px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 2px; background: currentColor;
  transition: transform .25s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { margin-top: 14px; font-size: var(--step-body); color: var(--soft); max-width: 52ch; }

/* devis */
.devis { position: relative; min-height: 100svh; background: var(--bg); color: var(--on-dark); }
.devis-photo { position: absolute; inset: 0; }
.devis-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.contact-card {
  position: relative; z-index: 1;
  width: min(380px, calc(100% - 2 * var(--margin)));
  margin: 120px var(--margin) 0 auto;
  padding: 32px;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 8px;
  max-height: none;
}
.contact-card h2 { font-size: 32px; font-weight: 500; margin-bottom: 20px; }
.contact-card address { font-style: normal; font-size: var(--step-body); margin-bottom: 16px; }
.hours { display: grid; grid-template-columns: 1fr auto; font-size: var(--step-body); font-variant-numeric: tabular-nums; margin-bottom: 16px; }
.contact-lines { display: grid; gap: 8px; font-size: var(--step-lead); margin-bottom: 20px; }
.contact-lines a { text-decoration: none; }
.quote-form { display: grid; gap: 12px; }
.quote-form label { color: var(--soft); font-size: var(--step-small); }
.quote-form input, .quote-form textarea { background: #fff; color: var(--paper-ink); }
.form-note { font-size: var(--step-small); min-height: 1.4em; color: var(--soft); }

/* footer */
.site-foot { padding: 64px var(--margin) 48px; background: var(--bg); color: var(--on-dark); }
.foot-name { font-size: 72px; line-height: .9; letter-spacing: -0.04em; font-weight: 500; }
.foot-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 40px; font-size: var(--step-small); color: var(--on-dark-soft); }
.foot-row a { color: var(--on-dark); }
.credits { margin-top: 48px; font-size: var(--step-small); line-height: 1.6; color: var(--on-dark-soft); max-width: 110ch; }
.credits a { color: var(--on-dark); }

/* motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }
@keyframes drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
.btn, .faq summary, .site-head nav a { transition: transform .2s var(--ease), opacity .2s; }
.site-head nav a:hover { opacity: .6; }

/* phone */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .hero-photo { position: relative; top: 0; height: 56svh; border-radius: 0; order: -1; }
  .hero-sheet { padding: 40px 20px 56px; background: var(--paper); margin-top: -28px; position: relative; z-index: 1; border-radius: 20px 20px 0 0; }
  .site-head nav { display: none; }
  .atelier-grid, .tarifs-head, .questions { display: block; }
  .atelier-grid .lead, .steps { margin-bottom: 40px; }
  .menu { grid-template-columns: 1fr; gap: 40px; }
  .tarifs-head p { margin-top: 16px; }
  .work, .work-1, .work-2, .work-3, .work-4, .work-5, .work-6 { width: 100%; margin-left: 0; margin-top: 0; margin-bottom: 72px; }
  .work-2 { width: 68%; margin-left: auto; }
  .work-3 { width: 82%; margin-left: 0; }
  .work-remark { margin: 0 0 72px; max-width: none; font-size: var(--step-lead); }
  h1 { font-size: 32px; }
  .hours-bar { display: none; }
  .questions h2 { margin-bottom: 24px; }
  .faq { margin-top: 0; }
  .contact-card { margin: -80px 16px 0; width: auto; }
  .devis { min-height: 0; }
  .devis-photo { position: relative; height: 70svh; }
}
@media (max-width: 480px) {
  .btn-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
