:root {
  --page: #e4dfd9;
  --panel: #f7f5f2;
  --ink: #000;
  --soft: #57524c;
  --line: #b9b2a9;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;
  --top-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 20px); }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }

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

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 0;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: #2b2927; }
.btn-light { background: transparent; color: var(--ink); }
.btn-light:hover { background: var(--panel); }
.btn-big { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn-send { width: 100%; min-height: 56px; margin-top: 18px; font-size: 17px; }

/* En-tête */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 28px; min-height: var(--top-h); }
.logo {
  margin-right: auto;
  padding-top: 6px;
  font-family: var(--script);
  font-size: 42px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.cta-short { display: none; }
.menu { display: flex; gap: 28px; }
.menu a { padding: 10px 0; font-weight: 500; text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu-toggle {
  display: none;
  min-height: 46px;
  padding: 0 14px;
  background: none;
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

/* Ouverture */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(32px, 6vw, 80px);
}
h1 {
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-lead { margin-top: 24px; max-width: 30em; font-size: 20px; color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 500; }
.hero-note svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.hero-photos { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.hero-photos .hero-main { grid-row: 1 / 3; aspect-ratio: auto; }

/* Titres de section */
.section-head { max-width: 38em; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.section-head p { margin-top: 10px; color: var(--soft); }

/* Réalisations */
.work { padding-block: clamp(40px, 6vw, 72px); }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 12px; margin-top: 28px; }
.shot { padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.shot img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--panel); }
.shot strong { display: block; margin-top: 10px; font-weight: 700; }
.shot span { color: var(--soft); }
.shot:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* Bande noire */
.motto { background: var(--ink); color: #fff; }
.motto-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(48px, 7vw, 96px);
}
.motto-line { font-family: var(--script); font-size: clamp(48px, 6.4vw, 88px); line-height: 1.05; }
.motto-text h2 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.motto-text p { margin-top: 12px; color: #cfc8bf; }

/* Rendez-vous */
.reserve { padding-block: clamp(48px, 7vw, 96px) 0; }
.reserve-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.step { margin-top: 48px; }
.step h3, .side h3 { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.step-help { margin-top: 8px; color: var(--soft); }

.side { position: sticky; top: calc(var(--top-h) + 20px); margin-top: 48px; padding: 24px; background: var(--panel); }
.side .recap { margin-top: 12px; padding: 0; }
.recap-inline { display: none; }

/* Catégories et prestations */
.category { margin-top: 20px; border: 1px solid var(--line); }
.category + .category { margin-top: 12px; }
.category summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 21px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.category summary::-webkit-details-marker { display: none; }
.category summary::after { content: "+"; font-weight: 400; font-size: 28px; line-height: 1; }
.category[open] summary::after { content: "−"; }

.service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.service:not(:has(.service-thumb)) { grid-template-columns: 1fr auto; }
.service.is-picked { background: var(--panel); }
.service-thumb { width: 56px; height: 56px; padding: 0; border: 0; background: none; cursor: zoom-in; }
.service-thumb img { width: 56px; height: 56px; object-fit: cover; }
.service-name { font-weight: 500; }
.service-price { color: var(--soft); }
.service .btn { min-width: 96px; }
.service.is-picked .btn { background: transparent; color: var(--ink); }

/* Calendrier */
.calendar { margin-top: 20px; padding: 16px; background: var(--panel); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; }
.calendar-head strong { font-size: 19px; text-transform: capitalize; }
.calendar-head button {
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  font-family: system-ui, sans-serif;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.calendar-head button:disabled { opacity: 0.3; cursor: default; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.calendar-grid span { padding: 6px 0; text-align: center; font-size: 13px; color: var(--soft); }
.calendar-grid button {
  height: 46px;
  background: none;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.calendar-grid button:hover:not(:disabled) { border-color: var(--ink); }
.calendar-grid button:disabled { color: var(--line); cursor: default; }
.calendar-grid button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; }

.moments { margin: 20px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.moments legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.moments label { position: relative; }
.moments input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.moments span { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line); text-align: center; }
.moments input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.moments input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Coordonnées */
.field { display: grid; gap: 6px; margin-top: 18px; }
.field span { font-weight: 700; }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.recap { margin-top: 26px; padding: 20px; background: var(--panel); }
.recap ul { list-style: none; margin: 0; padding: 0; }
.recap li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.recap .recap-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 21px; font-weight: 700; }
.recap-day { margin-top: 10px; color: var(--soft); }
.form-error { margin-top: 16px; padding: 12px 14px; border: 2px solid #a3211a; color: #a3211a; font-weight: 500; }

/* Pied de page */
.footer { margin-top: clamp(64px, 9vw, 120px); background: var(--ink); color: #fff; }
.footer-inner { padding-block: 56px 40px; }
.footer-logo { font-family: var(--script); font-size: clamp(72px, 12vw, 150px); line-height: 1; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
.footer-cols h2 { margin-bottom: 10px; font-size: 17px; font-weight: 700; }
.footer-cols p { color: #cfc8bf; }
.footer-cols a:hover { color: #fff; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a3733; color: #a39c93; font-size: 15px; }

/* Barre du bas (téléphone) */
.bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: var(--panel);
  border-top: 1px solid var(--ink);
}
.bar p { font-weight: 700; white-space: nowrap; }
.bar .btn { padding: 0 16px; }

/* Photos en grand */
.viewer { width: min(94vw, 480px); padding: 0; border: 0; background: var(--panel); color: var(--ink); }
.viewer::backdrop { background: rgba(0, 0, 0, 0.8); }
.viewer-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.viewer-photos img { flex: 0 0 100%; width: 100%; max-height: 64vh; object-fit: cover; scroll-snap-align: start; }
.viewer-foot { padding: 16px; }
.viewer-foot p { font-weight: 700; }
.viewer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

/* Tablette */
@media (max-width: 940px) {
  .reserve-layout { grid-template-columns: 1fr; }
  .side { display: none; }
  .recap-inline { display: block; }
  .bar:not([hidden]) { display: flex; }
  .footer { padding-bottom: 68px; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .motto-inner { grid-template-columns: 1fr; }
}

/* Téléphone */
@media (max-width: 700px) {
  :root { --top-h: 60px; }
  .top-inner { gap: 8px; flex-wrap: wrap; }
  .logo { font-size: 36px; }
  .top-cta { min-height: 42px; padding: 0 14px; }
  .top-cta .cta-long { display: none; }
  .top-cta .cta-short { display: inline; }
  .menu-toggle { display: block; min-height: 42px; }
  .menu { display: none; order: 5; flex: 0 0 100%; flex-direction: column; gap: 0; padding-bottom: 10px; }
  .menu.is-open { display: flex; }
  .menu a { padding: 12px 0; border-top: 1px solid var(--line); font-size: 19px; }

  .hero { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 420px) {
  .top-cta { font-size: 14px; padding: 0 10px; }
  .category summary { padding: 16px 14px; }
  .service { padding: 12px 14px; gap: 12px; }
  .service .btn { min-width: 84px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
