:root {
  --bg: #f5f1ea;
  --paper: #ffffff;
  --ink: #151515;
  --muted: #6c6259;
  --line: #ded6cc;
  --soft: #ebe4da;
  --accent: #b86a3d;
  --accent-dark: #7d3f27;
  --shadow: 0 24px 60px rgba(21, 21, 21, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section,
.category-gallery { scroll-margin-top: 104px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.55;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 241, 234, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.brand-logo {
  width: 86px;
  height: 56px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .96rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.nav-links a:hover {
  background: var(--paper);
  border-color: var(--line);
  transform: translateY(-1px);
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.9rem;
}

.hero {
  padding: 64px 0 52px;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: .96;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.1rem, 4.8vw, 4.2rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.35rem;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(21, 21, 21, .18);
}

.secondary {
  color: var(--ink);
  background: transparent;
}

.trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trust span {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .92rem;
  font-weight: 800;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: 16px 16px 0 var(--ink);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  margin: 0;
  padding: 13px 16px;
  border-top: 1px solid var(--ink);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.section {
  padding: 54px 0;
}

.section-title {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

.cards {
  display: grid;
  gap: 16px;
}

.four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 22px;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.machine-section {
  padding-top: 22px;
}

.machine-card {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 32px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 34px;
  box-shadow: 12px 12px 0 var(--ink);
}

.machine-copy p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.machine-tags {
  margin-top: 20px;
}

.machine-media {
  margin: 0;
  background: var(--soft);
  border: 1px solid var(--ink);
  overflow: hidden;
}

.machine-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 20px;
  filter: drop-shadow(0 18px 22px rgba(21, 21, 21, .16));
  transition: transform .28s ease;
}

.machine-card:hover .machine-media img {
  transform: scale(1.035);
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.dark {
  color: #fff;
  background: var(--ink);
}

.light .eyebrow {
  color: #d7a077;
}

.light p {
  color: #d8d0c6;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.shot {
  position: relative;
  min-height: 205px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  background: #222;
}

.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(21, 21, 21, .02), rgba(21, 21, 21, .72));
  opacity: .88;
  transition: opacity .25s ease, background .25s ease;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 205px;
  object-fit: cover;
  filter: saturate(.94);
  transition: transform .35s ease, filter .35s ease;
}

.shot:hover img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.04);
}

.shot:hover::before,
.shot:focus-visible::before {
  opacity: 1;
  background: linear-gradient(180deg, rgba(21, 21, 21, .16), rgba(21, 21, 21, .84));
}

.shot figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 10px 12px;
  color: #fff;
  background: rgba(21, 21, 21, .76);
  font-weight: 900;
  text-transform: uppercase;
  transform: translateY(0);
  transition: transform .25s ease, background .25s ease;
}

.shot:hover figcaption,
.shot:focus-visible figcaption {
  background: rgba(21, 21, 21, .94);
  transform: translateY(-8px);
}

.jump-shot {
  cursor: pointer;
}

.jump-shot::after {
  content: "Voir +";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 7px 10px;
  color: var(--ink);
  background: #fff;
  font-size: .74rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
  text-transform: uppercase;
}

.jump-shot:hover::after,
.jump-shot:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.jump-shot:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.full-gallery-section {
  padding-top: 48px;
}

.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 980px;
  margin: -12px auto 24px;
}

.filter-btn {
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: .92rem;
  font-weight: 900;
  padding: 9px 13px;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
}

.filter-btn.active {
  color: #fff;
  background: var(--ink);
}

.category-gallery {
  margin-top: 28px;
}

.category-gallery[hidden] {
  display: none;
}

.category-gallery.active {
  animation: galleryFade .22s ease;
}

.category-gallery h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.category-gallery h3::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--ink);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-flow: dense;
  gap: 10px;
}

.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--ink);
  background: var(--paper);
  filter: saturate(.94);
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
  will-change: transform;
}

.photo-grid img:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.full-gallery-section.all-mode .photo-grid img:first-child {
  grid-column: span 1;
  grid-row: span 1;
}

.photo-grid img:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 34px rgba(21, 21, 21, .18);
  filter: saturate(1.12) contrast(1.04);
  z-index: 2;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split p {
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  display: grid;
  gap: 10px;
}

.steps div {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 15px;
}

.steps strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: #fff;
}

.steps span {
  font-weight: 900;
  text-transform: uppercase;
}

.quote {
  background: var(--soft);
}

.quote-box {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 34px;
  box-shadow: 12px 12px 0 var(--ink);
}

.contact-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  border: 1px solid var(--ink);
  padding: 22px;
}

.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.contact {
  max-width: 780px;
  text-align: center;
}

.footer {
  padding: 24px 0;
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--muted);
}

.floating-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 28px rgba(21, 21, 21, .22);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 900;
  transition: transform .18s ease;
}

.floating-top:hover {
  transform: translateY(-2px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(12, 12, 12, .86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  display: block;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

@keyframes galleryFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 850px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--ink);
    padding: 16px 4%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-grid,
  .split,
  .quote-box,
  .machine-card {
    grid-template-columns: 1fr;
  }

  .four,
  .gallery {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-grid img:first-child {
    grid-column: span 3;
    grid-row: span 1;
    aspect-ratio: 16 / 10;
  }

  .full-gallery-section.all-mode .photo-grid img:first-child {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }

  .gallery-filter {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .filter-btn {
    white-space: nowrap;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-media,
  .quote-box {
    box-shadow: 8px 8px 0 var(--ink);
  }

  .brand-logo {
    width: 72px;
    height: 50px;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}
