@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400&family=Work+Sans:wght@300;400;500;600&display=swap");

:root {
  --bg: #131210;
  --bg-soft: #1b1916;
  --fg: #f3efe7;
  --muted: #9a948a;
  --accent: #c9a876;
  --line: rgba(243, 239, 231, 0.12);
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Work Sans", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.display {
  font-family: "Fraunces", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}

.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
  padding-bottom: 4px;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    mix-blend-mode: normal;
  }
  .nav.open {
    transform: translateY(0);
  }
  .nav a {
    font-size: 1.1rem;
  }
}

/* ---------- Film-strip divider (signature element) ---------- */
.filmstrip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
}

.filmstrip::before,
.filmstrip::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.filmstrip .holes {
  display: flex;
  gap: 8px;
}

.filmstrip .holes span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.6;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(201, 168, 118, 0.14),
      transparent 55%
    ),
    linear-gradient(180deg, #0f0e0c 0%, #1b1916 60%, var(--bg) 100%);
  padding-bottom: clamp(40px, 8vh, 90px);
}

.hero-frame {
  position: absolute;
  top: 100px;
  left: clamp(20px, 5vw, 64px);
  right: clamp(20px, 5vw, 64px);
  bottom: 140px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.98;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  max-width: 46ch;
  color: var(--muted);
  margin-top: 22px;
  font-size: 1.05rem;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 46px;
  flex-wrap: wrap;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--fg);
  padding: 14px 28px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn.ghost {
  border-color: var(--line);
  color: var(--muted);
}
.btn.ghost:hover {
  background: var(--fg);
  color: var(--bg);
}

/* ---------- Sections ---------- */
section {
  padding: clamp(70px, 12vh, 130px) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-head p {
  color: var(--muted);
  max-width: 40ch;
}

/* ---------- Category strip (Portfolio nav) ---------- */
.cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 50px;
}

.cat-pill {
  border: 1px solid var(--line);
  padding: 10px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  background: none;
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}

.cat-pill.active,
.cat-pill:hover {
  border-color: var(--accent);
  color: var(--fg);
}

/* ---------- Gallery grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.6vw, 22px);
  align-items: start;
  grid-auto-flow: dense;
}

@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 460px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 700px) {
  .grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 460px) {
  .grid.grid-3 {
    grid-template-columns: 1fr;
  }
}

.frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.frame.frame-hidden {
  /* ← nouveau bloc */
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

.frame.wide {
  aspect-ratio: 4/3;
}
.frame.tall {
  grid-row: span 2;
  aspect-ratio: 4/6.2;
}

.frame .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(243, 239, 231, 0.03) 0 2px,
      transparent 2px 14px
    ),
    linear-gradient(160deg, #201d19, #14120f);
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.frame:hover img {
  transform: scale(1.04);
}

/* Classes utilitaires pour ajuster le point de recadrage selon la photo */
.frame img.pos-top{ object-position: top; }
.frame img.pos-bottom{ object-position: bottom; }
.frame img.pos-top-center{ object-position: top center; }

.frame .placeholder .num {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--accent);
  font-size: 1.6rem;
}

.frame .placeholder .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(243, 239, 231, 0.06);
  transition: border-color 0.3s ease;
}

.frame:hover::after {
  border-color: var(--accent);
}

/* ---------- About / split ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  margin-bottom: clamp(20px, 6vw, 40px);
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split .placeholder {
  aspect-ratio: 4/5;
}

.stat-row {
  display: flex;
  gap: clamp(30px, 5vw, 60px);
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat b {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  color: var(--accent);
  display: block;
}

.stat span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 26px;
}

.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.field input,
.field textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  padding: 10px 0;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-info dt {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin: 6px 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.socials {
  display: flex;
  gap: 18px;
  margin-top: 36px;
}

.socials a {
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.form-status {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 18px;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
