/* ─── Tokens ─── */
:root {
  --bg: #0a0a0a;
  --line: #1e1e1e;
  --text: #f2f2f2;
  --dim: #7a7a7a;
  --mute: #3a3a3a;
  --gap: 3px;
  --gutter: clamp(18px, 4vw, 52px);
  --max: 1800px;
  --ease: cubic-bezier(.22,.7,.2,1);
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }
::selection { background: #fff; color: #000; }

/* ─── Shared ─── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--text);
  max-width: 54ch;
}
p { color: var(--dim); }

/* ─── Reveal ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ─── Header ─── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .3s var(--ease);
}
.site-header.scrolled { padding-top: 13px; padding-bottom: 13px; }
.brand {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: #fff;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #fff;
  position: relative;
  padding-bottom: 2px;
}
.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* Mobile nav */
.nav-toggle { display: none; width: 34px; height: 22px; position: relative; z-index: 51; }
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 1px; background: #fff;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 5px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0;
    background: #000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    transform: translateY(-100%);
    transition: transform .5s var(--ease);
    mix-blend-mode: normal;
  }
  .nav a { font-size: 20px; }
  .nav-open .nav { transform: none; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  animation: zoomIn 2s var(--ease) forwards;
}
@keyframes zoomIn { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.38) 0%,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0) 55%,
    rgba(0,0,0,.75) 100%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  z-index: 2;
  left: var(--gutter); right: var(--gutter);
  bottom: clamp(44px, 7vh, 88px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-title {
  font-size: clamp(72px, 14vw, 230px);
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  text-align: right;
}
.hero-meta .eyebrow { color: rgba(255,255,255,.65); }

/* ─── Photo Gallery ─── */
.pg-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: var(--gap) 0;
}

/* Toutes les rangées ont une hauteur explicite — zéro conflit aspect-ratio vs stretch */
.pg-row {
  display: flex;
  gap: var(--gap);
  width: 100%;
  height: clamp(300px, 40vh, 480px);
}

.pg-item {
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
  position: relative;
  /* pas de flex-shrink global, géré par type */
}
.pg-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--ease), filter .5s var(--ease);
  filter: brightness(.88);
  will-change: transform;
}
.pg-item:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}

/* wide: prend l'espace restant, hauteur de la rangée */
.pg-row > .pg-item.wide { flex: 1; }
/* narrow: largeur fixe 26% */
.pg-row > .pg-item.narrow { flex: 0 0 26%; }

/* full width: sa propre hauteur via aspect-ratio */
.pg-row:has(> .pg-item.full) { height: auto; }
.pg-row > .pg-item.full {
  flex: 1;
  aspect-ratio: 16 / 7;
  max-height: clamp(280px, 40vh, 500px);
}

/* trois égaux */
.pg-row.three { height: clamp(280px, 36vh, 440px); }
.pg-row.three > .pg-item { flex: 1; }

/* deux portraits */
.pg-row.two-portrait { height: clamp(300px, 38vh, 460px); }
.pg-row.two-portrait > .pg-item { flex: 1; }

/* deux paysages */
.pg-row.two-landscape { height: clamp(300px, 40vh, 480px); }
.pg-row.two-landscape > .pg-item { flex: 1; }

/* mobile: tout en colonne */
@media (max-width: 700px) {
  .pg-row, .pg-row.three, .pg-row.two-portrait, .pg-row.two-landscape {
    flex-direction: column; height: auto;
  }
  .pg-row:has(> .pg-item.full) { height: auto; }
  .pg-item { width: 100% !important; flex: none !important; aspect-ratio: 4 / 3; max-height: 70vw; }
  .pg-item.portrait { aspect-ratio: 3 / 4; max-height: 90vw; }
  .pg-item.full { aspect-ratio: 16 / 9; max-height: 56vw; }
}

/* ─── About ─── */
.about-section {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .about-section { grid-template-columns: 1fr 1fr; min-height: 85vh; }
}
.about-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .about-photo { aspect-ratio: unset; } }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-photo-label { position: absolute; bottom: 22px; left: 24px; }

.about-body {
  padding: clamp(44px, 7vw, 100px) clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-list { margin-top: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line); }
.about-list .row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.about-list .row dt { color: var(--mute); text-transform: uppercase; font-size: 10px; letter-spacing: 0.2em; }
.about-list .row dd { color: var(--text); }
.about-list a { border-bottom: 1px solid var(--mute); padding-bottom: 2px; transition: border-color .3s; }
.about-list a:hover { border-color: var(--text); }

/* ─── CTA ─── */
.cta {
  padding: clamp(100px, 16vw, 220px) 0;
  text-align: center;
}
.cta .eyebrow { display: block; margin-bottom: 28px; }
.cta h2 { font-size: clamp(48px, 9vw, 150px); margin-bottom: 52px; }
.cta h2 em { font-style: italic; color: var(--dim); }
.cta .email {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 26px);
  border-bottom: 1px solid var(--mute);
  padding-bottom: 5px;
  transition: border-color .3s;
}
.cta .email:hover { border-color: var(--text); }

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mute);
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-sub {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.site-footer a:hover { color: var(--text); }
.social { display: flex; gap: 24px; }

/* ─── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.97);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img-wrap {
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
}
.lb-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 32px; color: rgba(255,255,255,.7);
  line-height: 1;
  transition: color .2s;
}
.lb-close:hover { color: #fff; }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: rgba(255,255,255,.5);
  padding: 24px 20px;
  transition: color .2s;
}
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-prev:hover, .lb-next:hover { color: #fff; }

/* ─── Contact page ─── */
.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--gutter) 80px;
  max-width: var(--max);
  margin: 0 auto;
}
.contact-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(52px, 9vw, 130px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 64px;
}
.contact-page h1 em { font-style: italic; color: var(--dim); }
.contact-grid {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid .block .eyebrow { display: block; margin-bottom: 12px; }
.contact-grid .block a,
.contact-grid .block p {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--text);
  line-height: 1.3;
}
.contact-grid .block a {
  border-bottom: 1px solid var(--mute);
  padding-bottom: 3px;
  transition: border-color .3s;
}
.contact-grid .block a:hover { border-color: var(--text); }

/* ─── Video ─── */
.video-section {
  padding: clamp(60px, 10vw, 140px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.video-label { margin-bottom: 24px; }
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.video-wrap iframe,
.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* Custom video controls */
.video-controls {
  position: absolute;
  bottom: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.vc-play,
.vc-mute {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.vc-play:hover, .vc-mute:hover { color: #fff; }
.vc-play svg, .vc-mute svg { width: 18px; height: 18px; display: block; }

.vc-play .icon-play { display: none; }
.vc-play[data-playing="false"] .icon-pause { display: none; }
.vc-play[data-playing="false"] .icon-play { display: block; }

.vc-mute .icon-sound { display: none; }
.vc-mute[data-muted="false"] .icon-muted { display: none; }
.vc-mute[data-muted="false"] .icon-sound { display: block; }

.vc-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 88px;
  height: 2px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, rgba(255,255,255,.8) 0%, rgba(255,255,255,.25) 0%);
}
.vc-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.vc-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 0;
}

/* ─── Contact form ─── */
.contact-form {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-group label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--mute);
  padding: 12px 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: border-color .3s;
  width: 100%;
  -webkit-appearance: none;
}
.form-group select { cursor: pointer; }
.form-group select option { background: #1a1a1a; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--mute); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--text); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  align-self: flex-start;
  margin-top: 8px;
  padding: 14px 40px;
  border: 1px solid var(--mute);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: border-color .3s, background .3s, color .3s;
}
.form-submit:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.contact-meta {
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

/* ─── Merci page ─── */
.merci-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--gutter) 80px;
  max-width: var(--max);
  margin: 0 auto;
}
.merci-page .eyebrow { display: block; margin-bottom: 24px; }
.merci-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 120px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 36px;
}
.merci-page h1 em { font-style: italic; color: var(--dim); }
.merci-page p { font-size: 15px; color: var(--dim); line-height: 1.7; margin-bottom: 48px; }
.merci-links { display: flex; gap: 36px; flex-wrap: wrap; }
.merci-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--mute);
  padding-bottom: 3px;
  transition: border-color .3s;
}
.merci-links a:hover { border-color: var(--text); }

/* Form error */
.form-error {
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid #6b2020;
  background: rgba(107,32,32,.15);
  font-size: 13px;
  color: #e07070;
  line-height: 1.6;
}
.form-error a { color: inherit; border-bottom: 1px solid currentColor; }

/* ─── Legal page ─── */
.legal-page {
  min-height: 100vh;
  padding: 140px var(--gutter) 80px;
  max-width: 860px;
  margin: 0 auto;
}
.legal-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7vw, 100px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 72px;
}
.legal-page h1 em { font-style: italic; color: var(--dim); }
.legal-section { margin-bottom: 56px; }
.legal-section h2 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.legal-section h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 28px 0 10px;
}
.legal-section p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--dim);
  max-width: 70ch;
}
.legal-section p a {
  color: var(--text);
  border-bottom: 1px solid var(--mute);
  padding-bottom: 1px;
  transition: border-color .3s;
}
.legal-section p a:hover { border-color: var(--text); }
.legal-dl { display: flex; flex-direction: column; gap: 0; }
.legal-dl > div {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.legal-dl dt {
  flex: 0 0 220px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 2px;
}
.legal-dl dd { color: var(--text); }
.legal-dl a {
  color: var(--text);
  border-bottom: 1px solid var(--mute);
  padding-bottom: 1px;
  transition: border-color .3s;
}
.legal-dl a:hover { border-color: var(--text); }

@media (max-width: 600px) {
  .legal-page { padding-top: 96px; }
  .legal-page h1 { font-size: clamp(34px, 10vw, 52px); margin-bottom: 48px; }
  .legal-dl > div { flex-direction: column; gap: 4px; }
  .legal-dl dt { flex: none; }
}

/* ─── Responsive ─── */

/* Hero: image alignée à droite sur mobile */
@media (max-width: 700px) {
  .hero-media img { object-position: 82% 30%; }
}

/* Hero: petit titre sur très petits écrans */
@media (max-width: 400px) {
  .hero-title { font-size: clamp(52px, 16vw, 72px); }
}

/* Hero: meta sous le titre sur mobile */
@media (max-width: 600px) {
  .hero-content { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-meta { align-items: flex-start; text-align: left; }
}

/* Contrôles vidéo: cibles touch 44px + fond flouté */
@media (max-width: 700px) {
  .video-controls {
    bottom: 10px; right: 10px; gap: 4px;
    background: rgba(0,0,0,.45);
    padding: 5px 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
  }
  .vc-play, .vc-mute { width: 44px; height: 44px; }
  .vc-play svg, .vc-mute svg { width: 20px; height: 20px; }
  .vc-volume { width: 72px; height: 3px; }
  .vc-volume::-webkit-slider-thumb { width: 16px; height: 16px; }
  .vc-volume::-moz-range-thumb { width: 16px; height: 16px; }
}

/* Lightbox: boutons tactiles plus grands */
@media (max-width: 700px) {
  .lb-prev, .lb-next { padding: 32px 14px; }
  .lb-close { top: 14px; right: 14px; padding: 8px; font-size: 28px; }
}

/* About: photo moins haute sur mobile */
@media (max-width: 600px) {
  .about-photo { aspect-ratio: 3 / 2; }
}

/* Contact page: padding réduit + h1 plus petit */
@media (max-width: 600px) {
  .contact-page { padding-top: 96px; padding-bottom: 52px; justify-content: flex-start; }
  .contact-page h1 { font-size: clamp(28px, 9vw, 52px); margin-bottom: 36px; }
  .contact-form { margin-top: 48px; }
  .contact-meta { flex-direction: column; }
  .form-submit { align-self: stretch; text-align: center; }
}

/* Footer: centré sur très petit écran */
@media (max-width: 400px) {
  .site-footer { flex-direction: column; align-items: center; text-align: center; }
}

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