/* les petites BILLARDISES — charte : noir et blanc du logo, pierres en accents */
:root {
  --ink: #000;
  --paper: #fff;
  --mist: #f1f1ef;
  --line: rgba(0, 0, 0, .16);
  --citrine: #f2b01e;
  --emerald: #0f9d6b;
  --peridot: #a8c324;
  --amethyst: #7b4fa3;

  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Montserrat", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--citrine); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

h2 {
  font: 400 clamp(2.8rem, 6.4vw, 5.4rem)/.95 var(--display);
  text-transform: uppercase;
  letter-spacing: .015em;
  text-wrap: balance;
}
h3 { font: 400 1.7rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
p { max-width: 62ch; text-wrap: pretty; }

.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-head p { font-size: 1.02rem; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem;
  font: 600 .9rem/1 var(--body); letter-spacing: .04em;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: background .2s, color .2s, transform .2s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--citrine); color: var(--ink); border-color: var(--citrine); }
.btn-line { background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.text-link { display: inline-block; margin-top: .6rem; font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--citrine); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .7rem var(--gutter);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1; }
.brand-script { display: block; align-self: stretch; width: 0; min-width: 100%; height: auto; margin-bottom: -.35em; position: relative; z-index: 1; }
.brand-word { font: 400 2.15rem/.9 var(--display); letter-spacing: .02em; -webkit-text-stroke: .6px currentColor; }
.brand-tag { font: 500 .5rem/1 var(--body); letter-spacing: .32em; text-transform: uppercase; margin-top: .35rem; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a { text-decoration: none; font-weight: 500; font-size: .85rem; letter-spacing: .04em; padding: .3rem 0; background: linear-gradient(var(--ink), var(--ink)) 0 100%/0 2px no-repeat; transition: background-size .25s; }
.nav a:hover { background-size: 100% 2px; }
.nav .nav-cta { background: var(--ink); color: var(--paper); padding: .55rem 1.1rem; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--citrine); color: var(--ink); }
.nav-toggle { display: none; font: 600 .95rem var(--body); background: none; border: 2px solid var(--ink); border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
}
.hero-copy { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); justify-items: start; }
.lockup {
  container-type: inline-size;
  display: flex; flex-direction: column; align-items: stretch;
  width: clamp(15rem, 28vw, 24rem);
  margin: 0; line-height: 1; font-weight: 400;
  animation: settle 1.4s ease-out both;
}
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-script { display: block; width: 0; min-width: 100%; height: auto; margin-bottom: -.5cqw; position: relative; z-index: 1; }
.hero-word { display: block; font: 400 25cqw/.9 var(--display); letter-spacing: .02em; -webkit-text-stroke: .3cqw currentColor; white-space: nowrap; }
.lockup .brand-tag { margin-top: 2.2cqw; font-size: 3.7cqw; letter-spacing: .26em; margin-right: -.26em; }
.hero-lead { font-size: 1.05rem; max-width: 34ch; color: #222; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-visual { position: relative; padding: 0 0 clamp(2rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem); }
.hv-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.hv-ring { position: absolute; left: 0; bottom: 0; width: 38%; border: 10px solid var(--paper); }
.hv-ring img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- manifeste ---------- */
.manifesto { padding: clamp(3rem, 8vw, 7rem) 0; background: var(--mist); }
.manifesto-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.manifesto-text { display: grid; gap: 1.4rem; }
.manifesto-text h2 { margin-bottom: .6rem; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: .6rem; padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.facts li { font-size: .95rem; }
.facts strong { font: 400 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; margin-right: .3em; }
.manifesto-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.manifesto-fig figcaption { margin-top: .7rem; font: italic 400 .9rem/1.3 var(--body); }

/* ---------- créations (velours noir) ---------- */
.creations { background: var(--ink); color: var(--paper); padding: clamp(3.5rem, 9vw, 8rem) 0; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.8rem, 2vw, 1.6rem); }
.piece { grid-column: span 4; }
.piece:nth-child(n+4) { grid-column: span 3; }
.piece-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in;
}
.piece-btn img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: filter .3s; }
.piece-btn:hover img { filter: brightness(1.08); }
.piece-cap { display: flex; align-items: center; gap: .6rem; padding-top: .7rem; font: 500 .88rem/1.3 var(--body); }
.gem {
  flex: none; width: .95rem; height: .95rem; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 12%, var(--g) 40%, color-mix(in srgb, var(--g) 60%, #000) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4);
}

/* ---------- savoir-faire ---------- */
.craft { padding: clamp(3.5rem, 9vw, 8rem) 0; }
.craft-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.craft-intro { display: grid; gap: 1.4rem; position: sticky; top: 100px; }
.craft-fig img { width: min(100%, 320px); aspect-ratio: 9 / 14; object-fit: cover; }
.steps { counter-reset: s; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: 1 / span 3; font: 400 3rem/1 var(--display); color: var(--ink); }
.steps li:nth-child(5)::before { color: var(--emerald); }
.steps li p { grid-column: 2; margin-top: .5rem; }

/* ---------- services ---------- */
.services { padding: clamp(3.5rem, 8vw, 7rem) 0; background: var(--mist); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.svc { display: grid; gap: .7rem; align-content: start; }
.svc img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: .4rem; }
.svc:nth-child(1) h3 { border-bottom: 4px solid var(--citrine); }
.svc:nth-child(2) h3 { border-bottom: 4px solid var(--emerald); }
.svc:nth-child(3) h3 { border-bottom: 4px solid var(--amethyst); }
.svc:nth-child(4) h3 { border-bottom: 4px solid var(--peridot); }
.svc h3 { padding-bottom: .4rem; }
.svc-note { margin-top: 2.4rem; font-size: .98rem; }
.svc-note a { text-underline-offset: 3px; }

/* ---------- lieu ---------- */
.place { padding: clamp(3.5rem, 9vw, 8rem) 0; }
.place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.place-media { position: relative; padding-bottom: 12%; }
.pm-a { width: 78%; aspect-ratio: 4 / 5; object-fit: cover; }
.pm-b { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 9 / 14; object-fit: cover; border: 8px solid var(--paper); }
.place-text { display: grid; gap: 1.6rem; }
.agenda { display: grid; gap: 1.4rem; }
.agenda li { padding-left: 1.2rem; border-left: 4px solid var(--ink); }
.agenda li:nth-child(1) { border-color: var(--amethyst); }
.agenda li:nth-child(2) { border-color: var(--citrine); }
.agenda li:nth-child(3) { border-color: var(--emerald); }
.agenda h3 { margin-bottom: .35rem; }

/* ---------- journal ---------- */
.journal { padding: clamp(3.5rem, 8vw, 7rem) 0; background: var(--ink); color: var(--paper); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 3rem); }
.quotes blockquote { display: grid; gap: 1rem; align-content: start; padding-top: 1.2rem; border-top: 2px solid var(--paper); }
.quotes blockquote > p:first-child { font: 500 1.2rem/1.4 var(--body); }
.quotes .q-body { color: rgba(255, 255, 255, .8); font-size: 1rem; }
.quotes cite { font: 500 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; font-style: normal; }

/* ---------- contact ---------- */
.contact { padding: clamp(4rem, 10vw, 9rem) 0; text-align: center; }
.contact-in { display: grid; justify-items: center; gap: 1.2rem; }
.contact-script { font: italic 500 clamp(1rem, 2vw, 1.3rem)/1 var(--body); letter-spacing: .04em; }
.contact h2 { max-width: 16ch; }
.contact .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 2px solid var(--ink); padding: 2.5rem 0 3rem; font-size: .98rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.brand-foot .brand-word { font-size: 3.2rem; }
.brand-foot .brand-tag { font-size: .5rem; letter-spacing: .26em; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: var(--ink); color: var(--paper); width: fit-content; max-width: 94vw; max-height: 94vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox[open] { display: block; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox img { display: block; width: auto; height: auto; max-width: 94vw; max-height: calc(94vh - 7.5rem); }
.lb-cap { width: 0; min-width: 100%; padding: 1rem 1.2rem 1.2rem; display: grid; gap: .3rem; }
.lb-cap h3 { font-size: 1.5rem; }
.lb-cap p { font-size: .9rem; }
.lb-close { position: absolute; top: .8rem; right: .8rem; z-index: 2; font: 600 .8rem var(--body); background: var(--paper); color: var(--ink); border: 0; border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }
.lightbox form { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .lockup { width: clamp(15rem, 60vw, 22rem); }
  .hero-visual { padding-left: 0; }
  .piece, .piece:nth-child(n+4) { grid-column: span 6; }
  .manifesto-grid, .craft-grid, .place-grid { grid-template-columns: 1fr; }
  .craft-intro { position: static; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: .4rem;
    padding: 1rem var(--gutter) 1.4rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.15rem; }
}
@media (max-width: 640px) {
  .piece, .piece:nth-child(n+4) { grid-column: span 6; }
  .piece:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lockup, .lightbox[open] { animation: none; }
}


/* la marque de l'en-tête n'apparaît qu'une fois le logo du hero sorti de l'écran */
.js-hero .site-header .brand { transition: opacity .3s; }
.js-hero:not(.lockup-out) .site-header .brand { opacity: 0; pointer-events: none; }
