/* ===== Tokens ===== */
:root{
  --paper: #FFFFFF;
  --paper-raised: #FFFFFF;
  --ink: #14120F;
  --ink-soft: #3A362F;
  --line: #C9C2B4;
  --line-soft: #E3DED2;
  --accent: #445E75;
  --label: #8B8377;

  --serif: "Fraunces", serif;
  --sans: "Work Sans", sans-serif;
  --mono: "JetBrains Mono", monospace;

  --max: 1080px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

html, body{
  max-width: 100%;
  overflow-x: hidden;
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }

h1, h2, h3{
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

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

/* subtle paper grain, purely decorative */
.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
}
.brand{
  font-family: var(--serif);
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Bouton hamburger */
.nav-toggle{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
}
.nav-toggle span:nth-child(2){ width: 100%; }
.nav-toggle.is-open span{ width: 100%; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Panneau du menu (mobile : déroulant sous le header) */
.nav{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.nav.is-open{
  max-height: 400px;
  padding-top: 0.4rem;
  padding-bottom: 1rem;
}
.nav a{
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s ease;
}
.nav a:last-child{ border-bottom: none; }
.nav a:hover{ color: var(--ink); }

/* À partir d'un écran plus large : menu en ligne, pas de hamburger */
@media (min-width: 720px){
  .nav-toggle{ display: none; }
  .nav{
    position: static;
    flex-direction: row;
    max-height: none;
    overflow: visible;
    background: none;
    border-bottom: none;
    padding: 0;
    gap: clamp(1rem, 3vw, 2.2rem);
  }
  .nav a{
    padding: 0;
    border-bottom: 1px solid transparent;
  }
  .nav a:hover{ border-color: var(--ink); }
}

/* ===== Hero ===== */
.hero{
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 5rem);
}
.eyebrow{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 1.2rem;
}
.hero h1{
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  font-style: italic;
}
.ink-stroke{
  width: min(420px, 60%);
  height: 24px;
  margin: 1rem 0 1.6rem;
  display: block;
}
.ink-stroke path{
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: draw 1.3s 0.2s cubic-bezier(.65,0,.35,1) forwards;
}
@media (prefers-reduced-motion: reduce){
  .ink-stroke path{ animation: none; stroke-dashoffset: 0; }
}
@keyframes draw{ to{ stroke-dashoffset: 0; } }

.hero-sub{
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.hero-actions{
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}
.btn{
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary{ background: var(--ink); color: var(--paper); }
.btn-primary:hover{ background: var(--accent); }
.btn-ghost{ border: 1px solid var(--line); color: var(--ink-soft); }
.btn-ghost:hover{ border-color: var(--ink); color: var(--ink); }

/* ===== Section shared ===== */
main > section{
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1rem;
  margin-bottom: 2.4rem;
}
.section-head h2{ font-size: 1.9rem; }
.section-note{
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--label);
  margin: 0;
}
h2{ font-size: 1.9rem; margin-bottom: 1.6rem; }

/* ===== Galerie / checklist ===== */
.checklist{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.piece{ display: flex; flex-direction: column; }
.frame{
  aspect-ratio: 3/4;
  background: var(--paper-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.piece:hover .frame{ opacity: 0.96; }
.frame-placeholder{
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--label);
  line-height: 1.6;
}
.label{
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 0.6rem;
  row-gap: 0.15rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.label .plate{ color: var(--accent); grid-row: 1; }
.label .title{ font-style: italic; font-family: var(--serif); font-size: 0.95rem; grid-row: 1; }
.label .price{ grid-row: 1; text-align: right; }
.label .medium{ grid-column: 1 / -1; color: var(--label); grid-row: 2; }

/* ===== Photographies ===== */
.collection + .collection{ margin-top: 3.5rem; }
.collection-head{
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.collection-head h3{
  font-size: 1.3rem;
  font-style: italic;
}
.collection-note{
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--label);
  margin: 0;
}
.frame-photo{
  aspect-ratio: auto;
  border: none;
  padding: 0;
}
.frame-photo img{
  height: auto;
  object-fit: contain;
}
.photo-grid .medium{ line-height: 1.5; }
.photo-grid .label{ grid-template-columns: 1fr auto; }
.photo-grid .label .title{ grid-column: 1; grid-row: 1; }
.photo-grid .label .price{ grid-column: 2; grid-row: 1; }
.photo-grid .label .medium{ grid-column: 1 / -1; grid-row: 2; }

/* Photographie en pleine largeur : la section ignore le conteneur centré,
   les images vont bord à bord, seul le texte garde une marge de confort */
.photographies{
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.photographies .section-head,
.photographies .collection-head{
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}
.photo-grid{
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
}
.photo-grid .label{
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.frame-photo img{ cursor: zoom-in; }

/* ===== A propos ===== */
.apropos{
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.apropos-text p{ color: var(--ink-soft); max-width: 56ch; }
.apropos-mark{ justify-self: end; opacity: 0.9; }
.apropos-mark svg{ width: 90px; height: 90px; }
.apropos-mark circle{ fill: none; stroke: var(--accent); stroke-width: 1.2; }
@media (max-width: 720px){
  .apropos{ grid-template-columns: 1fr; }
  .apropos-mark{ display: none; }
}

/* ===== Acquerir ===== */
.steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.8rem;
}
.steps li{
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.4rem;
}
.step-num{
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.95rem;
}
.steps h3{ font-size: 1.05rem; margin-bottom: 0.3rem; }
.steps p{ margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.acquerir-text{
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 1rem;
}

/* ===== Contact ===== */
.contact-form{
  display: grid;
  gap: 1.1rem;
  max-width: 480px;
  margin-top: 1.5rem;
}
.field{ display: grid; gap: 0.35rem; }
.field label{
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--label);
}
.field input, .field textarea{
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink);
  border-radius: 2px;
  resize: vertical;
}
.field input:focus, .field textarea:focus{ border-color: var(--accent); }
.contact-form .btn{
  justify-self: start;
  border: none;
  cursor: pointer;
}

/* ===== Footer ===== */
.site-footer{
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--label);
  border-top: 1px solid var(--line-soft);
}
.site-footer a{ text-decoration: none; color: var(--label); }
.site-footer a:hover{ color: var(--ink); }

/* ===== Lightbox ===== */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(20,18,15,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.lightbox.is-open{ display: flex; }
.lightbox img{
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  user-select: none;
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 1.7rem;
  cursor: pointer;
  padding: 1rem;
  line-height: 1;
}
.lightbox-close{ top: 0.3rem; right: 0.3rem; }
.lightbox-prev{ left: 0.1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 0.1rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter{
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-family: var(--mono);
  font-size: 0.75rem;
}
