/* laurent gongora — feuille de style
   Polices : IBM Plex Serif semi-gras (nom, rubriques, titres), IBM Plex Mono (dates, fiches techniques),
             IBM Plex Serif (textes de présentation) */
:root {
  --grey: #aaa;
  --light: #bdbdbd;
  --menu-grey: #b9b9b9;        /* gris des liens du menu, un peu plus clair */
  --ink: #000;
  --bg: #fff;
  --nav-w: 500px;
  --gap: 14px;                 /* espace entre le menu et la colonne de droite (≈ 10 pt) */
  --col: 600px;                /* largeur des photos et du texte */
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "Aleo", Georgia, "Times New Roman", serif;   /* nom, rubriques, titres (semi-gras) */
  --badge: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;   /* pastille ENG / FR */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--mono); font-size: 14px; line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }

/* ---------- colonne de gauche : menu ---------- */
.top { display: none; font-family: var(--sans); }
.nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--nav-w);
  overflow-y: auto; padding: 40px 20px 40px 90px; text-align: right;
  font-family: var(--sans);
}
.nav .name, .top .name {
  font-family: var(--sans); font-size: 28px; font-weight: 800; color: var(--grey); line-height: 1.2;
}
.nav .name, .nav .name:hover, .top .name { color: var(--ink); }
/* sous le nom : art public / anticapitaliste, dans la police de « contact » */
.baseline { margin: -2px 0 13px; font-family: var(--mono); font-weight: 300; font-size: 14px; line-height: 1.3; color: var(--ink); }
.baseline .sl { display: none; }
.top-left { display: flex; flex-direction: column; }
.links { list-style: none; margin: 6px 0 20px; padding: 0; font-family: var(--mono); font-size: 14px; font-weight: 300; line-height: 1.2; }
.links a, .sec li a { color: var(--menu-grey); transition: color .15s; }
.links a:hover, .sec li a:hover, .sec li a.on { color: var(--ink); }
/* petits "logos" : langue et Instagram */
.lang, .ig { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  height: 20px; color: var(--menu-grey); transition: color .15s, border-color .15s; }
.lang { font-family: var(--badge); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; line-height: 1;
  height: 15px; padding: 0 2px 0 3px; border: 1.3px solid currentColor; border-radius: 3.5px; }
.ig { width: 20px; }
.ig svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.ig svg .dot { fill: currentColor; stroke: none; }
.lang:hover, .ig:hover { color: var(--ink); }
.links .lang-item { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-bottom: 10px; }

.sec-title {
  display: block; width: 100%; text-align: inherit;
  font-family: var(--sans); font-size: 28px; font-weight: 800; line-height: 1.2;
  color: var(--grey); padding: 0; transition: color .2s;
}
.sec-title:hover, .sec.open .sec-title { color: var(--ink); }
.links.end { display: none; margin: 0; }
.links.end a { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 300; line-height: 1.2; color: var(--ink); }
/* ouverture / fermeture en douceur */
.sec-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.sec.open .sec-body { grid-template-rows: 1fr; }
.sec-body > ul { overflow: hidden; min-height: 0; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 14px; font-weight: 300; line-height: 1.4; }
.sec-body > ul > li:first-child { padding-top: 4px; }
.sec-body > ul > li:last-child { padding-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .sec-body { transition: none; } }
.copy { margin-top: 26px; font-family: var(--mono); font-weight: 300; font-size: 12px; line-height: 1.3; color: var(--light); }

/* ---------- colonne de droite : contenu ---------- */
.main {
  margin-left: var(--nav-w); padding: 40px 40px 80px var(--gap);
  max-width: calc(var(--nav-w) + var(--gap) + var(--col) + 40px);
}
.project .text { max-width: var(--col); }
/* fiche technique : titre, date, matériaux, dimensions... */
.project .text p { margin: 0 0 1em; font-family: var(--mono); font-weight: 300; font-size: 14px; line-height: 1.2; }
.project .text b { font-family: var(--sans); font-size: 28px; font-weight: 800; line-height: 1.2; margin-right: .4em; }
.project .text .tr { font-weight: 300; margin-right: .45em; }
.project .text strong { font-weight: 600; }
/* texte de présentation */
.project .text em { font-family: var(--serif); font-style: normal; font-weight: 400; font-size: 16px; line-height: 1.25; }
.project .text a { border-bottom: 1px solid #ccc; }
.project .text a:hover { border-bottom-color: var(--ink); }
.media { margin-top: 28px; }
.project .text.after { margin-top: 10px; }
@media (min-width: 761px) {
  .project { display: flex; flex-direction: column; }
  .project .text.after { order: 1; margin-top: 25px; }
  .project .media { order: 2; margin-top: 30px; }
  /* 25 px entre la fiche et le texte, 30 px entre le texte et la première photo */
  .project > .text:first-child > p:last-child, .project > .text:first-child > p.f:last-child, .project .text.after > p:last-child { margin-bottom: 0; }
}
.project .text:not(.after) p { line-height: 1.2; }
.project .text p.f { margin: 0 0 .5em; }
.project .text p.f:last-child { margin-bottom: 1.2em; }
@media (min-width: 761px) { .lang { padding-top: 1.5px; } }
.media img { width: var(--col); max-width: 100%; margin: 0 0 18px; background: #f2f2f2; }
.video { position: relative; width: var(--col); max-width: 100%; aspect-ratio: 16 / 9; margin: 0 0 18px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pn { display: flex; justify-content: space-between; gap: 16px; width: var(--col); max-width: 100%;
  margin-top: 30px; padding-top: 14px; border-top: 1px solid #e6e6e6; font-size: 14px; color: var(--grey); }
.pn a:hover { color: var(--ink); }
.pn a:last-child { text-align: right; }

/* accueil : mosaïque de vignettes */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; max-width: 980px; }
.tile { position: relative; display: block; background: #f2f2f2; aspect-ratio: 4 / 3; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s, transform .4s; }
.tile span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 8px 10px; font-size: 12px; line-height: 1.25; color: #fff; text-shadow: 0 0 6px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.4);
  opacity: 0; transition: opacity .25s;
}
@media (hover: hover) and (min-width: 761px) {
  .tile:hover img, .tile:focus img, .tile.hl img { filter: blur(10px); transform: scale(1.08); }
  .sec-title.hl, .sec li a.hl { color: var(--ink); }
}
.tile.off { display: none; }
.tile:hover span { opacity: 1; }
.tile span:empty { display: none; }
/* noms des projets sur les vignettes : désactivés pour l'instant (supprimer cette ligne pour les réafficher) */
.tile span { display: none !important; }

/* ---------- tablette ---------- */
@media (max-width: 1100px) {
  :root { --nav-w: 330px; }
  .nav { padding-left: 20px; }
  .nav .name, .sec-title { font-size: 22px; }
  .main { padding-right: 24px; }
}

/* ---------- téléphone ---------- */
@media (max-width: 760px) {
  .top {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 20; background: var(--bg);
    padding: 14px 16px 8px;
  }
  .top .lang, .top .ig, .top .menu-btn { color: var(--ink); }
  .top .name { font-size: 24px; font-weight: 800; }
  .top .baseline { display: block; margin-top: -1px; font-size: 12px; line-height: 1.25; color: var(--ink); }
  .nav .baseline { display: none; }
  .top .baseline .sl { display: inline; }
  .top .baseline br { display: none; }
  .top-right { display: flex; align-items: center; gap: 10px; }
  .top .lang { position: relative; }
  .top .lang::after { content: ""; position: absolute; inset: -12px -6px; }
  .links .lang-item, .links:not(.end) { display: none; }
  .links.end { display: block; }
  .menu-btn { display: flex; align-items: center; padding: 10px 0 10px 14px; line-height: 0; }
  .menu-btn svg { width: 22px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .main.swipe-anim { transition: transform .22s ease, opacity .22s ease; }
  .nav {
    display: none; position: fixed; top: var(--top-h, 58px); left: 0; right: 0; bottom: 0; width: auto;
    z-index: 19; background: var(--bg); text-align: left; padding: 4px 16px 40px;
  }
  .nav > .name { display: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { display: flex; flex-direction: column; overflow-y: auto; }
  .links { display: flex; gap: 18px; font-size: 14px; margin: 0 0 18px; }
  .sec-title { font-size: 24px; padding: 6px 0; }
  .links.end { order: -1; margin: 0 0 14px; }
  .sec-body > ul { font-size: 12px; line-height: 1.8; }
  .sec.open li a { color: var(--ink); }
  .project .text p.f { margin: 0; }
  .project .text p.f:last-child { margin-bottom: 1em; }
  .main { margin-left: 0; padding: 0 16px 60px; }
  .home .main { padding-top: 20px; }
  /* fiches : petit espace sous la barre pour que le haut du titre ne passe pas sous la bannière */
  .p .main { padding-top: 8px; }
  .project > .text:first-child > p:first-child { line-height: 1; }
  .project .text b { font-size: 24px; }
  .project .text p { font-size: 12px; }
  .project .text em { font-size: 14px; }
  .media img, .video, .pn { width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tile span { opacity: 1; font-size: 10px; }
}
