:root {
  --bg: #F4EDE8;
  --paper: #FBF8F5;
  --ink: #1F1719;
  --ink2: #3A2E31;
  --muted: #5E4E52;
  --line: #DDCFC9;
  --line2: #CDBDB6;
  --ph: #E6D8D1;
  --accent: #8C3F4D;
  --gut: clamp(20px, 5.56vw, 80px);
  --hh: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font: inherit; }

.serif { font-family: 'Cormorant Garamond', 'Garamond', 'Baskerville', Georgia, serif; }
.lbl { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.m-only { display: none; }
.ph {
  background-color: var(--ph);
  background-image:
    repeating-linear-gradient(45deg, rgba(31,23,25,.07) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgba(31,23,25,.07) 0 1px, transparent 1px 8px);
}
section[id], footer[id] { scroll-margin-top: var(--hh); }

.preview-bar {
  position: sticky; top: 0; z-index: 30;
  padding: 10px var(--gut);
  background: var(--accent); color: var(--paper);
  font-size: 13px; letter-spacing: .08em; text-align: center;
}

/* ——— En-tête */
.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--hh);
  padding: 0 var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 22px; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.nav { display: flex; gap: clamp(24px, 3vw, 44px); }
.navlink { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.menu-btn {
  display: none;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.menu-btn path { transition: transform .3s ease; transform-origin: center; }

/* ——— Hero */
.hero {
  min-height: clamp(640px, calc(100svh - var(--hh)), 900px);
  padding: 96px var(--gut) 110px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
}
.hero-text { grid-column: span 7; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.hero-name {
  margin: 0;
  font-weight: 400; font-size: clamp(76px, 12.2vw, 176px); line-height: .9; letter-spacing: -.02em;
  display: flex; flex-direction: column;
}
.hero-name .it { font-style: italic; padding-left: .75em; }
.hero-intro { display: flex; flex-direction: column; gap: 32px; max-width: 520px; }
.kicker { display: flex; align-items: center; gap: 20px; }
.kicker .dash { width: 56px; flex-shrink: 0; border-top: 1px dashed var(--accent); }
.hero-intro p { margin: 0; font-size: 19px; line-height: 1.7; color: var(--ink2); text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--ink);
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.cta:hover { border-color: var(--accent); }
.cta.pri { background: var(--ink); color: var(--paper); }
.cta.pri:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.hero-visual { grid-column: span 5; display: flex; gap: 28px; min-height: 0; }
.ruler {
  width: 20px; flex-shrink: 0; padding: 40px 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--muted);
}
.ruler .ln { flex-grow: 1; border-left: 1px solid currentColor; }
.ruler .lbl { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; }
.portrait { flex-grow: 1; position: relative; overflow: hidden; min-height: 360px; color: var(--ink); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cross { position: absolute; z-index: 1; }
.cross.tl { top: 18px; left: 18px; }
.cross.br { bottom: 18px; right: 18px; }

/* ——— Sections */
.sec { padding: 140px var(--gut); }
.sec.alt { background: var(--paper); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px dashed var(--accent);
}
.sec-head h2 { margin: 0; font-size: clamp(56px, 6.67vw, 96px); font-weight: 400; line-height: 1; letter-spacing: -.01em; }
.sec-head p { margin: 0; max-width: 440px; font-size: 18px; line-height: 1.7; color: var(--ink2); text-wrap: pretty; }

/* ——— Réalisations */
#realisations .sec-head { margin-bottom: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid var(--line2); border-radius: 0; background: transparent;
  font-size: 14px; letter-spacing: .06em; color: var(--ink); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .ct { opacity: .6; font-size: 12px; }

.gal {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(220px, 23.6vw, 340px);
  grid-auto-flow: dense;
  gap: 24px;
}
.t-std { grid-column: span 4; }
.t-tall { grid-column: span 4; grid-row: span 2; }
.t-wide { grid-column: span 8; }
.tile { margin: 0; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.tile[hidden] { display: none; }
.tile-btn {
  flex-grow: 1; min-height: 0; width: 100%;
  position: relative; overflow: hidden; display: block;
  padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in;
}
.media { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.tile-btn:hover .media { transform: scale(1.025); }
.tile .no {
  position: absolute; top: 16px; left: 18px;
  font-size: 15px; font-style: italic; color: var(--ink);
}
.tile .media.has-img + .no { padding: 1px 8px; background: rgba(251,248,245,.88); left: 12px; top: 12px; }
.tile figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tile figcaption .t { font-size: 21px; }
.tile figcaption .lbl { font-size: 11px; color: var(--muted); flex-shrink: 0; }

/* ——— Expérience */
.exp {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  padding: 64px 0;
  border-bottom: 1px dashed var(--line2);
}
.exp-when { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; }
.exp-when .date { font-size: clamp(30px, 3.06vw, 44px); font-style: italic; line-height: 1.1; }
.exp-body { grid-column: span 8; display: flex; flex-direction: column; gap: 22px; }
.exp-head { display: flex; flex-direction: column; gap: 12px; }
.exp-head h3 { margin: 0; font-size: clamp(30px, 2.78vw, 40px); font-weight: 400; line-height: 1.15; }
.exp-text p { margin: 0 0 1em; max-width: 760px; font-size: 18px; line-height: 1.75; color: var(--ink2); text-wrap: pretty; }
.exp-text p:last-child { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-size: 13px; letter-spacing: .06em; padding: 6px 14px; border: 1px solid var(--line2); color: var(--ink2); }

/* ——— Formations */
.frm {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline;
  padding: 40px 0;
  border-bottom: 1px dashed var(--line2);
}
.frm .yr { grid-column: span 2; font-size: 28px; font-style: italic; }
.frm .ti { grid-column: span 6; display: flex; flex-direction: column; gap: 8px; }
.frm .ti .serif { font-size: 32px; line-height: 1.2; }
.frm .ti .d { font-size: 16px; line-height: 1.6; color: var(--ink2); }
.frm .where { grid-column: span 4; text-align: right; }

/* ——— Contact */
.contact {
  padding: 140px var(--gut) 48px;
  background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; gap: 56px;
}
.contact h2 { margin: 0; font-size: clamp(46px, 7.2vw, 104px); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; max-width: 1100px; }
.contact a { color: var(--bg); }
.contact a:hover { color: #E7C3C9; }
.contact-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 40px; flex-wrap: wrap; }
.mail { font-size: clamp(26px, 3.06vw, 44px); text-underline-offset: 10px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.socials { display: flex; gap: 36px; }
.socials a { min-height: 44px; display: inline-flex; align-items: center; }
.legal {
  margin-top: auto; padding-top: 28px;
  border-top: 1px dashed var(--muted);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; letter-spacing: .08em; color: #BFAFB2;
}
.contact .legal a { color: #BFAFB2; }

/* ——— Visionneuse */
.lb {
  width: min(1240px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100svh - 32px);
  padding: 0; border: 0; border-radius: 0;
  background: var(--paper); color: var(--ink);
  overflow: hidden;
}
.lb::backdrop { background: rgba(31,23,25,.84); }
.lb-in { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); height: min(860px, calc(100svh - 32px)); }
.lb-img { background: var(--ph); min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-img img { width: 100%; height: 100%; object-fit: contain; }
.lb-txt { padding: 64px 44px 36px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.lb-txt .no { font-size: 17px; font-style: italic; }
.lb-txt h3 { margin: 0; font-size: 40px; font-weight: 400; line-height: 1.1; }
.lb-meta { font-size: 15px; color: var(--muted); }
.lb-desc p { margin: 0 0 1em; font-size: 17px; line-height: 1.75; color: var(--ink2); }
.lb-nav { margin-top: auto; padding-top: 24px; display: flex; gap: 8px; }
.lb-nav .chip { width: 52px; padding: 0; font-size: 18px; }
.lb-close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 0; background: var(--paper); color: var(--ink); cursor: pointer;
}
.lb-close:hover { color: var(--accent); }

/* ——— Tablette */
@media (max-width: 1080px) {
  .gal { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 34vw, 340px); gap: 20px; }
  .t-std, .t-tall { grid-column: span 3; }
  .t-wide { grid-column: span 6; }
  .hero-text { grid-column: span 7; }
  .hero-visual { grid-column: span 5; gap: 16px; }
  .exp-when { grid-column: span 12; flex-direction: row; align-items: baseline; gap: 20px; margin-bottom: 24px; }
  .exp-body { grid-column: span 12; }
}

/* ——— Mobile */
@media (max-width: 760px) {
  :root { --hh: 64px; }
  .top { padding: 0 12px 0 20px; }
  .brand { font-size: 19px; }
  .menu-btn { display: flex; }
  .nav {
    position: fixed; top: var(--hh); left: 0; right: 0; bottom: 0;
    padding: 24px 20px;
    flex-direction: column; gap: 0;
    background: var(--bg);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav .navlink {
    display: flex; align-items: center; min-height: 72px;
    border-bottom: 1px dashed var(--line2);
    font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; letter-spacing: 0; text-transform: none;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  body.nav-open .menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
  body.nav-open .menu-btn .l2 { transform: translate(-3px, -5px) rotate(-45deg) scaleX(1.37); }

  .hero { display: flex; flex-direction: column; gap: 28px; padding: 40px 20px 64px; min-height: 0; }
  .hero-text { display: contents; }
  .hero-name { order: 1; font-size: clamp(56px, 19.5vw, 76px); line-height: .92; }
  .hero-name .it { padding-left: .58em; }
  .hero-visual { order: 2; height: min(440px, 113vw); }
  .ruler { display: none; }
  .portrait { min-height: 0; }
  .cross { width: 20px; height: 20px; }
  .cross.tl { top: 14px; left: 14px; }
  .cross.br { display: none; }
  .hero-intro { order: 3; max-width: none; gap: 28px; }
  .kicker { gap: 14px; }
  .kicker .dash { width: 36px; }
  .kicker .lbl { font-size: 10px; letter-spacing: .22em; }
  .hero-intro p { font-size: 17px; }
  .ctas { flex-direction: column; gap: 12px; }
  .cta { width: 100%; font-size: 12px; }

  .sec { padding: 72px 20px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 24px; }
  .sec-head h2 { font-size: 56px; }
  .sec-head p { font-size: 16px; line-height: 1.65; }
  .lbl { font-size: 11px; letter-spacing: .22em; }

  #realisations .sec-head { margin-bottom: 28px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -20px 28px; padding: 0 20px; scrollbar-width: none; }
  .chip { flex-shrink: 0; padding: 0 16px; letter-spacing: 0; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min(210px, 54vw); gap: 12px; }
  .t-std, .t-tall { grid-column: span 1; }
  .t-wide { grid-column: span 2; }
  .tile { gap: 8px; }
  .tile .no { top: 10px; left: 12px; font-size: 13px; }
  .tile .media.has-img + .no { top: 8px; left: 8px; padding: 0 6px; }
  .tile figcaption { flex-direction: column; gap: 2px; }
  .tile figcaption .t { font-size: 16px; }
  .tile figcaption .lbl { font-size: 9px; }

  .exp { display: flex; flex-direction: column; gap: 16px; padding: 40px 0; }
  .exp-when { margin: 0; }
  .exp-when .date { font-size: 28px; }
  .exp-when .lbl { display: none; }
  .m-only { display: inline; }
  .exp-body { gap: 16px; }
  .exp-head { gap: 16px; }
  .exp-head h3 { font-size: 28px; line-height: 1.2; }
  .exp-text p { font-size: 16px; line-height: 1.7; }
  .tags { gap: 8px; }
  .tag { font-size: 12px; letter-spacing: .04em; padding: 6px 12px; }

  .frm { display: flex; flex-direction: column; gap: 8px; padding: 28px 0; }
  .frm .yr { font-size: 18px; }
  .frm .ti .serif { font-size: 24px; }
  .frm .where { text-align: left; }

  .contact { padding: 72px 20px 32px; gap: 32px; }
  .contact h2 { font-size: 46px; line-height: 1.05; }
  .mail { text-underline-offset: 8px; }
  .socials { gap: 28px; }
  .socials .navlink { font-size: 11px; letter-spacing: .22em; }
  .legal { flex-direction: column; align-items: flex-start; font-size: 12px; padding-top: 20px; }

  .lb { width: 100vw; height: 100svh; max-height: none; }
  .lb-in { grid-template-columns: 1fr; grid-template-rows: minmax(0, 58svh) auto; height: 100%; overflow-y: auto; }
  .lb-txt { padding: 28px 20px 24px; overflow: visible; }
  .lb-txt h3 { font-size: 32px; }
}

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