/* Jim Rosemberg — Photographer · Director — feuille de style du site
   Deux polices : « Six Caps » pour le logo et les titres, « Inter Tight » pour tout le reste. */
:root {
  --ink: #111111;         /* logo, titres, menu */
  --text: #2b2b2b;        /* textes */
  --muted: #666666;       /* textes secondaires (contraste 5.7:1) */
  --line: #e2e2e2;
  --bg: #ffffff;
  --side: 304px;          /* largeur de la colonne de gauche */
  --pad-top: 52px;
  --pad-right: 76px;
  --gap: 33px;
  --display: "Six Caps", "Arial Narrow", sans-serif;
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
.content a:not(.tile):not(.idx):not(.projet) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content a:not(.tile):not(.idx):not(.projet):hover { color: var(--muted); }

/* ---------- Logo (texte) ---------- */
.logo { display: inline-block; width: fit-content; color: var(--ink); text-decoration: none; }
.logo .nom, .logo-xl .nom {
  display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .01em; line-height: .82; white-space: nowrap;
}
.logo .sous, .logo-xl .sous {
  display: flex; justify-content: space-between;
  font-family: var(--font); font-weight: 500; text-transform: uppercase; line-height: 1;
}
.logo .nom { font-size: 64px; }
.logo .sous { font-size: 11px; margin-top: 9px; }

/* ---------- Colonne de gauche ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--side);
  padding: var(--pad-top) 24px 40px 43px;
  overflow-y: auto;
  z-index: 10;
  background: var(--bg);
}
.burger { display: none; }

#menu { margin-top: 28px; }
#menu ul { list-style: none; margin: 0; padding: 0; }
#menu a, #menu .cat-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 4px 4px 0;
  font: inherit; font-size: 14px; font-weight: 500; line-height: 24px;
  color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
#menu .cat > ul a { font-weight: 400; color: var(--text); }
#menu a:hover, #menu .cat-toggle:hover { color: var(--muted); }
#menu a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
#menu .cat > ul { display: none; padding: 2px 0 6px 12px; }
#menu .cat.open > ul { display: block; }
#menu .chev { width: 9px; height: 6px; transition: transform .3s var(--ease); }
#menu .cat.open .chev { transform: rotate(180deg); }

.side-foot { margin-top: 32px; display: flex; align-items: center; gap: 14px; }
.side-foot .insta { display: inline-flex; width: 16px; height: 16px; color: var(--ink); }
.side-foot .insta:hover { color: var(--muted); }
.side-foot .insta svg { width: 100%; height: 100%; }
.side-foot .copy { font-size: 12px; line-height: 1.2; color: var(--muted); }

/* ---------- Contenu ---------- */
.content {
  margin-left: var(--side);
  padding: var(--pad-top) var(--pad-right) 96px 0;
  min-height: 100vh;
}
.titre {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 7.5vw, 112px); line-height: .84; letter-spacing: .01em; color: var(--ink);
  text-wrap: balance;
}
.entete { margin-bottom: 48px; }
.intro { max-width: 62ch; margin-top: 28px; color: var(--muted); }
.entete .intro:first-child { margin-top: 0; }
.intro p, .bio p, .projet p, .contact-texte p { margin: 0 0 .9em; }
.intro p:last-child, .bio p:last-child, .projet p:last-child, .contact-texte p:last-child { margin-bottom: 0; }

/* Sélecteur de langue */
.langues { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.langues span { color: #9a9a9a; }
.langues a { color: var(--muted); text-decoration: none; padding: 2px 0; }
.langues a:hover { color: var(--ink); }
.langues a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cache { position: absolute; left: -9999px; }

/* Couleur d'attente + apparition douce des photos */
.tile, .idx .sq { background: var(--ph, #efefef); }
.js .tile img, .js .idx .sq img { opacity: 0; transition: opacity .7s var(--ease); }
.js .tile img.on, .js .idx .sq img.on { opacity: 1; }

/* Mosaïque / galerie (colonnes façon « masonry ») */
.masonry { --cols: 3; display: flex; gap: var(--gap); align-items: flex-start; }
.masonry .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.masonry:not(.ready) { display: block; columns: var(--cols); column-gap: var(--gap); }
.masonry:not(.ready) .tile { break-inside: avoid; margin-bottom: var(--gap); }
.mosaique { max-width: 964px; margin-left: 48px; --gap: 48px; }

.tile { display: block; cursor: zoom-in; }
.tile img { width: 100%; height: auto; }
.js .tile:hover img.on { opacity: .9; }

/* Index de galeries (couvertures verticales 4:5) */
.index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.idx { display: block; text-decoration: none; color: var(--ink); }
.idx .sq { aspect-ratio: 4 / 5; overflow: hidden; }
.idx img { width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.idx:hover img { transform: scale(1.025); }
.idx span { display: block; margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.idx:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Vidéos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.video button { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; }
.video button img { width: 100%; height: 100%; object-fit: cover; }
.video button::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 0; height: 0; transform: translate(-35%, -50%);
  border-left: 22px solid rgba(255,255,255,.92);
  border-top: 13px solid transparent; border-bottom: 13px solid transparent;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.35));
}
.video button:focus-visible { outline: 1px solid #fff; outline-offset: -4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video p { margin: 10px 0 0; font-size: 14px; }

/* ---------- Page About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.bio { max-width: 60ch; }
.bio b, .bio i { font-weight: 600; font-style: normal; }
.sur-titre { margin: 36px 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.clients { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line);
  columns: 3 150px; column-gap: 24px; font-size: 14px; line-height: 1.9; }
.clients li { break-inside: avoid; }
.projet {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center;
  margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--line);
  color: var(--text); text-decoration: none;
}
.projet img { transition: opacity .4s var(--ease); }
.projet:hover img { opacity: .9; }
.projet div { max-width: 60ch; }
.titre-2 { margin: 0 0 20px; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(56px, 6vw, 88px); line-height: .84; letter-spacing: .01em; color: var(--ink); }
.lien-fleche { display: inline-block; margin-top: 8px; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.projet:hover .lien-fleche { color: var(--muted); }
.pied { margin-top: 72px; color: var(--muted); }

/* ---------- Page Contact ---------- */
.accroche { margin-bottom: 40px; }
.accroche h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 7.5vw, 112px); line-height: .84; letter-spacing: .01em; color: var(--ink); }
.accroche h2 + h2 { margin-top: 28px; font-family: var(--font); font-size: 17px; line-height: 1.4;
  font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text); }
.contact-texte { max-width: 644px; }
.sep { max-width: 644px; margin: 48px 0; border: 0; border-top: 1px solid var(--line); }
form.contact { max-width: 644px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form.contact input, form.contact textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid #bdbdbd; padding: 13px 14px; background: #fff; border-radius: 0;
  transition: border-color .2s;
}
form.contact input::placeholder, form.contact textarea::placeholder { color: #707070; }
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--ink); }
form.contact textarea { grid-column: 1 / -1; height: 180px; resize: vertical; }
form.contact button {
  justify-self: start; margin-top: 6px; padding: 14px 30px;
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: #fff;
  background: var(--ink); border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
  transition: background .2s, color .2s;
}
form.contact button:hover { background: #fff; color: var(--ink); }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 4px 0 0; }

/* ---------- Visionneuse ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(255,255,255,.98);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: calc(100vw - 160px); max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; margin: 0 auto; }
.lightbox figcaption { font-size: 13px; margin-top: 10px; min-height: 1.6em; color: var(--muted); }
.lightbox button {
  position: absolute; background: none; border: 0; cursor: pointer; color: var(--ink);
  font: 300 34px/1 var(--font); padding: 18px;
}
.lightbox button:hover { color: var(--muted); }
.lb-close { top: 8px; right: 12px; font-size: 30px !important; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; left: 24px; top: 24px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Page d'ouverture ---------- */
.splash { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; text-decoration: none; background: #111; }
.splash video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.splash::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.28), rgba(0,0,0,0) 70%); }
.logo-xl { position: relative; z-index: 1; display: inline-block; width: fit-content; color: #fff; }
.logo-xl .nom { font-size: clamp(110px, 17vw, 260px); }
.logo-xl .sous { font-size: clamp(12px, 1.25vw, 18px); margin-top: .9em; }

/* ---------- Écrans moyens ---------- */
@media (max-width: 1100px) {
  :root { --side: 260px; --pad-right: 40px; }
  .logo .nom { font-size: 56px; }
  .index { grid-template-columns: repeat(3, 1fr); }
  .mosaique { margin-left: 0; --gap: 32px; }
}
@media (max-width: 900px) {
  .masonry { --cols: 2; }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .about, .projet { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --gap: 16px; }
  .sidebar {
    position: relative; width: auto; height: auto; bottom: auto;
    padding: 20px 16px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }
  .logo { order: 0; margin-right: auto; }
  .logo .nom { font-size: 56px; }
  .logo .sous { font-size: 11px; margin-top: 8px; }
  .langues { order: 1; margin: 0 6px 0 0; font-size: 14px; }
  .langues a { padding: 10px 2px; }
  .burger { order: 2; }
  #menu { order: 3; }
  .side-foot { order: 4; }
  .burger { display: block; width: 44px; height: 44px; position: relative; background: none; border: 0; cursor: pointer; margin-right: -8px; }
  .burger span, .burger span::before, .burger span::after {
    position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); content: ""; transition: transform .25s var(--ease), opacity .2s;
  }
  .burger span { top: 50%; }
  .burger span::before { top: -7px; left: 0; right: 0; }
  .burger span::after { top: 7px; left: 0; right: 0; }
  .sidebar.open .burger span { background: transparent; }
  .sidebar.open .burger span::before { transform: translateY(7px) rotate(45deg); }
  .sidebar.open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
  #menu, .side-foot { display: none; width: 100%; }
  .sidebar.open #menu { display: block; }
  .sidebar.open .side-foot { display: flex; }
  #menu { margin-top: 20px; }
  #menu a, #menu .cat-toggle { font-size: 17px; line-height: 28px; }
  .side-foot { margin: 18px 0 6px; }
  .content { margin-left: 0; padding: 28px 16px 64px; }
  .titre, .accroche h2:first-child { font-size: 72px; }
  .entete { margin-bottom: 32px; }
  .intro { margin-top: 20px; }
  .mosaique { --gap: 16px; }
  .index { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .videos { grid-template-columns: 1fr; }
  .lightbox figure { max-width: calc(100vw - 24px); }
  .lb-prev, .lb-next { display: none; }
  form.contact { grid-template-columns: 1fr; }
  .projet { margin-top: 64px; padding-top: 40px; }
}
@media (max-width: 420px) {
  .masonry { --cols: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
