:root {
  --bg: #f6f1e9;
  --bg-alt: #efe7dc;
  --paper: #fbf8f3;
  --ink: #2f2a26;
  --muted: #776c62;
  --accent: #a4664c;
  --sage: #7f9670;
  --line: #e2d7c8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  /* grain papier très léger */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .16 0 0 0 0 .12 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; margin: 0; letter-spacing: -.005em; }
em { font-style: italic; font-weight: 400; color: var(--accent); }
.label {
  font: 500 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; }
/* le flou est sur un calque à part : sinon il enfermerait le menu mobile plein écran dans l'en-tête */
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: rgba(246, 241, 233, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.top.scrolled::before { opacity: 1; }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-txt small { font: 600 10.5px/1 var(--serif); letter-spacing: .34em; text-transform: uppercase; color: var(--accent); }
.logo-txt b { font: italic 500 33px/1 var(--serif); margin-top: 2px; }
nav { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 400; }
nav a { text-decoration: none; position: relative; }
nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--accent); transition: right .3s; }
nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: 9px 22px; border: 1px solid var(--ink); border-radius: 999px; transition: background .25s, color .25s; }
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Accueil ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 60px 28px 90px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.hero h1 { font-size: clamp(48px, 6.6vw, 88px); margin-bottom: 26px; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 470px; margin: 0 0 38px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; padding: 15px 32px; border-radius: 999px; text-decoration: none;
  background: var(--ink); color: var(--bg); font-weight: 400; font-size: 15px; letter-spacing: .04em;
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.hero-img { position: relative; }
.arch { margin: 0; border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-alt); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-img .arch { width: 82%; margin-left: auto; box-shadow: 0 30px 60px -30px rgba(47, 42, 38, .35); }
.hero-birds {
  position: absolute; z-index: 2; width: 70%; left: -14%; top: -6%;
  animation: envol 9s ease-in-out infinite alternate;
}
@keyframes envol { from { transform: translate(0, 0); } to { transform: translate(14px, -12px); } }

/* bandeau défilant */
.band { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.band-in { display: flex; width: max-content; animation: defile 40s linear infinite; }
.band-in span { font: italic 400 30px/1 var(--serif); padding: 0 28px; white-space: nowrap; }
.band-in span::after { content: "✦"; font-style: normal; font-size: 13px; color: var(--accent); margin-left: 56px; vertical-align: middle; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 110px 28px; scroll-margin-top: 60px; }
.section-alt { max-width: none; background: var(--bg-alt); }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head h2, .about h2, .contact h2 { font-size: clamp(38px, 4.6vw, 58px); }

/* collections : étiquettes de catalogue */
.cats { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.cat { text-decoration: none; display: block; }
.cat:nth-child(3n+2) { margin-top: 48px; }
.cat-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); border-radius: 4px; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cat:hover .cat-img img { transform: scale(1.05); }
.cat-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; border: 1px solid var(--line); border-radius: 4px; }
.cat-soon img { width: 64px; height: auto; opacity: .55; transition: transform .6s; }
.cat:hover .cat-soon img { transform: translate(6px, -8px) rotate(-6deg); }
.cat-soon span { font: italic 400 20px/1 var(--serif); color: var(--muted); }
.cat-meta { display: flex; align-items: baseline; gap: 14px; padding: 18px 2px 14px; border-bottom: 1px solid var(--line); }
.num { font: italic 400 17px/1 var(--serif); color: var(--accent); }
.cat-meta h3 { font-size: 32px; flex: 1; }
.cat-meta small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cat p { font-size: 15px; color: var(--muted); margin: 12px 0 0; }

/* galeries : accrochage en quinconce */
.gallery { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; scroll-margin-top: 90px; }
.gallery + .gallery { margin-top: 110px; }
.gallery .sec-head { margin-bottom: 44px; }
.grid { columns: 3; column-gap: 28px; }
.piece { break-inside: avoid; margin: 0 0 36px; cursor: zoom-in; }
.piece:nth-child(3n+2) { padding-top: 40px; }
.piece-img { overflow: hidden; border-radius: 3px; background: var(--paper); }
.piece img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.piece:hover img { transform: scale(1.04); }
.piece figcaption { display: flex; gap: 12px; align-items: baseline; padding-top: 12px; font: italic 400 19px/1.3 var(--serif); }
.piece figcaption .num { font-size: 15px; flex: none; }

/* ---------- L'atelier ---------- */
.about { display: grid; grid-template-columns: .8fr 1fr; gap: 90px; align-items: center; }
.about-img { box-shadow: 0 30px 60px -30px rgba(47, 42, 38, .35); }
.about h2 { margin-bottom: 26px; }
.about-txt > p:not(.label) { color: var(--muted); margin: 0 0 16px; }
.facts { list-style: none; padding: 30px 0 0; margin: 30px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facts b { display: block; font: 500 42px/1 var(--serif); color: var(--accent); margin-bottom: 8px; }
.facts span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--ink); color: var(--bg); text-align: center; padding: 130px 28px; scroll-margin-top: 60px; }
.contact > * { position: relative; max-width: 720px; margin-left: auto; margin-right: auto; }
.contact .label { justify-content: center; color: #d9a68c; }
.contact .label::before { display: none; }
.contact h2 { margin-bottom: 22px; }
.contact em { color: #d9a68c; }
.contact .lead { color: rgba(246, 241, 233, .72); margin-bottom: 40px; }
.contact > .contact-birds { position: absolute; width: 360px; max-width: none; right: -40px; top: 30px; filter: invert(1); opacity: .13; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.links a { padding: 14px 30px; border: 1px solid rgba(246, 241, 233, .5); border-radius: 999px; text-decoration: none; transition: background .25s, color .25s; }
.links a:hover { background: var(--bg); color: var(--ink); }
.links .soon { font: italic 400 21px/1 var(--serif); color: rgba(246, 241, 233, .6); }

/* ---------- Pied de page ---------- */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 40px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot p { margin: 0; font-size: 13px; color: var(--muted); }
.foot .logo-txt b { font-size: 26px; }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(28, 24, 21, .95); display: flex; align-items: center; justify-content: center; padding: 30px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 3px; }
.lightbox figcaption { color: var(--bg); margin-top: 16px; font: italic 400 21px/1.3 var(--serif); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--bg); cursor: pointer; font: 300 44px/1 var(--sans); padding: 10px; opacity: .75; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 14px; right: 20px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* apparition douce au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tablette / mobile ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 30px; }
  .hero-img { max-width: 460px; margin: 0 auto; width: 100%; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat:nth-child(3n+2) { margin-top: 0; }
  .cat:nth-child(even) { margin-top: 40px; }
  .grid { columns: 2; }
  .about { grid-template-columns: 1fr; gap: 50px; }
  .about-img { max-width: 420px; }
}
@media (max-width: 720px) {
  .burger { display: block; z-index: 2; }
  nav {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center;
    gap: 30px; font: italic 400 34px/1 var(--serif); opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  nav.open { opacity: 1; pointer-events: auto; }
  .nav-cta { font: 400 16px/1 var(--sans); margin-top: 10px; }
  .top-in, .hero, .section, .gallery, .foot { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .contact { padding: 90px 16px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .cat:nth-child(even) { margin-top: 28px; }
  .cat-meta { flex-wrap: wrap; gap: 4px 8px; padding: 12px 0 10px; }
  .cat-meta h3 { font-size: 24px; flex-basis: 100%; order: 2; }
  .cat-meta small { order: 3; font-size: 10.5px; }
  .cat p { font-size: 13.5px; line-height: 1.5; }
  .cat-soon img { width: 42px; }
  .cat-soon span { font-size: 16px; }
  .grid { columns: 1; }
  .piece:nth-child(3n+2) { padding-top: 0; }
  .facts b { font-size: 34px; }
  .band-in span { font-size: 24px; }
  .lightbox { padding: 20px 10px 60px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
